]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Move declaration of lang_frame_mismatch_warn to header.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
34916edc
CB
12019-10-08 Christian Biesinger <cbiesinger@google.com>
2
3 * language.c (show_language_command): Pass lang_frame_mismatch_warn
4 through _().
5 (lang_frame_mismatch_warn): Make const, mark with N_(), and
6 move comment...
7 * language.h (lang_frame_mismatch_warn): ... here. Also add
8 declaration.
9 * top.c (lang_frame_mismatch_warn): Remove declaration.
10 (check_frame_language_change): Pass lang_frame_mismatch_warn
11 through _().
12
bad5c026
CB
132019-10-07 Christian Biesinger <cbiesinger@google.com>
14
15 * c-lang.h (vtbl_ptr_name): Declare.
16 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
17 it from the header.
18 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
19
51f1fdc3
CB
202019-10-07 Christian Biesinger <cbiesinger@google.com>
21
22 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
23 gdb_static_assert.
24
30d1f018
WP
252019-10-07 Weimin Pan <weimin.pan@oracle.com>
26
606813d5
WP
27 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
28 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
29 * ctfread.c: New file.
30 * ctfread.h: New file.
31 * elfread.c: Include ctfread.h.
32 (struct elfinfo text_p): New member ctfsect.
33 (elf_locate_sections): Mark CTF section.
34 (elf_symfile_read): Call elfctf_build_psymtabs.
35 * Makefile.in (LIBCTF): Add.
36 (CLIBS): Use it.
37 (CDEPS): Likewise.
38 (DIST): Add ctfread.c.
606813d5
WP
39
402019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
41
42 * ctfread.c (struct nextfield): Renamed to ...
43 (struct ctf_nextfield): ... this.
44 (struct field_info): Renamed to ...
45 (strut ctf_field_info): ... this.
46 (attach_fields_to_type): Update for renamed structures.
47 (ctf_add_member_cb): Likewise.
48 (ctf_add_enum_member_cb): Likewise.
49 (process_struct_members): Likewise.
50 (process_enum_type): Likewise.
30d1f018 51
518fe38c
WP
522019-10-07 Weimin Pan <weimin.pan@oracle.com>
53
54 * tracectf.h: Rename, was ctf.h.
55 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
56 * tracefile.c: Likewise.
57 * tracepoint.c: Remove unused include ctf.h.
58 * mi/mi-main.c: Likewise.
59 * Makefile.in Replace ctf.c with tracectf.c.
60
225f296a
JB
612019-10-06 Joel Brobecker <brobecker@adacore.com>
62
63 * version.in: Change version number to "9.0.50.DATE-git".
64
77c2dba3
TT
652019-10-03 Tom Tromey <tom@tromey.com>
66
67 PR rust/24976:
68 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
69
179aed7f
AB
702019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
71
72 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
73 cp_search_name_hash.
74 * NEWS: Add entry about nested function support.
75
0a4b0913
AB
762019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
77 Andrew Burgess <andrew.burgess@embecosm.com>
78
79 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
80 for nested static variables when searchin VAR_DOMAIN.
81 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
82 global scope, update comment.
83 (add_partial_subprogram): Call add_partial_subprogram recursively
84 for nested subroutines when processinng Fortran.
85 (load_partial_dies): Process the child entities of a subprogram
86 when processing Fortran.
87 (partial_die_parent_scope): Handle building scope
88 for Fortran nested functions.
89 (process_die): Record that nested functions have a scope.
90 (new_symbol): Always record Fortran subprograms on the global
91 symbol list.
92 (determine_prefix): How to build the prefix for Fortran
93 subprograms.
94
d8c06f22
AB
952019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
96
97 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
98 have just sent the thread a SIGSTOP and are waiting for it to
99 arrive.
100
a8b3b8e9
AB
1012019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
102
103 * btrace.c (btrace_add_pc): Remove whitespace before the template
104 parameter in 'std::vector <...>'.
105 (parse_xml_btrace_block): Likewise.
106 (btrace_maint_decode_pt): Likewise.
107 (btrace_maint_update_packets): Likewise.
108 (btrace_maint_print_packets): Likewise.
109 * btrace.h (struct btrace_maint_info): Likewise.
110 * dwarf2read.c (struct type_unit_group): Likewise.
111 (build_type_psymtabs_reader): Likewise.
112 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
113 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
114 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
115
4d825eab
TV
1162019-10-03 Tom de Vries <tdevries@suse.de>
117
118 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
119 the first line of the help text for set/show style metadata.
120
80fd2826
TT
1212019-10-02 Tom Tromey <tromey@adacore.com>
122
123 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
124 * gdbsupport/common-inferior.c: New file.
125 * infcmd.c (startup_with_shell): Don't define.
126 * nat/fork-inferior.h (startup_with_shell): Don't declare.
127 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
128 * inferior.h (startup_with_shell): Don't declare.
129
70054538
CB
1302019-10-02 Christian Biesinger <cbiesinger@google.com>
131
132 * gdbsupport/gdb_assert.h: Include errors.h.
133 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
134
37f6a7f4
TT
1352019-10-02 Tom Tromey <tromey@adacore.com>
136
137 * NEWS: Add $_ada_exception entry.
138 * ada-lang.c (struct ada_catchpoint): Add constructor.
139 <m_kind>: New member.
140 (allocate_location_exception, re_set_exception): Remove
141 "ex" parameter.
142 (should_stop_exception): Compute $_ada_exception.
143 (check_status_exception, print_it_exception)
144 (print_one_exception, print_mention_exception): Remove
145 "ex" parameter.
146 (allocate_location_catch_exception, re_set_catch_exception)
147 (check_status_exception, print_it_catch_exception)
148 (print_one_catch_exception, print_mention_catch_exception)
149 (print_recreate_catch_exception)
150 (allocate_location_catch_exception_unhandled)
151 (re_set_catch_exception_unhandled)
152 (check_status_exception, print_it_catch_exception_unhandled)
153 (print_one_catch_exception_unhandled)
154 (print_mention_catch_exception_unhandled)
155 (print_recreate_catch_exception_unhandled)
156 (allocate_location_catch_assert, re_set_catch_assert)
157 (check_status_assert, print_it_catch_assert)
158 (print_one_catch_assert, print_mention_catch_assert)
159 (print_recreate_catch_assert)
160 (allocate_location_catch_handlers, re_set_catch_handlers)
161 (check_status_handlers, print_it_catch_handlers)
162 (print_one_catch_handlers, print_mention_catch_handlers)
163 (print_recreate_catch_handlers): Remove.
164 (create_ada_exception_catchpoint): Update.
165 (initialize_ada_catchpoint_ops): Update.
166
fccf9de1
TT
1672019-10-02 Tom Tromey <tromey@adacore.com>
168
169 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
170 (create_excep_cond_exprs): Simplify exception string computation.
171 (ada_exception_catchpoint_cond_string): Likewise.
172
4b610737
TT
1732019-10-02 Tom Tromey <tromey@adacore.com>
174
175 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
176 * ada-lang.c (lesseq_defined_than): Handle
177 LOC_STATIC.
178 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
179 parameter.
180 (dwarf2_has_info): Likewise.
181 (new_symbol): Set maybe_copied on symbol when
182 appropriate.
183 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
184 parameter.
185 <can_copy>: New member.
186 * elfread.c (record_minimal_symbol): Set maybe_copied
187 on symbol when appropriate.
188 (elf_symfile_read): Update call to dwarf2_has_info.
189 * minsyms.c (lookup_minimal_symbol_linkage): New
190 function.
191 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
192 * symtab.c (get_symbol_address, get_msymbol_address):
193 New functions.
194 * symtab.h (get_symbol_address, get_msymbol_address):
195 Declare.
196 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
197 maybe_copied.
198 (struct symbol, struct minimal_symbol) <maybe_copied>:
199 New member.
200
1dd58850
TT
2012019-10-02 Tom Tromey <tromey@adacore.com>
202
203 * source.c (struct current_source_location): New.
204 (current_source_key): New global.
205 (current_source_symtab, current_source_line)
206 (current_source_pspace): Remove.
207 (get_source_location): New function.
208 (get_current_source_symtab_and_line)
209 (set_default_source_symtab_and_line)
210 (set_current_source_symtab_and_line)
211 (clear_current_source_symtab_and_line, select_source_symtab)
212 (info_source_command, print_source_lines_base)
213 (info_line_command, search_command_helper, _initialize_source):
214 Update.
215
5c281dbb
TT
2162019-10-02 Tom Tromey <tromey@adacore.com>
217
218 * source.c (select_source_symtab): Don't call
219 decode_line_with_current_source.
220
d3d32391
AB
2212019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
222
223 * symtab.c (lookup_global_symbol): Search global block.
224
38583298
TT
2252019-10-02 Tom Tromey <tromey@adacore.com>
226
227 * coffread.c (process_coff_symbol): Update.
228 * dwarf2read.c (var_decode_location, new_symbol): Update.
229 * mdebugread.c (parse_symbol): Update.
230 * objfiles.c (relocate_one_symbol): Update.
231 * stabsread.c (define_symbol, fix_common_block)
232 (scan_file_globals): Update.
233 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
234 (SET_SYMBOL_VALUE_ADDRESS): New macro.
235 * xcoffread.c (process_xcoff_symbol): Update.
236
9344c18f
AA
2372019-10-02 Andreas Arnez <arnez@linux.ibm.com>
238
239 * MAINTAINERS: Update my email address.
240
df07e2c7
AB
2412019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
242
243 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
244 std::vector.
245 (build_type_psymtabs_reader): Update for std::vector.
246 (build_type_psymtab_dependencies): Likewise.
247 * dwarf2read.h: Remove use of DEF_VEC_P.
248 (typedef sig_type_ptr): Delete.
249
554ac434
AB
2502019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
251
252 * btrace.c (btrace_maint_clear): Update to handle change from VEC
253 to std::vector.
254 (btrace_maint_decode_pt): Likewise, and move allocation of the
255 vector outside of the loop.
256 (btrace_maint_update_packets): Update to handle change from VEC to
257 std::vector.
258 (btrace_maint_print_packets): Likewise.
259 (maint_info_btrace_cmd): Likewise.
260 * btrace.h: Remove use of DEF_VEC_O.
261 (typedef btrace_pt_packet_s): Delete.
262 (struct btrace_maint_info) <packets>: Change fromm VEC to
263 std::vector.
264 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
265
46f29a9a
AB
2662019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
267
268 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
269 make accesses into the vector constant references.
270 (btrace_add_pc): Update for std::vector.
271 (btrace_stitch_bts): Likewise.
272 (parse_xml_btrace_block): Likewise.
273 (btrace_maint_update_packets): Likewise.
274 (btrace_maint_print_packets): Likewise.
275 (maint_info_btrace_cmd): Likewise.
276 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
277 std::vector.
278 (btrace_data::empty): Likewise.
279 (btrace_data_append): Likewise.
280 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
281 (typedef btrace_block_s): Delete.
282 (struct btrace_block): Add constructor.
283 (struct btrace_data_bts) <blocks>: Change to std::vector.
284 * nat/linux-btrace.c (perf_event_read_bts): Update for
285 std::vector.
286 (linux_read_bts): Likewise.
287
d770d56f
TT
2882019-10-01 Tom Tromey <tom@tromey.com>
289
290 * cli/cli-logging.c (show_logging_filename): Use styled_string.
291
9d636d67
TT
2922019-10-01 Tom Tromey <tom@tromey.com>
293
294 * stack.c (print_frame, info_frame_command_core): Use
295 styled_string.
296 * linux-thread-db.c (try_thread_db_load_1)
297 (try_thread_db_load_from_pdir_1): Use styled_string.
298 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
299 (auto_load_section_scripts, info_auto_load_local_gdbinit)
300 (maybe_print_unsupported_script_warning)
301 (maybe_print_script_not_found_warning): Use styled_string.
302 * ada-lang.c (user_select_syms): Use styled_string.
303
7f6aba03
TT
3042019-10-01 Tom Tromey <tom@tromey.com>
305
306 * p-lang.c (pascal_printstr): Use metadata style.
307 * value.c (show_convenience): Use metadata style.
308 * valprint.c (valprint_check_validity, val_print_optimized_out)
309 (val_print_not_saved, val_print_unavailable)
310 (val_print_invalid_address, generic_val_print, val_print)
311 (value_check_printable, val_print_array_elements): Use metadata
312 style.
313 * ui-out.h (class ui_out) <field_fmt>: New overload.
314 <do_field_fmt>: Add style parameter.
315 * ui-out.c (ui_out::field_fmt): New overload.
316 * typeprint.c (type_print_unknown_return_type)
317 (val_print_not_allocated, val_print_not_associated): Use metadata
318 style.
319 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
320 parameter.
321 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
322 * tracepoint.c (tvariables_info_1): Use metadata style.
323 * stack.c (print_frame_arg, print_frame_info, print_frame)
324 (info_frame_command_core): Use metadata style.
325 * skip.c (info_skip_command): Use metadata style.
326 * rust-lang.c (rust_print_enum): Use metadata style.
327 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
328 metadata style.
329 * python/py-framefilter.c (py_print_single_arg): Use metadata
330 style.
331 * printcmd.c (do_one_display, print_variable_and_value): Use
332 metadata style.
333 * p-valprint.c (pascal_val_print)
334 (pascal_object_print_value_fields): Use metadata style.
335 * p-typeprint.c (pascal_type_print_base): Use metadata style.
336 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
337 parameter.
338 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
339 * m2-valprint.c (m2_print_long_set): Use metadata style.
340 * m2-typeprint.c (m2_print_type): Use metadata style.
341 * infcmd.c (print_return_value_1): Use metadata style.
342 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
343 * f-valprint.c (info_common_command_for_block): Use metadata
344 style.
345 * f-typeprint.c (f_type_print_base): Use metadata style.
346 * expprint.c (print_subexp_standard): Use metadata style.
347 * cp-valprint.c (cp_print_value_fields): Use metadata style.
348 * cli/cli-style.h (class cli_style_option): Add constructor.
349 (metadata_style): Declare.
350 * cli/cli-style.c (metadata_style): New global.
351 (_initialize_cli_style): Register metadata style.
352 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
353 parameter.
354 * cli-out.c (cli_ui_out::do_field_fmt): Update.
355 * c-typeprint.c (c_type_print_base_struct_union)
356 (c_type_print_base_1): Use metadata style.
357 * breakpoint.c (watchpoint_value_print)
358 (print_one_breakpoint_location): Use metadata style.
359 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
360 style.
361 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
362 style.
363 * ada-valprint.c (val_print_packed_array_elements, printstr)
364 (print_field_values, ada_val_print_ref, ada_val_print): Use
365 metadata style.
366 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
367 style.
368 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
369 style.
370 * ada-lang.c (user_select_syms): Use metadata style.
371
14309bb6
TT
3722019-10-01 Tom Tromey <tom@tromey.com>
373
374 * cli/cli-cmds.c (pwd_command): Style output.
375
6a831f06
PA
3762019-10-01 Pedro Alves <palves@redhat.com>
377 Tom Tromey <tom@tromey.com>
378
379 * symtab.c (print_symbol_info): Use %ps.
380 (print_msymbol_info): Use %ps.
381 * symfile.c (symbol_file_add_with_addrs): Use %ps.
382 * printcmd.c (print_variable_and_value): Use %ps.
383 * macrocmd.c (show_pp_source_pos): Use %ps.
384 * infrun.c (print_exited_reason): Use ui_out::message.
385 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
386 (describe_other_breakpoints): Use ui_out::message and new
387 formats.
388 (say_where): Use new formats.
389 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
390 and new formats.
391
2a3c1174
PA
3922019-10-01 Pedro Alves <palves@redhat.com>
393 Tom Tromey <tom@tromey.com>
394
395 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
396 (test_gdb_formats): New function.
397 (run_tests): Call it.
398 (test_format_specifier): Update.
399 * utils.h (fputs_filtered): Update comment.
400 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
401 (fputs_styled_unfiltered): Declare.
402 * utils.c (fputs_styled_unfiltered): New function.
403 (vfprintf_maybe_filtered): Add gdbfmt parameter.
404 (vfprintf_filtered): Update.
405 (vfprintf_unfiltered, vprintf_filtered): Update.
406 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
407 * ui-out.h (enum ui_out_flag) <unfiltered_output,
408 disallow_ui_out_field>: New constants.
409 (enum class field_kind): New.
410 (struct base_field_s, struct signed_field_s): New.
411 (signed_field): New function.
412 (struct string_field_s): New.
413 (string_field): New function.
414 (struct styled_string_s): New.
415 (styled_string): New function.
416 (class ui_out) <message>: Add comment.
417 <vmessage, call_do_message>: New methods.
418 <do_message>: Add style parameter.
419 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
420 methods.
421 (ui_out::message): Rewrite.
422 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
423 parameter.
424 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
425 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
426 gdb_extensions parameter.
427 (class format_piece): Add parameter to constructor.
428 (n_int_args): New field.
429 * gdbsupport/format.c (format_pieces::format_pieces): Add
430 gdb_extensions parameter. Handle '*'.
431 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
432 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
433 vfprintf_styled_no_gdbfmt.
434 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
435 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
436 unfiltered output.
437 * ui-style.h (struct ui_file_style) <ptr>: New method.
438
0dfe5bfb
TT
4392019-10-01 Tom Tromey <tom@tromey.com>
440
441 * unittests/format_pieces-selftests.c: Update. Add final format.
442 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
443 empty literal pieces.
444
e43b10e1
TT
4452019-10-01 Tom Tromey <tom@tromey.com>
446
447 * ui-out.h (enum class ui_out_style_kind): Remove.
448 (class ui_out) <field_string, field_stsream, do_field_string>:
449 Change type of "style".
450 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
451 (ui_out::field_string): Update.
452 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
453 of "style".
454 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
455 * tracepoint.c (print_one_static_tracepoint_marker): Update.
456 * stack.c (print_frame_arg, print_frame_info, print_frame):
457 Update.
458 * source.c (print_source_lines_base): Update.
459 * solib.c (info_sharedlibrary_command): Update.
460 * skip.c (info_skip_command): Update.
461 * record-btrace.c (btrace_call_history_src_line)
462 (btrace_call_history): Update.
463 * python/py-framefilter.c (py_print_frame): Update.
464 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
465 "style".
466 * mi/mi-out.c (mi_ui_out::do_table_header)
467 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
468 (mi_ui_out::do_field_string): Update.
469 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
470 Update.
471 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
472 "style".
473 * cli-out.c (cli_ui_out::do_table_header)
474 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
475 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
476 (cli_ui_out::do_field_fmt): Update.
477 * breakpoint.c (print_breakpoint_location): Update.
478 (update_static_tracepoint): Update.
479
cd7c32c3
PW
4802019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
481
482 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
483 conversion of gdb_datadir.
484 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
485 remove not needed c_str ().
486
8fe0f950
AT
4872019-09-30 Ali Tamur <tamur@google.com>
488
489 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
490 (dwarf2_string_attr): Likewise.
491
5f48f8f3
AT
4922019-09-30 Ali Tamur <tamur@google.com>
493
494 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
495 (process_full_type_unit): Likewise.
496 (dump_die_shallow): Likewise.
497 (cu_debug_loc_section): Likewise.
498
6fb08628
CB
4992019-09-28 Christian Biesinger <cbiesinger@google.com>
500
501 * minsyms.c (compare_minimal_symbols): Rename to...
502 (minimal_symbol_is_less_than): ...this, and adjust to STL
503 conventions (return bool, take arguments as references)
504 (minimal_symbol_reader::install): Call std::sort instead
505 of qsort.
506
c7ee338a
CB
5072019-09-29 Christian Biesinger <cbiesinger@google.com>
508
509 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
510 hash and why.
511 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
512 msymbol_hash, msymbol_demangled_hash>: Improve comments.
513
703a86c2
SM
5142019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
515
516 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
517 * psympriv.h (add_psymbol_to_list): Move comment here and update
518 it.
519
0df0352a
TV
5202019-09-29 Tom de Vries <tdevries@suse.de>
521
522 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
523 Use $tmpdir/$(basename "$output_file").dwz instead of
524 "${output_file}.dwz".
525
ad75efa6
SM
5262019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
527
528 PR gdb/25045
529 * hppa-linux-nat.c: Include gdbarch.h.
530
ececd218
CB
5312019-09-26 Christian Biesinger <cbiesinger@google.com>
532
533 * blockframe.c (find_pc_partial_function): Change return type to bool.
534 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
535 * minsyms.c (in_gnu_ifunc_stub): Likewise.
536 (stub_gnu_ifunc_resolve_name): Likewise.
537 * symtab.c (compare_filenames_for_search): Likewise.
538 (compare_glob_filenames_for_search): Likewise.
539 (matching_obj_sections): Likewise.
540 (symbol_matches_domain): Likewise.
541 (find_line_symtab): Change out param EXACT_MATCH to bool *.
542 (find_line_pc): Change return type to bool.
543 (find_line_pc_range): Likewise.
544 (producer_is_realview): Likewise.
545 * symtab.h (symbol_matches_domain): Likewise.
546 (find_pc_partial_function): Likewise.
547 (find_pc_line_pc_range): Likewise.
548 (in_gnu_ifunc_stub): Likewise.
549 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
550 (find_line_pc): Likewise.
551 (find_line_pc_range): Likewise.
552 (matching_obj_sections): Likewise.
553 (find_line_symtab): Change out parameter to bool.
554 (producer_is_realview): Change return type to bool.
555 (compare_filenames_for_search): Likewise.
556 (compare_glob_filenames_for_search): Likewise.
557
27a900b8
TT
5582019-09-26 Tom Tromey <tom@tromey.com>
559
560 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
561 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
562 * gdb_usleep.h: Remove.
563 * gdb_usleep.c: Remove.
564 * utils.c: Don't include gdb_usleep.h.
565
5d63b30a
TT
5662019-09-26 Tom Tromey <tromey@adacore.com>
567
568 * python/py-type.c (type_to_type_object): Call check_typedef
569 for stub types.
570
12904d37
TT
5712019-09-26 Tom Tromey <tom@tromey.com>
572
573 * utils.h (initialize_utils): Don't declare.
574 * top.c (gdb_init): Don't call initialize_utils.
575 * utils.c (initialize_utils): Remove. Move contents...
576 (_initialize_utils): ... here.
577
858f25f0
TT
5782019-09-25 Tom Tromey <tom@tromey.com>
579
580 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
581 * utils.h (make_hex_string): Don't declare.
582 * utils.c (make_hex_string): Remove.
583
3d435220
TV
5842019-09-24 Tom de Vries <tdevries@suse.de>
585
586 PR gdb/23815
587 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
588 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
589
ddd44b70
DD
5902019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
591
592 * NEWS: Mention new simulator port for PRU.
593
f945dedf
CB
5942019-09-23 Christian Biesinger <cbiesinger@google.com>
595
596 * ada-exp.y (write_object_remaining): Update.
597 * ada-lang.c (ada_decode): Return a std::string instead of a char*
598 and eliminate the static buffer.
599 (ada_decode_symbol): Update.
600 (ada_la_decode): Update.
601 (ada_sniff_from_mangled_name): Update.
602 (is_valid_name_for_wild_match): Update.
603 (ada_lookup_name_info::matches): Update and simplify.
604 (name_matches_regex): Update.
605 (ada_add_global_exceptions): Update.
606 * ada-lang.h (ada_decode): Update signature.
607 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
608 * dwarf-index-write.c (debug_names::insert): Update.
609
7ab78ccb
SM
6102019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
611
612 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
613 formatting.
614
9252448b
SM
6152019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
616
617 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
618 Change "nonzero" to "true" in documentation.
619
626ca2c0
CB
6202019-09-20 Christian Biesinger <cbiesinger@google.com>
621
622 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
623 (_initialize_darwin_solib): Don't set
624 darwin_so_ops.lookup_lib_global_symbol.
625 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
626 set_gdbarch_iterate_over_objfiles_in_search_order.
627 (elf_lookup_lib_symbol): Rename to...
628 (svr4_iterate_over_objfiles_in_search_order): this, and update
629 to iterate semantics.
630 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
631 * solib.c (solib_global_lookup): Remove.
632 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
633 (solib_global_lookup): Remove.
634 * symtab.c (lookup_global_or_static_symbol): Remove call to
635 solib_global_lookup.
636
5a3a0d63
JB
6372019-09-20 Joel Brobecker <brobecker@adacore.com>
638
639 * NEWS: Move entries about default MI version now being
640 version 3, and about the GDB/MI fix for multi-location
641 breakpoints to the "since GDB 8.3" section.
642
ffea1427
JB
6432019-09-20 Joel Brobecker <brobecker@adacore.com>
644
645 GDB 8.3.1 released.
646
abf516c6
UW
6472019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
648
649 * NEWS: Mention that Cell/B.E. debugging support was removed.
650 * MAINTAINERS: Remove spu target.
651
652 * config/djgpp/fnchange.lst: Remove entries for removed files.
653
654 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
655 spu-multiarch.o, and spu-tdep.o.
656 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
657 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
658 spu-multiarch.c, and spu-tdep.c.
659 * spu-linux-nat.c: Remove file.
660 * spu-multiarch.c: Remove file.
661 * spu-tdep.c: Remove file.
662 * spu-tdep.h: Remove file.
663 * solib-spu.c: Remove file.
664 * solib-spu.h: Remove file.
665
666 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
667 * configure.nat (spu-linux): Remove.
668 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
669 solib-multiarch.o from gdb_target_obs.
670 (spu*-*-*): Remove.
671
672 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
673 feature flag.
674 (ppc_linux_no_features): Update.
675 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
676 Cell/B.E. support.
677 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
678 (tdesc_powerpc_cell64l): Likewise.
679 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
680 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
681 Cell/B.E. support.
682 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
683 Do not include "features/rs6000/powerpc-cell32l.c" or
684 "features/rs6000/powerpc-cell64l.c".
685 (ppc_linux_spu_section): Remove.
686 (ppc_linux_core_read_description): Remove Cell/B.E. support.
687 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
688 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
689 (ppc_linux_spe_context_lookup): Remove.
690 (ppc_linux_spe_context_inferior_created): Remove.
691 (ppc_linux_spe_context_solib_loaded): Remove.
692 (ppc_linux_spe_context_solib_unloaded): Remove.
693 (ppc_linux_spe_context): Remove.
694 (struct ppu2spu_cache): Remove.
695 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
696 (struct ppu2spu_data): Remove.
697 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
698 ppu2spu_unwind): Remove.
699 (ppc_linux_init_abi): Remove Cell/B.E. support.
700 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
701
702 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
703 (rs6000/powerpc-cell64l-expedite): Likewise
704 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
705 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
706 rs6000/powerpc-cell64l.xml.
707 * features/rs6000/powerpc-cell32l.xml: Remove.
708 * features/rs6000/powerpc-cell64l.xml: Likewise.
709 * features/rs6000/powerpc-cell32l.c: Remove generated file.
710 * features/rs6000/powerpc-cell64l.c: Likewise.
711 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
712 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
713 * regformats/reg-spu.dat: Remove.
714
715 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
716 * corelow.c (struct spuid_list): Remove.
717 (add_to_spuid_list): Remove.
718 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
719 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
720 (remote_protocol_features): Remove associated entries.
721 (_initialize_remote): No longer initialize them.
722 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
723 * linux-nat.c (SPUFS_MAGIC): Remove.
724 (linux_proc_xfer_spu): Remove.
725 (spu_enumerate_spu_ids): Remove.
726 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
727 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
728 (linux_make_corefile_notes): No longer call it.
729
730 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
731 (cooked_write_test): Likewise.
732
78e8cb91
TT
7332019-09-20 Tom Tromey <tom@tromey.com>
734
735 * NEWS: Mention case-sensitivity of TUI commands.
736 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
737 (tui_set_win_height_command, parse_scrolling_args): Likewise.
738 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
739
f074b67e
TT
7402019-09-20 Tom Tromey <tom@tromey.com>
741
742 * tui/tui-source.c (tui_source_window::set_contents): Use
743 make_unique_xstrdup.
744 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
745 make_unique_xstrdup.
746
63c4bf19
TT
7472019-09-20 Tom Tromey <tom@tromey.com>
748
749 * tui/tui-data.c: Remove separator comments.
750 * tui/tui-layout.c: Remove separator comments.
751 * tui/tui-win.c: Remove separator comments.
752 * tui/tui-wingeneral.c: Remove separator comments.
753
43df9b2f
TT
7542019-09-20 Tom Tromey <tom@tromey.com>
755
756 * tui/tui.h (strcat_to_buf): Don't declare.
757 * tui/tui.c (strcat_to_buf): Remove.
758
7226433c
TT
7592019-09-20 Tom Tromey <tom@tromey.com>
760
761 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
762 from "fullname".
763 * tui/tui-source.c (tui_source_window::set_contents)
764 (tui_source_window::location_matches_p)
765 (tui_source_window::maybe_update): Update.
766
80df3337
TT
7672019-09-20 Tom Tromey <tom@tromey.com>
768
769 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
770 Update.
771 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
772 prefix.
773 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
774 (tui_data_window::line_from_reg_element_no)
775 (tui_data_window::first_reg_element_no_inline)
776 (tui_data_window::show_registers)
777 (tui_data_window::show_register_group)
778 (tui_data_window::display_registers_from)
779 (tui_data_window::display_registers_from_line)
780 (tui_data_window::first_data_item_displayed)
781 (tui_data_window::delete_data_content_windows)
782 (tui_data_window::erase_data_content)
783 (tui_data_window::do_scroll_vertical)
784 (tui_data_window::refresh_window)
785 (tui_data_window::check_register_values): Update.
786
9923f347
TT
7872019-09-20 Tom Tromey <tom@tromey.com>
788
789 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
790 (struct tui_locator_window) <full_name, proc_name>: Now
791 std::string.
792 * tui/tui-stack.c (tui_locator_window::make_status_line)
793 (tui_locator_window::set_locator_fullname)
794 (tui_locator_window::set_locator_info): Update.
795 * tui/tui-source.c (tui_source_window::set_contents)
796 (tui_source_window::showing_source_p): Update.
797
b76251ab
TT
7982019-09-20 Tom Tromey <tom@tromey.com>
799
800 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
801 Don't call tui_locator_win_info_ptr.
802
0891be08
TT
8032019-09-20 Tom Tromey <tom@tromey.com>
804
805 * tui/tui-win.c (tui_resize_all): Don't call refresh.
806
1b935acf
TT
8072019-09-20 Tom Tromey <tom@tromey.com>
808
809 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
810 height for locator.
811 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
812 * tui/tui-layout.c (show_source_disasm_command, show_data)
813 (show_source_or_disasm_and_command): Use 1 as height for locator.
814
9abd8a65
TT
8152019-09-20 Tom Tromey <tom@tromey.com>
816
817 * tui/tui.c (tui_enable): Update.
818 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
819 Update.
820 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
821 Update.
822 * tui/tui-data.c (win_resized): Now bool.
823 (tui_win_resized): Return bool.
824 (tui_set_win_resized_to): Accept a bool.
825
b5457826
TT
8262019-09-20 Tom Tromey <tom@tromey.com>
827
828 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
829 Change type of "refresh_values_only".
830 * tui/tui-regs.c (tui_data_window::show_register_group): Change
831 type of "refresh_values_only".
832
6b915f7d
TT
8332019-09-20 Tom Tromey <tom@tromey.com>
834
835 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
836 std::string.
837 (tui_disassemble): Add "pos" parameter.
838 (tui_disasm_window::set_contents): Simplify.
839
2ad52f6f
TT
8402019-09-20 Tom Tromey <tom@tromey.com>
841
842 * tui/tui-winsource.h (struct tui_source_window_base)
843 <show_source_content>: Now private.
844 * tui/tui-winsource.c
845 (tui_source_window_base::show_source_content): Don't handle empty
846 content case.
847
b3b1bde6
TT
8482019-09-20 Tom Tromey <tom@tromey.com>
849
850 * tui/tui-layout.c (show_source_disasm_command)
851 (show_source_or_disasm_and_command): Don't call
852 show_source_content.
853
71a25ed2
TT
8542019-09-20 Tom Tromey <tom@tromey.com>
855
856 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
857 Declare.
858 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
859 from tui_make_status_line.
860 (tui_locator_window::rerender): Update.
861
f8532154
TT
8622019-09-20 Tom Tromey <tom@tromey.com>
863
864 * tui/tui-stack.c (tui_make_status_line): Return std::string.
865 (tui_locator_window::rerender): Update.
866
2d81b349
TT
8672019-09-20 Tom Tromey <tom@tromey.com>
868
869 * tui/tui-winsource.h (struct tui_source_window_base)
870 <~tui_source_window_base>: Don't declare.
871 <fullname>: Remove.
872 * tui/tui-winsource.c (~tui_source_window_base): Remove.
873 * tui/tui-source.h (struct tui_source_window) <fullname>: New
874 member.
875 * tui/tui-source.c (tui_source_window::set_contents): Update.
876 (tui_source_window::location_matches_p)
877 (tui_source_window::maybe_update): Update.
878
f14bec58
TT
8792019-09-20 Tom Tromey <tom@tromey.com>
880
881 * tui/tui-winsource.h (~tui_source_element): Remove.
882 (tui_source_element): Update.
883 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
884 * tui/tui-winsource.c (tui_show_source_line): Update.
885 * tui/tui-source.c (tui_source_window::set_contents): Update.
886 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
887
78d5933a
TT
8882019-09-20 Tom Tromey <tom@tromey.com>
889
890 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
891 declare.
892 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
893 tui_clear_source_windows_detail.
894 * tui/tui-winsource.h (struct tui_source_window_base)
895 <clear_detail>: Don't declare.
896 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
897 Remove.
898 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
899
d4207696
TT
9002019-09-20 Tom Tromey <tromey@adacore.com>
901
902 PR ada/24919:
903 * block.c (contained_in): Fix final return value.
904
00f93c44
AM
9052019-09-20 Alan Modra <amodra@gmail.com>
906
907 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
908 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
909 (read_indirect_string_from_dwz): Use bfd accessor.
910 * dwarf2read.h (struct dwz_file <filename>): Likewise.
911 * machoread.c (macho_symfile_read_all_oso): Likewise.
912 * solib.c (solib_bfd_open): Likewise.
913
e4153ae6
CB
9142019-09-19 Christian Biesinger <cbiesinger@google.com>
915
916 * eval.c: Move declaration of overload_resolution to...
917 * value.h: ...here.
918
c7ae7675
CB
9192019-09-19 Christian Biesinger <cbiesinger@google.com>
920
921 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
922 * arm-linux-tdep.c: Likewise.
923 * arm-nbsd-nat.c: Likewise.
924 * arm-tdep.h: Declare arm_apcs_32.
925 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
926
e86f08d2
CB
9272019-09-19 Christian Biesinger <cbiesinger@google.com>
928
929 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
930 * dwarf2read.h: Declare dwarf_always_disassemble.
931
f64e2f40
TV
9322019-09-19 Tom de Vries <tdevries@suse.de>
933
934 PR gdb/25009
935 * source-cache.c (source_cache::ensure): Catch exception thrown during
936 construction of the highlighter.
937
fd361982
AM
9382019-09-18 Alan Modra <amodra@gmail.com>
939
940 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
941 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
942 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
943 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
944 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
945 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
946 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
947 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
948 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
949 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
950 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
951 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
952 * solib-spu.c, * solib-svr4.c, * solib-target.c,
953 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
954 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
955 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
956 * mi/mi-interp.c: Update throughout for bfd section macro and
957 function changes.
958 * gcore (gcore_create_callback): Use bfd_set_section_lma.
959 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
960
11061048
TT
9612019-09-18 Tom Tromey <tom@tromey.com>
962
963 * NEWS: Add entry.
964 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
965 call rl_initialize.
966 (tui_enable): Do not call rl_initialize.
967
7a27b85f
CG
9682019-09-18 Christian Groessler <chris@groessler.org>
969
970 * alpha-linux-nat.c: Include gdbarch.h.
971
f64eea3a
SM
9722019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
973
974 * ui-file.c: Include cli/cli-style.h.
975 (term_cli_styling): Remove cli_styling declaration.
976
e6f7f6d1
AM
9772019-09-18 Alan Modra <amodra@gmail.com>
978
979 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
980 to bfd_asymbol_section.
981
1d38e9d1
AM
9822019-09-18 Alan Modra <amodra@gmail.com>
983
984 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
985 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
986 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
987
90d92a63
AM
9882019-09-18 Alan Modra <amodra@gmail.com>
989
990 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
991 * spu-linux-nat.c (spu_bfd_open): Likewise.
992
a3d181d2
CB
9932019-09-18 Christian Biesinger <cbiesinger@google.com>
994
995 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
996 to bool to match definition in dwarf2read.c.
997
491144b5
CB
9982019-09-17 Christian Biesinger <cbiesinger@google.com>
999
1000 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
1001 (print_signatures): Likewise.
1002 (trust_pad_over_xvs): Likewise.
1003 * arch/aarch64-insn.c (aarch64_debug): Likewise.
1004 * arch/aarch64-insn.h (aarch64_debug): Likewise.
1005 * arm-linux-nat.c (arm_apcs_32): Likewise.
1006 * arm-linux-tdep.c (arm_apcs_32): Likewise.
1007 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
1008 * arm-tdep.c (arm_debug): Likewise.
1009 (arm_apcs_32): Likewise.
1010 * auto-load.c (debug_auto_load): Likewise.
1011 (auto_load_gdb_scripts): Likewise.
1012 (global_auto_load): Likewise.
1013 (auto_load_local_gdbinit): Likewise.
1014 (auto_load_local_gdbinit_loaded): Likewise.
1015 * auto-load.h (global_auto_load): Likewise.
1016 (auto_load_local_gdbinit): Likewise.
1017 (auto_load_local_gdbinit_loaded): Likewise.
1018 * breakpoint.c (disconnected_dprintf): Likewise.
1019 (breakpoint_proceeded): Likewise.
1020 (automatic_hardware_breakpoints): Likewise.
1021 (always_inserted_mode): Likewise.
1022 (target_exact_watchpoints): Likewise.
1023 (_initialize_breakpoint): Update.
1024 * breakpoint.h (target_exact_watchpoints): Change to bool.
1025 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
1026 * cli/cli-cmds.c (trace_commands): Likewise.
1027 * cli/cli-cmds.h (trace_commands): Likewise.
1028 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
1029 to bool*.
1030 * cli/cli-logging.c (logging_overwrite): Change to bool.
1031 (logging_redirect): Likewise.
1032 (debug_redirect): Likewise.
1033 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
1034 (struct boolean_option_def) <get_var_address_cb_>: Change return type
1035 to bool.
1036 <boolean_option_def>: Update.
1037 (struct flag_option_def): Change default type of Context to bool
1038 from int.
1039 <flag_option_def>: Change return type of var_address_cb_ to bool*.
1040 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
1041 (get_setshow_command_value_string): Likewise.
1042 * cli/cli-style.c (cli_styling): Change to bool.
1043 (source_styling): Likewise.
1044 * cli/cli-style.h (source_styling): Likewise.
1045 (cli_styling): Likewise.
1046 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
1047 to bool.
1048 * command.h (var_types): Update comment.
1049 (add_setshow_boolean_cmd): Change int* var argument to bool*.
1050 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
1051 bool.
1052 (debug_compile_cplus_scopes): Likewise.
1053 * compile/compile-internal.h (compile_debug): Likewise.
1054 * compile/compile.c (compile_debug): Likewise.
1055 (struct compile_options) <raw>: Likewise.
1056 * cp-support.c (catch_demangler_crashes): Likewise.
1057 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
1058 (usr_cmd_cris_dwarf2_cfi): Likewise.
1059 * csky-tdep.c (csky_debug): Likewise.
1060 * darwin-nat.c (enable_mach_exceptions): Likewise.
1061 * dcache.c (dcache_enabled_p): Likewise.
1062 * defs.h (info_verbose): Likewise.
1063 * demangle.c (demangle): Likewise.
1064 (asm_demangle): Likewise.
1065 * dwarf-index-cache.c (debug_index_cache): Likewise.
1066 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
1067 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
1068 * dwarf2read.c (check_physname): Likewise.
1069 (use_deprecated_index_sections): Likewise.
1070 (dwarf_always_disassemble): Likewise.
1071 * eval.c (overload_resolution): Likewise.
1072 * event-top.c (set_editing_cmd_var): Likewise.
1073 (exec_done_display_p): Likewise.
1074 * event-top.h (set_editing_cmd_var): Likewise.
1075 (exec_done_display_p): Likewise.
1076 * exec.c (write_files): Likewise.
1077 * fbsd-nat.c (debug_fbsd_lwp): Likewise
1078 (debug_fbsd_nat): Likewise.
1079 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
1080 Likewise.
1081 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
1082 <backtrace_past_entry> Likewise.
1083 * gdb-demangle.h (demangle): Likewise.
1084 (asm_demangle): Likewise.
1085 * gdb_bfd.c (bfd_sharing): Likewise.
1086 * gdbcore.h (write_files): Likewise.
1087 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
1088 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
1089 * gdbthread.h (print_thread_events): Likewise.
1090 * gdbtypes.c (opaque_type_resolution): Likewise.
1091 (strict_type_checking): Likewise.
1092 * gnu-nat.c (gnu_debug_flag): Likewise.
1093 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
1094 * guile/scm-param.c (pascm_variable): Add boolval.
1095 (add_setshow_generic): Update.
1096 (pascm_param_value): Update.
1097 (pascm_set_param_value_x): Update.
1098 * hppa-tdep.c (hppa_debug): Change to bool..
1099 * infcall.c (may_call_functions_p): Likewise.
1100 (coerce_float_to_double_p): Likewise.
1101 (unwind_on_signal_p): Likewise.
1102 (unwind_on_terminating_exception_p): Likewise.
1103 * infcmd.c (startup_with_shell): Likewise.
1104 * inferior.c (print_inferior_events): Likewise.
1105 * inferior.h (startup_with_shell): Likewise.
1106 (print_inferior_events): Likewise.
1107 * infrun.c (step_stop_if_no_debug): Likewise.
1108 (detach_fork): Likewise.
1109 (debug_displaced): Likewise.
1110 (disable_randomization): Likewise.
1111 (non_stop): Likewise.
1112 (non_stop_1): Likewise.
1113 (observer_mode): Likewise.
1114 (observer_mode_1): Likewise.
1115 (set_observer_mode): Update.
1116 (sched_multi): Change to bool.
1117 * infrun.h (debug_displaced): Likewise.
1118 (sched_multi): Likewise.
1119 (step_stop_if_no_debug): Likewise.
1120 (non_stop): Likewise.
1121 (disable_randomization): Likewise.
1122 * linux-tdep.c (use_coredump_filter): Likewise.
1123 (dump_excluded_mappings): Likewise.
1124 * linux-thread-db.c (auto_load_thread_db): Likewise.
1125 (check_thread_db_on_load): Likewise.
1126 * main.c (captured_main_1): Update.
1127 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
1128 xx2_opt, boolean_opt>: Change to bool.
1129 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
1130 * maint.c (maintenance_profile_p): Likewise.
1131 (per_command_time): Likewise.
1132 (per_command_space): Likewise.
1133 (per_command_symtab): Likewise.
1134 * memattr.c (inaccessible_by_default): Likewise.
1135 * mi/mi-main.c (mi_async): Likewise.
1136 (mi_async_1): Likewise.
1137 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
1138 * nat/fork-inferior.h (startup_with_shell): Likewise.
1139 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
1140 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
1141 * nios2-tdep.c (nios2_debug): Likewise.
1142 * or1k-tdep.c (or1k_debug): Likewise.
1143 * parse.c (parser_debug): Likewise.
1144 * parser-defs.h (parser_debug): Likewise.
1145 * printcmd.c (print_symbol_filename): Likewise.
1146 * proc-api.c (procfs_trace): Likewise.
1147 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
1148 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
1149 (set_parameter_value): Update.
1150 (add_setshow_generic): Update.
1151 * python/py-value.c (copy_py_bool_obj): Change argument from int*
1152 to bool*.
1153 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
1154 int*.
1155 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
1156 * record-btrace.c (record_btrace_target::store_registers): Update.
1157 * record-full.c (record_full_memory_query): Change to bool.
1158 (record_full_stop_at_limit): Likewise.
1159 * record-full.h (record_full_memory_query): Likewise.
1160 * remote-notif.c (notif_debug): Likewise.
1161 * remote-notif.h (notif_debug): Likewise.
1162 * remote.c (use_range_stepping): Likewise.
1163 (interrupt_on_connect): Likewise.
1164 (remote_break): Likewise.
1165 * ser-tcp.c (tcp_auto_retry): Likewise.
1166 * ser-unix.c (serial_hwflow): Likewise.
1167 * skip.c (debug_skip): Likewise.
1168 * solib-aix.c (solib_aix_debug): Likewise.
1169 * spu-tdep.c (spu_stop_on_load_p): Likewise.
1170 (spu_auto_flush_cache_p): Likewise.
1171 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
1172 Likewise.
1173 (struct info_print_options) <quiet>: Likewise.
1174 * symfile-debug.c (debug_symfile): Likewise.
1175 * symfile.c (auto_solib_add): Likewise.
1176 (separate_debug_file_debug): Likewise.
1177 * symfile.h (auto_solib_add): Likewise.
1178 (separate_debug_file_debug): Likewise.
1179 * symtab.c (basenames_may_differ): Likewise.
1180 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
1181 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
1182 (struct info_types_options) <quiet>: Likewise.
1183 * symtab.h (demangle): Likewise.
1184 (basenames_may_differ): Likewise.
1185 * target-dcache.c (stack_cache_enabled_1): Likewise.
1186 (code_cache_enabled_1): Likewise.
1187 * target.c (trust_readonly): Likewise.
1188 (may_write_registers): Likewise.
1189 (may_write_memory): Likewise.
1190 (may_insert_breakpoints): Likewise.
1191 (may_insert_tracepoints): Likewise.
1192 (may_insert_fast_tracepoints): Likewise.
1193 (may_stop): Likewise.
1194 (auto_connect_native_target): Likewise.
1195 (target_stop_and_wait): Update.
1196 (target_async_permitted): Change to bool.
1197 (target_async_permitted_1): Likewise.
1198 (may_write_registers_1): Likewise.
1199 (may_write_memory_1): Likewise.
1200 (may_insert_breakpoints_1): Likewise.
1201 (may_insert_tracepoints_1): Likewise.
1202 (may_insert_fast_tracepoints_1): Likewise.
1203 (may_stop_1): Likewise.
1204 * target.h (target_async_permitted): Likewise.
1205 (may_write_registers): Likewise.
1206 (may_write_memory): Likewise.
1207 (may_insert_breakpoints): Likewise.
1208 (may_insert_tracepoints): Likewise.
1209 (may_insert_fast_tracepoints): Likewise.
1210 (may_stop): Likewise.
1211 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
1212 (make_thread_apply_all_options_def_group): Change argument from int*
1213 to bool*.
1214 (thread_apply_all_command): Update.
1215 (print_thread_events): Change to bool.
1216 * top.c (confirm): Likewise.
1217 (command_editing_p): Likewise.
1218 (history_expansion_p): Likewise.
1219 (write_history_p): Likewise.
1220 (info_verbose): Likewise.
1221 * top.h (confirm): Likewise.
1222 (history_expansion_p): Likewise.
1223 * tracepoint.c (disconnected_tracing): Likewise.
1224 (circular_trace_buffer): Likewise.
1225 * typeprint.c (print_methods): Likewise.
1226 (print_typedefs): Likewise.
1227 * utils.c (debug_timestamp): Likewise.
1228 (sevenbit_strings): Likewise.
1229 (pagination_enabled): Likewise.
1230 * utils.h (sevenbit_strings): Likewise.
1231 (pagination_enabled): Likewise.
1232 * valops.c (overload_resolution): Likewise.
1233 * valprint.h (struct value_print_options) <prettyformat_arrays,
1234 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
1235 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
1236 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
1237 Likewise.
1238 * windows-nat.c (new_console): Likewise.
1239 (cygwin_exceptions): Likewise.
1240 (new_group): Likewise.
1241 (debug_exec): Likewise.
1242 (debug_events): Likewise.
1243 (debug_memory): Likewise.
1244 (debug_exceptions): Likewise.
1245 (useshell): Likewise.
1246 * windows-tdep.c (maint_display_all_tib): Likewise.
1247 * xml-support.c (debug_xml): Likewise.
1248
f1b620e9
MG
12492019-09-17 Mike Gulick <mgulick@mathworks.com>
1250
1251 * source.c (prepare_path_for_appending): New function.
1252 (openp): Make use of new function.
1253 (find_and_open_source): Search for the compilation directory and
1254 source file as a relative path beneath the directory search path.
1255
67f3ed6a
AB
12562019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
1257
1258 * source-cache.c (source_cache::get_line_charpos): Catch
1259 exceptions and return false, this matches the behaviour documented
1260 in the header file.
1261
74332189
JB
12622019-09-17 Joel Brobecker <brobecker@adacore.com>
1263
1264 * ada-tasks.c (info_task): Remove quoting of the task's name.
1265
f2f24aa9
CB
12662019-09-16 Christian Biesinger <cbiesinger@google.com>
1267
1268 * symfile.c (auto_solib_add): Replace comment with a reference
1269 to the header file.
1270
6a062a93
CB
12712019-09-14 Christian Biesinger <cbiesinger@google.com>
1272
1273 * NEWS: Mention that gdb can now be compiled with Python 3
1274 on Windows.
1275
ec6c8338
AB
12762019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1277
1278 * maint.c (maint_print_section_data::maint_print_section_data):
1279 Force use of 'float log10 (float)' by casting the argument to
1280 float.
1281
aa17805f
AB
12822019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1283
1284 * maint.c: Add 'cmath' include.
1285 (struct maint_print_section_data): New structure.
1286 (print_section_index): New function.
1287 (print_bfd_section_info): Add header comment, small whitespace
1288 cleanup, and update to call new print_section_index function.
1289 (print_objfile_section_info): Likewise.
1290 (maint_obj_section_from_bfd_section): New function.
1291 (print_bfd_section_info_maybe_relocated): New function.
1292 (maintenance_info_sections): Add header comment, always use
1293 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
1294
3dd9bb46
AB
12952019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1296
1297 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
1298 inner scope, add check that the objfile has psymtabs before
1299 checking psymtabs_addrmap.
1300 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
1301
4993045d
PW
13022019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1303
1304 * NEWS: Announce that Ada task names are now shown at more places,
1305 and between quotes (except in info task output).
1306 * gdb/ada-tasks.c (task_to_str): New function.
1307 (display_current_task_id): Call task_to_str.
1308 (task_command_1): Likewise.
1309 (print_ada_task_info): In non-mi mode, Properly align headers and data
1310 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
1311
7a289707
RO
13122019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1313
1314 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
1315 prstatus.pr_lwp.pr_info instead of making it up.
1316
f2aec7f6
CB
13172019-09-11 Christian Biesinger <cbiesinger@google.com>
1318
1319 * auto-load.c (auto_load_expand_dir_vars): Update.
1320 * defs.h (gdb_datadir): Change to std::string.
1321 (python_libdir): Likewise.
1322 (relocate_gdb_directory): Change return type to std::string.
1323 * guile/guile.c (gdbscm_data_directory): Update.
1324 (initialize_scheme_side): Update.
1325 * jit.c (jit_reader_dir): Change to std::string.
1326 (jit_reader_load_command): Update.
1327 * main.c (gdb_datadir): Change to std::string.
1328 (python_libdir): Likewise.
1329 (set_gdb_data_directory): Update.
1330 (relocate_path): Change to return std::string.
1331 (relocate_gdb_directory): Change to return std::string.
1332 (relocate_gdbinit_path_maybe_in_datadir): Update.
1333 (captured_main_1): Update.
1334 * python/python.c (do_start_initialization): Update.
1335 * top.c (show_gdb_datadir): Update.
1336 * xml-syscall.c (xml_init_syscalls_info): Update.
1337 (init_syscalls_info): Update.
1338
9224a013
CB
13392019-09-11 Christian Biesinger <cbiesinger@google.com>
1340
1341 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
1342 out of get_init_files.
1343 (get_init_files): Update.
1344
f48cd836
CB
13452019-09-11 Christian Biesinger <cbiesinger@google.com>
1346
1347 * main.c (get_init_files): Change to use std::string.
1348 (captured_main_1): Update.
1349 (print_gdb_help): Update.
1350
9cab7ecd
AT
13512019-09-11 Ali Tamur <tamur@google.com>
1352
1353 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
1354 implementation.
1355
67547d89
CB
13562019-09-11 Christian Biesinger <cbiesinger@google.com>
1357
1358 * dbxread.c (read_dbx_symtab): Update.
1359 * dwarf2read.c (load_partial_dies): Update.
1360 * mdebugread.c (parse_partial_symbols): Update.
1361 (handle_psymbol_enumerators): Update.
1362 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
1363 * psymtab.c (add_psymbol_to_bcache): Likewise.
1364 (add_psymbol_to_list): Likewise.
1365 * symtab.c (symbol_set_names): Likewise.
1366 * symtab.h (symbol_set_names): Likewise.
1367 * xcoffread.c (scan_xcoff_symtab): Update.
1368
64b2d4a0
TT
13692019-09-11 Tom Tromey <tom@tromey.com>
1370
1371 * symfile-mem.c (symbol_file_add_from_memory): Use
1372 bfd_set_filename.
1373 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
1374 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
1375
3b00ef10
TT
13762019-09-10 Tom Tromey <tromey@adacore.com>
1377
1378 * dwarf-index-write.c (write_psymbols): Extend error message.
1379 (debug_names::insert): Add Ada code.
1380 (debug_names::write_psymbols): Remove Ada check.
1381 (debug_names) <m_string_obstack>: New member.
1382 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
1383 (gdb_index_symbol_name_matcher::matches): Remove.
1384 (mapped_index_base::find_name_components_bounds): Add "lang"
1385 parameter.
1386 (mapped_index_base::build_name_components): Also split names
1387 according to Ada syntax.
1388 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
1389 type of "match_callback".
1390 (check_match, check_find_bounds_finds)
1391 (dw2_expand_symtabs_matching): Update.
1392 (dw2_debug_names_iterator): Add new constructor.
1393 (dw2_debug_names_map_matching_symbols): New function.
1394 (dw2_debug_names_expand_symtabs_matching): Update.
1395 (dwarf2_debug_names_functions): Use
1396 dw2_debug_names_map_matching_symbols.
1397
aa391654
TT
13982019-09-10 Tom Tromey <tromey@adacore.com>
1399
1400 * dwarf2read.c (dw2_get_file_names_reader): Add the
1401 CU's file name to the results.
1402
b054970d
TT
14032019-09-10 Tom Tromey <tromey@adacore.com>
1404
1405 * ada-lang.c (add_nonlocal_symbols): Combine calls to
1406 map_matching_symbols. Update.
1407 * dwarf2read.c (dw2_map_matching_symbols): Update.
1408 * psymtab.c (match_partial_symbol): Change type; update.
1409 (psym_map_matching_symbols): Likewise.
1410 * symfile-debug.c (debug_qf_map_matching_symbols): Change
1411 type; update.
1412 * symfile.h (struct quick_symbol_functions)
1413 <map_matching_symbols>: Change "name" to be a lookup_name_info.
1414 Remove "match".
1415
6a3dbf1b
TT
14162019-09-10 Tom Tromey <tromey@adacore.com>
1417
1418 * psymtab.c (map_block): Remove.
1419 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
1420 * symtab.c (iterate_over_symbols_terminated): New function.
1421 * symtab.c (iterate_over_symbols_terminated): Declare.
1422
6969f124
TT
14232019-09-10 Tom Tromey <tromey@adacore.com>
1424
1425 * ada-lang.c (ada_iterate_over_symbols): Return bool.
1426 * language.h (struct language_defn) <la_iterate_over_symbols>:
1427 Return bool.
1428 * symtab.c (iterate_over_symbols): Return bool.
1429 * symtab.h (iterate_over_symbols): Return bool.
1430
199b4314
TT
14312019-09-10 Tom Tromey <tromey@adacore.com>
1432
1433 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
1434 (add_nonlocal_symbols): Update.
1435 * dwarf2read.c (dw2_map_matching_symbols): Change type.
1436 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
1437 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
1438 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
1439 Change type of "callback". Remove "data".
1440
a084a2a6
AT
1441
14422019-09-09 Ali Tamur <tamur@google.com>
1443
1444 * dwarf2read.c (comp_unit_head): Update comment.
1445 (dwarf2_dwo_name): New function declaration.
1446 (dwarf_unit_type_name): New function declaration.
1447 (read_comp_unit_head): Add support for new compilation units,
1448 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
1449 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
1450 (currently named as "signature") in their header. Also clarify error
1451 messages.
1452 (lookup_dwo_id): New function. Returns the dwo id of the given
1453 compile unit.
1454 (lookup_dwo_unit): Use the new lookup_dwo_id function.
1455 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
1456 functions.
1457 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
1458 (dwarf2_dwo_name): Get the dwo name if present.
1459 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
1460 purposes.
1461
25a2915e
TT
14622019-09-09 Tom Tromey <tom@tromey.com>
1463
1464 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
1465
e4df0874
PW
14662019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1467
1468 * python/python.c (do_start_initialization): Make progname_copy static,
1469 to avoid a leak report.
1470
8634b462
TT
14712019-09-08 Tom Tromey <tom@tromey.com>
1472
1473 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
1474
c7f839cb
SM
14752019-09-07 Simon Marchi <simon.marchi@efficios.com>
1476
1477 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
1478 Change type to gdb::optional<block_enum>.
1479 (dw2_symtab_iter_init): Change block_index parameter type
1480 to gdb::optional<block_enum>.
1481 (dw2_lookup_symbol): Change block_index parameter
1482 type to block_enum.c
1483 (dw2_debug_names_lookup_symbol): Likewise.
1484 * psymtab.c (psym_lookup_symbol): Likewise.
1485 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
1486 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1487 Likewise.
1488
ead0e69a
CB
14892019-09-06 Christian Biesinger <cbiesinger@google.com>
1490
1491 * defs.h (relocate_gdb_directory): Change int to bool in
1492 signature and rename flag to relocatable.
1493 * main.c (relocate_path): Likewise.
1494 (relocate_gdb_directory): Likewise.
1495
b16c44de
AM
14962019-09-06 Alan Modra <amodra@gmail.com>
1497
1498 * coffread.c (coff_symfile_read): Constify filename variable.
1499 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
1500 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
1501 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
1502 * solib.c (reload_shared_libraries_1): Likewise.
1503 * symfile.c (reread_symbols): Likewise.
1504 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
1505 * solib-darwin.c (darwin_bfd_open): Likewise.
1506 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1507
06ff036e
AB
15082019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1509
1510 * psymtab.c (print_partial_symbols): Handle missing domain_enum
1511 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
1512
4e962e74
TT
15132019-09-03 Tom Tromey <tromey@adacore.com>
1514
1515 * ada-valprint.c (ada_val_print_num): Don't recurse for range
1516 types.
1517 (has_negatives): Unbias a range type bound.
1518 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
1519 * gdbtypes.c (operator==): Handle new field.
1520 (create_range_type): Add "bias" parameter.
1521 (create_static_range_type, resolve_dynamic_range): Update.
1522 * gdbtypes.h (struct range_bounds) <bias>: New member.
1523 (create_range_type): Add bias parameter.
1524 * printcmd.c (print_scalar_formatted): Unbias range types.
1525 * value.c (unpack_long): Unbias range types.
1526 (pack_long): Bias range types.
1527
d90b8f26
AH
15282019-09-02 Alan Hayward <alan.hayward@arm.com>
1529
1530 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
1531 probe arguments.
1532
fe01123e
AH
15332019-09-02 Alan Hayward <alan.hayward@arm.com>
1534
1535 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
1536 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
1537 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
1538 (compile_probe_arg): Likewise.
1539 * probe.h (get_argument_count): Likewise.
1540 * solib-svr4.c (solib_event_probe_action): Likewise.
1541 * stap-probe.c (stap_probe::get_argument_count): Likewise.
1542
e661ef01
AH
15432019-09-02 Alan Hayward <alan.hayward@arm.com>
1544
1545 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
1546 code to here...
1547 (svr4_create_solib_event_breakpoints): ...from here.
1548
47a536d9
SDJ
15492019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
1550
1551 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
1552 suffix from warning message.
1553
d6a00eba
TT
15542019-08-30 Tom Tromey <tom@tromey.com>
1555
1556 * tui/tui-winsource.h (struct tui_source_window_base)
1557 <refresh_all>: Don't declare.
1558 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
1559 Remove.
1560 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
1561 tui_show_locator_content.
1562 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
1563 declare.
1564 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
1565 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
1566 declare.
1567
55b2657b
TT
15682019-08-30 Tom Tromey <tom@tromey.com>
1569
1570 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
1571
12a8555a
TT
15722019-08-30 Tom Tromey <tom@tromey.com>
1573
1574 * tui/tui-stack.c (_initialize_tui_stack): Move later.
1575 Remove unnecessary forward declarations.
1576
900ac242
TT
15772019-08-30 Tom Tromey <tom@tromey.com>
1578
1579 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
1580 rerender.
1581 (tui_update_locator_fullname, tui_show_frame_info): Don't call
1582 tui_show_locator_content.
1583
99ab33fb
TT
15842019-08-30 Tom Tromey <tom@tromey.com>
1585
1586 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
1587 (tui_locator_window::rerender): Rewrite using body of previous
1588 tui_show_locator_content.
1589
e594a5d1
TT
15902019-08-30 Tom Tromey <tom@tromey.com>
1591
1592 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
1593 set_locator_fullname>: New methods.
1594 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1595 Rename from tui_set_locator_fullname.
1596 (tui_locator_window::set_locator_info): Rename from
1597 tui_set_locator_info. Return bool.
1598 (tui_update_locator_fullname, tui_show_frame_info): Update.
1599
715bb467
TT
16002019-08-30 Tom Tromey <tom@tromey.com>
1601
1602 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
1603
772f3f03
TT
16042019-08-30 Tom Tromey <tom@tromey.com>
1605
1606 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
1607 call touchwin.
1608
108e13ab
TT
16092019-08-30 Tom Tromey <tom@tromey.com>
1610
1611 * tui/tui-wingeneral.c (box_win): Assume win_info and
1612 win_info->handle cannot be NULL.
1613
cdaa6eb4
TT
16142019-08-30 Tom Tromey <tom@tromey.com>
1615
1616 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
1617 refresh_window>: Declare.
1618 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
1619 resize.
1620 (tui_data_item_window::rerender): Rename from
1621 tui_display_register.
1622 (tui_data_item_window::refresh_window): New method.
1623 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
1624 no-op.
1625
89df7f90
TT
16262019-08-30 Tom Tromey <tom@tromey.com>
1627
1628 * tui/tui-regs.h (struct tui_data_window) <regs_content,
1629 regs_column_count, current_group>: Move later. Now private.
1630 <get_current_group>: New method.
1631 * tui/tui-regs.c (tui_reg_command): Update.
1632 * tui/tui-layout.c (tui_set_layout): Update.
1633
1bf2866a
TT
16342019-08-30 Tom Tromey <tom@tromey.com>
1635
1636 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1637 (tui_data_window::rerender): Don't call
1638 check_and_display_highlight_if_needed.
1639 (tui_data_window::refresh_all): Remove call to
1640 erase_data_content.
1641
0670413d
TT
16422019-08-30 Tom Tromey <tom@tromey.com>
1643
1644 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1645 (tui_data_window::display_registers_from)
1646 (tui_data_window::display_reg_element_at_line)
1647 (tui_data_window::display_registers_from_line): Remove checks of
1648 "empty".
1649
18bb55c7
TT
16502019-08-30 Tom Tromey <tom@tromey.com>
1651
1652 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
1653 Don't declare.
1654 * tui/tui-regs.c (tui_data_window::show_registers): Call
1655 rerender.
1656 (tui_data_window::rerender): Rename from display_all_data.
1657 (tui_data_window::rerender): Remove old implementation.
1658
1f6d2f10
TT
16592019-08-30 Tom Tromey <tom@tromey.com>
1660
1661 * tui/tui-regs.c (tui_data_window::display_all_data): Change
1662 text.
1663 * tui/tui-data.h (NO_DATA_STRING): Remove define.
1664
16d01f9c
BW
16652019-08-29 Bernhard Wodok <barto@gmx.net>
1666 Sergio Durigan Junior <sergiodj@redhat.com>
1667
1668 PR win32/24284
1669 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
1670
d8f27c60
AB
16712019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1672
1673 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
1674 when searching for types.
1675
1f20c35e
AB
16762019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1677
1678 * f-lang.c (f_language_defn): Use f_print_typedef.
1679 * f-lang.h (f_print_typedef): Declare.
1680 * f-typeprint.c (f_print_typedef): Define.
1681
550105b7
CB
16822019-08-27 Christian Biesinger <cbiesinger@google.com>
1683
1684 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
1685
4acfdd20
AB
16862019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
1687
1688 * cli/cli-utils.c (info_print_options_defs): Delete.
1689 (make_info_print_options_def_group): Delete.
1690 (extract_info_print_options): Delete.
1691 (info_print_command_completer): Delete.
1692 (info_print_args_help): Add extra parameter, and optionally
1693 include text about -n flag.
1694 * cli/cli-utils.h (struct info_print_options): Delete.
1695 (extract_info_print_options): Delete declaration.
1696 (info_print_command_completer): Delete declaration.
1697 (info_print_args_help): Add extra parameter, extend header
1698 comment.
1699 * python/python.c (gdbpy_rbreak): Pass additional parameter to
1700 search_symbols.
1701 * stack.c (struct info_print_options): New type.
1702 (info_print_options_defs): New file scoped variable.
1703 (make_info_print_options_def_group): New static function.
1704 (info_print_command_completer): New static function.
1705 (info_locals_command): Update to use new local functions.
1706 (info_args_command): Likewise.
1707 (_initialize_stack): Add extra parameter to calls to
1708 info_print_args_help.
1709 * symtab.c (search_symbols): Add extra parameter, use this to
1710 possibly excluse non-debug symbols.
1711 (symtab_symbol_info): Add extra parameter, which is passed on to
1712 search_symbols.
1713 (struct info_print_options): New type.
1714 (info_print_options_defs): New file scoped variable.
1715 (make_info_print_options_def_group): New static function.
1716 (info_print_command_completer): New static function.
1717 (info_variables_command): Update to use local functions, and pass
1718 extra parameter through to symtab_symbol_info.
1719 (info_functions_command): Likewise.
1720 (info_types_command): Pass additional argument through to
1721 symtab_symbol_info.
1722 (rbreak_command): Pass extra argument to search_symbols.
1723 (_initialize_symtab): Add extra arguments for calls to
1724 info_print_args_help, and update help text for 'info variables',
1725 'whereis', and 'info functions' commands.
1726 * symtab.h (search_symbols): Add extra argument to declaration.
1727 * NEWS: Mention new flags.
1728
9aa55206
CB
17292019-08-26 Christian Biesinger <cbiesinger@google.com>
1730
1731 * symtab.c (lookup_static_symbol): Call the new function (and move
1732 it down to be next to lookup_global_symbol).
1733 (struct global_sym_lookup_data): Add block_enum member and rename to...
1734 (struct global_or_static_sym_lookup_data): ...this.
1735 (lookup_symbol_global_iterator_cb): Pass block_index instead of
1736 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
1737 (lookup_symbol_global_or_static_iterator_cb): ...this.
1738 (lookup_global_or_static_symbol): New function.
1739 (lookup_global_symbol): Call new function.
1740
5c31b358
TV
17412019-08-26 Tom de Vries <tdevries@suse.de>
1742
1743 PR c++/24852
1744 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
1745 when pc_probe.prob == NULL.
1746
23c13d42
SM
17472019-08-25 Simon Marchi <simon.marchi@efficios.com>
1748
1749 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
1750 variable symbol_linkage to symbol_linkage_.
1751
beadd3e8
SM
17522019-08-25 Simon Marchi <simon.marchi@efficios.com>
1753
1754 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
1755 represent whether the symbol is static, dynamic, or we don't
1756 know.
1757
e3ec872f
YS
17582019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
1759
1760 * gdb/rx-tdep.c (rx_register_names): New.
1761 (rx_register_name): Delete.
1762 (rx_psw_type): Delete.
1763 (rx_fpsw_type): Delete.
1764 (rx_register_type): Delete.
1765 (rx_gdbarch_init): Convert target-descriptions.
1766 (_initialize_rx_tdep): Add initialize_tdesc_rx.
1767 * gdb/features/Makefile: Add rx.xml.
1768 * gdb/features/rx.xml: New.
1769 * gdb/features/rx.c: Generated.
1770 * gdb/NEWS: Mention target description support.
1771
d0509ba4
CB
17722019-08-22 Christian Biesinger <cbiesinger@google.com>
1773
1774 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
1775 *slot_ptr.
1776
2d41fa11
SDJ
17772019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1778
1779 * configure.ac: Don't check for 'dlfcn.h' (moved to
1780 gdbsupport/common.m4).
1781 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
1782 'gdbsupport/'.
1783 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
1784 * compile/compile-c-support.c: Include
1785 'gdbsupport/gdb-dlfcn.h'.
1786 * gdbsupport/common.m4: Check for 'dlfcn.h'.
1787 * gdb-dlfcn.c: Move to...
1788 * gdbsupport/gdb-dlfcn.c: ... here.
1789 * gdb-dlfcn.h: Move to...
1790 * gdbsupport/gdb-dlfcn.h: ... here.
1791
de8af808
SL
17922019-08-23 Sandra Loosemore <sandra@codesourcery.com>
1793
1794 * nios2-tdep.c (struct reg_value): Improve comments. Make
1795 the offset field signed.
1796
27204489
CB
17972019-08-22 Christian Biesinger <cbiesinger@google.com>
1798
1799 * python/lib/gdb/__init__.py (_execute_file): New function.
1800 * python/python.c (python_run_simple_file): Call gdb._execute_file
1801 on Windows.
1802
43771869
AB
18032019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
1804
1805 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
1806 all uses as this was never set to anything but a zero value.
1807
26c957f1
PA
18082019-08-21 Bogdan Harjoc <harjoc@gmail.com>
1809
1810 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
1811
c07aae6e
CB
18122019-08-21 Christian Biesinger <cbiesinger@google.com>
1813
1814 * tui/tui-data.h (tui_gen_win_info): Add an =default
1815 move constructor, required by some GCC versions.
1816
3960cb7a
JF
18172019-08-21 Jinke Fan <fanjinke51@yeah.net>
1818
1819 * go32-nat.c (go32_sysinfo): Add hygon_p.
1820
04c72a68
TT
18212019-08-20 Tom Tromey <tom@tromey.com>
1822
1823 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
1824 line_from_reg_element_no, first_reg_element_no_inline,
1825 display_all_data, delete_data_content_windows,
1826 erase_data_content>: Now private.
1827
072272ce
TT
18282019-08-20 Tom Tromey <tom@tromey.com>
1829
1830 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
1831 (tui_unhighlight_win, tui_highlight_win)
1832 (tui_win_info::make_window): Update.
1833 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
1834
973961bd
TT
18352019-08-20 Tom Tromey <tom@tromey.com>
1836
1837 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1838 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1839 (MAX_PID_WIDTH): Move to tui-stack.c.
1840 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1841 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1842 (MAX_PID_WIDTH): Move from tui-data.h.
1843
ab0e1f1a
TT
18442019-08-20 Tom Tromey <tom@tromey.com>
1845
1846 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
1847 * tui/tui-wingeneral.c (box_win): Change type of win_info.
1848 (box_win): Update.
1849 (tui_gen_win_info::make_window): Rename from tui_make_window.
1850 (tui_win_info::make_window): New method.
1851 (tui_gen_win_info::make_visible): Update.
1852 * tui/tui-source.c (tui_source_window::set_contents): Update.
1853 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1854 (tui_data_window::display_registers_from): Update.
1855 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1856 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
1857 Declare.
1858 <can_box>: Remove.
1859 <title>: Remove.
1860 (struct tui_win_info) <make_window>: Declare.
1861 <can_box>: Now virtual.
1862 <title>: New member.
1863 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
1864 * tui/tui-command.c (tui_cmd_window::resize): Update.
1865
100c2bf3
TT
18662019-08-20 Tom Tromey <tom@tromey.com>
1867
1868 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
1869 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1870 (tui_data_window::check_register_values): Update.
1871
fa4dc567
TT
18722019-08-20 Tom Tromey <tom@tromey.com>
1873
1874 * tui/tui-regs.h (struct tui_data_window): Use
1875 DISABLE_COPY_AND_ASSIGN.
1876 <regs_content>: Change type, removing unique_ptr.
1877 <tui_data_window>: Add move constructor.
1878 * tui/tui-regs.c (tui_data_window::show_registers)
1879 (tui_data_window::show_register_group)
1880 (tui_data_window::display_registers_from)
1881 (tui_data_window::display_registers_from)
1882 (tui_data_window::first_data_item_displayed)
1883 (tui_data_window::delete_data_content_windows)
1884 (tui_data_window::rerender, tui_data_window::refresh_window)
1885 (tui_data_window::check_register_values): Update.
1886
ca02d7c8
TT
18872019-08-20 Tom Tromey <tom@tromey.com>
1888
1889 * tui/tui-regs.h (struct tui_data_window) <show_registers,
1890 show_register_group>: Declare.
1891 (tui_show_register_group): Don't declare.
1892 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
1893 tui_show_registers.
1894 (tui_data_window::show_register_group): Rename from
1895 tui_show_register_group.
1896 (tui_data_window::check_register_values, tui_reg_command):
1897 Update.
1898 * tui/tui-layout.c (tui_set_layout): Update.
1899
63356bfd
TT
19002019-08-20 Tom Tromey <tom@tromey.com>
1901
1902 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
1903 Declare.
1904 (tui_check_register_values): Don't declare.
1905 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
1906 from tui_check_register_values.
1907 * tui/tui-hooks.c (tui_register_changed): Update.
1908
42cc14a7
TT
19092019-08-20 Tom Tromey <tom@tromey.com>
1910
1911 * tui/tui-regs.c (tui_reg_layout): Move later.
1912 (tui_show_registers): Don't enable TUI mode or change layout.
1913
b9ad3686
TT
19142019-08-20 Tom Tromey <tom@tromey.com>
1915
1916 * tui/tui-regs.h (struct tui_data_item_window)
1917 <~tui_data_item_window>: Remove.
1918 <content>: Now a unique_xmalloc_ptr.
1919 * tui/tui-regs.c (tui_register_format): Return a
1920 unique_xmalloc_ptr.
1921 (tui_get_register): Update.
1922 (~tui_data_item_window): Remove.
1923 (tui_data_window::display_registers_from, tui_display_register):
1924 Update.
1925 * tui/tui-io.h (tui_expand_tabs): Update.
1926 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
1927 Remove "col" parameter.
1928
8e114aab
TT
19292019-08-20 Tom Tromey <tom@tromey.com>
1930
1931 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
1932 field.
1933 * tui/tui-regs.c (~tui_data_item_window): Update.
1934
1a4f81dd
TT
19352019-08-20 Tom Tromey <tom@tromey.com>
1936
1937 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
1938 earlier.
1939
0f8d8876
TT
19402019-08-20 Tom Tromey <tom@tromey.com>
1941
1942 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
1943
605dc2c2
TT
19442019-08-20 Tom Tromey <tom@tromey.com>
1945
1946 * tui/tui-source.h (struct tui_source_window): Update.
1947 * tui/tui-regs.c (tui_show_registers): Update.
1948 * tui/tui-disasm.h (struct tui_disasm_window): Update.
1949 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
1950 (NO_REGS_STRING): Remove defines.
1951
aedbe3bb
CM
19522019-08-20 Conrad Meyer <cem@FreeBSD.org>
1953
1954 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
1955 unnecessary thread walk if remote doesn't support the packet.
1956
7ce8f214
TT
19572019-08-19 Tom Tromey <tromey@adacore.com>
1958
1959 * python/py-value.c (value_has_field): Fix indentation.
1960
f21c2bd7
TT
19612019-08-19 Tom Tromey <tromey@adacore.com>
1962
1963 * printcmd.c (do_one_display, info_display_command): Update.
1964 * block.h (contained_in): Return bool. Add allow_nested
1965 parameter.
1966 * block.c (contained_in): Return bool. Add allow_nested
1967 parameter.
1968
d806ea2d
TT
19692019-08-19 Tom Tromey <tom@tromey.com>
1970
1971 * configure: Rebuild.
1972 * configure.ac: Disallow the combination of -static-libstdc++ and
1973 source highlight.
1974 * source-cache.c (get_language_name): Handle rust.
1975 (source_cache::get_source_lines): Ignore highlighting exceptions.
1976
398fdd60
TT
19772019-08-16 Tom Tromey <tom@tromey.com>
1978
1979 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
1980 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
1981 (struct tui_source_window_base) <make_visible, refresh_window,
1982 resize>: Remove methods.
1983 <execution_info>: Remove field.
1984 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
1985 (tui_show_source_line, tui_source_window_base)
1986 (~tui_source_window_base): Update.
1987 (tui_source_window_base::resize)
1988 (tui_source_window_base::make_visible)
1989 (tui_source_window_base::refresh_window): Remove.
1990 (tui_source_window_base::update_exec_info): Update.
1991 * tui/tui-source.c (tui_source_window::set_contents): Update.
1992 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1993
e699d331
TT
19942019-08-16 Tom Tromey <tom@tromey.com>
1995
1996 * tui/tui-hooks.c (tui_remove_hooks): Don't set
1997 deprecated_query_hook.
1998
bb01dbfc
TT
19992019-08-16 Tom Tromey <tom@tromey.com>
2000
2001 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2002 (tui_update_source_windows_with_line): Update.
2003 * tui/tui-source.h (struct tui_source_window)
2004 <show_symtab_source>: Declare.
2005 (tui_show_symtab_source): Don't declare.
2006 * tui/tui-source.c (tui_show_symtab_source): Rename from
2007 tui_show_symtab_source.
2008
81c82c4b
TT
20092019-08-16 Tom Tromey <tom@tromey.com>
2010
2011 * tui/tui-winsource.h (struct tui_source_window_base)
2012 <set_contents>: Declare.
2013 * tui/tui-winsource.c
2014 (tui_source_window_base::update_source_window_as_is): Update.
2015 * tui/tui-source.h (struct tui_source_window) <set_contents>:
2016 Declare.
2017 (tui_set_source_content): Don't declare.
2018 * tui/tui-source.c (tui_source_window::set_contents): Rename from
2019 tui_set_source_content.
2020 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
2021 Declare.
2022 (tui_set_disassem_content): Don't declare.
2023 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
2024 tui_set_disassem_content.
2025
2ddaf614
TT
20262019-08-16 Tom Tromey <tom@tromey.com>
2027
2028 * tui/tui-winsource.h (struct tui_source_window_base)
2029 <update_breakpoint_info>: Declare.
2030 (tui_update_breakpoint_info): Don't declare.
2031 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
2032 (tui_update_all_breakpoint_info): Update.
2033 (tui_source_window_base::update_breakpoint_info): Rename from
2034 tui_update_breakpoint_info.
2035 (tui_source_window_base::update_exec_info): Update.
2036
017f9828
TT
20372019-08-16 Tom Tromey <tom@tromey.com>
2038
2039 * tui/tui-winsource.h (struct tui_source_window_base)
2040 <update_source_window>: Declare.
2041 (tui_update_source_window): Don't declare.
2042 * tui/tui-winsource.c
2043 (tui_source_window_base::update_source_window): Rename from
2044 tui_update_source_window.
2045 (tui_source_window_base::rerender): Update.
2046 * tui/tui-source.c (tui_source_window::maybe_update): Update.
2047 * tui/tui-disasm.c (tui_show_disassem)
2048 (tui_show_disassem_and_update_source)
2049 (tui_disasm_window::maybe_update): Update.
2050
ed8358e9
TT
20512019-08-16 Tom Tromey <tom@tromey.com>
2052
2053 * tui/tui-winsource.h (struct tui_source_window_base)
2054 <update_source_window_as_is>: Declare.
2055 (tui_update_source_window_as_is): Don't declare.
2056 * tui/tui-winsource.c (tui_update_source_window): Update
2057 (tui_source_window_base::update_source_window_as_is): Rename from
2058 tui_update_source_window_as_is.
2059 (tui_source_window_base::refill): Update.
2060 * tui/tui-source.c (tui_show_symtab_source): Update.
2061 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
2062 Update.
2063
20149b6b
TT
20642019-08-16 Tom Tromey <tom@tromey.com>
2065
2066 * tui/tui-winsource.h (tui_update_source_window)
2067 (tui_update_source_window_as_is): Remove "noerror" parameter.
2068 * tui/tui-winsource.c (tui_update_source_window)
2069 (tui_update_source_window_as_is): Remove "noerror" parameter.
2070 (tui_update_source_windows_with_addr)
2071 (tui_update_source_windows_with_line)
2072 (tui_source_window_base::rerender)
2073 (tui_source_window_base::refill): Update.
2074 * tui/tui-source.h (tui_set_source_content)
2075 (tui_show_symtab_source): Remove "noerror" parameter.
2076 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
2077 parameter.
2078 (tui_show_symtab_source): Likewise.
2079 (tui_source_window::maybe_update): Update.
2080 * tui/tui-disasm.c (tui_show_disassem)
2081 (tui_show_disassem_and_update_source)
2082 (tui_disasm_window::do_scroll_vertical)
2083 (tui_disasm_window::maybe_update): Update.
2084
2d83e710
TT
20852019-08-16 Tom Tromey <tom@tromey.com>
2086
2087 * tui/tui.c (tui_is_window_visible): Update.
2088 * tui/tui-wingeneral.c (tui_make_window)
2089 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
2090 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
2091 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
2092 (tui_set_win_height_command, parse_scrolling_args): Update.
2093 * tui/tui-source.c (tui_source_window::style_changed): Update.
2094 * tui/tui-regs.c (tui_show_registers)
2095 (tui_data_window::first_data_item_displayed)
2096 (tui_data_window::delete_data_content_windows)
2097 (tui_check_register_values, tui_reg_command): Update.
2098 * tui/tui-disasm.c (tui_show_disassem): Update.
2099 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
2100 method.
2101 <is_visible>: Remove field.
2102 * tui/tui-data.c (tui_next_win, tui_prev_win)
2103 (tui_delete_invisible_windows): Update.
2104
d4ab829a
TT
21052019-08-16 Tom Tromey <tom@tromey.com>
2106
2107 * tui/tui-winsource.h (struct tui_source_window_base)
2108 <m_has_locator>: Remove.
2109 * tui/tui-layout.c (show_source_disasm_command, show_data)
2110 (show_source_or_disasm_and_command): Update.
2111
aa7ca1bb
AH
21122019-08-16 Alan Hayward <alan.hayward@arm.com>
2113
2114 * NEWS (Other MI changes): New subsection.
2115 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
2116 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
2117 * arch-utils.c (default_get_pc_address_flags): New function.
2118 * arch-utils.h (default_get_pc_address_flags): New declaration.
2119 * gdbarch.sh: Add get_pc_address_flags.
2120 * gdbarch.c: Regenerate.
2121 * gdbarch.h: Likewise.
2122 * stack.c (print_pc): New function.
2123 (print_frame_info) (print_frame): Call print_pc.
2124
6eac171f
TV
21252019-08-16 Tom de Vries <tdevries@suse.de>
2126
2127 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
2128 print_objfile_section_info.
2129
3df505f6
TT
21302019-08-15 Tom Tromey <tom@tromey.com>
2131
2132 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
2133 calling update_cmdwin_start_line.
2134 * tui/tui-winsource.h (struct tui_source_window_base)
2135 <do_make_visible_with_new_height, set_new_height>: Don't declare.
2136 <rerender>: Declare.
2137 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
2138 Call rerender.
2139 (tui_source_window_base::set_new_height): Remove.
2140 (tui_source_window_base::rerender): Rename from
2141 do_make_visible_with_new_height.
2142 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
2143 resize method.
2144 (tui_win_info::make_invisible_and_set_new_height)
2145 (tui_win_info::make_visible_with_new_height): Remove.
2146 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
2147 Declare.
2148 * tui/tui-stack.c (tui_locator_window::rerender): New method.
2149 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
2150 do_make_visible_with_new_height>: Don't declare.
2151 <rerender>: Declare.
2152 * tui/tui-regs.c (tui_data_window::rerender): Rename from
2153 set_new_height.
2154 (tui_data_window::do_make_visible_with_new_height): Remove.
2155 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
2156 call tui_show_locator_content.
2157 (tui_gen_win_info::resize): Call rerender.
2158 (show_source_or_disasm_and_command): Don't call
2159 tui_show_locator_content.
2160 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
2161 method.
2162 (struct tui_win_info) <rerender>: Declare.
2163 <set_new_height, make_invisible_and_set_new_height,
2164 make_visible_with_new_height>: Don't declare.
2165 * tui/tui-data.c (tui_win_list::rerender): New method.
2166 * tui/tui-command.h (struct tui_cmd_window)
2167 <do_make_visible_with_new_height>: Don't declare.
2168 * tui/tui-command.c
2169 (tui_cmd_window::do_make_visible_with_new_height): Remove.
2170
272560b5
TT
21712019-08-15 Tom Tromey <tromey@adacore.com>
2172
2173 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
2174 * ada-lang.c (ada_enum_name): Likewise.
2175
08235187
CB
21762019-08-15 Christian Biesinger <cbiesinger@google.com>
2177
2178 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
2179 leading underscore.
2180 (GdbOutputErrorFile): Likewise.
2181 (global scope): Adjust constructor calls to GdbOutput{,Error}File
2182 accordingly.
2183 (execute_unwinders): Rename to have a leading underscore.
2184 (auto_load_packages): Likewise.
2185 (global scope): Adjust call to auto_load_packages accordingly.
2186 (GdbSetPythonDirectory): Likewise.
2187 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
2188 instead of execute_unwinders.
2189
db502012
TT
21902019-08-15 Tom Tromey <tom@tromey.com>
2191
2192 * tui/tui-layout.c (show_layout, show_source_disasm_command)
2193 (show_data): Don't change window visibility.
2194 (tui_gen_win_info::resize): Remove special case for command
2195 window. Use wresize, when available.
2196 (show_source_or_disasm_and_command): Don't change window
2197 visibility.
2198 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
2199 <make_visible>: New method.
2200 * tui/tui-command.c (tui_cmd_window::resize): New method.
2201
3891b65e
TT
22022019-08-15 Tom Tromey <tom@tromey.com>
2203
2204 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
2205 (struct tui_source_windows): New.
2206 * tui/tui-winsource.c (tui_display_main): Update.
2207 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2208 (new_height_ok, parse_scrolling_args): Update.
2209 * tui/tui-layout.c (show_layout, show_data): Update.
2210 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
2211 (tui_add_to_source_windows): Don't declare.
2212 * tui/tui-data.c (source_windows, tui_source_windows)
2213 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
2214
ee556432
TT
22152019-08-15 Tom Tromey <tom@tromey.com>
2216
2217 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
2218 Rename from reset.
2219 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
2220 * tui/tui-layout.c (show_source_disasm_command, show_data):
2221 Update.
2222 (tui_gen_win_info::resize): Rename.
2223 (show_source_or_disasm_and_command): Update.
2224 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
2225 reset.
2226
46f438e3
TT
22272019-08-15 Tom Tromey <tom@tromey.com>
2228
2229 * tui/tui-stack.c (tui_initialize_static_data): Remove.
2230 * tui/tui-interp.c (tui_interp::init): Don't call
2231 tui_initialize_static_data.
2232 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
2233
f4ce562c
TT
22342019-08-15 Tom Tromey <tom@tromey.com>
2235
2236 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
2237 examine tui_win_list.
2238
c398c3d0
TT
22392019-08-15 Tom Tromey <tom@tromey.com>
2240
2241 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
2242 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
2243 tui_clear_source_content.
2244 (tui_clear_source_content): Remove.
2245 (tui_source_window_base::do_erase_source_content): Hoist call to
2246 content.clear().
2247 * tui/tui-stack.c (tui_show_frame_info): Don't call
2248 tui_clear_source_content.
2249
e25d2004
TT
22502019-08-15 Tom Tromey <tom@tromey.com>
2251
2252 * tui/tui-winsource.h (struct tui_source_window_base)
2253 <do_erase_source_content>: New method.
2254 <erase_source_content>: New method.
2255 (tui_erase_source_content): Don't declare.
2256 * tui/tui-winsource.c (tui_clear_source_content): Update.
2257 (tui_source_window_base::do_erase_source_content): Rename from
2258 tui_erase_source_content.
2259 (tui_source_window_base::show_source_content): Update.
2260 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2261 * tui/tui-source.h (struct tui_source_window)
2262 <erase_source_content>: New method.
2263 * tui/tui-disasm.h (struct tui_disasm_window)
2264 <erase_source_content>: New method.
2265
002f15c2
TT
22662019-08-15 Tom Tromey <tom@tromey.com>
2267
2268 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
2269 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
2270 constructor.
2271 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
2272 * tui/tui-source.c (tui_set_source_content): Update.
2273 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2274
c9033fe8
TT
22752019-08-15 Tom Tromey <tom@tromey.com>
2276
2277 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
2278 * tui/tui-winsource.c (tui_line_is_displayed): Move to
2279 tui-source.c.
2280 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
2281 Declare.
2282 * tui/tui-source.c (tui_source_window::line_is_displayed): New
2283 method.
2284 (tui_source_window::maybe_update): Update.
2285
088f37dd
TT
22862019-08-15 Tom Tromey <tom@tromey.com>
2287
2288 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
2289 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
2290 tui-disasm.c.
2291 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
2292 Declare.
2293 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
2294 method.
2295 (tui_disasm_window::maybe_update): Update.
2296
a54700c6
TT
22972019-08-15 Tom Tromey <tom@tromey.com>
2298
2299 * tui/tui-winsource.h (struct tui_source_window_base)
2300 <maybe_update>: Declare.
2301 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
2302 method.
2303 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
2304 Declare.
2305 * tui/tui-source.c (tui_source_window::maybe_update): New method.
2306 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
2307 Declare.
2308 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
2309
e2a678a5
TT
23102019-08-15 Tom Tromey <tom@tromey.com>
2311
2312 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
2313
f2dda477
TT
23142019-08-15 Tom Tromey <tom@tromey.com>
2315
2316 * tui/tui-wingeneral.c: Include tui-stack.h.
2317 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
2318 (struct tui_locator_window): Move from tui-data.h.
2319 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
2320 (tui_initialize_static_data): Move from tui-data.c.
2321 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
2322 (struct tui_locator_window): Move to tui-stack.c.
2323 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
2324 (tui_initialize_static_data): Move to tui-stack.c.
2325
ed4a1084
TT
23262019-08-15 Tom Tromey <tom@tromey.com>
2327
2328 * tui/tui-layout.c (show_source_disasm_command)
2329 (show_source_or_disasm_and_command): Use make_visible method, not
2330 tui_make_window.
2331 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
2332 Remove.
2333
65962b20
TT
23342019-08-15 Tom Tromey <tom@tromey.com>
2335
2336 * tui/tui-wingeneral.h (tui_make_window): Update.
2337 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
2338 parameter.
2339 (tui_gen_win_info::make_visible): Update.
2340 * tui/tui-regs.c (tui_data_window::display_registers_from):
2341 Update.
2342 * tui/tui-layout.c (show_source_disasm_command)
2343 (show_source_or_disasm_and_command): Update.
2344 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
2345 (enum tui_box): Remove.
2346 (struct tui_win_info) <can_box>: New method.
2347 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
2348 method.
2349
2208ee91
TV
23502019-08-15 Tom de Vries <tdevries@suse.de>
2351
2352 * linux-nat-trad.c: Include gdbarch.h.
2353
75faf5c4
AH
23542019-08-14 Alan Hayward <alan.hayward@arm.com>
2355
2356 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
2357 register sizes.
2358
b1c896b3
TT
23592019-08-14 Tom Tromey <tromey@adacore.com>
2360
2361 * darwin-nat.c: Include gdbarch.h.
2362 * darwin-nat-info.c: Include gdbarch.h.
2363
6405cd73
TT
23642019-08-13 Tom Tromey <tom@tromey.com>
2365
2366 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
2367 Remove.
2368 * tui/tui-data.c (tui_initialize_static_data): Update.
2369
5216580d
TT
23702019-08-13 Tom Tromey <tom@tromey.com>
2371
2372 * tui/tui-winsource.h (struct tui_exec_info_window)
2373 <~tui_exec_info_window, maybe_allocate_content, get_content,
2374 m_content>: Remove.
2375 (struct tui_source_window_base) <set_exec_info_content,
2376 show_exec_info_content>: Don't declare.
2377 * tui/tui-winsource.c
2378 (tui_exec_info_window::maybe_allocate_content): Remove.
2379 (tui_source_window_base::update_exec_info): Rename from
2380 set_exec_info_content.
2381 (tui_source_window_base::show_exec_info_content)
2382 (tui_source_window_base::update_exec_info): Remove.
2383
93858ad3
TT
23842019-08-13 Tom Tromey <tom@tromey.com>
2385
2386 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
2387 declare.
2388 * tui/tui-winsource.c (tui_update_source_window_as_is)
2389 (tui_update_source_windows_with_addr, tui_erase_source_content):
2390 Update.
2391 (tui_clear_exec_info_content): Remove.
2392
e321e7ce
TT
23932019-08-13 Tom Tromey <tom@tromey.com>
2394
2395 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
2396 declare.
2397 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
2398 call tui_erase_exec_info_content.
2399 (tui_clear_exec_info_content): Rename from
2400 tui_erase_exec_info_content.
2401 (tui_clear_exec_info_content): Delete.
2402
8270ac62
TT
24032019-08-13 Tom Tromey <tom@tromey.com>
2404
2405 * tui/tui-winsource.h (struct tui_source_window_base)
2406 <show_exec_info_content>: Declare.
2407 (tui_show_exec_info_content): Don't declare.
2408 * tui/tui-winsource.c
2409 (tui_source_window_base::show_exec_info_content): Rename from
2410 tui_show_exec_info_content.
2411 (tui_source_window_base::update_exec_info): Update.
2412
7b56485d
TT
24132019-08-13 Tom Tromey <tom@tromey.com>
2414
2415 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
2416 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
2417 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
2418 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
2419 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
2420 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
2421 ... here.
2422
7ba913dc
TT
24232019-08-13 Tom Tromey <tom@tromey.com>
2424
2425 * tui/tui-winsource.h (struct tui_source_window_base)
2426 <update_exec_info>: Declare.
2427 (tui_update_exec_info): Don't declare.
2428 * tui/tui-winsource.c (tui_update_source_window_as_is)
2429 (tui_source_window_base::refresh_all)
2430 (tui_update_all_breakpoint_info): Update.
2431 (tui_source_window_base::update_exec_info): Rename from
2432 tui_update_exec_info.
2433 * tui/tui-stack.c (tui_show_frame_info): Update.
2434
37a4a131
TT
24352019-08-13 Tom Tromey <tom@tromey.com>
2436
2437 * tui/tui-winsource.h (struct tui_source_window_base)
2438 <set_exec_info_content>: Declare.
2439 (tui_set_exec_info_content): Don't declare.
2440 * tui/tui-winsource.c
2441 (tui_source_window_base::set_exec_info_content): Rename from
2442 tui_set_exec_info_content.
2443 (tui_update_exec_info): Update.
2444
0bd27e07
TT
24452019-08-13 Tom Tromey <tom@tromey.com>
2446
2447 * tui/tui-winsource.h (struct tui_source_window_base)
2448 <show_source_content>: Declare.
2449 (tui_show_source_content): Don't declare.
2450 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2451 (tui_source_window_base::show_source_content): Rename from
2452 tui_show_source_content.
2453 (tui_source_window_base::refresh_all): Update.
2454 * tui/tui-layout.c (show_source_disasm_command)
2455 (show_source_or_disasm_and_command): Update.
2456
b4ef5aeb
TT
24572019-08-13 Tom Tromey <tom@tromey.com>
2458
2459 * tui/tui-winsource.c (tui_erase_source_content)
2460 (tui_show_source_content, tui_source_window_base::refresh_all):
2461 Update.
2462 * tui/tui-wingeneral.h
2463 (tui_check_and_display_highlight_if_needed): Don't declare.
2464 * tui/tui-wingeneral.c
2465 (tui_win_info::check_and_display_highlight_if_needed): Rename from
2466 check_and_display_highlight_if_needed.
2467 * tui/tui-win.c (tui_rehighlight_all)
2468 (tui_win_info::make_visible_with_new_height): Update.
2469 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2470 (tui_data_window::erase_data_content)
2471 (tui_data_window::display_all_data): Update.
2472 * tui/tui-data.h (struct tui_win_info)
2473 <check_and_display_highlight_if_needed>: Declare.
2474
fede5273
TT
24752019-08-13 Tom Tromey <tom@tromey.com>
2476
2477 * tui/tui-win.c (tui_resize_all): Call
2478 tui_delete_invisible_windows.
2479 * tui/tui-layout.c (show_layout): Call
2480 tui_delete_invisible_windows.
2481 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
2482 * tui/tui-data.c (tui_delete_invisible_windows): New function.
2483
22c3f490
TT
24842019-08-13 Tom Tromey <tom@tromey.com>
2485
2486 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
2487 tui_add_win_to_layout.
2488
16cb7910
TT
24892019-08-13 Tom Tromey <tom@tromey.com>
2490
2491 * tui/tui-layout.h (tui_default_win_height): Don't declare.
2492 * tui/tui-layout.c (tui_default_win_height): Now static.
2493
cc0c3ffb
TT
24942019-08-13 Tom Tromey <tom@tromey.com>
2495
2496 * tui/tui-layout.c (show_layout): Unify all layout cases into a
2497 single switch.
2498 (show_source_disasm_command, show_source_or_disasm_and_command):
2499 Don't check current layout.
2500
3f3ffe54
TT
25012019-08-13 Tom Tromey <tom@tromey.com>
2502
2503 * tui/tui-wingeneral.c (make_all_visible): Remove.
2504 (tui_make_all_invisible): Simplify.
2505 * tui/tui-layout.c (tui_make_all_invisible): Move from
2506 tui-wingeneral.c; simplify.
2507 (show_layout): Hoist call to tui_make_all_invisible.
2508 (show_data): Don't call tui_make_all_invisible.
2509
69258091
TT
25102019-08-13 Tom Tromey <tom@tromey.com>
2511
2512 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
2513 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
2514
62cf57fe
TT
25152019-08-13 Tom Tromey <tom@tromey.com>
2516
2517 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
2518 tui-data.c.
2519 (show_source_disasm_command, show_data)
2520 (show_source_or_disasm_and_command): Don't use
2521 tui_set_current_layout_to.
2522 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
2523 * tui/tui-data.c (current_layout, tui_current_layout): Move to
2524 tui-layout.c.
2525 (tui_set_current_layout_to): Remove.
2526
2afade5d
TT
25272019-08-13 Tom Tromey <tom@tromey.com>
2528
2529 * tui/tui-layout.c (tui_set_layout): Update.
2530 * tui/tui-data.h (struct tui_layout_def): Remove.
2531 (tui_layout_def): Don't declare.
2532 * tui/tui-data.c (layout_def): Remove.
2533 (tui_layout_def): Remove.
2534
a3504e96
TT
25352019-08-13 Tom Tromey <tom@tromey.com>
2536
2537 * tui/tui-winsource.h (struct tui_source_window_base)
2538 <clear_detail>: No longer "override".
2539 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
2540 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
2541 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
2542 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
2543 Remove.
2544 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
2545
29c92911
TT
25462019-08-13 Tom Tromey <tromey@adacore.com>
2547
2548 * tracepoint.c: Don't include readline.h or history.h.
2549
86c6b807
TT
25502019-08-12 Tom Tromey <tom@tromey.com>
2551
2552 * configure: Rebuild.
2553 * configure.ac: Check for readline 7.
2554 * NEWS: Mention readline 7 requirement.
2555 * README: Update.
2556
5db2718c
TT
25572019-08-12 Tom Tromey <tom@tromey.com>
2558
2559 * mingw-hdep.c (gdb_select): Remove readline hack.
2560
dac36daf
PFC
25612019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2562
2563 * blockframe.c (find_pc_partial_function): Set *block to nullptr
2564 when the function fails.
2565
1022c627
AA
25662019-08-09 Andreas Arnez <arnez@linux.ibm.com>
2567
2568 * s390-tdep.c (s390_type_align): New function.
2569 (s390_gdbarch_init): Set it as type_align gdbarch method.
2570
eba4caf2
TV
25712019-08-09 Tom de Vries <tdevries@suse.de>
2572
2573 PR gdb/24591
2574 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
2575 pc_low with relocation offset.
2576
123cd851
TT
25772019-08-07 Tom Tromey <tromey@adacore.com>
2578
2579 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2580 (print_frame_args): Update.
2581 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
2582 Update.
2583 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2584 * frame.h (struct frame_arg): Add initializers.
2585 <error>: Now a unique_xmalloc_ptr.
2586
3d31bc39
AH
25872019-08-07 Alan Hayward <alan.hayward@arm.com>
2588
2589 * NEWS: Expand the Pointer Authentication entry.
2590 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
2591 (aarch64_frame_unmask_lr): ... to this.
2592 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
2593 Call aarch64_frame_unmask_lr.
2594 * frame.c (struct frame_info): Add "masked" variable.
2595 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
2596 (fprint_frame): Check for masked pc.
2597 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
2598 declarations.
2599 * python/py-framefilter.c (py_print_frame): Check for masked pc.
2600 * stack.c (print_frame): Check for masked pc.
2601
0cf9feb9
TT
26022019-08-06 Tom Tromey <tom@tromey.com>
2603
2604 * stabsread.c (patch_block_stabs, read_one_struct_field)
2605 (read_enum_type): Use obstack_strndup.
2606 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
2607 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
2608 * dwarf2read.c (guess_full_die_structure_name)
2609 (anonymous_struct_prefix): Use obstack_strndup.
2610 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
2611 * c-exp.y (yylex): Use obstack_strndup.
2612 * ada-exp.y (write_object_renaming, write_ambiguous_var)
2613 (write_var_or_type): Use obstack_strndup.
2614
efba19b0
TT
26152019-08-06 Tom Tromey <tom@tromey.com>
2616
2617 * symfile.c (reread_symbols): Use obstack_strdup.
2618 * stabsread.c (read_type): Use obstack_strdup.
2619 * gdb_obstack.h (obstack_strdup): New overload.
2620 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
2621 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
2622 (dwarf2_canonicalize_name): Use obstack_strdup.
2623 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
2624 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
2625 Use obstack_strdup.
2626
f25102f7
TT
26272019-08-06 Tom Tromey <tom@tromey.com>
2628
2629 * gdb_obstack.h (obstack_strdup): Define.
2630 * gdb_obstack.c (obstack_strdup): Don't define.
2631
021887d8
TT
26322019-08-06 Tom Tromey <tom@tromey.com>
2633
2634 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
2635 obstack_strdup.
2636 * typeprint.c (typedef_hash_table::find_global_typedef): Use
2637 obstack_strdup.
2638 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
2639 * stabsread.c (common_block_start): Use obstack_strdup.
2640 * objfiles.c (set_objfile_main_name, objfile): Use
2641 obstack_strdup.
2642 * namespace.c (add_using_directive): Use obstack_strdup.
2643 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
2644 * jit.c (finalize_symtab): Use obstack_strdup.
2645 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
2646 (guess_partial_die_structure_name, partial_die_info::fixup)
2647 (dwarf2_name): Use obstack_strdup.
2648 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
2649 obstack_strdup.
2650 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
2651 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
2652 obstack_strdup.
2653 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
2654
d2834edc
PW
26552019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2656
2657 * unittests/help-doc-selftests.c: New file.
2658 * Makefile.in: Add the new file.
2659
590042fc
PW
26602019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2661
2662 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
2663 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
2664 the full first line, except when FOR_VALUE_PREFIX. In this case,
2665 the trailing '.' is not output, and the first character is uppercased.
2666 (print_help_for_command): Update call to print_doc_line.
2667 (print_doc_of_command): Likewise.
2668 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
2669 * cli/cli-option.c (append_indented_doc): Do not append newline.
2670 (build_help_option): Append newline after first appended_indented_doc
2671 only if a second call is done.
2672 (build_help): Append 2 new lines before each option, except the first
2673 one.
2674 * compile/compile.c (_initialize_compile): Add new lines after
2675 %OPTIONS%, when not at the end of the help.
2676 Change help doc or code
2677 producing the help doc to respect the invariants.
2678 * maint-test-options.c (_initialize_maint_test_options): Likewise.
2679 Also removed the new line after 'Options:', as all other commands
2680 do not put an empty line between 'Options:' and the first option.
2681 * printcmd.c (_initialize_printcmd): Likewise.
2682 * stack.c (_initialize_stack): Likewise.
2683 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
2684 incorrectly telling COMMAND is optional.
2685 * ada-lang.c (_initialize_ada_language): Change help doc or code
2686 producing the help doc to respect the invariants.
2687 * ada-tasks.c (_initialize_ada_tasks): Likewise.
2688 * breakpoint.c (_initialize_breakpoint): Likewise.
2689 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
2690 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
2691 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
2692 * cli/cli-style.c (cli_style_option::add_setshow_commands,
2693 _initialize_cli_style): Likewise.
2694 * corelow.c (core_target_info): Likewise.
2695 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
2696 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
2697 * filesystem.c (_initialize_filesystem): Likewise.
2698 * frame.c (_initialize_frame): Likewise.
2699 * gnu-nat.c (add_task_commands): Likewise.
2700 * infcall.c (_initialize_infcall): Likewise.
2701 * infcmd.c (_initialize_infcmd): Likewise.
2702 * interps.c (_initialize_interpreter): Likewise.
2703 * language.c (_initialize_language): Likewise.
2704 * linux-fork.c (_initialize_linux_fork): Likewise.
2705 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
2706 * maint.c (_initialize_maint_cmds): Likewise.
2707 * memattr.c (_initialize_mem): Likewise.
2708 * printcmd.c (_initialize_printcmd): Likewise.
2709 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
2710 _RegEx): Likewise.
2711 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
2712 * record-btrace.c (_initialize_record_btrace): Likewise.
2713 * record-full.c (_initialize_record_full): Likewise.
2714 * record.c (_initialize_record): Likewise.
2715 * regcache-dump.c (_initialize_regcache_dump): Likewise.
2716 * regcache.c (_initialize_regcache): Likewise.
2717 * remote.c (add_packet_config_cmd, init_remote_threadtests,
2718 _initialize_remote): Likewise.
2719 * ser-tcp.c (_initialize_ser_tcp): Likewise.
2720 * serial.c (_initialize_serial): Likewise.
2721 * skip.c (_initialize_step_skip): Likewise.
2722 * source.c (_initialize_source): Likewise.
2723 * stack.c (_initialize_stack): Likewise.
2724 * symfile.c (_initialize_symfile): Likewise.
2725 * symtab.c (_initialize_symtab): Likewise.
2726 * target-descriptions.c (_initialize_target_descriptions): Likewise.
2727 * top.c (init_main): Likewise.
2728 * tracefile-tfile.c (tfile_target_info): Likewise.
2729 * tracepoint.c (_initialize_tracepoint): Likewise.
2730 * tui/tui-win.c (_initialize_tui_win): Likewise.
2731 * utils.c (add_internal_problem_command): Likewise.
2732 * valprint.c (value_print_option_defs): Likewise.
2733
404f2902
FCE
27342019-08-06 Frank Ch. Eigler <fche@redhat.com>
2735
2736 PR build/24886
2737 * configure.ac: Drop enable-libmcheck support.
2738 * configure, config.in: Rebuild.
2739 * libmcheck.m4: Remove.
2740 * acinclude.m4: Don't include it.
2741 * Makefile.in: Don't distribute it.
2742 * top.c (print_gdb_configuration): Don't mention it.
2743
046bebe1
TT
27442019-08-06 Tom Tromey <tom@tromey.com>
2745
2746 * utils.c (set_output_style): Sometimes pass stream to
2747 emit_style_escape.
2748 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
2749 * record-btrace.c (btrace_insn_history): Update.
2750 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
2751 method.
2752 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
2753 Update initializers.
2754 <m_uiout>: New field.
2755 <m_di>: Move lower.
2756 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2757 Remove "uiout" parameter.
2758 (dump_insns): Update.
2759 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
2760 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
2761
ddbcedf5
CB
27622019-08-06 Christian Biesinger <cbiesinger@google.com>
2763
2764 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
2765 (error_in_psymtab_expansion): Likewise.
2766 (lookup_symbol_via_quick_fns): Likewise.
2767 (basic_lookup_transparent_type_quick): Likewise.
2768 (basic_lookup_transparent_type_1): Likewise.
2769
b08b16c8
TT
27702019-08-06 Tom Tromey <tromey@adacore.com>
2771
2772 * source.c (last_source_error): Now bool.
2773 (print_source_lines_base): Make "noprint" bool. Only open
2774 source file when last_source_visited changes.
2775
cb44333d
TT
27762019-08-06 Tom Tromey <tromey@adacore.com>
2777
2778 * annotate.c (annotate_source_line): Use g_source_cache.
2779 * source-cache.c (source_cache::get_plain_source_lines): Change
2780 parameters. Populate m_offset_cache.
2781 (source_cache::ensure): New method.
2782 (source_cache::get_line_charpos): New method.
2783 (extract_lines): Move lower. Change parameters.
2784 (source_cache::get_source_lines): Move lower.
2785 * source-cache.h (class source_cache): Update comment.
2786 <get_line_charpos>: New method.
2787 <get_source_lines>: Update comment.
2788 <clear>: Clear m_offset_cache.
2789 <get_plain_source_lines>: Change parameters.
2790 <ensure>: New method
2791 <m_offset_cache>: New member.
2792 * source.c (forget_cached_source_info_for_objfile): Update.
2793 (info_source_command): Use g_source_cache.
2794 (find_source_lines, open_source_file_with_line_charpos): Remove.
2795 (print_source_lines_base, search_command_helper): Use g_source_cache.
2796 * source.h (open_source_file_with_line_charpos): Don't declare.
2797 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
2798 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
2799 Use g_source_cache.
2800
872dceaa
TT
28012019-08-06 Tom Tromey <tromey@adacore.com>
2802
2803 * source-cache.c (source_cache::get_plain_source_lines):
2804 Remove "first_line" and "last_line" parameters.
2805 (source_cache::get_source_lines): Cache plain text.
2806 * source-cache.h (class source_cache)
2807 <get_plain_source_lines>: Update.
2808
269249d9
TT
28092019-08-06 Tom Tromey <tromey@adacore.com>
2810
2811 * source-cache.c (extract_lines): No longer a method.
2812 Changed type of parameter. Include final newline.
2813 (selftests::extract_lines_test): New function.
2814 (_initialize_source_cache): Likewise.
2815 * source-cache.h (class source_cache)
2816 <extract_lines>: Don't declare.
2817
c0e8dcd8
TT
28182019-08-06 Tom Tromey <tromey@adacore.com>
2819
2820 * breakpoint.c (init_breakpoint_sal): Update.
2821 (breakpoint): Update.
2822 * breakpoint.h (struct breakpoint) <filter>: Now a
2823 unique_xmalloc_ptr.
2824
0b27c27d
CB
28252019-08-05 Christian Biesinger <cbiesinger@google.com>
2826
2827 * NEWS: Mention dictionary access on blocks.
2828 * python/py-block.c (blpy_getitem): New function.
2829 (block_object_as_mapping): New struct.
2830 (block_object_type): Use new struct for tp_as_mapping field.
2831
4ee94178
CB
28322019-08-05 Christian Biesinger <cbiesinger@google.com>
2833
2834 * objfiles.h (objfile): Add a comment describing partial symbols.
2835
8abfcabc
TT
28362019-08-05 Tom Tromey <tromey@adacore.com>
2837
2838 * compile/compile.c (_initialize_compile): Use _(), not N_().
2839 * thread.c (_initialize_thread): Use _(), not N_().
2840 * stack.c (_initialize_stack): Use _(), not N_().
2841 * printcmd.c (_initialize_printcmd): Use _(), not N_().
2842
2b79f376
SM
28432019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2844
2845 * dwarf2read.c (struct dw2_symtab_iterator):
2846 <want_specific_block>: Remove.
2847 <block_index>: Change type to gdb::optional.
2848 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
2849 change type of BLOCK_INDEX parameter to gdb::optional.
2850 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
2851 (dw2_lookup_symbol): Don't pass argument for
2852 WANT_SPECIFIC_BLOCK.
2853 (dw2_expand_symtabs_for_function): Don't pass argument for
2854 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
2855 (class dw2_debug_names_iterator)
2856 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
2857 parameter, change BLOCK_INDEX type to gdb::optional.
2858 <m_want_specific_block>: Remove.
2859 <m_block_index>: Change type to gdb::optional.
2860 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
2861 gdb::optional. Re-write in function of gdb::optional.
2862 (dw2_debug_names_lookup_symbol): Don't pass argument for
2863 WANT_SPECIFIC_BLOCK.
2864 (dw2_debug_names_expand_symtabs_for_function): Don't pass
2865 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
2866 BLOCK_INDEX.
2867
ae60f04e
PW
28682019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2869
2870 * NEWS: Mention changes to "info sources" command.
2871
28cd9371
PW
28722019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2873
2874 * symtab.c (filename_partial_match_opts): New struct type.
2875 (struct output_source_filename_data): New members
2876 regexp, c_regexp, partial_match.
2877 (output_source_filename): Use new members to decide to print file.
2878 (info_sources_option_defs): New variable.
2879 (make_info_sources_options_def_group, print_info_sources_header,
2880 info_sources_command_completer):
2881 New functions.
2882 (info_sources_command): Read new optional arguments.
2883 (_initialize_symtab): Update info sources help.
2884
ca683e3a
AO
28852019-08-02 Alexandre Oliva <oliva@adacore.com>
2886
2887 * ada-lang.c (exception_support_info_v0): Renamed from...
2888 (default_exception_support_info): ... this. Create new
2889 definition for v1.
2890 (ada_has_this_exception_support): Look up catch_handlers_sym.
2891 (ada_exception_support_info_sniffer): Try v0 after default.
2892
f1264162
TT
28932019-08-01 Tom Tromey <tromey@adacore.com>
2894
2895 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
2896 gdbarch.h.
2897
0a7b2485
CB
28982019-08-01 Christian Biesinger <cbiesinger@google.com>
2899
2900 * s12z-tdep.c: Fix include path for s12z-opc.h.
2901
c6bdbeb7
AH
29022019-08-01 Alan Hayward <alan.hayward@arm.com>
2903
2904 * NEWS: Require GNU make 3.82.
2905
a2bd7b82
TT
29062019-07-16 Tom Tromey <tom@tromey.com>
2907
2908 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
2909 declare.
2910
aa3b6533
TT
29112019-07-30 Tom Tromey <tromey@adacore.com>
2912
2913 * block.c (contained_in): Remove BLOCK_FUNCTION check.
2914
a1530dc7
KB
29152019-07-30 Kevin Buettner <kevinb@redhat.com>
2916
2917 * printcmd.c (print_address_symbolic): Print negative offsets.
2918 (build_address_symbolic): Force signed arithmetic when computing
2919 offset.
2920
2906593f
CB
29212019-07-30 Christian Biesinger <cbiesinger@google.com>
2922
2923 PR/24474: Add a function to lookup static variables.
2924 * NEWS: Mention this new function.
2925 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
2926 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
2927 * python/python.c (python_GdbMethods): Add new function.
2928
c620ed88
CB
29292019-07-29 Christian Biesinger <cbiesinger@google.com>
2930
2931 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
2932 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
2933 (objfpy_lookup_static_symbol): New function.
2934 (objfile_object_methods): Add new functions.
2935
bc4268a5
PW
29362019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2937
2938 * NEWS: Mention 'set|show print frame-info'. Mention new
2939 'presence' value for 'frame-arguments'. Mention new '-frame-info'
2940 backtrace argument. Mention that python frame filtering code
2941 is now consistent with what 'backtrace' command prints.
2942
4b5e8d19
PW
29432019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2944
2945 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
2946 comments.
2947 (print_frame_info_auto, print_frame_info_source_line,
2948 print_frame_info_location, print_frame_info_source_and_location,
2949 print_frame_info_location_and_address, print_frame_info_short_location):
2950 New declarations.
2951 (struct frame_print_options): New member print_frame_info.
2952 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
2953 * stack.h (get_user_print_what_frame_info): New declaration.
2954 (frame_show_address): New declaration.
2955 * stack.c (print_frame_arguments_choices): New value 'presence'.
2956 (print_frame_info_auto, print_frame_info_source_line,
2957 print_frame_info_location, print_frame_info_source_and_location,
2958 print_frame_info_location_and_address, print_frame_info_short_location,
2959 print_frame_info_choices, print_frame_info_print_what): New definitions.
2960 (print_frame_args): Only print dots for args if print frame-arguments
2961 is 'presence'.
2962 (frame_print_option_defs): New element for "frame-info".
2963 (get_user_print_what_frame_info): New function.
2964 (frame_show_address): Make non static. Move comment to stack.h.
2965 (print_frame_info_to_print_what): New function.
2966 (print_frame_info): Update comment. Use fp_opts.print_frame_info
2967 to decide what to print.
2968 (backtrace_command_1): Handle the new print_frame_arguments_presence
2969 value.
2970 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
2971 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
2972 (py_print_frame): In non-mi mode, use LOCATION as default for
2973 print_what, similarly to frame information printed directly by
2974 backtrace command. Handle frame-info user option in non MI mode.
2975
6bdfee81
KB
29762019-07-27 Kevin Buettner <kevinb@redhat.com>
2977
2978 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
2979 Add case for debugging 32-bit target on 64-bit host. Revise
2980 comment.
2981
98a617f8
KB
29822019-07-27 Kevin Buettner <kevinb@redhat.com>
2983
2984 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
2985 instead of find_function_entry_range_from_pc.
2986
567238c9
KB
29872019-07-27 Kevin Buettner <kevinb@redhat.com>
2988
2989 * stack.c (find_frame_funname): Remove code which preferred
2990 minsym over symtab sym in "certain pathological cases".
2991
2dc80cf8
KB
2992 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
2993 parameter. Change type of "do_demangle" to bool.
2994 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2995 Pass suitable "prefer_sym_over_minsym" flag to
2996 build_address_symbolic(). Don't output "+" for negative offsets.
2997 * printcmd.c (print_address_symbolic): Update invocation of
2998 build_address_symbolic to include a "prefer_sym_over_minsym"
2999 flag.
3000 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
3001 Restrict cases in which use of minimal symbol is preferred to that
3002 of a found symbol. Update comments.
3003
1aff7173
KB
3004 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
3005 for entry pc when entry pc is out of range for that FDE.
3006
89b085ac
BC
30072019-07-26 Brian Callahan <bcallah@openbsd.org>
3008
3009 PR gdb/24839:
3010 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
3011 type.
3012
f32feb4a
CB
30132019-07-25 Christian Biesinger <cbiesinger@google.com>
3014
3015 * python/py-objfile.c (add_separate_debug_file): Fix comment about
3016 this function's Python signature.
3017
3018
30192019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
3020
3021 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
3022 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3023 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3024 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
3025 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
3026
3027
c54e4253
YS
30282019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
3029
3030 * h8300-tdep.c (h8300_register_name_common): New.
3031 h8300_register_name): Use h8300_register_name_common.
3032 (h8300s_register_name): Likewise.
3033 (h8300sx_register_name): Likewise.
3034 (h8300h_register_nam): New.
3035 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
3036
3037
40eadf04
SP
30382019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3039
3040 * arm-tdep.c (arm_skip_cmse_entry): New function.
3041 (arm_is_sgstubs_section): New function.
3042 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
3043
bfa2a36d
TT
30442019-07-22 Tom Tromey <tom@tromey.com>
3045
3046 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
3047 Don't self-assign.
3048
a8e9d247
AB
30492019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3050
3051 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
3052 type_print.
3053
eb86c5e2
AB
30542019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3055
3056 * symtab.c (search_symbols): Adjust msymbol matching type arrays
3057 so that GDB doesn't match any msymbols when searching in the
3058 TYPES_DOMAIN.
3059 (print_symbol_info): Print using typedef_print or type_print based
3060 on the type of the symbol. Add updated FIXME comment moved from...
3061 (_initialize_symtab): ... move and update FIXME comment to above.
3062
a8eab7c6
AB
30632019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3064
3065 * NEWS: Mention adding -q option to "info types".
3066 * symtab.c (struct info_types_options): New struct.
3067 (info_types_options_defs): New variable.
3068 (make_info_types_options_def_group): New function.
3069 (info_types_command): Use gdb::option framework to parse options.
3070 (info_types_command_completer): New function.
3071 (_initialize_symtab): Extend the help text on "info types" and
3072 register command completer.
3073
b4603c34
CB
30742019-07-21 Christian Biesinger <cbiesinger@google.com>
3075
3076 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
3077 (lookup_symbol_in_objfile): Change int to block_enum and add a
3078 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
3079
c8cdc1e0
CB
30802019-07-20 Christian Biesinger <cbiesinger@google.com>
3081
3082 * MAINTAINERS (Write After Approval): Add self.
3083
01e175fe
AB
30842019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
3085
3086 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
3087 instruction to the dummy code region.
3088
56f79b63
TT
30892019-07-19 Tom Tromey <tromey@adacore.com>
3090
3091 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
3092 (ARGSUSED, PARAMS, __func__): Remove rules.
3093
4c5aa8e0
AH
30942019-07-19 Alan Hayward <alan.hayward@arm.com>
3095
3096 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
3097 * features/arm/arm-with-iwmmxt.c: Remove.
3098 * features/arm/arm-with-iwmmxt.xml: Remove.
3099 * features/arm/arm-with-m-fpa-layout.c: Remove.
3100 * features/arm/arm-with-m-fpa-layout.xml: Remove.
3101 * features/arm/arm-with-m-vfp-d16.c: Remove.
3102 * features/arm/arm-with-m-vfp-d16.xml: Remove.
3103 * features/arm/arm-with-m.c: Remove.
3104 * features/arm/arm-with-m.xml: Remove.
3105 * features/arm/arm-with-neon.c: Remove.
3106 * features/arm/arm-with-neon.xml: Remove.
3107 * features/arm/arm-with-vfpv2.c: Remove.
3108 * features/arm/arm-with-vfpv2.xml: Remove.
3109 * features/arm/arm-with-vfpv3.c: Remove.
3110 * features/arm/arm-with-vfpv3.xml: Remove.
3111
f42b2617
AH
31122019-07-19 Alan Hayward <alan.hayward@arm.com>
3113
3114 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
3115
f29ec966
AH
31162019-07-19 Alan Hayward <alan.hayward@arm.com>
3117
3118 * arch/aarch32.c (aarch32_create_target_description): Create
3119 target descriptions using features.
3120 * arch/arm.c (arm_create_target_description)
3121 (arm_create_mprofile_target_description): Likewise.
3122 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
3123
d105cce5
AH
31242019-07-19 Alan Hayward <alan.hayward@arm.com>
3125
3126 * Makefile.in: Add new files.
3127 * aarch32-tdep.c: New file.
3128 * aarch32-tdep.h: New file.
3129 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3130 Call aarch32_read_description.
3131 * arch/aarch32.c: New file.
3132 * arch/aarch32.h: New file.
3133 * arch/arm.c (arm_create_target_description)
3134 (arm_create_mprofile_target_description): New function.
3135 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
3136 (arm_create_target_description)
3137 (arm_create_mprofile_target_description): New declaration.
3138 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
3139 read_description functions.
3140 * arm-linux-nat.c (arm_linux_nat_target::read_description):
3141 Likewise.
3142 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3143 * arm-tdep.c (tdesc_arm_list): New variable.
3144 (arm_register_g_packet_guesses): Call create description functions.
3145 (arm_read_description) (arm_read_mprofile_description): New
3146 function.
3147 * arm-tdep.h (arm_read_description)
3148 (arm_read_mprofile_description): Add declaration.
3149 * configure.tgt: Add new files.
3150
afe09f0b
GL
31512019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
3152
3153 * top.c (new_ui_command): Open specified terminal just once.
3154
cd215b2e
TT
31552019-07-18 Tom Tromey <tromey@adacore.com>
3156
3157 * symtab.c (main_name): Constify return type.
3158 * symfile.c (set_initial_language): Update.
3159 * symtab.h (main_name): Constify return type.
3160
d8f68fcb
TT
31612019-07-17 Tom Tromey <tom@tromey.com>
3162
3163 * tui/tui-winsource.c (tui_update_source_window)
3164 (tui_update_source_window_as_is)
3165 (tui_update_source_windows_with_line): Remove return.
3166 * tui/tui-disasm.c (tui_show_disassem)
3167 (tui_show_disassem_and_update_source): Remove return.
3168 * tui/tui.c (tui_reset): Remove return.
3169 * tui/tui-wingeneral.c
3170 (tui_check_and_display_highlight_if_needed): Remove return.
3171
ca5af91e
TT
31722019-07-17 Tom Tromey <tom@tromey.com>
3173
3174 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
3175
5104fe36
TT
31762019-07-17 Tom Tromey <tom@tromey.com>
3177
3178 * tui/tui-winsource.h (struct tui_exec_info_window)
3179 (struct tui_source_window_base): Move from tui-data.h.
3180 * tui/tui-winsource.c: Move many method definitions from
3181 elsewhere. Remove "structuring" comments.
3182 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
3183 (tui_source_window_base::refresh_window): Move to
3184 tui-winsource.c.
3185 * tui/tui-win.c (tui_source_window_base::refresh_all)
3186 (tui_source_window_base::update_tab_width)
3187 (tui_source_window_base::set_new_height)
3188 (tui_source_window_base::do_make_visible_with_new_height): Move to
3189 tui-winsource.c.
3190 * tui/tui-source.h: Update.
3191 * tui/tui-source.c (tui_source_window_base::reset): Move to
3192 tui-winsource.c.
3193 * tui/tui-disasm.h: Update.
3194 * tui/tui-data.h (struct tui_exec_info_window): Move to
3195 tui-winsource.h.
3196 (struct tui_source_window_base): Likewise.
3197 * tui/tui-data.c (tui_source_window_base::clear_detail)
3198 (tui_source_window_base, ~tui_source_window_base): Move to
3199 tui-winsource.c.
3200
daa15dde
TT
32012019-07-17 Tom Tromey <tom@tromey.com>
3202
3203 * tui/tui-win.c (tui_resize_all)
3204 (tui_source_window_base::update_tab_width)
3205 (tui_adjust_win_heights): Update.
3206 (tui_win_info::make_invisible_and_set_new_height): Rename from
3207 make_invisible_and_set_new_height.
3208 * tui/tui-data.h (struct tui_win_info)
3209 <make_invisible_and_set_new_height>: New method.
3210
bfad4537
TT
32112019-07-17 Tom Tromey <tom@tromey.com>
3212
3213 * tui/tui.c: Update.
3214 * tui/tui-source.h (struct tui_source_window): Move from
3215 tui-data.h.
3216 * tui/tui-layout.c: Update.
3217 * tui/tui-disasm.c: Update.
3218 * tui/tui-data.h (struct tui_source_window): Move to
3219 tui-source.h.
3220
88f7e873
TT
32212019-07-17 Tom Tromey <tom@tromey.com>
3222
3223 * tui/tui-disasm.h (struct tui_disasm_window): Move from
3224 tui-data.h.
3225 * tui/tui-data.h (struct tui_disasm_window): Move to
3226 tui-disasm.h.
3227
96bd6233
TT
32282019-07-17 Tom Tromey <tom@tromey.com>
3229
3230 * tui/tui-regs.h (struct tui_data_item_window): Move from
3231 tui-data.h.
3232 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
3233 * tui/tui-data.h (struct tui_data_item_window): Move to
3234 tui-regs.h.
3235 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
3236
ce38393b
TT
32372019-07-17 Tom Tromey <tom@tromey.com>
3238
3239 * tui/tui.c: Update.
3240 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
3241 (tui_cmd_window::max_height): Move to tui-command.c.
3242 * tui/tui-layout.c: Update.
3243 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
3244 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
3245 tui-command.c.
3246 * tui/tui-command.h (struct tui_cmd_window): Move from
3247 tui-data.h.
3248 * tui/tui-command.c: Remove "structuring" comments.
3249 (tui_cmd_window::clear_detail)
3250 (tui_cmd_window::do_make_visible_with_new_height)
3251 (tui_cmd_window::max_height): Move from elsewhere.
3252
2d8b51cb
TT
32532019-07-17 Tom Tromey <tom@tromey.com>
3254
3255 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
3256 Now static.
3257 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
3258 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
3259
18ab23af
TT
32602019-07-17 Tom Tromey <tom@tromey.com>
3261
3262 * tui/tui.c: Update.
3263 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
3264 tui-regs.c.
3265 * tui/tui-windata.h: Remove file.
3266 * tui/tui-windata.c: Remove file.
3267 * tui/tui-win.c (tui_data_window::set_new_height)
3268 (tui_data_window::do_make_visible_with_new_height): Move to
3269 tui-regs.c.
3270 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
3271 * tui/tui-regs.c: Remove "structuring" comments.
3272 (tui_data_window::first_data_item_displayed)
3273 (tui_data_window::delete_data_content_windows)
3274 (tui_data_window::erase_data_content)
3275 (tui_data_window::display_all_data)
3276 (tui_data_window::refresh_all)
3277 (tui_data_window::do_scroll_vertical)
3278 (tui_data_window::clear_detail, tui_data_window::set_new_height)
3279 (tui_data_window::do_make_visible_with_new_height)
3280 (tui_data_window::refresh_window): Move from elsewhere.
3281 (_initialize_tui_regs): Move to end of file.
3282 * tui/tui-layout.c: Update.
3283 * tui/tui-hooks.c: Update.
3284 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
3285 * tui/tui-data.c (tui_data_window::clear_detail): Move to
3286 tui-regs.c.
3287 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
3288
88b7e7cc
TT
32892019-07-17 Tom Tromey <tom@tromey.com>
3290
3291 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
3292 seen.
3293
0fcd3711
TT
32942019-07-17 Tom Tromey <tom@tromey.com>
3295
3296 * tui/tui-win.c (tui_source_window_base::set_new_height)
3297 (tui_source_window_base::do_make_visible_with_new_height): Use
3298 m_has_locator field directly.
3299 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
3300 method.
3301 (struct tui_source_window_base) <has_locator>: Likewise.
3302
4a38112d
TT
33032019-07-17 Tom Tromey <tom@tromey.com>
3304
3305 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
3306 Don't declare.
3307 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
3308 Remove.
3309 * tui/tui-win.c (tui_source_window_base::set_new_height)
3310 (tui_source_window_base::set_new_height)
3311 (make_invisible_and_set_new_height)
3312 (tui_source_window_base::do_make_visible_with_new_height)
3313 (tui_source_window_base::do_make_visible_with_new_height):
3314 Update.
3315 * tui/tui-layout.c (show_source_disasm_command, show_data)
3316 (show_source_or_disasm_and_command): Update.
3317 * tui/tui-layout.c (show_layout): Update.
3318
09129226
TT
33192019-07-17 Tom Tromey <tom@tromey.com>
3320
3321 * tui/tui-layout.c (make_data_window): Remove.
3322 (show_data): Unify creation and re-initialization cases.
3323
4a8a5e84
TT
33242019-07-17 Tom Tromey <tom@tromey.com>
3325
3326 * tui/tui-layout.c (make_source_window, make_disasm_window):
3327 Remove.
3328 (show_data): Unify creation and re-initialization cases.
3329
76d2be8e
TT
33302019-07-17 Tom Tromey <tom@tromey.com>
3331
3332 * tui/tui-layout.c (make_command_window): Remove.
3333 (show_source_disasm_command, show_source_or_disasm_and_command):
3334 Unify creation and re-initialization cases.
3335
890b8bde
TT
33362019-07-17 Tom Tromey <tom@tromey.com>
3337
3338 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
3339 creation and re-initialization cases.
3340
2cdfa113
TT
33412019-07-17 Tom Tromey <tom@tromey.com>
3342
3343 * tui/tui-regs.c (tui_get_register): Return void.
3344
8e3cfd09
TT
33452019-07-17 Tom Tromey <tom@tromey.com>
3346
3347 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
3348 Simplify.
3349
f4e04977
TT
33502019-07-17 Tom Tromey <tom@tromey.com>
3351
3352 * tui/tui-layout.c (show_source_disasm_command): Simplify window
3353 resetting.
3354
0379b883
TT
33552019-07-17 Tom Tromey <tom@tromey.com>
3356
3357 * tui/tui.h (tui_set_layout_by_name): Don't declare.
3358 * tui/tui-regs.c (tui_reg_layout): New function.
3359 (tui_show_registers, tui_reg_command): Use it.
3360 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
3361 (tui_layout_command): Rename from tui_set_layout_by_name. Change
3362 parameters.
3363 (tui_layout_command): Remove.
3364
b7fbad91
TT
33652019-07-17 Tom Tromey <tom@tromey.com>
3366
3367 * tui/tui-layout.h (tui/tui-layout): Return void.
3368 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
3369
4e1e56b9
TT
33702019-07-17 Tom Tromey <tom@tromey.com>
3371
3372 * tui/tui-layout.c (show_source_disasm_command, show_data):
3373 Update.
3374 (reset_locator): Remove.
3375 (show_source_or_disasm_and_command): Update.
3376
1e0c09ba
TT
33772019-07-17 Tom Tromey <tom@tromey.com>
3378
3379 * tui/tui-source.c (tui_source_window_base::reset): Remove
3380 win_type parameter.
3381 * tui/tui-layout.c (make_command_window, make_source_window)
3382 (make_disasm_window, make_data_window)
3383 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
3384 (reset_locator, show_source_or_disasm_and_command): Update.
3385 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
3386 win_type parameter.
3387 (struct tui_source_window_base) <reset>: Likewise.
3388
1bf605de
TT
33892019-07-17 Tom Tromey <tom@tromey.com>
3390
3391 * tui/tui-layout.c (show_source_disasm_command): Use
3392 reset_locator.
3393 (reset_locator): New function.
3394 (init_and_make_win): Remove.
3395 (show_source_or_disasm_and_command): Use reset_locator.
3396
098f9ed4
TT
33972019-07-17 Tom Tromey <tom@tromey.com>
3398
3399 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
3400 condition.
3401 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
3402 Remove condition.
3403 * tui/tui-source.c (tui_source_window_base::reset): New method.
3404 * tui/tui-layout.c (make_command_window): Don't call
3405 init_and_make_win.
3406 (make_source_window, make_disasm_window): Don't call
3407 make_source_or_disasm_window.
3408 (make_data_window): Don't call init_and_make_win. Change calling
3409 convention.
3410 (show_source_disasm_command, show_data): Simplify.
3411 (make_source_or_disasm_window): Remove.
3412 (show_source_or_disasm_and_command): Simplify.
3413 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
3414 (struct tui_source_window_base) <reset>: Likewise.
3415 <execution_info>: Remove initializer.
3416 * tui/tui-data.c (tui_source_window_base): Initialize
3417 execution_info.
3418
80110957
TT
34192019-07-17 Tom Tromey <tom@tromey.com>
3420
3421 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
3422 variable.
3423
cf82af05
TT
34242019-07-17 Tom Tromey <tom@tromey.com>
3425
3426 * tui/tui.c (tui_rl_other_window): Update.
3427 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
3428 superclass method first. Always iterate over regs_content.
3429 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
3430 method.
3431 * tui/tui-win.c (tui_set_focus_command): Update.
3432
01aeb396
TT
34332019-07-17 Tom Tromey <tom@tromey.com>
3434
3435 * tui/tui-win.c (tui_set_focus_command): Rename from
3436 tui_set_focus. Call tui_enable.
3437 (tui_set_focus_command): Remove.
3438
fd6c75ee
TT
34392019-07-17 Tom Tromey <tom@tromey.com>
3440
3441 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
3442 refresh_window.
3443 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
3444 touchwin.
3445 (tui_data_window::refresh_window): Call refresh_window on data
3446 items. Always call superclass refresh_window.
3447 (tui_win_info::refresh): Remove.
3448 (tui_source_window_base::refresh_window): Update.
3449 (tui_refresh_all): Update.
3450 * tui/tui-layout.c (show_source_disasm_command): Remove call to
3451 refresh_window.
3452 (show_source_or_disasm_and_command): Likewise.
3453 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
3454 (struct tui_source_window_base) <refresh>: Likewise.
3455
f6cc34a9
TT
34562019-07-17 Tom Tromey <tom@tromey.com>
3457
3458 * tui/tui-winsource.c (tui_clear_source_content)
3459 (tui_show_source_content): Update.
3460 * tui/tui-source.c (tui_source_window::showing_source_p): Check
3461 whether content is empty.
3462 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
3463 Remove.
3464
f31ec9af
TT
34652019-07-17 Tom Tromey <tom@tromey.com>
3466
3467 * tui/tui-winsource.c (tui_erase_source_content): Clear the
3468 window's contents.
3469 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
3470 * tui/tui-source.c (tui_set_source_content_nil): Remove.
3471
d1b6f1e5
TT
34722019-07-17 Tom Tromey <tom@tromey.com>
3473
3474 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
3475 (struct tui_data_item_window): Update.
3476
d9743a13
TT
34772019-07-17 Tom Tromey <tom@tromey.com>
3478
3479 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
3480 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
3481 defines.
3482
caf0bc4e
TT
34832019-07-17 Tom Tromey <tom@tromey.com>
3484
3485 * tui/tui-winsource.h (tui_erase_source_content)
3486 (tui_clear_source_content): Remove "display_prompt" parameter.
3487 * tui/tui-winsource.c (tui_update_source_window_as_is)
3488 (tui_update_source_windows_with_addr): Update.
3489 (tui_clear_source_content): Remove "display_prompt" parameter.
3490 (tui_erase_source_content): Likewise. Simplify.
3491 (tui_show_source_content): Update.
3492 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3493 * tui/tui-stack.c (tui_show_frame_info): Update.
3494 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
3495 Remove defines.
3496
9d391078
TT
34972019-07-17 Tom Tromey <tom@tromey.com>
3498
3499 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3500 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
3501 parameter.
3502 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
3503 parameter.
3504
a38da35d
TT
35052019-07-17 Tom Tromey <tom@tromey.com>
3506
3507 * tui/tui-winsource.c (tui_clear_source_content)
3508 (tui_show_source_content, tui_show_exec_info_content)
3509 (tui_clear_exec_info_content): Update.
3510 * tui/tui-stack.c (tui_show_locator_content): Update.
3511 (tui_show_frame_info): Update.
3512 * tui/tui-source.h (tui_source_window): Don't declare.
3513 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
3514 from tui_source_is_displayed.
3515 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
3516 Remove field.
3517 (struct tui_source_window_base) <content_in_use>: New field. Now
3518 bool.
3519 (struct tui_source_window) <showing_source_p>: New method.
3520 (TUI_SRC_WIN): Change cast.
3521 * tui/tui-data.c (tui_initialize_static_data): Update.
3522
c2cd8994
TT
35232019-07-17 Tom Tromey <tom@tromey.com>
3524
3525 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
3526 location_matches_p.
3527 * tui/tui-source.c (tui_source_window::location_matches_p): New
3528 method.
3529 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
3530 method.
3531 * tui/tui-data.h (struct tui_source_window_base)
3532 <location_matches_p>: New method.
3533 (struct tui_source_window, struct tui_disasm_window)
3534 <location_matches_p>: Likewise.
3535
4dde7b34
TT
35362019-07-17 Tom Tromey <tom@tromey.com>
3537
3538 * tui/tui-win.c (tui_set_win_height_command): Rename from
3539 tui_set_win_height.
3540 (tui_set_win_height_command): Remove.
3541
b73dd877
TT
35422019-07-17 Tom Tromey <tom@tromey.com>
3543
3544 * tui/tui-source.c (tui_source_window): New constructor. Add
3545 observer.
3546 (~tui_source_window): New destructor.
3547 (tui_source_window::style_changed): New method.
3548 * tui/tui-hooks.c (tui_redisplay_source): Remove.
3549 (tui_attach_detach_observers): Update.
3550 * tui/tui-data.h (struct tui_source_window): Make constructor not
3551 inline. Add destructor.
3552 (struct tui_source_window) <style_changed>: New method.
3553 <m_observable>: New member.
3554
ae2b5380
TT
35552019-07-17 Tom Tromey <tom@tromey.com>
3556
3557 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
3558 * tui/tui-win.c (tui_resize_all): Fix typo.
3559
1ce3e844
TT
35602019-07-17 Tom Tromey <tom@tromey.com>
3561
3562 * tui/tui-wingeneral.h (tui_refresh_all): Update.
3563 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
3564 (tui_refresh_all): Remove "list" parameter. Use foreach.
3565 * tui/tui-win.c (window_name_completer): Use foreach.
3566 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
3567 (update_tab_width): Likewise.
3568 * tui/tui-layout.c (show_layout): Update.
3569 * tui/tui-data.h (class tui_window_iterator): New.
3570 (struct all_tui_windows): New.
3571 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
3572
fe3eaf1c
TT
35732019-07-17 Tom Tromey <tom@tromey.com>
3574
3575 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
3576 parameter. Don't reference globals.
3577 (tui_reg_command): Update.
3578
368c1354
TT
35792019-07-17 Tom Tromey <tom@tromey.com>
3580
3581 * tui/tui-regs.c (tui_show_registers): Simplify.
3582
e80cd204
TT
35832019-07-17 Tom Tromey <tom@tromey.com>
3584
3585 * tui/tui-regs.c (tui_show_registers): Update.
3586 (tui_show_register_group): Add win_info parameter.
3587
aca2dd16
TT
35882019-07-17 Tom Tromey <tom@tromey.com>
3589
3590 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
3591 Rename from tui_display_reg_element_at_line.
3592 (tui_data_window::display_registers_from_line): Update.
3593 * tui/tui-data.h (struct tui_data_window)
3594 <display_reg_element_at_line>: New method.
3595
517e9505
TT
35962019-07-17 Tom Tromey <tom@tromey.com>
3597
3598 * tui/tui-regs.h (tui_display_registers_from)
3599 (tui_display_registers_from_line): Don't declare.
3600 * tui/tui-windata.c (tui_data_window::display_all_data)
3601 (tui_data_window::refresh_all)
3602 (tui_data_window::do_scroll_vertical): Update.
3603 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
3604 from tui_display_registers_from.
3605 (tui_display_reg_element_at_line): Update.
3606 (tui_data_window::display_registers_from_line): Rename from
3607 tui_display_registers_from_line.
3608 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
3609 display_registers_from_line>: New methods.
3610
f76d8b19
TT
36112019-07-17 Tom Tromey <tom@tromey.com>
3612
3613 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
3614 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
3615 from tui_erase_data_content.
3616 (tui_data_window::display_all_data)
3617 (tui_data_window::refresh_all)
3618 (tui_data_window::do_scroll_vertical): Update.
3619 * tui/tui-regs.c (tui_show_registers): Update.
3620 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
3621 New method.
3622
b4094625
TT
36232019-07-17 Tom Tromey <tom@tromey.com>
3624
3625 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
3626 declare.
3627 * tui/tui-windata.c
3628 (tui_data_window::delete_data_content_windows): Rename from
3629 tui_delete_data_content_windows.
3630 (tui_data_window::display_all_data)
3631 (tui_data_window::do_scroll_vertical): Update.
3632 * tui/tui-data.h (struct tui_data_window)
3633 <delete_data_content_windows>: New method.
3634
c223a729
TT
36352019-07-17 Tom Tromey <tom@tromey.com>
3636
3637 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
3638 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
3639
50daf268
TT
36402019-07-17 Tom Tromey <tom@tromey.com>
3641
3642 * tui/tui-windata.h (tui_display_all_data): Don't declare.
3643 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
3644 from tui_display_all_data.
3645 * tui/tui-win.c
3646 (tui_data_window::do_make_visible_with_new_height): Update.
3647 * tui/tui-regs.c (tui_show_registers): Update.
3648 * tui/tui-layout.c (tui_set_layout): Update.
3649 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
3650 method.
3651
df5f8cab
TT
36522019-07-17 Tom Tromey <tom@tromey.com>
3653
3654 * tui/tui-windata.h (tui_display_data_from): Don't declare.
3655 * tui/tui-windata.c (tui_display_data_from): Remove.
3656 (tui_data_window::refresh_all): Update.
3657
80cb6c27
TT
36582019-07-17 Tom Tromey <tom@tromey.com>
3659
3660 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
3661 * tui/tui-windata.c (tui_display_data_from_line): Remove.
3662 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
3663 tui_display_registers_from_line.
3664 * tui/tui-regs.h (tui_display_registers_from_line): Update.
3665 * tui/tui-regs.c (tui_display_registers_from_line): Remove
3666 "force_display" parameter.
3667
baff0c28
TT
36682019-07-17 Tom Tromey <tom@tromey.com>
3669
3670 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
3671 declare.
3672 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
3673 Rename from tui_first_reg_element_no_inline.
3674 (tui_display_reg_element_at_line)
3675 (tui_display_registers_from_line): Update.
3676 * tui/tui-data.h (struct tui_data_window)
3677 <first_reg_element_no_inline>: New method.
3678
3b23c5f2
TT
36792019-07-17 Tom Tromey <tom@tromey.com>
3680
3681 * tui/tui-windata.c (tui_display_data_from)
3682 (tui_data_window::do_scroll_vertical): Update.
3683 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
3684 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
3685 Rename from tui_line_from_reg_element_no.
3686 (tui_display_registers_from_line): Update.
3687 * tui/tui-data.h (struct tui_data_window)
3688 <line_from_reg_element_no>: New method.
3689
0b5ec218
TT
36902019-07-17 Tom Tromey <tom@tromey.com>
3691
3692 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
3693 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
3694 tui_last_regs_line_no.
3695 (tui_display_reg_element_at_line)
3696 (tui_display_registers_from_line): Update.
3697 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
3698 method.
3699
0807ab7b
TT
37002019-07-17 Tom Tromey <tom@tromey.com>
3701
3702 PR tui/24722:
3703 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
3704 (tui_update_breakpoint_info): Add "being_deleted" parameter.
3705 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3706 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
3707 (tui_update_breakpoint_info): Likewise.
3708 * tui/tui-hooks.c (tui_event_create_breakpoint)
3709 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
3710 Update.
3711
9ad7fdef
TT
37122019-07-17 Tom Tromey <tom@tromey.com>
3713
3714 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
3715
5813316f
TT
37162019-07-17 Tom Tromey <tom@tromey.com>
3717
3718 * tui/tui-winsource.c (tui_update_source_window_as_is)
3719 (tui_update_source_windows_with_addr): Update.
3720 * tui/tui-source.h (tui_set_source_content)
3721 (tui_show_symtab_source): Add "win_info" parameter.
3722 * tui/tui-source.c (tui_set_source_content): Add "win_info"
3723 parameter.
3724 (tui_show_symtab_source): Likewise.
3725
00e264e7
TT
37262019-07-17 Tom Tromey <tom@tromey.com>
3727
3728 * tui/tui-wingeneral.c
3729 (tui_check_and_display_highlight_if_needed): Check can_highlight.
3730
06210ce4
TT
37312019-07-17 Tom Tromey <tom@tromey.com>
3732
3733 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
3734 (struct tui_cmd_window) <can_scroll>: New method.
3735 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
3736 method.
3737
381befee
TT
37382019-07-17 Tom Tromey <tromey@adacore.com>
3739
3740 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
3741 do_field_signed>: Rename. Change type of "value".
3742 * ui-out.c (ui_out::field_signed): Rename from field_int.
3743 Change type of "value".
3744 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
3745 type of "value".
3746 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
3747 do_field_int. Change type of "value".
3748 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
3749 do_field_int. Change type of "value".
3750 * tracepoint.c (trace_status_mi, tfind_1)
3751 (print_one_static_tracepoint_marker): Update.
3752 * thread.c (print_thread_info_1, print_selected_thread_frame):
3753 Update.
3754 * stack.c (print_frame, print_frame_info): Update.
3755 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
3756 Update.
3757 * source.c (print_source_lines_base): Update.
3758 * skip.c (info_skip_command): Update.
3759 * record-btrace.c (btrace_ui_out_decode_error)
3760 (btrace_call_history_src_line): Update.
3761 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
3762 Update.
3763 * progspace.c (print_program_space): Update.
3764 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
3765 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
3766 do_field_int. Change type of "value".
3767 * mi/mi-out.c (mi_ui_out::do_table_begin)
3768 (mi_ui_out::do_table_header): Update.
3769 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
3770 type of "value".
3771 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
3772 (mi_cmd_data_list_changed_registers, output_register)
3773 (mi_cmd_data_read_memory, mi_load_progress)
3774 (mi_cmd_trace_frame_collected): Update.
3775 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
3776 Update.
3777 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3778 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
3779 (mi_cmd_var_list_children, varobj_update_one): Update.
3780 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
3781 (mi_cmd_stack_list_args, list_arg_or_local): Update.
3782 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
3783 * inferior.c (print_inferior): Update.
3784 * gdb_bfd.c (print_one_bfd): Update.
3785 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3786 Update.
3787 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
3788 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
3789 do_field_int. Change type of "value".
3790 * cli-out.c (cli_ui_out::do_field_signed): Rename from
3791 do_field_int. Change type of "value".
3792 * breakpoint.c (watchpoint_check, print_breakpoint_location)
3793 (print_one_breakpoint_location, print_it_catch_fork)
3794 (print_one_catch_fork, print_it_catch_vfork)
3795 (print_one_catch_vfork, print_it_catch_solib)
3796 (print_it_catch_exec, print_it_ranged_breakpoint)
3797 (print_mention_watchpoint, print_mention_masked_watchpoint)
3798 (bkpt_print_it, update_static_tracepoint): Update.
3799 * break-catch-throw.c (print_it_exception_catchpoint): Update.
3800 * break-catch-syscall.c (print_it_catch_syscall): Update.
3801 * ada-tasks.c (print_ada_task_info): Update.
3802 * ada-lang.c (print_it_exception, print_mention_exception):
3803 Update.
3804
6b78c3f8
AB
38052019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3806
3807 PR breakpoints/24541
3808 * gdbarch.c: Regenerate.
3809 * gdbarch.h: Regenerate.
3810 * gdbarch.sh: Adjust return type and parameter types for
3811 'stap_adjust_register'.
3812 (i386_stap_adjust_register): Adjust signature and return new
3813 register name.
3814 * stap-probe.c (stap_parse_register_operand): Adjust use of
3815 'gdbarch_stap_adjust_register'.
3816
d72a9b85
TT
38172019-07-17 Tom Tromey <tromey@adacore.com>
3818
3819 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
3820 declare VEC.
3821 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
3822 std::vector.
3823 (struct s390_process_info): Add initializers.
3824 (s390_add_process): Use new.
3825 (s390_linux_nat_target::low_forget_process): Use delete.
3826 (s390_linux_nat_target::low_new_fork)
3827 (s390_linux_nat_target::stopped_by_watchpoint)
3828 (s390_linux_nat_target::low_prepare_to_resume)
3829 (s390_linux_nat_target::insert_watchpoint)
3830 (s390_linux_nat_target::insert_hw_breakpoint)
3831 (s390_linux_nat_target::remove_watchpoint)
3832 (s390_linux_nat_target::remove_hw_breakpoint): Update.
3833
206e6c58
JB
38342019-07-16 John Baldwin <jhb@FreeBSD.org>
3835
3836 * aarch64-fbsd-nat.c: Include regcache.h.
3837 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
3838 argument.
3839 (aarch64_fbsd_nat_target::fetch_registers)
3840 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
3841 variable.
3842 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
3843
cbde90f2
JB
38442019-07-16 John Baldwin <jhb@FreeBSD.org>
3845
3846 * fbsd-nat.c: Include gdbarch.h.
3847
07128006
TT
38482019-07-15 Tom Tromey <tromey@adacore.com>
3849
3850 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
3851
1f77b012
TT
38522019-07-15 Tom Tromey <tromey@adacore.com>
3853
3854 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
3855 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
3856 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
3857 * cli-out.c (cli_ui_out::do_field_int): New method.
3858 * ui-out.c (ui_out::field_unsigned): New method.
3859 * symfile.c (generic_load): Use field_unsigned.
3860 (print_transfer_performance): Likewise.
3861 * record-btrace.c (ui_out_field_uint): Remove.
3862 (btrace_call_history_insn_range, btrace_call_history): Use
3863 field_unsigned.
3864 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3865 field_unsigned.
3866 * ui-out.h (class ui_out) <field_unsigned>: New method.
3867 <do_field_unsigned>: Likewise.
3868
33eca680
TT
38692019-07-15 Tom Tromey <tromey@adacore.com>
3870
3871 * mi/mi-main.c (list_available_thread_groups): Use field_string.
3872 * mi/mi-interp.c (mi_memory_changed): Use field_string.
3873 * target.c (flash_erase_command): Use field_string.
3874 * infrun.c (print_signal_received_reason): Use field_string.
3875 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
3876 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
3877 field_string.
3878 * ada-tasks.c (print_ada_task_info): Use field_string.
3879
ca8d69be
TT
38802019-07-15 Tom Tromey <tromey@adacore.com>
3881
3882 * target.c (flash_erase_command): Use field_core_addr.
3883 * symfile.c (generic_load): Use field_core_addr.
3884 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3885 Use field_core_addr.
3886 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
3887 field_core_addr.
3888
0d4e84ed
AB
38892019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3890
3891 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
3892 value if its desired type is smaller than a CORE_ADDR and signed.
3893
9a49df9d
AB
38942019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3895
3896 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
3897 of changes to field names, and use new is_reference field to
3898 decide if a property is a reference or not.
3899 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
3900 field.
3901 (struct dwarf2_property_baton): Update header comment, rename
3902 'referenced_type' to 'property_type' and update comments.
3903 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
3904 default property type, store in property baton, update to take
3905 accound of renamed field.
3906 (read_func_scope): Update call to attr_to_dynamic_prop.
3907 (read_array_type): Likewise.
3908 (dwarf2_per_cu_addr_sized_int_type): New function.
3909 (read_subrange_index_type): Move type finding code to
3910 dwarf2_per_cu_addr_sized_int_type.
3911 (read_subrange_type): Update calls to attr_to_dynamic_prop.
3912 (dwarf2_per_cu_addr_type): New function.
3913 (set_die_type): Update calls to attr_to_dynamic_prop.
3914
b86352cf
AB
39152019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3916
3917 * dwarf2read.c (read_subrange_index_type): New function.
3918 (read_subrange_type): Move code into new function and call it.
3919 * gdbtypes.c (create_range_type): Add some asserts.
3920
603490bf
AB
39212019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3922
3923 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
3924 update return statements.
3925 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
3926 declaration, and update comment to match.
3927 * gdbtypes.c (resolve_dynamic_array): Update call to
3928 dwarf2_evaluate_property to match new return type.
3929
592f9d27
AB
39302019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3931
3932 * valarith.c (value_subscripted_rvalue): Change lowerbound
3933 parameter type from int to LONGEST.
3934 * value.h (value_subscripted_rvalue): Likewise in declaration.
3935
60cfcb20
AB
39362019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3937
3938 * cli/cli-utils.c (info_print_command_completer): New function.
3939 * cli/cli-utils.h: Add 'completer.h' include, and forward
3940 declaration for 'struct cmd_list_element'.
3941 (info_print_command_completer): Declare.
3942 * stack.c (_initialize_stack): Add completer for 'info locals' and
3943 'info args'.
3944 * symtab.c (_initialize_symtab): Add completer for 'info
3945 variables' and 'info functions'.
3946 * NEWS: Mention completion for additional info commands.
3947
b16507e0
AB
39482019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3949
3950 * cli/cli-utils.c (extract_info_print_args): Delete.
3951 (extract_arg_maybe_quoted): Delete.
3952 (info_print_options_defs): New variable.
3953 (make_info_print_options_def_group): New function.
3954 (extract_info_print_options): Define new function.
3955 * cli/cli-utils.h (extract_info_print_args): Delete.
3956 (struct info_print_options): New structure.
3957 (extract_info_print_options): Declare new function.
3958 * stack.c (info_locals_command): Update to use new
3959 extract_info_print_options, also add a header comment.
3960 (info_args_command): Likewise.
3961 * symtab.c (info_variables_command): Likewise.
3962 (info_functions_command): Likewise.
3963
021d8588
AB
39642019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3965
3966 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
3967 to extract string arguments.
3968 * common/common-utils.c (extract_string_maybe_quoted): New function.
3969 * common/common-utils.h (extract_string_maybe_quoted): Declare.
3970
b777eb6d
TT
39712019-07-11 Tom Tromey <tromey@adacore.com>
3972
3973 * main.c (get_init_files): Use GDBINIT, not gdbinit.
3974 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
3975 * top.h (gdbinit): Don't declare.
3976 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
3977 into...
3978 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
3979 * top.c (gdb_init): Don't call init_cli_cmds.
3980 (gdbinit): Remove.
3981 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
3982
72ee03ff
TT
39832019-07-11 Tom Tromey <tromey@adacore.com>
3984
3985 * python/py-inferior.c (add_thread_object): Don't use thread_obj
3986 after it has been moved.
3987
00db9531
SM
39882019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3989
3990 * valops.c (value_must_coerce_to_target): Change return type to
3991 bool.
3992 * value.h (value_must_coerce_to_target): Likewise.
3993
f2478a7e
SM
39942019-07-10 Simon Marchi <simon.marchi@efficios.com>
3995
3996 * breakpoint.c (is_hardware_watchpoint): Remove
3997 forward-declaration.
3998 (is_masked_watchpoint): Change return type to bool.
3999 (is_tracepoint): Likewise.
4000 (is_breakpoint): Likewise.
4001 (is_hardware_watchpoint): Likewise.
4002 (is_watchpoint): Likewise.
4003 (is_no_memory_software_watchpoint): Likewise.
4004 (is_catchpoint): Likewise.
4005 (breakpoint_1): Make FILTER parameter's return type bool.
4006 is_masked_watchpoint): Change return type to bool.
4007 (save_breakpoints): Make FILTER parameter's return type bool.
4008 * breakpoint.h (is_breakpoint): Change return type to bool.
4009 (is_watchpoint): Likewise.
4010 (is_catchpoint): Likewise.
4011 (is_tracepoint): Likewise.
4012
0d12e84c
TT
40132019-07-10 Tom Tromey <tom@tromey.com>
4014
4015 * defs.h: Don't include gdbarch.h.
4016 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
4017 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
4018 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
4019 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
4020 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
4021 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
4022 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
4023 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
4024 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
4025 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
4026 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
4027 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
4028 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
4029 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
4030 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
4031 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
4032 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
4033 record-btrace.c, record.h, regcache-dump.c, regcache.h,
4034 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
4035 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
4036 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
4037 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
4038 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
4039 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
4040 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
4041 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
4042 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
4043
f06f1252
TT
40442019-07-10 Tom Tromey <tromey@adacore.com>
4045
4046 * ada-lang.h (is_ada_exception_catchpoint): Declare.
4047 * breakpoint.c (init_ada_exception_breakpoint): Register as
4048 bp_catchpoint.
4049 (print_one_breakpoint_location, print_one_breakpoint): Use
4050 is_ada_exception_catchpoint.
4051 * ada-lang.c (class ada_catchpoint_location): Pass
4052 bp_loc_software_breakpoint to bp_location constructor.
4053 (is_ada_exception_catchpoint): New function.
4054
7a5d944b
TT
40552019-07-10 Tom Tromey <tromey@adacore.com>
4056
4057 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
4058 VEC.
4059 (struct arm_exidx_entry): New method operator<.
4060 (struct arm_exidx_data) <section_maps>: Change type.
4061 (arm_exidx_data_free): Remove.
4062 (arm_exidx_data_key): Change type. Move lower.
4063 (arm_exidx_new_objfile): Update.
4064 (arm_compare_exidx_entries): Remove.
4065 (arm_find_exidx_entry, _initialize_arm_tdep)
4066
48c66e1d
TT
40672019-07-10 Tom Tromey <tromey@adacore.com>
4068
4069 * solib-spu.c (ocl_program_data_key): Change type.
4070 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
4071 Update.
4072
a269fbf1
TT
40732019-07-10 Tom Tromey <tromey@adacore.com>
4074
4075 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
4076 (struct solib_aix_inferior_data) <library_list>: Change type.
4077 (solib_aix_inferior_data_handle): Change type.
4078 (get_solib_aix_inferior_data): Update.
4079 (solib_aix_free_library_list): Remove.
4080 (library_list_start_library): Update.
4081 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
4082 return type.
4083 (solib_aix_get_library_list)
4084 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
4085 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
4086
c294730c
TT
40872019-07-10 Tom Tromey <tromey@adacore.com>
4088
4089 * solib-dsbt.c (struct dsbt_info): Add initializers.
4090 (solib_dsbt_pspace_data): Change type.
4091 (dsbt_pspace_data_cleanup): Remove.
4092 (get_dsbt_info, _initialize_dsbt_solib): Update.
4093
9d52077d
TT
40942019-07-10 Tom Tromey <tromey@adacore.com>
4095
4096 * spu-tdep.c (spu_overlay_data): Change type.
4097 (spu_get_overlay_table, spu_overlay_new_objfile)
4098 (_initialize_spu_tdep): Update.
4099
22a20dca
TT
41002019-07-10 Tom Tromey <tromey@adacore.com>
4101
4102 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
4103 destructor.
4104 (dbx_objfile_data_key): Change type and declare later.
4105 (DBX_SYMFILE_INFO): Rewrite.
4106 * dbxread.c (dbx_objfile_data_key): Change type.
4107 (dbx_symfile_init): Update.
4108 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
4109 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4110 (stabsect_build_psymtabs, _initialize_dbxread): Update.
4111
cb60f420
TT
41122019-07-10 Tom Tromey <tromey@adacore.com>
4113
4114 * jit.c (jit_program_space_key): Change type. Move lower.
4115 (get_jit_program_space_data): Update.
4116 (jit_program_space_data_cleanup): Remove.
4117 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
4118 Update.
4119 (struct jit_program_space_data): Add initializers.
4120
51df2ae3
TT
41212019-07-10 Tom Tromey <tromey@adacore.com>
4122
4123 * solib-darwin.c (struct darwin_info): Add initializers.
4124 (solib_darwin_pspace_data): Change type.
4125 (darwin_pspace_data_cleanup): Remove.
4126 (get_darwin_info, _initialize_darwin_solib): Update.
4127
18101a35
TT
41282019-07-10 Tom Tromey <tromey@adacore.com>
4129
4130 * remote-sim.c (struct sim_inferior_data): Add initializers,
4131 constructor, and destructor.
4132 (sim_inferior_data_key): Change type. Move lower.
4133 (check_for_duplicate_sim_descriptor): Update.
4134 (get_sim_inferior_data): Use new. Update.
4135 (~sim_inferior_data_cleanup): Rename from
4136 sim_inferior_data_cleanup. Simplify.
4137 (gdbsim_close_inferior, simulator_command)
4138 (sim_command_completer, _initialize_remote_sim): Update.
4139 (next_pid, INITIAL_PID): Move earlier.
4140
05b08ac1
TT
41412019-07-10 Tom Tromey <tromey@adacore.com>
4142
4143 * python/python-internal.h (create_thread_object): Return
4144 gdbpy_ref.
4145 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
4146 * python/py-inferior.c (struct threadlist_entry): Add
4147 constructor.
4148 <thread_obj>: Now a gdbpy_ref.
4149 (thread_to_thread_object): Update.
4150 (add_thread_object): Use new.
4151 (delete_thread_object): Use delete.
4152 (infpy_threads): Update.
4153 (py_free_inferior): Update. Construct "inf_obj" after acquiring
4154 GIL.
4155
32372d80
TT
41562019-07-10 Tom Tromey <tromey@adacore.com>
4157
4158 * valops.c (value_cast): Specialize error message for Ada.
4159
5c458ae8
SM
41602019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4161
4162 * breakpoint.c (breakpoint_1): Update doc and parameter names.
4163
4c462cb0
SM
41642019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4165
4166 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
4167 bpstat_should_step): Return bool, adjust comments.
4168 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
4169 bpstat_should_step): Likewise.
4170
89abbcc2
AH
41712019-07-10 Alan Hayward <alan.hayward@arm.com>
4172
4173 * features/Makefile: Use feature target descriptions for Arm.
4174 * features/arm/arm-core.c: Generate new file.
4175 * features/arm/arm-fpa.c: Likewise.
4176 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
4177 * features/arm/arm-m-profile.c: Likewise.
4178 * features/arm/arm-vfpv2.c: Likewise.
4179 * features/arm/arm-vfpv3.c: Likewise.
4180 * features/arm/xscale-iwmmxt.c: Likewise.
4181 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
4182
166a82be
AH
41832019-07-10 Alan Hayward <alan.hayward@arm.com>
4184
4185 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
4186 ptrace earlier.
4187
9fb4c7e9
AH
41882019-07-10 Alan Hayward <alan.hayward@arm.com>
4189
4190 * features/aarch64-pauth.c: Regenerate.
4191
e2d0f980
SM
41922019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
4193
4194 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
4195 bool.
4196 (bpstat_what): Use false instead of 0.
4197
a38118e5
PA
41982019-07-09 Pedro Alves <palves@redhat.com>
4199
4200 * break-catch-throw.c (is_exception_catchpoint): New.
4201 * breakpoint.c (print_one_breakpoint_location): New parameter
4202 'raw_loc'. Handle it. Use
4203 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
4204 looking at the breakpoint's type.
4205 (print_one_breakpoint): If handling "maint info breakpoints", also
4206 print locations of exception catchpoints.
4207 * breakpoint.h (is_exception_catchpoint): Declare.
4208
cb1e4e32
PA
42092019-07-09 Pedro Alves <palves@redhat.com>
4210
4211 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
4212 "addr" field.
4213 (allocate_location_exception_catchpoint): New.
4214 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
4215 (initialize_throw_catchpoint_ops): Install
4216 allocate_location_exception_catchpoint as allocate_location
4217 method.
4218 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
4219 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
4220 bp_loc_other.
4221 (breakpoint_address_is_meaningful): Delete.
4222 (bl_address_is_meaningful): New.
4223 (breakpoint_locations_match): Adjust comment.
4224 (bp_location_from_bp_type): New, factored out of...
4225 (bp_location::bp_location(breakpoint *)): ... this.
4226 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
4227 factored out of...
4228 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
4229 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
4230 breakpoint_address_is_meaningful.
4231 (bp_locations_compare): Adjust comment.
4232 (update_global_location_list): Use bl_address_is_meaningful
4233 instead of breakpoint_address_is_meaningful.
4234 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
4235 explicit.
4236 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
4237 * python/py-breakpoint.c (bppy_get_location): No longer check
4238 whether location is null.
4239
b58a68fe
PA
42402019-07-09 Pedro Alves <palves@redhat.com>
4241
4242 PR c++/15468
4243 * breakpoint.c (print_one_breakpoint_location): Remove
4244 single-location assert.
4245
268a13a5
TT
42462019-07-09 Tom Tromey <tom@tromey.com>
4247
4248 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
4249 * configure: Rebuild.
4250 * configure.ac: Change common to gdbsupport.
4251 * gdbsupport: Rename from common.
4252 * acinclude.m4: Change common to gdbsupport.
4253 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
4254 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
4255 gdbsupport.
4256 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
4257 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
4258 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
4259 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
4260 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
4261 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
4262 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
4263 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
4264 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
4265 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
4266 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
4267 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
4268 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
4269 coff-pe-read.c, command.h, compile/compile-c-support.c,
4270 compile/compile-c.h, compile/compile-cplus-symbols.c,
4271 compile/compile-cplus-types.c, compile/compile-cplus.h,
4272 compile/compile-loc2c.c, compile/compile.c, completer.c,
4273 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
4274 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
4275 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
4276 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
4277 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
4278 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
4279 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
4280 features/aarch64-core.c, features/aarch64-fpu.c,
4281 features/aarch64-pauth.c, features/aarch64-sve.c,
4282 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
4283 features/i386/32bit-core.c, features/i386/32bit-linux.c,
4284 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
4285 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
4286 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
4287 features/i386/64bit-core.c, features/i386/64bit-linux.c,
4288 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
4289 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
4290 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
4291 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
4292 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
4293 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
4294 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
4295 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
4296 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
4297 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
4298 go32-nat.c, guile/guile.c, guile/scm-ports.c,
4299 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
4300 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
4301 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
4302 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
4303 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
4304 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
4305 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
4306 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
4307 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
4308 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
4309 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
4310 minsyms.c, mips-linux-tdep.c, namespace.h,
4311 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
4312 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
4313 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
4314 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
4315 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
4316 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
4317 nat/linux-waitpid.c, nat/mips-linux-watch.c,
4318 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
4319 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
4320 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
4321 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
4322 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
4323 procfs.c, producer.c, progspace.h, psymtab.h,
4324 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
4325 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
4326 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
4327 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
4328 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
4329 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
4330 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
4331 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
4332 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
4333 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
4334 target-memory.c, target.c, target.h, target/waitstatus.c,
4335 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
4336 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
4337 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
4338 unittests/array-view-selftests.c,
4339 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
4340 unittests/common-utils-selftests.c,
4341 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
4342 unittests/format_pieces-selftests.c,
4343 unittests/function-view-selftests.c,
4344 unittests/lookup_name_info-selftests.c,
4345 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
4346 unittests/mkdir-recursive-selftests.c,
4347 unittests/observable-selftests.c,
4348 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
4349 unittests/parse-connection-spec-selftests.c,
4350 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
4351 unittests/scoped_fd-selftests.c,
4352 unittests/scoped_mmap-selftests.c,
4353 unittests/scoped_restore-selftests.c,
4354 unittests/string_view-selftests.c, unittests/style-selftests.c,
4355 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
4356 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
4357 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
4358 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
4359 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
4360 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
4361
5b0e2db4
AB
43622019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4363
4364 * linespec.c (decode_digits_list_mode): Set explicit_line to a
4365 bool value.
4366 (decode_digits_ordinary): Set explicit_line field in sal.
4367 * symtab.c (skip_prologue_sal): Don't skip prologue for a
4368 symtab_and_line that was set on an explicit line number in
4369 assembler code. Do always update the recorded symtab and line if
4370 we do skip the prologue.
4371
0ba852ab
AB
43722019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4373
4374 * breakpoint.c (set_breakpoint_location_function): Remove
4375 explicit_loc parameter.
4376 (momentary_breakpoint_from_master): Update call to
4377 set_breakpoint_location_function.
4378 (add_location_to_breakpoint): Likewise.
4379
b3a7d171
AB
43802019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4381
4382 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
4383 required features based on default bfd type when no specific bfd
4384 is present.
4385
1f6f6e21
PW
43862019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4387
4388 * NEWS: Mention that GDB printf and eval commands can now print
4389 C-style and Ada-style convenience var strings without
4390 calling the inferior.
4391 * printcmd.c (printf_c_string): Locally print GDB internal var
4392 instead of transiting via the inferior.
4393 (printf_wide_c_string): Likewise.
4394
43952019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
4396
4397 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
4398
0598af48
TT
43992019-07-04 Tom Tromey <tom@tromey.com>
4400
4401 PR tui/24724:
4402 * tui/tui-winsource.c (tui_clear_source_content): Update.
4403 (tui_source_window_base::set_is_exec_point_at): Fix comment.
4404 (tui_update_breakpoint_info): Update.
4405 (tui_set_exec_info_content): Update.
4406 * tui/tui-source.c (tui_set_source_content_nil): Update.
4407 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
4408 has_break.
4409 * tui/tui-data.h (enum tui_bp_flag): New.
4410 (tui_bp_flags): New enum flags type.
4411 (struct tui_source_element) <break_mode>: Change type. Rename
4412 from has_break.
4413 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
4414 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
4415 constants.
4416 * tui/tui-winsource.h: Fix comment.
4417
350fab54
AH
44182019-07-04 Alan Hayward <alan.hayward@arm.com>
4419
4420 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
4421 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
4422 (store_fpregs_to_thread)
4423 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4424 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
4425 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
4426 (IWMMXT_REGS_SIZE): Add define.
4427 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
4428 (fetch_vfp_regs, store_vfp_regs)
4429 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4430 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
4431
f0452268
AH
44322019-07-04 Alan Hayward <alan.hayward@arm.com>
4433
4434 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
4435 defines.
4436 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
4437 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
4438 (ARM_INT_REGISTER_SIZE): ...to this.
4439 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
4440 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
4441 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
4442 (arm_linux_collect_gregset, supply_nwfpe_register)
4443 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
4444 defines.
4445 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
4446 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
4447 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
4448 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
4449 (arm_return_in_memory, arm_store_return_value)
4450 (arm_get_longjmp_target, arm_register_g_packet_guesses)
4451 (arm_record_ld_st_multiple): Likewise.
4452 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
4453 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
4454
e935475c
AH
44552019-07-04 Alan Hayward <alan.hayward@arm.com>
4456
4457 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
4458 AARCH64_DISPLACED_MODIFIED_INSNS.
4459 * aarch64-tdep.c (struct aarch64_displaced_step_data)
4460 (aarch64_displaced_step_copy_insn): Likewise.
4461 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4462 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
4463 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
4464 ARM_DISPLACED_MODIFIED_INSNS.
4465 * arm-tdep.c (arm_gdbarch_init): Likewise.
4466 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4467 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
4468 (struct arm_displaced_step_closure): Use
4469 ARM_DISPLACED_MODIFIED_INSNS.
4470
df0bb381
AH
44712019-07-04 Alan Hayward <alan.hayward@arm.com>
4472
4473 * features/Makefile: Remove unused xml files.
4474 * features/aarch64.xml: Remove.
4475 * features/i386/amd64-avx-avx512-linux.xml: Remove.
4476 * features/i386/amd64-avx-avx512.xml: Remove.
4477 * features/i386/amd64-avx-linux.xml: Remove.
4478 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
4479 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
4480 * features/i386/amd64-avx-mpx-linux.xml: Remove.
4481 * features/i386/amd64-avx-mpx.xml: Remove.
4482 * features/i386/amd64-avx.xml: Remove.
4483 * features/i386/amd64-linux.xml: Remove.
4484 * features/i386/amd64-mpx-linux.xml: Remove.
4485 * features/i386/amd64-mpx.xml: Remove.
4486 * features/i386/amd64.xml: Remove.
4487 * features/i386/i386-avx-avx512-linux.xml: Remove.
4488 * features/i386/i386-avx-avx512.xml: Remove.
4489 * features/i386/i386-avx-linux.xml: Remove.
4490 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
4491 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
4492 * features/i386/i386-avx-mpx-linux.xml: Remove.
4493 * features/i386/i386-avx-mpx.xml: Remove.
4494 * features/i386/i386-avx.xml: Remove.
4495 * features/i386/i386-linux.xml: Remove.
4496 * features/i386/i386-mmx-linux.xml: Remove.
4497 * features/i386/i386-mmx.xml: Remove.
4498 * features/i386/i386-mpx-linux.xml: Remove.
4499 * features/i386/i386-mpx.xml: Remove.
4500 * features/i386/i386.xml: Remove.
4501 * features/i386/x32-avx-avx512-linux.xml: Remove.
4502 * features/i386/x32-avx-linux.xml: Remove.
4503 * features/i386/x32-linux.xml: Remove.
4504
edd6266a
AH
45052019-07-04 Alan Hayward <alan.hayward@arm.com>
4506
4507 * regformats/aarch64.dat: Remove.
4508 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
4509 * regformats/i386/amd64-avx-linux.dat: Remove.
4510 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
4511 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
4512 * regformats/i386/amd64-linux.dat: Remove.
4513 * regformats/i386/amd64-mpx-linux.dat: Remove.
4514 * regformats/i386/amd64.dat: Remove.
4515 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
4516 * regformats/i386/i386-avx-linux.dat: Remove.
4517 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
4518 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
4519 * regformats/i386/i386-linux.dat: Remove.
4520 * regformats/i386/i386-mmx-linux.dat: Remove.
4521 * regformats/i386/i386-mpx-linux.dat: Remove.
4522 * regformats/i386/i386.dat: Remove.
4523 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
4524 * regformats/i386/x32-avx-linux.dat: Remove.
4525 * regformats/i386/x32-linux.dat: Remove.
4526
2b40fda7
AH
45272019-07-04 Alan Hayward <alan.hayward@arm.com>
4528
4529 * aarch64-tdep.c: Remove xml self tests.
4530 * amd64-linux-tdep.c: Likewise.
4531 * amd64-tdep.c: Likewise.
4532 * i386-linux-tdep.c: Likewise.
4533 * i386-tdep.c: Likewise.
4534
5f4ba3e7
PA
45352019-07-03 Pedro Alves <palves@redhat.com>
4536
4537 PR cli/24732
4538 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
4539 (pipe_cmd_option_defs): New.
4540 (make_pipe_cmd_options_def_group): New.
4541 (pipe_command): Use gdb::option::process_options.
4542 (pipe_command_completer): New function.
4543 (_initialize_cli_cmds): Install completer for "pipe" command.
4544
3d9be6f5
PA
45452019-07-03 Pedro Alves <palves@redhat.com>
4546
4547 * cli/cli-option.c (union option_value) <string>: New field.
4548 (struct option_def_and_value): Add ctor, move ctor, dtor and
4549 use DISABLE_COPY_AND_ASSIGN.
4550 (option_def_and_value::clear_value): New.
4551 (parse_option, save_option_value_in_ctx, get_val_type_str)
4552 (add_setshow_cmds_for_options): Handle var_string.
4553 * cli-option.h (union option_def::var_address) <string>: New
4554 field.
4555 (struct string_option_def): New.
4556 * maint-test-options.c (struct test_options_opts): Add default
4557 ctor and use DISABLE_COPY_AND_ASSIGN.
4558 <string_opt>: New field.
4559 (test_options_opts::~test_options_opts): New.
4560 (test_options_opts::dump): Also dump "-string".
4561 (test_options_option_defs): Install "string.
4562
41fc454c
PA
45632019-07-03 Pedro Alves <palves@redhat.com>
4564
4565 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
4566 option_value with a null enumeration.
4567 (complete_options): Save the option values in the context.
4568 (save_option_value_in_ctx): New, factored out from ...
4569 (process_options): ... here.
4570 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
4571 of the function.
4572 * maint-test-options.c (test_options_opts::dump): New, factored
4573 out from ...
4574 (maintenance_test_options_command_mode): ... here.
4575 (maintenance_test_options_command_completion_result): Delete.
4576 (maintenance_test_options_command_completion_text): Update
4577 comment.
4578 (maintenance_show_test_options_completion_result): Change
4579 prototype. Just print
4580 maintenance_test_options_command_completion_text.
4581 (save_completion_result): New.
4582 (maintenance_test_options_completer_mode): Pass options context to
4583 complete_options, and then save a dump.
4584 (_initialize_maint_test_options): Use add_cmd to install "maint
4585 show test-options-completion-result".
4586
fdbc9870
PA
45872019-07-03 Pedro Alves <palves@redhat.com>
4588
4589 * NEWS (New commands): Mention "with" and "maint with".
4590 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
4591 (with_command, with_command_completer): New.
4592 (pipe_command): Adjust to new repeat_previous
4593 interface.
4594 (_initialize_cli_cmds): Install the "with" command and its "w"
4595 alias.
4596 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
4597 declarations.
4598 * cli/cli-setshow.c (parse_cli_var_uinteger)
4599 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
4600 argument strings for all var_types.
4601 (get_setshow_command_value_string): New, factored out from ...
4602 (do_show_command): ... this.
4603 * cli/cli-setshow.h: Include <string>.
4604 (get_setshow_command_value_string): Declare.
4605 * command.h (repeat_previous): Now returns const char *. Adjust
4606 comment.
4607 * maint.c: Include "cli/cli-cmds.h".
4608 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
4609 (_initialize_maint_cmds): Register the "maintenance with" command.
4610 * top.c (repeat_previous): Move bits from pipe_command here:
4611 Return the saved command line, if any; error out if there's no
4612 command to relaunch.
4613
c6ac8931
PA
46142019-07-03 Pedro Alves <palves@redhat.com>
4615
4616 * NEWS (New commands): Mention "maint set/show test-settings"
4617 instead of "maint test-settings".
4618 * maint-test-settings.c (maintenance_test_settings_list): Delete.
4619 (maintenance_test_settings_set_list): Rename to ...
4620 (maintenance_set_test_settings_list): ... this.
4621 (maintenance_test_settings_show_list): Rename to ...
4622 (maintenance_show_test_settings_list): ... this.
4623 (maintenance_test_settings_cmd): Delete.
4624 (maintenance_test_settings_set_cmd): ...
4625 (maintenance_set_test_settings_cmd): ... this.
4626 (maintenance_test_settings_show_cmd): ...
4627 (maintenance_show_test_settings_cmd): ... this.
4628 (maintenance_test_settings_show_value_cmd):
4629 (maintenance_show_test_settings_value_cmd): ... this.
4630 (_initialize_maint_test_settings): No longer install the "maint
4631 test-settings" prefix command. Rename "maint test-settings set"
4632 to "maint set test-settings", and "maint test-settings show" to
4633 "maint show test-settings". Adjust all subcommands.
4634
d1fcf2fd
PA
46352019-07-03 Pedro Alves <palves@redhat.com>
4636
4637 * maint-test-settings.c: Fix file's intro comment. Replace all
4638 references to "test-options" with references to "test-settings",
4639 in comments.
4640
970f9d09
PA
46412019-07-03 Pedro Alves <palves@redhat.com>
4642
4643 * maint-test-settings.c (maintenance_test_settings_xxx)
4644 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
4645 New.
4646 (maintenance_test_settings_enums): Use them.
4647 (maintenance_test_settings_enum): Default to
4648 maintenance_test_settings_xxx.
4649 (_initialize_maint_test_settings): Initialize
4650 MAINTENANCE_TEST_SETTINGS_FILENAME.
4651
f3869b1a
SM
46522019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4653
4654 * breakpoint.h (remove_breakpoints_inf): Change return type to
4655 void, move function documentation here.
4656 * breakpoint.c (remove_breakpoints_inf): Change return type to
4657 void, move function documentation to header.
4658
54d66006
PA
46592019-07-02 Pedro Alves <palves@redhat.com>
4660
4661 * NEWS (Completion improvements): Mention "info threads".
4662 * thread.c (struct info_threads_opts, info_threads_option_defs)
4663 (make_info_threads_options_def_group): New.
4664 (info_threads_command): Use gdb::option::process_options.
4665 (info_threads_command_completer): New.
4666 (_initialize_thread): Use gdb::option::build_help to build the
4667 help text for "info threads".
4668
854f6088
SM
46692019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4670
4671 * defs.h (generic_load): Move from here...
4672 * symfile.h (generic_load): ... to here. Rename name parameter
4673 to args.
4674 * symfile.c (generic_load): Add comment.
4675
54ee4252
TT
46762019-07-01 Tom Tromey <tromey@adacore.com>
4677
4678 * dwarf2read.c
4679 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
4680 declaration of without_params. Fix formatting.
4681
65392b3e
TT
46822019-07-01 Tom Tromey <tromey@adacore.com>
4683
4684 * ada-exp.y (find_primitive_type): Update.
4685 * ada-lang.h (ada_lookup_symbol): Update.
4686 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
4687 parameter.
4688 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
4689
7d7571f0
SDJ
46902019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4691
4692 PR breakpoints/24541
4693 * gdbarch.c: Regenerate.
4694 * gdbarch.h: Regenerate.
4695 * gdbarch.sh: Add 'stap_adjust_register'.
4696 * i386-tdep.c: Include '<unordered_set>'.
4697 (i386_stap_adjust_register): New function.
4698 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
4699 * stap-probe.c (stap_parse_register_operand): Call
4700 'gdbarch_stap_adjust_register'.
4701
5af5392a
SDJ
47022019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4703
4704 PR python/24742
4705 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
4706 * python/python.c (do_start_initialization): Use 'xmalloc'
4707 instead of 'PyMem_Malloc'.
4708
10d06d82
TT
47092019-06-28 Tom Tromey <tromey@adacore.com>
4710
4711 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
4712 for Ada.
4713
1b7f24cd
TT
47142019-06-27 Tom Tromey <tromey@adacore.com>
4715
4716 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
4717 objfile_key.
4718 (arm_find_mapping_symbol, arm_record_special_symbol)
4719 (_initialize_arm_tdep): Update.
4720 (arm_objfile_data_free): Remove.
4721
3d507ff2
TT
47222019-06-27 Tom Tromey <tromey@adacore.com>
4723
4724 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
4725 to cp_print_static_field.
4726
762c164d
TT
47272019-06-26 Tom Tromey <tromey@adacore.com>
4728
4729 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
4730 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
4731 declare.
4732
aa2f9bcf
AH
47332019-06-26 Alan Hayward <alan.hayward@arm.com>
4734
4735 * features/aarch64-core.c (create_feature_aarch64_core):
4736 Regenerate.
4737 * features/aarch64-core.xml: Add cpsr flags.
4738
3426ae57
AH
47392019-06-26 Alan Hayward <alan.hayward@arm.com>
4740
4741 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
4742 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
4743
4838e44c
SM
47442019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4745
4746 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
4747 field.
4748 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
4749 use.
4750 (arm_record_special_symbol): Don't insert new symbol in sorted
4751 position, push it at the end.
4752
54cc7474
SM
47532019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4754
4755 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
4756 (arm_mapping_symbol_s): Remove.
4757 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
4758 (arm_mapping_symbol_vec): New typedef.
4759 (struct arm_per_objfile): Add constructor.
4760 <section_maps>: Change type to
4761 std::unique_ptr<arm_mapping_symbol_vec[]>.
4762 (arm_compare_mapping_symbols): Remove.
4763 (arm_find_mapping_symbol): Adjust to section_maps type change.
4764 (arm_objfile_data_free): Call delete on arm_per_objfile.
4765 (arm_record_special_symbol): Adjust to section_maps type change.
4766 Allocate arm_per_objfile with new.
4767
b65b566c
PW
47682019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4769
4770 * cli/cli-cmds.c (alias_command): Compare the alias prefix
4771 with the command prefix.
4772
c2fc64f5
TT
47732019-06-25 Tom Tromey <tom@tromey.com>
4774
4775 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
4776 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
4777
fb54fa76
TT
47782019-06-25 Tom Tromey <tom@tromey.com>
4779
4780 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
4781 type.
4782 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
4783 protected.
4784
f7952c57
TT
47852019-06-25 Tom Tromey <tom@tromey.com>
4786
4787 * tui/tui-winsource.c
4788 (tui_source_window_base::set_is_exec_point_at): Add check against
4789 LOA_ADDRESS.
4790
17568d78
TT
47912019-06-25 Tom Tromey <tom@tromey.com>
4792
4793 * tui/tui-source.c (tui_set_source_content): Don't check before
4794 xfree.
4795 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
4796
53e7cdba
TT
47972019-06-25 Tom Tromey <tom@tromey.com>
4798
4799 * tui/tui-winsource.h (tui_update_source_window_as_is)
4800 (tui_alloc_source_buffer, tui_line_is_displayed)
4801 (tui_addr_is_displayed): Change type of win_info.
4802 * tui/tui-winsource.c (tui_update_source_window_as_is)
4803 (tui_clear_source_content, tui_show_source_line)
4804 (tui_show_source_content, tui_source_window_base::refill)
4805 (tui_source_window_base::set_is_exec_point_at)
4806 (tui_source_window_base::set_is_exec_point_at)
4807 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
4808 (tui_alloc_source_buffer, tui_line_is_displayed)
4809 (tui_addr_is_displayed): Change type of win_info. Update.
4810 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4811 (tui_source_window_base::do_make_visible_with_new_height):
4812 Update.
4813 * tui/tui-source.c (tui_set_source_content)
4814 (tui_set_source_content_nil)
4815 (tui_source_window::do_scroll_vertical): Update.
4816 * tui/tui-layout.c (show_layout): Update.
4817 * tui/tui-disasm.c (tui_set_disassem_content)
4818 (tui_disasm_window::do_scroll_vertical): Update.
4819 * tui/tui-data.h (tui_win_content): Remove.
4820 (struct tui_gen_win_info) <content, content_size>: Remove.
4821 (struct tui_source_element): Add initializers and destructor.
4822 (union tui_which_element, struct tui_win_element): Remove.
4823 (struct tui_source_window_base) <content>: New field.
4824 (struct tui_data_window): Remove destructor.
4825 (tui_alloc_content, tui_free_win_content)
4826 (tui_free_all_source_wins_content): Don't declare.
4827 * tui/tui-data.c (tui_initialize_static_data): Update.
4828 (init_content_element, tui_alloc_content): Remove.
4829 (~tui_gen_win_info): Update.
4830 (~tui_data_window, tui_free_all_source_wins_content)
4831 (tui_free_win_content, free_content, free_content_elements):
4832 Remove.
4833
7908abbf
TT
48342019-06-25 Tom Tromey <tom@tromey.com>
4835
4836 * tui/tui-winsource.h (tui_clear_source_content)
4837 (tui_erase_source_content, tui_show_source_content): Change type
4838 of win_info.
4839 * tui/tui-winsource.c (tui_clear_source_content)
4840 (tui_erase_source_content, tui_show_source_content): Change type
4841 of win_info.
4842 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4843 * tui/tui-source.h (tui_set_source_content_nil): Change type of
4844 win_info.
4845 * tui/tui-source.c (tui_set_source_content_nil): Change type of
4846 win_info.
4847 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
4848
02c28df0
TT
48492019-06-25 Tom Tromey <tom@tromey.com>
4850
4851 * tui/tui-winsource.c (tui_clear_source_content)
4852 (tui_source_window_base::set_is_exec_point_at): Update.
4853 * tui/tui-source.c (tui_set_source_content_nil): Update.
4854 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
4855 a bool.
4856 * tui/tui-data.c (init_content_element): Update.
4857
6658b1bf
TT
48582019-06-25 Tom Tromey <tom@tromey.com>
4859
4860 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
4861 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
4862 * tui/tui-layout.c (init_and_make_win): Update.
4863 * tui/tui.h (enum tui_win_type): Update.
4864 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
4865 tui_win_is_auxillary.
4866 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
4867 tui_win_is_auxillary.
4868
21e1c91e
TT
48692019-06-25 Tom Tromey <tom@tromey.com>
4870
4871 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
4872 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
4873 (tui_delete_data_content_windows, tui_display_all_data)
4874 (tui_data_window::do_scroll_vertical, tui_display_data_from):
4875 Update.
4876 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
4877 * tui/tui-regs.c (tui_last_regs_line_no)
4878 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4879 (tui_show_registers): Update.
4880 (tui_show_register_group): Return void. Update.
4881 (tui_display_registers_from, tui_display_reg_element_at_line)
4882 (tui_display_registers_from_line, tui_check_register_values):
4883 Update.
4884 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
4885 member.
4886 (struct tui_data_window) <regs_content>: Now a std::vector.
4887 <regs_content_count>: Remove.
4888 (tui_add_content_elements, tui_free_data_content): Don't declare.
4889 * tui/tui-data.c (tui_data_window::clear_detail): Update.
4890 (init_content_element): Remove DATA_WIN case. Add assert.
4891 (tui_add_content_elements): Remove.
4892 (tui_data_window): Update.
4893 (tui_free_data_content): Remove.
4894 (free_content_elements): Remove DATA_WIN case.
4895
115ac53b
TT
48962019-06-25 Tom Tromey <tom@tromey.com>
4897
4898 * tui/tui-data.c (tui_data_item_window): Update.
4899 * tui/tui-windata.h (tui_check_data_values): Don't declare.
4900 * tui/tui-windata.c (tui_display_all_data)
4901 (tui_display_data_from_line): Update.
4902 (tui_check_data_values): Remove.
4903 * tui/tui-regs.c (tui_show_register_group)
4904 (tui_display_reg_element_at_line): Update.
4905 * tui/tui-hooks.c (tui_register_changed)
4906 (tui_refresh_frame_and_register_information): Call
4907 tui_check_register_values.
4908 * tui/tui-data.h (struct tui_data_window) <data_content,
4909 data_content_count, data_type>: Remove.
4910 (enum tui_data_type): Remove.
4911
4912 * tui/tui-data.c (tui_data_window::clear_detail)
4913 (~tui_data_window): Update.
4914
eaf9738b
TT
49152019-06-25 Tom Tromey <tom@tromey.com>
4916
4917 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
4918 declare.
4919 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
4920 Rename from tui_first_data_item_displayed. Update.
4921 (tui_data_window::refresh_all)
4922 (tui_data_window::do_scroll_vertical): Update.
4923 * tui/tui-data.h (struct tui_data_window)
4924 <first_data_item_displayed>: Declare new method.
4925
31ca4723
TT
49262019-06-25 Tom Tromey <tom@tromey.com>
4927
4928 * tui/tui-data.h (tui_init_generic_part): Don't declare.
4929 * tui/tui-data.c (tui_init_generic_part): Remove, moving
4930 contents...
4931 (tui_initialize_static_data): ...here.
4932
41bcff7f
TT
49332019-06-25 Tom Tromey <tom@tromey.com>
4934
4935 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4936 (tui_display_registers_from, tui_check_register_values): Update.
4937 (tui_display_register): Remove win_info parameter; update.
4938 (tui_get_register): Change type of parameters.
4939 * tui/tui-data.h (struct tui_data_element): Remove.
4940 (union tui_which_element) <data>: Remove.
4941 <data_window>: Change type.
4942 (struct tui_data_item_window): New.
4943 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
4944 case. Add assert.
4945 (~tui_data_item_window): New destructor.
4946 (free_content_elements): Remove DATA_ITEM_WIN case.
4947
d2802c33
TT
49482019-06-25 Tom Tromey <tom@tromey.com>
4949
4950 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
4951 Remove.
4952
dd835f8b
TT
49532019-06-25 Tom Tromey <tom@tromey.com>
4954
4955 * tui/tui-data.h (struct tui_command_element): Remove.
4956 (union tui_which_element) <command>: Remove.
4957 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
4958 assert.
4959 (free_content_elements): Remove CMD_WIN case.
4960
bd7db367
TT
49612019-06-25 Tom Tromey <tom@tromey.com>
4962
4963 * tui/tui-layout.c (tui_set_layout): Update.
4964 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
4965 * tui/tui-data.c (layout_def): Update.
4966
3add462f
TT
49672019-06-25 Tom Tromey <tom@tromey.com>
4968
4969 * tui/tui-wingeneral.c (tui_refresh_all): Update.
4970 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4971 (tui_source_window_base::set_new_height): Update.
4972 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
4973 Update.
4974 (tui_set_locator_fullname, tui_set_locator_info)
4975 (tui_show_frame_info): Update.
4976 * tui/tui-source.c (tui_set_source_content)
4977 (tui_source_is_displayed): Update.
4978 * tui/tui-layout.c (show_source_disasm_command, show_data)
4979 (show_source_or_disasm_and_command): Update.
4980 * tui/tui-disasm.c (tui_set_disassem_content)
4981 (tui_get_begin_asm_address): Update.
4982 * tui/tui-data.h (struct tui_locator_element): Remove.
4983 (union tui_which_element) <locator>: Remove.
4984 (struct tui_locator_window): New.
4985 (tui_locator_win_info_ptr): Change return type.
4986 * tui/tui-data.c (_locator): Change type.
4987 (tui_locator_win_info_ptr): Change return type.
4988 (init_content_element): Remove LOCATOR_WIN case. Add assert.
4989 (tui_alloc_content): Add assert.
4990
489e9d8b
TT
49912019-06-25 Tom Tromey <tom@tromey.com>
4992
4993 * tui/tui-winsource.c
4994 (tui_exec_info_window::maybe_allocate_content): New method.
4995 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
4996 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
4997 (make_source_or_disasm_window): Add cast.
4998 * tui/tui-data.h (union tui_which_element) <simple_string>:
4999 Remove.
5000 (struct tui_source_info): New.
5001 (struct tui_source_window_base) <execution_info>: Change type.
5002 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
5003 case, and add assert.
5004 (tui_alloc_content): Add assert.
5005
c3fabb7d
TT
50062019-06-25 Tom Tromey <tom@tromey.com>
5007
5008 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
5009 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
5010 * tui/tui-data.c (tui_alloc_win_info): Remove.
5011
bbc228ee
TT
50122019-06-25 Tom Tromey <tom@tromey.com>
5013
5014 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
5015 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
5016 can_highlight.
5017
5fcee43a
TT
50182019-06-25 Tom Tromey <tom@tromey.com>
5019
5020 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
5021 make_visible_with_new_height method.
5022 (tui_win_info::make_visible_with_new_height): New method.
5023 (tui_source_window_base::do_make_visible_with_new_height)
5024 (tui_data_window::do_make_visible_with_new_height)
5025 (tui_cmd_window::do_make_visible_with_new_height): New methods.
5026 (make_visible_with_new_height): Remove.
5027 (tui_resize_all, tui_adjust_win_heights): Use
5028 make_visible_with_new_height method.
5029 * tui/tui-data.h (struct tui_win_info)
5030 <do_make_visible_with_new_height, make_visible_with_new_height>:
5031 New methods.
5032 (struct tui_source_window_base, struct tui_data_window)
5033 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
5034 methods.
5035
d83f1fe6
TT
50362019-06-25 Tom Tromey <tom@tromey.com>
5037
5038 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
5039 method.
5040 (update_tab_width): Call update_tab_width method.
5041 * tui/tui-data.h (struct tui_win_info)
5042 (struct tui_source_window_base) <update_tab_width>: New methods.
5043
17374de4
TT
50442019-06-25 Tom Tromey <tom@tromey.com>
5045
5046 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
5047 parameter.
5048 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
5049 parameter.
5050 (tui_gen_win_info::make_visible): Update.
5051 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
5052 parameter.
5053 * tui/tui-data.h (enum tui_box): New enum.
5054 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
5055
f936bca2
TT
50562019-06-25 Tom Tromey <tom@tromey.com>
5057
5058 * tui/tui-layout.c (make_source_or_disasm_window): Always use
5059 init_and_make_win for EXEC_INFO_WIN.
5060 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
5061 longer inline.
5062 (struct tui_win_info) <~tui_win_info>: Inline.
5063 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5064 Don't declare.
5065 * tui/tui-data.c (source_win, disasm_win): Remove globals.
5066 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5067 Remove.
5068 (tui_initialize_static_data): Update.
5069 (~tui_gen_win_info): Handle more cleanup here.
5070 (~tui_source_window_base): Delete "execution_info".
5071 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
5072
d6ba6a11
TT
50732019-06-25 Tom Tromey <tom@tromey.com>
5074
5075 * tui/tui-layout.c (make_command_window): Don't set
5076 can_highlight.
5077 (show_source_disasm_command): Call the reset method.
5078 (show_data): Don't set can_highlight. Call the reset method.
5079 (tui_gen_win_info::reset): Rename from init_gen_win_info
5080 (init_and_make_win): Simplify. Return tui_gen_win_info.
5081 (show_source_or_disasm_and_command): Call the reset method.
5082 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
5083 (struct tui_cmd_window): Set can_highlight.
5084
48a3bd16
TT
50852019-06-25 Tom Tromey <tom@tromey.com>
5086
5087 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
5088 from make_visible.
5089 (tui_make_visible, tui_make_invisible): Rewrite.
5090 (tui_win_info::make_visible): Remove.
5091 (tui_source_window_base::make_visible): Update.
5092 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
5093 method. Moved from...
5094 (struct tui_win_info) <make_visible>: ...here.
5095
c3bd716f
TT
50962019-06-25 Tom Tromey <tom@tromey.com>
5097
5098 * tui/tui-winsource.c
5099 (tui_source_window_base::do_scroll_horizontal): Remove direction
5100 parameter.
5101 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
5102 direction parameter.
5103 * tui/tui-win.c (tui_win_info::forward_scroll)
5104 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5105 (tui_win_info::right_scroll): Update.
5106 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
5107 direction parameter.
5108 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
5109 direction parameter.
5110 * tui/tui-data.h (enum tui_scroll_direction): Remove.
5111 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
5112 Remove direction parameter.
5113 (struct tui_source_window_base, struct tui_source_window)
5114 (struct tui_disasm_window, struct tui_data_window)
5115 (struct tui_cmd_window): Update.
5116
21c32dca
TT
51172019-06-25 Tom Tromey <tom@tromey.com>
5118
5119 * tui/tui-winsource.h (tui_set_exec_info_content)
5120 (tui_show_exec_info_content, tui_erase_exec_info_content)
5121 (tui_clear_exec_info_content, tui_update_exec_info): Change
5122 argument to tui_source_window_base.
5123 * tui/tui-winsource.c (tui_set_exec_info_content)
5124 (tui_show_exec_info_content, tui_erase_exec_info_content)
5125 (tui_clear_exec_info_content, tui_update_exec_info): Change
5126 argument to tui_source_window_base.
5127
73fbdc65
TT
51282019-06-25 Tom Tromey <tom@tromey.com>
5129
5130 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
5131 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
5132
33325343
TT
51332019-06-25 Tom Tromey <tom@tromey.com>
5134
5135 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
5136 check.
5137
29d2c474
TT
51382019-06-25 Tom Tromey <tom@tromey.com>
5139
5140 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
5141 type to void.
5142 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
5143 type to void.
5144 * tui/tui-source.c (tui_set_source_content): Update.
5145 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5146
152f3f4b
TT
51472019-06-25 Tom Tromey <tom@tromey.com>
5148
5149 * tui/tui-win.c (window_name_completer, tui_set_focus)
5150 (tui_all_windows_info): Use name method.
5151 * tui/tui-data.h (struct tui_gen_win_info)
5152 (struct tui_source_window, struct tui_disasm_window)
5153 (struct tui_data_window, struct tui_cmd_window) <name>: New
5154 method.
5155 (tui_win_name): Don't declare.
5156 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
5157 (tui_win_name): Remove.
5158
be4da588
TT
51592019-06-25 Tom Tromey <tom@tromey.com>
5160
5161 * tui/tui-winsource.h (tui_update_source_window)
5162 (tui_update_source_window_as_is): Change parameter type.
5163 * tui/tui-winsource.c (tui_update_source_window): Change win_info
5164 to be a tui_source_window_base.
5165 (tui_update_source_window_as_is): Likewise.
5166 * tui/tui-win.c (make_visible_with_new_height): Update.
5167
5b81daba
TT
51682019-06-25 Tom Tromey <tom@tromey.com>
5169
5170 * tui/tui-winsource.c (tui_erase_source_content)
5171 (tui_show_source_content, tui_show_exec_info_content)
5172 (tui_erase_exec_info_content): Use refresh_window method.
5173 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
5174 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
5175 from tui_refresh_win.
5176 (tui_data_window::refresh_window): New method.
5177 (tui_win_info::refresh, tui_source_window_base::refresh)
5178 (tui_refresh_all): Use refresh_window method.
5179 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
5180 method.
5181 * tui/tui-regs.c (tui_display_register): Call refresh_window
5182 method.
5183 * tui/tui-layout.c (show_source_disasm_command)
5184 (show_source_or_disasm_and_command): Call refresh_window method.
5185 * tui/tui-data.h (struct tui_gen_win_info)
5186 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
5187 New method.
5188
cb2ce893
TT
51892019-06-25 Tom Tromey <tom@tromey.com>
5190
5191 * tui/tui.c (tui_rl_other_window, tui_enable)
5192 (tui_is_window_visible, tui_get_command_dimension): Update.
5193 * tui/tui-winsource.c (tui_update_source_window_as_is)
5194 (tui_clear_source_content, tui_erase_source_content)
5195 (tui_show_source_line, tui_source_window_base::refill)
5196 (tui_source_window_base::do_scroll_horizontal)
5197 (tui_source_window_base::set_is_exec_point_at)
5198 (tui_update_breakpoint_info, tui_set_exec_info_content)
5199 (tui_alloc_source_buffer, tui_line_is_displayed)
5200 (tui_addr_is_displayed): Update.
5201 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5202 (tui_check_and_display_highlight_if_needed)
5203 (tui_win_info::make_visible, tui_win_info::refresh)
5204 (tui_refresh_all): Update.
5205 * tui/tui-windata.c (tui_first_data_item_displayed)
5206 (tui_delete_data_content_windows, tui_erase_data_content)
5207 (tui_display_all_data, tui_data_window::refresh_all)
5208 (tui_check_data_values): Update.
5209 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
5210 (tui_set_win_focus_to, tui_win_info::forward_scroll)
5211 (tui_win_info::backward_scroll, tui_refresh_all_win)
5212 (tui_resize_all, tui_set_focus, tui_all_windows_info)
5213 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
5214 (tui_source_window_base::set_new_height)
5215 (tui_data_window::set_new_height)
5216 (make_invisible_and_set_new_height)
5217 (make_visible_with_new_height, new_height_ok)
5218 (parse_scrolling_args): Update.
5219 * tui/tui-stack.c (tui_show_frame_info): Update.
5220 * tui/tui-source.c (tui_set_source_content)
5221 (tui_set_source_content_nil, tui_source_is_displayed)
5222 (tui_source_window::do_scroll_vertical): Update.
5223 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5224 (tui_display_registers_from, tui_display_reg_element_at_line)
5225 (tui_check_register_values, tui_reg_command): Update.
5226 * tui/tui-layout.c (tui_default_win_height)
5227 (show_source_disasm_command, show_data, init_and_make_win)
5228 (show_source_or_disasm_and_command): Update.
5229 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
5230 (tui_redisplay_readline, tui_mld_flush)
5231 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
5232 (tui_getc): Update.
5233 * tui/tui-disasm.c (tui_set_disassem_content)
5234 (tui_disasm_window::do_scroll_vertical): Update.
5235 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
5236 Now virtual.
5237 (struct tui_win_info): Derive from tui_gen_win_info.
5238 <~tui_win_info>: Mark as override.
5239 <generic>: Remove member.
5240 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
5241 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
5242 (~tui_data_window, ~tui_win_info)
5243 (tui_free_all_source_wins_content): Update.
5244 * tui/tui-command.c (tui_refresh_cmd_win): Update.
5245
ab313b35
TT
52462019-06-25 Tom Tromey <tom@tromey.com>
5247
5248 * tui/tui-layout.c (init_and_make_win): Use new.
5249 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
5250 destructor, initializers.
5251 (tui_alloc_generic_win_info): Don't declare.
5252 * tui/tui-data.c (_locator): Add argument to constructor.
5253 (source_win, disasm_win): New globals.
5254 (exec_info): Remove.
5255 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5256 Update.
5257 (tui_alloc_generic_win_info): Remove.
5258 (init_content_element): Use new.
5259 (tui_win_info::tui_win_info): Update.
5260 (free_content_elements) <case DATA_WIN>: Use delete.
5261
dc2c33e4
TT
52622019-06-25 Tom Tromey <tom@tromey.com>
5263
5264 * tui/tui-wingeneral.c (tui_refresh_win): Update.
5265 * tui/tui-windata.c (tui_first_data_item_displayed)
5266 (tui_delete_data_content_windows): Update.
5267 * tui/tui-win.c (tui_data_window::set_new_height): Update.
5268 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5269 (tui_display_registers_from, tui_check_register_values): Update.
5270 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
5271 pointer.
5272 * tui/tui-data.c (init_content_element): Update. Allocate the new
5273 window.
5274 (tui_free_data_content): Update.
5275 (free_content_elements) <case DATA_WIN>: Free the window.
5276
214a5cbe
TT
52772019-06-25 Tom Tromey <tom@tromey.com>
5278
5279 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
5280 Update.
5281 * tui/tui-layout.c (make_command_window)
5282 (show_source_disasm_command, show_data, init_and_make_win)
5283 (show_source_or_disasm_and_command): Update.
5284 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
5285 method.
5286 <can_highight, is_highlighted>: Now bool.
5287 (tui_set_win_highlight): Don't declare.
5288 * tui/tui-data.c (tui_set_win_highlight): Remove.
5289
8e2daf15
TT
52902019-06-25 Tom Tromey <tom@tromey.com>
5291
5292 * tui/tui-wingeneral.c (make_visible): Remove check of window
5293 type.
5294
8903bd8a
TT
52952019-06-25 Tom Tromey <tom@tromey.com>
5296
5297 * tui/tui-win.c (tui_win_info::max_height)
5298 (tui_cmd_window::max_height): New methods.
5299 (new_height_ok): Call max_height.
5300 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
5301 <max_height>: New method.
5302
3f02ce1e
TT
53032019-06-25 Tom Tromey <tom@tromey.com>
5304
5305 * tui/tui-win.c (tui_source_window_base::set_new_height)
5306 (tui_data_window::set_new_height): New methods.
5307 (make_invisible_and_set_new_height): Call set_new_height method.
5308 * tui/tui-data.h (struct tui_win_info)
5309 (struct tui_source_window_base, struct tui_data_window)
5310 <set_new_height>: New method.
5311
1825f487
TT
53122019-06-25 Tom Tromey <tom@tromey.com>
5313
5314 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
5315 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
5316 tui_refresh_data_win.
5317 * tui/tui-win.c (tui_source_window_base::refresh_all): New
5318 method.
5319 (tui_refresh_all_win): Call the refresh_all method.
5320 (tui_set_focus): Likewise.
5321 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
5322 (struct tui_source_window_base, struct tui_data_window) <refresh>:
5323 Likewise.
5324
ad54d15b
TT
53252019-06-25 Tom Tromey <tom@tromey.com>
5326
5327 * tui/tui-winsource.h (tui_refill_source_window)
5328 (tui_set_is_exec_point_at): Don't declare.
5329 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5330 (tui_source_window_base::refill): Rename from
5331 tui_refill_source_window.
5332 (tui_source_window_base::do_scroll_horizontal): Update.
5333 (tui_source_window_base::set_is_exec_point_at): Rename from
5334 tui_set_is_exec_point_at.
5335 (tui_update_all_breakpoint_info): Update.
5336 * tui/tui-stack.c (tui_show_frame_info): Update.
5337 * tui/tui-layout.c (show_data): Add cast.
5338 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
5339 * tui/tui-data.h (struct tui_source_window_base) <refill,
5340 set_is_exec_point_at>: New methods.
5341 (tui_source_windows, tui_add_to_source_windows): Update types.
5342 (tui_add_to_source_windows): Remove redundant declaration.
5343 * tui/tui-data.c (source_windows): Store tui_source_window_base.
5344 (tui_source_windows): Change return type.
5345 (tui_clear_source_windows_detail): Update.
5346 (tui_add_to_source_windows): Change type of parameter.
5347 (tui_free_all_source_wins_content): Update.
5348
2042b506
TT
53492019-06-25 Tom Tromey <tom@tromey.com>
5350
5351 * tui/tui-wingeneral.c (tui_win_info::refresh)
5352 (tui_source_window_base::refresh): New methods.
5353 (tui_refresh_all): Call the refresh method.
5354 * tui/tui-data.h (struct tui_win_info)
5355 (struct tui_source_window_base) <refresh>: New method.
5356
56122977
TT
53572019-06-25 Tom Tromey <tom@tromey.com>
5358
5359 * tui/tui.h (tui_is_window_visible): Return bool.
5360 * tui/tui.c (tui_is_window_visible): Return bool.
5361 * tui/tui-wingeneral.c (tui_make_window, make_visible)
5362 (tui_make_visible, tui_make_invisible)
5363 (tui_win_info::make_visible)
5364 (tui_source_window_base::make_visible, make_all_visible)
5365 (tui_make_all_visible, tui_make_all_invisible): Update.
5366 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
5367 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
5368 bool.
5369 (struct tui_win_info, struct tui_source_window_base)
5370 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
5371 * tui/tui-data.c (tui_init_generic_part): Update.
5372
cda37efb
TT
53732019-06-25 Tom Tromey <tom@tromey.com>
5374
5375 * tui/tui-wingeneral.c (tui_win_info::make_visible)
5376 (tui_source_window_base::make_visible): New methods.
5377 (make_all_visible): Make method call.
5378 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
5379 (struct tui_source_window_base, struct tui_cmd_window): Override
5380 make_visible.
5381 (tui_win_is_source_type): Don't declare.
5382 * tui/tui-data.c (tui_win_is_source_type): Remove.
5383
6a0ee02c
TT
53842019-06-25 Tom Tromey <tom@tromey.com>
5385
5386 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
5387 NULL check.
5388
63901aec
TT
53892019-06-25 Tom Tromey <tom@tromey.com>
5390
5391 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
5392 Inline constructor. Add initializers for members.
5393 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
5394 constructors; now inline in class.
5395
ceb13a13
TT
53962019-06-25 Tom Tromey <tom@tromey.com>
5397
5398 * tui/tui-regs.c (tui_show_registers): Update.
5399 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
5400 bool.
5401 * tui/tui-data.c (tui_data_window::clear_detail)
5402 (tui_data_window): Update.
5403
238eb706
TT
54042019-06-25 Tom Tromey <tom@tromey.com>
5405
5406 * tui/tui-windata.c (tui_display_all_data)
5407 (tui_display_data_from_line, tui_display_data_from)
5408 (tui_check_data_values, tui_data_window::do_scroll_vertical):
5409 Update.
5410 * tui/tui-regs.c (tui_last_regs_line_no)
5411 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5412 (tui_show_registers, tui_show_register_group)
5413 (tui_display_registers_from, tui_display_reg_element_at_line)
5414 (tui_display_registers_from_line, tui_check_register_values)
5415 (tui_reg_next, tui_reg_prev): Update.
5416 * tui/tui-layout.c (tui_set_layout, show_data): Update.
5417 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
5418 tui_data_window.
5419 (struct tui_win_info) <detail>: Remove. Add new fields from
5420 tui_data_info.
5421 (TUI_DATA_WIN): Add cast.
5422 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
5423 (~tui_data_window): Simplify.
5424
81491aa0
TT
54252019-06-25 Tom Tromey <tom@tromey.com>
5426
5427 * tui/tui-layout.c (show_source_disasm_command)
5428 (show_source_or_disasm_and_command): Update.
5429 * tui/tui-io.c (update_cmdwin_start_line)
5430 (tui_redisplay_readline): Update.
5431 * tui/tui-data.h (struct tui_command_info): Remove.
5432 (struct tui_win_info) <detail>: Remove command_info member.
5433 (struct tui_data_window) <start_line>: New member, from
5434 tui_command_info.
5435 (TUI_CMD_WIN): Add casts.
5436
e6e41501
TT
54372019-06-25 Tom Tromey <tom@tromey.com>
5438
5439 * tui/tui-winsource.c (tui_update_source_window)
5440 (tui_refill_source_window)
5441 (tui_source_window_base::do_scroll_horizontal)
5442 (tui_update_breakpoint_info, tui_set_exec_info_content)
5443 (tui_show_exec_info_content, tui_erase_exec_info_content)
5444 (tui_clear_exec_info_content): Update.
5445 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
5446 Update.
5447 * tui/tui-win.c (make_invisible_and_set_new_height)
5448 (make_visible_with_new_height): Update.
5449 * tui/tui-source.c (tui_set_source_content)
5450 (tui_show_symtab_source): Update.
5451 * tui/tui-layout.c (extract_display_start_addr)
5452 (show_source_disasm_command, show_data)
5453 (make_source_or_disasm_window)
5454 (show_source_or_disasm_and_command): Update.
5455 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
5456 (tui_disasm_window::do_scroll_vertical): Remove shadowing
5457 "gdbarch".
5458 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
5459 to tui_source_window_base.
5460 (struct tui_win_info) <detail>: Remove source_info member.
5461 (struct tui_source_window_base) <has_locator>: Inline.
5462 Move contents from tui_source_info; rename has_locator member to
5463 m_has_locator.
5464 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
5465 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
5466 header file.
5467 (tui_source_window_base::clear_detail, ~tui_source_window_base):
5468 Simplify.
5469 (tui_free_all_source_wins_content): Cast to
5470 tui_source_window_base.
5471
44f0e208
TT
54722019-06-25 Tom Tromey <tom@tromey.com>
5473
5474 * tui/tui-win.c (make_invisible_and_set_new_height)
5475 (make_visible_with_new_height): Call has_locator method.
5476 * tui/tui-layout.c (show_source_disasm_command, show_data)
5477 (show_source_or_disasm_and_command): Update for bool change.
5478 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
5479 (tui_win_info) <has_locator>: New method.
5480 (struct tui_source_window_base) <has_locator>: New method.
5481 (tui_win_has_locator): Don't declare.
5482 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
5483 from tui_win_has_locator.
5484 (tui_source_window_base): Use false, not FALSE.
5485
7778b912
TT
54862019-06-25 Tom Tromey <tom@tromey.com>
5487
5488 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
5489 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
5490 clear_detail method directly.
5491 (tui_clear_win_detail): Remove.
5492
f83d391c
TT
54932019-06-25 Tom Tromey <tom@tromey.com>
5494
5495 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
5496 "this", not TUI_DISASM_WIN.
5497
13446e05
TT
54982019-06-25 Tom Tromey <tom@tromey.com>
5499
5500 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
5501 declare.
5502 * tui/tui-winsource.c
5503 (tui_source_window_base::do_scroll_horizontal): Rename from
5504 tui_horizontal_source_scroll.
5505 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
5506 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
5507 from tui_vertical_data_scroll.
5508 * tui/tui-win.h (tui_scroll): Don't declare.
5509 * tui/tui-win.c (tui_win_info::forward_scroll)
5510 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5511 (tui_win_info::right_scroll): Rename and update.
5512 (tui_scroll_forward_command, tui_scroll_backward_command)
5513 (tui_scroll_left_command, tui_scroll_right_command): Update.
5514 (tui_scroll): Remove.
5515 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
5516 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
5517 from tui_vertical_source_scroll.
5518 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
5519 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
5520 from tui_vertical_disassem_scroll.
5521 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
5522 do_scroll_horizontal>: New methods.
5523 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
5524 Likewise.
5525 (struct tui_source_window_base): Add do_scroll_horizontal.
5526 (struct tui_source_window, struct tui_disasm_window): Add
5527 do_scroll_vertical.
5528 (struct tui_data_window, struct tui_cmd_window): Add
5529 do_scroll_horizontal and do_scroll_vertical.
5530 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
5531
5cf82909
TT
55322019-06-25 Tom Tromey <tom@tromey.com>
5533
5534 * tui/tui-data.h (struct tui_source_window_base): New struct.
5535 (struct tui_source_window): Derive from tui_source_window_base.
5536 (struct tui_disasm_window): New struct.
5537 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
5538 from tui_source_window::clear_detail.
5539 (tui_source_window_base): Rename from tui_source_window.
5540 (~tui_source_window_base): Rename from ~tui_source_window.
5541 (tui_alloc_win_info): Create a tui_disasm_window.
5542
ee1d42d6
TT
55432019-06-25 Tom Tromey <tom@tromey.com>
5544
5545 * tui/tui-data.h (struct tui_source_window)
5546 (struct tui_data_window): Declare destructors.
5547 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
5548 destructors.
5549 (tui_win_info): Simplify.
5550
b4eb2452
TT
55512019-06-25 Tom Tromey <tom@tromey.com>
5552
5553 * tui/tui-winsource.c (tui_display_main)
5554 (tui_update_source_windows_with_addr)
5555 (tui_update_all_breakpoint_info): Update.
5556 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5557 (new_height_ok, parse_scrolling_args): Update.
5558 * tui/tui-stack.c (tui_show_frame_info): Update.
5559 * tui/tui-data.h (struct tui_list): Remove.
5560 (tui_source_windows): Return a reference to a std::vector.
5561 * tui/tui-data.c (source_windows): Now a std::vector.
5562 (tui_source_windows): Change return type.
5563 (tui_clear_source_windows): Rewrite.
5564 (tui_clear_source_windows_detail, tui_add_to_source_windows)
5565 (tui_free_all_source_wins_content): Rewrite.
5566
8761a91b
TT
55672019-06-25 Tom Tromey <tom@tromey.com>
5568
5569 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
5570 (struct tui_data_window, struct tui_cmd_window): Declare
5571 clear_detail method.
5572 * tui/tui-data.c (tui_source_window::clear_detail)
5573 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
5574 methods.
5575 (tui_clear_win_detail): Simplify.
5576
0ed69eda
TT
55772019-06-25 Tom Tromey <tom@tromey.com>
5578
5579 * tui/tui-layout.c (make_source_window, make_disasm_window)
5580 (make_source_or_disasm_window): Remove win_info_ptr parameter.
5581 Return the new window.
5582 (show_source_disasm_command, show_data)
5583 (show_source_or_disasm_and_command): Update.
5584
82432e10
TT
55852019-06-25 Tom Tromey <tom@tromey.com>
5586
5587 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
5588 parameter. Return the new window.
5589 (show_source_disasm_command): Update and remove NULL check.
5590 (show_source_or_disasm_and_command): Update.
5591
ec328aa5
TT
55922019-06-25 Tom Tromey <tom@tromey.com>
5593
5594 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
5595
33b906ab
TT
55962019-06-25 Tom Tromey <tom@tromey.com>
5597
5598 * tui/tui-data.h (struct tui_win_info): Make constructor
5599 protected. Make destructor virtual. Add initializers.
5600 (tui_source_window, tui_data_window, tui_cmd_window): New
5601 classes.
5602 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
5603 constructor. Add "type" parameter.
5604 (tui_source_window, tui_data_window, tui_cmd_window): New
5605 constructors.
5606 (tui_alloc_win_info): Instantiate the appropriate subclass.
5607
e7e11af4
TT
56082019-06-25 Tom Tromey <tom@tromey.com>
5609
5610 * tui/tui-win.c (tui_resize_all): Use delete.
5611 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
5612 destructor.
5613 (tui_free_window): Don't declare.
5614 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
5615 Update.
5616
6792b55e
TT
56172019-06-25 Tom Tromey <tom@tromey.com>
5618
5619 * tui/tui-data.h (struct tui_win_info): Add constructor.
5620 * tui/tui-data.c (tui_alloc_win_info): Use new.
5621 (tui_free_window): Use delete.
5622
f95675e1
TT
56232019-06-22 Tom Tromey <tom@tromey.com>
5624
5625 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
5626 declare.
5627 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
5628
5bff081c
TT
56292019-06-22 Tom Tromey <tom@tromey.com>
5630
5631 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
5632 declare.
5633 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
5634
47e3f474
TV
56352019-06-22 Tom de Vries <tdevries@suse.de>
5636
5637 * dwarf2read.c (create_addrmap_from_aranges)
5638 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
5639 instead of '%zu'.
5640
fd5866f6
SM
56412019-06-21 Simon Marchi <simon.marchi@efficios.com>
5642
5643 * dwarf2read.h (dwarf2_section_info_def): Remove.
5644 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
5645 * dwarf2read.c (struct dwo_sections) <types>: Change type to
5646 std::vector<dwarf2_section_info>.
5647 (struct dwo_file) <~dwo_file>: Remove.
5648 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
5649 types field.
5650 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
5651 (dwarf2_read_debug_names): Likewise.
5652 (create_debug_types_hash_table): Change parameter type to
5653 array_view, adjust code accordingly.
5654 (dwarf2_locate_dwo_sections): Adjust to std::vector.
5655 (partial_die_info::fixup): Likewise.
5656 (determine_prefix): Likewise.
5657 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
5658
fb1eb2f9
SM
56592019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5660
5661 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
5662 gdb_bfd_ref_ptr.
5663 <~dwo_file>: Remove call to gdb_bfd_unref.
5664 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
5665 gdb_bfd_ref_ptr::get.
5666
51ac9db5
SM
56672019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5668
5669 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
5670 type to htab_up.
5671 * dwarf2read.c (struct dwo_file): Initialize fields.
5672 <~dwo_file>: New.
5673 (free_dwo_file): Remove, move content to ~dwo_file.
5674 (struct dwo_file_deleter): Remove.
5675 (dwo_file_up>: Remove custom deleter.
5676 (free_dwo_files): Remove.
5677 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
5678 dwo_files.
5679 (process_skeletonless_type_units): Call unique_ptr::get.
5680 (allocate_dwo_file_hash_table): Add deleter to created hash
5681 table. Change return type to htab_up.
5682 (lookup_dwo_file_slot): Don't memset dwo_file, call
5683 unique_ptr::get.
5684 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
5685 (create_dwo_unit_in_dwp_v2): Likewise.
5686 (open_and_init_dwo_file): Likewise.
5687 (free_dwo_file_from_slot): Remove.
5688
dc4ccb6f
SM
56892019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5690
5691 * dwarf2read.h (struct dwarf2_section_info) <readin,
5692 is_virtual>: Change type to bool.
5693 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
5694 true instead of 1.
5695
e6a1c5cb
TT
56962019-06-19 Tom Tromey <tom@tromey.com>
5697
5698 * tui/tui-data.h (tui_init_content_element): Don't declare.
5699
6f6ffbeb
TT
57002019-06-19 Tom Tromey <tom@tromey.com>
5701
5702 * tui/tui-data.h (tui_init_win_info): Don't declare.
5703
f23f598e
TV
57042019-06-19 Tom de Vries <tdevries@suse.de>
5705
5706 * dwarf2read.h (abstract_to_concrete): Change type to
5707 std::unordered_map<sect_offset, std::vector<sect_offset>,
5708 gdb::hash_enum<sect_offset>>.
5709
680e1bee
TT
57102019-06-19 Tom Tromey <tromey@adacore.com>
5711
5712 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
5713 EVAL_AVOID_SIDE_EFFECTS specially.
5714
dcf37923
TT
57152019-06-19 Tom Tromey <tromey@adacore.com>
5716
5717 * source-cache.c (highlighter): New global.
5718 (source_cache::get_source_lines): Create a highlighter on demand.
5719
494986d5
AB
57202019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
5721
5722 * defs.h (deprecated_interactive_hook): Delete declaration.
5723 * interps.c (clear_interpreter_hooks): Remove use of
5724 deprecated_interactive_hook.
5725 * top.c (deprecated_interactive_hook): Delete definition.
5726 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
5727
3360b6e7
TV
57282019-06-18 Tom de Vries <tdevries@suse.de>
5729
5730 PR gdb/24515
5731 * dwarf2read.h (abstract_to_concrete): Change type from
5732 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
5733 std::unordered_map<sect_offset, std::vector<sect_offset>>.
5734 * dwarf2read.c (read_variable): Update.
5735 (dwarf2_fetch_die_loc_sect_off): Update.
5736
310b3441
TV
57372019-06-17 Tom de Vries <tdevries@suse.de>
5738
5739 PR gdb/24617
5740 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
5741 accessing parent[parent_len - 1].
5742
ba9777be
PP
57432019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
5744
5745 PR gdb/24364
5746 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
5747 call dtrace_process_dof with NULL dof.
5748
2b9f6e89
TV
57492019-06-16 Tom de Vries <tdevries@suse.de>
5750
5751 PR gdb/24445
5752 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
5753
431b3ead
TT
57542019-06-16 Tom Tromey <tom@tromey.com>
5755
5756 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5757 (make_all_visible): Use address of member.
5758
d04b44a1
TT
57592019-06-16 Tom Tromey <tom@tromey.com>
5760
5761 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
5762 (tui_free_window, free_content, free_content_elements): Remove
5763 unnecessary cast.
5764 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
5765 cast.
5766 * tui/tui-regs.c (tui_show_register_group)
5767 (tui_display_registers_from, tui_display_reg_element_at_line):
5768 Remove unnecessary cast.
5769
bf5142e7
AB
57702019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5771
5772 * linux-nat.c (normal_mask): Delete.
5773 (_initialize_linux_nat): Don't initialise normal_mask.
5774
c4973306
SM
57752019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
5776
5777 PR gdb/24445
5778 * dwarf-index-write.h (write_psymtabs_to_index): Add
5779 dwz_basename parameter.
5780 * dwarf-index-write.c (write_gdbindex): Move file writing to
5781 write_gdbindex_1. Change return type void.
5782 (assert_file_size): Move up, remove filename parameter.
5783 (write_gdbindex_1): New function.
5784 (write_debug_names): Change return type to void, call
5785 assert_file_size.
5786 (struct index_wip_file): New struct.
5787 (write_psymtabs_to_index): Add dwz_basename parameter. Move
5788 file logic to index_wip_file. Write index for dwz file if
5789 needed.
5790 (save_gdb_index_command): Pass basename of dwz file, if present.
5791 * dwarf-index-cache.c (index_cache::store): Obtain and pass
5792 build-id of dwz file, if present.
5793 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
5794 (dwarf2_get_dwz_file): Likewise.
5795 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
5796 (dwarf2_get_dwz_file): Likewise.
5797
395f9c91
TT
57982019-06-16 Tom Tromey <tom@tromey.com>
5799
5800 * coffread.c (process_coff_symbol): Use xstrdup.
5801 * value.c (create_internalvar): Use xstrdup.
5802
cafb3438
TT
58032019-06-16 Tom Tromey <tom@tromey.com>
5804
5805 * valops.c (value_cast, value_slice): Remove unnecessary cast.
5806 * breakpoint.c (stopin_command, stopat_command)
5807 (until_break_command, decode_location_default): Remove unnecessary
5808 cast.
5809 * utils.c (subset_compare): Remove unnecessary cast.
5810 * ada-lang.c (ada_update_initial_language): Remove unnecessary
5811 cast.
5812 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
5813 cast.
5814 * infcmd.c (path_command): Remove unnecessary cast.
5815 * coffread.c (decode_type): Remove unnecessary cast.
5816 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
5817 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
5818 * tui/tui-stack.c (tui_show_locator_content)
5819 (tui_show_frame_info): Remove unnecessary cast.
5820 * tui/tui-win.c (tui_scroll_forward_command)
5821 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
5822 (parse_scrolling_args): Remove unnecessary cast.
5823 * tui/tui-data.c (init_win_info, tui_del_window)
5824 (tui_free_window, tui_del_data_windows, tui_free_data_content)
5825 (free_content_elements): Remove unnecessary cast.
5826 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
5827 unnecessary cast.
5828 * tui/tui-source.c (tui_set_source_content)
5829 (tui_vertical_source_scroll): Remove unnecessary cast.
5830 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
5831 cast.
5832 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
5833 * tui/tui-regs.c (tui_display_registers_from)
5834 (tui_display_register): Remove unnecessary cast.
5835 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
5836 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
5837 (make_visible): Remove unnecessary cast.
5838 * tui/tui-winsource.c (tui_erase_source_content)
5839 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
5840 unnecessary cast.
5841 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
5842 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
5843 * stabsread.c (read_type, read_array_type, read_range_type):
5844 Remove unnecessary cast.
5845 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
5846 (parse_symbol, parse_type, upgrade_type, parse_external)
5847 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
5848 unnecessary cast.
5849 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
5850
730ead81
TT
58512019-06-16 Tom Tromey <tom@tromey.com>
5852
5853 * tui/tui-data.c (tui_alloc_generic_win_info)
5854 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
5855 checks.
5856
584a927c
AB
58572019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
5858 Andrew Burgess <andrew.burgess@embecosm.com>
5859
5860 * f-typeprint.c (f_print_type): Don't return early for not
5861 associated or not allocated types.
5862 (f_type_print_varspec_suffix): Add print_rank parameter and print
5863 ranks of array types in case they dangling.
5864 (f_type_print_base): Add print_rank parameter.
5865
30056ea0
AB
58662019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5867
5868 * NEWS: Mention new MI commands.
5869 * break-catch-throw.c (enum exception_event_kind): Move to
5870 breakpoint.h.
5871 (print_mention_exception_catchpoint): Output text as a single
5872 message.
5873 (catch_exception_command_1): Rename to...
5874 (catch_exception_event): ...this, make non-static, update header
5875 command, and change some parameter types.
5876 (catch_catch_command): Update for changes to
5877 catch_exception_command_1.
5878 (catch_throw_command): Likewise.
5879 (catch_rethrow_command): Likewise.
5880 * breakpoint.c (enum exception_event_kind): Delete.
5881 * breakpoint.h (enum exception_event_kind): Moved here from
5882 break-catch-throw.c.
5883 (catch_exception_event): Declare.
5884 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
5885 (mi_cmd_catch_throw): New function.
5886 (mi_cmd_catch_rethrow): New function.
5887 (mi_cmd_catch_catch): New function.
5888 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
5889 'catch-catch' entries.
5890 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
5891 (mi_cmd_catch_rethrow): Declare.
5892 (mi_cmd_catch_catch): Declare.
5893
ec8e2b6d
AB
58942019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5895
5896 * annotate.c (annotate_source_line): Change return type to void,
5897 update implementation to match.
5898 * annotate.h (annotate_source_line): Change return type to void,
5899 update header comment.
5900 * stack.c (print_frame_info): Don't change what frame information
5901 is printed based on whether annotations are on or not.
5902
0d3abd8c
AB
59032019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5904
5905 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
5906 (annotate_source): Make static.
5907 (annotate_source_line): Moved from source.c and renamed from
5908 identify_source_line. Update the return type.
5909 * annotate.h (annotate_source): Delete declaration.
5910 (annotate_source_line): Declaration moved from source.h, and
5911 renamed from identify_source_line. Return type updated.
5912 * source.c (identify_source_line): Moved to annotate.c and renamed
5913 to annotate_source_line.
5914 (info_line_command): Remove check of annotation_level.
5915 * source.h (identify_source_line): Move declaration to annotate.h
5916 and rename to annotate_source_line.
5917 * stack.c: Add 'annotate.h' include.
5918 (print_frame_info): Remove check of annotation_level before
5919 calling annotate_source_line.
5920
00df30ae
AB
59212019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5922
5923 * source-cache.c (source_cache::get_plain_source_lines): Use
5924 open_source_file_with_line_charpos instead of just
5925 open_source_file, remove call to find_source_lines.
5926 (source_cache::get_source_lines): Likewise.
5927 * source.c (find_source_lines): Make static.
5928 (get_filename_and_charpos): Renamed into...
5929 (open_source_file_with_line_charpos): ..this along with changes to
5930 return a scoped_fd, and some other minor clean ups.
5931 (identify_source_line): Use open_source_file_with_line_charpos.
5932 (search_command_helper): Use open_source_file_with_line_charpos
5933 instead of just open_source_file, remove call to
5934 find_source_lines.
5935 * source.h (open_source_file_with_line_charpos): Declare new
5936 function.
5937 (find_source_lines): Delete declaration.
5938
afda45a2
AB
59392019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5940
5941 * source.c (get_filename_and_charpos): Remove fullname
5942 parameter.
5943 (identify_source_line): Update call to get_filename_and_charpos.
5944
0735b091
TT
59452019-06-14 Tom Tromey <tromey@adacore.com>
5946
5947 PR gdb/24502:
5948 * ui-style.h (skip_ansi_escape): Update comment.
5949 * ui-file.h (class no_terminal_escape_file): New class.
5950 * ui-file.c (no_terminal_escape_file::write)
5951 (no_terminal_escape_file::puts): New methods.
5952 * cli/cli-logging.c (handle_redirections): Use
5953 no_terminal_escape_file.
5954
52ce35e2
TT
59552019-06-14 Tom Tromey <tromey@adacore.com>
5956
5957 * NEWS: Move convenience variable news above Python news.
5958
73cc7272
TT
59592019-06-14 Tom Tromey <tom@tromey.com>
5960
5961 * gnulib: Move directory to top-level.
5962 * configure.ac: Don't configure gnulib.
5963 * configure: Rebuild.
5964 * common/common-defs.h: Use new path to gnulib.
5965 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
5966 (GNULIB_H): Remove.
5967 (INCGNU): Look in new gnulib location.
5968 (HFILES_NO_SRCDIR): Remove gnulib files.
5969 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
5970 (generated_files): Remove GNULIB_H.
5971 ($(LIBGNU), all-lib): Remove targets.
5972 (distclean): Don't mention GNULIB_BUILDDIR.
5973 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
5974
f5686554
TT
59752019-06-14 Tom Tromey <tromey@adacore.com>
5976
5977 * symfile.c (add_symbol_file_command): Remove obsolete comment.
5978 Warn if symbol file does not provide any symbols.
5979
a0c1ffed
TT
59802019-06-14 Tom Tromey <tromey@adacore.com>
5981
5982 * source.c (find_and_open_source): Respect basenames_may_differ.
5983
7c39e397
AB
59842019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
5985
5986 * annotate.c (annotate_breakpoints_invalid): Make use of
5987 scoped_restore_terminal_state.
5988 (annotate_frames_invalid): Likewise.
5989
f411722c
TT
59902019-06-14 Tom Tromey <tromey@adacore.com>
5991
5992 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
5993 allow assignment to an internalvar.
5994
4268ec18
TT
59952019-06-14 Tom Tromey <tromey@adacore.com>
5996
5997 * ada-lex.l: Allow "_" in attribute names.
5998
abdb711e
TT
59992019-06-14 Tom Tromey <tromey@adacore.com>
6000
6001 PR gdb/24653:
6002 * regcache.c (registers_changed): Don't call alloca.
6003 * top.c (execute_command): Don't call alloca.
6004
4c048731
PA
60052019-06-13 Pedro Alves <palves@redhat.com>
6006
6007 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
6008 'expression'. When parsing an expression, error out if there's
6009 junk after "unlimited".
6010 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6011 (do_set_command): Adjust calls to is_unlimited_literal.
6012
66eb1ed3
PA
60132019-06-13 Pedro Alves <palves@redhat.com>
6014
6015 * compile/compile.c (make_compile_options_def_group): Add braces
6016 around array_view initializer.
6017 * thread.c (make_thread_apply_all_options_def_group)
6018 (make_thread_apply_all_options_def_group): Likewise.
6019
3345721a
PA
60202019-06-13 Pedro Alves <palves@redhat.com>
6021
6022 * NEWS (New commands): Mention "maint test-options
6023 require-delimiter", "maint test-options unknown-is-error", "maint
6024 test-options unknown-is-operand" and "maint show
6025 test-options-completion-result".
6026 (New command options, command completion): New section.
6027 (Completion improvements): New section.
6028 Mention that you can abbreviate "unlimited".
6029
6206060d
PA
60302019-06-13 Pedro Alves <palves@redhat.com>
6031
6032 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
6033 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
6034 * unittests/cli-utils-selftests.c (test_parse_flags)
6035 (test_parse_flags_qcs): Delete.
6036 (test_cli_utils): Don't call deleted functions.
6037
6665660a
PA
60382019-06-13 Pedro Alves <palves@redhat.com>
6039
6040 * thread.c: Include "cli/cli-option.h".
6041 (tp_array_compar_ascending): Global.
6042 (tp_array_compar): Delete function.
6043 (tp_array_compar_ascending, tp_array_compar_descending): New
6044 functions.
6045 (ascending_option_def, qcs_flag_option_def)
6046 (thr_qcs_flags_option_defs)
6047 (make_thread_apply_all_options_def_group)
6048 (make_thread_apply_options_def_group): New.
6049 (thread_apply_all_command): Use gdb::option::process_options.
6050 (thread_apply_command_completer)
6051 (thread_apply_all_command_completer): New.
6052 (thread_apply_command): Use gdb::option::process_options.
6053 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
6054 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
6055 to generate help text of "thread apply". Adjust "taas"'s help.
6056 * tid-parse.c (tid_range_parser::in_thread_range): New method.
6057 * tid-parse.h (tid_range_parser::in_thread_range): New method.
6058
f7e13587
PA
60592019-06-13 Pedro Alves <palves@redhat.com>
6060
6061 * thread.c (thread_apply_command): Check for invalid TID with
6062 isdigit instead of !isalpha.
6063
5d707134
PA
60642019-06-13 Pedro Alves <palves@redhat.com>
6065
6066 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
6067 (validate_flags_qcs): New.
6068 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
6069 (validate_flags_qcs): Declare.
6070 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
6071 (make_frame_apply_options_def_group): New.
6072 (frame_apply_command_count): Process options with
6073 gdb::option::process_options.
6074 (frame_apply_completer): New.
6075 (frame_apply_level_completer, frame_apply_all_completer)
6076 (frame_apply_completer): New.
6077 (_initialize_stack): Update help of "frame apply", "frame apply
6078 level", "frame apply all" and "faas" to mention supported options
6079 and install command completers.
6080 * stack.h (frame_apply_all_completer): Declare.
6081 * thread.c: Include "stack.h".
6082 (tfaas_command): Add "--".
6083 (_initialize_thread): Update help "tfaas" to mention supported
6084 options and install command completer.
6085
272d4594
PA
60862019-06-13 Pedro Alves <palves@redhat.com>
6087
6088 * completer.c (complete_nested_command_line): New.
6089 (gdb_completion_word_break_characters_throw): Add assertion.
6090 * completer.h (complete_nested_command_line): Declare.
6091
90a1ef87
PA
60922019-06-13 Pedro Alves <palves@redhat.com>
6093
6094 * stack.c (parse_backtrace_qualifiers): New.
6095 (backtrace_command): Use it.
6096 (backtrace_command_completer): Complete on qualifiers.
6097
d4c16835
PA
60982019-06-13 Pedro Alves <palves@redhat.com>
6099
6100 * frame.c: Include "cli/cli-option.h.
6101 (user_set_backtrace_options): New.
6102 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
6103 Delete.
6104 (get_prev_frame): Adjust.
6105 (boolean_option_def, uinteger_option_def)
6106 (set_backtrace_option_defs): New.
6107 (_initialize_frame): Adjust and use
6108 gdb::option::add_setshow_cmds_for_options to install "set
6109 backtrace past-main" and "set backtrace past-entry".
6110 * frame.h: Include "cli/cli-option.h".
6111 (struct frame_print_options): Forward declare.
6112 (print_frame_arguments_all, print_frame_arguments_scalars)
6113 (print_frame_arguments_none): Declare.
6114 (print_entry_values): Delete declaration.
6115 (struct frame_print_options, user_frame_print_options): New.
6116 (struct set_backtrace_options): New.
6117 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
6118 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
6119 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
6120 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
6121 (list_args_or_locals): Add frame_print_options parameter.
6122 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6123 * python/py-framefilter.c (enumerate_args): Pass down
6124 USER_FRAME_PRINT_OPTIONS.
6125 * stack.c: Include "cli/cli-option.h".
6126 (print_frame_arguments_all, print_frame_arguments_scalars)
6127 (print_frame_arguments_none): Declare.
6128 (print_raw_frame_arguments, print_entry_values): Delete.
6129 (user_frame_print_options): New.
6130 (boolean_option_def, enum_option_def, frame_print_option_defs):
6131 New.
6132 (struct backtrace_cmd_options): New.
6133 (bt_flag_option_def): New.
6134 (backtrace_command_option_defs): New.
6135 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6136 (print_frame_arg, read_frame_arg, print_frame_args)
6137 (print_frame_info, print_frame): Add frame_print_options parameter
6138 and use it.
6139 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
6140 (backtrace_command_1): Add frame_print_options and
6141 backtrace_cmd_options parameters and use them.
6142 (make_backtrace_options_def_group): New.
6143 (backtrace_command): Process command options with
6144 gdb::option::process_options.
6145 (backtrace_command_completer): New.
6146 (_initialize_stack): Extend "backtrace"'s help to mention
6147 supported options. Install completer for "backtrace".
6148 Install some settings commands with add_setshow_cmds_for_options.
6149
2daf894e
PA
61502019-06-13 Pedro Alves <palves@redhat.com>
6151
6152 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
6153 and that "set/show print raw frame-arguments" are now deprecated.
6154
6155 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
6156 command.
6157 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
6158 * stack.c (_initialize_stack): Install "set/show print
6159 raw-frame-arguments", and deprecate "set/show print raw
6160 frame-arguments".
6161 * valprint.c (_initialize_valprint): Deprecate "set/show print
6162 raw".
6163
e6ed716c
PA
61642019-06-13 Pedro Alves <palves@redhat.com>
6165
6166 * compile/compile.c (struct compile_options): New.
6167 (compile_flag_option_def, compile_command_option_defs)
6168 (make_compile_options_def_group): New.
6169 (compile_file_command): Handle options with
6170 gdb::option::process_options.
6171 (compile_file_command_completer): New function.
6172 (compile_code_command): Handle options with
6173 gdb::option::process_options.
6174 (compile_code_command_completer): New function.
6175 (_initialize_compiler): Install completers for "compile code" and
6176 "compile file". Mention available options in "compile code" and
6177 "compile code"'s help.
6178 * completer.c (advance_to_completion_word): New, factored out from
6179 ...
6180 (advance_to_expression_complete_word_point): ... this.
6181 (advance_to_filename_complete_word_point): New.
6182 * completer.h (advance_to_filename_complete_word_point): New
6183 declaration.
6184
7d8062de
PA
61852019-06-13 Pedro Alves <palves@redhat.com>
6186
6187 * compile/compile.c: Include "cli/cli-option.h".
6188 (compile_print_value): Scope data pointer is now a
6189 value_print_options pointer; adjust.
6190 (compile_print_command): Process options. Scope data pointer is
6191 now a value_print_options pointer; adjust.
6192 (_initialize_compile): Update "compile print"'s help to include
6193 supported options. Install a completer for "compile print".
6194 * cp-valprint.c (show_vtblprint, show_objectprint)
6195 (show_static_field_print): Delete.
6196 (_initialize_cp_valprint): Don't install "set print
6197 static-members", "set print vtbl", "set print object" here.
6198 * printcmd.c: Include "cli/cli-option.h" and
6199 "common/gdb_optional.h".
6200 (print_command_parse_format): Rework to fill in a
6201 value_print_options instead of a format_data.
6202 (print_value): Change parameter type from format_data pointer to
6203 value_print_options reference. Adjust.
6204 (print_command_1): Process options. Adjust to pass down a
6205 value_print_options.
6206 (print_command_completer): New.
6207 (_initialize_printcmd): Install print_command_completer as
6208 handle_brkchars completer for the "print" command. Update
6209 "print"'s help to include supported options.
6210 * valprint.c: Include "cli/cli-option.h".
6211 (show_vtblprint, show_objectprint, show_static_field_print): Moved
6212 here from cp-valprint.c.
6213 (boolean_option_def, uinteger_option_def)
6214 (value_print_option_defs, make_value_print_options_def_group):
6215 New. Use gdb::option::add_setshow_cmds_for_options to install
6216 "set print elements", "set print null-stop", "set print repeats",
6217 "set print pretty", "set print union", "set print array", "set
6218 print address", "set print symbol", "set print array-indexes".
6219 * valprint.h: Include <string> and "cli/cli-option.h".
6220 (make_value_print_options_def_group): Declare.
6221 (print_value): Change parameter type from format_data pointer to
6222 value_print_options reference.
6223 (print_command_completer): Declare.
6224
9d0faba9
PA
62252019-06-13 Pedro Alves <palves@redhat.com>
6226
6227 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
6228 (COMMON_SFILES): Add maint-test-settings.c.
6229 * cli/cli-decode.c (boolean_enums): New global, factored out from
6230 ...
6231 (add_setshow_boolean_cmd): ... here.
6232 * cli/cli-decode.h (boolean_enums): Declare.
6233 * cli/cli-option.c: New file.
6234 * cli/cli-option.h: New file.
6235 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
6236 factored out from ...
6237 (parse_cli_boolean_value(const char *)): ... this.
6238 (is_unlimited_literal): Change parameter type to pointer to
6239 pointer. Adjust and advance ARG pointer.
6240 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6241 (parse_cli_var_enum): New, factored out from ...
6242 (do_set_command): ... this. Adjust.
6243 * cli/cli-setshow.h (parse_cli_boolean_value)
6244 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6245 (parse_cli_var_enum): Declare.
6246 * cli/cli-utils.c: Include "cli/cli-option.h".
6247 (get_ulongest): New.
6248 * cli/cli-utils.h (get_ulongest): Declare.
6249 (check_for_argument): New overloads.
6250 * maint-test-options.c: New file.
6251
2c722807
PA
62522019-06-13 Pedro Alves <palves@redhat.com>
6253
6254 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
6255 parse a range if "-" is at the end of the string.
6256
dee7b4c8
PA
62572019-06-13 Pedro Alves <palves@redhat.com>
6258
6259 * cli/cli-setshow.c (parse_auto_binary_operation)
6260 (parse_cli_boolean_value): Don't allow "o".
6261
dca0f6c0
PA
62622019-06-13 Pedro Alves <palves@redhat.com>
6263
6264 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
6265 * NEWS: Mention maint test-settings KIND.
6266 * maint-test-settings.c: New file.
6267
597bf39d
PA
62682019-06-13 Pedro Alves <palves@redhat.com>
6269
6270 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
6271 completer.
6272 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
6273 "set" completers.
6274
48c410fb
PA
62752019-06-13 Pedro Alves <palves@redhat.com>
6276
6277 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
6278 after item.
6279
93bcb043
PA
62802019-06-13 Pedro Alves <palves@redhat.com>
6281
6282 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
6283
cbba3ecd
PA
62842019-06-13 Pedro Alves <palves@redhat.com>
6285
6286 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
6287 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
6288 call.
6289 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
6290 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
6291 calls.
6292 (check_for_argument): Skip spaces after argument.
6293
b9a3f842
PA
62942019-06-13 Pedro Alves <palves@redhat.com>
6295
6296 * thread.c (thread_apply_command): Adjust TID parsing.
6297 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
6298 detected before end of string.
6299 (tid_is_in_list): Error out if LIST is invalid.
6300
3844e605
PA
63012019-06-13 Pedro Alves <palves@redhat.com>
6302
6303 * completer.c (complete_line_internal_1): Rewind completion word
6304 point.
6305 (completion_tracker::advance_custom_word_point_by): Change
6306 parameter type to int.
6307 * completer.h (completion_tracker::advance_custom_word_point_by):
6308 Likewise.
6309
00b56dbe
PA
63102019-06-13 Pedro Alves <palves@redhat.com>
6311
6312 * completer.c (advance_to_completion_word): Handle delimiters.
6313
d106773e
PA
63142019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
6315
6316 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
6317
08f10e02
TT
63182019-06-11 Tom Tromey <tom@tromey.com>
6319
6320 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
6321 (xmalloc_failed): Move to alloc.c.
6322 * alloc.c: New file.
6323 * Makefile.in (COMMON_SFILES): Add alloc.c.
6324
1c7fe951
TT
63252019-06-11 Tom Tromey <tom@tromey.com>
6326
6327 * nat/linux-waitpid.c: Don't include server.h.
6328 (linux_debug): Remove.
6329 (my_waitpid): Update.
6330
89549d7f
TT
63312019-06-11 Tom Tromey <tromey@adacore.com>
6332
6333 * infcall.c (_initialize_infcall): Remove trailing newline from
6334 help.
6335 * user-regs.c (_initialize_user_regs): Remove trailing newline
6336 from help.
6337 * typeprint.c (_initialize_typeprint): Remove trailing newline
6338 from help.
6339 * reverse.c (_initialize_reverse): Remove trailing newlines from
6340 help.
6341 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
6342 from help.
6343 * language.c (add_set_language_command): Remove trailing newline
6344 from help.
6345 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
6346 help.
6347 * disasm.c (_initialize_disasm): Remove trailing newline from
6348 help.
6349 * top.c (init_main): Remove trailing newline from help.
6350 * interps.c (_initialize_interpreter): Remove trailing newline
6351 from help.
6352 * btrace.c (_initialize_btrace): Remove trailing newlines from
6353 help.
6354 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
6355 from help.
6356 * python/python.c (_initialize_python): Remove trailing newline
6357 from help.
6358 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
6359 help.
6360 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
6361 from help. Reformat some text.
6362 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
6363 from help.
6364 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
6365 newline from help.
6366
86108c13
TT
63672019-06-11 Tom Tromey <tromey@adacore.com>
6368
6369 * darwin-nat.c (darwin_decode_exception_message)
6370 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
6371
a7067863
AB
63722019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
6373
6374 * valops.c (value_slice): Check for not allocated or not
6375 associated values.
6376
9ab08412
TV
63772019-06-10 Tom de Vries <tdevries@suse.de>
6378
6379 PR gdb/24618
6380 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
6381 sure an empty slot (defined by a 32-bit zero pair) is recognized as
6382 invalid.
6383
f19e22e9
TV
63842019-06-10 Tom de Vries <tdevries@suse.de>
6385
6386 PR gdb/24611
6387 * linespec.c (linespec_lexer_lex_string): Remove incorrect
6388 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
6389
e99f9db0
TV
63902019-06-10 Tom de Vries <tdevries@suse.de>
6391
6392 PR symtab/24545
6393 * symtab.c (struct demangled_name_entry): Add language field.
6394 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
6395 static minimal symbol". Set and use language field.
6396
9bf7038b
TT
63972019-06-10 Tom Tromey <tromey@adacore.com>
6398
6399 * ada-lang.c (_initialize_ada_language): Update help text.
6400
422186a9
TT
64012019-06-10 Tom Tromey <tromey@adacore.com>
6402
6403 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
6404 with a newline.
6405 * guile/guile.c (handle_boot_error): Don't end warning with a
6406 newline.
6407 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
6408 warning with a newline.
6409 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
6410 newline.
6411 (s12z_frame_cache): Likewise.
6412 * dwarf-index-cache.c (index_cache::store): Don't end warning with
6413 a newline.
6414 * solib-svr4.c (disable_probes_interface): Don't end warning with
6415 a newline.
6416 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
6417 newline.
6418 * python/python.c (do_finish_initialization): Don't end warning
6419 with a newline.
6420
25ce02ee
TT
64212019-06-10 Tom Tromey <tom@tromey.com>
6422
6423 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6424 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
6425 gdbpy_enter.
6426
caa429d8
TT
64272019-06-10 Tom Tromey <tromey@adacore.com>
6428
6429 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
6430 data.
6431 (elf_new_init): Don't call stabsread_new_init.
6432 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
6433 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
6434 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
6435
81873cc8
TV
64362019-06-10 Tom de Vries <tdevries@suse.de>
6437
6438 PR symtab/16264
6439 PR symtab/24517
6440 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
6441
4fa0265e
РИ
64422019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
6443
6444 * source.c (find_and_open_source): Also rewrite relative file
6445 names.
6446
1a3da2cd
AB
64472019-04-26 Amos Bird <amosbird@gmail.com>
6448
6449 * annotate.c (annotate_thread_exited): Add "thread-exited"
6450 annotation.
6451
3847a7bf
TT
64522019-06-06 Tom Tromey <tromey@adacore.com>
6453
6454 * maint.h (class scoped_command_stats): Use
6455 DISABLE_COPY_AND_ASSIGN.
6456 <print_time>: New method.
6457 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
6458 print_time.
6459 (scoped_command_stats::print_time): New method.
6460
312617a3
AB
64612019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6462
6463 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
6464 instructions of lengths 6 or 8 bytes.
6465
b02f78f9
PA
64662019-06-04 Pedro Alves <palves@redhat.com>
6467
6468 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
6469
6470 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
6471 * breakpoint.c (condition_completer): Likewise.
6472 * cli/cli-dump.c (scan_expression): Likewise.
6473 * common/filestuff.c (mkdir_recursive): Likewise.
6474 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
6475 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
6476 (gdb_abspath): Likewise.
6477 * compile/compile-cplus-types.c
6478 (compile_cplus_instance::decl_name): Likewise.
6479 * completer.c (complete_explicit_location):
6480 (signal_completer, reg_or_group_completer_1): Likewise.
6481 * cp-support.c (cp_remove_params_if_any): Likewise.
6482 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
6483 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
6484 * infcmd.c (strip_bg_char): Likewise.
6485 * linespec.c (copy_token_string): Likewise.
6486 * mi/mi-main.c (output_cores): Likewise.
6487 * psymtab.c (psymtab_search_name):
6488 * symfile.c (test_set_ext_lang_command): Likewise.
6489 * target.c (target_fileio_read_stralloc): Likewise.
6490 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
6491 * value.c (complete_internalvar): Likewise.
6492
e1f2e1a2
CB
64932019-06-04 Christian Biesinger <cbiesinger@google.com>
6494
6495 Add objfile property to gdb.Type.
d3238f7d
PA
6496 * NEWS: Mention Python API addition.
6497 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 6498
e664d728
PW
64992019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6500
6501 * NEWS: Mention the new set|show style [title|highlight].
6502 Mention changes to "show style", "help" and "apropos".
6503
66d8c862
PW
65042019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6505
6506 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
6507 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
6508 instead of print_help_for_command.
6509 (print_doc_of_command): New function.
6510 (help_list): Add 'apropos -v word' suggestion.
6511 (print_help_for_command): Style the command name using title style.
6512 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
6513 (_initialize_cli_cmds): Describe -v in apropos_command help.
6514
9303eb2f
PW
65152019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6516
6517 * cli/cli-style.h (cli_style_option): Add name in constructor,
6518 add m_name class member, add constructor with intensity,
6519 add name class function.
6520 (cli_style_option::add_setshow_commands): Remove name argument.
6521 (highlight_style, title_style): New styles.
6522 * cli/cli-style.c (do_show): New function that shows a style
6523 characteristic styling the style name with itself.
6524 (set_style_name): New function.
6525 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
6526 Update all callers according to the changes in cli/cli-style.h.
6527 * utils.h (fputs_highlighted): New function.
6528 * utils.c (fputs_highlighted): Likewise.
6529
e2c52041
PW
65302019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6531
6532 * NEWS: Mention new pipe command and new convenience variables.
6533
947d3946
PW
65342019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6535
6536 * cli/cli-cmds.c (pipe_command): New function.
6537 (_initialize_cli_cmds): Call add_com for pipe_command.
6538 Define | as an alias for pipe.
6539 (exit_status_set_internal_vars): New function.
6540 (shell_escape): Call exit_status_set_internal_vars.
6541 cli/cli-decode.c (find_command_name_length): Recognize | as
6542 a single character command.
6543
b8fd0918
PW
65442019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6545
6546 * gdbcmd.h (execute_command_to_ui_file): New declaration.
6547 top.c (execute_command_to_ui_file): New function, mostly a copy
6548 of execute_command_to_string.
6549 (execute_command_to_string): Implement by calling
6550 execute_command_to_ui_file.
6551
68bb5386
PW
65522019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6553
6554 * top.h (saved_command_line): Remove declaration.
6555 * top.c (previous_saved_command_line, previous_repeat_arguments):
6556 New variables.
6557 (saved_command_line): Make static, define together with other
6558 'repeat variables'.
6559 (dont_repeat): Clear repeat_arguments.
6560 (repeat_previous, get_saved_command_line, save_command_line):
6561 New functions.
6562 (gdb_init): Initialize saved_command_line
6563 and previous_saved_command_line.
6564 * main.c (captured_main_1): Remove saved_command_line initialization.
6565 * event-top.c (handle_line_of_input): Update to use
6566 the new 'repeat' related functions instead of direct access to
6567 saved_command_line.
6568 * command.h (repeat_previous, get_saved_command_line,
6569 save_command_line): New declarations.
6570 (dont_repeat): Add comment.
6571
bfcdb852
TT
65722019-05-30 Tom Tromey <tromey@adacore.com>
6573
6574 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
6575 Fix comment.
6576 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
6577
0ef209f2
JV
65782019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
6579
6580 PR cli/24587
6581 * completer.c (complete): Initialize variable word.
6582
955b06fa
SDJ
65832019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
6584
6585 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6586 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
6587 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
6588 'body' is NULL to the outter 'if', protecting the '!is_define'
6589 situation as well.
6590
fa9c3fa0
TT
65912019-05-29 Tom Tromey <tromey@adacore.com>
6592
6593 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
6594 (dwarf_unknown): New function.
6595 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
6596 (dwarf_type_encoding_name): Use dwarf_unknown.
6597
4330d61d
TT
65982019-05-29 Tom Tromey <tromey@adacore.com>
6599
6600 PR c++/20020:
6601 * cp-valprint.c (cp_print_value_fields): Call
6602 cp_print_static_field inside "try".
6603
33a6bc35
TT
66042019-05-29 Tom Tromey <tromey@adacore.com>
6605
6606 * inflow.c (struct terminal_info): Add default operator=.
6607 * configure: Rebuild.
6608 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
6609 -Wdeprecated-copy-dtor, -Wredundant-move.
6610
000439d5
TT
66112019-05-29 Tom Tromey <tromey@adacore.com>
6612
6613 * NEWS: Add entry.
6614 * infcmd.c (print_return_value_1): Handle finish_print
6615 option.
6616 (show_print_finish): New function.
6617 (_initialize_infcmd): Add "set/show print finish" commands.
6618 * valprint.c (user_print_options): Initialize new member.
6619 * valprint.h (struct value_print_options) <finish_print>: New
6620 member.
6621
c0e70c62
TT
66222019-05-28 Tom Tromey <tromey@adacore.com>
6623
6624 * ada-lang.c (ada_remove_Xbn_suffix)
6625 (find_old_style_renaming_symbol)
6626 (parse_old_style_renaming): Remove.
6627 (ada_find_renaming_symbol): Don't call
6628 find_old_style_renaming_symbol.
6629 (ada_is_renaming_symbol): Rename from
6630 ada_find_renaming_symbol. Remove "block" parameter. Return
6631 bool. Now static.
6632 (ada_read_var_value): Update and simplify.
6633 * ada-exp.y (write_var_or_type): Remove old code.
6634
766f8836
AH
66352019-05-28 Alan Hayward <alan.hayward@arm.com>
6636
6637 * event-top.c: Remove include comment.
6638 * inflow.c (class scoped_ignore_sigttou): Move from here...
6639 * inflow.h (class scoped_ignore_sigttou): ...to here.
6640 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
6641 * top.c: Remove include comment.
6642
eb41253a
TT
66432019-05-27 Tom Tromey <tom@tromey.com>
6644
6645 * NEWS: Fix typo.
6646
4ca51187
TT
66472019-05-22 Tom Tromey <tromey@adacore.com>
6648
6649 * target.c (target_follow_exec): Constify parameter.
6650 * target-delegates.c: Rebuild.
6651 * remote.c (remote_target::follow_exec): Constify parameter.
6652 * infrun.c (follow_exec): Constify parameter.
6653 * target.h (struct target_ops) <follow_exec>: Constify parameter.
6654 (target_follow_exec): Likewise.
6655
8fca4da0
AH
66562019-05-22 Alan Hayward <alan.hayward@arm.com>
6657
6658 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
6659 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
6660
b7060614
AH
66612019-05-22 Alan Hayward <alan.hayward@arm.com>
6662
6663 * NEWS: Add debugredirect and testsuite sections.
6664
0a5954bd
SC
66652019-05-22 Simon Cook <simon.cook@embecosm.com>
6666
6667 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
6668 target descriptions using exclusively floating point register name
6669 aliases.
6670
dc42e902
AB
66712019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
6672
6673 PR gdb/18644:
6674 * f-lang.c (build_fortran_types): Handle the case where
6675 gdbarch_floatformat_for_type returns a nullptr.
6676
fb7806c7
TV
66772019-05-21 Tom de Vries <tdevries@suse.de>
6678
6679 PR cli/24587
6680 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
6681
34d11c68
AB
66822019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6683
6684 PR gdb/18644:
6685 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
6686 16-byte floats.
6687 * i386-tdep.c (i386_floatformat_for_type): Use
6688 floatformats_ia64_quad for the 16-byte floating point component
6689 within a fortran 32-byte complex number.
6690
122cf0f2
AB
66912019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6692
6693 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
6694 delete default constructor.
6695 (find_partial_die): Update to return const struct.
6696 (partial_die_parent_scope): Move variable declaration into scope
6697 of its use and change its type to auto.
6698 (guess_partial_die_structure_name): Likewise.
6699 (partial_die_info::fixup): Likewise.
6700
33d0e35a
TT
67012019-05-17 Tom Tromey <tromey@adacore.com>
6702
6703 * source.c (find_and_open_source): Remove cast.
6704
a45575b0
TT
67052019-05-17 Tom Tromey <tromey@adacore.com>
6706
6707 * annotate.c (annotate_source): Make "filename" const.
6708 * annotate.h (annotate_source): Use const.
6709
81f47ac2
AH
67102019-05-17 Alan Hayward <alan.hayward@arm.com>
6711
6712 * disasm.c (set_disassembler_options): Send errors to stderr.
6713
ca1285d1
AH
67142019-05-17 Alan Hayward <alan.hayward@arm.com>
6715
6716 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
6717 (cli_interp_base::set_logging): Check debug_redirect.
6718 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
6719 * cli/cli-logging.c (debug_redirect): Add static variable.
6720 (pop_output_files): Add default param.
6721 (handle_redirections): Print debug setting.
6722 (show_logging_command): Likewise.
6723 (_initialize_cli_logging): Add debugredirect command.
6724 * interps.c (current_interp_set_logging): Add debug_redirect
6725 parameter.
6726 * interps.h (set_logging): Add debug_redirect parameter.
6727 (current_interp_set_logging): Likewise.
6728 * mi/mi-common.h: Likewise.
6729 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
6730
67312019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
6732 Tom Tromey <tromey@adacore.com>
6733
6734 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
6735 directly.
6736 * cli/cli-interp.h (make_logging_output): Remove declaration.
6737 * cli/cli-logging.c (make_logging_output): Remove function.
6738 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
6739 directly.
6740 * ui-file.c (tee_file::tee_file): Remove bools.
6741 (tee_file::~tee_file): Remove deletes.
6742 * ui-file.h (tee_file): Remove bools.
6743
26648588
JV
67442019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
6745
6746 * mi/mi-cmds.h (mi_cmd_complete): New function.
6747 * mi/mi-main.c (mi_cmd_complete): Likewise.
6748 * mi/mi-cmds.c: Define new MI command -complete.
6749 * NEWS: Mention new -complete command.
6750
6e035501
JV
67512019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
6752
6753 * completer.h (complete): New function.
6754 * completer.c (complete): Likewise.
6755 * cli/cli-cmds.c: (complete_command): Update to use new complete()
6756 function defined in completer.h.
6757
7d0e2ece
JV
67582019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
6759
e79be6e5 6760 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 6761
fb816e8b
TV
67622019-05-17 Tom de Vries <tdevries@suse.de>
6763
6764 PR gdb/24094
6765 * dwarf2read.c (struct cu_partial_die_info): New struct.
6766 (find_partial_die): Return cu_partial_die_info.
6767 (partial_die_parent_scope, guess_partial_die_structure_name)
6768 (partial_die_info::fixup): Handle new return type of find_partial_die.
6769
677052f2
SDJ
67702019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6771
a1726c38 6772 PR breakpoints/24541
677052f2
SDJ
6773 * stap-probe.c (stap_parse_register_operand): Make "regname" an
6774 "std::string", simplifying the algorithm.
6775
f3da9116
SDJ
67762019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6777
6778 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
6779 (stap_static_probe_ops::get_probes): Likewise.
6780
f1bb75ab
SDJ
67812019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6782
6783 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
6784 '-')" and "else if".
6785 (stap_parse_single_operand): Join checks for
6786 "gdbarch_stap_parse_special_token_p" and
6787 "gdbarch_stap_parse_special_token" in the same "if" statement.
6788 Invert check when verifying for operation on register
6789 displacement.
6790
3ca58cde
SDJ
67912019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6792
6793 * stap-probe.c (stap_get_opcode): Update comment.
6794 (stap_get_expected_argument_type): Likewise.
6795 (handle_stap_probe): Likewise.
6796
af2d9bee
SDJ
67972019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6798
6799 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
6800 return type to 'bool'. Adjust comment. Use 'bool' when
6801 appropriate.
6802 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6803 * stap-probe.c (stap_parse_argument_1): Likewise.
6804 (stap_is_operator): Likewise.
6805 (stap_is_generic_prefix): Likewise.
6806 (stap_is_register_prefix): Likewise.
6807 (stap_is_register_indirection_prefix): Likewise.
6808 (stap_is_integer_prefix): Likewise.
6809 (stap_generic_check_suffix): Likewise.
6810 (stap_check_integer_suffix): Likewise.
6811 (stap_check_register_suffix): Likewise.
6812 (stap_check_register_indirection_suffix): Likewise.
6813 (stap_parse_register_operand): Likewise.
6814 (stap_parse_single_operand): Likewise.
6815 (stap_parse_argument_1): Likewise.
6816 (stap_probe::get_argument_count): Likewise.
6817 (stap_is_operator): Likewise.
6818
61c9c421
TT
68192019-05-16 Tom Tromey <tromey@adacore.com>
6820
6821 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
6822 keyword to foreach.
6823
9ddc1af1
SM
68242019-05-15 Simon Marchi <simon.marchi@efficios.com>
6825
6826 * linux-thread-db.c (try_thread_db_load_1): Change return type
6827 to bool.
6828 (try_thread_db_load): Likewise.
6829 (try_thread_db_load_from_pdir_1): Likewise.
6830 (try_thread_db_load_from_pdir): Likewise.
6831 (try_thread_db_load_from_sdir): Likewise.
6832 (try_thread_db_load_from_dir): Likewise.
6833 (thread_db_load_search): Likewise.
6834 (has_libpthread): Likewise.
6835 (thread_db_load): Likewise.
6836
7bede828
SDJ
68372019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
6838
6839 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6840 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
6841 NULL, and complain/return if that's the case.
6842
c5358db4
JD
68432019-05-15 John Darrington <john@darrington.wattle.id.au>
6844
6845 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
6846 (advance, posn, abstract_read_memory): New functions.
6847 [struct mem_read_abstraction]: New struct.
6848 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
6849
c408a94f
TT
68502019-05-14 Tom Tromey <tromey@adacore.com>
6851
6852 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
6853 value is not lval_memory.
6854
e7bd7fba
TT
68552019-05-14 Tom Tromey <tromey@adacore.com>
6856
6857 * solib.c (info_sharedlibrary_command): Style the file name.
6858
a6d0f249
AH
68592019-05-14 Alan Hayward <alan.hayward@arm.com>
6860
6861 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
6862 (aarch64_vnv_type): Likewise.
6863 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
6864 * common/tdesc.c: Likewise.
6865 * common/tdesc.h (enum tdesc_type_kind): Likewise.
6866 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
6867 * features/aarch64-fpu.xml: Add ieee half view.
6868 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
6869 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
6870 * gdbtypes.h (struct builtin_type): Likewise.
6871 (struct objfile_type): Likewise.
6872
66b8bb74
SM
68732019-05-12 Paul Naert <paul.naert@polymtl.ca>
6874
6875 * language.c (language_sniff_from_mangled_name): Fix "langauge"
6876 typo.
6877 * location.h (string_to_event_location): Likewise.
6878
21c219fd
JB
68792019-05-11 Joel Brobecker <brobecker@adacore.com>
6880
6881 GDB 8.3 released.
6882
13674803
SM
68832019-05-10 Simon Marchi <simon.marchi@efficios.com>
6884
6885 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
6886 New variable declaration.
6887 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
6888 New variable.
6889 (print_one_breakpoint): Use ui_out::test_flags and new global
6890 variable to compute use_fixed_output.
6891 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
6892 Remove.
6893 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
6894 (mi_multi_location_breakpoint_output_fixed): Remove.
6895 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
6896 new variable.
6897 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
6898 fix_multi_location_breakpoint_output flag if version >= 3.
6899 * ui-out.h (enum ui_out_flag)
6900 <fix_multi_location_breakpoint_output>: New enumerator.
6901
a9eac7f9
SM
69022019-05-10 Simon Marchi <simon.marchi@efficios.com>
6903
6904 * contrib/cc-with-tweaks.sh: Validate dwz's work.
6905
71bed2db
TT
69062019-05-10 Tom Tromey <tromey@adacore.com>
6907
6908 * ada-lang.c (catch_ada_completer): New function.
6909 (_initialize_ada_language): Use it.
6910
24c54127
TT
69112019-05-10 Tom Tromey <tromey@adacore.com>
6912
6913 * thread.c (print_thread_info): Make "requested_threads" const.
6914 * gdbthread.h (print_thread_info): Make "requested_threads"
6915 const.
6916 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
6917 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
6918
7a102139
TT
69192019-05-08 Tom Tromey <tom@tromey.com>
6920
6921 * gdbtypes.c (objfile_type_data): Change type.
6922 (objfile_type, _initialize_gdbtypes): Update.
6923
924d79e2
TT
69242019-05-08 Tom Tromey <tom@tromey.com>
6925
6926 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
6927 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
6928 (_initialize_dwarf2_frame): Update.
6929
4c58e337
TT
69302019-05-08 Tom Tromey <tom@tromey.com>
6931
6932 * objc-lang.c (objc_objfile_data): Change type.
6933 (find_methods): Update.
6934 (_initialize_objc_lang): Remove.
6935
d772d2ab
TT
69362019-05-08 Tom Tromey <tom@tromey.com>
6937
6938 * stabsread.c (rs6000_builtin_type_data): Change type.
6939 (rs6000_builtin_type, _initialize_stabsread): Update.
6940
d11d83f4
TT
69412019-05-08 Tom Tromey <tom@tromey.com>
6942
6943 * mips-tdep.c (mips_pdr_data): Remove.
6944 (_initialize_mips_tdep): Update.
6945
9a73f0ad
TT
69462019-05-08 Tom Tromey <tom@tromey.com>
6947
6948 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
6949 (hppa_init_objfile_priv_data, read_unwind_info)
6950 (find_unwind_entry, _initialize_hppa_tdep): Update.
6951
8127a2fa
TT
69522019-05-08 Tom Tromey <tom@tromey.com>
6953
6954 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
6955 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
6956 on obstack.
6957 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
6958
91d3055d
TT
69592019-05-08 Tom Tromey <tom@tromey.com>
6960
6961 * mdebugread.c (basic_type_data): Change type.
6962 (basic_type, _initialize_mdebugread): Update.
6963
31930bd3
TT
69642019-05-08 Tom Tromey <tom@tromey.com>
6965
6966 * common/gdb_unique_ptr.h (struct noop_deleter): New.
6967
bdb3ed9e
TT
69682019-05-08 Tom Tromey <tom@tromey.com>
6969
6970 * nto-tdep.c (nto_inferior_data_reg): Change type.
6971 (nto_inferior_data): Update.
6972 (nto_inferior_data_cleanup, nto_new_inferior_data)
6973 (_initialize_nto_tdep): Remove.
6974 * nto-tdep.h (struct nto_inferior_data): Add initializers.
6975
f37b313d
TT
69762019-05-08 Tom Tromey <tom@tromey.com>
6977
6978 * ada-lang.c (struct ada_inferior_data): Add initializers.
6979 (ada_inferior_data): Change type.
6980 (ada_inferior_data_cleanup): Remove.
6981 (get_ada_inferior_data, ada_inferior_exit)
6982 (struct ada_pspace_data): Add initializers, destructor.
6983 (ada_pspace_data_handle): Change type.
6984 (get_ada_pspace_data): Update.
6985 (ada_pspace_data_cleanup): Remove.
6986
24699405
TT
69872019-05-08 Tom Tromey <tom@tromey.com>
6988
6989 * coffread.c (struct coff_symfile_info): Add initializers.
6990 (coff_objfile_data_key): Move lower. Change type.
6991 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
6992 Update.
6993 (coff_free_info): Remove.
6994
d4e05d2f
TT
69952019-05-08 Tom Tromey <tom@tromey.com>
6996
6997 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
6998 (fbsd_pspace_data_handle): Move lower. Change type.
6999 (get_fbsd_pspace_data): Update.
7000 (fbsd_pspace_data_cleanup): Remove.
7001 (_initialize_fbsd_tdep): Update.
7002
14ef6690
TT
70032019-05-08 Tom Tromey <tom@tromey.com>
7004
7005 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
7006 (get_ada_tasks_pspace_data): Update.
7007 (ada_tasks_pspace_data_cleanup): Remove.
7008 (_initialize_tasks): Update.
7009 (ada_tasks_inferior_data_handle): Change type.
7010 (get_ada_tasks_inferior_data): Update.
7011 (ada_tasks_inferior_data_cleanup): Remove.
7012 (struct ada_tasks_pspace_data): Add initializers.
7013
814cf43a
TT
70142019-05-08 Tom Tromey <tom@tromey.com>
7015
7016 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
7017 * symfile-debug.c (debug_sym_get_probes): Change type.
7018 * stap-probe.c (handle_stap_probe):
7019 (stap_static_probe_ops::get_probes): Change type.
7020 * probe.h (class static_probe_ops) <get_probes>: Change type.
7021 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
7022 (parse_probes_in_pspace): Update.
7023 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
7024 Update.
7025 (any_static_probe_ops::get_probes): Change type.
7026 * elfread.c (elfread_data): New typedef.
7027 (probe_key): Change type.
7028 (elf_get_probes): Likewise. Update.
7029 (probe_key_free): Remove.
7030 (_initialize_elfread): Update.
7031 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
7032 Change type.
7033 (dtrace_process_dof_probe, dtrace_process_dof)
7034 (dtrace_static_probe_ops::get_probe): Change type.
7035
02dc647e
TT
70362019-05-08 Tom Tromey <tom@tromey.com>
7037
7038 * xcoffread.c (struct xcoff_symfile_info): Rename from
7039 coff_symfile_info. Add initializers.
7040 (xcoff_objfile_data_key): Move lower. Change type.
7041 (XCOFF_DATA): Rewrite.
7042 (xcoff_free_info): Remove.
7043 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
7044 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
7045 (xcoff_initial_scan): Update.
7046
09232438
TT
70472019-05-08 Tom Tromey <tom@tromey.com>
7048
7049 * solib-svr4.c (struct svr4_info): Add initializers and
7050 destructor.
7051 <probes_table>: Now an htab_up.
7052 (solib_svr4_pspace_data): Change type.
7053 (free_probes_table): Simplify.
7054 (~svr4_info): Rename from svr4_pspace_data_cleanup.
7055 (get_svr4_info, probes_table_htab_remove_objfile_probes)
7056 (probes_table_remove_objfile_probes, register_solib_event_probe)
7057 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
7058 (_initialize_svr4_solib): Update.
7059
7b4a314f
TT
70602019-05-08 Tom Tromey <tom@tromey.com>
7061
7062 * remote.c (remote_pspace_data): Change type.
7063 (remote_pspace_data_cleanup): Remove.
7064 (get_remote_exec_file, set_pspace_remote_exec_file)
7065 (_initialize_remote): Update.
7066
51d3063a
TT
70672019-05-08 Tom Tromey <tom@tromey.com>
7068
7069 * breakpoint.c (breakpoint_objfile_key): Change type.
7070 (get_breakpoint_objfile_data): Update.
7071 (free_breakpoint_objfile_data): Remove.
7072 (_initialize_breakpoint): Update.
7073
89fb8848
TT
70742019-05-08 Tom Tromey <tom@tromey.com>
7075
7076 * linux-tdep.c (struct linux_info): Add initializers.
7077 (linux_inferior_data): Move. Change type.
7078 (invalidate_linux_cache_inf): Update.
7079 (linux_inferior_data_cleanup): Remove.
7080 (get_linux_inferior_data, _initialize_linux_tdep): Update.
7081
e9b89e2d
TT
70822019-05-08 Tom Tromey <tom@tromey.com>
7083
7084 * auxv.c (auxv_inferior_data): Move. Change type.
7085 (auxv_inferior_data_cleanup): Remove.
7086 (invalidate_auxv_cache_inf): Rewrite.
7087 (get_auxv_inferior_data, _initialize_auxv): Update.
7088
8c42777c
TT
70892019-05-08 Tom Tromey <tom@tromey.com>
7090
7091 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
7092 (symfile_debug_objfile_data_key): Change type.
7093 (symfile_debug_installed, debug_qf_has_symbols)
7094 (debug_qf_find_last_source_symtab)
7095 (debug_qf_forget_cached_source_info)
7096 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
7097 (debug_qf_print_stats, debug_qf_dump)
7098 (debug_qf_expand_symtabs_for_function)
7099 (debug_qf_expand_all_symtabs)
7100 (debug_qf_expand_symtabs_with_fullname)
7101 (debug_qf_map_matching_symbols)
7102 (debug_qf_expand_symtabs_matching)
7103 (debug_qf_find_pc_sect_compunit_symtab)
7104 (debug_qf_map_symbol_filenames)
7105 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
7106 (debug_sym_new_init, debug_sym_init, debug_sym_read)
7107 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
7108 (debug_sym_read_linetable, debug_sym_relocate): Update.
7109 (symfile_debug_free_objfile): Remove.
7110 (install_symfile_debug_logging, _initialize_symfile_debug):
7111 Update.
7112
5bfd760d
TT
71132019-05-08 Tom Tromey <tom@tromey.com>
7114
7115 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
7116 allocate_on_obstack.
7117 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
7118 (get_dwarf2_per_objfile): Update.
7119 (set_dwarf2_per_objfile): Remove.
7120 (dwarf2_has_info, dwarf2_get_section_info): Update.
7121 (dwarf2_free_objfile): Remove.
7122 (_initialize_dwarf2_read): Update.
7123
e85e19b4
TT
71242019-05-08 Tom Tromey <tom@tromey.com>
7125
7126 * auto-load.c (struct auto_load_pspace_info): Add destructor and
7127 initializers.
7128 <unsupported_script_warning_printed,
7129 script_not_found_warning_printed>: Now bool.
7130 (auto_load_pspace_data): Change type.
7131 (~auto_load_pspace_info): Rename from
7132 auto_load_pspace_data_cleanup.
7133 (get_auto_load_pspace_data, init_loaded_scripts_info)
7134 (clear_section_scripts, maybe_print_unsupported_script_warning)
7135 (maybe_print_script_not_found_warning, _initialize_auto_load):
7136 Update.
7137
f6aa7436
TT
71382019-05-08 Tom Tromey <tom@tromey.com>
7139
7140 * objfiles.c (objfile_pspace_info): Add destructor and
7141 initializers.
7142 (objfiles_pspace_data): Change type.
7143 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
7144 (get_objfile_pspace_data): Update.
7145 (objfiles_bfd_data): Change type.
7146 (get_objfile_bfd_data): Update.
7147 (objfile_bfd_data_free, _initialize_objfiles): Remove.
7148
6ae614f6
TT
71492019-05-08 Tom Tromey <tom@tromey.com>
7150
7151 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
7152 Change type.
7153 (get_catch_syscall_inferior_data): Update.
7154 (catch_syscall_inferior_data_cleanup): Remove.
7155 (_initialize_break_catch_syscall): Update.
7156
6509b8eb
TT
71572019-05-08 Tom Tromey <tom@tromey.com>
7158
7159 * inflow.c (struct terminal_info): Add destructor and
7160 initializers.
7161 (inflow_inferior_data): Change type.
7162 (~terminal_info): Rename from inflow_inferior_data_cleanup.
7163 (get_inflow_inferior_data, inflow_inferior_exit)
7164 (swap_terminal_info, _initialize_inflow): Update.
7165
35632941
TT
71662019-05-08 Tom Tromey <tom@tromey.com>
7167
7168 * target-dcache.c (target_dcache_cleanup): Remove.
7169 (target_dcache_aspace_key): Change type.
7170 (target_dcache_init_p, target_dcache_invalidate)
7171 (target_dcache_get, target_dcache_get_or_init)
7172 (_initialize_target_dcache): Update.
7173 * dcache.h (struct dcache_deleter): New.
7174
3017b94d
TT
71752019-05-08 Tom Tromey <tom@tromey.com>
7176
7177 * symtab.c (struct symbol_cache): Add destructor and
7178 initializers.
7179 (symbol_cache_key): Move. Change type.
7180 (make_symbol_cache, free_symbol_cache): Remove.
7181 (get_symbol_cache): Update.
7182 (symbol_cache_cleanup): Remove.
7183 (ALL_PSPACES, symbol_cache_flush)
7184 (maintenance_print_symbol_cache)
7185 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
7186 Update.
7187
a32ad8c5
TT
71882019-05-08 Tom Tromey <tom@tromey.com>
7189
7190 * symtab.c (struct main_info): Add destructor and initializers.
7191 (main_progspace_key): Move. Change type.
7192 (get_main_info): Update.
7193 (main_info_cleanup): Remove.
7194 (_initialize_symtab): Update.
7195
5f6e90a0
TT
71962019-05-08 Tom Tromey <tom@tromey.com>
7197
7198 * registry.h (DECLARE_REGISTRY): Define the _key class.
7199
1bd0c6e4
AB
72002019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7201
7202 * NEWS: Merge two 'New commands' sections.
7203
2228ef77
XR
72042019-05-08 Joel Brobecker <brobecker@adacore.com>
7205
7206 * ada-valprint.c (ada_val_print_gnat_array): Remove language
7207 parameter and use Ada language definition instead.
7208 (ada_val_print_ptr): Remove unused language parameter.
7209 (ada_val_print_num): Remove language parameter and use Ada language
7210 definition instead.
7211 (ada_val_print_enum, ada_val_print_flt): Remove unused language
7212 parameter.
7213 (ada_val_print_struct_union, ada_val_print_ref): Remove language
7214 parameter and use Ada language definition instead.
7215 (ada_val_print_1): Update all ada_val_print_xxx calls.
7216 Remove language parameter.
7217 (ada_val_print): Update ada_val_print_1 call.
7218
60fcc1c3
TT
72192019-05-08 Tom Tromey <tromey@adacore.com>
7220
7221 * remote.c (remote_hw_watchpoint_limit)
7222 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
7223 Now static.
7224
ed2b7c17
TT
72252019-05-08 Tom Tromey <tromey@adacore.com>
7226
7227 * maint.c (_initialize_maint_cmds): Move initialization code to
7228 remote.c.
7229 (watchdog, show_watchdog): Move to remote.c.
7230 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
7231 "watchdog" static.
7232 (_initialize_remote): Move initialization code from maint.c.
7233 * defs.h (watchdog): Don't declare.
7234
b0be6c91
TT
72352019-05-08 Tom Tromey <tromey@adacore.com>
7236
7237 * tui/tui-interp.c: Include main.h.
7238 * interps.c: Include main.h.
7239 * main.h (interpreter_p): Declare.
7240 * defs.h (interpreter_p): Don't declare.
7241
587ee17b
TT
72422019-05-08 Tom Tromey <tromey@adacore.com>
7243
7244 * dwarf2loc.c: Include dwarf2read.h.
7245 * defs.h (read_unsigned_leb128): Don't declare.
7246 * dwarf2read.h (read_unsigned_leb128): Declare.
7247
ca1df239
TT
72482019-05-08 Tom Tromey <tromey@adacore.com>
7249
7250 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
7251 method.
7252
99f20f08
TT
72532019-05-08 Tom Tromey <tromey@adacore.com>
7254
7255 * utils.c (fputs_maybe_filtered): Reset style after paging, even
7256 when no wrap column is set.
7257
80e55b13
TT
72582019-05-08 Tom Tromey <tromey@adacore.com>
7259
7260 * c-lang.c (c_get_string): Handle non-C-style arrays.
7261
9d3421af
TT
72622019-05-08 Tom Tromey <tromey@adacore.com>
7263
7264 * typeprint.c (print_offset_data::update): Print the bit offset,
7265 not the number of bits remaining.
7266
844333e2
TT
72672019-05-08 Tom Tromey <tromey@adacore.com>
7268
7269 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
7270 padding at end of comment.
7271
988915ee
TT
72722019-05-08 Tom Tromey <tromey@adacore.com>
7273
7274 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
7275 Compare main types.
7276
26bfd823
TT
72772019-05-06 Tom Tromey <tom@tromey.com>
7278
7279 * common/scoped_mmap.c: Include common-defs.h.
7280 * common/scoped_mmap.h: Don't include config.h.
7281
89055eaa
TT
72822019-05-04 Tom Tromey <tom@tromey.com>
7283
7284 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
7285 (struct aarch64_call_info): Add initializers.
7286 <si>: Now a std::vector.
7287 (pass_on_stack, aarch64_push_dummy_call): Update.
7288
5da01df5
TT
72892019-05-04 Simon Marchi <simon.marchi@efficios.com>
7290 Tom Tromey <tom@tromey.com>
7291
7292 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
7293 (ppc_threads): Now a std::vector. Now static.
7294 (hwdebug_find_thread_points_by_tid)
7295 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
7296 Update.
7297
fbdf05a1
TT
72982019-05-04 Tom Tromey <tom@tromey.com>
7299
7300 * arc-tdep.c (arc_tdesc_init): Return bool.
7301
06d16ec9
TT
73022019-05-04 Tom Tromey <tom@tromey.com>
7303
7304 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
7305 Use gdb_assert_not_reached.
7306
9c056022
TT
73072019-05-04 Tom Tromey <tom@tromey.com>
7308
7309 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
7310 "false".
7311
fa9c2a59
TT
73122019-05-04 Tom Tromey <tom@tromey.com>
7313
7314 * arc-tdep.c (arc_tdesc_init): Use bool.
7315
e2eb806a
TT
73162019-05-04 Tom Tromey <tom@tromey.com>
7317
7318 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
7319
6fe87677
TT
73202019-05-04 Tom Tromey <tom@tromey.com>
7321
7322 * cli/cli-cmds.c (valid_command_p): Return bool.
7323
7f008c9e
TT
73242019-05-04 Tom Tromey <tom@tromey.com>
7325
7326 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
7327 * command.h (valid_user_defined_cmd_name_p): Channge return type.
7328
b6484282
RT
73292019-05-04 Raul Tambre <raul@tambre.ee>
7330
7331 * python/lib/gdb/prompt.py (_ExtendedPrompt)
7332 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
7333 operator for comparison.
7334
af97b416
TT
73352019-05-04 Tom Tromey <tom@tromey.com>
7336
7337 * psymtab.c (psymbol_name_matches, match_partial_symbol)
7338 (lookup_partial_symbol, print_partial_symbols)
7339 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
7340 (psymbol_compare): Update.
7341 (add_psymbol_to_bcache): Clear the entire psymbol.
7342 (maintenance_check_psymtabs): Update.
7343 * psympriv.h (struct partial_symbol): Don't derive from
7344 general_symbol_info.
7345 <obj_section, unrelocated_address, address,
7346 set_unrelocated_address>: Update.
7347 <ginfo>: New member.
7348 * dwarf-index-write.c (write_psymbols, debug_names::insert)
7349 (debug_names::write_psymbols): Update.
7350
9d6d4be8
TV
73512019-05-04 Tom de Vries <tdevries@suse.de>
7352
7353 * contrib/cc-with-tweaks.sh: Support -n arg.
7354
66452beb
PW
73552019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7356
7357 * corelow.c (core_target::detach): Ensure frame cache and
7358 register caches are cleared.
7359 inferior.c (exit_inferior_1): Likewise.
7360
bde09ab7
TT
73612019-05-03 Sandra Loosemore <sandra@codesourcery.com>
7362 Tom Tromey <tom@tromey.com>
7363
7364 * dictionary.c (collate_pending_symbols_by_language): Remove
7365 "struct" from foreach.
7366 * symtab.c (lookup_global_symbol_from_objfile)
7367 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
7368 foreach.
7369 * ser-tcp.c (net_open): Remove "struct" from foreach.
7370 * objfiles.c (objfile_relocate, objfile_rebase)
7371 (objfile_has_symbols): Remove "struct" from foreach.
7372 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
7373 from foreach.
7374 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
7375 foreach.
7376 * darwin-nat.c (thread_info_from_private_thread_info): Remove
7377 "struct" from foreach.
7378 * ada-lang.c (create_excep_cond_exprs)
7379 (ada_exception_catchpoint_cond_string): Remove "struct" from
7380 foreach.
7381
222a8d25
TT
73822019-05-03 Tom Tromey <tromey@adacore.com>
7383
7384 * ada-exp.y (convert_char_literal): Check suffix of each
7385 enumerator.
7386
fcd60b84
DP
73872019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
7388
7389 PR ada/21406:
7390 * ada-exp.y (yywrap): Don't define.
7391 * ada-lex.l (%option): Add noyywrap
7392 (yywrap): Remove.
7393
5f2459c2
EZ
73942019-05-03 Eli Zaretskii <eliz@gnu.org>
7395
353ea2d1
EZ
7396 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
7397 _WIN32_WINNT to the XP level, unless already defined to a higher
7398 level.
7399
7400 * unittests/parse-connection-spec-selftests.c:
7401 * ser-tcp.c:
7402 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
7403 override.
7404
5f2459c2
EZ
7405 * symfile.c (find_separate_debug_file): Remove colon from the
7406 drive spec of DOS/Windows file names of the target, so that the
7407 file name produced from DEBUGDIR and the target's directory will
7408 be valid on DOS/Windows systems.
7409
80062eb9
AB
74102019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
7411
7412 * rust-lang.c (val_print_struct): Handle printing structures
7413 containing strings.
7414
b8c05e85
TT
74152019-05-02 Tom Tromey <tromey@adacore.com>
7416
7417 * valarith.c (_initialize_valarith): Remove.
7418
4504bbde
TT
74192019-05-01 Tom Tromey <tromey@adacore.com>
7420
7421 * ada-lang.c (ada_value_primitive_field): Treat more fields as
7422 bitfields.
7423
d48e62f4
TT
74242019-05-01 Tom Tromey <tromey@adacore.com>
7425
7426 * ada-lang.c (ada_value_assign): Correctly compute starting offset
7427 for big-endian copies.
7428
15f18d14
AT
74292019-04-30 Ali Tamur <tamur@google.com>
7430 * gdb/dwarf2read.c (read_3_bytes): New declaration.
7431 (read_attribute_value): Added DW_FORM_strx1-4 cases.
7432 (read_3_bytes): New function.
7433
ab4ee614
JB
74342019-04-30 Joel Brobecker <brobecker@adacore.com>
7435
7436 * windows-nat.c (main_thread_id): Delete.
7437 (handle_output_debug_string): Replace main_thread_id by
7438 current_event.dwThreadId.
7439 (fake_create_process): Likewise.
7440 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
7441 Do not set main_thread_id.
7442 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
7443 current_event.dwThreadId.
7444 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
7445
8ed5b76e
JB
74462019-04-30 Joel Brobecker <brobecker@adacore.com>
7447
7448 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
7449 Use current_event.dwThreadId instead of main_thread_id.
7450
2ff0a947
TT
74512019-04-30 Tom Tromey <tromey@adacore.com>
7452
7453 * ada-lang.c (ada_lookup_simple_minsyms): New function.
7454 (create_excep_cond_exprs): Iterate over program spaces.
7455 (ada_exception_catchpoint_cond_string): Examine all minimal
7456 symbols for exception types.
7457
a776957c
TT
74582019-04-30 Tom Tromey <tromey@adacore.com>
7459
7460 PR c++/24470:
7461 * dwarf2read.c (process_structure_scope): Handle case where type
7462 has template parameters but no symbol was created.
7463
bc68014d
AB
74642019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7465 Chris January <chris.january@arm.com>
7466
7467 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
7468 qualifier.
7469 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
7470
f1fdc960
AB
74712019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7472
7473 * f-typeprint.c (f_print_type): Update rules for printing
7474 whitespace.
7475 (f_type_print_varspec_suffix): Likewise.
7476
bf7a4de1
AB
74772019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7478 Chris January <chris.january@arm.com>
7479
7480 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
7481 function arguments.
7482
bbe75b9d
AB
74832019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7484
7485 * f-lang.c (build_fortran_types): Change name of void type to
7486 lower case.
7487 * f-typeprint.c (f_type_print_base): Print the name of the void
7488 type, rather than a fixed string.
7489 * f-valprint.c (f_decorations): Use lower case void string.
7490
1db455a7
AB
74912019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7492 Chris January <chris.january@arm.com>
7493
7494 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
7495 types for Fortran.
7496
b6d03bb2
AB
74972019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7498 Chris January <chris.january@arm.com>
7499 David Lecomber <david.lecomber@arm.com>
7500
7501 * f-exp.y (BINOP_INTRINSIC): New token.
7502 (exp): New parser rule handling BINOP_INTRINSIC.
7503 (f77_keywords): Add new builtin procedures.
7504 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
7505 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7506 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
7507 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7508 (print_unop_subexp_f): New function.
7509 (print_binop_subexp_f): New function.
7510 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7511 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7512 (dump_subexp_body_f): Likewise.
7513 (operator_check_f): Likewise.
7514 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7515 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
7516
83228e93
AB
75172019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7518
7519 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
7520 UNOP_KIND.
7521 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
7522 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
7523 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
7524 (operator_length_f): New fuction.
7525 (print_subexp_f): New function.
7526 (op_name_f): New function.
7527 (dump_subexp_body_f): New function.
7528 (operator_check_f): New function.
7529 (exp_descriptor_f): Replace standard expression handling functions
7530 with new functions.
7531 * gdb/fortran-operator.def: New file.
7532 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
7533 * gdb/std-operator.def: Remove UNOP_KIND.
7534
6fdcd7cc
AB
75352019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7536
7537 * std-operator.def: Remove unbalanced, stray double quote
7538 character.
7539
2e62ab40
AB
75402019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7541 Chris January <chris.january@arm.com>
7542 Daniel Everett <daniel.everett@arm.com>
7543 Nick Forrington <nick.forrington@arm.com>
7544 Richard Bunt <richard.bunt@arm.com>
7545
7546 * cp-valprint.c (cp_print_value_fields): Allow an additional level
7547 of depth when printing anonymous structs or unions.
7548 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
7549 Don't print either the top-level value, or the children if the
7550 max-depth is exceeded.
7551 (ppscm_print_children): When printing the key of a map, allow one
7552 extra level of depth.
7553 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
7554 print either the top-level value, or the children if the max-depth
7555 is exceeded.
7556 (print_children): When printing the key of a map, allow one extra
7557 level of depth.
7558 * python/py-value.c (valpy_format_string): Add max_depth keyword.
7559 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
7560 (user_print_options): Initialise max_depth field.
7561 (val_print_scalar_or_string_type_p): New function.
7562 (val_print): Check to see if the max depth has been reached.
7563 (val_print_check_max_depth): Define new function.
7564 (show_print_max_depth): New function.
7565 (_initialize_valprint): Add 'print max-depth' option.
7566 * valprint.h (struct value_print_options) <max_depth>: New field.
7567 (val_print_check_max_depth): Declare new function.
7568 * NEWS: Document new feature.
7569
4be290b2
AB
75702019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7571
7572 * ada-lang.c (ada_language_defn): Initialise new field.
7573 * c-lang.c (c_is_string_type_p): New function.
7574 (c_language_defn): Initialise new field.
7575 (cplus_language_defn): Initialise new field.
7576 (asm_language_defn): Initialise new field.
7577 (minimal_language_defn): Initialise new field.
7578 * c-lang.h (c_is_string_type_p): Declare new function.
7579 * d-lang.c (d_language_defn): Initialise new field.
7580 * f-lang.c (f_is_string_type_p): New function.
7581 (f_language_defn): Initialise new field.
7582 * go-lang.c (go_is_string_type_p): New function.
7583 (go_language_defn): Initialise new field.
7584 * language.c (default_is_string_type_p): New function.
7585 (unknown_language_defn): Initialise new field.
7586 (auto_language_defn): Initialise new field.
7587 * language.h (struct language_defn) <la_is_string_type_p>: New
7588 member variable.
7589 (default_is_string_type_p): Declare new function.
7590 * m2-lang.c (m2_language_defn): Initialise new field.
7591 * objc-lang.c (objc_language_defn): Initialise new field.
7592 * opencl-lang.c (opencl_language_defn): Initialise new field.
7593 * p-lang.c (pascal_is_string_type_p): New function.
7594 (pascal_language_defn): Initialise new field.
7595 * rust-lang.c (rust_is_string_type_p): New function.
7596 (rust_language_defn): Initialise new field.
7597
721b08c6
AB
75982019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7599
7600 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
7601 New field.
7602 * ada-lang.c (ada_language_defn): Initialise new field.
7603 * c-lang.c (c_language_defn): Likewise.
7604 (cplus_language_defn): Likewise.
7605 (asm_language_defn): Likewise.
7606 (minimal_language_defn): Likewise.
7607 * d-lang.c (d_language_defn): Likewise.
7608 * f-lang.c (f_language_defn): Likewise.
7609 * go-lang.c (go_language_defn): Likewise.
7610 * language.c (unknown_language_defn): Likewise.
7611 (auto_language_defn): Likewise.
7612 * m2-lang.c (m2_language_defn): Likewise.
7613 * objc-lang.c (objc_language_defn): Likewise.
7614 * opencl-lang.c (opencl_language_defn): Likewise.
7615 * p-lang.c (pascal_language_defn): Likewise.
7616 * rust-lang.c (rust_language_defn): Likewise.
7617
fc913e53
AB
76182019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7619
7620 * ada-lang.c (ada_is_character_type): Change return type to bool.
7621 (ada_is_string_type): Likewise.
7622 * ada-lang.h (ada_is_character_type): Update declaration
7623 (ada_is_string_type): Likewise.
7624
fa731fa0
PW
76252019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7626
7627 Support style in 'frame|thread apply'
7628
7629 * gdbcmd.h (execute_command_to_string): New term_out parameter.
7630 * record.c (record_start, record_stop): Update callers of
7631 execute_command_to_string with false.
7632 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
7633 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
7634 methods.
7635 (class string_file): New constructor with term_out parameter.
7636 Override methods term_out and can_emit_style_escape. New member
7637 term_out.
7638 (class stdio_file): Override can_emit_style_escape.
7639 (class tee_file): Override term_out and can_emit_style_escape.
7640 * utils.h (can_emit_style_escape): Remove.
7641 * utils.c (can_emit_style_escape): Likewise.
7642 Update all callers of can_emit_style_escape (SOMESTREAM) to
7643 SOMESTREAM->can_emit_style_escape.
7644 * source-cache.c (source_cache::get_source_lines): Likewise.
7645 * stack.c (frame_apply_command_count): Call execute_command_to_string
7646 passing the term_out characteristic of the current gdb_stdout.
7647 * thread.c (thr_try_catch_cmd): Likewise.
7648 * top.c (execute_command_to_string): pass term_out parameter
7649 to construct the string_file for the command output.
7650 * ui-file.c (term_cli_styling): New function (most code moved
7651 from utils.c can_emit_style_escape).
7652 (string_file::string_file, string_file::can_emit_style_escape,
7653 stdio_file::can_emit_style_escape, tee_file::term_out,
7654 tee_file::can_emit_style_escape): New functions.
7655
136afab8
PW
76562019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7657
7658 * NEWS: Mention the new set|show may-call-functions.
7659 * infcall.c (may_call_functions_p): New variable.
7660 (show_may_call_functions_p): New function.
7661 (call_function_by_hand_dummy): Throws an error if not
7662 may-call-functions.
7663 (_initialize_infcall): Call add_setshow_boolean_cmd for
7664 may-call-functions.
7665
725cbb63
KS
76662019-04-25 Keith Seitz <keiths@redhat.com>
7667
7668 PR c++/24367
7669 * cp-support.c (inspect_type): Don't attempt substitutions
7670 of symbol with the same name.
7671
3d1cbb78
TT
76722019-04-25 Tom Tromey <tromey@adacore.com>
7673
7674 PR gdb/24475:
7675 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
7676 static.
7677
94aeb44b
TT
76782019-04-25 Tom Tromey <tromey@adacore.com>
7679
7680 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
7681 rvalue reference.
7682 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
7683 (gdb_xml_parser::parse): Use std::move.
7684 * python/python-internal.h (gdbpy_convert_exception): Take a const
7685 reference.
7686 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
7687 std::move.
7688 * python/py-utils.c (gdbpy_convert_exception): Take a const
7689 reference.
7690 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7691 Use std::move.
7692 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7693 Use std::move.
7694 * mi/mi-main.c (mi_print_exception): Take a const reference.
7695 * main.c (handle_command_errors): Take a const reference.
7696 * linespec.c (parse_linespec): Use std::move.
7697 * infcall.c (run_inferior_call): Use std::move.
7698 (call_function_by_hand_dummy): Use std::move.
7699 * exec.c (try_open_exec_file): Use std::move.
7700 * exceptions.h (exception_print, exception_fprintf)
7701 (exception_print_same): Update.
7702 * exceptions.c (print_exception, exception_print)
7703 (exception_fprintf, exception_print_same): Change parameters to
7704 const reference.
7705 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
7706 * common/new-op.c: Use std::move.
7707 * common/common-exceptions.h (struct gdb_exception): Add move
7708 constructor.
7709 (struct gdb_exception_error, struct gdb_exception_quit, struct
7710 gdb_quit_bad_alloc): Change constructor to move constructor.
7711 (throw_exception): Change parameter to rvalue reference.
7712 * common/common-exceptions.c (throw_exception): Take rvalue
7713 reference.
7714 * cli/cli-interp.c (safe_execute_command): Use std::move.
7715 * breakpoint.c (insert_bp_location, location_to_sals): Use
7716 std::move.
7717
680d7fd5
TT
77182019-04-25 Tom Tromey <tromey@adacore.com>
7719
7720 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
7721 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
7722 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
7723 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
7724 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
7725 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
7726 guile/scm-value.c: Use unpack.
7727 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
7728 gdbscm_gdb_exception.
7729 (gdbscm_throw_gdb_exception): Likewise.
7730 (struct gdbscm_gdb_exception): New.
7731 (unpack): New function.
7732 (gdbscm_wrap): Use unpack.
7733
c6fdd8b2
TT
77342019-04-25 Tom Tromey <tromey@adacore.com>
7735
7736 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7737 (gdb_rl_callback_handler): Use std::move.
7738 * common/common-exceptions.h (struct gdb_exception): Add move
7739 assignment operator.
7740 (throw_exception_sjlj): Change "exception" to const reference.
7741 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
7742 (throw_exception_sjlj): Change "exception" to const reference.
7743
cc06b668
TT
77442019-04-25 Tom Tromey <tromey@adacore.com>
7745
7746 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
7747 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
7748 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7749 Update.
7750 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7751 Update.
7752 * mi/mi-interp.c (mi_interp::exec): Update.
7753 * linespec.c (parse_linespec): Update.
7754 * infcall.c (run_inferior_call): Update.
7755 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
7756 * guile/scm-symbol.c (gdbscm_lookup_symbol)
7757 (gdbscm_lookup_global_symbol): Update.
7758 * guile/scm-param.c (gdbscm_parameter_value): Update.
7759 * guile/scm-frame.c (gdbscm_frame_read_register)
7760 (gdbscm_frame_read_var): Update.
7761 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7762 * exec.c (try_open_exec_file): Update.
7763 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7764 (gdb_rl_callback_handler): Update.
7765 * common/common-exceptions.h (exception_none): Don't declare.
7766 * common/common-exceptions.c (exception_none): Don't define.
7767 (struct catcher) <exception>: Update.
7768 * cli/cli-interp.c (safe_execute_command): Update.
7769 * breakpoint.c (insert_bp_location, location_to_sals): Update.
7770
cf532bd1
AT
77712019-04-25 Ali Tamur <tamur@google.com>
7772
7773 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
7774 (read_attribute_value): Likewise.
7775 (dwarf2_read_addr_index): Update comment.
7776 (read_str_index): Add DW_FORM_strx.
7777 (dwarf2_string_attr): Likewise.
7778 (dwarf2_const_value_attr): Likewise.
7779 (dump_die_shallow): Likewise.
7780 (dwarf2_fetch_constant_bytes): Likewise.
7781 (skip_form_bytes): Likewise.
7782 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
7783
82433e3e
SDJ
77842019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7785
7786 PR corefiles/11608
7787 PR corefiles/18187
7788 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
7789 OFFSET. Verify if current mapping contains an ELF header.
7790 (linux_find_memory_regions_full): Adjust call to
7791 dump_mapping_p.
7792
723adb65
SL
77932019-04-25 Sandra Loosemore <sandra@codesourcery.com>
7794 Kang Li <kanglictf@gmail.com>
7795
7796 PR gdb/21600
7797
7798 * dwarf2-frame.c (read_initial_length): Be consistent about using
7799 unsigned representation of length.
7800 (decode_frame_entry_1): Likewise. Check for wraparound of
7801 end pointer as well as buffer overflow.
7802
596179f7
SDJ
78032019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7804
7805 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
7806 "vq".
7807
a59240a4
TT
78082019-04-24 Tom Tromey <tromey@adacore.com>
7809
7810 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
7811
f872fdbb
AB
78122019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7813
7814 * s12z-tdep.c (s12z_unwind_pc): Delete.
7815 (s12z_unwind_sp): Delete.
7816 (s12z_gdbarch_init): Don't register deleted functions with
7817 gdbarch.
7818
b614e6f3
AB
78192019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7820
7821 * rl78-tdep.c (rl78_unwind_sp): Delete.
7822 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
7823
14faed38
AB
78242019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7825
7826 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
7827 (xstormy16_unwind_pc): Delete.
7828 (xstormy16_dummy_id): Delete.
7829 (xstormy16_gdbarch_init): Don't register deleted functions with
7830 gdbarch.
7831
541aad8a
AB
78322019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7833
7834 * vax-tdep.c (vax_unwind_pc): Delete.
7835 (vax_gdbarch_init): Don't register deleted function with gdbarch.
7836
29222070
AB
78372019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7838
7839 * v850-tdep.c (v850_unwind_sp): Delete.
7840 (v850_unwind_pc): Delete.
7841 (v850_dummy_id): Delete.
7842 (v850_gdbarch_init): Don't register deleted functions with
7843 gdbarch.
7844
0f534d76
AB
78452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7846
7847 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
7848 (tilegx_unwind_pc): Delete.
7849 (tilegx_unwind_dummy_id): Delete.
7850 (tilegx_gdbarch_init): Don't register deleted functions with
7851 gdbarch.
7852
1ba7b7f9
AB
78532019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7854
7855 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
7856 (tic6x_dummy_id): Delete.
7857 (tic6x_gdbarch_init): Don't register deleted functions with
7858 gdbarch.
7859
d31f262c
AB
78602019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7861
7862 * sparc-tdep.c (sparc_unwind_pc): Delete.
7863 (sparc32_gdbarch_init): Don't register deleted function with
7864 gdbarch.
7865
6d14d64d
AB
78662019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7867
7868 * sh-tdep.c (sh_unwind_sp): Delete.
7869 (sh_unwind_pc): Delete.
7870 (sh_dummy_id): Delete.
7871 (sh_gdbarch_init): Don't register deleted functions with
7872 gdbarch.
7873
a40dde9d
AB
78742019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7875
7876 * score-tdep.c (score_unwind_sp): Delete.
7877 (score_unwind_pc): Delete.
7878 (score_dummy_id): Delete.
7879 (score_gdbarch_init): Don't register deleted functions with
7880 gdbarch.
7881
47c47d69
AB
78822019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7883
7884 * rx-tdep.c (rx_unwind_pc): Delete.
7885 (rx_unwind_sp): Delete.
7886 (rx_dummy_id): Delete.
7887 (rx_gdbarch_init): Don't register deleted functions with
7888 gdbarch. Update comment.
7889
833a4480
AB
78902019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7891
7892 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
7893 (rs6000_dummy_id): Delete.
7894 (rs6000_gdbarch_init): Don't register deleted functions with
7895 gdbarch.
7896
3f2cef49
AB
78972019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7898
7899 * or1k-tdep.c (or1k_dummy_id): Delete.
7900 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
7901
96acf884
AB
79022019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7903
7904 * nios2-tdep.c (nios2_dummy_id): Delete.
7905 (nios2_unwind_sp): Delete.
7906 (nios2_gdbarch_init): Don't register deleted functions with
7907 gdbarch.
7908
ca0ab0aa
AB
79092019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7910
7911 * nds32-tdep.c (nds32_dummy_id): Delete.
7912 (nds32_unwind_pc): Delete.
7913 (nds32_unwind_sp): Delete.
7914 (nds32_gdbarch_init): Don't register deleted functions with
7915 gdbarch.
7916
c8259044
AB
79172019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7918
7919 * msp430-tdep.c (msp430_unwind_pc): Delete.
7920 (msp430_unwind_sp): Delete.
7921 (msp430_dummy_id): Delete.
7922 (msp430_gdbarch_init): Don't register deleted functions with
7923 gdbarch.
7924
27f113c8
AB
79252019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7926
7927 * moxie-tdep.c (moxie_unwind_sp): Delete.
7928 (moxie_unwind_pc): Delete.
7929 (moxie_dummy_id): Delete.
7930 (moxie_gdbarch_init): Don't register deleted functions with
7931 gdbarch.
7932
aee6c3cd
AB
79332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7934
7935 * mn10300-tdep.c (mn10300_dummy_id): Delete.
7936 (mn10300_unwind_pc): Delete.
7937 (mn10300_unwind_sp): Delete.
7938 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
7939 mn10300_unwind_sp.
7940 (mn10300_frame_unwind_init): Don't register deleted functions with
7941 gdbarch.
7942
8e2b5aea
AB
79432019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7944
7945 * mep-tdep.c (mep_unwind_pc): Delete.
7946 (mep_unwind_sp): Delete.
7947 (mep_dummy_id): Delete.
7948 (mep_gdbarch_init): Don't register deleted functions with
7949 gdbarch.
7950
43cf3ede
AB
79512019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7952
7953 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
7954 (m68hc11_unwind_sp): Delete.
7955 (m68hc11_gdbarch_init): Don't register deleted functions with
7956 gdbarch.
7957
5e79b7bb
AB
79582019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7959
7960 * m32r-tdep.c (m32r_unwind_sp): Delete.
7961 (m32r_unwind_pc): Delete.
7962 (m32r_dummy_id): Delete.
7963 (m32r_gdbarch_init): Don't register deleted functions with
7964 gdbarch.
7965
89b268d8
AB
79662019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7967
7968 * m32c-tdep.c (m32c_unwind_pc): Delete.
7969 (m32c_unwind_sp): Delete.
7970 (m32c_dummy_id): Delete.
7971 (m32c_gdbarch_init): Don't register deleted functions with
7972 gdbarch.
7973
946c28d2
AB
79742019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7975
7976 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
7977 (lm32_unwind_pc): Delete.
7978 (lm32_dummy_id): Delete.
7979 (lm32_gdbarch_init): Don't register deleted functions with
7980 gdbarch.
7981
bf12844a
AB
79822019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7983
7984 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
7985 (iq2000_unwind_pc): Delete.
7986 (iq2000_dummy_id): Delete.
7987 (iq2000_gdbarch_init): Don't register deleted functions with
7988 gdbarch.
7989
ecbc06d2
AB
79902019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7991
7992 * nds32-tdep.c (nds32_type_align): Delete.
7993 (nds32_push_dummy_call): Use type_align instead.
7994
030197b4
AB
79952019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7996
7997 * arm-tdep.c (arm_type_align): Only handle vector override case.
7998 (arm_push_dummy_call): Use type_align.
7999 (arm_gdbarch_init): Register arm_type_align gdbarch function.
8000
b907456c
AB
80012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8002
8003 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
8004 case.
8005 (pass_on_stack): Use type_align.
8006 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
8007 function.
8008
9e97ba43
TT
80092019-04-23 Tom Tromey <tromey@adacore.com>
8010
8011 * dwarf2read.c (line_header::file_name_at): Remove unused
8012 overload.
8013
6892f601
TV
80142019-04-23 Tom de Vries <tdevries@suse.de>
8015
8016 PR gdb/24438
8017 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
8018 invocation.
8019
336d760d
AT
8020
80212019-03-27 Ali Tamur <tamur@google.com>
8022
8023 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
8024 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
8025 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
8026 (dwarf_expr_context::get_addr_index): Likewise
8027 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
8028 (symbol_needs_eval_context::get_addr_index): Likewise
8029 (disassemble_dwarf_expression): Add DW_OP_addrx
8030 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
8031 (read_cutu_die_from_dwo): Update comment
8032 (skip_one_die): Add DW_FORM_addrx
8033 (read_attribute_value): Likewise
8034 (var_decode_location): Add DW_OP_addrx
8035 (dwarf2_const_value_attr): Add DW_FORM_addrx
8036 (dump_die_shallow): Likewise
8037 (dwarf2_fetch_constant_bytes): Likewise
8038 (decode_locdesc): Add DW_OP_addrx
8039 (skip_form_bytes): Add DW_FORM_addrx
8040
ad9d13f8
AT
80412019-04-22 Ali Tamur <tamur@google.com>
8042
8043 * MAINTAINERS (Write After Approval): Add self.
8044
d70cc3ba
SM
80452019-04-22 Simon Marchi <simon.marchi@efficios.com>
8046
8047 * solib-svr4.c (get_svr4_info): Add pspace parameter.
8048 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
8049 (open_symbol_file_object): Likewise.
8050 (svr4_default_sos): Add info parameter.
8051 (svr4_read_so_list): Likewise.
8052 (svr4_current_sos_direct): Adjust functions calls to pass down
8053 info.
8054 (svr4_current_sos_1): Add info parameter.
8055 (svr4_current_sos): Call get_svr4_info, pass info down to
8056 svr4_current_sos_1.
8057 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
8058 get_svr4_info.
8059 (svr4_in_dynsym_resolve_code): Pass current_program_space to
8060 get_svr4_info.
8061 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
8062 to get_svr4_info.
8063 (probes_table_remove_objfile_probes): Likewise.
8064 (register_solib_event_probe): Add info parameter.
8065 (solist_update_incremental): Pass info parameter down to
8066 svr4_read_so_list.
8067 (disable_probes_interface): Add info parameter.
8068 (svr4_handle_solib_event): Pass current_program_space to
8069 get_svr4_info. Adjust disable_probes_interface cleanup.
8070 (svr4_create_probe_breakpoints): Add info parameter, pass it
8071 down to register_solib_event_probe.
8072 (svr4_create_solib_event_breakpoints): Add info parameter,
8073 pass it down to svr4_create_probe_breakpoints.
8074 (enable_break): Pass info down to
8075 svr4_create_solib_event_breakpoints.
8076 (svr4_solib_create_inferior_hook): Pass current_program_space to
8077 get_svr4_info.
8078 (svr4_clear_solib): Likewise.
8079
7905fc35
PA
80802019-04-22 Pedro Alves <palves@redhat.com>
8081
8082 * solib-svr4.c (svr4_free_objfile_observer): New.
8083 (probe_and_action::objfile): New field.
8084 (probes_table_htab_remove_objfile_probes)
8085 (probes_table_remove_objfile_probes): New functions.
8086 (register_solib_event_probe): Add 'objfile' parameter. Store it
8087 in the new probe_and_action. Don't store the probe in 'lookup'.
8088 (svr4_create_probe_breakpoints): Pass objfile to
8089 register_solib_event_probe.
8090 (_initialize_svr4_solib): Register a free_objfile observer.
8091
fb881986
TT
80922019-04-19 Tom Tromey <tom@tromey.com>
8093
8094 * common/queue.h: Remove.
8095
8732db6c
TT
80962019-04-19 Tom Tromey <tom@tromey.com>
8097
8098 * event-loop.c: Don't include "common/queue.h".
8099
97dfbadd
TT
81002019-04-19 Tom Tromey <tom@tromey.com>
8101
8102 * remote.c (remote_target): Use delete.
8103 * remote-notif.h: Include <list>, not "common/queue.h".
8104 (notif_client_p): Remove typedef.
8105 (remote_notif_state): Add constructor, destructor, initializer.
8106 <notif_queue>: Now a std::list.
8107 (remote_notif_state_xfree): Don't declare.
8108 * remote-notif.c (remote_notif_process, handle_notification)
8109 (remote_notif_state_allocate): Update.
8110 (~remote_notif_state): Rename from remote_notif_state_xfree.
8111
cf250e36
TT
81122019-04-19 Tom Tromey <tom@tromey.com>
8113
8114 * symfile.c (reread_symbols): Update.
8115 * objfiles.c (objfile_register_static_link)
8116 (objfile_lookup_static_link): Update
8117 (~objfile) Don't delete static_links.
8118 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
8119
61f4b350
TT
81202019-04-19 Tom Tromey <tom@tromey.com>
8121
8122 * type-stack.h (struct type_stack) <insert>: Constify string.
8123 * type-stack.c (type_stack::insert): Constify string.
8124 * gdbtypes.h (lookup_template_type): Update.
8125 (address_space_name_to_int): Update.
8126 * gdbtypes.c (address_space_name_to_int): Make space_identifier
8127 const.
8128 (lookup_template_type): Make name const.
8129 * c-exp.y: Update rules.
8130 (lex_one_token, classify_name, classify_inner_name)
8131 (c_print_token): Update.
8132 * p-exp.y: Update rules.
8133 (yylex): Update.
8134 * f-exp.y: Update rules.
8135 (yylex): Update.
8136 * d-exp.y: Update rules.
8137 (lex_one_token, classify_name, classify_inner_name): Update.
8138 * parse.c (write_dollar_variable, copy_name): Return std::string.
8139 * parser-defs.h (copy_name): Change return type.
8140 * m2-exp.y: Update rules.
8141 (yylex): Update.
8142 * go-exp.y (lex_one_token): Update.
8143 Update rules.
8144 (classify_unsafe_function, classify_packaged_name)
8145 (classify_name, yylex): Update.
8146
189b8c2e
ST
81472019-04-19 Sergei Trofimovich <siarheit@google.com>
8148
8149 * configure.ac: add --enable-source-highlight switch.
8150 * configure: Regenerate.
8151 * top.c (print_gdb_version): plumb --enable-source-highlight
8152 status to "show configuration".
8153
8ecb59f8
TT
81542019-04-19 Tom Tromey <tromey@adacore.com>
8155
8156 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
8157 Check ADA_TYPE_P.
8158 (empty_record, ada_template_to_fixed_record_type_1)
8159 (template_to_static_fixed_type)
8160 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
8161 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
8162 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
8163 macros.
8164
62160ec9
TT
81652019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
8166
8167 PR symtab/24423:
8168 * source.c (print_source_lines_base): Advance "iter" when a
8169 control character is seen.
8170
f2ae8bc8
PW
81712019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8172
8173 * inferior.h (struct infcall_suspend_state_deleter):
8174 Catch exception in destructor to avoid crash.
8175
d563b953
PW
81762019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8177
8178 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
8179 close to the add_com "shell".
8180
dc34c897
TT
81812019-04-18 Tom Tromey <tromey@adacore.com>
8182
8183 * process-stratum-target.h (class process_stratum_target)
8184 <stratum>: Add "final".
8185
a12e5744
TT
81862019-04-17 Tom Tromey <tromey@adacore.com>
8187
8188 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
8189 against nullptr before use.
8190
a7e559cc
AH
81912019-04-17 Alan Hayward <alan.hayward@arm.com>
8192
8193 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
8194
c01660c6
AB
81952019-04-17 Jim Wilson <jimw@sifive.com>
8196 Andrew Burgess <andrew.burgess@embecosm.com>
8197
8198 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
8199 code read might fail, assume 4-byte breakpoint in that case.
8200
4aa866af
LS
82012019-04-15 Leszek Swirski <leszeks@google.com>
8202
8203 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
8204 rather than a hand-rolled POD check when checking for forced MEMORY
8205 classification.
8206
48574d91
AH
82072019-04-15 Alan Hayward <alan.hayward@arm.com>
8208
8209 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
8210 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
8211 function.
8212 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
8213 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
8214 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
8215 declaration.
8216
4da037ef
AH
82172019-04-15 Alan Hayward <alan.hayward@arm.com>
8218
8219 * aarch64-linux-nat.c
8220 (aarch64_linux_nat_target::thread_architecture): Add override.
8221 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
8222 each VQ.
8223
ccb8d7e8
AH
82242019-04-15 Alan Hayward <alan.hayward@arm.com>
8225
8226 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
8227
35add35e
AB
82282019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
8229
8230 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
8231 target types of size 96-bits, add some additional comments, and
8232 check that the builtin type we found was the correct size.
8233
51196bbc
EZ
82342019-04-12 Eli Zaretskii <eliz@gnu.org>
8235
8236 * utils.c (prompt_for_continue): Don't restore the styling at the
8237 end, as applied_style has the wrong value. This fixes styling in
8238 long lists of file names that are interrupted by the "Continue?"
8239 prompt.
8240
62253a61
AB
82412019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
8242
8243 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
8244 * c-lang.c (c_language_defn): Likewise.
8245 (cplus_language_defn): Likewise.
8246 (asm_language_defn): Likewise.
8247 (minimal_language_defn): Likewise.
8248 * d-lang.c (d_language_defn): Likewise.
8249 * f-lang.c (f_language_defn): Likewise.
8250 * go-lang.c (go_language_defn): Likewise.
8251 * language.c (unknown_language_defn): Likewise.
8252 (auto_language_defn): Likewise.
8253 * language.h (struct language_defn): Remove la_magic field.
8254 (LANG_MAGIC): Delete.
8255 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
8256 * objc-lang.c (objc_language_defn): Likewise.
8257 * opencl-lang.c (opencl_language_defn): Likewise.
8258 * p-lang.c (pascal_language_defn): Likewise.
8259 * rust-lang.c (rust_language_defn): Likewise.
8260
a9158a86
AB
82612019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8262
8263 * riscv-tdep.c (riscv_type_align): New function.
8264 (riscv_type_alignment): Delete.
8265 (riscv_arg_location): Use 'type_align'.
8266 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
8267
41077b66
AB
82682019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8269
8270 * gdbtypes.c (type_align): A struct with no non-static fields also
8271 has alignment of 1.
8272
9f0272f8
AB
82732019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8274
8275 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
8276 component to 0.
8277 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
8278 member.
8279 (riscv_struct_info::analyse): New implementation using new
8280 analyse_inner member function.
8281 (riscv_struct_info::field_offset): New member function.
8282 (riscv_struct_info::m_offsets): New member variable.
8283 (riscv_struct_info::analyse_inner): New private member function,
8284 takes the old implementation of riscv_struct_info::analyse but
8285 extended to track field offsets.
8286 (riscv_call_arg_struct): Update the struct folding special cases
8287 to handle cases where empty C++ structs, which are non-zero
8288 length, are found.
8289 (riscv_arg_location): Initialise the length of each location, a
8290 non-zero length now indicates the location is in use.
8291 (riscv_push_dummy_call): Allow for the first location having a
8292 non-zero offset when setting up arguments.
8293 (riscv_return_value): Likewise, but for return values.
8294
02cf60c7
TT
82952019-04-11 Tom Tromey <tromey@adacore.com>
8296
8297 * utils.c (internal_vproblem): Make "msg" const.
8298
68811f8f
AH
82992019-04-11 Alan Hayward <alan.hayward@arm.com>
8300
8301 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
8302 * trad-frame.c (trad_frame_reset_saved_regs): New function.
8303 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
8304 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
8305
3f52fdbc
KB
83062019-04-10 Kevin Buettner <kevinb@redhat.com>
8307
8308 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
8309 function.
8310 (fill_gregset): Call amd64_linux_collect_native_gregset instead
8311 of amd64_collect_native_gregset.
8312 (amd64_linux_nat_target::store_registers): Likewise.
8313
e9ad22ee
TT
83142019-04-10 Tom Tromey <tom@tromey.com>
8315
8316 * symtab.c (lookup_global_symbol_from_objfile)
8317 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
8318 * objfiles.h (class separate_debug_iterator): New.
8319 (class separate_debug_range): New.
8320 (struct objfile) <separate_debug_objfiles>: New method.
8321 (objfile_separate_debug_iterate): Don't declare.
8322 * objfiles.c (separate_debug_iterator::operator++): Rename from
8323 objfile_separate_debug_iterate.
8324 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
8325 iterator.
8326 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
8327 iterator.
8328
ee371134
TT
83292019-04-10 Tom Tromey <tom@tromey.com>
8330
8331 * symfile.c (reread_symbols): Remove old comment.
8332 * objfiles.c (free_all_objfiles): Fix a typo.
8333
bf227d61
TT
83342019-04-10 Tom Tromey <tom@tromey.com>
8335
8336 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
8337 * minsyms.c (lookup_minimal_symbol): Use foreach.
8338 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8339 (lookup_minimal_symbol_solib_trampoline): Likewise.
8340 * symfile.c (reread_symbols): Use foreach.
8341
8dc433a0
TT
83422019-04-09 Ivan Begert <ivanbegert@gmail.com>
8343 Tom Tromey <tromey@adacore.com>
8344
8345 PR rust/24414:
8346 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
8347 (rust_lex_int_test): Change "value" to be LONGEST.
8348 (rust_lex_tests): Add test for long integer literal.
8349
9ab8741a
TT
83502019-04-09 Tom Tromey <tromey@adacore.com>
8351
8352 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
8353 to bool.
8354 (extended_remote_target::attach): Update.
8355 (remote_target::remote_notice_new_inferior): Update.
8356 (remote_target::add_current_inferior_and_thread): Update.
8357 * inferior.c (exit_inferior_1): Use "false".
8358 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
8359
e242fd12
SM
83602019-04-09 Simon Marchi <simon.marchi@efficios.com>
8361
9ca1957f 8362 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
8363 the "start" command.
8364
2b0c8b01
KB
83652019-04-08 Kevin Buettner <kevinb@redhat.com>
8366
8367 * python/py-inferior.c (infpy_thread_from_thread_handle):
8368 Adjust comments to reflect renaming of thread_from_thread_handle
8369 to thread_from_handle. Adjust keywords. Fix type error message.
8370 (inferior_object_methods): Add thread_from_handle. Retain
8371 thread_from_thread_handle, but mark it as deprecated.
8372
50a82723
KB
83732019-04-08 Kevin Buettner <kevinb@redhat.com>
8374
8375 * gdbthread.h (find_thread_by_handle): Revise declaration.
8376 * thread.c (find_thread_by_handle): Likewise. Adjust
8377 implementation too.
8378 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
8379 support for buffer objects as handles.
8380
cf63b016
KB
83812019-04-08 Kevin Buettner <kevinb@redhat.com>
8382
8383 * python/py-infthread.c (thpy_thread_handle): New function.
8384 (thread_object_methods): Register thpy_thread_handle.
8385
3d6c6204
KB
83862019-04-08 Kevin Buettner <kevinb@redhat.com>
8387
8388 * gdbthread.h (thread_to_thread_handle): Declare.
8389 * thread.c (gdbtypes.h): Include.
8390 (thread_to_thread_handle): New function.
8391
8392 * target.h (struct target_ops): Add thread_info_to_thread_handle.
8393 (target_thread_info_to_thread_handle): Declare.
8394 * target.c (target_thread_info_to_thread_handle): New function.
8395 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
8396 * target-delegates.c: Regenerate.
8397
8398 * linux-thread-db.c (class thread_db_target): Add method
8399 thread_info_to_thread_handle.
8400 (thread_db_target::thread_info_to_thread_handle): Define.
8401 * remote.c (class remote_target): Add new method
8402 thread_info_to_thread_handle.
8403 (remote_target::thread_info_to_thread_handle): Define.
8404
56be6ea8
PA
84052019-04-08 Pedro Alves <palves@redhat.com>
8406
8407 * common/common-exceptions.c (throw_exception): Don't create
8408 named object to throw; throw directly.
8409 (throw_it): Likewise. Don't initialize gdb_exception::message
8410 here, with new; pass FMT and AP to the ctor instead.
8411 * common/common-exceptions.h: Include <string>.
8412 (gdb_exception::gdb_exception(enum return_reason, enum errors,
8413 const char *, va_list)): New ctor. Use std::make_shared.
8414 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
8415 errors)): Delete.
8416 (gdb_exception_error::gdb_exception_error(enum errors, const char
8417 *, va_list)): New.
8418 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
8419 Add assertion.
8420 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
8421 errors)): Delete.
8422 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
8423 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
8424 Add assertion.
8425
eedc3f4f
TT
84262019-04-08 Tom Tromey <tom@tromey.com>
8427
8428 * valops.c (value_rtti_indirect_type): Replace throw_exception
8429 with throw.
8430 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
8431 with throw.
8432 * thread.c (thr_try_catch_cmd): Replace throw_exception with
8433 throw.
8434 * target.c (target_translate_tls_address): Replace throw_exception
8435 with throw.
8436 * stack.c (frame_apply_command_count): Replace throw_exception
8437 with throw.
8438 * solib-spu.c (append_ocl_sos): Replace throw_exception with
8439 throw.
8440 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
8441 with throw.
8442 * rs6000-tdep.c (rs6000_frame_cache)
8443 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
8444 * remote.c: Replace throw_exception with throw.
8445 * record-full.c (record_full_message, record_full_wait_1)
8446 (record_full_restore): Replace throw_exception with throw.
8447 * record-btrace.c:
8448 (get_thread_current_frame_id, record_btrace_start_replaying)
8449 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
8450 (cmd_record_btrace_start): Replace throw_exception with throw.
8451 * parse.c (parse_exp_in_context_1): Replace throw_exception with
8452 throw.
8453 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
8454 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
8455 * linespec.c:
8456 (find_linespec_symbols): Replace throw_exception with throw.
8457 * infrun.c (displaced_step_prepare, resume): Replace
8458 throw_exception with throw.
8459 * infcmd.c (post_create_inferior): Replace throw_exception with
8460 throw.
8461 * inf-loop.c (inferior_event_handler): Replace throw_exception
8462 with throw.
8463 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
8464 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
8465 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
8466 (get_prev_frame_always, get_frame_pc_if_available)
8467 (get_frame_address_in_block_if_available, get_frame_language):
8468 Replace throw_exception with throw.
8469 * frame-unwind.c (frame_unwind_try_unwinder): Replace
8470 throw_exception with throw.
8471 * eval.c (fetch_subexp_value, evaluate_var_value)
8472 (evaluate_funcall, evaluate_subexp_standard): Replace
8473 throw_exception with throw.
8474 * dwarf2loc.c (call_site_find_chain)
8475 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
8476 Replace throw_exception with throw.
8477 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
8478 with throw.
8479 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
8480 throw.
8481 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
8482 * completer.c (complete_line_internal): Replace throw_exception
8483 with throw.
8484 * compile/compile-object-run.c (compile_object_run): Replace
8485 throw_exception with throw.
8486 * cli/cli-script.c (process_next_line): Replace throw_exception
8487 with throw.
8488 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
8489 (btrace_enable, btrace_maint_update_pt_packets): Replace
8490 throw_exception with throw.
8491 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
8492 throw_exception with throw.
8493 * break-catch-throw.c (re_set_exception_catchpoint): Replace
8494 throw_exception with throw.
8495 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
8496 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
8497 * aarch64-tdep.c (aarch64_make_prologue_cache)
8498 (aarch64_make_stub_cache): Replace throw_exception with throw.
8499
26003a20
TT
85002019-04-08 Tom Tromey <tom@tromey.com>
8501
8502 * common/common-exceptions.c (throw_exception): Rename from
8503 throw_exception_cxx. Remove old copy. Make argument const.
8504 (throw_it): Create and throw exception objects directly.
8505 * common/common-exceptions.h (throw_exception): Make argument
8506 const.
8507 (struct gdb_exception_error): Add constructor.
8508 (struct gdb_exception_quit): Add constructor.
8509
d272eb37
TT
85102019-04-08 Tom Tromey <tom@tromey.com>
8511
8512 * common/common-exceptions.h (exception_rethrow): Don't declare.
8513 (TRY_SJLJ): Update comment.
8514 (TRY, CATCH, END_CATCH): Remove.
8515 * common/common-exceptions.c (exception_rethrow): Remove.
8516
230d2906
TT
85172019-04-08 Tom Tromey <tom@tromey.com>
8518
8519 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
8520 Remove.
8521 (gdb_exception_error): Rename from
8522 gdb_exception_RETURN_MASK_ERROR.
8523 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
8524 (gdb_quit_bad_alloc): Update.
8525 * aarch64-tdep.c: Update.
8526 * ada-lang.c: Update.
8527 * ada-typeprint.c: Update.
8528 * ada-valprint.c: Update.
8529 * amd64-tdep.c: Update.
8530 * arch-utils.c: Update.
8531 * break-catch-throw.c: Update.
8532 * breakpoint.c: Update.
8533 * btrace.c: Update.
8534 * c-varobj.c: Update.
8535 * cli/cli-cmds.c: Update.
8536 * cli/cli-interp.c: Update.
8537 * cli/cli-script.c: Update.
8538 * common/common-exceptions.c: Update.
8539 * common/new-op.c: Update.
8540 * common/selftest.c: Update.
8541 * compile/compile-c-symbols.c: Update.
8542 * compile/compile-cplus-symbols.c: Update.
8543 * compile/compile-object-load.c: Update.
8544 * compile/compile-object-run.c: Update.
8545 * completer.c: Update.
8546 * corelow.c: Update.
8547 * cp-abi.c: Update.
8548 * cp-support.c: Update.
8549 * cp-valprint.c: Update.
8550 * darwin-nat.c: Update.
8551 * disasm-selftests.c: Update.
8552 * dtrace-probe.c: Update.
8553 * dwarf-index-cache.c: Update.
8554 * dwarf-index-write.c: Update.
8555 * dwarf2-frame-tailcall.c: Update.
8556 * dwarf2-frame.c: Update.
8557 * dwarf2loc.c: Update.
8558 * dwarf2read.c: Update.
8559 * eval.c: Update.
8560 * event-loop.c: Update.
8561 * event-top.c: Update.
8562 * exec.c: Update.
8563 * f-valprint.c: Update.
8564 * fbsd-tdep.c: Update.
8565 * frame-unwind.c: Update.
8566 * frame.c: Update.
8567 * gdbtypes.c: Update.
8568 * gnu-v3-abi.c: Update.
8569 * guile/guile-internal.h: Update.
8570 * guile/scm-block.c: Update.
8571 * guile/scm-breakpoint.c: Update.
8572 * guile/scm-cmd.c: Update.
8573 * guile/scm-disasm.c: Update.
8574 * guile/scm-frame.c: Update.
8575 * guile/scm-lazy-string.c: Update.
8576 * guile/scm-math.c: Update.
8577 * guile/scm-param.c: Update.
8578 * guile/scm-ports.c: Update.
8579 * guile/scm-pretty-print.c: Update.
8580 * guile/scm-symbol.c: Update.
8581 * guile/scm-symtab.c: Update.
8582 * guile/scm-type.c: Update.
8583 * guile/scm-value.c: Update.
8584 * i386-linux-tdep.c: Update.
8585 * i386-tdep.c: Update.
8586 * inf-loop.c: Update.
8587 * infcall.c: Update.
8588 * infcmd.c: Update.
8589 * infrun.c: Update.
8590 * jit.c: Update.
8591 * language.c: Update.
8592 * linespec.c: Update.
8593 * linux-fork.c: Update.
8594 * linux-nat.c: Update.
8595 * linux-tdep.c: Update.
8596 * linux-thread-db.c: Update.
8597 * main.c: Update.
8598 * mi/mi-cmd-break.c: Update.
8599 * mi/mi-cmd-stack.c: Update.
8600 * mi/mi-interp.c: Update.
8601 * mi/mi-main.c: Update.
8602 * objc-lang.c: Update.
8603 * p-valprint.c: Update.
8604 * parse.c: Update.
8605 * ppc-linux-tdep.c: Update.
8606 * printcmd.c: Update.
8607 * python/py-arch.c: Update.
8608 * python/py-breakpoint.c: Update.
8609 * python/py-cmd.c: Update.
8610 * python/py-finishbreakpoint.c: Update.
8611 * python/py-frame.c: Update.
8612 * python/py-framefilter.c: Update.
8613 * python/py-gdb-readline.c: Update.
8614 * python/py-inferior.c: Update.
8615 * python/py-infthread.c: Update.
8616 * python/py-lazy-string.c: Update.
8617 * python/py-linetable.c: Update.
8618 * python/py-objfile.c: Update.
8619 * python/py-param.c: Update.
8620 * python/py-prettyprint.c: Update.
8621 * python/py-progspace.c: Update.
8622 * python/py-record-btrace.c: Update.
8623 * python/py-record.c: Update.
8624 * python/py-symbol.c: Update.
8625 * python/py-type.c: Update.
8626 * python/py-unwind.c: Update.
8627 * python/py-utils.c: Update.
8628 * python/py-value.c: Update.
8629 * python/python.c: Update.
8630 * record-btrace.c: Update.
8631 * record-full.c: Update.
8632 * remote-fileio.c: Update.
8633 * remote.c: Update.
8634 * riscv-tdep.c: Update.
8635 * rs6000-aix-tdep.c: Update.
8636 * rs6000-tdep.c: Update.
8637 * rust-exp.y: Update.
8638 * rust-lang.c: Update.
8639 * s390-tdep.c: Update.
8640 * selftest-arch.c: Update.
8641 * solib-dsbt.c: Update.
8642 * solib-frv.c: Update.
8643 * solib-spu.c: Update.
8644 * solib-svr4.c: Update.
8645 * solib.c: Update.
8646 * sparc64-linux-tdep.c: Update.
8647 * stack.c: Update.
8648 * symfile-mem.c: Update.
8649 * symmisc.c: Update.
8650 * target.c: Update.
8651 * thread.c: Update.
8652 * top.c: Update.
8653 * tracefile-tfile.c: Update.
8654 * tui/tui.c: Update.
8655 * typeprint.c: Update.
8656 * unittests/cli-utils-selftests.c: Update.
8657 * unittests/parse-connection-spec-selftests.c: Update.
8658 * valops.c: Update.
8659 * valprint.c: Update.
8660 * value.c: Update.
8661 * varobj.c: Update.
8662 * windows-nat.c: Update.
8663 * x86-linux-nat.c: Update.
8664 * xml-support.c: Update.
8665
a70b8144
TT
86662019-04-08 Tom Tromey <tom@tromey.com>
8667
8668 * xml-support.c: Use C++ exception handling.
8669 * x86-linux-nat.c: Use C++ exception handling.
8670 * windows-nat.c: Use C++ exception handling.
8671 * varobj.c: Use C++ exception handling.
8672 * value.c: Use C++ exception handling.
8673 * valprint.c: Use C++ exception handling.
8674 * valops.c: Use C++ exception handling.
8675 * unittests/parse-connection-spec-selftests.c: Use C++ exception
8676 handling.
8677 * unittests/cli-utils-selftests.c: Use C++ exception handling.
8678 * typeprint.c: Use C++ exception handling.
8679 * tui/tui.c: Use C++ exception handling.
8680 * tracefile-tfile.c: Use C++ exception handling.
8681 * top.c: Use C++ exception handling.
8682 * thread.c: Use C++ exception handling.
8683 * target.c: Use C++ exception handling.
8684 * symmisc.c: Use C++ exception handling.
8685 * symfile-mem.c: Use C++ exception handling.
8686 * stack.c: Use C++ exception handling.
8687 * sparc64-linux-tdep.c: Use C++ exception handling.
8688 * solib.c: Use C++ exception handling.
8689 * solib-svr4.c: Use C++ exception handling.
8690 * solib-spu.c: Use C++ exception handling.
8691 * solib-frv.c: Use C++ exception handling.
8692 * solib-dsbt.c: Use C++ exception handling.
8693 * selftest-arch.c: Use C++ exception handling.
8694 * s390-tdep.c: Use C++ exception handling.
8695 * rust-lang.c: Use C++ exception handling.
8696 * rust-exp.y: Use C++ exception handling.
8697 * rs6000-tdep.c: Use C++ exception handling.
8698 * rs6000-aix-tdep.c: Use C++ exception handling.
8699 * riscv-tdep.c: Use C++ exception handling.
8700 * remote.c: Use C++ exception handling.
8701 * remote-fileio.c: Use C++ exception handling.
8702 * record-full.c: Use C++ exception handling.
8703 * record-btrace.c: Use C++ exception handling.
8704 * python/python.c: Use C++ exception handling.
8705 * python/py-value.c: Use C++ exception handling.
8706 * python/py-utils.c: Use C++ exception handling.
8707 * python/py-unwind.c: Use C++ exception handling.
8708 * python/py-type.c: Use C++ exception handling.
8709 * python/py-symbol.c: Use C++ exception handling.
8710 * python/py-record.c: Use C++ exception handling.
8711 * python/py-record-btrace.c: Use C++ exception handling.
8712 * python/py-progspace.c: Use C++ exception handling.
8713 * python/py-prettyprint.c: Use C++ exception handling.
8714 * python/py-param.c: Use C++ exception handling.
8715 * python/py-objfile.c: Use C++ exception handling.
8716 * python/py-linetable.c: Use C++ exception handling.
8717 * python/py-lazy-string.c: Use C++ exception handling.
8718 * python/py-infthread.c: Use C++ exception handling.
8719 * python/py-inferior.c: Use C++ exception handling.
8720 * python/py-gdb-readline.c: Use C++ exception handling.
8721 * python/py-framefilter.c: Use C++ exception handling.
8722 * python/py-frame.c: Use C++ exception handling.
8723 * python/py-finishbreakpoint.c: Use C++ exception handling.
8724 * python/py-cmd.c: Use C++ exception handling.
8725 * python/py-breakpoint.c: Use C++ exception handling.
8726 * python/py-arch.c: Use C++ exception handling.
8727 * printcmd.c: Use C++ exception handling.
8728 * ppc-linux-tdep.c: Use C++ exception handling.
8729 * parse.c: Use C++ exception handling.
8730 * p-valprint.c: Use C++ exception handling.
8731 * objc-lang.c: Use C++ exception handling.
8732 * mi/mi-main.c: Use C++ exception handling.
8733 * mi/mi-interp.c: Use C++ exception handling.
8734 * mi/mi-cmd-stack.c: Use C++ exception handling.
8735 * mi/mi-cmd-break.c: Use C++ exception handling.
8736 * main.c: Use C++ exception handling.
8737 * linux-thread-db.c: Use C++ exception handling.
8738 * linux-tdep.c: Use C++ exception handling.
8739 * linux-nat.c: Use C++ exception handling.
8740 * linux-fork.c: Use C++ exception handling.
8741 * linespec.c: Use C++ exception handling.
8742 * language.c: Use C++ exception handling.
8743 * jit.c: Use C++ exception handling.
8744 * infrun.c: Use C++ exception handling.
8745 * infcmd.c: Use C++ exception handling.
8746 * infcall.c: Use C++ exception handling.
8747 * inf-loop.c: Use C++ exception handling.
8748 * i386-tdep.c: Use C++ exception handling.
8749 * i386-linux-tdep.c: Use C++ exception handling.
8750 * guile/scm-value.c: Use C++ exception handling.
8751 * guile/scm-type.c: Use C++ exception handling.
8752 * guile/scm-symtab.c: Use C++ exception handling.
8753 * guile/scm-symbol.c: Use C++ exception handling.
8754 * guile/scm-pretty-print.c: Use C++ exception handling.
8755 * guile/scm-ports.c: Use C++ exception handling.
8756 * guile/scm-param.c: Use C++ exception handling.
8757 * guile/scm-math.c: Use C++ exception handling.
8758 * guile/scm-lazy-string.c: Use C++ exception handling.
8759 * guile/scm-frame.c: Use C++ exception handling.
8760 * guile/scm-disasm.c: Use C++ exception handling.
8761 * guile/scm-cmd.c: Use C++ exception handling.
8762 * guile/scm-breakpoint.c: Use C++ exception handling.
8763 * guile/scm-block.c: Use C++ exception handling.
8764 * guile/guile-internal.h: Use C++ exception handling.
8765 * gnu-v3-abi.c: Use C++ exception handling.
8766 * gdbtypes.c: Use C++ exception handling.
8767 * frame.c: Use C++ exception handling.
8768 * frame-unwind.c: Use C++ exception handling.
8769 * fbsd-tdep.c: Use C++ exception handling.
8770 * f-valprint.c: Use C++ exception handling.
8771 * exec.c: Use C++ exception handling.
8772 * event-top.c: Use C++ exception handling.
8773 * event-loop.c: Use C++ exception handling.
8774 * eval.c: Use C++ exception handling.
8775 * dwarf2read.c: Use C++ exception handling.
8776 * dwarf2loc.c: Use C++ exception handling.
8777 * dwarf2-frame.c: Use C++ exception handling.
8778 * dwarf2-frame-tailcall.c: Use C++ exception handling.
8779 * dwarf-index-write.c: Use C++ exception handling.
8780 * dwarf-index-cache.c: Use C++ exception handling.
8781 * dtrace-probe.c: Use C++ exception handling.
8782 * disasm-selftests.c: Use C++ exception handling.
8783 * darwin-nat.c: Use C++ exception handling.
8784 * cp-valprint.c: Use C++ exception handling.
8785 * cp-support.c: Use C++ exception handling.
8786 * cp-abi.c: Use C++ exception handling.
8787 * corelow.c: Use C++ exception handling.
8788 * completer.c: Use C++ exception handling.
8789 * compile/compile-object-run.c: Use C++ exception handling.
8790 * compile/compile-object-load.c: Use C++ exception handling.
8791 * compile/compile-cplus-symbols.c: Use C++ exception handling.
8792 * compile/compile-c-symbols.c: Use C++ exception handling.
8793 * common/selftest.c: Use C++ exception handling.
8794 * common/new-op.c: Use C++ exception handling.
8795 * cli/cli-script.c: Use C++ exception handling.
8796 * cli/cli-interp.c: Use C++ exception handling.
8797 * cli/cli-cmds.c: Use C++ exception handling.
8798 * c-varobj.c: Use C++ exception handling.
8799 * btrace.c: Use C++ exception handling.
8800 * breakpoint.c: Use C++ exception handling.
8801 * break-catch-throw.c: Use C++ exception handling.
8802 * arch-utils.c: Use C++ exception handling.
8803 * amd64-tdep.c: Use C++ exception handling.
8804 * ada-valprint.c: Use C++ exception handling.
8805 * ada-typeprint.c: Use C++ exception handling.
8806 * ada-lang.c: Use C++ exception handling.
8807 * aarch64-tdep.c: Use C++ exception handling.
8808
3d6e9d23
TT
88092019-04-08 Tom Tromey <tom@tromey.com>
8810
8811 * xml-support.c (gdb_xml_parser::parse): Update.
8812 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8813 * value.c (show_convenience): Update.
8814 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
8815 (test_parse_flags_qcs): Update.
8816 * thread.c (thr_try_catch_cmd): Update.
8817 * target.c (target_translate_tls_address): Update.
8818 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
8819 (info_frame_command_core, frame_apply_command_count): Update.
8820 * rust-exp.y (rust_lex_exception_test): Update.
8821 * riscv-tdep.c (riscv_print_one_register_info): Update.
8822 * remote.c (remote_target::enable_btrace): Update.
8823 * record-btrace.c (record_btrace_enable_warn): Update.
8824 * python/py-utils.c (gdbpy_convert_exception): Update.
8825 * printcmd.c (do_one_display, print_variable_and_value): Update.
8826 * mi/mi-main.c (mi_print_exception): Update.
8827 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
8828 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
8829 * linux-nat.c (linux_nat_target::attach): Update.
8830 * linux-fork.c (class scoped_switch_fork_info): Update.
8831 * infrun.c (displaced_step_prepare): Update.
8832 * infcall.c (call_function_by_hand_dummy): Update.
8833 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
8834 * gnu-v3-abi.c (print_one_vtable): Update.
8835 * frame.c (get_prev_frame_always): Update.
8836 * f-valprint.c (info_common_command_for_block): Update.
8837 * exec.c (try_open_exec_file): Update.
8838 * exceptions.c (print_exception, exception_print)
8839 (exception_fprintf, exception_print_same): Update.
8840 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
8841 * dwarf-index-cache.c (index_cache::store)
8842 (index_cache::lookup_gdb_index): Update.
8843 * darwin-nat.c (maybe_cache_shell): Update.
8844 * cp-valprint.c (cp_print_value_fields): Update.
8845 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
8846 (gcc_cplus_symbol_address): Update.
8847 * compile/compile-c-symbols.c (gcc_convert_symbol)
8848 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
8849 * common/selftest.c: Update.
8850 * common/common-exceptions.h (struct gdb_exception) <message>: Now
8851 a std::string.
8852 (exception_try_scope_entry, exception_try_scope_exit): Don't
8853 declare.
8854 (struct exception_try_scope): Remove.
8855 (TRY): Don't use exception_try_scope.
8856 (struct gdb_exception): Add constructor, operator=.
8857 <what>: New method.
8858 (struct gdb_exception_RETURN_MASK_ALL)
8859 (struct gdb_exception_RETURN_MASK_ERROR)
8860 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
8861 (struct gdb_quit_bad_alloc): Update.
8862 * common/common-exceptions.c (exception_none): Change
8863 initializer.
8864 (struct catcher) <state, exception>: Initialize inline.
8865 <prev>: Remove member.
8866 (current_catcher): Remove.
8867 (catchers): New global.
8868 (exceptions_state_mc_init): Simplify.
8869 (catcher_pop): Remove.
8870 (exceptions_state_mc, exceptions_state_mc_catch): Update.
8871 (try_scope_depth, exception_try_scope_entry)
8872 (exception_try_scope_exit): Remove.
8873 (throw_exception_sjlj): Update.
8874 (exception_messages, exception_messages_size): Remove.
8875 (throw_it): Simplify.
8876 (gdb_exception_sliced_copy): Remove.
8877 (throw_exception_cxx): Update.
8878 * cli/cli-script.c (script_from_file): Update.
8879 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
8880 Update.
8881 * ada-valprint.c (ada_val_print): Update.
8882 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
8883 (create_excep_cond_exprs): Update.
8884
c5c10118
TT
88852019-04-08 Tom Tromey <tom@tromey.com>
8886
8887 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
8888 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
8889 (TRY, CATCH, END_CATCH): Remove some definitions.
8890 * common/common-exceptions.c: Don't use GDB_XCPT.
8891 (catcher_list_size): Remove.
8892 (throw_exception, throw_it): Simplify.
8893
4de283e4
TT
88942019-04-05 Tom Tromey <tom@tromey.com>
8895
8896 Revert the header-sorting patch.
8897 * ft32-tdep.c: Revert.
8898 * frv-tdep.c: Revert.
8899 * frv-linux-tdep.c: Revert.
8900 * frame.c: Revert.
8901 * frame-unwind.c: Revert.
8902 * frame-base.c: Revert.
8903 * fork-child.c: Revert.
8904 * findvar.c: Revert.
8905 * findcmd.c: Revert.
8906 * filesystem.c: Revert.
8907 * filename-seen-cache.h: Revert.
8908 * filename-seen-cache.c: Revert.
8909 * fbsd-tdep.c: Revert.
8910 * fbsd-nat.h: Revert.
8911 * fbsd-nat.c: Revert.
8912 * f-valprint.c: Revert.
8913 * f-typeprint.c: Revert.
8914 * f-lang.c: Revert.
8915 * extension.h: Revert.
8916 * extension.c: Revert.
8917 * extension-priv.h: Revert.
8918 * expprint.c: Revert.
8919 * exec.h: Revert.
8920 * exec.c: Revert.
8921 * exceptions.c: Revert.
8922 * event-top.c: Revert.
8923 * event-loop.c: Revert.
8924 * eval.c: Revert.
8925 * elfread.c: Revert.
8926 * dwarf2read.h: Revert.
8927 * dwarf2read.c: Revert.
8928 * dwarf2loc.c: Revert.
8929 * dwarf2expr.h: Revert.
8930 * dwarf2expr.c: Revert.
8931 * dwarf2-frame.c: Revert.
8932 * dwarf2-frame-tailcall.c: Revert.
8933 * dwarf-index-write.h: Revert.
8934 * dwarf-index-write.c: Revert.
8935 * dwarf-index-common.c: Revert.
8936 * dwarf-index-cache.h: Revert.
8937 * dwarf-index-cache.c: Revert.
8938 * dummy-frame.c: Revert.
8939 * dtrace-probe.c: Revert.
8940 * disasm.h: Revert.
8941 * disasm.c: Revert.
8942 * disasm-selftests.c: Revert.
8943 * dictionary.c: Revert.
8944 * dicos-tdep.c: Revert.
8945 * demangle.c: Revert.
8946 * dcache.h: Revert.
8947 * dcache.c: Revert.
8948 * darwin-nat.h: Revert.
8949 * darwin-nat.c: Revert.
8950 * darwin-nat-info.c: Revert.
8951 * d-valprint.c: Revert.
8952 * d-namespace.c: Revert.
8953 * d-lang.c: Revert.
8954 * ctf.c: Revert.
8955 * csky-tdep.c: Revert.
8956 * csky-linux-tdep.c: Revert.
8957 * cris-tdep.c: Revert.
8958 * cris-linux-tdep.c: Revert.
8959 * cp-valprint.c: Revert.
8960 * cp-support.c: Revert.
8961 * cp-namespace.c: Revert.
8962 * cp-abi.c: Revert.
8963 * corelow.c: Revert.
8964 * corefile.c: Revert.
8965 * continuations.c: Revert.
8966 * completer.h: Revert.
8967 * completer.c: Revert.
8968 * complaints.c: Revert.
8969 * coffread.c: Revert.
8970 * coff-pe-read.c: Revert.
8971 * cli-out.h: Revert.
8972 * cli-out.c: Revert.
8973 * charset.c: Revert.
8974 * c-varobj.c: Revert.
8975 * c-valprint.c: Revert.
8976 * c-typeprint.c: Revert.
8977 * c-lang.c: Revert.
8978 * buildsym.c: Revert.
8979 * buildsym-legacy.c: Revert.
8980 * build-id.h: Revert.
8981 * build-id.c: Revert.
8982 * btrace.c: Revert.
8983 * bsd-uthread.c: Revert.
8984 * breakpoint.h: Revert.
8985 * breakpoint.c: Revert.
8986 * break-catch-throw.c: Revert.
8987 * break-catch-syscall.c: Revert.
8988 * break-catch-sig.c: Revert.
8989 * blockframe.c: Revert.
8990 * block.c: Revert.
8991 * bfin-tdep.c: Revert.
8992 * bfin-linux-tdep.c: Revert.
8993 * bfd-target.c: Revert.
8994 * bcache.c: Revert.
8995 * ax-general.c: Revert.
8996 * ax-gdb.h: Revert.
8997 * ax-gdb.c: Revert.
8998 * avr-tdep.c: Revert.
8999 * auxv.c: Revert.
9000 * auto-load.c: Revert.
9001 * arm-wince-tdep.c: Revert.
9002 * arm-tdep.c: Revert.
9003 * arm-symbian-tdep.c: Revert.
9004 * arm-pikeos-tdep.c: Revert.
9005 * arm-obsd-tdep.c: Revert.
9006 * arm-nbsd-tdep.c: Revert.
9007 * arm-nbsd-nat.c: Revert.
9008 * arm-linux-tdep.c: Revert.
9009 * arm-linux-nat.c: Revert.
9010 * arm-fbsd-tdep.c: Revert.
9011 * arm-fbsd-nat.c: Revert.
9012 * arm-bsd-tdep.c: Revert.
9013 * arch-utils.c: Revert.
9014 * arc-tdep.c: Revert.
9015 * arc-newlib-tdep.c: Revert.
9016 * annotate.h: Revert.
9017 * annotate.c: Revert.
9018 * amd64-windows-tdep.c: Revert.
9019 * amd64-windows-nat.c: Revert.
9020 * amd64-tdep.c: Revert.
9021 * amd64-sol2-tdep.c: Revert.
9022 * amd64-obsd-tdep.c: Revert.
9023 * amd64-obsd-nat.c: Revert.
9024 * amd64-nbsd-tdep.c: Revert.
9025 * amd64-nbsd-nat.c: Revert.
9026 * amd64-nat.c: Revert.
9027 * amd64-linux-tdep.c: Revert.
9028 * amd64-linux-nat.c: Revert.
9029 * amd64-fbsd-tdep.c: Revert.
9030 * amd64-fbsd-nat.c: Revert.
9031 * amd64-dicos-tdep.c: Revert.
9032 * amd64-darwin-tdep.c: Revert.
9033 * amd64-bsd-nat.c: Revert.
9034 * alpha-tdep.c: Revert.
9035 * alpha-obsd-tdep.c: Revert.
9036 * alpha-nbsd-tdep.c: Revert.
9037 * alpha-mdebug-tdep.c: Revert.
9038 * alpha-linux-tdep.c: Revert.
9039 * alpha-linux-nat.c: Revert.
9040 * alpha-bsd-tdep.c: Revert.
9041 * alpha-bsd-nat.c: Revert.
9042 * aix-thread.c: Revert.
9043 * agent.c: Revert.
9044 * addrmap.c: Revert.
9045 * ada-varobj.c: Revert.
9046 * ada-valprint.c: Revert.
9047 * ada-typeprint.c: Revert.
9048 * ada-tasks.c: Revert.
9049 * ada-lang.c: Revert.
9050 * aarch64-tdep.c: Revert.
9051 * aarch64-ravenscar-thread.c: Revert.
9052 * aarch64-newlib-tdep.c: Revert.
9053 * aarch64-linux-tdep.c: Revert.
9054 * aarch64-linux-nat.c: Revert.
9055 * aarch64-fbsd-tdep.c: Revert.
9056 * aarch64-fbsd-nat.c: Revert.
9057 * aarch32-linux-nat.c: Revert.
9058
d55e5aa6
TT
90592019-04-05 Tom Tromey <tom@tromey.com>
9060
9061 * ft32-tdep.c: Sort headers.
9062 * frv-tdep.c: Sort headers.
9063 * frv-linux-tdep.c: Sort headers.
9064 * frame.c: Sort headers.
9065 * frame-unwind.c: Sort headers.
9066 * frame-base.c: Sort headers.
9067 * fork-child.c: Sort headers.
9068 * findvar.c: Sort headers.
9069 * findcmd.c: Sort headers.
9070 * filesystem.c: Sort headers.
9071 * filename-seen-cache.h: Sort headers.
9072 * filename-seen-cache.c: Sort headers.
9073 * fbsd-tdep.c: Sort headers.
9074 * fbsd-nat.h: Sort headers.
9075 * fbsd-nat.c: Sort headers.
9076 * f-valprint.c: Sort headers.
9077 * f-typeprint.c: Sort headers.
9078 * f-lang.c: Sort headers.
9079 * extension.h: Sort headers.
9080 * extension.c: Sort headers.
9081 * extension-priv.h: Sort headers.
9082 * expprint.c: Sort headers.
9083 * exec.h: Sort headers.
9084 * exec.c: Sort headers.
9085 * exceptions.c: Sort headers.
9086 * event-top.c: Sort headers.
9087 * event-loop.c: Sort headers.
9088 * eval.c: Sort headers.
9089 * elfread.c: Sort headers.
9090 * dwarf2read.h: Sort headers.
9091 * dwarf2read.c: Sort headers.
9092 * dwarf2loc.c: Sort headers.
9093 * dwarf2expr.h: Sort headers.
9094 * dwarf2expr.c: Sort headers.
9095 * dwarf2-frame.c: Sort headers.
9096 * dwarf2-frame-tailcall.c: Sort headers.
9097 * dwarf-index-write.h: Sort headers.
9098 * dwarf-index-write.c: Sort headers.
9099 * dwarf-index-common.c: Sort headers.
9100 * dwarf-index-cache.h: Sort headers.
9101 * dwarf-index-cache.c: Sort headers.
9102 * dummy-frame.c: Sort headers.
9103 * dtrace-probe.c: Sort headers.
9104 * disasm.h: Sort headers.
9105 * disasm.c: Sort headers.
9106 * disasm-selftests.c: Sort headers.
9107 * dictionary.c: Sort headers.
9108 * dicos-tdep.c: Sort headers.
9109 * demangle.c: Sort headers.
9110 * dcache.h: Sort headers.
9111 * dcache.c: Sort headers.
9112 * darwin-nat.h: Sort headers.
9113 * darwin-nat.c: Sort headers.
9114 * darwin-nat-info.c: Sort headers.
9115 * d-valprint.c: Sort headers.
9116 * d-namespace.c: Sort headers.
9117 * d-lang.c: Sort headers.
9118 * ctf.c: Sort headers.
9119 * csky-tdep.c: Sort headers.
9120 * csky-linux-tdep.c: Sort headers.
9121 * cris-tdep.c: Sort headers.
9122 * cris-linux-tdep.c: Sort headers.
9123 * cp-valprint.c: Sort headers.
9124 * cp-support.c: Sort headers.
9125 * cp-namespace.c: Sort headers.
9126 * cp-abi.c: Sort headers.
9127 * corelow.c: Sort headers.
9128 * corefile.c: Sort headers.
9129 * continuations.c: Sort headers.
9130 * completer.h: Sort headers.
9131 * completer.c: Sort headers.
9132 * complaints.c: Sort headers.
9133 * coffread.c: Sort headers.
9134 * coff-pe-read.c: Sort headers.
9135 * cli-out.h: Sort headers.
9136 * cli-out.c: Sort headers.
9137 * charset.c: Sort headers.
9138 * c-varobj.c: Sort headers.
9139 * c-valprint.c: Sort headers.
9140 * c-typeprint.c: Sort headers.
9141 * c-lang.c: Sort headers.
9142 * buildsym.c: Sort headers.
9143 * buildsym-legacy.c: Sort headers.
9144 * build-id.h: Sort headers.
9145 * build-id.c: Sort headers.
9146 * btrace.c: Sort headers.
9147 * bsd-uthread.c: Sort headers.
9148 * breakpoint.h: Sort headers.
9149 * breakpoint.c: Sort headers.
9150 * break-catch-throw.c: Sort headers.
9151 * break-catch-syscall.c: Sort headers.
9152 * break-catch-sig.c: Sort headers.
9153 * blockframe.c: Sort headers.
9154 * block.c: Sort headers.
9155 * bfin-tdep.c: Sort headers.
9156 * bfin-linux-tdep.c: Sort headers.
9157 * bfd-target.c: Sort headers.
9158 * bcache.c: Sort headers.
9159 * ax-general.c: Sort headers.
9160 * ax-gdb.h: Sort headers.
9161 * ax-gdb.c: Sort headers.
9162 * avr-tdep.c: Sort headers.
9163 * auxv.c: Sort headers.
9164 * auto-load.c: Sort headers.
9165 * arm-wince-tdep.c: Sort headers.
9166 * arm-tdep.c: Sort headers.
9167 * arm-symbian-tdep.c: Sort headers.
9168 * arm-pikeos-tdep.c: Sort headers.
9169 * arm-obsd-tdep.c: Sort headers.
9170 * arm-nbsd-tdep.c: Sort headers.
9171 * arm-nbsd-nat.c: Sort headers.
9172 * arm-linux-tdep.c: Sort headers.
9173 * arm-linux-nat.c: Sort headers.
9174 * arm-fbsd-tdep.c: Sort headers.
9175 * arm-fbsd-nat.c: Sort headers.
9176 * arm-bsd-tdep.c: Sort headers.
9177 * arch-utils.c: Sort headers.
9178 * arc-tdep.c: Sort headers.
9179 * arc-newlib-tdep.c: Sort headers.
9180 * annotate.h: Sort headers.
9181 * annotate.c: Sort headers.
9182 * amd64-windows-tdep.c: Sort headers.
9183 * amd64-windows-nat.c: Sort headers.
9184 * amd64-tdep.c: Sort headers.
9185 * amd64-sol2-tdep.c: Sort headers.
9186 * amd64-obsd-tdep.c: Sort headers.
9187 * amd64-obsd-nat.c: Sort headers.
9188 * amd64-nbsd-tdep.c: Sort headers.
9189 * amd64-nbsd-nat.c: Sort headers.
9190 * amd64-nat.c: Sort headers.
9191 * amd64-linux-tdep.c: Sort headers.
9192 * amd64-linux-nat.c: Sort headers.
9193 * amd64-fbsd-tdep.c: Sort headers.
9194 * amd64-fbsd-nat.c: Sort headers.
9195 * amd64-dicos-tdep.c: Sort headers.
9196 * amd64-darwin-tdep.c: Sort headers.
9197 * amd64-bsd-nat.c: Sort headers.
9198 * alpha-tdep.c: Sort headers.
9199 * alpha-obsd-tdep.c: Sort headers.
9200 * alpha-nbsd-tdep.c: Sort headers.
9201 * alpha-mdebug-tdep.c: Sort headers.
9202 * alpha-linux-tdep.c: Sort headers.
9203 * alpha-linux-nat.c: Sort headers.
9204 * alpha-bsd-tdep.c: Sort headers.
9205 * alpha-bsd-nat.c: Sort headers.
9206 * aix-thread.c: Sort headers.
9207 * agent.c: Sort headers.
9208 * addrmap.c: Sort headers.
9209 * ada-varobj.c: Sort headers.
9210 * ada-valprint.c: Sort headers.
9211 * ada-typeprint.c: Sort headers.
9212 * ada-tasks.c: Sort headers.
9213 * ada-lang.c: Sort headers.
9214 * aarch64-tdep.c: Sort headers.
9215 * aarch64-ravenscar-thread.c: Sort headers.
9216 * aarch64-newlib-tdep.c: Sort headers.
9217 * aarch64-linux-tdep.c: Sort headers.
9218 * aarch64-linux-nat.c: Sort headers.
9219 * aarch64-fbsd-tdep.c: Sort headers.
9220 * aarch64-fbsd-nat.c: Sort headers.
9221 * aarch32-linux-nat.c: Sort headers.
9222
699bd4cf
TT
92232019-04-04 Tom Tromey <tom@tromey.com>
9224
9225 * varobj.c (varobj_create): Update.
9226 * rust-exp.y (struct rust_parser) <update_innermost_block,
9227 lookup_symbol>: New methods.
9228 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
9229 Rename.
9230 (rust_parser::rust_lookup_type)
9231 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9232 * printcmd.c (display_command, do_one_display): Update.
9233 * parser-defs.h (struct parser_state) <parser_state>: Add
9234 "tracker" parameter.
9235 (block_tracker): New member.
9236 (class innermost_block_tracker) <innermost_block_tracker>: Add
9237 "types" parameter.
9238 <reset>: Remove method.
9239 (innermost_block): Don't declare.
9240 (null_post_parser): Update.
9241 * parse.c (innermost_block): Remove global.
9242 (write_dollar_variable): Update.
9243 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
9244 Remove "tracker_types" parameter.
9245 (parse_expression): Add "tracker" parameter.
9246 (parse_expression_for_completion): Update.
9247 (null_post_parser): Add "tracker" parameter.
9248 * p-exp.y: Update rules.
9249 * m2-exp.y: Update rules.
9250 * language.h (struct language_defn) <la_post_parser>: Add
9251 "tracker" parameter.
9252 * go-exp.y: Update rules.
9253 * f-exp.y: Update rules.
9254 * expression.h (parse_expression, parse_exp_1): Add "tracker"
9255 parameter.
9256 * d-exp.y: Update rules.
9257 * c-exp.y: Update rules.
9258 * breakpoint.c (set_breakpoint_condition): Create an
9259 innermost_block_tracker.
9260 (watch_command_1): Likewise.
9261 * ada-lang.c (resolve): Add "tracker" parameter.
9262 (resolve_subexp): Likewise.
9263 * ada-exp.y (write_var_from_sym): Update.
9264
dac43e32
TT
92652019-04-04 Tom Tromey <tom@tromey.com>
9266
9267 * type-stack.h: New file.
9268 * type-stack.c: New file.
9269 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
9270 type-stack.h.
9271 (insert_into_type_stack, insert_type, push_type, push_type_int)
9272 (insert_type_address_space, pop_type, pop_type_int)
9273 (pop_typelist, pop_type_stack, append_type_stack)
9274 (push_type_stack, get_type_stack, push_typelist)
9275 (follow_type_instance_flags, follow_types): Don't declare.
9276 * parse.c (type_stack): Remove global.
9277 (parse_exp_in_context): Update.
9278 (insert_into_type_stack, insert_type, push_type, push_type_int)
9279 (insert_type_address_space, pop_type, pop_type_int)
9280 (pop_typelist, pop_type_stack, append_type_stack)
9281 (push_type_stack, get_type_stack, push_typelist)
9282 (follow_type_instance_flags, follow_types): Remove (moved to
9283 type-stack.c).
9284 * f-exp.y (type_stack): New global.
9285 Update rules.
9286 (push_kind_type, f_parse): Update.
9287 * d-exp.y (type_stack): New global.
9288 Update rules.
9289 (d_parse): Update.
9290 * c-exp.y (struct c_parse_state) <type_stack>: New member.
9291 Update rules.
9292 * Makefile.in (COMMON_SFILES): Add type-stack.c.
9293 (HFILES_NO_SRCDIR): Add type-stack.h.
9294
2a612529
TT
92952019-04-04 Tom Tromey <tom@tromey.com>
9296
9297 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
9298 (rust_parser::convert_ast_to_expression, rust_parse)
9299 (rust_lex_test_completion, rust_lex_tests): Update.
9300 * parser-defs.h (struct expr_completion_state): New.
9301 (struct parser_state) <parser_state>: Add completion parameter.
9302 <mark_struct_expression, mark_completion_tag>: New methods.
9303 <parse_completion, m_completion_state>: New members.
9304 (prefixify_expression, null_post_parser): Update.
9305 (mark_struct_expression, mark_completion_tag): Don't declare.
9306 * parse.c (parse_completion, expout_last_struct)
9307 (expout_tag_completion_type, expout_completion_name): Remove
9308 globals.
9309 (parser_state::mark_struct_expression)
9310 (parser_state::mark_completion_tag): Now methods.
9311 (prefixify_expression): Add last_struct parameter.
9312 (prefixify_subexp): Likewise.
9313 (parse_exp_1): Update.
9314 (parse_exp_in_context): Add cstate parameter. Update.
9315 (parse_expression_for_completion): Create an
9316 expr_completion_state.
9317 (null_post_parser): Add "completion" parameter.
9318 * p-exp.y: Update rules.
9319 (yylex): Update.
9320 * language.h (struct language_defn) <la_post_parser>: Add
9321 "completing" parameter.
9322 * go-exp.y: Update rules.
9323 (lex_one_token): Update.
9324 * expression.h (parse_completion): Don't declare.
9325 * d-exp.y: Update rules.
9326 (lex_one_token): Update rules.
9327 * c-exp.y: Update rules.
9328 (lex_one_token): Update.
9329 * ada-lang.c (resolve): Add "parse_completion" parameter.
9330 (resolve_subexp): Likewise.
9331 (ada_resolve_function): Likewise.
9332
43476f0b
TT
93332019-04-04 Tom Tromey <tom@tromey.com>
9334
9335 * parser-defs.h (struct parser_state) <start_arglist,
9336 end_arglist>: New methods.
9337 <arglist_len, m_funcall_chain>: New members.
9338 (arglist_len, start_arglist, end_arglist): Don't declare.
9339 * parse.c (arglist_len, funcall_chain): Remove global.
9340 (start_arglist, end_arglist): Remove functions.
9341 (parse_exp_in_context): Update.
9342 * p-exp.y: Update rules.
9343 * m2-exp.y: Update rules.
9344 * go-exp.y: Update rules.
9345 * f-exp.y: Update rules.
9346 * d-exp.y: Update rules.
9347 * c-exp.y: Update rules.
9348
5776fca3
TT
93492019-04-04 Tom Tromey <tom@tromey.com>
9350
9351 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
9352 lex_operator, push_back>: New methods.
9353 Update all rules.
9354 (rust_parser::lex_hex, lex_escape): Rename and update.
9355 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
9356 (rust_parser::lex_operator): Rename and update.
9357 (rust_parser::lex_number, rustyylex, rustyyerror)
9358 (rust_lex_test_init, rust_lex_test_sequence)
9359 (rust_lex_test_push_back, rust_lex_tests): Update.
9360 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
9361 parameter.
9362 <lexptr, prev_lexptr>: New members.
9363 (lexptr, prev_lexptr): Don't declare.
9364 * parse.c (lexptr, prev_lexptr): Remove globals.
9365 (parse_exp_in_context): Update.
9366 * p-exp.y (yylex, yyerror): Update.
9367 * m2-exp.y (parse_number, yylex, yyerror): Update.
9368 * go-exp.y (lex_one_token, yyerror): Update.
9369 * f-exp.y (match_string_literal, yylex, yyerror): Update.
9370 * d-exp.y (lex_one_token, yyerror): Update.
9371 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
9372 (lex_one_token, yyerror): Update.
9373 * ada-lex.l (YY_INPUT): Update.
9374 (rewind_to_char): Update.
9375 * ada-exp.y (yyerror): Update.
9376
8621b685
TT
93772019-04-04 Tom Tromey <tom@tromey.com>
9378
9379 * rust-exp.y (rustyylex, rust_lex_tests): Update.
9380 * parser-defs.h (struct parser_state) <parser_state>: Add new
9381 parameter.
9382 <comma_terminates>: New member.
9383 (comma_terminates): Don't declare global.
9384 * parse.c (comma_terminates): Remove global.
9385 (parse_exp_in_context): Update.
9386 * p-exp.y (yylex): Update.
9387 * m2-exp.y (yylex): Update.
9388 * go-exp.y (lex_one_token): Update.
9389 * f-exp.y (yylex): Update.
9390 * d-exp.y (lex_one_token): Update.
9391 * c-exp.y (lex_one_token): Update.
9392 * ada-lex.l: Update.
9393
28aaf3fd
TT
93942019-04-04 Tom Tromey <tom@tromey.com>
9395
9396 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
9397 (rustyylex, rust_lex_test_init, rust_lex_test_one)
9398 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
9399 * parser-defs.h (paren_depth): Don't declare.
9400 * parse.c (paren_depth): Remove global.
9401 (parse_exp_in_context): Update.
9402 * p-exp.y (paren_depth): New global.
9403 (pascal_parse): Initialize it.
9404 * m2-exp.y (paren_depth): New global.
9405 (m2_parse): Initialize it.
9406 * go-exp.y (paren_depth): New global.
9407 (go_parse): Initialize it.
9408 * f-exp.y (paren_depth): New global.
9409 (f_parse): Initialize it.
9410 * d-exp.y (paren_depth): New global.
9411 (d_parse): Initialize it.
9412 * c-exp.y (paren_depth): New global.
9413 (c_parse): Initialize it.
9414 * ada-lex.l (paren_depth): New global.
9415 (lexer_init): Initialize it.
9416
1e58a4a4
TT
94172019-04-04 Tom Tromey <tom@tromey.com>
9418
9419 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
9420 (rust_parser::convert_ast_to_type)
9421 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9422 * parser-defs.h (struct parser_state) <parser_state>: Add
9423 parameters. Initialize new members.
9424 <expression_context_block, expression_context_pc>: New members.
9425 * parse.c (expression_context_block, expression_context_pc):
9426 Remove globals.
9427 (parse_exp_in_context): Update.
9428 * p-exp.y: Update all rules.
9429 (yylex): Update.
9430 * m2-exp.y: Update all rules.
9431 (yylex): Update.
9432 * go-exp.y (yylex): Update.
9433 * f-exp.y (yylex): Update.
9434 * d-exp.y: Update all rules.
9435 (yylex): Update.
9436 * c-exp.y: Update all rules.
9437 (lex_one_token, classify_name, yylex, c_parse): Update.
9438 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
9439
37eedb39
TT
94402019-04-04 Tom Tromey <tom@tromey.com>
9441
9442 * gdbarch.h, gdbarch.c: Rebuild.
9443 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
9444 * stap-probe.h:
9445 (struct stap_parse_info): Replace "parser_state" with
9446 "expr_builder".
9447 * parser-defs.h (struct expr_builder): Rename from "parser_state".
9448 (parser_state): New class.
9449 * parse.c (expr_builder): Rename.
9450 (expr_builder::release): Rename.
9451 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
9452 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
9453 (write_exp_elt_longcst, write_exp_elt_floatcst)
9454 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
9455 (write_exp_string_vector, write_exp_bitstring)
9456 (write_exp_msymbol, mark_struct_expression)
9457 (write_dollar_variable)
9458 (insert_type_address_space, increase_expout_size): Replace
9459 "parser_state" with "expr_builder".
9460 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
9461 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
9462 "parser_state" with "expr_builder".
9463
73923d7e
TT
94642019-04-04 Tom Tromey <tom@tromey.com>
9465
9466 * rust-exp.y: Replace "parse_language" with method call.
9467 * p-exp.y:
9468 (yylex): Replace "parse_language" with method call.
9469 * m2-exp.y:
9470 (yylex): Replace "parse_language" with method call.
9471 * go-exp.y (classify_name): Replace "parse_language" with method
9472 call.
9473 * f-exp.y (yylex): Replace "parse_language" with method call.
9474 * d-exp.y (lex_one_token): Replace "parse_language" with method
9475 call.
9476 * c-exp.y:
9477 (lex_one_token, classify_name, yylex): Replace "parse_language"
9478 with method call.
9479 * ada-exp.y (find_primitive_type, type_char)
9480 (type_system_address): Replace "parse_language" with method call.
9481
fa9f5be6
TT
94822019-04-04 Tom Tromey <tom@tromey.com>
9483
9484 * rust-exp.y: Replace "parse_gdbarch" with method call.
9485 * parse.c (write_dollar_variable, insert_type_address_space):
9486 Replace "parse_gdbarch" with method call.
9487 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
9488 call.
9489 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
9490 call.
9491 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
9492 "parse_gdbarch" with method call.
9493 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
9494 with method call.
9495 * f-exp.y (parse_type, parse_f_type, yylex): Replace
9496 "parse_gdbarch" with method call.
9497 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
9498 "parse_gdbarch" with method call.
9499 * c-exp.y (parse_type, parse_number, classify_name): Replace
9500 "parse_gdbarch" with method call.
9501 * ada-lex.l: Replace "parse_gdbarch" with method call.
9502 * ada-exp.y (parse_type, find_primitive_type, type_char)
9503 (type_system_address): Replace "parse_gdbarch" with method call.
9504
1201a264
TT
95052019-04-04 Tom Tromey <tom@tromey.com>
9506
9507 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
9508 * stap-probe.c (stap_parse_argument): Update.
9509 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
9510 initial_size parameter.
9511 * rust-exp.y (rust_lex_tests): Update.
9512 * parse.c (parser_state): Update.
9513 (parse_exp_in_context): Update.
9514 * parser-defs.h (struct parser_state) <parser_state>: Remove
9515 "initial_size" parameter.
9516
e3980ce2
TT
95172019-04-04 Tom Tromey <tom@tromey.com>
9518
9519 * parser-defs.h (increase_expout_size): Don't declare.
9520 * parse.c (increase_expout_size): Now static.
9521
e9f8e3f1
TS
95222019-04-04 Thomas Schwinge <thomas@codesourcery.com>
9523
9524 * gnu-nat.c (gnu_nat_target::wait): Fix
9525 target_waitstatus_to_string call.
9526
d7df6549
AB
95272019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9528
9529 * eval.c (evaluate_subexp_standard): Handle internal functions
9530 during Fortran function call handling.
9531
8bdc1658
AB
95322019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9533
9534 * NEWS: Mention new internal functions.
9535 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
9536 (read_base_type): Use dwarf2_init_complex_target_type.
9537 * value.c (creal_internal_fn): New function.
9538 (cimag_internal_fn): New function.
9539 (_initialize_values): Register new internal functions.
9540
c29705b7
PW
95412019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9542
9543 * infrun.c (stop_all_threads): If debug_infrun, always
9544 trace the wait status after wait_one, using
9545 target_waitstatus_to_string and target_pid_to_str.
9546 (handle_inferior_event): Replace various trace of
9547 wait status kind by a single trace.
9548 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
9549 wait status kind image by target_waitstatus_to_string.
9550 * target/waitstatus.c (target_waitstatus_to_string): Fix
9551 obsolete comment.
9552
05caa1d2
TT
95532019-04-01 Tom Tromey <tromey@adacore.com>
9554
9555 PR symtab/23331:
9556 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
9557
9d1447e0
SDJ
95582019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
9559 Pedro Alves <palves@redhat.com>
9560
9561 * top.c (quit_force): Call 'finalize_values'.
9562 * value.c (finalize_values): New function.
9563 * value.h (finalize_values): Declare.
9564
7734102d
EZ
95652019-03-30 Eli Zaretskii <eliz@gnu.org>
9566
9567 * NEWS: Announce $_gdb_major and $_gdb_minor.
9568
9569 * top.c (init_gdb_version_vars): New function.
9570 (gdb_init): Call init_gdb_version_vars.
9571
188e1fa9
TT
95722019-03-29 Tom Tromey <tromey@adacore.com>
9573
9574 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
9575 help text. Remove dead code.
9576
2880242d
KS
95772019-03-29 Keith Seitz <keiths@redhat.com>
9578
9579 From Siddhesh Poyarekar:
9580 * f-lang.h (f77_get_upperbound): Return LONGEST.
9581 (f77_get_lowerbound): Likewise.
9582 * f-typeprint.c (f_type_print_varspec_suffix): Expand
9583 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
9584 print them.
9585 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
9586 plongest to format print it.
9587 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
9588 (f77_get_upperbound): Likewise.
9589 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
9590 LOWER_BOUND to LONGEST.
9591 (f77_create_arrayprint_offset_tbl): Likewise.
9592
cc1defb1
KS
95932019-03-29 Keith Seitz <keiths@redhat.com>
9594
9595 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
9596 %s/pulongest for TYPE_LENGTH instead of %d in format
9597 strings.
9598 * ada-typerint.c (ada_print_type): Likewise.
9599 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
9600 * compile/compile-c-support.c (generate_register_struct): Likewise.
9601 * gdbtypes.c (recursive_dump_type): Likewise.
9602 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
9603 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
9604 instead of %d in format strings.
9605 * riscv-tdep.c (riscv_type_alignment): Cast second argument
9606 to std::min to ULONGEST.
9607 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
9608 instead of %d in format strings.
9609 * tracepoint.c (info_scope_command): Likewise.
9610 * typeprint.c (print_offset_data::update)
9611 (print_offset_data::finish): Likewise.
9612 * xtensa-tdep.c (xtensa_store_return_value)
9613 (xtensa_push_dummy_call): Likewise.
9614
e432ccf1
JT
96152019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
9616
9617 * windows-nat.c (display_selector): Fixed format specifications
9618 for 64-bit Cygwin.
9619
65d2b333
PW
96202019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9621
9622 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
9623
f489207e
SL
96242019-03-28 Sandra Loosemore <sandra@codesourcery.com>
9625
9626 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
9627 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
9628 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
9629 (nios2_linux_init_abi): Install it.
9630
bffa1015
AH
96312019-03-28 Alan Hayward <alan.hayward@arm.com>
9632
9633 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
9634
fc96163a
AH
96352019-03-28 Alan Hayward <alan.hayward@arm.com>
9636
9637 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
9638
20dc7e9b
PW
96392019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9640 Tom Tromey <tromey@adacore.com>
9641
9642 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
9643
7f5331a8
JB
96442019-03-26 Joel Brobecker <brobecker@adacore.com>
9645
9646 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
9647 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
9648 method to compute the bounds of range types. Also print "[evaluated]"
9649 if the bounds' values come from a dynamic evaluation.
9650
18c77628
AB
96512019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
9652
9653 * cp-valprint.c (cp_print_value_fields): Don't print trailing
9654 whitespace when pretty printing is on.
9655
53c973f2
AH
96562019-03-26 Alan Hayward <alan.hayward@arm.com>
9657
e79be6e5 9658 * ppc-linux-nat.c: Add include.
53c973f2 9659
d851aa71
AH
96602019-03-26 Alan Hayward <alan.hayward@arm.com>
9661
e79be6e5 9662 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 9663
2fe7bab7
AH
96642019-03-26 Alan Hayward <alan.hayward@arm.com>
9665
e79be6e5 9666 * arm-linux-nat.c: Add include.
2fe7bab7 9667
068ef30e
SM
96682019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
9669
9670 * source-cache.c (source_cache::get_source_lines): Re-read
9671 fullname after calling open_source_file.
9672
81a24d04
JB
96732019-03-25 John Baldwin <jhb@FreeBSD.org>
9674
9675 * NEWS: Mention TLS support for FreeBSD.
9676
79e7ae11
TT
96772019-03-25 Tom Tromey <tromey@adacore.com>
9678
9679 * minsyms.c (BUNCH_SIZE): Update comment.
9680 (~minimal_symbol_reader): Remove old comment.
9681 (compact_minimal_symbols): Update comment.
9682 (minimal_symbol_reader::install): Remove old comment. Update
9683 other comments.
9684
d45963c2
AH
96852019-03-25 Alan Hayward <alan.hayward@arm.com>
9686
9687 * s390-linux-nat.c: Add include.
9688
0f83012e
AH
96892019-03-25 Alan Hayward <alan.hayward@arm.com>
9690
9691 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
9692 Call linux_get_hwcap.
9693 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
9694 Likewise.
9695 (aarch64_linux_get_hwcap): Remove function.
9696 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
9697 declaration.
9698 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
9699 linux_get_hwcap.
9700 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
9701 * linux-tdep.c (linux_get_hwcap): Add function.
9702 (linux_get_hwcap2): Likewise.
9703 * linux-tdep.h (linux_get_hwcap): Add declaration.
9704 (linux_get_hwcap2): Likewise.
9705 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
9706 (ppc_linux_get_hwcap2): Likewise.
9707 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
9708 linux_get_hwcap.
9709 (ppc_linux_nat_target::insert_watchpoint): Likewise.
9710 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
9711 (ppc_linux_nat_target::read_description): Likewise.
9712 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
9713 * s390-linux-nat.c: Likewise.
9714 * s390-linux-tdep.c (s390_core_read_description): Likewise.
9715
6640a367
TT
97162019-03-24 Tom Tromey <tom@tromey.com>
9717
9718 * ada-lang.c (standard_lookup): Simplify initialization.
9719 (ada_lookup_symbol_nonlocal): Simplify return.
9720 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
9721 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
9722 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
9723 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
9724 initialization.
9725 * solib.c (solib_global_lookup): Simplify.
9726 * symtab.c (null_block_symbol): Remove.
9727 (symbol_cache_lookup): Simplify returns.
9728 (lookup_language_this): Simplify returns.
9729 (lookup_symbol_aux): Simplify return.
9730 (lookup_local_symbol): Simplify returns.
9731 (lookup_global_symbol_from_objfile): Simplify return.
9732 (lookup_symbol_in_objfile_symtabs)
9733 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
9734 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
9735 (lookup_static_symbol, lookup_global_symbol): Simplify return.
9736 * cp-namespace.c (cp_lookup_bare_symbol)
9737 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
9738 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
9739 (cp_lookup_nested_symbol): Don't use null_block_symbol.
9740 (cp_lookup_symbol_via_imports): Simplify initialization.
9741 (find_symbol_in_baseclass): Likewise.
9742 * symtab.h (null_block_symbol): Remove.
9743 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
9744 (d_lookup_nested_symbol, d_lookup_symbol_imports)
9745 (d_lookup_symbol_module): Likewise.
9746 (find_symbol_in_baseclass): Simplify initialization.
9747
a930ebcd
TT
97482019-03-24 Tom Tromey <tom@tromey.com>
9749
9750 * expression.h: Don't include symtab.h.
9751 (struct block): Forward declare.
9752
582942f4
TT
97532019-03-24 Tom Tromey <tom@tromey.com>
9754
9755 * c-exp.y (typebase): Remove casts.
9756 * gdbtypes.c (lookup_unsigned_typename, )
9757 (lookup_signed_typename): Remove cast.
9758 * eval.c (parse_to_comma_and_eval): Remove cast.
9759 * parse.c (write_dollar_variable): Remove cast.
9760 * block.h (struct block) <superblock>: Now const.
9761 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
9762 * psymtab.c (psym_map_matching_symbols): Make "block" const.
9763 (map_block): Make "block" const.
9764 * symfile.h (struct quick_symbol_functions)
9765 <map_matching_symbols>: Constify block argument to "callback".
9766 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
9767 const.
9768 (find_pc_sect_compunit_symtab): Make "b" const.
9769 (find_symbol_at_address): Likewise.
9770 (search_symbols): Likewise.
9771 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
9772 (dw2_debug_names_lookup_symbol): Likewise.
9773 (dw2_map_matching_symbols): Update.
9774 * p-valprint.c (pascal_val_print): Remove "block".
9775 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
9776 (aux_add_nonlocal_symbols): Make "block" const.
9777 (resolve_subexp): Remove cast.
9778 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
9779 const.
9780 (iterate_over_file_blocks): Likewise.
9781 * f-exp.y (%union) <bval>: Remove.
9782 * coffread.c (patch_opaque_types): Make "b" const.
9783 * spu-tdep.c (spu_catch_start): Make "block" const.
9784 * c-valprint.c (print_unpacked_pointer): Remove "block".
9785 * symmisc.c (dump_symtab_1): Make "b" const.
9786 (block_depth): Make "block" const.
9787 * d-exp.y (%union) <bval>: Remove.
9788 * cp-support.h (cp_lookup_rtti_type): Update.
9789 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
9790 * psymtab.c (psym_lookup_symbol): Make "block" const.
9791 (maintenance_check_psymtabs): Make "b" const.
9792 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
9793 (enumerate_locals, enumerate_args): Update.
9794 * python/py-symtab.c (stpy_global_block): Make "block" const.
9795 (stpy_static_block): Likewise.
9796 * inline-frame.c (block_starting_point_at): Make "new_block"
9797 const.
9798 * block.c (find_block_in_blockvector): Make return type const.
9799 (blockvector_for_pc_sect): Make "b" const.
9800 (find_block_in_blockvector): Make "b" const.
9801
7ad417dd
TT
98022019-03-23 Tom Tromey <tom@tromey.com>
9803
9804 * varobj.c (varobj_create): Update.
9805 * symfile.c (clear_symtab_users): Don't reset innermost_block.
9806 * printcmd.c (display_command, do_one_display): Don't reset
9807 innermost_block.
9808 * parser-defs.h (enum innermost_block_tracker_type): Move to
9809 expression.h.
9810 (innermost_block): Update comment.
9811 * parse.c (parse_exp_1): Add tracker_types parameter.
9812 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
9813 tracker_types parameter. Reset innermost_block.
9814 (parse_exp_in_context): Remove.
9815 (parse_expression_for_completion): Update.
9816 * objfiles.c (~objfile): Don't reset expression_context_block or
9817 innermost_block.
9818 * expression.h (enum innermost_block_tracker_type): Move from
9819 parser-defs.h.
9820 (parse_exp_1): Add tracker_types parameter.
9821 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
9822 reset innermost_block.
9823
b366c208
TT
98242019-03-23 Tom Tromey <tom@tromey.com>
9825
9826 * objfiles.h: Include bcache.h.
9827
9bb9b2f9
TT
98282019-03-23 Tom Tromey <tom@tromey.com>
9829
9830 * linespec.c (get_current_search_block): Use
9831 scoped_restore_current_language.
9832 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
9833
59c28372
AH
98342019-03-22 Alan Hayward <alan.hayward@arm.com>
9835 Jiong Wang <jiong.wang@arm.com>
9836
9837 * aarch64-linux-tdep.c
9838 (aarch64_linux_iterate_over_regset_sections): Check for pauth
9839 section.
9840 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
9841
17e116a7
AH
98422019-03-22 Alan Hayward <alan.hayward@arm.com>
9843 Jiong Wang <jiong.wang@arm.com>
9844
9845 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
9846 instructions.
9847 (aarch64_analyze_prologue_test): Add PACIASP test.
9848 (aarch64_prologue_prev_register): Unmask PC value.
9849
11e1b75f
AH
98502019-03-22 Alan Hayward <alan.hayward@arm.com>
9851 Jiong Wang <jiong.wang@arm.com>
9852
9853 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
9854 (aarch64_dwarf2_prev_register): Unmask PC value.
9855 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
9856 (aarch64_execute_dwarf_cfa_vendor_op): Check for
9857 DW_CFA_AARCH64_negate_ra_state.
9858 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
9859
34dcc7cf
AH
98602019-03-22 Alan Hayward <alan.hayward@arm.com>
9861 Jiong Wang <jiong.wang@arm.com>
9862
9863 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
9864 registers.
9865 (aarch64_pseudo_register_name): Likewise.
9866 (aarch64_pseudo_register_type): Likewise.
9867 (aarch64_pseudo_register_reggroup_p): Likewise.
9868 (aarch64_gdbarch_init): Add pauth registers.
9869 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
9870 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
9871 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
9872 (struct gdbarch_tdep): Add regnum for ra_state.
9873
1ef53e6b
AH
98742019-03-22 Alan Hayward <alan.hayward@arm.com>
9875 Jiong Wang <jiong.wang@arm.com>
9876
9877 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
9878
76bed0fd
AH
98792019-03-22 Alan Hayward <alan.hayward@arm.com>
9880 Jiong Wang <jiong.wang@arm.com>
9881
9882 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
9883 function.
9884 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
9885 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
9886 (aarch64_gdbarch_init): Add puth registers.
9887 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
9888 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
9889 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
9890
ee4fbcfa
AH
98912019-03-22 Alan Hayward <alan.hayward@arm.com>
9892 Jiong Wang <jiong.wang@arm.com>
9893
9894 * aarch64-linux-nat.c
9895 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
9896 * aarch64-linux-tdep.c
9897 (aarch64_linux_core_read_description): Likewise.
9898 (aarch64_linux_get_hwcap): New function.
9899 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
9900 (aarch64_linux_get_hwcap): New declaration.
9901
6dc0ebde
AH
99022019-03-22 Alan Hayward <alan.hayward@arm.com>
9903 Jiong Wang <jiong.wang@arm.com>
9904
9905 * aarch64-linux-nat.c
9906 (aarch64_linux_nat_target::read_description): Add pauth param.
9907 * aarch64-linux-tdep.c
9908 (aarch64_linux_core_read_description): Likewise.
9909 * aarch64-tdep.c (struct target_desc): Add in pauth.
9910 (aarch64_read_description): Add pauth param.
9911 (aarch64_gdbarch_init): Likewise.
9912 * aarch64-tdep.h (aarch64_read_description): Likewise.
9913 * arch/aarch64.c (aarch64_create_target_description): Likewise.
9914 * arch/aarch64.h (aarch64_create_target_description): Likewise.
9915 * features/Makefile: Add new files.
9916 * features/aarch64-pauth.c: New file.
9917 * features/aarch64-pauth.xml: New file.
9918
595915c1
TT
99192019-03-20 Tom Tromey <tromey@adacore.com>
9920
9921 * infrun.c (handle_inferior_event): Rename from
9922 handle_inferior_event_1. Create a scoped_value_mark.
9923 (handle_inferior_event): Remove.
9924
4c7d57e7
TT
99252019-03-19 Tom Tromey <tromey@adacore.com>
9926
9927 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
9928 * infrun.h (print_stop_event): Add "displays" parameter.
9929 * infrun.c (print_stop_event): Add "displays" parameter.
9930
cb246234
PA
99312019-03-19 Pedro Alves <palves@redhat.com>
9932
9933 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
9934 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
9935 to -1. Fix TABs vs spaces.
9936 (tui_ui_out::tui_ui_out): Don't initialize fields here.
9937 * tui/tui-out.h (tui_ui_out) Add intro comments.
9938 <m_line, m_start_of_line>: In-class initialize, and add describing
9939 comment.
9940
3a0e45b2
AH
99412019-03-18 Alan Hayward <alan.hayward@arm.com>
9942
9943 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
9944 variable names.
9945 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
9946
5371b850
PA
99472019-03-18 Pedro Alves <palves@redhat.com>
9948 Eli Zaretskii <eliz@gnu.org>
9949
9950 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
9951 m_line and m_start_of_line.
9952
b17c4cd0
EZ
99532019-03-18 Eli Zaretskii <eliz@gnu.org>
9954
9955 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
9956 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
9957 it returns a newline. This fixes a regression in TU mode, whereby
9958 the next line is output on the same screen line as the user input.
9959
4bd56d18
TT
99602019-03-18 Tom Tromey <tromey@adacore.com>
9961
9962 * minsyms.c (minimal_symbol_reader::install): Remove call to
9963 obstack_blank.
9964
55c10aca
PA
99652019-03-18 Pedro Alves <palves@redhat.com>
9966
9967 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
9968 New globals.
9969 (apply_style): New, factored out from ...
9970 (apply_ansi_escape): ... this. Handle reverse video mode.
9971 (tui_set_reverse_mode): New function.
9972 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
9973 * tui/tui-winsource.c (tui_show_source_line): Use
9974 tui_set_reverse_mode instead of setting A_STANDOUT.
9975 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
9976 New setter methods.
9977
647bb750
HD
99782019-03-18 Hannes Domani <ssbssa@yahoo.de>
9979
9980 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
9981 Handle tabs.
9982
bff8c71f
TT
99832019-03-18 Tom Tromey <tromey@adacore.com>
9984
9985 * ada-lang.c (empty_array): Add "high" parameter.
9986 (ada_evaluate_subexp): Update.
9987
58785d98
ST
99882019-03-17 Sergei Trofimovich <siarheit@google.com>
9989
9990 * unittests/string_view-selftests.c: Define
9991 _initialize_string_view_selftests unconditionally.
9992
d4cbef22
ВМ
99932019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9994
9995 PR gdb/24350
9996 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
9997
fce4c071
ВМ
99982019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9999
10000 PR gdb/24351
10001 * windows-nat.c (display_selector): Fix format specifiers.
10002
f7f0a123
EZ
100032019-03-17 Eli Zaretskii <eliz@gnu.org>
10004
10005 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
10006 tui_refill_source_window instead of tui_refresh_win, to update the
10007 current execution line. This fixes redisplay of the current line
10008 when stepping through the code with "next" or "step".
10009
ab42892f
EZ
100102019-03-16 Eli Zaretskii <eliz@gnu.org>
10011
10012 * source-cache.c (source_cache::get_source_lines): Call
10013 find_source_lines to initialize s->nlines. This fixes vertical
10014 scrolling of TUI source window when the DOWN arrow is pressed.
10015
8d8c087f
PW
100162019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10017
10018 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
10019 linux-thread-db.c (_initialize_thread_db): Likewise.
10020
798e1c30
EZ
100212019-03-16 Eli Zaretskii <eliz@gnu.org>
10022
10023 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
10024 wclrtoeol in tui_show_source_line". This reverts changes made in
10025 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
10026
eefba3da
TT
100272019-03-15 Tom Tromey <tom@tromey.com>
10028
10029 * symtab.h (struct minimal_symbol): Derive from
10030 general_symbol_info.
10031 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
10032 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10033 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10034 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10035 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
10036 (MSYMBOL_SEARCH_NAME): Update.
10037 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
10038 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
10039 * minsyms.c (minimal_symbol_reader::record_full): Update.
10040
0de2420c
TT
100412019-03-15 Tom Tromey <tom@tromey.com>
10042
10043 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
10044
042d75e4
TT
100452019-03-15 Tom Tromey <tom@tromey.com>
10046
10047 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
10048 unique_xmalloc_ptr.
10049 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
10050 Update.
10051 * minsyms.c (lookup_minimal_symbol_by_pc_section)
10052 (build_minimal_symbol_hash_tables)
10053 (minimal_symbol_reader::install): Update.
10054
db92718b
TT
100552019-03-15 Tom Tromey <tom@tromey.com>
10056
10057 * symtab.c (create_demangled_names_hash): Update.
10058 (symbol_set_names): Update.
10059 * objfiles.h (struct objfile_per_bfd_storage)
10060 <demangled_names_hash>: Now an htab_up.
10061 * objfiles.c (objfile_per_bfd_storage): Simplify.
10062
d6797f46
TT
100632019-03-15 Tom Tromey <tom@tromey.com>
10064
10065 * objfiles.h (struct objfile_per_bfd_storage): Declare
10066 destructor.
10067 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
10068 New.
10069 (get_objfile_bfd_data): Use new. Don't initialize
10070 language_of_main.
10071 (free_objfile_per_bfd_storage): Remove.
10072 (objfile_bfd_data_free, objfile::~objfile): Use delete.
10073
741d7538
TT
100742019-03-15 Tom Tromey <tom@tromey.com>
10075
10076 * symfile.c (reread_symbols): Update.
10077 * objfiles.c (objfile::objfile): Update.
10078 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
10079 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
10080 comment.
10081 (minimal_symbol_reader::install): Update.
10082 (terminate_minimal_symbol_table): Remove.
10083 * jit.c (jit_object_close_impl): Update.
10084
788c80d1
TT
100852019-03-15 Tom Tromey <tom@tromey.com>
10086
10087 * minsyms.c (minimal_symbol_reader::record_full): Remove some
10088 initializations.
10089
1b7a07cb
TT
100902019-03-15 Tom Tromey <tom@tromey.com>
10091
10092 * objfiles.h (struct objfile_per_bfd_storage)
10093 <demangled_hash_languages>: Now a bitset.
10094 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
10095 (lookup_minimal_symbol): Update.
10096
3db066bc
TT
100972019-03-15 Tom Tromey <tom@tromey.com>
10098
10099 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
10100 Don't return the symbol.
10101 * coffread.c (record_minimal_symbol): Use record_full.
10102
3fff2c37
EZ
101032019-03-14 Eli Zaretskii <eliz@gnu.org>
10104
10105 The MS-Windows port of ncurses fails to switch to a color pair if
10106 one or both of the colors are the implicit default colors. This
10107 change records the default colors when TUI is initialized, and
10108 then specifies them explicitly when a color pair uses the default
10109 colors. This allows color styling in TUI mode on MS-Windows.
10110
10111 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
10112 ncurses_norm_attr.
10113 (tui_initialize_io) [__MINGW32__]: Record the default terminal
10114 colors in ncurses_norm_attr.
10115 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
10116 "none", replace it with the default color recorded in
10117 ncurses_norm_attr.
10118
3b336828
TT
101192019-03-14 Tom Tromey <tromey@adacore.com>
10120
10121 * source-cache.h (class source_cache) <get_source_lines>: Return
10122 std::string.
10123 * source-cache.c (source_cache::extract_lines): Handle case where
10124 first_pos==npos. Return std::string.
10125 (source_cache::get_source_lines): Update.
10126
d085f989
TT
101272019-03-14 Tom Tromey <tromey@adacore.com>
10128
10129 * NEWS: Add item for "style sources" commands.
10130 * source-cache.c (source_cache::get_source_lines): Check
10131 source_styling.
10132 * cli/cli-style.c (source_styling): New global.
10133 (_initialize_cli_style): Add "style sources" commands.
10134 (show_style_sources): New function.
10135 * cli/cli-style.h (source_styling): Declare.
10136
6f11e682
TT
101372019-03-14 Pedro Alves <palves@redhat.com>
10138 Tom Tromey <tromey@adacore.com>
10139
10140 * tui/tui-winsource.h (tui_refill_source_window): Declare.
10141 * tui/tui-winsource.c (tui_refill_source_window): New function,
10142 from...
10143 (tui_horizontal_source_scroll): ... here. Move some logic.
10144 * cli/cli-style.c (set_style_enabled): Notify new observable.
10145 * tui/tui-hooks.c (tui_redisplay_source): New function.
10146 (tui_attach_detach_observers): Attach or detach
10147 tui_redisplay_source.
10148 * observable.h (source_styling_changed): New observable.
10149 * observable.c: Define source_styling_changed observable.
10150
a068643d
TT
101512019-03-13 Tom Tromey <tromey@adacore.com>
10152
10153 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
10154 (i386_gnu_nat_target::store_registers): Update.
10155 * target-debug.h (target_debug_print_std_string): New macro.
10156 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10157 * windows-tdep.c (display_one_tib): Update.
10158 * tui/tui-stack.c (tui_make_status_line): Update.
10159 * top.c (print_inferior_quit_action): Update.
10160 * thread.c (thr_try_catch_cmd): Update.
10161 (add_thread_with_info): Update.
10162 (thread_target_id_str): Update.
10163 (thr_try_catch_cmd): Update.
10164 (thread_command): Update.
10165 (thread_find_command): Update.
10166 * record-btrace.c (record_btrace_target::info_record)
10167 (record_btrace_resume_thread, record_btrace_target::resume)
10168 (record_btrace_cancel_resume, record_btrace_step_thread)
10169 (record_btrace_target::wait, record_btrace_target::wait)
10170 (record_btrace_target::wait, record_btrace_target::stop): Update.
10171 * progspace.c (print_program_space): Update.
10172 * process-stratum-target.c
10173 (process_stratum_target::thread_address_space): Update.
10174 * linux-fork.c (linux_fork_mourn_inferior)
10175 (detach_checkpoint_command, info_checkpoints_command)
10176 (linux_fork_context): Update.
10177 (linux_fork_detach): Update.
10178 (class scoped_switch_fork_info): Update.
10179 (delete_checkpoint_command): Update.
10180 * infrun.c (follow_fork_inferior): Update.
10181 (follow_fork_inferior): Update.
10182 (proceed_after_vfork_done): Update.
10183 (handle_vfork_child_exec_or_exit): Update.
10184 (follow_exec): Update.
10185 (displaced_step_prepare_throw): Update.
10186 (displaced_step_restore): Update.
10187 (start_step_over): Update.
10188 (resume_1): Update.
10189 (clear_proceed_status_thread): Update.
10190 (proceed): Update.
10191 (print_target_wait_results): Update.
10192 (do_target_wait): Update.
10193 (context_switch): Update.
10194 (stop_all_threads): Update.
10195 (restart_threads): Update.
10196 (finish_step_over): Update.
10197 (handle_signal_stop): Update.
10198 (switch_back_to_stepped_thread): Update.
10199 (keep_going_pass_signal): Update.
10200 (print_exited_reason): Update.
10201 (normal_stop): Update.
10202 * inferior.c (inferior_pid_to_str): Change return type.
10203 (print_selected_inferior): Update.
10204 (add_inferior): Update.
10205 (detach_inferior): Update.
10206 * dummy-frame.c (fprint_dummy_frames): Update.
10207 * dcache.c (dcache_info_1): Update.
10208 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
10209 (btrace_fetch, btrace_clear): Update.
10210 * linux-tdep.c (linux_core_pid_to_str): Change return type.
10211 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
10212 type.
10213 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
10214 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
10215 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
10216 * gdbarch.c, gdbarch.h: Rebuild.
10217 * gdbarch.sh (core_pid_to_str): Change return type.
10218 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
10219 return type.
10220 (windows_nat_target::pid_to_str): Change return type.
10221 (windows_delete_thread): Update.
10222 (windows_nat_target::attach): Update.
10223 (windows_nat_target::files_info): Update.
10224 * target-delegates.c: Rebuild.
10225 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
10226 return type.
10227 (sol_thread_target::pid_to_str): Change return type.
10228 * remote.c (class remote_target) <pid_to_str>: Change return
10229 type.
10230 (remote_target::pid_to_str): Change return type.
10231 (extended_remote_target::attach, remote_target::remote_stop_ns)
10232 (remote_target::remote_notif_remove_queued_reply)
10233 (remote_target::push_stop_reply, remote_target::disable_btrace):
10234 Update.
10235 (extended_remote_target::attach): Update.
10236 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
10237 type.
10238 (gdbsim_target::pid_to_str): Change return type.
10239 * ravenscar-thread.c (struct ravenscar_thread_target)
10240 <pid_to_str>: Change return type.
10241 (ravenscar_thread_target::pid_to_str): Change return type.
10242 * procfs.c (class procfs_target) <pid_to_str>: Change return
10243 type.
10244 (procfs_target::pid_to_str): Change return type.
10245 (procfs_target::attach): Update.
10246 (procfs_target::detach): Update.
10247 (procfs_target::fetch_registers): Update.
10248 (procfs_target::store_registers): Update.
10249 (procfs_target::wait): Update.
10250 (procfs_target::files_info): Update.
10251 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
10252 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
10253 return type.
10254 (nto_procfs_target::pid_to_str): Change return type.
10255 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
10256 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
10257 return type.
10258 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
10259 (exit_lwp): Update.
10260 (attach_proc_task_lwp_callback, get_detach_signal)
10261 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
10262 (linux_nat_target::resume, wait_lwp, stop_callback)
10263 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
10264 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
10265 (linux_nat_wait_1, resume_stopped_resumed_lwps)
10266 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
10267 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
10268 type.
10269 (inf_ptrace_target::attach): Update.
10270 (inf_ptrace_target::files_info): Update.
10271 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
10272 type.
10273 (go32_nat_target::pid_to_str): Change return type.
10274 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
10275 (gnu_nat_target::wait): Update.
10276 (gnu_nat_target::wait): Update.
10277 (gnu_nat_target::resume): Update.
10278 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
10279 (fbsd_nat_target::wait): Update.
10280 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
10281 type.
10282 (darwin_nat_target::attach): Update.
10283 * corelow.c (class core_target) <pid_to_str>: Change return type.
10284 (core_target::pid_to_str): Change return type.
10285 * target.c (normal_pid_to_str): Change return type.
10286 (default_pid_to_str): Likewise.
10287 (target_pid_to_str): Change return type.
10288 (target_translate_tls_address): Update.
10289 (target_announce_detach): Update.
10290 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
10291 return type.
10292 (bsd_uthread_target::pid_to_str): Change return type.
10293 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
10294 type.
10295 (bsd_kvm_target::pid_to_str): Change return type.
10296 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
10297 return type.
10298 (aix_thread_target::pid_to_str): Change return type.
10299 * target.h (struct target_ops) <pid_to_str>: Change return type.
10300 (target_pid_to_str, normal_pid_to_str): Likewise.
10301 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
10302 type.
10303 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
10304 type.
10305 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
10306 return type.
10307 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
10308 type.
10309 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
10310 type.
10311 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
10312 return type.
10313
b4be1b06
SM
103142019-03-13 Simon Marchi <simon.marchi@ericsson.com>
10315
10316 * NEWS: Mention that the new default MI version is 3. Mention
10317 changes to the output of commands and events that deal with
10318 multi-location breakpoints.
10319 * breakpoint.c: Include "mi/mi-out.h".
10320 (print_one_breakpoint): Change output syntax if using MI version
10321 >= 3.
10322 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
10323 New.
10324 (mi_multi_location_breakpoint_output_fixed): New.
10325 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
10326 (mi_cmd_fix_multi_location_breakpoint_output): New.
10327 (mi_multi_location_breakpoint_output_fixed): New.
10328 * mi/mi-cmds.c (mi_cmds): Register command
10329 -fix-multi-location-breakpoint-output.
10330 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
10331 interpreter "mi".
10332
8e5e5494
SM
103332019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10334
10335 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
10336 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
10337 instantiate mi_ui_out based on interpreter name.
10338 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
10339 * mi/mi-main.c (mi_load_progress): Likewise.
10340
197df35e
JB
103412019-03-12 John Baldwin <jhb@FreeBSD.org>
10342
10343 * NEWS: Combine separate "New targets" sections for 8.3.
10344
8399425f
JB
103452019-03-12 John Baldwin <jhb@FreeBSD.org>
10346
10347 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
10348 (ppcfbsd_init_abi): Install gdbarch
10349 "fetch_tls_load_module_address" and "get_thread_local_address"
10350 methods.
10351
b0f87ed0
JB
103522019-03-12 John Baldwin <jhb@FreeBSD.org>
10353
10354 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
10355 (riscv_fbsd_init_abi): Install gdbarch
10356 "fetch_tls_load_module_address" and "get_thread_local_address"
10357 methods.
10358
ce25aa57
JB
103592019-03-12 John Baldwin <jhb@FreeBSD.org>
10360
10361 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
10362 (i386fbsd_init_abi): Install gdbarch
10363 "fetch_tls_load_module_address" and "get_thread_local_address"
10364 methods.
10365
f5424cfa
JB
103662019-03-12 John Baldwin <jhb@FreeBSD.org>
10367
10368 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
10369 (amd64fbsd_init_abi): Install gdbarch
10370 "fetch_tls_load_module_address" and "get_thread_local_address"
10371 methods.
10372
945f3901
JB
103732019-03-12 John Baldwin <jhb@FreeBSD.org>
10374
10375 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
10376 (struct fbsd_pspace_data): New type.
10377 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
10378 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
10379 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
10380 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
10381 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
10382
ef0bd204
JB
103832019-03-12 John Baldwin <jhb@FreeBSD.org>
10384
10385 * gdbtypes.c (lookup_struct_elt): New function.
10386 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
10387 * gdbtypes.h (struct struct_elt): New type.
10388 (lookup_struct_elt): New prototype.
10389
36c53a02
JB
103902019-03-12 John Baldwin <jhb@FreeBSD.org>
10391
10392 * gdbtypes.c (lookup_struct_elt_type): Update comment and
10393 remove disabled code block.
10394
6e056c81
JB
103952019-03-12 John Baldwin <jhb@FreeBSD.org>
10396
10397 * gdbarch.sh (get_thread_local_address): New method.
10398 * gdbarch.h, gdbarch.c: Regenerate.
10399 * target.c (target_translate_tls_address): Use
10400 gdbarch_get_thread_local_address if present instead of
10401 target::get_thread_local_address.
10402
cd250a18
JB
104032019-03-12 John Baldwin <jhb@FreeBSD.org>
10404
10405 * target.h (target::get_thread_local_address): Update comment.
10406
df22c1e5
JB
104072019-03-12 John Baldwin <jhb@FreeBSD.org>
10408
10409 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
10410 objfile->separate_debug_objfile_backlink if not NULL.
10411
dd6876c9
JB
104122019-03-12 John Baldwin <jhb@FreeBSD.org>
10413
10414 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10415 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
10416 (amd64bsd_store_inferior_registers): Likewise.
10417 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10418 Enable segment base registers.
10419 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
10420 PT_GETFSBASE and PT_GETGSBASE.
10421 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
10422 PT_SETGSBASE.
10423 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
10424 segment base registers.
10425 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10426
1163a4b7
JB
104272019-03-12 John Baldwin <jhb@FreeBSD.org>
10428
10429 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10430 Update calls to i386_target_description to add 'segments'
10431 parameter.
10432 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
10433 add segment base registers.
10434 * arch/i386.c (i386_create_target_description): Add 'segments'
10435 parameter to enable segment base registers.
10436 * arch/i386.h (i386_create_target_description): Likewise.
10437 * features/i386/32bit-segments.xml: New file.
10438 * features/i386/32bit-segments.c: Generate.
10439 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
10440 call to i386_target_description to add 'segments' parameter.
10441 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10442 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
10443 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
10444 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
10445 if feature is present.
10446 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
10447 Add 'segments' parameter to call to i386_target_description.
10448 (i386_target_description): Add 'segments' parameter to enable
10449 segment base registers.
10450 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
10451 to call to i386_target_description.
10452 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
10453 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
10454 Define I386_NUM_REGS.
10455 (i386_target_description): Add 'segments' parameter to enable
10456 segment base registers.
10457
3a350822
EZ
104582019-03-12 Eli Zaretskii <eliz@gnu.org>
10459
10460 PR/24325
10461 * source-cache.c: #undef open and close, to avoid unresolved
10462 externals during linking.
10463
ffdd69cf
TT
104642019-03-12 Tom Tromey <tromey@adacore.com>
10465
10466 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
10467 const. Add initializers.
10468 (_initialize_remote): Don't initialize ptid globals.
10469
ec148c57
PA
104702019-03-12 Pedro Alves <palves@redhat.com>
10471
10472 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
10473
32764270
PA
104742019-03-12 Pedro Alves <palves@redhat.com>
10475
10476 * cp-name-parser.y (main): Remove unused 'len' variable.
10477
17547186
TT
104782019-03-12 Tom Tromey <tromey@adacore.com>
10479
10480 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
10481 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
10482
d3a70e03
TT
104832019-03-12 Tom Tromey <tromey@adacore.com>
10484
10485 * linux-nat.c (iterate_over_lwps): Update.
10486 (stop_callback): Remove parameter.
10487 (stop_wait_callback, detach_callback, resume_set_callback)
10488 (select_singlestep_lwp_callback, set_ignore_sigint)
10489 (status_callback, resumed_callback, resume_clear_callback)
10490 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
10491 data parameter.
10492 (linux_nat_target::detach, linux_nat_target::resume)
10493 (linux_stop_and_wait_all_lwps, select_event_lwp)
10494 (linux_nat_filter_event, linux_nat_wait_1)
10495 (linux_nat_target::kill, linux_nat_target::stop)
10496 (linux_nat_target::stop): Update.
10497 (linux_nat_resume_callback): Change type.
10498 (resume_stopped_resumed_lwps, count_events_callback)
10499 (select_event_lwp_callback): Likewise.
10500 (linux_stop_lwp, linux_nat_stop_lwp): Update.
10501 * arm-linux-nat.c (struct update_registers_data): Remove.
10502 (update_registers_callback): Change type.
10503 (arm_linux_insert_hw_breakpoint1): Update.
10504 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
10505 parameter.
10506 (x86_linux_dr_set_addr): Update.
10507 (x86_linux_dr_set_control): Update.
10508 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
10509 (iterate_over_lwps): Use gdb::function_view.
10510 * nat/aarch64-linux-hw-point.c (struct
10511 aarch64_dr_update_callback_param): Remove.
10512 (debug_reg_change_callback): Change type.
10513 (aarch64_notify_debug_reg_change): Update.
10514 * s390-linux-nat.c (s390_refresh_per_info): Update.
10515
82cb27ff
TT
105162019-03-11 Tom Tromey <tromey@adacore.com>
10517
10518 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
10519 redundant assignment to "this_cu".
10520
568c0683
SM
105212019-03-08 Simon Marchi <simon.marchi@efficios.com>
10522
10523 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
10524
f09ce22d
SM
105252019-03-08 Simon Marchi <simon.marchi@efficios.com>
10526
10527 * gdbtypes.c (rank_one_type_parm_set): New function extracted
10528 from...
10529 (rank_one_type): ... this.
10530
595f96a9
SM
105312019-03-08 Simon Marchi <simon.marchi@efficios.com>
10532
10533 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
10534 from...
10535 (rank_one_type): ... this.
10536
2598a94b
SM
105372019-03-08 Simon Marchi <simon.marchi@efficios.com>
10538
10539 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
10540 from...
10541 (rank_one_type): ... this.
10542
7f17b20d
SM
105432019-03-08 Simon Marchi <simon.marchi@efficios.com>
10544
10545 * gdbtypes.c (rank_one_type_parm_float): New function extracted
10546 from...
10547 (rank_one_type): ... this.
10548
2c509035
SM
105492019-03-08 Simon Marchi <simon.marchi@efficios.com>
10550
10551 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
10552 from...
10553 (rank_one_type): ... this.
10554
0dd322dc
SM
105552019-03-08 Simon Marchi <simon.marchi@efficios.com>
10556
10557 * gdbtypes.c (rank_one_type_parm_range): New function extracted
10558 from...
10559 (rank_one_type): ... this.
10560
41ea4728
SM
105612019-03-08 Simon Marchi <simon.marchi@efficios.com>
10562
10563 * gdbtypes.c (rank_one_type_parm_char): New function extracted
10564 from...
10565 (rank_one_type): ... this.
10566
793cd1d2
SM
105672019-03-08 Simon Marchi <simon.marchi@efficios.com>
10568
10569 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
10570 from...
10571 (rank_one_type): ... this.
10572
34910087
SM
105732019-03-08 Simon Marchi <simon.marchi@efficios.com>
10574
10575 * gdbtypes.c (rank_one_type_parm_int): New function extracted
10576 from...
10577 (rank_one_type): ... this.
10578
f1f832d6
SM
105792019-03-08 Simon Marchi <simon.marchi@efficios.com>
10580
10581 * gdbtypes.c (rank_one_type_parm_func): New function extracted
10582 from...
10583 (rank_one_type): ... this.
10584
b9f4512f
SM
105852019-03-08 Simon Marchi <simon.marchi@efficios.com>
10586
10587 * gdbtypes.c (rank_one_type_parm_array): New function extracted
10588 from...
10589 (rank_one_type): ... this.
10590
9293fc63
SM
105912019-03-08 Simon Marchi <simon.marchi@efficios.com>
10592
10593 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
10594 from...
10595 (rank_one_type): ... this.
10596
e3abbe7e
PW
105972019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10598
10599 * inferior.c (initialize_inferiors): Ensure 'help set/show print
10600 inferior-events' shows the example events.
10601
e4adb939
EZ
106022019-03-08 Eli Zaretskii <eliz@gnu.org>
10603
10604 Support styling on native MS-Windows console
10605
10606 PR/24315
10607 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
10608 on MS-Windows if $TERM is not defined.
10609
10610 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
10611
10612 * posix-hdep.c (gdb_console_fputs):
10613 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
10614 functions.
10615 * ui-file.h (gdb_console_fputs): Add prototype.
10616
10617 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
10618 back to fputs only if the former returns zero.
10619
25629dfd
TT
106202019-03-07 Tom Tromey <tom@tromey.com>
10621
10622 * symmisc.c (print_symbol_bcache_statistics): Update.
10623 (print_objfile_statistics): Update.
10624 * symfile.c (allocate_symtab): Update.
10625 * stabsread.c: Don't include bcache.h.
10626 * psymtab.h (struct psymbol_bcache): Don't declare.
10627 (class psymtab_storage) <psymbol_cache>: Now a bcache.
10628 (psymbol_bcache_init, psymbol_bcache_free)
10629 (psymbol_bcache_get_bcache): Don't declare.
10630 * psymtab.c (struct psymbol_bcache): Remove.
10631 (psymtab_storage::psymtab_storage): Update.
10632 (psymtab_storage::~psymtab_storage): Update.
10633 (psymbol_bcache_init, psymbol_bcache_free)
10634 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
10635 (add_psymbol_to_bcache): Update.
10636 (allocate_psymtab): Update.
10637 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10638 macro_cache>: No longer pointers.
10639 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
10640 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
10641 * macrotab.c (macro_bcache): Update.
10642 * macroexp.c: Don't include bcache.h.
10643 * gdbtypes.c (check_types_worklist): Update.
10644 (types_deeply_equal): Remove TRY/CATCH. Update.
10645 * elfread.c (elf_symtab_read): Update.
10646 * dwarf2read.c: Don't include bcache.h.
10647 * buildsym.c (buildsym_compunit::get_macro_table): Update.
10648 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
10649 (print_bcache_statistics, bcache_memory_used): Don't declare.
10650 (struct bcache): Move from bcache.c. Add constructor, destructor,
10651 methods. Rename all data members.
10652 * bcache.c (struct bcache): Move to bcache.h.
10653 (bcache::expand_hash_table): Rename from expand_hash_table.
10654 (bcache): Remove.
10655 (bcache::insert): Rename from bcache_full.
10656 (bcache::compare): Rename from bcache_compare.
10657 (bcache_xmalloc): Remove.
10658 (bcache::~bcache): Rename from bcache_xfree.
10659 (bcache::print_statistics): Rename from print_bcache_statistics.
10660 (bcache::memory_used): Rename from bcache_memory_used.
10661
fe726667
PA
106622019-03-07 Pedro Alves <palves@redhat.com>
10663
10664 * infrun.c (normal_stop): Also check for
10665 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
10666
7584bb30
AB
106672019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10668
10669 * f-lang.c (value_from_host_double): Moved to...
10670 * value.c (value_from_host_double): ...here.
10671 * value.h (value_from_host_double): Declare.
10672 * guile/scm-math.c (vlscm_convert_typed_number): Use
10673 value_from_host_double.
10674 (vlscm_convert_number): Likewise.
10675 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
10676 * python/py-value.c (convert_value_from_python): Likewise.
10677
a7b1986e
TT
106782019-03-06 Tom Tromey <tom@tromey.com>
10679
10680 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
10681
0ccf4211
TT
106822019-03-06 Tom Tromey <tom@tromey.com>
10683
10684 * utils.h (free_current_contents): Don't declare.
10685 * utils.c (free_current_contents): Remove.
10686
fe7b42e5
TT
106872019-03-06 Tom Tromey <tom@tromey.com>
10688
10689 * top.c (quit_force): Update.
10690 * main.c (captured_command_loop): Update.
10691 * common/new-op.c (operator new): Update.
10692 * common/common-exceptions.c (struct catcher)
10693 <save_cleanup_chain>: Remove member.
10694 (exceptions_state_mc_init): Update.
10695 (exception_try_scope_entry): Return nullptr.
10696 (exception_try_scope_exit, exception_rethrow)
10697 (throw_exception_sjlj, throw_exception_cxx): Update.
10698 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
10699 (all_cleanups, do_cleanups, discard_cleanups)
10700 (discard_final_cleanups, save_cleanups, save_final_cleanups)
10701 (restore_cleanups, restore_final_cleanups): Don't declare.
10702 (do_final_cleanups): Remove parameter.
10703 * common/cleanups.c (cleanup_chain, make_cleanup)
10704 (make_cleanup_dtor, all_cleanups, do_cleanups)
10705 (discard_my_cleanups, discard_cleanups)
10706 (discard_final_cleanups, save_my_cleanups, save_cleanups)
10707 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
10708 (null_cleanup): Remove.
10709 (do_final_cleanups): Remove parameter.
10710
c6321f19
TT
107112019-03-06 Tom Tromey <tom@tromey.com>
10712
10713 * remote.c (remote_target::remote_parse_stop_reply): Use
10714 unique_xmalloc_ptr.
10715
61b30099
TT
107162019-03-06 Tom Tromey <tom@tromey.com>
10717
10718 * stabsread.c (struct stabs_field_info): Rename from field_info.
10719 <list, fnlist>: Add initializers.
10720 <obstack>: New member.
10721 (read_member_functions, read_struct_fields, read_baseclasses):
10722 Allocate on obstack. Don't use cleanups.
10723 (read_one_struct_field, read_member_functions, read_struct_fields)
10724 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
10725 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
10726 (read_struct_type): Update.
10727
6cceac94
TT
107282019-03-06 Tom Tromey <tom@tromey.com>
10729
10730 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
10731 * common/filestuff.h (make_cleanup_close): Don't declare.
10732 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
10733 Remove.
10734
72412762
TT
107352019-03-06 Tom Tromey <tom@tromey.com>
10736
10737 * solib-aix.c: Use make_scope_exit.
10738
2b6ff1c0
TT
107392019-03-06 Tom Tromey <tom@tromey.com>
10740
10741 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
10742 Use make_scope_exit.
10743
d01c5877
TT
107442019-03-06 Tom Tromey <tom@tromey.com>
10745
10746 * solib-svr4.c (disable_probes_interface): Remove parameter.
10747 (svr4_handle_solib_event): Use make_scope_exit.
10748
32603266
TT
107492019-03-06 Tom Tromey <tom@tromey.com>
10750
10751 * remote.c (struct stop_reply_deleter): Remove.
10752 (stop_reply_up): Update.
10753 (struct stop_reply): Derive from notif_event. Don't typedef.
10754 <regcache>: Now a std::vector.
10755 (stop_reply_xfree): Remove.
10756 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
10757 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
10758 (remote_target::discard_pending_stop_replies): Use delete.
10759 (remote_target::remote_parse_stop_reply): Update.
10760 (remote_target::process_stop_reply): Update.
10761 * remote-notif.h (struct notif_event): Add virtual destructor.
10762 Remove "dtr" member.
10763 (struct notif_client) <alloc_event>: Return a unique_ptr.
10764 (notif_event_xfree): Don't declare.
10765 (notif_event_up): New typedef.
10766 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
10767 (notif_event_xfree, do_notif_event_xfree): Remove.
10768 (remote_notif_state_xfree): Update.
10769
9799571e
TT
107702019-03-06 Tom Tromey <tom@tromey.com>
10771
10772 * infrun.c (displaced_step_clear_cleanup): Now a
10773 forward_scope_exit type.
10774 (displaced_step_prepare_throw): Update.
10775 (displaced_step_fixup): Update.
10776
09e3c4ca
TT
107772019-03-06 Tom Tromey <tom@tromey.com>
10778
10779 * inferior.h (class inferior): Update comment.
10780 * gdbthread.h (class thread_info): Update comment.
10781
e2a03548
TT
107822019-03-06 Joel Brobecker <brobecker@adacore.com>
10783 Tom Tromey <tom@tromey.com>
10784
10785 * stabsread.h (struct stab_section_list): Remove.
10786 (coffstab_build_psymtabs): Update.
10787 * dbxread.c (symbuf_sections): Now a std::vector.
10788 (sect_idx): New global.
10789 (fill_symbuf): Update.
10790 (coffstab_build_psymtabs): Change type of stabsects parameter.
10791 Update.
10792 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
10793 std::vector.
10794 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
10795 (coff_locate_sections): Update.
10796 (coff_symfile_read): Remove cleanups. Update.
10797 (init_stringtab): Add storage parameter.
10798 (free_stringtab, free_stringtab_cleanup): Remove.
10799 (init_lineno): Add storage parameter.
10800 (free_linetab, free_linetab_cleanup): Remove.
10801
b7e60d85
PA
108022019-03-06 Pedro Alves <palves@redhat.com>
10803
10804 * linux-fork.c (fork_info::clobber_regs): Delete.
10805 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
10806 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
10807 comment. Adjust.
10808 (scoped_switch_fork_info::scoped_switch_fork_info)
10809 (checkpoint_command, linux_fork_context): Adjust
10810 fork_save_infrun_state calls.
10811
e52c971f
PA
108122019-03-06 Pedro Alves <palves@redhat.com>
10813
10814 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
10815 (inf_has_multiple_threads): Return 'bool' and rewrite using
10816 inferior_info::threads().
10817
06974e6c
PA
108182019-03-06 Pedro Alves <palves@redhat.com>
10819
10820 * linux-fork.c: Include <list>.
10821 (fork_list): Now a std::list instance.
10822 (fork_info): Add ctor, dtor, and in-class initialize all fields.
10823 (forks_exist_p, find_last_fork): Adjust.
10824 (new_fork): Delete.
10825 (one_fork_p): New.
10826 (add_fork): Adjust.
10827 (free_fork): Delete, folded into fork_info::~fork_info().
10828 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
10829 Adjust.
10830 (init_fork_list): Delete.
10831 (linux_fork_killall, linux_fork_mourn_inferior)
10832 (linux_fork_detach, info_checkpoints_command): Adjust.
10833 (_initialize_linux_fork): No longer call init_fork_list.
10834
72f31aea
PA
108352019-03-06 Pedro Alves <palves@redhat.com>
10836
10837 * linux-fork.c (new_fork): New, split out of ...
10838 (add_fork): ... this. Return void. Move "first fork" special
10839 case from here, to ...
10840 (checkpoint_command): ... here.
10841 * linux-linux.h (add_fork): Return void.
10842
efbecbc1
AB
108432019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10844
10845 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
10846
0841c79a
AB
108472019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10848 Chris January <chris.january@arm.com>
10849 David Lecomber <david.lecomber@arm.com>
10850
10851 * f-exp.y: New token, UNOP_INTRINSIC.
10852 (exp): New pattern using UNOP_INTRINSIC token.
10853 (f77_keywords): Add 'abs' keyword.
10854 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
10855 (value_from_host_double): New function.
10856 (evaluate_subexp_f): Support UNOP_ABS.
10857
4a270568
AB
108582019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10859
10860 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
10861 types.
10862
067630bd
AB
108632019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10864
10865 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
10866 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
10867 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
10868
3be47f7a
AB
108692019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10870
10871 * f-exp.y (convert_to_kind_type): Handle more type kinds.
10872
4d00f5d8
AB
108732019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10874 Chris January <chris.january@arm.com>
10875
10876 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
10877 * f-exp.y: Define 'KIND' token.
10878 (exp): New pattern for KIND expressions.
10879 (ptype): Handle types with a kind extension.
10880 (direct_abs_decl): Extend to spot kind extensions.
10881 (f77_keywords): Add 'kind' to the list.
10882 (push_kind_type): New function.
10883 (convert_to_kind_type): New function.
10884 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
10885 * parse.c (operator_length_standard): Likewise.
10886 * parser-defs.h (enum type_pieces): Add tp_kind.
10887 * std-operator.def: Add UNOP_KIND.
10888
e454224f
AB
108892019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10890
10891 * f-exp.y (f_parse): Set yydebug.
10892
9dad4a58
AB
108932019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10894
10895 * f-lang.c (evaluate_subexp_f): New function.
10896 (exp_descriptor_f): New global.
10897 (f_language_defn): Use exp_descriptor_f instead of
10898 exp_descriptor_standard.
10899
c8f91604
AB
109002019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10901
10902 * f-exp.y (struct token): Add comments.
10903 (dot_ops): Remove uppercase versions and the end marker.
10904 (f77_keywords): Likewise.
10905 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
10906 entries in the dot_ops array are case insensitive, and use
10907 strncasecmp to compare strings. Also some whitespace cleanup in
10908 this area. Similar for the f77_keywords array, except entries in
10909 this list might be case sensitive.
10910
dd9f2c76
AB
109112019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10912
10913 * f-exp.y (struct f77_boolean_val): Add comments.
10914 (boolean_values): Remove uppercase versions, and end marker.
10915 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
10916 and use strncasecmp to achieve case insensitivity. Additionally,
10917 perform whitespace cleanup around this code.
10918
67a3048c
TT
109192019-03-06 Tom Tromey <tromey@adacore.com>
10920
10921 * remote-sim.c (gdbsim_target_open): Use result of
10922 gdb_argv::release.
10923
aa3cfbda
RB
109242019-03-06 Richard Bunt <richard.bunt@arm.com>
10925 Dirk Schubert <dirk.schubert@arm.com>
10926 Chris January <chris.january@arm.com>
10927
10928 * eval.c (evaluate_subexp_standard): Call Fortran argument
10929 wrapping logic.
10930 * f-lang.c (struct value): A value which can be passed into a
10931 Fortran function call.
10932 (fortran_argument_convert): Wrap Fortran arguments in a pointer
10933 where appropriate.
10934 (struct type): Value ready for a Fortran function call.
10935 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
10936 is needed.
10937 * f-lang.h (fortran_argument_convert): Declaration.
10938 (fortran_preserve_arg_pointer): Declaration.
10939 * infcall.c (value_arg_coerce): Call Fortran argument logic.
10940
ea38e5df
TT
109412019-03-05 Tom Tromey <tromey@adacore.com>
10942
10943 * python/py-prettyprint.c (print_string_repr): Remove #if.
10944 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
10945
06b5b831
TT
109462019-03-05 Tom Tromey <tromey@adacore.com>
10947
10948 * target.c (the_dummy_target): Move later. Change type to
10949 "dummy_target".
10950 (initialize_targets): Don't initialize the_dummy_target.
10951
edbd9e45
TT
109522019-03-05 Tom Tromey <tromey@adacore.com>
10953
10954 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
10955 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
10956
c119e040
TT
109572019-03-05 Tom Tromey <tromey@adacore.com>
10958
10959 * windows-nat.c (windows_nat_target::attach)
10960 (windows_nat_target::detach): Don't call gdb_flush.
10961 * valprint.c (generic_val_print, val_print, val_print_string):
10962 Don't call gdb_flush.
10963 * utils.c (defaulted_query): Don't call gdb_flush.
10964 * typeprint.c (print_type_scalar): Don't call gdb_flush.
10965 * target.c (target_announce_detach): Don't call gdb_flush.
10966 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
10967 * remote.c (extended_remote_target::attach): Don't call
10968 gdb_flush.
10969 * procfs.c (procfs_target::detach): Don't call gdb_flush.
10970 * printcmd.c (do_examine): Don't call gdb_flush.
10971 (info_display_command): Don't call gdb_flush.
10972 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
10973 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
10974 * memattr.c (info_mem_command): Don't call gdb_flush.
10975 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
10976 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
10977 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
10978 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
10979 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
10980 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
10981 (gnu_nat_target::detach): Don't call gdb_flush.
10982 * f-valprint.c (f_val_print): Don't call gdb_flush.
10983 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
10984 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
10985 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
10986 gdb_flush.
10987 * c-valprint.c (c_val_print): Don't call gdb_flush.
10988 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
10989
895dafa6
TT
109902019-03-05 Tom Tromey <tromey@adacore.com>
10991
10992 * varobj.c (update_dynamic_varobj_children): Update.
10993 (install_default_visualizer): Use reset, not release.
10994 * value.c (set_internalvar): Update.
10995 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
10996 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
10997 ATTRIBUTE_UNUSED_RESULT.
10998
88a774b9
TT
109992019-03-05 Tom Tromey <tromey@adacore.com>
11000
11001 * remote.c (class scoped_remote_fd) <release>: Add
11002 ATTRIBUTE_UNUSED_RESULT.
11003
4e4a8b93
TT
110042019-03-05 Tom Tromey <tromey@adacore.com>
11005
11006 * macroexp.c (struct macro_buffer) <release>: Add
11007 ATTRIBUTE_UNUSED_RESULT.
11008
083eef1f
TT
110092019-03-05 Tom Tromey <tromey@adacore.com>
11010
11011 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
11012 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
11013 ATTRIBUTE_UNUSED_RESULT.
11014
3cabd438
TT
110152019-03-05 Tom Tromey <tromey@adacore.com>
11016
11017 * common/scoped_fd.h (class scoped_fd) <release>: Add
11018 ATTRIBUTE_UNUSED_RESULT.
11019
41e3300a
TT
110202019-03-05 Tom Tromey <tromey@adacore.com>
11021
11022 * parser-defs.h (struct parser_state) <release>: Add
11023 ATTRIBUTE_UNUSED_RESULT.
11024
18cb7c9f
TT
110252019-03-05 Tom Tromey <tromey@adacore.com>
11026
11027 * utils.h (class gdb_argv) <release>: Add
11028 ATTRIBUTE_UNUSED_RESULT.
11029 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
11030
41fa577f
EZ
110312019-03-02 Eli Zaretskii <eliz@gnu.org>
11032
a6a4b2c6
EZ
11033 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
11034 for-loop range, to avoid compiler warnings.
11035
11036 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
11037 avoid compiler warnings about unused variables.
11038
742a7df5
EZ
11039 * NEWS: Mention end of support for native debugging on MS-Windows
11040 before XP.
11041
41fa577f
EZ
11042 PR gdb/24292
11043 * common/netstuff.c:
11044 * gdbserver/gdbreplay.c
11045 * gdbserver/remote-utils.c:
11046 * ser-tcp.c:
11047 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
11048 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
11049 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
11050 'getaddrinfo' and 'freeaddrinfo' were not available before
11051 Windows XP, and mingw.org's MinGW headers by default define
11052 _WIN32_WINNT to 0x500.
11053
827f438f
GB
110542019-03-01 Gary Benson <gbenson@redhat.com>
11055
11056 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
11057
92137da0
RO
110582019-02-28 Brian Vandenberg <phantall@gmail.com>
11059 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11060
11061 PR gdb/8527
11062 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
11063 set_sigint_trap, clear_sigint_trap.
11064
799efbe8
PW
110652019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11066
11067 * target.c (target_detach): Clear the regcache and the
11068 frame cache.
11069
8ed25214
PA
110702019-02-27 Pedro Alves <palves@redhat.com>
11071
11072 * utils.c (set_screen_size): When we cap the height/width sizes,
11073 tweak the corresponding command variable to show "unlimited":
11074
23031e31
SJ
110752019-02-27 Saagar Jha <saagar@saagarjha.com>
11076 Pedro Alves <palves@redhat.com>
11077
11078 * utils.c (set_screen_size): Reduce "infinite" rows and columns
11079 before calling rl_set_screen_size.
11080
6c28e44a
TT
110812019-02-27 Tom Tromey <tromey@adacore.com>
11082
11083 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
11084 define.
11085 * python/py-value.c: Remove Python 2.4 workaround.
11086 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
11087 workaround.
11088 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
11089 Python 2.4 workaround.
11090 * python/python-internal.h: Remove Python 2.4 comment.
11091 (Py_ssize_t): Don't define.
11092 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
11093 (gdb_Py_DECREF): Remove Python 2.4 workaround.
11094 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
11095 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
11096 * python/python.c (do_start_initialization): Remove Python 2.4
11097 workaround.
11098 * python/py-prettyprint.c (class dummy_python_frame): Remove.
11099 (print_children): Remove Python 2.4 workaround.
11100 * python/py-inferior.c (buffer_procs): Remove Python 2.4
11101 workaround.
11102 (CHARBUFFERPROC_NAME): Remove.
11103 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
11104 Python 2.4 workaround.
11105
2c3fc25d 111062019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 11107
2c3fc25d
KB
11108 * NEWS: Note minimum Python version.
11109
6ca62222
KB
111102019-02-27 Kevin Buettner <kevinb@redhat.com>
11111
11112 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
11113 code from these functions. Remove corresponding ifdefs. Use
11114 Py_buffer_up instead of explicit calls to PyBuffer_Release.
11115 Remove gotos and target of gotos.
11116 (infpy_search_memory): Likewise.
11117
f4bc7d2c
AB
111182019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11119
11120 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
11121 (hppa_gdbarch_init): Don't register deleted functions with
11122 gdbarch.
11123
9734a586
AB
111242019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11125
11126 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
11127 (h8300_unwind_sp): Delete.
11128 (h8300_dummy_id): Delete.
11129 (h8300_gdbarch_init): Don't register deleted functions with
11130 gdbarch.
11131
68b867f3
AB
111322019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11133
11134 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
11135 (ft32_unwind_pc): Delete.
11136 (ft32_unwind_sp): Delete.
11137 (ft32_gdbarch_init): Don't register deleted functions with
11138 gdbarch.
11139
2fbe7ad0
AB
111402019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11141
11142 * gdb/frv-tdep.c (frv_dummy_id): Delete.
11143 (frv_unwind_pc): Delete.
11144 (frv_unwind_sp): Delete.
11145 (frv_gdbarch_init): Don't register deleted functions with
11146 gdbarch.
11147
76055cbe
AB
111482019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11149
11150 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
11151 (riscv_unwind_pc): Delete.
11152 (riscv_unwind_sp): Delete.
11153 (riscv_gdbarch_init): Don't register deleted functions with
11154 gdbarch.
11155
4133e5a1
AB
111562019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11157
11158 * gdb/csky-tdep.c (csky_dummy_id): Delete.
11159 (csky_unwind_pc): Delete.
11160 (csky_unwind_sp): Delete.
11161 (csky_gdbarch_init): Don't register deleted functions with
11162 gdbarch.
11163
8010f576
AB
111642019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11165
11166 * gdb/cris-tdep.c (cris_dummy_id): Delete.
11167 (cris_unwind_pc): Delete.
11168 (cris_unwind_sp): Delete.
11169 (cris_gdbarch_init): Don't register deleted functions with
11170 gdbarch.
11171
b56bf084
AB
111722019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11173
11174 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
11175 (bfin_unwind_pc): Delete.
11176 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
11177
a19a650f
AB
111782019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11179
11180 * gdb/arm-tdep.c (arm_dummy_id): Delete.
11181 (arm_unwind_pc): Delete.
11182 (arm_unwind_sp): Delete.
11183 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
11184
f8278c3c
AB
111852019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11186
11187 * gdb/arc-tdep.c (arc_dummy_id): Delete.
11188 (arc_unwind_pc): Delete.
11189 (arc_unwind_sp): Delete.
11190 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
11191
480e46cf
AB
111922019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11193
11194 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
11195 (alpha_unwind_pc): Delete.
11196 (alpha_gdbarch_init): Don't register deleted functions with
11197 gdbarch.
11198
7a995095
AB
111992019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11200
11201 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
11202 (aarch64_unwind_pc): Delete.
11203 (aarch64_unwind_sp): Delete.
11204 (aarch64_gdbarch_init): Don't register deleted functions with
11205 gdbarch.
11206
bf9a735e
AB
112072019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11208
11209 * gdbtypes.c (type_align): Don't consider static members when
11210 computing structure alignment.
11211
5561fc30
AB
112122019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11213
11214 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
11215 return 0 for other types.
11216 * arch-utils.c (default_type_align): Always return 0.
11217 * gdbarch.h: Regenerate.
11218 * gdbarch.sh (type_align): Extend comment.
11219 * gdbtypes.c (type_align): Add additional comments, always call
11220 gdbarch_type_align before applying the default rules.
11221 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
11222 generic code will then apply a suitable default.
11223 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
11224 types, return 0 for other types.
11225
9335e75a
JB
112262019-02-27 Joel Brobecker <brobecker@adacore.com>
11227
11228 * NEWS: Create a new section for the next release branch.
11229 Rename the section of the current branch, now that it has
11230 been cut.
11231
3d34d8de
JB
112322019-02-27 Joel Brobecker <brobecker@adacore.com>
11233
11234 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
11235 * version.in: Bump version to 8.3.50.DATE-git.
11236
143420fb
SM
112372019-02-26 Simon Marchi <simon.marchi@efficios.com>
11238
11239 * aix-thread.c (ptid_cmp): Remove unused variable.
11240 (get_signaled_thread): Likewise.
11241 (store_regs_user_thread): Likewise.
11242 (store_regs_kernel_thread): Likewise.
11243 (fetch_regs_kernel_thread): Remove shadowed variable.
11244
172fb711
AB
112452019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
11246
11247 * features/riscv/32bit-cpu.xml: Add register numbers.
11248 * features/riscv/32bit-fpu.c: Regenerate.
11249 * features/riscv/32bit-fpu.xml: Add register numbers.
11250 * features/riscv/64bit-cpu.xml: Add register numbers.
11251 * features/riscv/64bit-fpu.c: Regenerate.
11252 * features/riscv/64bit-fpu.xml: Add register numbers.
11253
26c89782
KB
112542019-02-26 Kevin Buettner <kevinb@redhat.com>
11255
af54ade9 11256 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
11257 * python/py-value.c (convert_buffer_and_type_to_value): New
11258 function.
11259 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
11260 Add support for handling an optional second argument. Call
11261 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
11262 * python/python-internal.h (Py_buffer_deleter): New struct.
11263 (Py_buffer_up): New typedef.
11264
0f58c9e8
JB
112652019-02-25 John Baldwin <jhb@FreeBSD.org>
11266
11267 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
11268 instead of releasing ownership.
11269
0a0f4c01
JR
112702019-02-25 Jordan Rupprecht <rupprecht@google.com>
11271
11272 * dwarf2read.c (open_and_init_dwp_file): Call
11273 elf_numsections instead of bfd_count_sections to initialize
11274 dwp_file->num_sections.
11275
cd5a152c
TT
112762019-02-25 Tom Tromey <tromey@adacore.com>
11277
11278 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
11279
8a6a8513
SDJ
112802019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
11281
11282 * gcore.in: Add '--readnever' option when invoking GDB.
11283
04dcda9c
SM
112842019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11285
11286 * MAINTAINERS: Update my email address.
11287
07bc701d
SM
112882019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11289
11290 * build-id.c (build_id_to_debug_bfd_1): New function.
11291 (build_id_to_debug_bfd): Look for separate debug file in
11292 sysroot.
11293
c6f4a5d0
AB
112942019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
11295
11296 * gdbarch.sh: Update the copyright year range that is placed into
11297 generated files.
11298
9600246d
KS
112992019-02-22 Keith Seitz <keiths@redhat.com>
11300
11301 PR symtab/23853
11302 * linespec.c (create_sals_line_offset): Search for the default
11303 symtab's filename instead of its fullname.
11304
7557a514
AH
113052019-02-21 Alan Hayward <alan.hayward@arm.com>
11306
11307 * NEWS: Update style defaults.
11308
ee2bcb0c
AH
113092019-02-21 Alan Hayward <alan.hayward@arm.com>
11310
11311 * main.c (captured_main_1): Disable styling in batch mode.
11312
0c95f9ed
TT
113132019-02-20 Tom Tromey <tom@tromey.com>
11314
11315 * symtab.c (symtab_symbol_info): Fix typos.
11316
c763b894
TT
113172019-02-20 Tom Tromey <tromey@adacore.com>
11318
11319 * findcmd.c (_initialize_mem_search): Use upper case for
11320 metasyntactic variables.
11321
0ef8a082
AH
113222019-02-20 Alan Hayward <alan.hayward@arm.com>
11323
11324 * aarch64-tdep.c (aarch64_add_reggroups): New function.
11325 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
11326
6caa91b6
SM
113272019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
11328
11329 * top.h (source_file_name): Change to std::string.
11330 * top.c (source_file_name): Likewise.
11331 (command_line_input): Adjust.
11332 * cli/cli-script.c (script_from_file): Adjust.
11333
98814c6c
TT
113342019-02-19 Tom Tromey <tromey@adacore.com>
11335
11336 * ravenscar-thread.c
11337 (ravenscar_thread_target::update_thread_list): Don't call
11338 ada_build_task_list.
11339 * ada-lang.h (ada_build_task_list): Don't declare.
11340 * ada-tasks.c (struct ada_tasks_inferior_data)
11341 <task_list_valid_p>: Now bool.
11342 (read_known_tasks, ada_task_list_changed)
11343 (ada_tasks_invalidate_inferior_data): Update.
11344 (read_known_tasks_array): Return bool.
11345 (read_known_tasks_list): Likewise.
11346 (read_known_tasks): Return void.
11347 (ada_build_task_list): Now static.
11348
70cd633e
AB
113492019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
11350
11351 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
11352 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
11353
040b3e95
PW
113542019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11355
11356 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
11357 variant for ada_tasks_pspace_data_handle and
11358 ada_tasks_inferior_data_handle.
11359 (ada_tasks_pspace_data_cleanup): New function.
11360 (ada_tasks_inferior_data_cleanup): New function.
11361
9409233b
TT
113622019-02-17 Tom Tromey <tom@tromey.com>
11363
11364 * macrotab.h (macro_source_fullname): Return a std::string.
11365 * macrotab.c (macro_include, check_for_redefinition)
11366 (macro_undef, macro_lookup_definition, foreach_macro)
11367 (foreach_macro_in_scope): Update.
11368 (macro_source_fullname): Return a std::string.
11369 * macrocmd.c (show_pp_source_pos): Update.
11370
6506371f
TT
113712019-02-17 Tom Tromey <tom@tromey.com>
11372
11373 * macrocmd.c (show_pp_source_pos): Style the file names.
11374
0c820d67
TT
113752019-02-17 Tom Tromey <tom@tromey.com>
11376
11377 PR tui/24197:
11378 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
11379
a0087920
TT
113802019-02-17 Tom Tromey <tom@tromey.com>
11381
11382 * ada-lang.c (user_select_syms): Use filtered printing.
11383 * utils.c (wrap_style): New global.
11384 (desired_style): Remove.
11385 (emit_style_escape): Add stream parameter.
11386 (set_output_style, reset_terminal_style, prompt_for_continue):
11387 Update.
11388 (flush_wrap_buffer): Only flush gdb_stdout.
11389 (wrap_here): Set wrap_style.
11390 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
11391 treat escape sequences as a character. Change when wrap buffer is
11392 flushed.
11393 (fputs_styled): Do not set the output style when the default is
11394 requested.
11395 * ui-style.h (struct ui_file_style) <is_default>: New method.
11396 * source.c (print_source_lines_base): Emit escape sequences in one
11397 piece.
11398
75ba10dc
JB
113992019-02-17 Joel Brobecker <brobecker@adacore.com>
11400
11401 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
11402 integers and enumeration types.
11403
a2cd4f14
JB
114042019-02-17 Joel Brobecker <brobecker@adacore.com>
11405
11406 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
11407 instead of lookup_symbol_in_language
11408 (do_exact_match): New function.
11409 (ada_get_symbol_name_matcher): Return do_exact_match when
11410 doing a verbatim match.
11411
485b851b
TT
114122019-02-15 Tom Tromey <tromey@adacore.com>
11413
11414 * ravenscar-thread.c (ravenscar_thread_target::resume)
11415 (ravenscar_thread_target::wait): Special case wildcard requests.
11416
0b790b1e
TT
114172019-02-15 Tom Tromey <tromey@adacore.com>
11418
11419 * ravenscar-thread.c (base_ptid): Remove.
11420 (struct ravenscar_thread_target) <close>: New method.
11421 <m_base_ptid>: New member.
11422 <update_inferior_ptid, active_task, task_is_currently_active,
11423 runtime_initialized>: Declare methods.
11424 <ravenscar_thread_target>: Add constructor.
11425 (ravenscar_thread_target::task_is_currently_active)
11426 (ravenscar_thread_target::update_inferior_ptid)
11427 (ravenscar_runtime_initialized): Rename. Now methods.
11428 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
11429 (ravenscar_thread_target::update_thread_list): Update.
11430 (ravenscar_thread_target::active_task): Now method.
11431 (ravenscar_thread_target::store_registers)
11432 (ravenscar_thread_target::prepare_to_store)
11433 (ravenscar_thread_target::prepare_to_store)
11434 (ravenscar_thread_target::mourn_inferior): Update.
11435 (ravenscar_inferior_created): Use "new" to create target.
11436 (ravenscar_thread_target::get_ada_task_ptid): Update.
11437 (_initialize_ravenscar): Don't initialize base_ptid.
11438 (ravenscar_ops): Remove global.
11439
dea57a62
TT
114402019-02-15 Tom Tromey <tromey@adacore.com>
11441
11442 * target.h (push_target): Declare new overload.
11443 * target.c (push_target): New overload, taking an rvalue reference.
11444 * remote.c (remote_target::open_1): Use push_target overload.
11445 * corelow.c (core_target_open): Use push_target overload.
11446
989f3c58
TT
114472019-02-15 Tom Tromey <tromey@adacore.com>
11448
11449 * ravenscar-thread.c (is_ravenscar_task)
11450 (ravenscar_task_is_currently_active): Return bool.
11451 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
11452 (_initialize_ravenscar): Remove "(void)".
11453 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
11454 Return bool.
11455
6cbcc006
TT
114562019-02-15 Tom Tromey <tromey@adacore.com>
11457
11458 * ravenscar-thread.c (ravenscar_runtime_initializer)
11459 (has_ravenscar_runtime, get_running_thread_id)
11460 (ravenscar_thread_target::resume): Fix indentation.
11461
7657f14d
TT
114622019-02-15 Tom Tromey <tromey@adacore.com>
11463
11464 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
11465 from ravenscar_arch_ops.
11466 (sparc_ravenscar_ops::fetch_registers)
11467 (sparc_ravenscar_ops::store_registers): Now methods.
11468 (sparc_ravenscar_prepare_to_store): Remove.
11469 (sparc_ravenscar_ops): Redefine.
11470 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
11471 methods and destructor. Remove members.
11472 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
11473 (ravenscar_thread_target::store_registers)
11474 (ravenscar_thread_target::prepare_to_store): Update.
11475 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
11476 Remove.
11477 (struct ppc_ravenscar_powerpc_ops): Derive from
11478 ravenscar_arch_ops.
11479 (ppc_ravenscar_powerpc_ops::fetch_registers)
11480 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
11481 (ppc_ravenscar_powerpc_ops): Redefine.
11482 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
11483 (ppc_ravenscar_e500_ops::fetch_registers)
11484 (ppc_ravenscar_e500_ops::store_registers): Now methods.
11485 (ppc_ravenscar_e500_ops): Redefine.
11486 * aarch64-ravenscar-thread.c
11487 (aarch64_ravenscar_generic_prepare_to_store): Remove.
11488 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
11489 (aarch64_ravenscar_fetch_registers)
11490 (aarch64_ravenscar_store_registers): Now methods.
11491 (aarch64_ravenscar_ops): Redefine.
11492
5b6ea500
TT
114932019-02-15 Tom Tromey <tromey@adacore.com>
11494
11495 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
11496 (ravenscar_thread_target::stopped_by_hw_breakpoint)
11497 (ravenscar_thread_target::stopped_by_watchpoint)
11498 (ravenscar_thread_target::stopped_data_address)
11499 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
11500
e397fd39
TT
115012019-02-15 Tom Tromey <tromey@adacore.com>
11502
11503 * ravenscar-thread.c: Fix some typos.
11504
cc12f4a8
TT
115052019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11506 Tom Tromey <tromey@adacore.com>
11507
11508 * ada-lang.c (ada_exception_sal): Change addr_string to a
11509 std::string.
11510 (create_ada_exception_catchpoint): Update.
11511
5f486660
TT
115122019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11513 Tom Tromey <tromey@adacore.com>
11514
11515 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
11516 (bp_location_ops): Remove.
11517 (base_breakpoint_allocate_location): Update.
11518 (free_bp_location): Update.
11519 * ada-lang.c (class ada_catchpoint_location)
11520 <ada_catchpoint_location>: Remove ops parameter.
11521 (ada_catchpoint_location_dtor): Remove.
11522 (ada_catchpoint_location_ops): Remove.
11523 (allocate_location_exception): Update.
11524 * breakpoint.h (struct bp_location_ops): Remove.
11525 (class bp_location) <bp_location>: Remove bp_location_ops
11526 parameter.
11527 <~bp_location>: Add destructor.
11528 <ops>: Remove.
11529
b671c7fb
TS
115302019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11531 Pedro Alves <palves@redhat.com>
11532
11533 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
11534 'PATH_MAX'.
11535
8071c5ce
DM
115362019-02-14 David Michael <fedora.dm0@gmail.com>
11537 Samuel Thibault <samuel.thibault@gnu.org>
11538 Thomas Schwinge <thomas@codesourcery.com>
11539
11540 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
11541 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
11542
b1041ae0
TS
115432019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11544
924514e1
TS
11545 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
11546 (check_empty): Use "const char *".
11547
c29ee8d4
TS
11548 * gnu-nat.c (gnu_nat_target::detach): Instead of
11549 'detach_inferior (pid)' call
11550 'detach_inferior (find_inferior_pid (pid))'.
11551
6c6ef69f
TS
11552 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
11553 'nat/fork-inferior.o'.
11554 * gnu-nat.c: #include "nat/fork-inferior.h".
11555
2d0a338c
TS
11556 * gnu-nat.c (gnu_nat_target::detach): Instead of
11557 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
11558 * gnu-nat.h: #include "inf-child.h".
11559 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
11560 'i386_gnu_nat_target::fetch_registers'.
11561 (gnu_store_registers): Rename/move to
11562 'i386_gnu_nat_target::store_registers'.
11563
cabb5f06
TS
11564 * config/i386/nm-i386gnu.h: Don't "#include" any files.
11565 * gnu-nat.h (mach_thread_info): New function.
11566 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
11567
b1041ae0
TS
11568 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
11569
2988d01e
KF
115702019-02-14 Frederic Konrad <konrad@adacore.com>
11571
11572 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
11573
c559d709
JB
115742019-02-14 Joel Brobecker <brobecker@adacore.com>
11575
11576 * windows-nat.c (windows_add_thread): Add new parameter
11577 "main_thread_p" with default value set to false. Update
11578 function documentation as well as all callers.
11579 (windows_delete_thread): Likewise.
11580 (fake_create_process): Update call to windows_add_thread.
11581 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
11582 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
11583 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
11584 call to windows_delete_thread.
11585
007024cc
SM
115862019-02-13 Simon Marchi <simon.marchi@ericsson.com>
11587
11588 * MAINTAINERS: Add Andrew Burgess as global maintainer.
11589
f62318e9
JB
115902019-02-12 John Baldwin <jhb@FreeBSD.org>
11591
11592 * symfile.c (find_separate_debug_file): Use canonical path of
11593 sysroot with child_path instead of gdb_sysroot if it is valid.
11594
cd4b7848
JB
115952019-02-12 John Baldwin <jhb@FreeBSD.org>
11596
11597 * symfile.c (find_separate_debug_file): Use child_path to
11598 determine if an object file is under a sysroot.
11599
efac4bfe
JB
116002019-02-12 John Baldwin <jhb@FreeBSD.org>
11601
11602 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11603 unittests/child-path-selftests.c.
11604 * common/pathstuff.c (child_path): New function.
11605 * common/pathstuff.h (child_path): New prototype.
11606 * unittests/child-path-selftests.c: New file.
11607
402d2bfe
JB
116082019-02-12 John Baldwin <jhb@FreeBSD.org>
11609
11610 * symfile.c (find_separate_debug_file): Look for separate debug
11611 files in debug directories under the sysroot.
11612
1ed9f74e
PW
116132019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11614
11615 * symtab.h (struct minimal_symbol data_p): New const method.
11616 (struct minimal_symbol text_p): Likewise.
11617 * symtab.c (output_source_filename): Use file name style
11618 to print file name.
11619 (print_symbol_info): Likewise.
11620 (print_msymbol_info): Use address style to print addresses.
11621 Use function name style to print executable text symbols.
11622 (expand_symtab_containing_pc): Use data_p.
11623 (find_pc_sect_compunit_symtab): Likewise.
11624
2636d81d
PW
116252019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11626
11627 * breakpoint.c (describe_other_breakpoints): Use address style
11628 to print addresses.
11629 (say_where): Likewise.
11630
ac8c53cc
PW
116312019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11632
11633 * ada-typeprint.c (print_func_type): Print function name
11634 style to print function name.
11635 * c-typeprint.c (c_print_type_1): Likewise.
11636
ea638c43
AH
116372019-02-11 Alan Hayward <alan.hayward@arm.com>
11638
11639 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
11640 for execve.
11641
ab759ca8
PW
116422019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11643
11644 * c-exp.y (direct_abs_decl): Use emplace_back to record the
11645 type_stack.
11646
aff29d1c
JB
116472019-02-10 Joel Brobecker <brobecker@adacore.com>
11648
11649 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
11650 TYPE_CODE_REF types.
11651
617126bc
JW
116522019-02-08 Jim Wilson <jimw@sifive.com>
11653
11654 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
11655 (riscv_linux_fregset): New.
11656 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
11657
46e3ed7f
TT
116582019-02-07 Tom Tromey <tom@tromey.com>
11659
11660 * thread.c (thread_cancel_execution_command): Update.
11661 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
11662 methods.
11663 (struct thread_fsm_ops): Remove.
11664 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
11665 (thread_fsm_should_stop, thread_fsm_return_value)
11666 (thread_fsm_set_finished, thread_fsm_finished_p)
11667 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
11668 Don't declare.
11669 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
11670 * infrun.c (clear_proceed_status_thread)
11671 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
11672 (print_stop_event): Update.
11673 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
11674 Add constructor.
11675 (step_command_fsm_ops): Remove.
11676 (new_step_command_fsm): Remove.
11677 (step_1): Update.
11678 (step_command_fsm::should_stop): Rename from
11679 step_command_fsm_should_stop.
11680 (step_command_fsm::clean_up): Rename from
11681 step_command_fsm_clean_up.
11682 (step_command_fsm::do_async_reply_reason): Rename from
11683 step_command_fsm_async_reply_reason.
11684 (struct until_next_fsm): Inherit from thread_fsm. Add
11685 constructor.
11686 (until_next_fsm_ops): Remove.
11687 (new_until_next_fsm): Remove.
11688 (until_next_fsm::should_stop): Rename from
11689 until_next_fsm_should_stop.
11690 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
11691 (until_next_fsm::do_async_reply_reason): Rename from
11692 until_next_fsm_async_reply_reason.
11693 (struct finish_command_fsm): Inherit from thread_fsm. Add
11694 constructor. Change type of breakpoint.
11695 (finish_command_fsm_ops): Remove.
11696 (new_finish_command_fsm): Remove.
11697 (finish_command_fsm::should_stop): Rename from
11698 finish_command_fsm_should_stop.
11699 (finish_command_fsm::clean_up): Rename from
11700 finish_command_fsm_clean_up.
11701 (finish_command_fsm::return_value): Rename from
11702 finish_command_fsm_return_value.
11703 (finish_command_fsm::do_async_reply_reason): Rename from
11704 finish_command_fsm_async_reply_reason.
11705 (finish_command): Update.
11706 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
11707 Add constructor.
11708 (call_thread_fsm_ops): Remove.
11709 (call_thread_fsm::call_thread_fsm): Rename from
11710 new_call_thread_fsm.
11711 (call_thread_fsm::should_stop): Rename from
11712 call_thread_fsm_should_stop.
11713 (call_thread_fsm::should_notify_stop): Rename from
11714 call_thread_fsm_should_notify_stop.
11715 (run_inferior_call, call_function_by_hand_dummy): Update.
11716 * cli/cli-interp.c (should_print_stop_to_console): Update.
11717 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
11718 Add constructor. Change type of location_breakpoint,
11719 caller_breakpoint.
11720 (until_break_fsm_ops): Remove.
11721 (new_until_break_fsm): Remove.
11722 (until_break_fsm::should_stop): Rename from
11723 until_break_fsm_should_stop.
11724 (until_break_fsm::clean_up): Rename from
11725 until_break_fsm_clean_up.
11726 (until_break_fsm::do_async_reply_reason): Rename from
11727 until_break_fsm_async_reply_reason.
11728 (until_break_command): Update.
11729 * thread-fsm.c: Remove.
11730 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
11731
1a5c2598
TT
117322019-02-07 Tom Tromey <tom@tromey.com>
11733
11734 * yy-remap.h: Add include guard.
11735 * xtensa-tdep.h: Add include guard.
11736 * xcoffread.h: Rename include guard.
11737 * varobj-iter.h: Add include guard.
11738 * tui/tui.h: Rename include guard.
11739 * tui/tui-winsource.h: Rename include guard.
11740 * tui/tui-wingeneral.h: Rename include guard.
11741 * tui/tui-windata.h: Rename include guard.
11742 * tui/tui-win.h: Rename include guard.
11743 * tui/tui-stack.h: Rename include guard.
11744 * tui/tui-source.h: Rename include guard.
11745 * tui/tui-regs.h: Rename include guard.
11746 * tui/tui-out.h: Rename include guard.
11747 * tui/tui-layout.h: Rename include guard.
11748 * tui/tui-io.h: Rename include guard.
11749 * tui/tui-hooks.h: Rename include guard.
11750 * tui/tui-file.h: Rename include guard.
11751 * tui/tui-disasm.h: Rename include guard.
11752 * tui/tui-data.h: Rename include guard.
11753 * tui/tui-command.h: Rename include guard.
11754 * tic6x-tdep.h: Add include guard.
11755 * target/waitstatus.h: Rename include guard.
11756 * target/wait.h: Rename include guard.
11757 * target/target.h: Rename include guard.
11758 * target/resume.h: Rename include guard.
11759 * target-float.h: Rename include guard.
11760 * stabsread.h: Add include guard.
11761 * rs6000-tdep.h: Add include guard.
11762 * riscv-fbsd-tdep.h: Add include guard.
11763 * regformats/regdef.h: Rename include guard.
11764 * record.h: Rename include guard.
11765 * python/python.h: Rename include guard.
11766 * python/python-internal.h: Rename include guard.
11767 * python/py-stopevent.h: Rename include guard.
11768 * python/py-ref.h: Rename include guard.
11769 * python/py-record.h: Rename include guard.
11770 * python/py-record-full.h: Rename include guard.
11771 * python/py-record-btrace.h: Rename include guard.
11772 * python/py-instruction.h: Rename include guard.
11773 * python/py-events.h: Rename include guard.
11774 * python/py-event.h: Rename include guard.
11775 * procfs.h: Add include guard.
11776 * proc-utils.h: Add include guard.
11777 * p-lang.h: Add include guard.
11778 * or1k-tdep.h: Rename include guard.
11779 * observable.h: Rename include guard.
11780 * nto-tdep.h: Rename include guard.
11781 * nat/x86-linux.h: Rename include guard.
11782 * nat/x86-linux-dregs.h: Rename include guard.
11783 * nat/x86-gcc-cpuid.h: Add include guard.
11784 * nat/x86-dregs.h: Rename include guard.
11785 * nat/x86-cpuid.h: Rename include guard.
11786 * nat/ppc-linux.h: Rename include guard.
11787 * nat/mips-linux-watch.h: Rename include guard.
11788 * nat/linux-waitpid.h: Rename include guard.
11789 * nat/linux-ptrace.h: Rename include guard.
11790 * nat/linux-procfs.h: Rename include guard.
11791 * nat/linux-osdata.h: Rename include guard.
11792 * nat/linux-nat.h: Rename include guard.
11793 * nat/linux-namespaces.h: Rename include guard.
11794 * nat/linux-btrace.h: Rename include guard.
11795 * nat/glibc_thread_db.h: Rename include guard.
11796 * nat/gdb_thread_db.h: Rename include guard.
11797 * nat/gdb_ptrace.h: Rename include guard.
11798 * nat/fork-inferior.h: Rename include guard.
11799 * nat/amd64-linux-siginfo.h: Rename include guard.
11800 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
11801 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
11802 * nat/aarch64-linux.h: Rename include guard.
11803 * nat/aarch64-linux-hw-point.h: Rename include guard.
11804 * mn10300-tdep.h: Add include guard.
11805 * mips-linux-tdep.h: Add include guard.
11806 * mi/mi-parse.h: Rename include guard.
11807 * mi/mi-out.h: Rename include guard.
11808 * mi/mi-main.h: Rename include guard.
11809 * mi/mi-interp.h: Rename include guard.
11810 * mi/mi-getopt.h: Rename include guard.
11811 * mi/mi-console.h: Rename include guard.
11812 * mi/mi-common.h: Rename include guard.
11813 * mi/mi-cmds.h: Rename include guard.
11814 * mi/mi-cmd-break.h: Rename include guard.
11815 * m2-lang.h: Add include guard.
11816 * location.h: Rename include guard.
11817 * linux-record.h: Rename include guard.
11818 * linux-nat.h: Add include guard.
11819 * linux-fork.h: Add include guard.
11820 * i386-darwin-tdep.h: Rename include guard.
11821 * hppa-linux-offsets.h: Add include guard.
11822 * guile/guile.h: Rename include guard.
11823 * guile/guile-internal.h: Rename include guard.
11824 * gnu-nat.h: Rename include guard.
11825 * gdb-stabs.h: Rename include guard.
11826 * frv-tdep.h: Add include guard.
11827 * f-lang.h: Add include guard.
11828 * event-loop.h: Add include guard.
11829 * darwin-nat.h: Rename include guard.
11830 * cp-abi.h: Rename include guard.
11831 * config/sparc/nm-sol2.h: Rename include guard.
11832 * config/nm-nto.h: Rename include guard.
11833 * config/nm-linux.h: Add include guard.
11834 * config/i386/nm-i386gnu.h: Rename include guard.
11835 * config/djgpp/nl_types.h: Rename include guard.
11836 * config/djgpp/langinfo.h: Rename include guard.
11837 * compile/gcc-cp-plugin.h: Add include guard.
11838 * compile/gcc-c-plugin.h: Add include guard.
11839 * compile/compile.h: Rename include guard.
11840 * compile/compile-object-run.h: Rename include guard.
11841 * compile/compile-object-load.h: Rename include guard.
11842 * compile/compile-internal.h: Rename include guard.
11843 * compile/compile-cplus.h: Rename include guard.
11844 * compile/compile-c.h: Rename include guard.
11845 * common/xml-utils.h: Rename include guard.
11846 * common/x86-xstate.h: Rename include guard.
11847 * common/version.h: Rename include guard.
11848 * common/vec.h: Rename include guard.
11849 * common/tdesc.h: Rename include guard.
11850 * common/selftest.h: Rename include guard.
11851 * common/scoped_restore.h: Rename include guard.
11852 * common/scoped_mmap.h: Rename include guard.
11853 * common/scoped_fd.h: Rename include guard.
11854 * common/safe-iterator.h: Rename include guard.
11855 * common/run-time-clock.h: Rename include guard.
11856 * common/refcounted-object.h: Rename include guard.
11857 * common/queue.h: Rename include guard.
11858 * common/ptid.h: Rename include guard.
11859 * common/print-utils.h: Rename include guard.
11860 * common/preprocessor.h: Rename include guard.
11861 * common/pathstuff.h: Rename include guard.
11862 * common/observable.h: Rename include guard.
11863 * common/netstuff.h: Rename include guard.
11864 * common/job-control.h: Rename include guard.
11865 * common/host-defs.h: Rename include guard.
11866 * common/gdb_wait.h: Rename include guard.
11867 * common/gdb_vecs.h: Rename include guard.
11868 * common/gdb_unlinker.h: Rename include guard.
11869 * common/gdb_unique_ptr.h: Rename include guard.
11870 * common/gdb_tilde_expand.h: Rename include guard.
11871 * common/gdb_sys_time.h: Rename include guard.
11872 * common/gdb_string_view.h: Rename include guard.
11873 * common/gdb_splay_tree.h: Rename include guard.
11874 * common/gdb_setjmp.h: Rename include guard.
11875 * common/gdb_ref_ptr.h: Rename include guard.
11876 * common/gdb_optional.h: Rename include guard.
11877 * common/gdb_locale.h: Rename include guard.
11878 * common/gdb_assert.h: Rename include guard.
11879 * common/filtered-iterator.h: Rename include guard.
11880 * common/filestuff.h: Rename include guard.
11881 * common/fileio.h: Rename include guard.
11882 * common/environ.h: Rename include guard.
11883 * common/common-utils.h: Rename include guard.
11884 * common/common-types.h: Rename include guard.
11885 * common/common-regcache.h: Rename include guard.
11886 * common/common-inferior.h: Rename include guard.
11887 * common/common-gdbthread.h: Rename include guard.
11888 * common/common-exceptions.h: Rename include guard.
11889 * common/common-defs.h: Rename include guard.
11890 * common/common-debug.h: Rename include guard.
11891 * common/cleanups.h: Rename include guard.
11892 * common/buffer.h: Rename include guard.
11893 * common/btrace-common.h: Rename include guard.
11894 * common/break-common.h: Rename include guard.
11895 * cli/cli-utils.h: Rename include guard.
11896 * cli/cli-style.h: Rename include guard.
11897 * cli/cli-setshow.h: Rename include guard.
11898 * cli/cli-script.h: Rename include guard.
11899 * cli/cli-interp.h: Rename include guard.
11900 * cli/cli-decode.h: Rename include guard.
11901 * cli/cli-cmds.h: Rename include guard.
11902 * charset-list.h: Add include guard.
11903 * buildsym-legacy.h: Rename include guard.
11904 * bfin-tdep.h: Add include guard.
11905 * ax.h: Rename include guard.
11906 * arm-linux-tdep.h: Add include guard.
11907 * arm-fbsd-tdep.h: Add include guard.
11908 * arch/xtensa.h: Rename include guard.
11909 * arch/tic6x.h: Add include guard.
11910 * arch/i386.h: Add include guard.
11911 * arch/arm.h: Rename include guard.
11912 * arch/arm-linux.h: Rename include guard.
11913 * arch/arm-get-next-pcs.h: Rename include guard.
11914 * arch/amd64.h: Add include guard.
11915 * arch/aarch64-insn.h: Rename include guard.
11916 * arch-utils.h: Rename include guard.
11917 * annotate.h: Add include guard.
11918 * amd64-darwin-tdep.h: Rename include guard.
11919 * aarch64-linux-tdep.h: Add include guard.
11920 * aarch64-fbsd-tdep.h: Add include guard.
11921 * aarch32-linux-nat.h: Add include guard.
11922
ab9268d2
PW
119232019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11924
11925 * macrotab.c (macro_define_internal): New function that
11926 factorizes macro_define_object_internal and macro_define_function
11927 code.
11928 (macro_define_object_internal): Use macro_define_internal.
11929 (macro_define_function): Likewise.
11930
bb0da2b4
PW
119312019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11932
11933 * macrocmd.c (extract_identifier): Return
11934 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
11935 callers.
11936
424eb552
JB
119372019-02-06 John Baldwin <jhb@FreeBSD.org>
11938
11939 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
11940
1688cb29
TT
119412019-02-05 Tom Tromey <tom@tromey.com>
11942
11943 * target.c (target_stack::unpush): Move assertion earlier.
11944
b5eba2d8
TT
119452019-01-30 Tom Tromey <tom@tromey.com>
11946
11947 PR python/23615:
11948 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
11949 (gdbpy_parse_and_eval): Likewise.
11950 * python/python-internal.h (gdbpy_allow_threads): New class.
11951
7054e2ff
JB
119522019-01-28 John Baldwin <jhb@FreeBSD.org>
11953
11954 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
11955 (aarch64_fbsd_fpregmap): Move earlier.
11956 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
11957 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11958 instead of individual calls to trad_frame_set_reg_addr.
11959 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
11960 earlier.
11961 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
11962 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11963 instead of individual calls to trad_frame_set_reg_addr.
11964
36c25ffa
AH
119652019-01-28 Alan Hayward <alan.hayward@arm.com>
11966
11967 * CONTRIBUTE: Replace contribution list with wiki link.
11968
a0707f3c
TT
119692019-01-25 Tom Tromey <tom@tromey.com>
11970
11971 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
11972
0747795c
TT
119732019-01-25 Tom Tromey <tom@tromey.com>
11974
11975 * xtensa-linux-nat.c: Fix common/ includes.
11976 * xml-support.h: Fix common/ includes.
11977 * xml-support.c: Fix common/ includes.
11978 * x86-linux-nat.c: Fix common/ includes.
11979 * windows-nat.c: Fix common/ includes.
11980 * varobj.h: Fix common/ includes.
11981 * varobj.c: Fix common/ includes.
11982 * value.c: Fix common/ includes.
11983 * valops.c: Fix common/ includes.
11984 * utils.c: Fix common/ includes.
11985 * unittests/xml-utils-selftests.c: Fix common/ includes.
11986 * unittests/utils-selftests.c: Fix common/ includes.
11987 * unittests/unpack-selftests.c: Fix common/ includes.
11988 * unittests/tracepoint-selftests.c: Fix common/ includes.
11989 * unittests/style-selftests.c: Fix common/ includes.
11990 * unittests/string_view-selftests.c: Fix common/ includes.
11991 * unittests/scoped_restore-selftests.c: Fix common/ includes.
11992 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
11993 * unittests/scoped_fd-selftests.c: Fix common/ includes.
11994 * unittests/rsp-low-selftests.c: Fix common/ includes.
11995 * unittests/parse-connection-spec-selftests.c: Fix common/
11996 includes.
11997 * unittests/optional-selftests.c: Fix common/ includes.
11998 * unittests/offset-type-selftests.c: Fix common/ includes.
11999 * unittests/observable-selftests.c: Fix common/ includes.
12000 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
12001 * unittests/memrange-selftests.c: Fix common/ includes.
12002 * unittests/memory-map-selftests.c: Fix common/ includes.
12003 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
12004 * unittests/function-view-selftests.c: Fix common/ includes.
12005 * unittests/environ-selftests.c: Fix common/ includes.
12006 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
12007 * unittests/common-utils-selftests.c: Fix common/ includes.
12008 * unittests/cli-utils-selftests.c: Fix common/ includes.
12009 * unittests/array-view-selftests.c: Fix common/ includes.
12010 * ui-file.c: Fix common/ includes.
12011 * tui/tui-io.c: Fix common/ includes.
12012 * tracepoint.h: Fix common/ includes.
12013 * tracepoint.c: Fix common/ includes.
12014 * tracefile-tfile.c: Fix common/ includes.
12015 * top.h: Fix common/ includes.
12016 * top.c: Fix common/ includes.
12017 * thread.c: Fix common/ includes.
12018 * target/waitstatus.h: Fix common/ includes.
12019 * target/waitstatus.c: Fix common/ includes.
12020 * target.h: Fix common/ includes.
12021 * target.c: Fix common/ includes.
12022 * target-memory.c: Fix common/ includes.
12023 * target-descriptions.c: Fix common/ includes.
12024 * symtab.h: Fix common/ includes.
12025 * symfile.c: Fix common/ includes.
12026 * stap-probe.c: Fix common/ includes.
12027 * spu-linux-nat.c: Fix common/ includes.
12028 * sparc-nat.c: Fix common/ includes.
12029 * source.c: Fix common/ includes.
12030 * solib.c: Fix common/ includes.
12031 * solib-target.c: Fix common/ includes.
12032 * ser-unix.c: Fix common/ includes.
12033 * ser-tcp.c: Fix common/ includes.
12034 * ser-pipe.c: Fix common/ includes.
12035 * ser-base.c: Fix common/ includes.
12036 * selftest-arch.c: Fix common/ includes.
12037 * s12z-tdep.c: Fix common/ includes.
12038 * rust-exp.y: Fix common/ includes.
12039 * rs6000-aix-tdep.c: Fix common/ includes.
12040 * riscv-tdep.c: Fix common/ includes.
12041 * remote.c: Fix common/ includes.
12042 * remote-notif.h: Fix common/ includes.
12043 * remote-fileio.h: Fix common/ includes.
12044 * remote-fileio.c: Fix common/ includes.
12045 * regcache.h: Fix common/ includes.
12046 * regcache.c: Fix common/ includes.
12047 * record-btrace.c: Fix common/ includes.
12048 * python/python.c: Fix common/ includes.
12049 * python/py-type.c: Fix common/ includes.
12050 * python/py-inferior.c: Fix common/ includes.
12051 * progspace.h: Fix common/ includes.
12052 * producer.c: Fix common/ includes.
12053 * procfs.c: Fix common/ includes.
12054 * proc-api.c: Fix common/ includes.
12055 * printcmd.c: Fix common/ includes.
12056 * ppc-linux-nat.c: Fix common/ includes.
12057 * parser-defs.h: Fix common/ includes.
12058 * osdata.c: Fix common/ includes.
12059 * obsd-nat.c: Fix common/ includes.
12060 * nat/x86-linux.c: Fix common/ includes.
12061 * nat/x86-linux-dregs.c: Fix common/ includes.
12062 * nat/x86-dregs.h: Fix common/ includes.
12063 * nat/x86-dregs.c: Fix common/ includes.
12064 * nat/ppc-linux.c: Fix common/ includes.
12065 * nat/mips-linux-watch.h: Fix common/ includes.
12066 * nat/mips-linux-watch.c: Fix common/ includes.
12067 * nat/linux-waitpid.c: Fix common/ includes.
12068 * nat/linux-ptrace.h: Fix common/ includes.
12069 * nat/linux-ptrace.c: Fix common/ includes.
12070 * nat/linux-procfs.c: Fix common/ includes.
12071 * nat/linux-personality.c: Fix common/ includes.
12072 * nat/linux-osdata.c: Fix common/ includes.
12073 * nat/linux-namespaces.c: Fix common/ includes.
12074 * nat/linux-btrace.h: Fix common/ includes.
12075 * nat/linux-btrace.c: Fix common/ includes.
12076 * nat/fork-inferior.c: Fix common/ includes.
12077 * nat/amd64-linux-siginfo.c: Fix common/ includes.
12078 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
12079 * nat/aarch64-linux.c: Fix common/ includes.
12080 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
12081 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
12082 * namespace.h: Fix common/ includes.
12083 * mips-linux-tdep.c: Fix common/ includes.
12084 * minsyms.c: Fix common/ includes.
12085 * mi/mi-parse.h: Fix common/ includes.
12086 * mi/mi-main.c: Fix common/ includes.
12087 * mi/mi-cmd-env.c: Fix common/ includes.
12088 * memrange.h: Fix common/ includes.
12089 * memattr.c: Fix common/ includes.
12090 * maint.h: Fix common/ includes.
12091 * maint.c: Fix common/ includes.
12092 * main.c: Fix common/ includes.
12093 * machoread.c: Fix common/ includes.
12094 * location.c: Fix common/ includes.
12095 * linux-thread-db.c: Fix common/ includes.
12096 * linux-nat.c: Fix common/ includes.
12097 * linux-fork.c: Fix common/ includes.
12098 * inline-frame.c: Fix common/ includes.
12099 * infrun.c: Fix common/ includes.
12100 * inflow.c: Fix common/ includes.
12101 * inferior.h: Fix common/ includes.
12102 * inferior.c: Fix common/ includes.
12103 * infcmd.c: Fix common/ includes.
12104 * inf-ptrace.c: Fix common/ includes.
12105 * inf-child.c: Fix common/ includes.
12106 * ia64-linux-nat.c: Fix common/ includes.
12107 * i387-tdep.c: Fix common/ includes.
12108 * i386-tdep.c: Fix common/ includes.
12109 * i386-linux-tdep.c: Fix common/ includes.
12110 * i386-linux-nat.c: Fix common/ includes.
12111 * i386-go32-tdep.c: Fix common/ includes.
12112 * i386-fbsd-tdep.c: Fix common/ includes.
12113 * i386-fbsd-nat.c: Fix common/ includes.
12114 * guile/scm-type.c: Fix common/ includes.
12115 * guile/guile.c: Fix common/ includes.
12116 * go32-nat.c: Fix common/ includes.
12117 * gnu-nat.c: Fix common/ includes.
12118 * gdbthread.h: Fix common/ includes.
12119 * gdbarch-selftests.c: Fix common/ includes.
12120 * gdb_usleep.c: Fix common/ includes.
12121 * gdb_select.h: Fix common/ includes.
12122 * gdb_bfd.c: Fix common/ includes.
12123 * gcore.c: Fix common/ includes.
12124 * fork-child.c: Fix common/ includes.
12125 * findvar.c: Fix common/ includes.
12126 * fbsd-nat.c: Fix common/ includes.
12127 * event-top.c: Fix common/ includes.
12128 * event-loop.c: Fix common/ includes.
12129 * dwarf2read.c: Fix common/ includes.
12130 * dwarf2loc.c: Fix common/ includes.
12131 * dwarf2-frame.c: Fix common/ includes.
12132 * dwarf-index-cache.c: Fix common/ includes.
12133 * dtrace-probe.c: Fix common/ includes.
12134 * disasm-selftests.c: Fix common/ includes.
12135 * defs.h: Fix common/ includes.
12136 * csky-tdep.c: Fix common/ includes.
12137 * cp-valprint.c: Fix common/ includes.
12138 * cp-support.h: Fix common/ includes.
12139 * cp-support.c: Fix common/ includes.
12140 * corelow.c: Fix common/ includes.
12141 * completer.h: Fix common/ includes.
12142 * completer.c: Fix common/ includes.
12143 * compile/compile.c: Fix common/ includes.
12144 * compile/compile-loc2c.c: Fix common/ includes.
12145 * compile/compile-cplus-types.c: Fix common/ includes.
12146 * compile/compile-cplus-symbols.c: Fix common/ includes.
12147 * command.h: Fix common/ includes.
12148 * cli/cli-dump.c: Fix common/ includes.
12149 * cli/cli-cmds.c: Fix common/ includes.
12150 * charset.c: Fix common/ includes.
12151 * build-id.c: Fix common/ includes.
12152 * btrace.h: Fix common/ includes.
12153 * btrace.c: Fix common/ includes.
12154 * breakpoint.h: Fix common/ includes.
12155 * breakpoint.c: Fix common/ includes.
12156 * ax.h:
12157 (enum agent_op): Fix common/ includes.
12158 * ax-general.c (struct aop_map): Fix common/ includes.
12159 * ax-gdb.c: Fix common/ includes.
12160 * auxv.c: Fix common/ includes.
12161 * auto-load.c: Fix common/ includes.
12162 * arm-tdep.c: Fix common/ includes.
12163 * arch/riscv.c: Fix common/ includes.
12164 * arch/ppc-linux-common.c: Fix common/ includes.
12165 * arch/i386.c: Fix common/ includes.
12166 * arch/arm.c: Fix common/ includes.
12167 * arch/arm-linux.c: Fix common/ includes.
12168 * arch/arm-get-next-pcs.c: Fix common/ includes.
12169 * arch/amd64.c: Fix common/ includes.
12170 * arch/aarch64.c: Fix common/ includes.
12171 * arch/aarch64-insn.c: Fix common/ includes.
12172 * arch-utils.c: Fix common/ includes.
12173 * amd64-windows-tdep.c: Fix common/ includes.
12174 * amd64-tdep.c: Fix common/ includes.
12175 * amd64-sol2-tdep.c: Fix common/ includes.
12176 * amd64-obsd-tdep.c: Fix common/ includes.
12177 * amd64-nbsd-tdep.c: Fix common/ includes.
12178 * amd64-linux-tdep.c: Fix common/ includes.
12179 * amd64-linux-nat.c: Fix common/ includes.
12180 * amd64-fbsd-tdep.c: Fix common/ includes.
12181 * amd64-fbsd-nat.c: Fix common/ includes.
12182 * amd64-dicos-tdep.c: Fix common/ includes.
12183 * amd64-darwin-tdep.c: Fix common/ includes.
12184 * agent.c: Fix common/ includes.
12185 * ada-lang.h: Fix common/ includes.
12186 * ada-lang.c: Fix common/ includes.
12187 * aarch64-tdep.c: Fix common/ includes.
12188
2f5c153e
TT
121892019-01-25 Tom Tromey <tom@tromey.com>
12190
12191 * common/create-version.sh: Use common/version.h.
12192
adc6a863
PA
121932019-01-24 Pedro Alves <palves@redhat.com>
12194
12195 * infrun.c (signal_stop, signal_print, signal_program)
12196 (signal_catch, signal_pass): Now arrays instead of pointers.
12197 (update_signals_program_target, do_target_resume)
12198 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
12199 * linux-nat.c (linux_nat_target::pass_signals)
12200 (linux_nat_target::create_inferior, linux_nat_target::attach):
12201 Adjust.
12202 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
12203 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
12204 * procfs.c (procfs_target::pass_signals): Adjust.
12205 * record-full.c (record_full_target::resume): Adjust.
12206 * remote.c (remote_target::pass_signals)
12207 (remote_target::program_signals): Adjust.
12208 * target-debug.h (target_debug_print_signals): Now takes a
12209 gdb::array_view as parameter. Adjust.
12210 * target.h (target_ops) <pass_signals, program_signals>: Replace
12211 pointer and length parameters with gdb::array_view.
12212 (target_pass_signals, target_program_signals): Likewise.
12213 * target-delegates.c: Regenerate.
12214
3046d67a
PA
122152019-01-24 Pedro Alves <palves@redhat.com>
12216
12217 * common/forward-scope-exit.h
12218 (forward_scope_exit::forward_scope_exit): Pass arguments to
12219 m_bind_function directly, instead of creating a std::bind and
12220 copying that.
12221
353229bf
AH
122222019-01-24 Alan Hayward <alan.hayward@arm.com>
12223
12224 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12225 for static members.
12226 (pass_in_v_vfp_candidate): Likewise.
12227
311dc83a
TT
122282019-01-23 Tom Tromey <tom@tromey.com>
12229 Pedro Alves <palves@redhat.com>
12230
12231 * regcache.c (class regcache_invalidator): Remove.
12232 (regcache::raw_write): Use make_scope_exit.
12233
296bd123
TT
122342019-01-23 Tom Tromey <tom@tromey.com>
12235
12236 * ui-out.h (class ui_out_emit_type): Update comment.
12237
979a0d13
TT
122382019-01-23 Tom Tromey <tom@tromey.com>
12239
12240 * infrun.c (fetch_inferior_event): Update comment.
12241
d238133d
TT
122422019-01-23 Tom Tromey <tom@tromey.com>
12243 Pedro Alves <palves@redhat.com>
12244
12245 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
12246 parameter.
12247 (fetch_inferior_event): Use SCOPE_EXIT.
12248
12249
9885e6bb
TT
122502019-01-23 Tom Tromey <tom@tromey.com>
12251 Pedro Alves <palves@redhat.com>
12252
12253 * infrun.c (disable_thread_events): Delete.
12254 (stop_all_threads): Use SCOPE_EXIT.
12255
286526c1
TT
122562019-01-23 Tom Tromey <tom@tromey.com>
12257 Pedro Alves <palves@redhat.com>
12258
12259 * symfile.c: Include forward-scope-exit.h.
12260 (clear_symtab_users_cleanup): Replace forward declaration with
12261 a FORWARD_SCOPE_EXIT.
12262 (syms_from_objfile_1): Use the forward_scope_exit and
12263 gdb::optional instead of cleanup_function.
12264 (reread_symbols): Use the forward_scope_exit instead of
12265 cleanup_function.
12266 (clear_symtab_users_cleanup): Remove function.
12267
1db93f14
TT
122682019-01-23 Tom Tromey <tom@tromey.com>
12269 Pedro Alves <palves@redhat.com>
12270
12271 * linux-nat.c: Include scope-exit.h.
12272 (cleanup_target_stop): Remove.
12273 (linux_nat_target::static_tracepoint_markers_by_strid): Use
12274 SCOPE_EXIT.
12275
2cc83d1e
TT
122762019-01-23 Tom Tromey <tom@tromey.com>
12277 Pedro Alves <palves@redhat.com>
12278
12279 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
12280 (call_function_by_hand_dummy): Use SCOPE_EXIT.
12281
694c6bf5
TT
122822019-01-23 Tom Tromey <tom@tromey.com>
12283 Andrew Burgess <andrew.burgess@embecosm.com>
12284 Pedro Alves <palves@redhat.com>
12285
12286 * infrun.c (fetch_inferior_event): Use scope_exit.
12287 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
12288 * top.c (execute_command): Use scope_exit.
12289 * breakpoint.c (bpstat_do_actions): Use scope_exit.
12290 * utils.c (do_bpstat_clear_actions_cleanup)
12291 (make_bpstat_clear_actions_cleanup): Remove.
12292
4c41382a
TT
122932019-01-23 Tom Tromey <tom@tromey.com>
12294 Pedro Alves <palves@redhat.com>
12295
12296 * infrun.c: Include "common/scope-exit.h"
12297 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
12298 (wait_for_inferior): Use SCOPE_EXIT.
12299 (fetch_inferior_event): Use scope_exit.
12300
89f8fb50
TT
123012019-01-23 Tom Tromey <tom@tromey.com>
12302 Pedro Alves <palves@redhat.com>
12303
12304 * breakpoint.c (create_breakpoint): Remove cleanup.
12305
5419bdae
TT
123062019-01-23 Tom Tromey <tom@tromey.com>
12307 Andrew Burgess <andrew.burgess@embecosm.com>
12308 Pedro Alves <palves@redhat.com>
12309
e587ef42
PA
123102019-01-23 Pedro Alves <palves@redhat.com>
12311
12312 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
12313
77f0e74c
PA
123142019-01-23 Pedro Alves <palves@redhat.com>
12315 Andrew Burgess <andrew.burgess@embecosm.com>
12316
12317 * gdbthread.h: Include "common/forward-scope-exit.h".
12318 (scoped_finish_thread_state): Redefine custom class in terms of
12319 forward_scope_exit.
12320
5b9b3e53
PA
123212019-01-23 Pedro Alves <palves@redhat.com>
12322 Andrew Burgess <andrew.burgess@embecosm.com>
12323
12324 * common/forward-scope-exit.h: New file.
12325
54b65c9b
PA
123262019-01-23 Pedro Alves <palves@redhat.com>
12327 Andrew Burgess <andrew.burgess@embecosm.com>
12328 Tom Tromey <tom@tromey.com>
12329
12330 * common/scope-exit.h: New file.
12331
cf08fb29
PA
123322019-01-23 Pedro Alves <palves@redhat.com>
12333
12334 * common/preprocessor.h (ESC): Rename to ...
12335 (ESC_PARENS): ... this.
12336 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
12337 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
12338
ae73e2e2
TT
123392019-01-23 Tom Tromey <tom@tromey.com>
12340
12341 * language.h (class scoped_switch_to_sym_language_if_auto):
12342 Initialize m_lang in both cases.
12343
6594e122
AH
123442019-01-23 Alan Hayward <alan.hayward@arm.com>
12345
12346 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
12347 with XCNEW.
12348
a7c9855d
TT
123492019-01-22 Tom Tromey <tom@tromey.com>
12350
12351 * corelow.c: Do not include sys/file.h.
12352
93cc1d53
TT
123532019-01-22 Tom Tromey <tom@tromey.com>
12354
12355 * tui/tui-wingeneral.h: Include gdb_curses.h.
12356
38561778
TT
123572019-01-22 Tom Tromey <tom@tromey.com>
12358
12359 * source-cache.h (class source_cache) <get_source_lines,
12360 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
12361
37b3ab5b
TT
123622019-01-22 Tom Tromey <tom@tromey.com>
12363
12364 * remote-fileio.h (struct remote_target): Declare.
12365
3fabc016
TT
123662019-01-22 Tom Tromey <tom@tromey.com>
12367
12368 * python/py-arch.c: Do not include py-ref.h.
12369 * python/py-bpevent.c: Do not include py-ref.h.
12370 * python/py-cmd.c: Do not include py-ref.h.
12371 * python/py-continueevent.c: Do not include py-ref.h.
12372 * python/py-event.h: Do not include py-ref.h.
12373 * python/py-evtregistry.c: Do not include py-ref.h.
12374 * python/py-finishbreakpoint.c: Do not include py-ref.h.
12375 * python/py-frame.c: Do not include py-ref.h.
12376 * python/py-framefilter.c: Do not include py-ref.h.
12377 * python/py-function.c: Do not include py-ref.h.
12378 * python/py-infevents.c: Do not include py-ref.h.
12379 * python/py-linetable.c: Do not include py-ref.h.
12380 * python/py-objfile.c: Do not include py-ref.h.
12381 * python/py-param.c: Do not include py-ref.h.
12382 * python/py-prettyprint.c: Do not include py-ref.h.
12383 * python/py-progspace.c: Do not include py-ref.h.
12384 * python/py-symbol.c: Do not include py-ref.h.
12385 * python/py-symtab.c: Do not include py-ref.h.
12386 * python/py-type.c: Do not include py-ref.h.
12387 * python/py-unwind.c: Do not include py-ref.h.
12388 * python/py-utils.c: Do not include py-ref.h.
12389 * python/py-value.c: Do not include py-ref.h.
12390 * python/py-varobj.c: Do not include py-ref.h.
12391 * python/py-xmethods.c: Do not include py-ref.h.
12392 * python/python.c: Do not include py-ref.h.
12393 * varobj.c: Do not include py-ref.h.
12394
6b4d7774
TT
123952019-01-22 Tom Tromey <tom@tromey.com>
12396
12397 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
12398 keyword for bcache.
12399
7af7e9b5
TT
124002019-01-22 Tom Tromey <tom@tromey.com>
12401
12402 * compile/compile-cplus-types.c: Remove a comment by #include.
12403
951d1049
TT
124042019-01-22 Tom Tromey <tom@tromey.com>
12405
12406 * compile/gcc-c-plugin.h: Include compile-internal.h.
12407
d65d5705
TT
124082019-01-22 Tom Tromey <tom@tromey.com>
12409
12410 * stabsread.c (EXTERN): Do not define.
12411 (symnum, next_symbol_text_func, processing_gcc_compilation)
12412 (within_function, global_sym_chain, global_stabs)
12413 (previous_stab_code, this_object_header_files)
12414 (n_this_object_header_files)
12415 (n_allocated_this_object_header_files): Define.
12416 * stabsread.h (EXTERN): Never define. Use "extern".
12417
b6fb1ee5
PW
124182019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12419
12420 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
12421 history_value.
12422
be6d4f74
TT
124232019-01-21 Tom Tromey <tom@tromey.com>
12424
12425 * ui-out.c: Fix includes.
12426 * tui/tui-source.c: Fix includes.
12427 * target.c: Fix includes.
12428 * remote.c: Fix includes.
12429 * regcache.c: Fix includes.
12430 * python/py-block.c: Fix includes.
12431 * printcmd.c: Fix includes.
12432 * or1k-tdep.c: Fix includes.
12433 * mi/mi-main.c: Fix includes.
12434 * m32r-tdep.c: Fix includes.
12435 * csky-tdep.c: Fix includes.
12436 * compile/compile-cplus-types.c: Fix includes.
12437 * cli/cli-interp.c: Fix includes.
12438
73021deb
AH
124392019-01-21 Alan Hayward <alan.hayward@arm.com>
12440
12441 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12442 for padding.
12443
7932255d
TT
124442019-01-16 Tom Tromey <tom@tromey.com>
12445
12446 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
12447 earlier.
12448 (struct objfile) <msymbols_range>: Move from top level.
12449 <msymbols>: New method.
12450 (class objfile_msymbols): Remove.
12451 * symtab.c (default_collect_symbol_completion_matches_break_on):
12452 Update.
12453 * symmisc.c (dump_msymbols): Update.
12454 * stabsread.c (scan_file_globals): Update.
12455 * objc-lang.c (info_selectors_command, info_classes_command)
12456 (find_methods): Update.
12457 * minsyms.c (find_solib_trampoline_target): Update.
12458 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
12459 * coffread.c (coff_symfile_read): Update.
12460 * ada-lang.c (ada_lookup_simple_minsym)
12461 (ada_collect_symbol_completion_matches): Update.
12462
604b1bfb
TT
124632019-01-16 Tom Tromey <tom@tromey.com>
12464
12465 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
12466 type. Remove no-argument constructor.
12467 <iterator::operator++>: Simplify.
12468 <begin>: Update.
12469 <end>: Use minimal_symbol_count.
12470
f252c6d5
TT
124712019-01-16 Tom Tromey <tom@tromey.com>
12472
12473 * objfiles.h (struct objfile) <psymtabs>: New method.
12474 (class objfile_psymtabs): Remove.
12475 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
12476 typedef.
12477 <range>: New method.
12478 (require_partial_symbols): Change return type.
12479 * psymtab.c (require_partial_symbols)
12480 (psym_expand_symtabs_matching): Update.
12481 * mdebugread.c (parse_partial_symbols): Update.
12482 * dbxread.c (dbx_end_psymtab): Update.
12483
b669c953
TT
124842019-01-15 Tom Tromey <tom@tromey.com>
12485
12486 * symtab.c (lookup_objfile_from_block)
12487 (lookup_symbol_in_objfile_symtabs)
12488 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
12489 (find_line_symtab, info_sources_command)
12490 (default_collect_symbol_completion_matches_break_on)
12491 (make_source_files_completion_list): Update.
12492 * symmisc.c (print_objfile_statistics, dump_objfile)
12493 (maintenance_print_symbols, maintenance_info_symtabs)
12494 (maintenance_check_symtabs, maintenance_info_line_tables):
12495 Update.
12496 * source.c (select_source_symtab)
12497 (forget_cached_source_info_for_objfile): Update.
12498 * objfiles.h (class objfile_compunits): Remove.
12499 (struct objfile) <compunits_range>: New typedef.
12500 (compunits): New method.
12501 * objfiles.c (objfile_relocate1): Update.
12502 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12503 * maint.c (count_symtabs_and_blocks): Update.
12504 * linespec.c (iterate_over_all_matching_symtabs): Update.
12505 * cp-support.c (add_symbol_overload_list_qualified): Update.
12506 * coffread.c (coff_symtab_read): Update.
12507 * ada-lang.c (add_nonlocal_symbols)
12508 (ada_collect_symbol_completion_matches)
12509 (ada_add_global_exceptions): Update.
12510
7e955d83
TT
125112019-01-15 Tom Tromey <tom@tromey.com>
12512
12513 * progspace.h (program_space) <objfiles_safe_range>: New
12514 typedef.
12515 <objfiles_safe>: New method.
12516 * objfiles.h (class all_objfiles_safe): Remove.
12517 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
12518 * jit.c (jit_inferior_exit_hook): Update.
12519
2030c079
TT
125202019-01-17 Tom Tromey <tom@tromey.com>
12521
12522 * progspace.h (program_space) <objfiles_range>: New typedef.
12523 <objfiles>: New method.
12524 <objfiles_head>: Rename from objfiles.
12525 (object_files): Update.
12526 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
12527 * guile/scm-pretty-print.c
12528 (ppscm_find_pretty_printer_from_objfiles): Update.
12529 * guile/scm-objfile.c (gdbscm_objfiles): Update.
12530 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
12531 Update.
12532 * python/py-progspace.c (pspy_get_objfiles): Update.
12533 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12534 Update.
12535 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12536 (objfpy_lookup_objfile_by_build_id): Update.
12537 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12538 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12539 Update.
12540 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12541 (expand_symtab_containing_pc, lookup_objfile_from_block)
12542 (lookup_static_symbol, basic_lookup_transparent_type)
12543 (find_pc_sect_compunit_symtab, find_symbol_at_address)
12544 (find_line_symtab, info_sources_command)
12545 (default_collect_symbol_completion_matches_break_on)
12546 (make_source_files_completion_list, find_main_name): Update.
12547 * symmisc.c (print_symbol_bcache_statistics)
12548 (print_objfile_statistics, maintenance_print_symbols)
12549 (maintenance_print_msymbols, maintenance_print_objfiles)
12550 (maintenance_info_symtabs, maintenance_check_symtabs)
12551 (maintenance_expand_symtabs, maintenance_info_line_tables):
12552 Update.
12553 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
12554 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
12555 (map_overlay_command, unmap_overlay_command)
12556 (simple_overlay_update, expand_symtabs_matching)
12557 (map_symbol_filenames): Update.
12558 * symfile-debug.c (set_debug_symfile): Update.
12559 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
12560 Update.
12561 * source.c (select_source_symtab, forget_cached_source_info):
12562 Update.
12563 * solib.c (solib_read_symbols): Update.
12564 * solib-spu.c (append_ocl_sos): Update.
12565 * psymtab.c (maintenance_print_psymbols)
12566 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
12567 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
12568 * printcmd.c (info_symbol_command): Update.
12569 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
12570 Update.
12571 * objfiles.h (class all_objfiles): Remove.
12572 * objfiles.c (have_partial_symbols, have_full_symbols)
12573 (have_minimal_symbols, qsort_cmp, update_section_map)
12574 (shared_objfile_contains_address_p)
12575 (default_iterate_over_objfiles_in_search_order): Update.
12576 * objc-lang.c (info_selectors_command, info_classes_command)
12577 (find_methods): Update.
12578 * minsyms.c (find_solib_trampoline_target): Update.
12579 * maint.c (maintenance_info_sections)
12580 (maintenance_translate_address, count_symtabs_and_blocks):
12581 Update.
12582 * main.c (captured_main_1): Update.
12583 * linux-thread-db.c (try_thread_db_load_from_pdir)
12584 (has_libpthread): Update.
12585 * linespec.c (iterate_over_all_matching_symtabs)
12586 (search_minsyms_for_name): Update.
12587 * jit.c (jit_find_objf_with_entry_addr): Update.
12588 * hppa-tdep.c (find_unwind_entry)
12589 (hppa_lookup_stub_minimal_symbol): Update.
12590 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
12591 Update.
12592 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12593 (elf_gnu_ifunc_resolve_by_got): Update.
12594 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
12595 * dwarf-index-write.c (save_gdb_index_command): Update.
12596 * cp-support.c (add_symbol_overload_list_qualified): Update.
12597 * breakpoint.c (create_overlay_event_breakpoint)
12598 (create_longjmp_master_breakpoint)
12599 (create_std_terminate_master_breakpoint)
12600 (create_exception_master_breakpoint): Update.
12601 * blockframe.c (find_pc_partial_function): Update.
12602 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
12603 (ada_collect_symbol_completion_matches)
12604 (ada_add_global_exceptions): Update.
12605
776489e0
TT
126062019-01-17 Tom Tromey <tom@tromey.com>
12607
12608 * solib-target.c (lm_info_target_p): Remove typedef. Don't
12609 declare VEC.
12610 (solib_target_parse_libraries): Change return type.
12611 (library_list_start_segment, library_list_start_section)
12612 (library_list_end_library, library_list_start_library); Update.
12613 (solib_target_free_library_list): Remove.
12614 (solib_target_parse_libraries): Remove cleanup. Change return
12615 type.
12616 (solib_target_current_sos): Update.
12617
6471e7d2
TT
126182019-01-17 Tom Tromey <tromey@bapiya>
12619
12620 * valprint.c: Replace "the the" with "the".
12621 * symtab.c: Replace "the the" with "the".
12622 * solib.c: Replace "the the" with "the".
12623 * solib-dsbt.c: Replace "the the" with "the".
12624 * linespec.c: Replace "the the" with "the".
12625 * dwarf2loc.h: Replace "the the" with "the".
12626 * amd64-windows-tdep.c: Replace "the the" with "the".
12627 * aarch64-tdep.c: Replace "the the" with "the".
12628
c24bdb02
KS
126292019-01-16 Keith Seitz <keiths@redhat.com>
12630
12631 PR gdb/23773
12632 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
12633 <builder>: Rename to ..
12634 <m_builder>: ... this and make private.
12635 (dwarf2_cu::get_builder): New method. Change all users of
12636 `builder' to use this method.
12637 (dwarf2_start_symtab): Move to ...
12638 (dwarf2_cu::start_symtab): ... here. Update all callers
12639 (setup_type_unit_groups): Move to ...
12640 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
12641 callers.
12642 (dwarf2_cu::reset_builder): New method.
12643 (process_full_compunit, process_full_type_unit): Use
12644 dwarf2_cu::reset_builder.
12645 (follow_die_offset): Record the ancestor CU if it is different
12646 from the followed DIE's CU.
12647 (follow_die_sig_1): Likewise.
12648
8d64371b
TT
126492019-01-15 Tom Tromey <tom@tromey.com>
12650
12651 * remote.c (class remote_state) <buf>: Now a char_vector.
12652 <buf_size>: Remove.
12653 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
12654 parameter.
12655 (remote_target::getpkt_or_notif_sane_1)
12656 (remote_target::getpkt_sane)
12657 (remote_target::getpkt_or_notif_sane): Likewise.
12658 (class remote_target) <putpkt>: New overload.
12659 (remote_target::read_frame): Change type of "buf_p". Remove
12660 sizeof_p parameter.
12661 (packet_ok): New overload.
12662 (packet_check_result): New overload.
12663 Update all uses.
12664
bb277751
TT
126652019-01-14 Tom Tromey <tom@tromey.com>
12666
12667 * remote-notif.c (handle_notification, remote_notif_ack)
12668 (remote_notif_parse): Make "buf" const.
12669 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
12670 const.
12671 (remote_notif_parse, remote_notif_ack, handle_notification):
12672 Likewise.
12673 * remote.c (remote_notif_stop_parse): Make "buf" const.
12674 (remote_target::remote_parse_stop_reply): Make "buf" const.
12675 (remote_notif_stop_ack): Make "buf" const.
12676
05be00a8
TT
126772019-01-14 Tom Tromey <tom@tromey.com>
12678
12679 * remote.c (remote_console_output): Make parameter const.
12680
491adeca
TT
126812019-01-14 Tom Tromey <tom@tromey.com>
12682
12683 * target-debug.h (target_debug_print_signals): Constify.
12684 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
12685 * procfs.c (procfs_target::pass_signals): Update.
12686 * linux-nat.c (linux_nat_target::pass_signals): Update.
12687 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
12688 * target-delegates.c: Rebuild.
12689 * remote.c (remote_target::program_signals): Update.
12690 (remote_target::pass_signals): Update.
12691 * target.c (target_pass_signals): Constify argument.
12692 (target_program_signals): Likewise.
12693 * target.h (struct target_ops) <pass_signals, program_signals>:
12694 Constify argument.
12695 (target_pass_signals, target_program_signals): Constify argument.
12696
bbd94648
TT
126972019-01-14 Tom Tromey <tom@tromey.com>
12698
12699 PR tui/28819:
12700 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
12701
6f072a10
PFC
127022019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12703
12704 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
12705 field.
12706 * rs6000-tdep.c: Include reggroups.h.
12707 (IS_V_ALIAS_PSEUDOREG): Define.
12708 (rs6000_register_name): Return names for the "vX" aliases.
12709 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
12710 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
12711 aliases. Call default_register_reggroup_p for all other
12712 pseudo-registers.
12713 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
12714 New functions.
12715 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
12716 Handle "vX" aliases.
12717 (v_alias_pseudo_register_collect): New function.
12718 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
12719 (rs6000_gdbarch_init): Initialize "vX" aliases as
12720 pseudo-registers. Restore registration of
12721 rs6000_pseudo_register_reggroup_p with
12722 set_tdesc_pseudo_register_reggroup_p.
12723
1a782351
MF
127242019-01-13 Max Filippov <jcmvbkbc@gmail.com>
12725
12726 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
12727 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
12728 set_gdbarch_num_pseudo_regs.
12729
d73cff18
PW
127302019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12731
12732 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
12733 Remove arg prefixname, add do_set and do_show.
12734 Add member functions set_list and show_list.
12735 * cli/cli-style.c (class cli_style_option): Update accordingly.
12736 (style_set_list): Move to file scope.
12737 (style_show_list): Likewise.
12738 (set_style): Call help_list.
12739 (show_style): Call cmd_show_list.
12740 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
12741 Update to use the new macro.
12742
60a90376
JB
127432019-10-12 Joel Brobecker <brobecker@adacore.com>
12744
12745 * ada-lang.c (_initialize_ada_language): Expand the help text
12746 for the "catch exception" command.
12747
9d7c67bf
PW
127482019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12749
12750 * symtab.c (matching_obj_sections): Initialize obj,
12751 declare it closer to its usage.
12752
7cf47dc4
TT
127532019-01-10 Tom Tromey <tom@tromey.com>
12754
12755 * thread-iter.h (inf_threads_iterator): Use next_iterator.
12756 (basic_inf_threads_range): Remove.
12757 (inf_threads_range, inf_non_exited_threads_range)
12758 (safe_inf_threads_range): Use next_adapter.
12759
d3cb6808
KS
127602019-01-10 Keith Seitz <keiths@redhat.com>
12761
12762 PR gdb/23712
12763 PR symtab/23010
12764 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
12765 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
12766
63a20375
KS
127672019-01-10 Keith Seitz <keiths@redhat.com>
12768
12769 PR gdb/23712
12770 PR symtab/23010
12771 * dictionary.c (pending_to_vector): Remove.
12772 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12773 Remove _1 suffix, replacing functions of the same name. Update
12774 all callers.
12775 (dict_create_hashed, dict_create_hashed_expandable)
12776 (dict_create_linear, dict_create_linear_expandable, dict_free)
12777 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
12778 Make functions static.
12779
b026f593
KS
127802019-01-10 Keith Seitz <keiths@redhat.com>
12781
12782 PR gdb/23712
12783 PR symtab/23010
12784 * dictionary.h (struct dictionary): Replace declaration with
12785 multidictionary.
12786 (dict_create_hashed, dict_create_hashed_expandable)
12787 (dict_create_linear, dict_create_linear_expandable)
12788 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
12789 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
12790 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
12791 taking multidictionary argument.
12792 [ALL_DICT_SYMBOLS]: Update for multidictionary.
12793 * block.h (struct block) <dict>: Change to multidictionary
12794 and rename `multidict'.
12795 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
12796 symmisc.c: Update all dictionary references to multidictionary.
12797
c7748ee9
KS
127982019-01-10 Keith Seitz <keiths@redhat.com>
12799
12800 PR gdb/23712
12801 PR symtab/23010
12802 * dictionary.c: Include unordered_map.
12803 (pending_to_vector): New function.
12804 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12805 Rewrite the non-"_1" functions to take vector instead
12806 of linked list.
12807 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
12808 "new" _1 versions of the same name.
12809 (multidictionary): Define.
12810 (std::hash<enum language): New definition.
12811 (collate_pending_symbols_by_language, mdict_create_hashed)
12812 (mdict_create_hashed_expandable, mdict_create_linear)
12813 (mdict_create_linear_expandable, mdict_free)
12814 (find_language_dictionary, create_new_language_dictionary)
12815 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
12816 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
12817 (mdict_size, mdict_empty): New functions.
12818 * dictionary.h (mdict_iterator): Define.
12819
67aa1f3c
PA
128202019-01-10 Pedro Alves <palves@redhat.com>
12821
12822 * breakpoint.c (read_uploaded_action)
12823 (create_tracepoint_from_upload): Adjust to use
12824 gdb::unique_xmalloc_ptr.
12825 * ctf.c (ctf_write_uploaded_tp):
12826 (SET_ARRAY_FIELD): Use emplace_back.
12827 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
12828 * tracefile-tfile.c (tfile_write_uploaded_tp):
12829 * tracepoint.c (parse_tracepoint_definition): Adjust to use
12830 gdb::unique_xmalloc_ptr.
12831 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
12832 at_string, cond_string, cmd_strings>: Replace char pointers
12833 with gdb::unique_xmalloc_ptr.
12834
2f667667
PA
128352019-01-10 Pedro Alves <palves@redhat.com>
12836
12837 * solib-target.c (library_list_start_library): Don't xstrdup name.
12838
36cb7237
PA
128392019-01-10 Pedro Alves <palves@redhat.com>
12840
12841 * mdebugread.c (parse_partial_symbols): Use
12842 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
12843
da584958
AB
128442019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12845
12846 * linux-fork.c (scoped_switch_fork_info)
12847 <~scoped_switch_fork_info>: Fix incorrect variable name.
12848
1ef8573c
AB
128492019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12850
12851 * linux-fork.c (scoped_switch_fork_info)
12852 <scoped_switch_fork_info>: Make explicit.
12853 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
12854
8d7bcccb
TT
128552019-01-10 Tom Tromey <tom@tromey.com>
12856
12857 * objfiles.h (objfile::reset_psymtabs): Update.
12858 * objfiles.c (objfile::objfile): Update.
12859 * psymtab.h (psymtab_storage::obstack): Update.
12860 (psymtab_storage::m_obstack): Use gdb::optional.
12861 (class psymtab_storage): Update comment. Remove objfile
12862 parameter.
12863 * psymtab.c (psymtab_storage::psymtab_storage): Update.
12864
b596a3c7
TT
128652019-01-10 Tom Tromey <tom@tromey.com>
12866
12867 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
12868 <free_psymtabs>: Now private.
12869 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
12870 (allocate_psymtab): Use new method.
12871
a9342b62
TT
128722019-01-10 Tom Tromey <tom@tromey.com>
12873
12874 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
12875 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
12876 * mdebugread.c (parse_partial_symbols): Use
12877 allocate_dependencies.
12878 * dwarf2read.c (dwarf2_create_include_psymtab): Use
12879 allocate_dependencies.
12880 (process_psymtab_comp_unit_reader)
12881 (build_type_psymtab_dependencies): Likewise.
12882 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
12883
5af70966
TT
128842019-01-10 Tom Tromey <tom@tromey.com>
12885
12886 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
12887 PSYMBOL_SET_LANGUAGE.
12888 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
12889
5923a04c
TT
128902019-01-10 Tom Tromey <tom@tromey.com>
12891
12892 * psymtab.h (psymtab_storage::obstack): New method.
12893 <m_obstack>: Rename from obstack; now private.
12894 * psymtab.c (psymtab_storage): Update.
12895 * dwarf2read.c (create_addrmap_from_index)
12896 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
12897 Update.
12898
6d6a12bf
TT
128992019-01-10 Tom Tromey <tom@tromey.com>
12900
12901 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
12902 * objfiles.h (objfile::reset_psymtabs): New method.
12903
d320c2b5
TT
129042019-01-10 Tom Tromey <tom@tromey.com>
12905
12906 * symmisc.c (print_symbol_bcache_statistics): Update.
12907 (print_objfile_statistics): Update.
12908 * symfile.c (reread_symbols): Update.
12909 * psymtab.h (class psymtab_storage): New.
12910 * psymtab.c (psymtab_storage): New constructor.
12911 (~psymtab_storage): New destructor.
12912 (require_partial_symbols): Update.
12913 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
12914 (find_pc_sect_psymtab, find_pc_sect_psymbol)
12915 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
12916 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
12917 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
12918 (start_psymtab_common, end_psymtab_common)
12919 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
12920 (allocate_psymtab): Update.
12921 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
12922 Update.
12923 (dump_psymtab_addrmap, maintenance_print_psymbols)
12924 (maintenance_check_psymtabs): Update.
12925 (class objfile_psymtabs): Move to objfiles.h.
12926 * psympriv.h (discard_psymtab): Now inline.
12927 (psymtab_discarder::psymtab_discarder): Update.
12928 (psymtab_discarder::~psymtab_discarder): Update.
12929 (ALL_OBJFILE_PSYMTABS): Rewrite.
12930 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
12931 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
12932 Remove fields.
12933 <partial_symtabs>: New field.
12934 (class objfile_psymtabs): Move from psymtab.h. Update.
12935 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
12936 psymbol_cache.
12937 (objfile::~objfile): Don't destroy psymbol_cache.
12938 * mdebugread.c (parse_partial_symbols): Update.
12939 * dwarf2read.c (create_addrmap_from_index)
12940 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12941 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
12942 (add_partial_subprogram, dwarf2_ranges_read): Update.
12943 * dwarf-index-write.c (write_address_map)
12944 (write_one_signatured_type, recursively_write_psymbols)
12945 (class debug_names, class debug_names, write_psymtabs_to_index):
12946 Update.
12947
1d94a5a3
TT
129482019-01-10 Tom Tromey <tom@tromey.com>
12949
12950 * symtab.h (SYMBOL_SET_NAMES): Update.
12951 (symbol_set_names): Update.
12952 (MSYMBOL_SET_NAMES): Update.
12953 * symtab.c (symbol_set_names): Change argument to be an
12954 objfile_per_bfd_storage.
12955 * psymtab.c (add_psymbol_to_bcache): Update.
12956 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
12957
0f14768a
TT
129582019-01-10 Tom Tromey <tom@tromey.com>
12959
12960 * symtab.c (create_demangled_names_hash): Change argument to be an
12961 objfile_per_bfd_storage.
12962 (symbol_set_names): Update.
12963
6eee24ce
TT
129642019-01-10 Tom Tromey <tom@tromey.com>
12965
12966 * xcoffread.c (xcoff_initial_scan): Unconditionally call
12967 init_psymbol_list.
12968 * psymtab.c (init_psymbol_list): Do nothing if already called.
12969 * psympriv.h (init_psymbol_list): Add comment.
12970 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
12971 init_psymbol_list.
12972 * dbxread.c (dbx_symfile_read): Unconditionally call
12973 init_psymbol_list.
12974
75aedd27
TT
129752019-01-10 Tom Tromey <tom@tromey.com>
12976
12977 * xcoffread.c (scan_xcoff_symtab): Update.
12978 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
12979 "where".
12980 * mdebugread.c (parse_partial_symbols)
12981 (handle_psymbol_enumerators): Update.
12982 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
12983 * dbxread.c (read_dbx_symtab): Update.
12984 * psympriv.h (psymbol_placement): New enum.
12985 (add_psymbol_to_list): Update.
12986
939652a5
TT
129872019-01-10 Tom Tromey <tom@tromey.com>
12988
12989 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
12990 static_psymbols parameters.
12991 (scan_xcoff_symtab): Update.
12992 * psymtab.c (start_psymtab_common): Remove global_psymbols and
12993 static_psymbols parameters.
12994 * psympriv.h (start_psymtab_common): Update.
12995 * mdebugread.c (parse_partial_symbols): Update.
12996 * dwarf2read.c (create_partial_symtab): Update.
12997 * dbxread.c (read_dbx_symtab): Update.
12998 (start_psymtab): Remove global_psymbols and static_psymbols
12999 parameters.
13000
baa62830
TT
130012019-01-10 Tom Tromey <tom@tromey.com>
13002
13003 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
13004 * psymtab.c (allocate_psymtab): Add comment.
13005 * psympriv.h (allocate_psymtab): Add comment.
13006 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
13007 initializations.
13008 * dbxread.c (dbx_end_psymtab): Remove some initializations.
13009
0e8f53ba
TT
130102019-01-10 Tom Tromey <tom@tromey.com>
13011
13012 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13013 Don't declare.
13014 * mipsread.c: Include mdebugread.h.
13015 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13016 Declare.
13017 * elfread.c: Include mdebugread.h.
13018
b22a7c6a
TT
130192019-01-09 Tom Tromey <tom@tromey.com>
13020
13021 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
13022 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
13023 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
13024 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
13025 (psym_lookup_symbol, psym_find_last_source_symtab)
13026 (psym_forget_cached_source_info, psym_print_stats)
13027 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
13028 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
13029 (psym_map_matching_symbols, psym_expand_symtabs_matching)
13030 (psym_find_compunit_symtab_by_address)
13031 (maintenance_print_psymbols, maintenance_info_psymtabs)
13032 (maintenance_check_psymtabs): Use ranged for.
13033 * psymtab.h (class objfile_psymtabs): New.
13034 (require_partial_symbols): Return objfile_psymtabs.
13035 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
13036
3b9d3ac2
TT
130372019-01-09 Tom Tromey <tom@tromey.com>
13038
13039 * symfile.c (overlay_invalidate_all, find_pc_overlay)
13040 (find_pc_mapped_section, list_overlays_command)
13041 (map_overlay_command, unmap_overlay_command)
13042 (simple_overlay_update): Use all_objfiles.
13043 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
13044 * printcmd.c (info_symbol_command): Use all_objfiles.
13045 * objfiles.h (ALL_OBJSECTIONS): Remove.
13046 * maint.c (maintenance_translate_address): Use all_objfiles.
13047 * gcore.c (gcore_create_callback): Use all_objfiles.
13048 (objfile_find_memory_regions): Likewise.
13049
8b31193a
TT
130502019-01-09 Tom Tromey <tom@tromey.com>
13051
13052 * symtab.c (find_line_symtab, info_sources_command)
13053 (make_source_files_completion_list): Use objfile_compunits.
13054 * source.c (select_source_symtab): Use objfile_compunits.
13055 * objfiles.h (struct objfile): Update comment.
13056 (ALL_OBJFILES): Remove.
13057 (ALL_FILETABS): Remove.
13058 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
13059 objfile_compunits.
13060
d5da8b3c
TT
130612019-01-09 Tom Tromey <tom@tromey.com>
13062
13063 * symmisc.c (print_objfile_statistics, dump_objfile)
13064 (maintenance_print_symbols): Use compunit_filetabs.
13065 * source.c (forget_cached_source_info_for_objfile): Use
13066 compunit_filetabs.
13067 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
13068 (ALL_FILETABS): Use compunit_filetabs.
13069 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
13070 * coffread.c (coff_symtab_read): Use compunit_filetabs.
13071
5accd1a0
TT
130722019-01-09 Tom Tromey <tom@tromey.com>
13073
13074 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
13075 (compunit_filetabs): New.
13076 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
13077 compunit_filetabs.
13078 (info_sources_command, make_source_files_completion_list): Remove
13079 declaration.
13080 * symmisc.c (print_objfile_statistics, dump_objfile)
13081 (maintenance_print_symbols): Remove declaration.
13082 (maintenance_info_symtabs): Use compunit_filetabs.
13083 (maintenance_info_line_tables): Likewise.
13084 * source.c (select_source_symtab): Change local variable name.
13085 (forget_cached_source_info_for_objfile): Remove declaration.
13086 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
13087 * objfiles.c (objfile_relocate1): Remove declaration.
13088 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13089 declaration.
13090 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
13091 * coffread.c (coff_symtab_read): Remove declaration.
13092 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
13093 compunit_filetabs.
13094
d8aeb77f
TT
130952019-01-09 Tom Tromey <tom@tromey.com>
13096
13097 * symtab.c (lookup_objfile_from_block)
13098 (find_pc_sect_compunit_symtab, search_symbols)
13099 (default_collect_symbol_completion_matches_break_on): Use
13100 objfile_compunits.
13101 * objfiles.h (ALL_COMPUNITS): Remove.
13102 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
13103 * cp-support.c (add_symbol_overload_list_qualified): Use
13104 objfile_compunits.
13105 * ada-lang.c (ada_collect_symbol_completion_matches)
13106 (ada_add_global_exceptions): Use objfile_compunits.
13107
592553c4
TT
131082019-01-09 Tom Tromey <tom@tromey.com>
13109
13110 * source.c (select_source_symtab)
13111 (forget_cached_source_info_for_objfile): Remove declaration.
13112 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13113 declaration.
13114 * maint.c (count_symtabs_and_blocks): Remove declaration.
13115 * cp-support.c (add_symbol_overload_list_qualified): Remove
13116 declaration.
13117 * coffread.c (coff_symtab_read): Remove declaration.
13118 * symtab.c (lookup_symbol_in_objfile_symtabs)
13119 (basic_lookup_transparent_type_1): Use objfile_compunits.
13120 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
13121 (info_sources_command, search_symbols)
13122 (default_collect_symbol_completion_matches_break_on)
13123 (make_source_files_completion_list): Remove declaration.
13124 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
13125 (ada_collect_symbol_completion_matches)
13126 (ada_add_global_exceptions): Remove declaration.
13127 * linespec.c (iterate_over_all_matching_symtabs): Use
13128 objfile_compunits.
13129 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
13130 (class objfile_compunits): New.
13131 (ALL_COMPUNITS): Use objfile_compunits.
13132 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
13133 (maintenance_check_symtabs, maintenance_info_line_tables): Use
13134 objfile_compunits.
13135 * objfiles.c (objfile_relocate1): Use objfile_compunits.
13136
5325b9bf
TT
131372019-01-09 Tom Tromey <tom@tromey.com>
13138
13139 * symtab.c (search_symbols)
13140 (default_collect_symbol_completion_matches_break_on): Use
13141 objfile_msymbols.
13142 * ada-lang.c (ada_lookup_simple_minsym)
13143 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
13144 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
13145 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
13146 objfile_msymbols.
13147 * coffread.c (coff_symfile_read): Use objfile_msymbols.
13148 * symmisc.c (dump_msymbols): Use objfile_msymbols.
13149 * objc-lang.c (find_methods): Use objfile_msymbols.
13150 (info_selectors_command, info_classes_command): Likewise.
13151 * stabsread.c (scan_file_globals): Use objfile_msymbols.
13152 * objfiles.h (class objfile_msymbols): New.
13153 (ALL_OBJFILE_MSYMBOLS): Remove.
13154 (ALL_MSYMBOLS): Remove.
13155
cac85af2
TT
131562019-01-09 Tom Tromey <tom@tromey.com>
13157
13158 * common/next-iterator.h (next_adapter): Add Iterator template
13159 parameter.
13160 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
13161 (class all_objfiles_safe): New.
13162 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
13163 * objfiles.c (put_objfile_before): Update comment.
13164 (add_separate_debug_objfile): Likewise.
13165 (free_all_objfiles): Use all_objfiles_safe.
13166 (objfile_purge_solibs): Likewise.
13167
aed57c53
TT
131682019-01-09 Tom Tromey <tom@tromey.com>
13169
13170 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13171 (expand_symtab_containing_pc, lookup_static_symbol)
13172 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
13173 (find_symbol_at_address, find_line_symtab, find_main_name): Use
13174 all_objfiles.
13175 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
13176 * breakpoint.c (create_overlay_event_breakpoint)
13177 (create_longjmp_master_breakpoint)
13178 (create_std_terminate_master_breakpoint)
13179 (create_exception_master_breakpoint): Use all_objfiles.
13180 * linux-thread-db.c (try_thread_db_load_from_pdir)
13181 (has_libpthread): Use all_objfiles.
13182 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
13183 * linespec.c (iterate_over_all_matching_symtabs)
13184 (search_minsyms_for_name): Use all_objfiles.
13185 * maint.c (maintenance_info_sections): Use all_objfiles.
13186 * main.c (captured_main_1): Use all_objfiles.
13187 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
13188 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
13189 * guile/scm-pretty-print.c
13190 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
13191 * solib-spu.c (append_ocl_sos): Use all_objfiles.
13192 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
13193 (maintenance_print_msymbols): Use all_objfiles.
13194 * source.c (select_source_symtab): Use all_objfiles.
13195 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
13196 * symfile.c (remove_symbol_file_command)
13197 (expand_symtabs_matching, map_symbol_filenames): Use
13198 all_objfiles.
13199 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
13200 all_objfiles.
13201 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
13202 * objc-lang.c (find_methods): Use all_objfiles.
13203 * objfiles.c (have_partial_symbols, have_full_symbols)
13204 (have_minimal_symbols, qsort_cmp)
13205 (default_iterate_over_objfiles_in_search_order): Use
13206 all_objfiles.
13207 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
13208 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
13209 (maintenance_check_psymtabs): Use all_objfiles.
13210 (ALL_PSYMTABS): Remove.
13211 * compile/compile-object-run.c (do_module_cleanup): Use
13212 all_objfiles.
13213 * blockframe.c (find_pc_partial_function): Use all_objfiles.
13214 * cp-support.c (add_symbol_overload_list_qualified): Use
13215 all_objfiles.
13216 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13217 Use all_objfiles.
13218 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
13219 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
13220 all_objfiles.
13221 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13222 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
13223 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13224 Uses all_objfiles.
13225 * solib.c (solib_read_symbols): Use all_objfiles
13226
99d89cde
TT
132272019-01-09 Tom Tromey <tom@tromey.com>
13228
13229 * probe.c (parse_probes_in_pspace): Use all_objfiles.
13230 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
13231 all_objfiles.
13232 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
13233 * symmisc.c (print_symbol_bcache_statistics)
13234 (print_objfile_statistics, maintenance_print_objfiles)
13235 (maintenance_info_symtabs, maintenance_check_symtabs)
13236 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
13237 all_objfiles.
13238 * source.c (forget_cached_source_info): Use all_objfiles.
13239 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
13240 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13241 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
13242 * objfiles.c (update_section_map): Use all_objfiles.
13243 (shared_objfile_contains_address_p): Likewise.
13244 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
13245 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
13246
21708325
TT
132472019-01-09 Tom Tromey <tom@tromey.com>
13248
13249 * common/next-iterator.h: New file.
13250 * objfiles.h (class all_objfiles): New.
13251 (struct objfile_iterator): New.
13252
669e09f6
PW
132532019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13254
13255 * NEWS: Move the description of the changed "frame", "select-frame",
13256 and "info frame" commands to the Changed commands section.
13257
041be526
SM
132582019-01-09 Simon Marchi <simon.marchi@ericsson.com>
13259
13260 * gdbtypes.c (check_stub_method_group): Remove handling of old
13261 mangling schemes.
13262 * linespec.c (find_methods): Likewise.
13263 * stabsread.c (read_member_functions): Likewise.
13264 * valops.c (search_struct_method): Likewise.
13265 (value_struct_elt_for_reference): Likewise.
13266 * NEWS: Mention this change.
13267
0e2a2133
AB
132682019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13269
13270 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
13271 print_source_lines.
13272 * source.c (print_source_lines_base): Update line number check.
13273 (print_source_lines): New function.
13274 (source_lines_range::source_lines_range): New function.
13275 * source.h (class source_lines_range): New class.
13276 (print_source_lines): New declaration.
13277
1055a3b4
PW
132782019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13279
13280 * linespec.c (linespec_state_destructor): Free self->canonical_names.
13281
cfeadda5
TT
132822019-01-08 Tom Tromey <tom@tromey.com>
13283 Simon Marchi <simon.marchi@ericsson.com>
13284
13285 PR gdb/24060
13286 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
13287 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
13288 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13289 * f-exp.y (DOLLAR_VARIABLE): Likewise.
13290 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
13291 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13292
583068ca
AB
132932019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13294
13295 * source.c (select_source_symtab): Move header comment to
13296 declaration in source.h.
13297 (forget_cached_source_info_for_objfile): Likewise.
13298 (forget_cached_source_info): Likewise.
13299 (identify_source_line): Likewise.
13300 * source.h (identify_source_line): Move declaration from symtab.h
13301 and add comment from source.c
13302 (print_source_lines): Likewise.
13303 (forget_cached_source_info_for_objfile): Likewise.
13304 (forget_cached_source_info): Likewise.
13305 (select_source_symtab): Likewise.
13306 (enum print_source_lines_flag): Move definition from symtab.h.
13307 * symtab.h (identify_source_line): Move declaration to source.h.
13308 (print_source_lines): Likewise.
13309 (forget_cached_source_info_for_objfile): Likewise.
13310 (forget_cached_source_info): Likewise.
13311 (select_source_symtab): Likewise.
13312 (enum print_source_lines_flag): Move definition to source.h.
13313 * tui/tui-hooks.c: Add 'source.h' include.
13314
ec98a4ad
AB
133152019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13316
13317 * source.c (print_source_lines_base): Handle requests to print
13318 reverse line number sequences, and guard against empty lines
13319 string.
13320
62ea19c1
AB
133212019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13322
13323 * source.c (print_source_lines_base): Fix skip of '\r' if next
13324 character is '\n'.
13325
9d30e1fd
TT
133262019-01-06 Tom Tromey <tom@tromey.com>
13327
13328 * c-exp.y (struct c_parse_state) <macro_original_text,
13329 expansion_obstack>: New member.
13330 (macro_original_text, expansion_obstack): Remove globals.
13331 (scan_macro_expansion, scanning_macro_expansion)
13332 (finished_macro_expansion): Update.
13333 (scan_macro_cleanup): Remove.
13334 (yylex, c_parse): Update.
13335
c65bac38
TT
133362019-01-06 Tom Tromey <tom@tromey.com>
13337
13338 * c-exp.y (struct c_parse_state) <strings>: New member.
13339 (operator_stoken): Update.
13340
02e12e38
TT
133412019-01-06 Tom Tromey <tom@tromey.com>
13342
13343 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
13344 (union type_stack_elt) <typelist_val>: Now a pointer to
13345 std::vector.
13346 (type_stack_cleanup): Don't declare.
13347 (push_typelist): Update.
13348 * parse.c (pop_typelist): Return a std::vector.
13349 (push_typelist): Take a std::vector.
13350 (follow_types): Update. Do not free args.
13351 (type_stack_cleanup): Remove.
13352 * c-exp.y (struct c_parse_state): New.
13353 (cpstate): New global.
13354 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
13355 (nonempty_typelist): Update.
13356 (func_mod): Create a new vector.
13357 (c_parse): Create a c_parse_state.
13358 (check_parameter_typelist): Do not delete params.
13359 (function_method): Update. Do not delete type_list.
13360
f097f5ad
TT
133612019-01-06 Tom Tromey <tom@tromey.com>
13362
13363 PR gdb/28155:
13364 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
13365 check_typedef.
13366 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
13367 (print_return_value): Likewise.
13368
d2adf9f1
TT
133692019-01-05 Tom Tromey <tom@tromey.com>
13370
13371 * contrib/cleanup_check.py: Remove.
13372 * contrib/gcc-with-excheck: Remove.
13373 * contrib/exsummary.py: Remove.
13374 * contrib/excheck.py: Remove.
13375
2eab46b1
JB
133762019-01-05 Joel Brobecker <brobecker@adacore.com>
13377
13378 * thread.c (delete_thread_1): Add gdb_assert that THR is not
13379 NULL. Initialize tpprev to NULL instead of assigning it
13380 to NULL on the next statement.
13381 * windows-nat.c (windows_delete_thread): Remove check for
13382 main_thread_id before printing thread exit notifications.
13383 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
13384 Remove thread ID check against main_thread_id.
13385 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
13386 windows_delete_thread.
13387 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
13388
48c5e7e2
TT
133892019-01-04 Tom Tromey <tom@tromey.com>
13390
13391 * compile/compile.c (_initialize_compile): Use upper case for
13392 metasyntactic variables.
13393 * symmisc.c (_initialize_symmisc): Use upper case for
13394 metasyntactic variables.
13395 * psymtab.c (_initialize_psymtab): Use upper case for
13396 metasyntactic variables.
13397 * demangle.c (demangle_command): Use upper case for metasyntactic
13398 variables.
13399 (_initialize_demangler): Likewise.
13400 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
13401 variables.
13402
986041cd
TT
134032019-01-03 Tom Tromey <tom@tromey.com>
13404
13405 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
13406
7c711119
TT
134072019-01-03 Tom Tromey <tom@tromey.com>
13408
13409 * python/py-symtab.c (salpy_str): Update.
13410 (struct salpy_sal_object) <symtab>: Now a PyObject.
13411 (salpy_dealloc): Update.
13412 (del_objfile_sal): Use gdbpy_ref.
13413
1b20edf0
TT
134142019-01-03 Tom Tromey <tom@tromey.com>
13415
13416 * python/py-type.c (convert_field): Use new_reference. Return
13417 gdbpy_ref.
13418 (make_fielditem): Return gdbpy_ref.
13419 (typy_fields): Update.
13420 (typy_getitem): Update.
13421 (field_name): Return gdbpy_ref. Use new_reference.
13422 (typy_iterator_iternext): Update.
13423
ea41325b
TT
134242019-01-03 Tom Tromey <tom@tromey.com>
13425
13426 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
13427
2a3c71d6
TT
134282019-01-03 Tom Tromey <tom@tromey.com>
13429
13430 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
13431 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
13432 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
13433 (pspy_set_frame_filters, pspy_set_frame_unwinders)
13434 (pspy_set_type_printers): Likewise.
13435 * python/py-function.c (fnpy_init): Use gdbpy_ref.
13436 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
13437 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
13438 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
13439 (objfpy_set_type_printers): Likewise.
13440
5c329e6a
TT
134412019-01-03 Tom Tromey <tom@tromey.com>
13442
13443 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
13444 (gdbpy_print_stack): Use gdbpy_err_fetch.
13445 * python/python-internal.h (class gdbpy_err_fetch): New class.
13446 (class gdbpy_enter) <m_error_type, m_error_value,
13447 m_error_traceback>: Remove.
13448 <m_error>: New member.
13449 (gdbpy_exception_to_string): Don't declare.
13450 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
13451 * python/py-value.c (convert_value_from_python): Use
13452 gdbpy_err_fetch.
13453 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
13454 gdbpy_exception_to_string.
13455 (gdbpy_handle_exception): Use gdbpy_err_fetch.
13456 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
13457 gdbpy_err_fetch.
13458
169bb27b
AB
134592019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13460
13461 * linux-nat.c (delete_lwp_cleanup): Delete.
13462 (struct lwp_deleter): New struct.
13463 (lwp_info_up): New typedef.
13464 (linux_nat_target::follow_fork): Delete cleanup, and make use of
13465 lwp_info_up.
13466
a07c8880
AB
134672019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13468
13469 * linux-fork.c (class scoped_switch_fork_info): New class.
13470 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
13471
26089c49
AB
134722019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13473
13474 * valops.c (find_overload_match): Remove use of null_cleanup, and
13475 calls to do_cleanups.
13476
06d3e5b0
AB
134772019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13478
13479 * compile/compile-cplus-types.c
13480 (compile_cplus_instance::decl_name): Handle changes to
13481 cp_func_name.
13482 * cp-support.c (cp_func_name): Update header comment, update
13483 return type.
13484 * cp-support.h (cp_func_name): Update return type in declaration.
13485 * valops.c (find_overload_match): Move temp_func local to top
13486 level of function and change its type. Use temp_func to hold and
13487 delete temporary string obtained from cp_func_name.
13488
66644cd3
AB
134892019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13490
13491 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
13492 gdb::char_vector, remove cleanup, and update uses of `msg`.
13493
592d8c0a
JW
134942019-01-03 Jim Wilson <jimw@sifive.com>
13495
13496 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
13497
c55d06ec
TT
134982019-01-02 Tom Tromey <tom@tromey.com>
13499
13500 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
13501 (tdesc_parse_xml): Remove cleanups.
13502 * target-descriptions.h (make_cleanup_free_target_description):
13503 Don't declare.
13504 (target_desc_deleter): New struct.
13505 (target_desc_up): New typedef.
13506 * target-descriptions.c (target_desc_deleter::operator()): Rename
13507 from free_target_description.
13508 (make_cleanup_free_target_description): Remove.
13509
3a6ae42d
TT
135102019-01-02 Tom Tromey <tom@tromey.com>
13511
13512 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
13513 constructor, destructor.
13514 (linespec_parser): Remove typedef.
13515 (~linespec_parser): Rename from linespec_parser_delete.
13516 (linespec_lex_to_end, linespec_complete_label)
13517 (linespec_complete): Update.
13518 (decode_line_full): Remove cleanups.
13519 (decode_line_1): Update.
13520
61fd3e73
TT
135212019-01-02 Tom Tromey <tom@tromey.com>
13522
13523 * python/python-internal.h (inferior_to_inferior_object): Change
13524 return type.
13525 * python/py-exitedevent.c (create_exited_event_object): Update.
13526 * python/py-inferior.c (inferior_to_inferior_object): Return
13527 gdbpy_ref.
13528 (python_new_inferior, python_inferior_deleted)
13529 (thread_to_thread_object, delete_thread_object)
13530 (build_inferior_list, gdbpy_selected_inferior): Update.
13531 * python/py-infthread.c (create_thread_object): Update. Also fail
13532 if inferior_to_inferior_object fails.
13533
d20172fc
SM
135342019-01-02 Simon Marchi <simon.marchi@ericsson.com>
13535
13536 * inferior.h (class inferior) <displaced_step_state>: New field.
13537 * infrun.h (struct displaced_step_state): Move here from
13538 infrun.c. Initialize fields, add constructor.
13539 <inf>: Remove field.
13540 <reset>: New method.
13541 * infrun.c (struct displaced_step_inferior_state): Move to
13542 infrun.h.
13543 (displaced_step_inferior_states): Remove.
13544 (get_displaced_stepping_state): Adust.
13545 (displaced_step_in_progress_any_inferior): Adjust.
13546 (displaced_step_in_progress_thread): Adjust.
13547 (displaced_step_in_progress): Adjust.
13548 (add_displaced_stepping_state): Remove.
13549 (get_displaced_step_closure_by_addr): Adjust.
13550 (remove_displaced_stepping_state): Remove.
13551 (infrun_inferior_exit): Call displaced_step_state.reset.
13552 (use_displaced_stepping): Don't check for NULL.
13553 (displaced_step_prepare_throw): Call
13554 get_displaced_stepping_state.
13555 (displaced_step_fixup): Don't check for NULL.
13556 (prepare_for_detach): Don't check for NULL.
13557
e3319240
PW
135582019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13559
13560 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
13561 in case of call that did not complete.
13562
5d36dfb9
AU
135632019-01-02 Andrey Utkin <autkin@undo.io>
13564
13565 * symfile.c (find_separate_debug_file): Fix search of debug files for
13566 remote debuggee.
13567
8833fbf0
TT
135682019-01-02 Tom Tromey <tom@tromey.com>
13569
13570 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
13571 indentation.
13572 * python/py-frame.c (frapy_older): Remove cast.
13573 (frapy_newer): Likewise.
13574 * python/py-breakpoint.c (local_setattro): Remove cast.
13575 * python/py-arch.c (archpy_name): Remove local variable.
13576 * python/py-type.c (gdbpy_lookup_type): Remove cast.
13577
4ada3dfd
JB
135782019-01-02 Joel Brobecker <brobecker@adacore.com>
13579
13580 * unittests/basic_string_view/element_access/char/empty.cc:
13581 Fix year range in copyright header.
13582
113b7b81
AB
135832019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
13584
13585 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
13586 Delete.
13587 <operator==>: Update with for removed field.
13588 <hash>: Likewise.
13589 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
13590 <isa_features>: ...this.
13591 <abi_features>: New field.
13592 (riscv_isa_flen): Update comment.
13593 (riscv_abi_xlen): New declaration.
13594 (riscv_abi_flen): New declaration.
13595 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
13596 isa_features.
13597 (riscv_abi_xlen): New function.
13598 (riscv_isa_flen): Update to get answer from isa_features.
13599 (riscv_abi_flen): New function.
13600 (riscv_has_fp_abi): Update to get answer from abi_features.
13601 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
13602 xlen and flen.
13603 (riscv_call_info) <xlen, flen>: Update comment.
13604 (riscv_call_arg_struct): Remove invalid assertions
13605 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
13606 is removed.
13607 (riscv_gdbarch_init): Gather isa features and abi features
13608 separately, ensure both match on the gdbarch when reusing an old
13609 gdbarch. Relax an error check to allow 32-bit abi float to run on
13610 a target with 64-bit float hardware.
13611
b18ca514
PW
136122019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13613
13614 * source.c (search_command_helper): Stop reverse search
13615 when line 1 has been searched.
13616
ec70d8db
PW
136172019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13618
13619 * record-full.c (record_full_base_target::close): Rewrite
13620 record_full_core_buf_list free logic.
13621
5b38f9c1
PW
136222019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13623
13624 * break-catch-syscall.c (print_one_catch_syscall): xfree
13625 the last text.
13626
66d91b39
JB
136272019-01-01 Joel Brobecker <brobecker@adacore.com>
13628
13629 * top.c (print_gdb_version): Update Copyright year in version
13630 message.
13631
42a4f53d
JB
136322019-01-01 Joel Brobecker <brobecker@adacore.com>
13633
13634 Update copyright year range in all GDB files.
13635
7e955d83 136362019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 13637
5bbd631d 13638 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 13639
5bbd631d 13640For older changes see ChangeLog-2018.
c906108c
SS
13641\f
13642Local Variables:
13643mode: change-log
13644left-margin: 8
13645fill-column: 74
13646version-control: never
57da7796 13647coding: utf-8
c906108c 13648End:
5bbd631d 13649