]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
PR25070, SEGV in function _bfd_dwarf2_find_nearest_line
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
3abea05d
TT
12019-10-08 Tom Tromey <tromey@adacore.com>
2
3 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
4 (struct safe_symbol_file_add_args): Remove.
5
dde996e2
TT
62019-10-08 Tom Tromey <tromey@adacore.com>
7
8 * windows-nat.c: Don't include buildsym-legacy.h.
9
cd6fdaa1
TT
102019-10-08 Tom Tromey <tromey@adacore.com>
11
12 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
13
79bb1944
CB
142019-10-08 Christian Biesinger <cbiesinger@google.com>
15
16 * gdbtypes.c (overload_debug): Move comment to header.
17 * gdbtypes.h (overload_debug): Declare.
18 * valops.c: Remove declaration of overload_debug, instead
19 include gdbtypes.h.
20
34916edc
CB
212019-10-08 Christian Biesinger <cbiesinger@google.com>
22
23 * language.c (show_language_command): Pass lang_frame_mismatch_warn
24 through _().
25 (lang_frame_mismatch_warn): Make const, mark with N_(), and
26 move comment...
27 * language.h (lang_frame_mismatch_warn): ... here. Also add
28 declaration.
29 * top.c (lang_frame_mismatch_warn): Remove declaration.
30 (check_frame_language_change): Pass lang_frame_mismatch_warn
31 through _().
32
bad5c026
CB
332019-10-07 Christian Biesinger <cbiesinger@google.com>
34
35 * c-lang.h (vtbl_ptr_name): Declare.
36 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
37 it from the header.
38 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
39
51f1fdc3
CB
402019-10-07 Christian Biesinger <cbiesinger@google.com>
41
42 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
43 gdb_static_assert.
44
30d1f018
WP
452019-10-07 Weimin Pan <weimin.pan@oracle.com>
46
606813d5
WP
47 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
48 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
49 * ctfread.c: New file.
50 * ctfread.h: New file.
51 * elfread.c: Include ctfread.h.
52 (struct elfinfo text_p): New member ctfsect.
53 (elf_locate_sections): Mark CTF section.
54 (elf_symfile_read): Call elfctf_build_psymtabs.
55 * Makefile.in (LIBCTF): Add.
56 (CLIBS): Use it.
57 (CDEPS): Likewise.
58 (DIST): Add ctfread.c.
606813d5
WP
59
602019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
61
62 * ctfread.c (struct nextfield): Renamed to ...
63 (struct ctf_nextfield): ... this.
64 (struct field_info): Renamed to ...
65 (strut ctf_field_info): ... this.
66 (attach_fields_to_type): Update for renamed structures.
67 (ctf_add_member_cb): Likewise.
68 (ctf_add_enum_member_cb): Likewise.
69 (process_struct_members): Likewise.
70 (process_enum_type): Likewise.
30d1f018 71
518fe38c
WP
722019-10-07 Weimin Pan <weimin.pan@oracle.com>
73
74 * tracectf.h: Rename, was ctf.h.
75 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
76 * tracefile.c: Likewise.
77 * tracepoint.c: Remove unused include ctf.h.
78 * mi/mi-main.c: Likewise.
79 * Makefile.in Replace ctf.c with tracectf.c.
80
225f296a
JB
812019-10-06 Joel Brobecker <brobecker@adacore.com>
82
83 * version.in: Change version number to "9.0.50.DATE-git".
84
77c2dba3
TT
852019-10-03 Tom Tromey <tom@tromey.com>
86
87 PR rust/24976:
88 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
89
179aed7f
AB
902019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
91
92 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
93 cp_search_name_hash.
94 * NEWS: Add entry about nested function support.
95
0a4b0913
AB
962019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
97 Andrew Burgess <andrew.burgess@embecosm.com>
98
99 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
100 for nested static variables when searchin VAR_DOMAIN.
101 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
102 global scope, update comment.
103 (add_partial_subprogram): Call add_partial_subprogram recursively
104 for nested subroutines when processinng Fortran.
105 (load_partial_dies): Process the child entities of a subprogram
106 when processing Fortran.
107 (partial_die_parent_scope): Handle building scope
108 for Fortran nested functions.
109 (process_die): Record that nested functions have a scope.
110 (new_symbol): Always record Fortran subprograms on the global
111 symbol list.
112 (determine_prefix): How to build the prefix for Fortran
113 subprograms.
114
d8c06f22
AB
1152019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
116
117 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
118 have just sent the thread a SIGSTOP and are waiting for it to
119 arrive.
120
a8b3b8e9
AB
1212019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
122
123 * btrace.c (btrace_add_pc): Remove whitespace before the template
124 parameter in 'std::vector <...>'.
125 (parse_xml_btrace_block): Likewise.
126 (btrace_maint_decode_pt): Likewise.
127 (btrace_maint_update_packets): Likewise.
128 (btrace_maint_print_packets): Likewise.
129 * btrace.h (struct btrace_maint_info): Likewise.
130 * dwarf2read.c (struct type_unit_group): Likewise.
131 (build_type_psymtabs_reader): Likewise.
132 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
133 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
134 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
135
4d825eab
TV
1362019-10-03 Tom de Vries <tdevries@suse.de>
137
138 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
139 the first line of the help text for set/show style metadata.
140
80fd2826
TT
1412019-10-02 Tom Tromey <tromey@adacore.com>
142
143 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
144 * gdbsupport/common-inferior.c: New file.
145 * infcmd.c (startup_with_shell): Don't define.
146 * nat/fork-inferior.h (startup_with_shell): Don't declare.
147 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
148 * inferior.h (startup_with_shell): Don't declare.
149
70054538
CB
1502019-10-02 Christian Biesinger <cbiesinger@google.com>
151
152 * gdbsupport/gdb_assert.h: Include errors.h.
153 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
154
37f6a7f4
TT
1552019-10-02 Tom Tromey <tromey@adacore.com>
156
157 * NEWS: Add $_ada_exception entry.
158 * ada-lang.c (struct ada_catchpoint): Add constructor.
159 <m_kind>: New member.
160 (allocate_location_exception, re_set_exception): Remove
161 "ex" parameter.
162 (should_stop_exception): Compute $_ada_exception.
163 (check_status_exception, print_it_exception)
164 (print_one_exception, print_mention_exception): Remove
165 "ex" parameter.
166 (allocate_location_catch_exception, re_set_catch_exception)
167 (check_status_exception, print_it_catch_exception)
168 (print_one_catch_exception, print_mention_catch_exception)
169 (print_recreate_catch_exception)
170 (allocate_location_catch_exception_unhandled)
171 (re_set_catch_exception_unhandled)
172 (check_status_exception, print_it_catch_exception_unhandled)
173 (print_one_catch_exception_unhandled)
174 (print_mention_catch_exception_unhandled)
175 (print_recreate_catch_exception_unhandled)
176 (allocate_location_catch_assert, re_set_catch_assert)
177 (check_status_assert, print_it_catch_assert)
178 (print_one_catch_assert, print_mention_catch_assert)
179 (print_recreate_catch_assert)
180 (allocate_location_catch_handlers, re_set_catch_handlers)
181 (check_status_handlers, print_it_catch_handlers)
182 (print_one_catch_handlers, print_mention_catch_handlers)
183 (print_recreate_catch_handlers): Remove.
184 (create_ada_exception_catchpoint): Update.
185 (initialize_ada_catchpoint_ops): Update.
186
fccf9de1
TT
1872019-10-02 Tom Tromey <tromey@adacore.com>
188
189 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
190 (create_excep_cond_exprs): Simplify exception string computation.
191 (ada_exception_catchpoint_cond_string): Likewise.
192
4b610737
TT
1932019-10-02 Tom Tromey <tromey@adacore.com>
194
195 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
196 * ada-lang.c (lesseq_defined_than): Handle
197 LOC_STATIC.
198 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
199 parameter.
200 (dwarf2_has_info): Likewise.
201 (new_symbol): Set maybe_copied on symbol when
202 appropriate.
203 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
204 parameter.
205 <can_copy>: New member.
206 * elfread.c (record_minimal_symbol): Set maybe_copied
207 on symbol when appropriate.
208 (elf_symfile_read): Update call to dwarf2_has_info.
209 * minsyms.c (lookup_minimal_symbol_linkage): New
210 function.
211 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
212 * symtab.c (get_symbol_address, get_msymbol_address):
213 New functions.
214 * symtab.h (get_symbol_address, get_msymbol_address):
215 Declare.
216 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
217 maybe_copied.
218 (struct symbol, struct minimal_symbol) <maybe_copied>:
219 New member.
220
1dd58850
TT
2212019-10-02 Tom Tromey <tromey@adacore.com>
222
223 * source.c (struct current_source_location): New.
224 (current_source_key): New global.
225 (current_source_symtab, current_source_line)
226 (current_source_pspace): Remove.
227 (get_source_location): New function.
228 (get_current_source_symtab_and_line)
229 (set_default_source_symtab_and_line)
230 (set_current_source_symtab_and_line)
231 (clear_current_source_symtab_and_line, select_source_symtab)
232 (info_source_command, print_source_lines_base)
233 (info_line_command, search_command_helper, _initialize_source):
234 Update.
235
5c281dbb
TT
2362019-10-02 Tom Tromey <tromey@adacore.com>
237
238 * source.c (select_source_symtab): Don't call
239 decode_line_with_current_source.
240
d3d32391
AB
2412019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
242
243 * symtab.c (lookup_global_symbol): Search global block.
244
38583298
TT
2452019-10-02 Tom Tromey <tromey@adacore.com>
246
247 * coffread.c (process_coff_symbol): Update.
248 * dwarf2read.c (var_decode_location, new_symbol): Update.
249 * mdebugread.c (parse_symbol): Update.
250 * objfiles.c (relocate_one_symbol): Update.
251 * stabsread.c (define_symbol, fix_common_block)
252 (scan_file_globals): Update.
253 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
254 (SET_SYMBOL_VALUE_ADDRESS): New macro.
255 * xcoffread.c (process_xcoff_symbol): Update.
256
9344c18f
AA
2572019-10-02 Andreas Arnez <arnez@linux.ibm.com>
258
259 * MAINTAINERS: Update my email address.
260
df07e2c7
AB
2612019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
262
263 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
264 std::vector.
265 (build_type_psymtabs_reader): Update for std::vector.
266 (build_type_psymtab_dependencies): Likewise.
267 * dwarf2read.h: Remove use of DEF_VEC_P.
268 (typedef sig_type_ptr): Delete.
269
554ac434
AB
2702019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
271
272 * btrace.c (btrace_maint_clear): Update to handle change from VEC
273 to std::vector.
274 (btrace_maint_decode_pt): Likewise, and move allocation of the
275 vector outside of the loop.
276 (btrace_maint_update_packets): Update to handle change from VEC to
277 std::vector.
278 (btrace_maint_print_packets): Likewise.
279 (maint_info_btrace_cmd): Likewise.
280 * btrace.h: Remove use of DEF_VEC_O.
281 (typedef btrace_pt_packet_s): Delete.
282 (struct btrace_maint_info) <packets>: Change fromm VEC to
283 std::vector.
284 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
285
46f29a9a
AB
2862019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
287
288 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
289 make accesses into the vector constant references.
290 (btrace_add_pc): Update for std::vector.
291 (btrace_stitch_bts): Likewise.
292 (parse_xml_btrace_block): Likewise.
293 (btrace_maint_update_packets): Likewise.
294 (btrace_maint_print_packets): Likewise.
295 (maint_info_btrace_cmd): Likewise.
296 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
297 std::vector.
298 (btrace_data::empty): Likewise.
299 (btrace_data_append): Likewise.
300 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
301 (typedef btrace_block_s): Delete.
302 (struct btrace_block): Add constructor.
303 (struct btrace_data_bts) <blocks>: Change to std::vector.
304 * nat/linux-btrace.c (perf_event_read_bts): Update for
305 std::vector.
306 (linux_read_bts): Likewise.
307
d770d56f
TT
3082019-10-01 Tom Tromey <tom@tromey.com>
309
310 * cli/cli-logging.c (show_logging_filename): Use styled_string.
311
9d636d67
TT
3122019-10-01 Tom Tromey <tom@tromey.com>
313
314 * stack.c (print_frame, info_frame_command_core): Use
315 styled_string.
316 * linux-thread-db.c (try_thread_db_load_1)
317 (try_thread_db_load_from_pdir_1): Use styled_string.
318 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
319 (auto_load_section_scripts, info_auto_load_local_gdbinit)
320 (maybe_print_unsupported_script_warning)
321 (maybe_print_script_not_found_warning): Use styled_string.
322 * ada-lang.c (user_select_syms): Use styled_string.
323
7f6aba03
TT
3242019-10-01 Tom Tromey <tom@tromey.com>
325
326 * p-lang.c (pascal_printstr): Use metadata style.
327 * value.c (show_convenience): Use metadata style.
328 * valprint.c (valprint_check_validity, val_print_optimized_out)
329 (val_print_not_saved, val_print_unavailable)
330 (val_print_invalid_address, generic_val_print, val_print)
331 (value_check_printable, val_print_array_elements): Use metadata
332 style.
333 * ui-out.h (class ui_out) <field_fmt>: New overload.
334 <do_field_fmt>: Add style parameter.
335 * ui-out.c (ui_out::field_fmt): New overload.
336 * typeprint.c (type_print_unknown_return_type)
337 (val_print_not_allocated, val_print_not_associated): Use metadata
338 style.
339 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
340 parameter.
341 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
342 * tracepoint.c (tvariables_info_1): Use metadata style.
343 * stack.c (print_frame_arg, print_frame_info, print_frame)
344 (info_frame_command_core): Use metadata style.
345 * skip.c (info_skip_command): Use metadata style.
346 * rust-lang.c (rust_print_enum): Use metadata style.
347 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
348 metadata style.
349 * python/py-framefilter.c (py_print_single_arg): Use metadata
350 style.
351 * printcmd.c (do_one_display, print_variable_and_value): Use
352 metadata style.
353 * p-valprint.c (pascal_val_print)
354 (pascal_object_print_value_fields): Use metadata style.
355 * p-typeprint.c (pascal_type_print_base): Use metadata style.
356 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
357 parameter.
358 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
359 * m2-valprint.c (m2_print_long_set): Use metadata style.
360 * m2-typeprint.c (m2_print_type): Use metadata style.
361 * infcmd.c (print_return_value_1): Use metadata style.
362 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
363 * f-valprint.c (info_common_command_for_block): Use metadata
364 style.
365 * f-typeprint.c (f_type_print_base): Use metadata style.
366 * expprint.c (print_subexp_standard): Use metadata style.
367 * cp-valprint.c (cp_print_value_fields): Use metadata style.
368 * cli/cli-style.h (class cli_style_option): Add constructor.
369 (metadata_style): Declare.
370 * cli/cli-style.c (metadata_style): New global.
371 (_initialize_cli_style): Register metadata style.
372 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
373 parameter.
374 * cli-out.c (cli_ui_out::do_field_fmt): Update.
375 * c-typeprint.c (c_type_print_base_struct_union)
376 (c_type_print_base_1): Use metadata style.
377 * breakpoint.c (watchpoint_value_print)
378 (print_one_breakpoint_location): Use metadata style.
379 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
380 style.
381 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
382 style.
383 * ada-valprint.c (val_print_packed_array_elements, printstr)
384 (print_field_values, ada_val_print_ref, ada_val_print): Use
385 metadata style.
386 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
387 style.
388 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
389 style.
390 * ada-lang.c (user_select_syms): Use metadata style.
391
14309bb6
TT
3922019-10-01 Tom Tromey <tom@tromey.com>
393
394 * cli/cli-cmds.c (pwd_command): Style output.
395
6a831f06
PA
3962019-10-01 Pedro Alves <palves@redhat.com>
397 Tom Tromey <tom@tromey.com>
398
399 * symtab.c (print_symbol_info): Use %ps.
400 (print_msymbol_info): Use %ps.
401 * symfile.c (symbol_file_add_with_addrs): Use %ps.
402 * printcmd.c (print_variable_and_value): Use %ps.
403 * macrocmd.c (show_pp_source_pos): Use %ps.
404 * infrun.c (print_exited_reason): Use ui_out::message.
405 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
406 (describe_other_breakpoints): Use ui_out::message and new
407 formats.
408 (say_where): Use new formats.
409 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
410 and new formats.
411
2a3c1174
PA
4122019-10-01 Pedro Alves <palves@redhat.com>
413 Tom Tromey <tom@tromey.com>
414
415 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
416 (test_gdb_formats): New function.
417 (run_tests): Call it.
418 (test_format_specifier): Update.
419 * utils.h (fputs_filtered): Update comment.
420 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
421 (fputs_styled_unfiltered): Declare.
422 * utils.c (fputs_styled_unfiltered): New function.
423 (vfprintf_maybe_filtered): Add gdbfmt parameter.
424 (vfprintf_filtered): Update.
425 (vfprintf_unfiltered, vprintf_filtered): Update.
426 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
427 * ui-out.h (enum ui_out_flag) <unfiltered_output,
428 disallow_ui_out_field>: New constants.
429 (enum class field_kind): New.
430 (struct base_field_s, struct signed_field_s): New.
431 (signed_field): New function.
432 (struct string_field_s): New.
433 (string_field): New function.
434 (struct styled_string_s): New.
435 (styled_string): New function.
436 (class ui_out) <message>: Add comment.
437 <vmessage, call_do_message>: New methods.
438 <do_message>: Add style parameter.
439 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
440 methods.
441 (ui_out::message): Rewrite.
442 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
443 parameter.
444 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
445 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
446 gdb_extensions parameter.
447 (class format_piece): Add parameter to constructor.
448 (n_int_args): New field.
449 * gdbsupport/format.c (format_pieces::format_pieces): Add
450 gdb_extensions parameter. Handle '*'.
451 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
452 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
453 vfprintf_styled_no_gdbfmt.
454 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
455 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
456 unfiltered output.
457 * ui-style.h (struct ui_file_style) <ptr>: New method.
458
0dfe5bfb
TT
4592019-10-01 Tom Tromey <tom@tromey.com>
460
461 * unittests/format_pieces-selftests.c: Update. Add final format.
462 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
463 empty literal pieces.
464
e43b10e1
TT
4652019-10-01 Tom Tromey <tom@tromey.com>
466
467 * ui-out.h (enum class ui_out_style_kind): Remove.
468 (class ui_out) <field_string, field_stsream, do_field_string>:
469 Change type of "style".
470 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
471 (ui_out::field_string): Update.
472 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
473 of "style".
474 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
475 * tracepoint.c (print_one_static_tracepoint_marker): Update.
476 * stack.c (print_frame_arg, print_frame_info, print_frame):
477 Update.
478 * source.c (print_source_lines_base): Update.
479 * solib.c (info_sharedlibrary_command): Update.
480 * skip.c (info_skip_command): Update.
481 * record-btrace.c (btrace_call_history_src_line)
482 (btrace_call_history): Update.
483 * python/py-framefilter.c (py_print_frame): Update.
484 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
485 "style".
486 * mi/mi-out.c (mi_ui_out::do_table_header)
487 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
488 (mi_ui_out::do_field_string): Update.
489 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
490 Update.
491 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
492 "style".
493 * cli-out.c (cli_ui_out::do_table_header)
494 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
495 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
496 (cli_ui_out::do_field_fmt): Update.
497 * breakpoint.c (print_breakpoint_location): Update.
498 (update_static_tracepoint): Update.
499
cd7c32c3
PW
5002019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
501
502 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
503 conversion of gdb_datadir.
504 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
505 remove not needed c_str ().
506
8fe0f950
AT
5072019-09-30 Ali Tamur <tamur@google.com>
508
509 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
510 (dwarf2_string_attr): Likewise.
511
5f48f8f3
AT
5122019-09-30 Ali Tamur <tamur@google.com>
513
514 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
515 (process_full_type_unit): Likewise.
516 (dump_die_shallow): Likewise.
517 (cu_debug_loc_section): Likewise.
518
6fb08628
CB
5192019-09-28 Christian Biesinger <cbiesinger@google.com>
520
521 * minsyms.c (compare_minimal_symbols): Rename to...
522 (minimal_symbol_is_less_than): ...this, and adjust to STL
523 conventions (return bool, take arguments as references)
524 (minimal_symbol_reader::install): Call std::sort instead
525 of qsort.
526
c7ee338a
CB
5272019-09-29 Christian Biesinger <cbiesinger@google.com>
528
529 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
530 hash and why.
531 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
532 msymbol_hash, msymbol_demangled_hash>: Improve comments.
533
703a86c2
SM
5342019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
535
536 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
537 * psympriv.h (add_psymbol_to_list): Move comment here and update
538 it.
539
0df0352a
TV
5402019-09-29 Tom de Vries <tdevries@suse.de>
541
542 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
543 Use $tmpdir/$(basename "$output_file").dwz instead of
544 "${output_file}.dwz".
545
ad75efa6
SM
5462019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
547
548 PR gdb/25045
549 * hppa-linux-nat.c: Include gdbarch.h.
550
ececd218
CB
5512019-09-26 Christian Biesinger <cbiesinger@google.com>
552
553 * blockframe.c (find_pc_partial_function): Change return type to bool.
554 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
555 * minsyms.c (in_gnu_ifunc_stub): Likewise.
556 (stub_gnu_ifunc_resolve_name): Likewise.
557 * symtab.c (compare_filenames_for_search): Likewise.
558 (compare_glob_filenames_for_search): Likewise.
559 (matching_obj_sections): Likewise.
560 (symbol_matches_domain): Likewise.
561 (find_line_symtab): Change out param EXACT_MATCH to bool *.
562 (find_line_pc): Change return type to bool.
563 (find_line_pc_range): Likewise.
564 (producer_is_realview): Likewise.
565 * symtab.h (symbol_matches_domain): Likewise.
566 (find_pc_partial_function): Likewise.
567 (find_pc_line_pc_range): Likewise.
568 (in_gnu_ifunc_stub): Likewise.
569 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
570 (find_line_pc): Likewise.
571 (find_line_pc_range): Likewise.
572 (matching_obj_sections): Likewise.
573 (find_line_symtab): Change out parameter to bool.
574 (producer_is_realview): Change return type to bool.
575 (compare_filenames_for_search): Likewise.
576 (compare_glob_filenames_for_search): Likewise.
577
27a900b8
TT
5782019-09-26 Tom Tromey <tom@tromey.com>
579
580 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
581 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
582 * gdb_usleep.h: Remove.
583 * gdb_usleep.c: Remove.
584 * utils.c: Don't include gdb_usleep.h.
585
5d63b30a
TT
5862019-09-26 Tom Tromey <tromey@adacore.com>
587
588 * python/py-type.c (type_to_type_object): Call check_typedef
589 for stub types.
590
12904d37
TT
5912019-09-26 Tom Tromey <tom@tromey.com>
592
593 * utils.h (initialize_utils): Don't declare.
594 * top.c (gdb_init): Don't call initialize_utils.
595 * utils.c (initialize_utils): Remove. Move contents...
596 (_initialize_utils): ... here.
597
858f25f0
TT
5982019-09-25 Tom Tromey <tom@tromey.com>
599
600 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
601 * utils.h (make_hex_string): Don't declare.
602 * utils.c (make_hex_string): Remove.
603
3d435220
TV
6042019-09-24 Tom de Vries <tdevries@suse.de>
605
606 PR gdb/23815
607 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
608 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
609
ddd44b70
DD
6102019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
611
612 * NEWS: Mention new simulator port for PRU.
613
f945dedf
CB
6142019-09-23 Christian Biesinger <cbiesinger@google.com>
615
616 * ada-exp.y (write_object_remaining): Update.
617 * ada-lang.c (ada_decode): Return a std::string instead of a char*
618 and eliminate the static buffer.
619 (ada_decode_symbol): Update.
620 (ada_la_decode): Update.
621 (ada_sniff_from_mangled_name): Update.
622 (is_valid_name_for_wild_match): Update.
623 (ada_lookup_name_info::matches): Update and simplify.
624 (name_matches_regex): Update.
625 (ada_add_global_exceptions): Update.
626 * ada-lang.h (ada_decode): Update signature.
627 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
628 * dwarf-index-write.c (debug_names::insert): Update.
629
7ab78ccb
SM
6302019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
631
632 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
633 formatting.
634
9252448b
SM
6352019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
636
637 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
638 Change "nonzero" to "true" in documentation.
639
626ca2c0
CB
6402019-09-20 Christian Biesinger <cbiesinger@google.com>
641
642 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
643 (_initialize_darwin_solib): Don't set
644 darwin_so_ops.lookup_lib_global_symbol.
645 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
646 set_gdbarch_iterate_over_objfiles_in_search_order.
647 (elf_lookup_lib_symbol): Rename to...
648 (svr4_iterate_over_objfiles_in_search_order): this, and update
649 to iterate semantics.
650 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
651 * solib.c (solib_global_lookup): Remove.
652 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
653 (solib_global_lookup): Remove.
654 * symtab.c (lookup_global_or_static_symbol): Remove call to
655 solib_global_lookup.
656
5a3a0d63
JB
6572019-09-20 Joel Brobecker <brobecker@adacore.com>
658
659 * NEWS: Move entries about default MI version now being
660 version 3, and about the GDB/MI fix for multi-location
661 breakpoints to the "since GDB 8.3" section.
662
ffea1427
JB
6632019-09-20 Joel Brobecker <brobecker@adacore.com>
664
665 GDB 8.3.1 released.
666
abf516c6
UW
6672019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
668
669 * NEWS: Mention that Cell/B.E. debugging support was removed.
670 * MAINTAINERS: Remove spu target.
671
672 * config/djgpp/fnchange.lst: Remove entries for removed files.
673
674 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
675 spu-multiarch.o, and spu-tdep.o.
676 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
677 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
678 spu-multiarch.c, and spu-tdep.c.
679 * spu-linux-nat.c: Remove file.
680 * spu-multiarch.c: Remove file.
681 * spu-tdep.c: Remove file.
682 * spu-tdep.h: Remove file.
683 * solib-spu.c: Remove file.
684 * solib-spu.h: Remove file.
685
686 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
687 * configure.nat (spu-linux): Remove.
688 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
689 solib-multiarch.o from gdb_target_obs.
690 (spu*-*-*): Remove.
691
692 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
693 feature flag.
694 (ppc_linux_no_features): Update.
695 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
696 Cell/B.E. support.
697 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
698 (tdesc_powerpc_cell64l): Likewise.
699 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
700 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
701 Cell/B.E. support.
702 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
703 Do not include "features/rs6000/powerpc-cell32l.c" or
704 "features/rs6000/powerpc-cell64l.c".
705 (ppc_linux_spu_section): Remove.
706 (ppc_linux_core_read_description): Remove Cell/B.E. support.
707 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
708 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
709 (ppc_linux_spe_context_lookup): Remove.
710 (ppc_linux_spe_context_inferior_created): Remove.
711 (ppc_linux_spe_context_solib_loaded): Remove.
712 (ppc_linux_spe_context_solib_unloaded): Remove.
713 (ppc_linux_spe_context): Remove.
714 (struct ppu2spu_cache): Remove.
715 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
716 (struct ppu2spu_data): Remove.
717 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
718 ppu2spu_unwind): Remove.
719 (ppc_linux_init_abi): Remove Cell/B.E. support.
720 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
721
722 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
723 (rs6000/powerpc-cell64l-expedite): Likewise
724 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
725 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
726 rs6000/powerpc-cell64l.xml.
727 * features/rs6000/powerpc-cell32l.xml: Remove.
728 * features/rs6000/powerpc-cell64l.xml: Likewise.
729 * features/rs6000/powerpc-cell32l.c: Remove generated file.
730 * features/rs6000/powerpc-cell64l.c: Likewise.
731 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
732 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
733 * regformats/reg-spu.dat: Remove.
734
735 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
736 * corelow.c (struct spuid_list): Remove.
737 (add_to_spuid_list): Remove.
738 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
739 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
740 (remote_protocol_features): Remove associated entries.
741 (_initialize_remote): No longer initialize them.
742 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
743 * linux-nat.c (SPUFS_MAGIC): Remove.
744 (linux_proc_xfer_spu): Remove.
745 (spu_enumerate_spu_ids): Remove.
746 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
747 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
748 (linux_make_corefile_notes): No longer call it.
749
750 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
751 (cooked_write_test): Likewise.
752
78e8cb91
TT
7532019-09-20 Tom Tromey <tom@tromey.com>
754
755 * NEWS: Mention case-sensitivity of TUI commands.
756 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
757 (tui_set_win_height_command, parse_scrolling_args): Likewise.
758 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
759
f074b67e
TT
7602019-09-20 Tom Tromey <tom@tromey.com>
761
762 * tui/tui-source.c (tui_source_window::set_contents): Use
763 make_unique_xstrdup.
764 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
765 make_unique_xstrdup.
766
63c4bf19
TT
7672019-09-20 Tom Tromey <tom@tromey.com>
768
769 * tui/tui-data.c: Remove separator comments.
770 * tui/tui-layout.c: Remove separator comments.
771 * tui/tui-win.c: Remove separator comments.
772 * tui/tui-wingeneral.c: Remove separator comments.
773
43df9b2f
TT
7742019-09-20 Tom Tromey <tom@tromey.com>
775
776 * tui/tui.h (strcat_to_buf): Don't declare.
777 * tui/tui.c (strcat_to_buf): Remove.
778
7226433c
TT
7792019-09-20 Tom Tromey <tom@tromey.com>
780
781 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
782 from "fullname".
783 * tui/tui-source.c (tui_source_window::set_contents)
784 (tui_source_window::location_matches_p)
785 (tui_source_window::maybe_update): Update.
786
80df3337
TT
7872019-09-20 Tom Tromey <tom@tromey.com>
788
789 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
790 Update.
791 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
792 prefix.
793 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
794 (tui_data_window::line_from_reg_element_no)
795 (tui_data_window::first_reg_element_no_inline)
796 (tui_data_window::show_registers)
797 (tui_data_window::show_register_group)
798 (tui_data_window::display_registers_from)
799 (tui_data_window::display_registers_from_line)
800 (tui_data_window::first_data_item_displayed)
801 (tui_data_window::delete_data_content_windows)
802 (tui_data_window::erase_data_content)
803 (tui_data_window::do_scroll_vertical)
804 (tui_data_window::refresh_window)
805 (tui_data_window::check_register_values): Update.
806
9923f347
TT
8072019-09-20 Tom Tromey <tom@tromey.com>
808
809 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
810 (struct tui_locator_window) <full_name, proc_name>: Now
811 std::string.
812 * tui/tui-stack.c (tui_locator_window::make_status_line)
813 (tui_locator_window::set_locator_fullname)
814 (tui_locator_window::set_locator_info): Update.
815 * tui/tui-source.c (tui_source_window::set_contents)
816 (tui_source_window::showing_source_p): Update.
817
b76251ab
TT
8182019-09-20 Tom Tromey <tom@tromey.com>
819
820 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
821 Don't call tui_locator_win_info_ptr.
822
0891be08
TT
8232019-09-20 Tom Tromey <tom@tromey.com>
824
825 * tui/tui-win.c (tui_resize_all): Don't call refresh.
826
1b935acf
TT
8272019-09-20 Tom Tromey <tom@tromey.com>
828
829 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
830 height for locator.
831 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
832 * tui/tui-layout.c (show_source_disasm_command, show_data)
833 (show_source_or_disasm_and_command): Use 1 as height for locator.
834
9abd8a65
TT
8352019-09-20 Tom Tromey <tom@tromey.com>
836
837 * tui/tui.c (tui_enable): Update.
838 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
839 Update.
840 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
841 Update.
842 * tui/tui-data.c (win_resized): Now bool.
843 (tui_win_resized): Return bool.
844 (tui_set_win_resized_to): Accept a bool.
845
b5457826
TT
8462019-09-20 Tom Tromey <tom@tromey.com>
847
848 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
849 Change type of "refresh_values_only".
850 * tui/tui-regs.c (tui_data_window::show_register_group): Change
851 type of "refresh_values_only".
852
6b915f7d
TT
8532019-09-20 Tom Tromey <tom@tromey.com>
854
855 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
856 std::string.
857 (tui_disassemble): Add "pos" parameter.
858 (tui_disasm_window::set_contents): Simplify.
859
2ad52f6f
TT
8602019-09-20 Tom Tromey <tom@tromey.com>
861
862 * tui/tui-winsource.h (struct tui_source_window_base)
863 <show_source_content>: Now private.
864 * tui/tui-winsource.c
865 (tui_source_window_base::show_source_content): Don't handle empty
866 content case.
867
b3b1bde6
TT
8682019-09-20 Tom Tromey <tom@tromey.com>
869
870 * tui/tui-layout.c (show_source_disasm_command)
871 (show_source_or_disasm_and_command): Don't call
872 show_source_content.
873
71a25ed2
TT
8742019-09-20 Tom Tromey <tom@tromey.com>
875
876 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
877 Declare.
878 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
879 from tui_make_status_line.
880 (tui_locator_window::rerender): Update.
881
f8532154
TT
8822019-09-20 Tom Tromey <tom@tromey.com>
883
884 * tui/tui-stack.c (tui_make_status_line): Return std::string.
885 (tui_locator_window::rerender): Update.
886
2d81b349
TT
8872019-09-20 Tom Tromey <tom@tromey.com>
888
889 * tui/tui-winsource.h (struct tui_source_window_base)
890 <~tui_source_window_base>: Don't declare.
891 <fullname>: Remove.
892 * tui/tui-winsource.c (~tui_source_window_base): Remove.
893 * tui/tui-source.h (struct tui_source_window) <fullname>: New
894 member.
895 * tui/tui-source.c (tui_source_window::set_contents): Update.
896 (tui_source_window::location_matches_p)
897 (tui_source_window::maybe_update): Update.
898
f14bec58
TT
8992019-09-20 Tom Tromey <tom@tromey.com>
900
901 * tui/tui-winsource.h (~tui_source_element): Remove.
902 (tui_source_element): Update.
903 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
904 * tui/tui-winsource.c (tui_show_source_line): Update.
905 * tui/tui-source.c (tui_source_window::set_contents): Update.
906 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
907
78d5933a
TT
9082019-09-20 Tom Tromey <tom@tromey.com>
909
910 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
911 declare.
912 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
913 tui_clear_source_windows_detail.
914 * tui/tui-winsource.h (struct tui_source_window_base)
915 <clear_detail>: Don't declare.
916 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
917 Remove.
918 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
919
d4207696
TT
9202019-09-20 Tom Tromey <tromey@adacore.com>
921
922 PR ada/24919:
923 * block.c (contained_in): Fix final return value.
924
00f93c44
AM
9252019-09-20 Alan Modra <amodra@gmail.com>
926
927 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
928 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
929 (read_indirect_string_from_dwz): Use bfd accessor.
930 * dwarf2read.h (struct dwz_file <filename>): Likewise.
931 * machoread.c (macho_symfile_read_all_oso): Likewise.
932 * solib.c (solib_bfd_open): Likewise.
933
e4153ae6
CB
9342019-09-19 Christian Biesinger <cbiesinger@google.com>
935
936 * eval.c: Move declaration of overload_resolution to...
937 * value.h: ...here.
938
c7ae7675
CB
9392019-09-19 Christian Biesinger <cbiesinger@google.com>
940
941 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
942 * arm-linux-tdep.c: Likewise.
943 * arm-nbsd-nat.c: Likewise.
944 * arm-tdep.h: Declare arm_apcs_32.
945 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
946
e86f08d2
CB
9472019-09-19 Christian Biesinger <cbiesinger@google.com>
948
949 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
950 * dwarf2read.h: Declare dwarf_always_disassemble.
951
f64e2f40
TV
9522019-09-19 Tom de Vries <tdevries@suse.de>
953
954 PR gdb/25009
955 * source-cache.c (source_cache::ensure): Catch exception thrown during
956 construction of the highlighter.
957
fd361982
AM
9582019-09-18 Alan Modra <amodra@gmail.com>
959
960 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
961 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
962 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
963 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
964 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
965 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
966 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
967 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
968 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
969 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
970 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
971 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
972 * solib-spu.c, * solib-svr4.c, * solib-target.c,
973 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
974 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
975 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
976 * mi/mi-interp.c: Update throughout for bfd section macro and
977 function changes.
978 * gcore (gcore_create_callback): Use bfd_set_section_lma.
979 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
980
11061048
TT
9812019-09-18 Tom Tromey <tom@tromey.com>
982
983 * NEWS: Add entry.
984 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
985 call rl_initialize.
986 (tui_enable): Do not call rl_initialize.
987
7a27b85f
CG
9882019-09-18 Christian Groessler <chris@groessler.org>
989
990 * alpha-linux-nat.c: Include gdbarch.h.
991
f64eea3a
SM
9922019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
993
994 * ui-file.c: Include cli/cli-style.h.
995 (term_cli_styling): Remove cli_styling declaration.
996
e6f7f6d1
AM
9972019-09-18 Alan Modra <amodra@gmail.com>
998
999 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
1000 to bfd_asymbol_section.
1001
1d38e9d1
AM
10022019-09-18 Alan Modra <amodra@gmail.com>
1003
1004 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
1005 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
1006 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
1007
90d92a63
AM
10082019-09-18 Alan Modra <amodra@gmail.com>
1009
1010 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
1011 * spu-linux-nat.c (spu_bfd_open): Likewise.
1012
a3d181d2
CB
10132019-09-18 Christian Biesinger <cbiesinger@google.com>
1014
1015 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
1016 to bool to match definition in dwarf2read.c.
1017
491144b5
CB
10182019-09-17 Christian Biesinger <cbiesinger@google.com>
1019
1020 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
1021 (print_signatures): Likewise.
1022 (trust_pad_over_xvs): Likewise.
1023 * arch/aarch64-insn.c (aarch64_debug): Likewise.
1024 * arch/aarch64-insn.h (aarch64_debug): Likewise.
1025 * arm-linux-nat.c (arm_apcs_32): Likewise.
1026 * arm-linux-tdep.c (arm_apcs_32): Likewise.
1027 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
1028 * arm-tdep.c (arm_debug): Likewise.
1029 (arm_apcs_32): Likewise.
1030 * auto-load.c (debug_auto_load): Likewise.
1031 (auto_load_gdb_scripts): Likewise.
1032 (global_auto_load): Likewise.
1033 (auto_load_local_gdbinit): Likewise.
1034 (auto_load_local_gdbinit_loaded): Likewise.
1035 * auto-load.h (global_auto_load): Likewise.
1036 (auto_load_local_gdbinit): Likewise.
1037 (auto_load_local_gdbinit_loaded): Likewise.
1038 * breakpoint.c (disconnected_dprintf): Likewise.
1039 (breakpoint_proceeded): Likewise.
1040 (automatic_hardware_breakpoints): Likewise.
1041 (always_inserted_mode): Likewise.
1042 (target_exact_watchpoints): Likewise.
1043 (_initialize_breakpoint): Update.
1044 * breakpoint.h (target_exact_watchpoints): Change to bool.
1045 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
1046 * cli/cli-cmds.c (trace_commands): Likewise.
1047 * cli/cli-cmds.h (trace_commands): Likewise.
1048 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
1049 to bool*.
1050 * cli/cli-logging.c (logging_overwrite): Change to bool.
1051 (logging_redirect): Likewise.
1052 (debug_redirect): Likewise.
1053 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
1054 (struct boolean_option_def) <get_var_address_cb_>: Change return type
1055 to bool.
1056 <boolean_option_def>: Update.
1057 (struct flag_option_def): Change default type of Context to bool
1058 from int.
1059 <flag_option_def>: Change return type of var_address_cb_ to bool*.
1060 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
1061 (get_setshow_command_value_string): Likewise.
1062 * cli/cli-style.c (cli_styling): Change to bool.
1063 (source_styling): Likewise.
1064 * cli/cli-style.h (source_styling): Likewise.
1065 (cli_styling): Likewise.
1066 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
1067 to bool.
1068 * command.h (var_types): Update comment.
1069 (add_setshow_boolean_cmd): Change int* var argument to bool*.
1070 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
1071 bool.
1072 (debug_compile_cplus_scopes): Likewise.
1073 * compile/compile-internal.h (compile_debug): Likewise.
1074 * compile/compile.c (compile_debug): Likewise.
1075 (struct compile_options) <raw>: Likewise.
1076 * cp-support.c (catch_demangler_crashes): Likewise.
1077 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
1078 (usr_cmd_cris_dwarf2_cfi): Likewise.
1079 * csky-tdep.c (csky_debug): Likewise.
1080 * darwin-nat.c (enable_mach_exceptions): Likewise.
1081 * dcache.c (dcache_enabled_p): Likewise.
1082 * defs.h (info_verbose): Likewise.
1083 * demangle.c (demangle): Likewise.
1084 (asm_demangle): Likewise.
1085 * dwarf-index-cache.c (debug_index_cache): Likewise.
1086 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
1087 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
1088 * dwarf2read.c (check_physname): Likewise.
1089 (use_deprecated_index_sections): Likewise.
1090 (dwarf_always_disassemble): Likewise.
1091 * eval.c (overload_resolution): Likewise.
1092 * event-top.c (set_editing_cmd_var): Likewise.
1093 (exec_done_display_p): Likewise.
1094 * event-top.h (set_editing_cmd_var): Likewise.
1095 (exec_done_display_p): Likewise.
1096 * exec.c (write_files): Likewise.
1097 * fbsd-nat.c (debug_fbsd_lwp): Likewise
1098 (debug_fbsd_nat): Likewise.
1099 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
1100 Likewise.
1101 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
1102 <backtrace_past_entry> Likewise.
1103 * gdb-demangle.h (demangle): Likewise.
1104 (asm_demangle): Likewise.
1105 * gdb_bfd.c (bfd_sharing): Likewise.
1106 * gdbcore.h (write_files): Likewise.
1107 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
1108 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
1109 * gdbthread.h (print_thread_events): Likewise.
1110 * gdbtypes.c (opaque_type_resolution): Likewise.
1111 (strict_type_checking): Likewise.
1112 * gnu-nat.c (gnu_debug_flag): Likewise.
1113 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
1114 * guile/scm-param.c (pascm_variable): Add boolval.
1115 (add_setshow_generic): Update.
1116 (pascm_param_value): Update.
1117 (pascm_set_param_value_x): Update.
1118 * hppa-tdep.c (hppa_debug): Change to bool..
1119 * infcall.c (may_call_functions_p): Likewise.
1120 (coerce_float_to_double_p): Likewise.
1121 (unwind_on_signal_p): Likewise.
1122 (unwind_on_terminating_exception_p): Likewise.
1123 * infcmd.c (startup_with_shell): Likewise.
1124 * inferior.c (print_inferior_events): Likewise.
1125 * inferior.h (startup_with_shell): Likewise.
1126 (print_inferior_events): Likewise.
1127 * infrun.c (step_stop_if_no_debug): Likewise.
1128 (detach_fork): Likewise.
1129 (debug_displaced): Likewise.
1130 (disable_randomization): Likewise.
1131 (non_stop): Likewise.
1132 (non_stop_1): Likewise.
1133 (observer_mode): Likewise.
1134 (observer_mode_1): Likewise.
1135 (set_observer_mode): Update.
1136 (sched_multi): Change to bool.
1137 * infrun.h (debug_displaced): Likewise.
1138 (sched_multi): Likewise.
1139 (step_stop_if_no_debug): Likewise.
1140 (non_stop): Likewise.
1141 (disable_randomization): Likewise.
1142 * linux-tdep.c (use_coredump_filter): Likewise.
1143 (dump_excluded_mappings): Likewise.
1144 * linux-thread-db.c (auto_load_thread_db): Likewise.
1145 (check_thread_db_on_load): Likewise.
1146 * main.c (captured_main_1): Update.
1147 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
1148 xx2_opt, boolean_opt>: Change to bool.
1149 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
1150 * maint.c (maintenance_profile_p): Likewise.
1151 (per_command_time): Likewise.
1152 (per_command_space): Likewise.
1153 (per_command_symtab): Likewise.
1154 * memattr.c (inaccessible_by_default): Likewise.
1155 * mi/mi-main.c (mi_async): Likewise.
1156 (mi_async_1): Likewise.
1157 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
1158 * nat/fork-inferior.h (startup_with_shell): Likewise.
1159 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
1160 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
1161 * nios2-tdep.c (nios2_debug): Likewise.
1162 * or1k-tdep.c (or1k_debug): Likewise.
1163 * parse.c (parser_debug): Likewise.
1164 * parser-defs.h (parser_debug): Likewise.
1165 * printcmd.c (print_symbol_filename): Likewise.
1166 * proc-api.c (procfs_trace): Likewise.
1167 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
1168 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
1169 (set_parameter_value): Update.
1170 (add_setshow_generic): Update.
1171 * python/py-value.c (copy_py_bool_obj): Change argument from int*
1172 to bool*.
1173 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
1174 int*.
1175 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
1176 * record-btrace.c (record_btrace_target::store_registers): Update.
1177 * record-full.c (record_full_memory_query): Change to bool.
1178 (record_full_stop_at_limit): Likewise.
1179 * record-full.h (record_full_memory_query): Likewise.
1180 * remote-notif.c (notif_debug): Likewise.
1181 * remote-notif.h (notif_debug): Likewise.
1182 * remote.c (use_range_stepping): Likewise.
1183 (interrupt_on_connect): Likewise.
1184 (remote_break): Likewise.
1185 * ser-tcp.c (tcp_auto_retry): Likewise.
1186 * ser-unix.c (serial_hwflow): Likewise.
1187 * skip.c (debug_skip): Likewise.
1188 * solib-aix.c (solib_aix_debug): Likewise.
1189 * spu-tdep.c (spu_stop_on_load_p): Likewise.
1190 (spu_auto_flush_cache_p): Likewise.
1191 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
1192 Likewise.
1193 (struct info_print_options) <quiet>: Likewise.
1194 * symfile-debug.c (debug_symfile): Likewise.
1195 * symfile.c (auto_solib_add): Likewise.
1196 (separate_debug_file_debug): Likewise.
1197 * symfile.h (auto_solib_add): Likewise.
1198 (separate_debug_file_debug): Likewise.
1199 * symtab.c (basenames_may_differ): Likewise.
1200 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
1201 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
1202 (struct info_types_options) <quiet>: Likewise.
1203 * symtab.h (demangle): Likewise.
1204 (basenames_may_differ): Likewise.
1205 * target-dcache.c (stack_cache_enabled_1): Likewise.
1206 (code_cache_enabled_1): Likewise.
1207 * target.c (trust_readonly): Likewise.
1208 (may_write_registers): Likewise.
1209 (may_write_memory): Likewise.
1210 (may_insert_breakpoints): Likewise.
1211 (may_insert_tracepoints): Likewise.
1212 (may_insert_fast_tracepoints): Likewise.
1213 (may_stop): Likewise.
1214 (auto_connect_native_target): Likewise.
1215 (target_stop_and_wait): Update.
1216 (target_async_permitted): Change to bool.
1217 (target_async_permitted_1): Likewise.
1218 (may_write_registers_1): Likewise.
1219 (may_write_memory_1): Likewise.
1220 (may_insert_breakpoints_1): Likewise.
1221 (may_insert_tracepoints_1): Likewise.
1222 (may_insert_fast_tracepoints_1): Likewise.
1223 (may_stop_1): Likewise.
1224 * target.h (target_async_permitted): Likewise.
1225 (may_write_registers): Likewise.
1226 (may_write_memory): Likewise.
1227 (may_insert_breakpoints): Likewise.
1228 (may_insert_tracepoints): Likewise.
1229 (may_insert_fast_tracepoints): Likewise.
1230 (may_stop): Likewise.
1231 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
1232 (make_thread_apply_all_options_def_group): Change argument from int*
1233 to bool*.
1234 (thread_apply_all_command): Update.
1235 (print_thread_events): Change to bool.
1236 * top.c (confirm): Likewise.
1237 (command_editing_p): Likewise.
1238 (history_expansion_p): Likewise.
1239 (write_history_p): Likewise.
1240 (info_verbose): Likewise.
1241 * top.h (confirm): Likewise.
1242 (history_expansion_p): Likewise.
1243 * tracepoint.c (disconnected_tracing): Likewise.
1244 (circular_trace_buffer): Likewise.
1245 * typeprint.c (print_methods): Likewise.
1246 (print_typedefs): Likewise.
1247 * utils.c (debug_timestamp): Likewise.
1248 (sevenbit_strings): Likewise.
1249 (pagination_enabled): Likewise.
1250 * utils.h (sevenbit_strings): Likewise.
1251 (pagination_enabled): Likewise.
1252 * valops.c (overload_resolution): Likewise.
1253 * valprint.h (struct value_print_options) <prettyformat_arrays,
1254 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
1255 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
1256 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
1257 Likewise.
1258 * windows-nat.c (new_console): Likewise.
1259 (cygwin_exceptions): Likewise.
1260 (new_group): Likewise.
1261 (debug_exec): Likewise.
1262 (debug_events): Likewise.
1263 (debug_memory): Likewise.
1264 (debug_exceptions): Likewise.
1265 (useshell): Likewise.
1266 * windows-tdep.c (maint_display_all_tib): Likewise.
1267 * xml-support.c (debug_xml): Likewise.
1268
f1b620e9
MG
12692019-09-17 Mike Gulick <mgulick@mathworks.com>
1270
1271 * source.c (prepare_path_for_appending): New function.
1272 (openp): Make use of new function.
1273 (find_and_open_source): Search for the compilation directory and
1274 source file as a relative path beneath the directory search path.
1275
67f3ed6a
AB
12762019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
1277
1278 * source-cache.c (source_cache::get_line_charpos): Catch
1279 exceptions and return false, this matches the behaviour documented
1280 in the header file.
1281
74332189
JB
12822019-09-17 Joel Brobecker <brobecker@adacore.com>
1283
1284 * ada-tasks.c (info_task): Remove quoting of the task's name.
1285
f2f24aa9
CB
12862019-09-16 Christian Biesinger <cbiesinger@google.com>
1287
1288 * symfile.c (auto_solib_add): Replace comment with a reference
1289 to the header file.
1290
6a062a93
CB
12912019-09-14 Christian Biesinger <cbiesinger@google.com>
1292
1293 * NEWS: Mention that gdb can now be compiled with Python 3
1294 on Windows.
1295
ec6c8338
AB
12962019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1297
1298 * maint.c (maint_print_section_data::maint_print_section_data):
1299 Force use of 'float log10 (float)' by casting the argument to
1300 float.
1301
aa17805f
AB
13022019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1303
1304 * maint.c: Add 'cmath' include.
1305 (struct maint_print_section_data): New structure.
1306 (print_section_index): New function.
1307 (print_bfd_section_info): Add header comment, small whitespace
1308 cleanup, and update to call new print_section_index function.
1309 (print_objfile_section_info): Likewise.
1310 (maint_obj_section_from_bfd_section): New function.
1311 (print_bfd_section_info_maybe_relocated): New function.
1312 (maintenance_info_sections): Add header comment, always use
1313 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
1314
3dd9bb46
AB
13152019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1316
1317 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
1318 inner scope, add check that the objfile has psymtabs before
1319 checking psymtabs_addrmap.
1320 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
1321
4993045d
PW
13222019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1323
1324 * NEWS: Announce that Ada task names are now shown at more places,
1325 and between quotes (except in info task output).
1326 * gdb/ada-tasks.c (task_to_str): New function.
1327 (display_current_task_id): Call task_to_str.
1328 (task_command_1): Likewise.
1329 (print_ada_task_info): In non-mi mode, Properly align headers and data
1330 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
1331
7a289707
RO
13322019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1333
1334 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
1335 prstatus.pr_lwp.pr_info instead of making it up.
1336
f2aec7f6
CB
13372019-09-11 Christian Biesinger <cbiesinger@google.com>
1338
1339 * auto-load.c (auto_load_expand_dir_vars): Update.
1340 * defs.h (gdb_datadir): Change to std::string.
1341 (python_libdir): Likewise.
1342 (relocate_gdb_directory): Change return type to std::string.
1343 * guile/guile.c (gdbscm_data_directory): Update.
1344 (initialize_scheme_side): Update.
1345 * jit.c (jit_reader_dir): Change to std::string.
1346 (jit_reader_load_command): Update.
1347 * main.c (gdb_datadir): Change to std::string.
1348 (python_libdir): Likewise.
1349 (set_gdb_data_directory): Update.
1350 (relocate_path): Change to return std::string.
1351 (relocate_gdb_directory): Change to return std::string.
1352 (relocate_gdbinit_path_maybe_in_datadir): Update.
1353 (captured_main_1): Update.
1354 * python/python.c (do_start_initialization): Update.
1355 * top.c (show_gdb_datadir): Update.
1356 * xml-syscall.c (xml_init_syscalls_info): Update.
1357 (init_syscalls_info): Update.
1358
9224a013
CB
13592019-09-11 Christian Biesinger <cbiesinger@google.com>
1360
1361 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
1362 out of get_init_files.
1363 (get_init_files): Update.
1364
f48cd836
CB
13652019-09-11 Christian Biesinger <cbiesinger@google.com>
1366
1367 * main.c (get_init_files): Change to use std::string.
1368 (captured_main_1): Update.
1369 (print_gdb_help): Update.
1370
9cab7ecd
AT
13712019-09-11 Ali Tamur <tamur@google.com>
1372
1373 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
1374 implementation.
1375
67547d89
CB
13762019-09-11 Christian Biesinger <cbiesinger@google.com>
1377
1378 * dbxread.c (read_dbx_symtab): Update.
1379 * dwarf2read.c (load_partial_dies): Update.
1380 * mdebugread.c (parse_partial_symbols): Update.
1381 (handle_psymbol_enumerators): Update.
1382 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
1383 * psymtab.c (add_psymbol_to_bcache): Likewise.
1384 (add_psymbol_to_list): Likewise.
1385 * symtab.c (symbol_set_names): Likewise.
1386 * symtab.h (symbol_set_names): Likewise.
1387 * xcoffread.c (scan_xcoff_symtab): Update.
1388
64b2d4a0
TT
13892019-09-11 Tom Tromey <tom@tromey.com>
1390
1391 * symfile-mem.c (symbol_file_add_from_memory): Use
1392 bfd_set_filename.
1393 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
1394 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
1395
3b00ef10
TT
13962019-09-10 Tom Tromey <tromey@adacore.com>
1397
1398 * dwarf-index-write.c (write_psymbols): Extend error message.
1399 (debug_names::insert): Add Ada code.
1400 (debug_names::write_psymbols): Remove Ada check.
1401 (debug_names) <m_string_obstack>: New member.
1402 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
1403 (gdb_index_symbol_name_matcher::matches): Remove.
1404 (mapped_index_base::find_name_components_bounds): Add "lang"
1405 parameter.
1406 (mapped_index_base::build_name_components): Also split names
1407 according to Ada syntax.
1408 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
1409 type of "match_callback".
1410 (check_match, check_find_bounds_finds)
1411 (dw2_expand_symtabs_matching): Update.
1412 (dw2_debug_names_iterator): Add new constructor.
1413 (dw2_debug_names_map_matching_symbols): New function.
1414 (dw2_debug_names_expand_symtabs_matching): Update.
1415 (dwarf2_debug_names_functions): Use
1416 dw2_debug_names_map_matching_symbols.
1417
aa391654
TT
14182019-09-10 Tom Tromey <tromey@adacore.com>
1419
1420 * dwarf2read.c (dw2_get_file_names_reader): Add the
1421 CU's file name to the results.
1422
b054970d
TT
14232019-09-10 Tom Tromey <tromey@adacore.com>
1424
1425 * ada-lang.c (add_nonlocal_symbols): Combine calls to
1426 map_matching_symbols. Update.
1427 * dwarf2read.c (dw2_map_matching_symbols): Update.
1428 * psymtab.c (match_partial_symbol): Change type; update.
1429 (psym_map_matching_symbols): Likewise.
1430 * symfile-debug.c (debug_qf_map_matching_symbols): Change
1431 type; update.
1432 * symfile.h (struct quick_symbol_functions)
1433 <map_matching_symbols>: Change "name" to be a lookup_name_info.
1434 Remove "match".
1435
6a3dbf1b
TT
14362019-09-10 Tom Tromey <tromey@adacore.com>
1437
1438 * psymtab.c (map_block): Remove.
1439 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
1440 * symtab.c (iterate_over_symbols_terminated): New function.
1441 * symtab.c (iterate_over_symbols_terminated): Declare.
1442
6969f124
TT
14432019-09-10 Tom Tromey <tromey@adacore.com>
1444
1445 * ada-lang.c (ada_iterate_over_symbols): Return bool.
1446 * language.h (struct language_defn) <la_iterate_over_symbols>:
1447 Return bool.
1448 * symtab.c (iterate_over_symbols): Return bool.
1449 * symtab.h (iterate_over_symbols): Return bool.
1450
199b4314
TT
14512019-09-10 Tom Tromey <tromey@adacore.com>
1452
1453 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
1454 (add_nonlocal_symbols): Update.
1455 * dwarf2read.c (dw2_map_matching_symbols): Change type.
1456 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
1457 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
1458 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
1459 Change type of "callback". Remove "data".
1460
a084a2a6
AT
1461
14622019-09-09 Ali Tamur <tamur@google.com>
1463
1464 * dwarf2read.c (comp_unit_head): Update comment.
1465 (dwarf2_dwo_name): New function declaration.
1466 (dwarf_unit_type_name): New function declaration.
1467 (read_comp_unit_head): Add support for new compilation units,
1468 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
1469 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
1470 (currently named as "signature") in their header. Also clarify error
1471 messages.
1472 (lookup_dwo_id): New function. Returns the dwo id of the given
1473 compile unit.
1474 (lookup_dwo_unit): Use the new lookup_dwo_id function.
1475 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
1476 functions.
1477 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
1478 (dwarf2_dwo_name): Get the dwo name if present.
1479 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
1480 purposes.
1481
25a2915e
TT
14822019-09-09 Tom Tromey <tom@tromey.com>
1483
1484 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
1485
e4df0874
PW
14862019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1487
1488 * python/python.c (do_start_initialization): Make progname_copy static,
1489 to avoid a leak report.
1490
8634b462
TT
14912019-09-08 Tom Tromey <tom@tromey.com>
1492
1493 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
1494
c7f839cb
SM
14952019-09-07 Simon Marchi <simon.marchi@efficios.com>
1496
1497 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
1498 Change type to gdb::optional<block_enum>.
1499 (dw2_symtab_iter_init): Change block_index parameter type
1500 to gdb::optional<block_enum>.
1501 (dw2_lookup_symbol): Change block_index parameter
1502 type to block_enum.c
1503 (dw2_debug_names_lookup_symbol): Likewise.
1504 * psymtab.c (psym_lookup_symbol): Likewise.
1505 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
1506 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1507 Likewise.
1508
ead0e69a
CB
15092019-09-06 Christian Biesinger <cbiesinger@google.com>
1510
1511 * defs.h (relocate_gdb_directory): Change int to bool in
1512 signature and rename flag to relocatable.
1513 * main.c (relocate_path): Likewise.
1514 (relocate_gdb_directory): Likewise.
1515
b16c44de
AM
15162019-09-06 Alan Modra <amodra@gmail.com>
1517
1518 * coffread.c (coff_symfile_read): Constify filename variable.
1519 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
1520 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
1521 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
1522 * solib.c (reload_shared_libraries_1): Likewise.
1523 * symfile.c (reread_symbols): Likewise.
1524 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
1525 * solib-darwin.c (darwin_bfd_open): Likewise.
1526 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1527
06ff036e
AB
15282019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1529
1530 * psymtab.c (print_partial_symbols): Handle missing domain_enum
1531 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
1532
4e962e74
TT
15332019-09-03 Tom Tromey <tromey@adacore.com>
1534
1535 * ada-valprint.c (ada_val_print_num): Don't recurse for range
1536 types.
1537 (has_negatives): Unbias a range type bound.
1538 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
1539 * gdbtypes.c (operator==): Handle new field.
1540 (create_range_type): Add "bias" parameter.
1541 (create_static_range_type, resolve_dynamic_range): Update.
1542 * gdbtypes.h (struct range_bounds) <bias>: New member.
1543 (create_range_type): Add bias parameter.
1544 * printcmd.c (print_scalar_formatted): Unbias range types.
1545 * value.c (unpack_long): Unbias range types.
1546 (pack_long): Bias range types.
1547
d90b8f26
AH
15482019-09-02 Alan Hayward <alan.hayward@arm.com>
1549
1550 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
1551 probe arguments.
1552
fe01123e
AH
15532019-09-02 Alan Hayward <alan.hayward@arm.com>
1554
1555 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
1556 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
1557 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
1558 (compile_probe_arg): Likewise.
1559 * probe.h (get_argument_count): Likewise.
1560 * solib-svr4.c (solib_event_probe_action): Likewise.
1561 * stap-probe.c (stap_probe::get_argument_count): Likewise.
1562
e661ef01
AH
15632019-09-02 Alan Hayward <alan.hayward@arm.com>
1564
1565 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
1566 code to here...
1567 (svr4_create_solib_event_breakpoints): ...from here.
1568
47a536d9
SDJ
15692019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
1570
1571 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
1572 suffix from warning message.
1573
d6a00eba
TT
15742019-08-30 Tom Tromey <tom@tromey.com>
1575
1576 * tui/tui-winsource.h (struct tui_source_window_base)
1577 <refresh_all>: Don't declare.
1578 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
1579 Remove.
1580 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
1581 tui_show_locator_content.
1582 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
1583 declare.
1584 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
1585 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
1586 declare.
1587
55b2657b
TT
15882019-08-30 Tom Tromey <tom@tromey.com>
1589
1590 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
1591
12a8555a
TT
15922019-08-30 Tom Tromey <tom@tromey.com>
1593
1594 * tui/tui-stack.c (_initialize_tui_stack): Move later.
1595 Remove unnecessary forward declarations.
1596
900ac242
TT
15972019-08-30 Tom Tromey <tom@tromey.com>
1598
1599 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
1600 rerender.
1601 (tui_update_locator_fullname, tui_show_frame_info): Don't call
1602 tui_show_locator_content.
1603
99ab33fb
TT
16042019-08-30 Tom Tromey <tom@tromey.com>
1605
1606 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
1607 (tui_locator_window::rerender): Rewrite using body of previous
1608 tui_show_locator_content.
1609
e594a5d1
TT
16102019-08-30 Tom Tromey <tom@tromey.com>
1611
1612 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
1613 set_locator_fullname>: New methods.
1614 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1615 Rename from tui_set_locator_fullname.
1616 (tui_locator_window::set_locator_info): Rename from
1617 tui_set_locator_info. Return bool.
1618 (tui_update_locator_fullname, tui_show_frame_info): Update.
1619
715bb467
TT
16202019-08-30 Tom Tromey <tom@tromey.com>
1621
1622 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
1623
772f3f03
TT
16242019-08-30 Tom Tromey <tom@tromey.com>
1625
1626 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
1627 call touchwin.
1628
108e13ab
TT
16292019-08-30 Tom Tromey <tom@tromey.com>
1630
1631 * tui/tui-wingeneral.c (box_win): Assume win_info and
1632 win_info->handle cannot be NULL.
1633
cdaa6eb4
TT
16342019-08-30 Tom Tromey <tom@tromey.com>
1635
1636 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
1637 refresh_window>: Declare.
1638 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
1639 resize.
1640 (tui_data_item_window::rerender): Rename from
1641 tui_display_register.
1642 (tui_data_item_window::refresh_window): New method.
1643 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
1644 no-op.
1645
89df7f90
TT
16462019-08-30 Tom Tromey <tom@tromey.com>
1647
1648 * tui/tui-regs.h (struct tui_data_window) <regs_content,
1649 regs_column_count, current_group>: Move later. Now private.
1650 <get_current_group>: New method.
1651 * tui/tui-regs.c (tui_reg_command): Update.
1652 * tui/tui-layout.c (tui_set_layout): Update.
1653
1bf2866a
TT
16542019-08-30 Tom Tromey <tom@tromey.com>
1655
1656 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1657 (tui_data_window::rerender): Don't call
1658 check_and_display_highlight_if_needed.
1659 (tui_data_window::refresh_all): Remove call to
1660 erase_data_content.
1661
0670413d
TT
16622019-08-30 Tom Tromey <tom@tromey.com>
1663
1664 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1665 (tui_data_window::display_registers_from)
1666 (tui_data_window::display_reg_element_at_line)
1667 (tui_data_window::display_registers_from_line): Remove checks of
1668 "empty".
1669
18bb55c7
TT
16702019-08-30 Tom Tromey <tom@tromey.com>
1671
1672 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
1673 Don't declare.
1674 * tui/tui-regs.c (tui_data_window::show_registers): Call
1675 rerender.
1676 (tui_data_window::rerender): Rename from display_all_data.
1677 (tui_data_window::rerender): Remove old implementation.
1678
1f6d2f10
TT
16792019-08-30 Tom Tromey <tom@tromey.com>
1680
1681 * tui/tui-regs.c (tui_data_window::display_all_data): Change
1682 text.
1683 * tui/tui-data.h (NO_DATA_STRING): Remove define.
1684
16d01f9c
BW
16852019-08-29 Bernhard Wodok <barto@gmx.net>
1686 Sergio Durigan Junior <sergiodj@redhat.com>
1687
1688 PR win32/24284
1689 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
1690
d8f27c60
AB
16912019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1692
1693 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
1694 when searching for types.
1695
1f20c35e
AB
16962019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1697
1698 * f-lang.c (f_language_defn): Use f_print_typedef.
1699 * f-lang.h (f_print_typedef): Declare.
1700 * f-typeprint.c (f_print_typedef): Define.
1701
550105b7
CB
17022019-08-27 Christian Biesinger <cbiesinger@google.com>
1703
1704 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
1705
4acfdd20
AB
17062019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
1707
1708 * cli/cli-utils.c (info_print_options_defs): Delete.
1709 (make_info_print_options_def_group): Delete.
1710 (extract_info_print_options): Delete.
1711 (info_print_command_completer): Delete.
1712 (info_print_args_help): Add extra parameter, and optionally
1713 include text about -n flag.
1714 * cli/cli-utils.h (struct info_print_options): Delete.
1715 (extract_info_print_options): Delete declaration.
1716 (info_print_command_completer): Delete declaration.
1717 (info_print_args_help): Add extra parameter, extend header
1718 comment.
1719 * python/python.c (gdbpy_rbreak): Pass additional parameter to
1720 search_symbols.
1721 * stack.c (struct info_print_options): New type.
1722 (info_print_options_defs): New file scoped variable.
1723 (make_info_print_options_def_group): New static function.
1724 (info_print_command_completer): New static function.
1725 (info_locals_command): Update to use new local functions.
1726 (info_args_command): Likewise.
1727 (_initialize_stack): Add extra parameter to calls to
1728 info_print_args_help.
1729 * symtab.c (search_symbols): Add extra parameter, use this to
1730 possibly excluse non-debug symbols.
1731 (symtab_symbol_info): Add extra parameter, which is passed on to
1732 search_symbols.
1733 (struct info_print_options): New type.
1734 (info_print_options_defs): New file scoped variable.
1735 (make_info_print_options_def_group): New static function.
1736 (info_print_command_completer): New static function.
1737 (info_variables_command): Update to use local functions, and pass
1738 extra parameter through to symtab_symbol_info.
1739 (info_functions_command): Likewise.
1740 (info_types_command): Pass additional argument through to
1741 symtab_symbol_info.
1742 (rbreak_command): Pass extra argument to search_symbols.
1743 (_initialize_symtab): Add extra arguments for calls to
1744 info_print_args_help, and update help text for 'info variables',
1745 'whereis', and 'info functions' commands.
1746 * symtab.h (search_symbols): Add extra argument to declaration.
1747 * NEWS: Mention new flags.
1748
9aa55206
CB
17492019-08-26 Christian Biesinger <cbiesinger@google.com>
1750
1751 * symtab.c (lookup_static_symbol): Call the new function (and move
1752 it down to be next to lookup_global_symbol).
1753 (struct global_sym_lookup_data): Add block_enum member and rename to...
1754 (struct global_or_static_sym_lookup_data): ...this.
1755 (lookup_symbol_global_iterator_cb): Pass block_index instead of
1756 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
1757 (lookup_symbol_global_or_static_iterator_cb): ...this.
1758 (lookup_global_or_static_symbol): New function.
1759 (lookup_global_symbol): Call new function.
1760
5c31b358
TV
17612019-08-26 Tom de Vries <tdevries@suse.de>
1762
1763 PR c++/24852
1764 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
1765 when pc_probe.prob == NULL.
1766
23c13d42
SM
17672019-08-25 Simon Marchi <simon.marchi@efficios.com>
1768
1769 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
1770 variable symbol_linkage to symbol_linkage_.
1771
beadd3e8
SM
17722019-08-25 Simon Marchi <simon.marchi@efficios.com>
1773
1774 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
1775 represent whether the symbol is static, dynamic, or we don't
1776 know.
1777
e3ec872f
YS
17782019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
1779
1780 * gdb/rx-tdep.c (rx_register_names): New.
1781 (rx_register_name): Delete.
1782 (rx_psw_type): Delete.
1783 (rx_fpsw_type): Delete.
1784 (rx_register_type): Delete.
1785 (rx_gdbarch_init): Convert target-descriptions.
1786 (_initialize_rx_tdep): Add initialize_tdesc_rx.
1787 * gdb/features/Makefile: Add rx.xml.
1788 * gdb/features/rx.xml: New.
1789 * gdb/features/rx.c: Generated.
1790 * gdb/NEWS: Mention target description support.
1791
d0509ba4
CB
17922019-08-22 Christian Biesinger <cbiesinger@google.com>
1793
1794 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
1795 *slot_ptr.
1796
2d41fa11
SDJ
17972019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1798
1799 * configure.ac: Don't check for 'dlfcn.h' (moved to
1800 gdbsupport/common.m4).
1801 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
1802 'gdbsupport/'.
1803 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
1804 * compile/compile-c-support.c: Include
1805 'gdbsupport/gdb-dlfcn.h'.
1806 * gdbsupport/common.m4: Check for 'dlfcn.h'.
1807 * gdb-dlfcn.c: Move to...
1808 * gdbsupport/gdb-dlfcn.c: ... here.
1809 * gdb-dlfcn.h: Move to...
1810 * gdbsupport/gdb-dlfcn.h: ... here.
1811
de8af808
SL
18122019-08-23 Sandra Loosemore <sandra@codesourcery.com>
1813
1814 * nios2-tdep.c (struct reg_value): Improve comments. Make
1815 the offset field signed.
1816
27204489
CB
18172019-08-22 Christian Biesinger <cbiesinger@google.com>
1818
1819 * python/lib/gdb/__init__.py (_execute_file): New function.
1820 * python/python.c (python_run_simple_file): Call gdb._execute_file
1821 on Windows.
1822
43771869
AB
18232019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
1824
1825 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
1826 all uses as this was never set to anything but a zero value.
1827
26c957f1
PA
18282019-08-21 Bogdan Harjoc <harjoc@gmail.com>
1829
1830 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
1831
c07aae6e
CB
18322019-08-21 Christian Biesinger <cbiesinger@google.com>
1833
1834 * tui/tui-data.h (tui_gen_win_info): Add an =default
1835 move constructor, required by some GCC versions.
1836
3960cb7a
JF
18372019-08-21 Jinke Fan <fanjinke51@yeah.net>
1838
1839 * go32-nat.c (go32_sysinfo): Add hygon_p.
1840
04c72a68
TT
18412019-08-20 Tom Tromey <tom@tromey.com>
1842
1843 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
1844 line_from_reg_element_no, first_reg_element_no_inline,
1845 display_all_data, delete_data_content_windows,
1846 erase_data_content>: Now private.
1847
072272ce
TT
18482019-08-20 Tom Tromey <tom@tromey.com>
1849
1850 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
1851 (tui_unhighlight_win, tui_highlight_win)
1852 (tui_win_info::make_window): Update.
1853 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
1854
973961bd
TT
18552019-08-20 Tom Tromey <tom@tromey.com>
1856
1857 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1858 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1859 (MAX_PID_WIDTH): Move to tui-stack.c.
1860 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1861 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1862 (MAX_PID_WIDTH): Move from tui-data.h.
1863
ab0e1f1a
TT
18642019-08-20 Tom Tromey <tom@tromey.com>
1865
1866 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
1867 * tui/tui-wingeneral.c (box_win): Change type of win_info.
1868 (box_win): Update.
1869 (tui_gen_win_info::make_window): Rename from tui_make_window.
1870 (tui_win_info::make_window): New method.
1871 (tui_gen_win_info::make_visible): Update.
1872 * tui/tui-source.c (tui_source_window::set_contents): Update.
1873 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1874 (tui_data_window::display_registers_from): Update.
1875 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1876 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
1877 Declare.
1878 <can_box>: Remove.
1879 <title>: Remove.
1880 (struct tui_win_info) <make_window>: Declare.
1881 <can_box>: Now virtual.
1882 <title>: New member.
1883 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
1884 * tui/tui-command.c (tui_cmd_window::resize): Update.
1885
100c2bf3
TT
18862019-08-20 Tom Tromey <tom@tromey.com>
1887
1888 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
1889 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1890 (tui_data_window::check_register_values): Update.
1891
fa4dc567
TT
18922019-08-20 Tom Tromey <tom@tromey.com>
1893
1894 * tui/tui-regs.h (struct tui_data_window): Use
1895 DISABLE_COPY_AND_ASSIGN.
1896 <regs_content>: Change type, removing unique_ptr.
1897 <tui_data_window>: Add move constructor.
1898 * tui/tui-regs.c (tui_data_window::show_registers)
1899 (tui_data_window::show_register_group)
1900 (tui_data_window::display_registers_from)
1901 (tui_data_window::display_registers_from)
1902 (tui_data_window::first_data_item_displayed)
1903 (tui_data_window::delete_data_content_windows)
1904 (tui_data_window::rerender, tui_data_window::refresh_window)
1905 (tui_data_window::check_register_values): Update.
1906
ca02d7c8
TT
19072019-08-20 Tom Tromey <tom@tromey.com>
1908
1909 * tui/tui-regs.h (struct tui_data_window) <show_registers,
1910 show_register_group>: Declare.
1911 (tui_show_register_group): Don't declare.
1912 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
1913 tui_show_registers.
1914 (tui_data_window::show_register_group): Rename from
1915 tui_show_register_group.
1916 (tui_data_window::check_register_values, tui_reg_command):
1917 Update.
1918 * tui/tui-layout.c (tui_set_layout): Update.
1919
63356bfd
TT
19202019-08-20 Tom Tromey <tom@tromey.com>
1921
1922 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
1923 Declare.
1924 (tui_check_register_values): Don't declare.
1925 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
1926 from tui_check_register_values.
1927 * tui/tui-hooks.c (tui_register_changed): Update.
1928
42cc14a7
TT
19292019-08-20 Tom Tromey <tom@tromey.com>
1930
1931 * tui/tui-regs.c (tui_reg_layout): Move later.
1932 (tui_show_registers): Don't enable TUI mode or change layout.
1933
b9ad3686
TT
19342019-08-20 Tom Tromey <tom@tromey.com>
1935
1936 * tui/tui-regs.h (struct tui_data_item_window)
1937 <~tui_data_item_window>: Remove.
1938 <content>: Now a unique_xmalloc_ptr.
1939 * tui/tui-regs.c (tui_register_format): Return a
1940 unique_xmalloc_ptr.
1941 (tui_get_register): Update.
1942 (~tui_data_item_window): Remove.
1943 (tui_data_window::display_registers_from, tui_display_register):
1944 Update.
1945 * tui/tui-io.h (tui_expand_tabs): Update.
1946 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
1947 Remove "col" parameter.
1948
8e114aab
TT
19492019-08-20 Tom Tromey <tom@tromey.com>
1950
1951 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
1952 field.
1953 * tui/tui-regs.c (~tui_data_item_window): Update.
1954
1a4f81dd
TT
19552019-08-20 Tom Tromey <tom@tromey.com>
1956
1957 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
1958 earlier.
1959
0f8d8876
TT
19602019-08-20 Tom Tromey <tom@tromey.com>
1961
1962 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
1963
605dc2c2
TT
19642019-08-20 Tom Tromey <tom@tromey.com>
1965
1966 * tui/tui-source.h (struct tui_source_window): Update.
1967 * tui/tui-regs.c (tui_show_registers): Update.
1968 * tui/tui-disasm.h (struct tui_disasm_window): Update.
1969 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
1970 (NO_REGS_STRING): Remove defines.
1971
aedbe3bb
CM
19722019-08-20 Conrad Meyer <cem@FreeBSD.org>
1973
1974 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
1975 unnecessary thread walk if remote doesn't support the packet.
1976
7ce8f214
TT
19772019-08-19 Tom Tromey <tromey@adacore.com>
1978
1979 * python/py-value.c (value_has_field): Fix indentation.
1980
f21c2bd7
TT
19812019-08-19 Tom Tromey <tromey@adacore.com>
1982
1983 * printcmd.c (do_one_display, info_display_command): Update.
1984 * block.h (contained_in): Return bool. Add allow_nested
1985 parameter.
1986 * block.c (contained_in): Return bool. Add allow_nested
1987 parameter.
1988
d806ea2d
TT
19892019-08-19 Tom Tromey <tom@tromey.com>
1990
1991 * configure: Rebuild.
1992 * configure.ac: Disallow the combination of -static-libstdc++ and
1993 source highlight.
1994 * source-cache.c (get_language_name): Handle rust.
1995 (source_cache::get_source_lines): Ignore highlighting exceptions.
1996
398fdd60
TT
19972019-08-16 Tom Tromey <tom@tromey.com>
1998
1999 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
2000 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
2001 (struct tui_source_window_base) <make_visible, refresh_window,
2002 resize>: Remove methods.
2003 <execution_info>: Remove field.
2004 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
2005 (tui_show_source_line, tui_source_window_base)
2006 (~tui_source_window_base): Update.
2007 (tui_source_window_base::resize)
2008 (tui_source_window_base::make_visible)
2009 (tui_source_window_base::refresh_window): Remove.
2010 (tui_source_window_base::update_exec_info): Update.
2011 * tui/tui-source.c (tui_source_window::set_contents): Update.
2012 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2013
e699d331
TT
20142019-08-16 Tom Tromey <tom@tromey.com>
2015
2016 * tui/tui-hooks.c (tui_remove_hooks): Don't set
2017 deprecated_query_hook.
2018
bb01dbfc
TT
20192019-08-16 Tom Tromey <tom@tromey.com>
2020
2021 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2022 (tui_update_source_windows_with_line): Update.
2023 * tui/tui-source.h (struct tui_source_window)
2024 <show_symtab_source>: Declare.
2025 (tui_show_symtab_source): Don't declare.
2026 * tui/tui-source.c (tui_show_symtab_source): Rename from
2027 tui_show_symtab_source.
2028
81c82c4b
TT
20292019-08-16 Tom Tromey <tom@tromey.com>
2030
2031 * tui/tui-winsource.h (struct tui_source_window_base)
2032 <set_contents>: Declare.
2033 * tui/tui-winsource.c
2034 (tui_source_window_base::update_source_window_as_is): Update.
2035 * tui/tui-source.h (struct tui_source_window) <set_contents>:
2036 Declare.
2037 (tui_set_source_content): Don't declare.
2038 * tui/tui-source.c (tui_source_window::set_contents): Rename from
2039 tui_set_source_content.
2040 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
2041 Declare.
2042 (tui_set_disassem_content): Don't declare.
2043 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
2044 tui_set_disassem_content.
2045
2ddaf614
TT
20462019-08-16 Tom Tromey <tom@tromey.com>
2047
2048 * tui/tui-winsource.h (struct tui_source_window_base)
2049 <update_breakpoint_info>: Declare.
2050 (tui_update_breakpoint_info): Don't declare.
2051 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
2052 (tui_update_all_breakpoint_info): Update.
2053 (tui_source_window_base::update_breakpoint_info): Rename from
2054 tui_update_breakpoint_info.
2055 (tui_source_window_base::update_exec_info): Update.
2056
017f9828
TT
20572019-08-16 Tom Tromey <tom@tromey.com>
2058
2059 * tui/tui-winsource.h (struct tui_source_window_base)
2060 <update_source_window>: Declare.
2061 (tui_update_source_window): Don't declare.
2062 * tui/tui-winsource.c
2063 (tui_source_window_base::update_source_window): Rename from
2064 tui_update_source_window.
2065 (tui_source_window_base::rerender): Update.
2066 * tui/tui-source.c (tui_source_window::maybe_update): Update.
2067 * tui/tui-disasm.c (tui_show_disassem)
2068 (tui_show_disassem_and_update_source)
2069 (tui_disasm_window::maybe_update): Update.
2070
ed8358e9
TT
20712019-08-16 Tom Tromey <tom@tromey.com>
2072
2073 * tui/tui-winsource.h (struct tui_source_window_base)
2074 <update_source_window_as_is>: Declare.
2075 (tui_update_source_window_as_is): Don't declare.
2076 * tui/tui-winsource.c (tui_update_source_window): Update
2077 (tui_source_window_base::update_source_window_as_is): Rename from
2078 tui_update_source_window_as_is.
2079 (tui_source_window_base::refill): Update.
2080 * tui/tui-source.c (tui_show_symtab_source): Update.
2081 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
2082 Update.
2083
20149b6b
TT
20842019-08-16 Tom Tromey <tom@tromey.com>
2085
2086 * tui/tui-winsource.h (tui_update_source_window)
2087 (tui_update_source_window_as_is): Remove "noerror" parameter.
2088 * tui/tui-winsource.c (tui_update_source_window)
2089 (tui_update_source_window_as_is): Remove "noerror" parameter.
2090 (tui_update_source_windows_with_addr)
2091 (tui_update_source_windows_with_line)
2092 (tui_source_window_base::rerender)
2093 (tui_source_window_base::refill): Update.
2094 * tui/tui-source.h (tui_set_source_content)
2095 (tui_show_symtab_source): Remove "noerror" parameter.
2096 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
2097 parameter.
2098 (tui_show_symtab_source): Likewise.
2099 (tui_source_window::maybe_update): Update.
2100 * tui/tui-disasm.c (tui_show_disassem)
2101 (tui_show_disassem_and_update_source)
2102 (tui_disasm_window::do_scroll_vertical)
2103 (tui_disasm_window::maybe_update): Update.
2104
2d83e710
TT
21052019-08-16 Tom Tromey <tom@tromey.com>
2106
2107 * tui/tui.c (tui_is_window_visible): Update.
2108 * tui/tui-wingeneral.c (tui_make_window)
2109 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
2110 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
2111 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
2112 (tui_set_win_height_command, parse_scrolling_args): Update.
2113 * tui/tui-source.c (tui_source_window::style_changed): Update.
2114 * tui/tui-regs.c (tui_show_registers)
2115 (tui_data_window::first_data_item_displayed)
2116 (tui_data_window::delete_data_content_windows)
2117 (tui_check_register_values, tui_reg_command): Update.
2118 * tui/tui-disasm.c (tui_show_disassem): Update.
2119 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
2120 method.
2121 <is_visible>: Remove field.
2122 * tui/tui-data.c (tui_next_win, tui_prev_win)
2123 (tui_delete_invisible_windows): Update.
2124
d4ab829a
TT
21252019-08-16 Tom Tromey <tom@tromey.com>
2126
2127 * tui/tui-winsource.h (struct tui_source_window_base)
2128 <m_has_locator>: Remove.
2129 * tui/tui-layout.c (show_source_disasm_command, show_data)
2130 (show_source_or_disasm_and_command): Update.
2131
aa7ca1bb
AH
21322019-08-16 Alan Hayward <alan.hayward@arm.com>
2133
2134 * NEWS (Other MI changes): New subsection.
2135 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
2136 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
2137 * arch-utils.c (default_get_pc_address_flags): New function.
2138 * arch-utils.h (default_get_pc_address_flags): New declaration.
2139 * gdbarch.sh: Add get_pc_address_flags.
2140 * gdbarch.c: Regenerate.
2141 * gdbarch.h: Likewise.
2142 * stack.c (print_pc): New function.
2143 (print_frame_info) (print_frame): Call print_pc.
2144
6eac171f
TV
21452019-08-16 Tom de Vries <tdevries@suse.de>
2146
2147 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
2148 print_objfile_section_info.
2149
3df505f6
TT
21502019-08-15 Tom Tromey <tom@tromey.com>
2151
2152 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
2153 calling update_cmdwin_start_line.
2154 * tui/tui-winsource.h (struct tui_source_window_base)
2155 <do_make_visible_with_new_height, set_new_height>: Don't declare.
2156 <rerender>: Declare.
2157 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
2158 Call rerender.
2159 (tui_source_window_base::set_new_height): Remove.
2160 (tui_source_window_base::rerender): Rename from
2161 do_make_visible_with_new_height.
2162 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
2163 resize method.
2164 (tui_win_info::make_invisible_and_set_new_height)
2165 (tui_win_info::make_visible_with_new_height): Remove.
2166 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
2167 Declare.
2168 * tui/tui-stack.c (tui_locator_window::rerender): New method.
2169 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
2170 do_make_visible_with_new_height>: Don't declare.
2171 <rerender>: Declare.
2172 * tui/tui-regs.c (tui_data_window::rerender): Rename from
2173 set_new_height.
2174 (tui_data_window::do_make_visible_with_new_height): Remove.
2175 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
2176 call tui_show_locator_content.
2177 (tui_gen_win_info::resize): Call rerender.
2178 (show_source_or_disasm_and_command): Don't call
2179 tui_show_locator_content.
2180 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
2181 method.
2182 (struct tui_win_info) <rerender>: Declare.
2183 <set_new_height, make_invisible_and_set_new_height,
2184 make_visible_with_new_height>: Don't declare.
2185 * tui/tui-data.c (tui_win_list::rerender): New method.
2186 * tui/tui-command.h (struct tui_cmd_window)
2187 <do_make_visible_with_new_height>: Don't declare.
2188 * tui/tui-command.c
2189 (tui_cmd_window::do_make_visible_with_new_height): Remove.
2190
272560b5
TT
21912019-08-15 Tom Tromey <tromey@adacore.com>
2192
2193 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
2194 * ada-lang.c (ada_enum_name): Likewise.
2195
08235187
CB
21962019-08-15 Christian Biesinger <cbiesinger@google.com>
2197
2198 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
2199 leading underscore.
2200 (GdbOutputErrorFile): Likewise.
2201 (global scope): Adjust constructor calls to GdbOutput{,Error}File
2202 accordingly.
2203 (execute_unwinders): Rename to have a leading underscore.
2204 (auto_load_packages): Likewise.
2205 (global scope): Adjust call to auto_load_packages accordingly.
2206 (GdbSetPythonDirectory): Likewise.
2207 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
2208 instead of execute_unwinders.
2209
db502012
TT
22102019-08-15 Tom Tromey <tom@tromey.com>
2211
2212 * tui/tui-layout.c (show_layout, show_source_disasm_command)
2213 (show_data): Don't change window visibility.
2214 (tui_gen_win_info::resize): Remove special case for command
2215 window. Use wresize, when available.
2216 (show_source_or_disasm_and_command): Don't change window
2217 visibility.
2218 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
2219 <make_visible>: New method.
2220 * tui/tui-command.c (tui_cmd_window::resize): New method.
2221
3891b65e
TT
22222019-08-15 Tom Tromey <tom@tromey.com>
2223
2224 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
2225 (struct tui_source_windows): New.
2226 * tui/tui-winsource.c (tui_display_main): Update.
2227 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2228 (new_height_ok, parse_scrolling_args): Update.
2229 * tui/tui-layout.c (show_layout, show_data): Update.
2230 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
2231 (tui_add_to_source_windows): Don't declare.
2232 * tui/tui-data.c (source_windows, tui_source_windows)
2233 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
2234
ee556432
TT
22352019-08-15 Tom Tromey <tom@tromey.com>
2236
2237 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
2238 Rename from reset.
2239 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
2240 * tui/tui-layout.c (show_source_disasm_command, show_data):
2241 Update.
2242 (tui_gen_win_info::resize): Rename.
2243 (show_source_or_disasm_and_command): Update.
2244 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
2245 reset.
2246
46f438e3
TT
22472019-08-15 Tom Tromey <tom@tromey.com>
2248
2249 * tui/tui-stack.c (tui_initialize_static_data): Remove.
2250 * tui/tui-interp.c (tui_interp::init): Don't call
2251 tui_initialize_static_data.
2252 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
2253
f4ce562c
TT
22542019-08-15 Tom Tromey <tom@tromey.com>
2255
2256 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
2257 examine tui_win_list.
2258
c398c3d0
TT
22592019-08-15 Tom Tromey <tom@tromey.com>
2260
2261 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
2262 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
2263 tui_clear_source_content.
2264 (tui_clear_source_content): Remove.
2265 (tui_source_window_base::do_erase_source_content): Hoist call to
2266 content.clear().
2267 * tui/tui-stack.c (tui_show_frame_info): Don't call
2268 tui_clear_source_content.
2269
e25d2004
TT
22702019-08-15 Tom Tromey <tom@tromey.com>
2271
2272 * tui/tui-winsource.h (struct tui_source_window_base)
2273 <do_erase_source_content>: New method.
2274 <erase_source_content>: New method.
2275 (tui_erase_source_content): Don't declare.
2276 * tui/tui-winsource.c (tui_clear_source_content): Update.
2277 (tui_source_window_base::do_erase_source_content): Rename from
2278 tui_erase_source_content.
2279 (tui_source_window_base::show_source_content): Update.
2280 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2281 * tui/tui-source.h (struct tui_source_window)
2282 <erase_source_content>: New method.
2283 * tui/tui-disasm.h (struct tui_disasm_window)
2284 <erase_source_content>: New method.
2285
002f15c2
TT
22862019-08-15 Tom Tromey <tom@tromey.com>
2287
2288 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
2289 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
2290 constructor.
2291 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
2292 * tui/tui-source.c (tui_set_source_content): Update.
2293 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2294
c9033fe8
TT
22952019-08-15 Tom Tromey <tom@tromey.com>
2296
2297 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
2298 * tui/tui-winsource.c (tui_line_is_displayed): Move to
2299 tui-source.c.
2300 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
2301 Declare.
2302 * tui/tui-source.c (tui_source_window::line_is_displayed): New
2303 method.
2304 (tui_source_window::maybe_update): Update.
2305
088f37dd
TT
23062019-08-15 Tom Tromey <tom@tromey.com>
2307
2308 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
2309 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
2310 tui-disasm.c.
2311 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
2312 Declare.
2313 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
2314 method.
2315 (tui_disasm_window::maybe_update): Update.
2316
a54700c6
TT
23172019-08-15 Tom Tromey <tom@tromey.com>
2318
2319 * tui/tui-winsource.h (struct tui_source_window_base)
2320 <maybe_update>: Declare.
2321 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
2322 method.
2323 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
2324 Declare.
2325 * tui/tui-source.c (tui_source_window::maybe_update): New method.
2326 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
2327 Declare.
2328 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
2329
e2a678a5
TT
23302019-08-15 Tom Tromey <tom@tromey.com>
2331
2332 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
2333
f2dda477
TT
23342019-08-15 Tom Tromey <tom@tromey.com>
2335
2336 * tui/tui-wingeneral.c: Include tui-stack.h.
2337 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
2338 (struct tui_locator_window): Move from tui-data.h.
2339 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
2340 (tui_initialize_static_data): Move from tui-data.c.
2341 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
2342 (struct tui_locator_window): Move to tui-stack.c.
2343 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
2344 (tui_initialize_static_data): Move to tui-stack.c.
2345
ed4a1084
TT
23462019-08-15 Tom Tromey <tom@tromey.com>
2347
2348 * tui/tui-layout.c (show_source_disasm_command)
2349 (show_source_or_disasm_and_command): Use make_visible method, not
2350 tui_make_window.
2351 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
2352 Remove.
2353
65962b20
TT
23542019-08-15 Tom Tromey <tom@tromey.com>
2355
2356 * tui/tui-wingeneral.h (tui_make_window): Update.
2357 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
2358 parameter.
2359 (tui_gen_win_info::make_visible): Update.
2360 * tui/tui-regs.c (tui_data_window::display_registers_from):
2361 Update.
2362 * tui/tui-layout.c (show_source_disasm_command)
2363 (show_source_or_disasm_and_command): Update.
2364 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
2365 (enum tui_box): Remove.
2366 (struct tui_win_info) <can_box>: New method.
2367 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
2368 method.
2369
2208ee91
TV
23702019-08-15 Tom de Vries <tdevries@suse.de>
2371
2372 * linux-nat-trad.c: Include gdbarch.h.
2373
75faf5c4
AH
23742019-08-14 Alan Hayward <alan.hayward@arm.com>
2375
2376 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
2377 register sizes.
2378
b1c896b3
TT
23792019-08-14 Tom Tromey <tromey@adacore.com>
2380
2381 * darwin-nat.c: Include gdbarch.h.
2382 * darwin-nat-info.c: Include gdbarch.h.
2383
6405cd73
TT
23842019-08-13 Tom Tromey <tom@tromey.com>
2385
2386 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
2387 Remove.
2388 * tui/tui-data.c (tui_initialize_static_data): Update.
2389
5216580d
TT
23902019-08-13 Tom Tromey <tom@tromey.com>
2391
2392 * tui/tui-winsource.h (struct tui_exec_info_window)
2393 <~tui_exec_info_window, maybe_allocate_content, get_content,
2394 m_content>: Remove.
2395 (struct tui_source_window_base) <set_exec_info_content,
2396 show_exec_info_content>: Don't declare.
2397 * tui/tui-winsource.c
2398 (tui_exec_info_window::maybe_allocate_content): Remove.
2399 (tui_source_window_base::update_exec_info): Rename from
2400 set_exec_info_content.
2401 (tui_source_window_base::show_exec_info_content)
2402 (tui_source_window_base::update_exec_info): Remove.
2403
93858ad3
TT
24042019-08-13 Tom Tromey <tom@tromey.com>
2405
2406 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
2407 declare.
2408 * tui/tui-winsource.c (tui_update_source_window_as_is)
2409 (tui_update_source_windows_with_addr, tui_erase_source_content):
2410 Update.
2411 (tui_clear_exec_info_content): Remove.
2412
e321e7ce
TT
24132019-08-13 Tom Tromey <tom@tromey.com>
2414
2415 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
2416 declare.
2417 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
2418 call tui_erase_exec_info_content.
2419 (tui_clear_exec_info_content): Rename from
2420 tui_erase_exec_info_content.
2421 (tui_clear_exec_info_content): Delete.
2422
8270ac62
TT
24232019-08-13 Tom Tromey <tom@tromey.com>
2424
2425 * tui/tui-winsource.h (struct tui_source_window_base)
2426 <show_exec_info_content>: Declare.
2427 (tui_show_exec_info_content): Don't declare.
2428 * tui/tui-winsource.c
2429 (tui_source_window_base::show_exec_info_content): Rename from
2430 tui_show_exec_info_content.
2431 (tui_source_window_base::update_exec_info): Update.
2432
7b56485d
TT
24332019-08-13 Tom Tromey <tom@tromey.com>
2434
2435 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
2436 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
2437 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
2438 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
2439 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
2440 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
2441 ... here.
2442
7ba913dc
TT
24432019-08-13 Tom Tromey <tom@tromey.com>
2444
2445 * tui/tui-winsource.h (struct tui_source_window_base)
2446 <update_exec_info>: Declare.
2447 (tui_update_exec_info): Don't declare.
2448 * tui/tui-winsource.c (tui_update_source_window_as_is)
2449 (tui_source_window_base::refresh_all)
2450 (tui_update_all_breakpoint_info): Update.
2451 (tui_source_window_base::update_exec_info): Rename from
2452 tui_update_exec_info.
2453 * tui/tui-stack.c (tui_show_frame_info): Update.
2454
37a4a131
TT
24552019-08-13 Tom Tromey <tom@tromey.com>
2456
2457 * tui/tui-winsource.h (struct tui_source_window_base)
2458 <set_exec_info_content>: Declare.
2459 (tui_set_exec_info_content): Don't declare.
2460 * tui/tui-winsource.c
2461 (tui_source_window_base::set_exec_info_content): Rename from
2462 tui_set_exec_info_content.
2463 (tui_update_exec_info): Update.
2464
0bd27e07
TT
24652019-08-13 Tom Tromey <tom@tromey.com>
2466
2467 * tui/tui-winsource.h (struct tui_source_window_base)
2468 <show_source_content>: Declare.
2469 (tui_show_source_content): Don't declare.
2470 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2471 (tui_source_window_base::show_source_content): Rename from
2472 tui_show_source_content.
2473 (tui_source_window_base::refresh_all): Update.
2474 * tui/tui-layout.c (show_source_disasm_command)
2475 (show_source_or_disasm_and_command): Update.
2476
b4ef5aeb
TT
24772019-08-13 Tom Tromey <tom@tromey.com>
2478
2479 * tui/tui-winsource.c (tui_erase_source_content)
2480 (tui_show_source_content, tui_source_window_base::refresh_all):
2481 Update.
2482 * tui/tui-wingeneral.h
2483 (tui_check_and_display_highlight_if_needed): Don't declare.
2484 * tui/tui-wingeneral.c
2485 (tui_win_info::check_and_display_highlight_if_needed): Rename from
2486 check_and_display_highlight_if_needed.
2487 * tui/tui-win.c (tui_rehighlight_all)
2488 (tui_win_info::make_visible_with_new_height): Update.
2489 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2490 (tui_data_window::erase_data_content)
2491 (tui_data_window::display_all_data): Update.
2492 * tui/tui-data.h (struct tui_win_info)
2493 <check_and_display_highlight_if_needed>: Declare.
2494
fede5273
TT
24952019-08-13 Tom Tromey <tom@tromey.com>
2496
2497 * tui/tui-win.c (tui_resize_all): Call
2498 tui_delete_invisible_windows.
2499 * tui/tui-layout.c (show_layout): Call
2500 tui_delete_invisible_windows.
2501 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
2502 * tui/tui-data.c (tui_delete_invisible_windows): New function.
2503
22c3f490
TT
25042019-08-13 Tom Tromey <tom@tromey.com>
2505
2506 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
2507 tui_add_win_to_layout.
2508
16cb7910
TT
25092019-08-13 Tom Tromey <tom@tromey.com>
2510
2511 * tui/tui-layout.h (tui_default_win_height): Don't declare.
2512 * tui/tui-layout.c (tui_default_win_height): Now static.
2513
cc0c3ffb
TT
25142019-08-13 Tom Tromey <tom@tromey.com>
2515
2516 * tui/tui-layout.c (show_layout): Unify all layout cases into a
2517 single switch.
2518 (show_source_disasm_command, show_source_or_disasm_and_command):
2519 Don't check current layout.
2520
3f3ffe54
TT
25212019-08-13 Tom Tromey <tom@tromey.com>
2522
2523 * tui/tui-wingeneral.c (make_all_visible): Remove.
2524 (tui_make_all_invisible): Simplify.
2525 * tui/tui-layout.c (tui_make_all_invisible): Move from
2526 tui-wingeneral.c; simplify.
2527 (show_layout): Hoist call to tui_make_all_invisible.
2528 (show_data): Don't call tui_make_all_invisible.
2529
69258091
TT
25302019-08-13 Tom Tromey <tom@tromey.com>
2531
2532 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
2533 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
2534
62cf57fe
TT
25352019-08-13 Tom Tromey <tom@tromey.com>
2536
2537 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
2538 tui-data.c.
2539 (show_source_disasm_command, show_data)
2540 (show_source_or_disasm_and_command): Don't use
2541 tui_set_current_layout_to.
2542 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
2543 * tui/tui-data.c (current_layout, tui_current_layout): Move to
2544 tui-layout.c.
2545 (tui_set_current_layout_to): Remove.
2546
2afade5d
TT
25472019-08-13 Tom Tromey <tom@tromey.com>
2548
2549 * tui/tui-layout.c (tui_set_layout): Update.
2550 * tui/tui-data.h (struct tui_layout_def): Remove.
2551 (tui_layout_def): Don't declare.
2552 * tui/tui-data.c (layout_def): Remove.
2553 (tui_layout_def): Remove.
2554
a3504e96
TT
25552019-08-13 Tom Tromey <tom@tromey.com>
2556
2557 * tui/tui-winsource.h (struct tui_source_window_base)
2558 <clear_detail>: No longer "override".
2559 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
2560 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
2561 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
2562 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
2563 Remove.
2564 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
2565
29c92911
TT
25662019-08-13 Tom Tromey <tromey@adacore.com>
2567
2568 * tracepoint.c: Don't include readline.h or history.h.
2569
86c6b807
TT
25702019-08-12 Tom Tromey <tom@tromey.com>
2571
2572 * configure: Rebuild.
2573 * configure.ac: Check for readline 7.
2574 * NEWS: Mention readline 7 requirement.
2575 * README: Update.
2576
5db2718c
TT
25772019-08-12 Tom Tromey <tom@tromey.com>
2578
2579 * mingw-hdep.c (gdb_select): Remove readline hack.
2580
dac36daf
PFC
25812019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2582
2583 * blockframe.c (find_pc_partial_function): Set *block to nullptr
2584 when the function fails.
2585
1022c627
AA
25862019-08-09 Andreas Arnez <arnez@linux.ibm.com>
2587
2588 * s390-tdep.c (s390_type_align): New function.
2589 (s390_gdbarch_init): Set it as type_align gdbarch method.
2590
eba4caf2
TV
25912019-08-09 Tom de Vries <tdevries@suse.de>
2592
2593 PR gdb/24591
2594 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
2595 pc_low with relocation offset.
2596
123cd851
TT
25972019-08-07 Tom Tromey <tromey@adacore.com>
2598
2599 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2600 (print_frame_args): Update.
2601 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
2602 Update.
2603 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2604 * frame.h (struct frame_arg): Add initializers.
2605 <error>: Now a unique_xmalloc_ptr.
2606
3d31bc39
AH
26072019-08-07 Alan Hayward <alan.hayward@arm.com>
2608
2609 * NEWS: Expand the Pointer Authentication entry.
2610 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
2611 (aarch64_frame_unmask_lr): ... to this.
2612 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
2613 Call aarch64_frame_unmask_lr.
2614 * frame.c (struct frame_info): Add "masked" variable.
2615 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
2616 (fprint_frame): Check for masked pc.
2617 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
2618 declarations.
2619 * python/py-framefilter.c (py_print_frame): Check for masked pc.
2620 * stack.c (print_frame): Check for masked pc.
2621
0cf9feb9
TT
26222019-08-06 Tom Tromey <tom@tromey.com>
2623
2624 * stabsread.c (patch_block_stabs, read_one_struct_field)
2625 (read_enum_type): Use obstack_strndup.
2626 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
2627 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
2628 * dwarf2read.c (guess_full_die_structure_name)
2629 (anonymous_struct_prefix): Use obstack_strndup.
2630 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
2631 * c-exp.y (yylex): Use obstack_strndup.
2632 * ada-exp.y (write_object_renaming, write_ambiguous_var)
2633 (write_var_or_type): Use obstack_strndup.
2634
efba19b0
TT
26352019-08-06 Tom Tromey <tom@tromey.com>
2636
2637 * symfile.c (reread_symbols): Use obstack_strdup.
2638 * stabsread.c (read_type): Use obstack_strdup.
2639 * gdb_obstack.h (obstack_strdup): New overload.
2640 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
2641 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
2642 (dwarf2_canonicalize_name): Use obstack_strdup.
2643 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
2644 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
2645 Use obstack_strdup.
2646
f25102f7
TT
26472019-08-06 Tom Tromey <tom@tromey.com>
2648
2649 * gdb_obstack.h (obstack_strdup): Define.
2650 * gdb_obstack.c (obstack_strdup): Don't define.
2651
021887d8
TT
26522019-08-06 Tom Tromey <tom@tromey.com>
2653
2654 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
2655 obstack_strdup.
2656 * typeprint.c (typedef_hash_table::find_global_typedef): Use
2657 obstack_strdup.
2658 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
2659 * stabsread.c (common_block_start): Use obstack_strdup.
2660 * objfiles.c (set_objfile_main_name, objfile): Use
2661 obstack_strdup.
2662 * namespace.c (add_using_directive): Use obstack_strdup.
2663 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
2664 * jit.c (finalize_symtab): Use obstack_strdup.
2665 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
2666 (guess_partial_die_structure_name, partial_die_info::fixup)
2667 (dwarf2_name): Use obstack_strdup.
2668 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
2669 obstack_strdup.
2670 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
2671 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
2672 obstack_strdup.
2673 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
2674
d2834edc
PW
26752019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2676
2677 * unittests/help-doc-selftests.c: New file.
2678 * Makefile.in: Add the new file.
2679
590042fc
PW
26802019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2681
2682 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
2683 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
2684 the full first line, except when FOR_VALUE_PREFIX. In this case,
2685 the trailing '.' is not output, and the first character is uppercased.
2686 (print_help_for_command): Update call to print_doc_line.
2687 (print_doc_of_command): Likewise.
2688 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
2689 * cli/cli-option.c (append_indented_doc): Do not append newline.
2690 (build_help_option): Append newline after first appended_indented_doc
2691 only if a second call is done.
2692 (build_help): Append 2 new lines before each option, except the first
2693 one.
2694 * compile/compile.c (_initialize_compile): Add new lines after
2695 %OPTIONS%, when not at the end of the help.
2696 Change help doc or code
2697 producing the help doc to respect the invariants.
2698 * maint-test-options.c (_initialize_maint_test_options): Likewise.
2699 Also removed the new line after 'Options:', as all other commands
2700 do not put an empty line between 'Options:' and the first option.
2701 * printcmd.c (_initialize_printcmd): Likewise.
2702 * stack.c (_initialize_stack): Likewise.
2703 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
2704 incorrectly telling COMMAND is optional.
2705 * ada-lang.c (_initialize_ada_language): Change help doc or code
2706 producing the help doc to respect the invariants.
2707 * ada-tasks.c (_initialize_ada_tasks): Likewise.
2708 * breakpoint.c (_initialize_breakpoint): Likewise.
2709 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
2710 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
2711 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
2712 * cli/cli-style.c (cli_style_option::add_setshow_commands,
2713 _initialize_cli_style): Likewise.
2714 * corelow.c (core_target_info): Likewise.
2715 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
2716 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
2717 * filesystem.c (_initialize_filesystem): Likewise.
2718 * frame.c (_initialize_frame): Likewise.
2719 * gnu-nat.c (add_task_commands): Likewise.
2720 * infcall.c (_initialize_infcall): Likewise.
2721 * infcmd.c (_initialize_infcmd): Likewise.
2722 * interps.c (_initialize_interpreter): Likewise.
2723 * language.c (_initialize_language): Likewise.
2724 * linux-fork.c (_initialize_linux_fork): Likewise.
2725 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
2726 * maint.c (_initialize_maint_cmds): Likewise.
2727 * memattr.c (_initialize_mem): Likewise.
2728 * printcmd.c (_initialize_printcmd): Likewise.
2729 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
2730 _RegEx): Likewise.
2731 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
2732 * record-btrace.c (_initialize_record_btrace): Likewise.
2733 * record-full.c (_initialize_record_full): Likewise.
2734 * record.c (_initialize_record): Likewise.
2735 * regcache-dump.c (_initialize_regcache_dump): Likewise.
2736 * regcache.c (_initialize_regcache): Likewise.
2737 * remote.c (add_packet_config_cmd, init_remote_threadtests,
2738 _initialize_remote): Likewise.
2739 * ser-tcp.c (_initialize_ser_tcp): Likewise.
2740 * serial.c (_initialize_serial): Likewise.
2741 * skip.c (_initialize_step_skip): Likewise.
2742 * source.c (_initialize_source): Likewise.
2743 * stack.c (_initialize_stack): Likewise.
2744 * symfile.c (_initialize_symfile): Likewise.
2745 * symtab.c (_initialize_symtab): Likewise.
2746 * target-descriptions.c (_initialize_target_descriptions): Likewise.
2747 * top.c (init_main): Likewise.
2748 * tracefile-tfile.c (tfile_target_info): Likewise.
2749 * tracepoint.c (_initialize_tracepoint): Likewise.
2750 * tui/tui-win.c (_initialize_tui_win): Likewise.
2751 * utils.c (add_internal_problem_command): Likewise.
2752 * valprint.c (value_print_option_defs): Likewise.
2753
404f2902
FCE
27542019-08-06 Frank Ch. Eigler <fche@redhat.com>
2755
2756 PR build/24886
2757 * configure.ac: Drop enable-libmcheck support.
2758 * configure, config.in: Rebuild.
2759 * libmcheck.m4: Remove.
2760 * acinclude.m4: Don't include it.
2761 * Makefile.in: Don't distribute it.
2762 * top.c (print_gdb_configuration): Don't mention it.
2763
046bebe1
TT
27642019-08-06 Tom Tromey <tom@tromey.com>
2765
2766 * utils.c (set_output_style): Sometimes pass stream to
2767 emit_style_escape.
2768 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
2769 * record-btrace.c (btrace_insn_history): Update.
2770 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
2771 method.
2772 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
2773 Update initializers.
2774 <m_uiout>: New field.
2775 <m_di>: Move lower.
2776 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2777 Remove "uiout" parameter.
2778 (dump_insns): Update.
2779 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
2780 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
2781
ddbcedf5
CB
27822019-08-06 Christian Biesinger <cbiesinger@google.com>
2783
2784 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
2785 (error_in_psymtab_expansion): Likewise.
2786 (lookup_symbol_via_quick_fns): Likewise.
2787 (basic_lookup_transparent_type_quick): Likewise.
2788 (basic_lookup_transparent_type_1): Likewise.
2789
b08b16c8
TT
27902019-08-06 Tom Tromey <tromey@adacore.com>
2791
2792 * source.c (last_source_error): Now bool.
2793 (print_source_lines_base): Make "noprint" bool. Only open
2794 source file when last_source_visited changes.
2795
cb44333d
TT
27962019-08-06 Tom Tromey <tromey@adacore.com>
2797
2798 * annotate.c (annotate_source_line): Use g_source_cache.
2799 * source-cache.c (source_cache::get_plain_source_lines): Change
2800 parameters. Populate m_offset_cache.
2801 (source_cache::ensure): New method.
2802 (source_cache::get_line_charpos): New method.
2803 (extract_lines): Move lower. Change parameters.
2804 (source_cache::get_source_lines): Move lower.
2805 * source-cache.h (class source_cache): Update comment.
2806 <get_line_charpos>: New method.
2807 <get_source_lines>: Update comment.
2808 <clear>: Clear m_offset_cache.
2809 <get_plain_source_lines>: Change parameters.
2810 <ensure>: New method
2811 <m_offset_cache>: New member.
2812 * source.c (forget_cached_source_info_for_objfile): Update.
2813 (info_source_command): Use g_source_cache.
2814 (find_source_lines, open_source_file_with_line_charpos): Remove.
2815 (print_source_lines_base, search_command_helper): Use g_source_cache.
2816 * source.h (open_source_file_with_line_charpos): Don't declare.
2817 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
2818 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
2819 Use g_source_cache.
2820
872dceaa
TT
28212019-08-06 Tom Tromey <tromey@adacore.com>
2822
2823 * source-cache.c (source_cache::get_plain_source_lines):
2824 Remove "first_line" and "last_line" parameters.
2825 (source_cache::get_source_lines): Cache plain text.
2826 * source-cache.h (class source_cache)
2827 <get_plain_source_lines>: Update.
2828
269249d9
TT
28292019-08-06 Tom Tromey <tromey@adacore.com>
2830
2831 * source-cache.c (extract_lines): No longer a method.
2832 Changed type of parameter. Include final newline.
2833 (selftests::extract_lines_test): New function.
2834 (_initialize_source_cache): Likewise.
2835 * source-cache.h (class source_cache)
2836 <extract_lines>: Don't declare.
2837
c0e8dcd8
TT
28382019-08-06 Tom Tromey <tromey@adacore.com>
2839
2840 * breakpoint.c (init_breakpoint_sal): Update.
2841 (breakpoint): Update.
2842 * breakpoint.h (struct breakpoint) <filter>: Now a
2843 unique_xmalloc_ptr.
2844
0b27c27d
CB
28452019-08-05 Christian Biesinger <cbiesinger@google.com>
2846
2847 * NEWS: Mention dictionary access on blocks.
2848 * python/py-block.c (blpy_getitem): New function.
2849 (block_object_as_mapping): New struct.
2850 (block_object_type): Use new struct for tp_as_mapping field.
2851
4ee94178
CB
28522019-08-05 Christian Biesinger <cbiesinger@google.com>
2853
2854 * objfiles.h (objfile): Add a comment describing partial symbols.
2855
8abfcabc
TT
28562019-08-05 Tom Tromey <tromey@adacore.com>
2857
2858 * compile/compile.c (_initialize_compile): Use _(), not N_().
2859 * thread.c (_initialize_thread): Use _(), not N_().
2860 * stack.c (_initialize_stack): Use _(), not N_().
2861 * printcmd.c (_initialize_printcmd): Use _(), not N_().
2862
2b79f376
SM
28632019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2864
2865 * dwarf2read.c (struct dw2_symtab_iterator):
2866 <want_specific_block>: Remove.
2867 <block_index>: Change type to gdb::optional.
2868 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
2869 change type of BLOCK_INDEX parameter to gdb::optional.
2870 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
2871 (dw2_lookup_symbol): Don't pass argument for
2872 WANT_SPECIFIC_BLOCK.
2873 (dw2_expand_symtabs_for_function): Don't pass argument for
2874 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
2875 (class dw2_debug_names_iterator)
2876 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
2877 parameter, change BLOCK_INDEX type to gdb::optional.
2878 <m_want_specific_block>: Remove.
2879 <m_block_index>: Change type to gdb::optional.
2880 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
2881 gdb::optional. Re-write in function of gdb::optional.
2882 (dw2_debug_names_lookup_symbol): Don't pass argument for
2883 WANT_SPECIFIC_BLOCK.
2884 (dw2_debug_names_expand_symtabs_for_function): Don't pass
2885 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
2886 BLOCK_INDEX.
2887
ae60f04e
PW
28882019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2889
2890 * NEWS: Mention changes to "info sources" command.
2891
28cd9371
PW
28922019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2893
2894 * symtab.c (filename_partial_match_opts): New struct type.
2895 (struct output_source_filename_data): New members
2896 regexp, c_regexp, partial_match.
2897 (output_source_filename): Use new members to decide to print file.
2898 (info_sources_option_defs): New variable.
2899 (make_info_sources_options_def_group, print_info_sources_header,
2900 info_sources_command_completer):
2901 New functions.
2902 (info_sources_command): Read new optional arguments.
2903 (_initialize_symtab): Update info sources help.
2904
ca683e3a
AO
29052019-08-02 Alexandre Oliva <oliva@adacore.com>
2906
2907 * ada-lang.c (exception_support_info_v0): Renamed from...
2908 (default_exception_support_info): ... this. Create new
2909 definition for v1.
2910 (ada_has_this_exception_support): Look up catch_handlers_sym.
2911 (ada_exception_support_info_sniffer): Try v0 after default.
2912
f1264162
TT
29132019-08-01 Tom Tromey <tromey@adacore.com>
2914
2915 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
2916 gdbarch.h.
2917
0a7b2485
CB
29182019-08-01 Christian Biesinger <cbiesinger@google.com>
2919
2920 * s12z-tdep.c: Fix include path for s12z-opc.h.
2921
c6bdbeb7
AH
29222019-08-01 Alan Hayward <alan.hayward@arm.com>
2923
2924 * NEWS: Require GNU make 3.82.
2925
a2bd7b82
TT
29262019-07-16 Tom Tromey <tom@tromey.com>
2927
2928 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
2929 declare.
2930
aa3b6533
TT
29312019-07-30 Tom Tromey <tromey@adacore.com>
2932
2933 * block.c (contained_in): Remove BLOCK_FUNCTION check.
2934
a1530dc7
KB
29352019-07-30 Kevin Buettner <kevinb@redhat.com>
2936
2937 * printcmd.c (print_address_symbolic): Print negative offsets.
2938 (build_address_symbolic): Force signed arithmetic when computing
2939 offset.
2940
2906593f
CB
29412019-07-30 Christian Biesinger <cbiesinger@google.com>
2942
2943 PR/24474: Add a function to lookup static variables.
2944 * NEWS: Mention this new function.
2945 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
2946 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
2947 * python/python.c (python_GdbMethods): Add new function.
2948
c620ed88
CB
29492019-07-29 Christian Biesinger <cbiesinger@google.com>
2950
2951 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
2952 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
2953 (objfpy_lookup_static_symbol): New function.
2954 (objfile_object_methods): Add new functions.
2955
bc4268a5
PW
29562019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2957
2958 * NEWS: Mention 'set|show print frame-info'. Mention new
2959 'presence' value for 'frame-arguments'. Mention new '-frame-info'
2960 backtrace argument. Mention that python frame filtering code
2961 is now consistent with what 'backtrace' command prints.
2962
4b5e8d19
PW
29632019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2964
2965 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
2966 comments.
2967 (print_frame_info_auto, print_frame_info_source_line,
2968 print_frame_info_location, print_frame_info_source_and_location,
2969 print_frame_info_location_and_address, print_frame_info_short_location):
2970 New declarations.
2971 (struct frame_print_options): New member print_frame_info.
2972 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
2973 * stack.h (get_user_print_what_frame_info): New declaration.
2974 (frame_show_address): New declaration.
2975 * stack.c (print_frame_arguments_choices): New value 'presence'.
2976 (print_frame_info_auto, print_frame_info_source_line,
2977 print_frame_info_location, print_frame_info_source_and_location,
2978 print_frame_info_location_and_address, print_frame_info_short_location,
2979 print_frame_info_choices, print_frame_info_print_what): New definitions.
2980 (print_frame_args): Only print dots for args if print frame-arguments
2981 is 'presence'.
2982 (frame_print_option_defs): New element for "frame-info".
2983 (get_user_print_what_frame_info): New function.
2984 (frame_show_address): Make non static. Move comment to stack.h.
2985 (print_frame_info_to_print_what): New function.
2986 (print_frame_info): Update comment. Use fp_opts.print_frame_info
2987 to decide what to print.
2988 (backtrace_command_1): Handle the new print_frame_arguments_presence
2989 value.
2990 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
2991 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
2992 (py_print_frame): In non-mi mode, use LOCATION as default for
2993 print_what, similarly to frame information printed directly by
2994 backtrace command. Handle frame-info user option in non MI mode.
2995
6bdfee81
KB
29962019-07-27 Kevin Buettner <kevinb@redhat.com>
2997
2998 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
2999 Add case for debugging 32-bit target on 64-bit host. Revise
3000 comment.
3001
98a617f8
KB
30022019-07-27 Kevin Buettner <kevinb@redhat.com>
3003
3004 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
3005 instead of find_function_entry_range_from_pc.
3006
567238c9
KB
30072019-07-27 Kevin Buettner <kevinb@redhat.com>
3008
3009 * stack.c (find_frame_funname): Remove code which preferred
3010 minsym over symtab sym in "certain pathological cases".
3011
2dc80cf8
KB
3012 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
3013 parameter. Change type of "do_demangle" to bool.
3014 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3015 Pass suitable "prefer_sym_over_minsym" flag to
3016 build_address_symbolic(). Don't output "+" for negative offsets.
3017 * printcmd.c (print_address_symbolic): Update invocation of
3018 build_address_symbolic to include a "prefer_sym_over_minsym"
3019 flag.
3020 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
3021 Restrict cases in which use of minimal symbol is preferred to that
3022 of a found symbol. Update comments.
3023
1aff7173
KB
3024 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
3025 for entry pc when entry pc is out of range for that FDE.
3026
89b085ac
BC
30272019-07-26 Brian Callahan <bcallah@openbsd.org>
3028
3029 PR gdb/24839:
3030 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
3031 type.
3032
f32feb4a
CB
30332019-07-25 Christian Biesinger <cbiesinger@google.com>
3034
3035 * python/py-objfile.c (add_separate_debug_file): Fix comment about
3036 this function's Python signature.
3037
3038
30392019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
3040
3041 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
3042 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3043 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3044 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
3045 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
3046
3047
c54e4253
YS
30482019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
3049
3050 * h8300-tdep.c (h8300_register_name_common): New.
3051 h8300_register_name): Use h8300_register_name_common.
3052 (h8300s_register_name): Likewise.
3053 (h8300sx_register_name): Likewise.
3054 (h8300h_register_nam): New.
3055 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
3056
3057
40eadf04
SP
30582019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3059
3060 * arm-tdep.c (arm_skip_cmse_entry): New function.
3061 (arm_is_sgstubs_section): New function.
3062 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
3063
bfa2a36d
TT
30642019-07-22 Tom Tromey <tom@tromey.com>
3065
3066 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
3067 Don't self-assign.
3068
a8e9d247
AB
30692019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3070
3071 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
3072 type_print.
3073
eb86c5e2
AB
30742019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3075
3076 * symtab.c (search_symbols): Adjust msymbol matching type arrays
3077 so that GDB doesn't match any msymbols when searching in the
3078 TYPES_DOMAIN.
3079 (print_symbol_info): Print using typedef_print or type_print based
3080 on the type of the symbol. Add updated FIXME comment moved from...
3081 (_initialize_symtab): ... move and update FIXME comment to above.
3082
a8eab7c6
AB
30832019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3084
3085 * NEWS: Mention adding -q option to "info types".
3086 * symtab.c (struct info_types_options): New struct.
3087 (info_types_options_defs): New variable.
3088 (make_info_types_options_def_group): New function.
3089 (info_types_command): Use gdb::option framework to parse options.
3090 (info_types_command_completer): New function.
3091 (_initialize_symtab): Extend the help text on "info types" and
3092 register command completer.
3093
b4603c34
CB
30942019-07-21 Christian Biesinger <cbiesinger@google.com>
3095
3096 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
3097 (lookup_symbol_in_objfile): Change int to block_enum and add a
3098 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
3099
c8cdc1e0
CB
31002019-07-20 Christian Biesinger <cbiesinger@google.com>
3101
3102 * MAINTAINERS (Write After Approval): Add self.
3103
01e175fe
AB
31042019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
3105
3106 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
3107 instruction to the dummy code region.
3108
56f79b63
TT
31092019-07-19 Tom Tromey <tromey@adacore.com>
3110
3111 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
3112 (ARGSUSED, PARAMS, __func__): Remove rules.
3113
4c5aa8e0
AH
31142019-07-19 Alan Hayward <alan.hayward@arm.com>
3115
3116 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
3117 * features/arm/arm-with-iwmmxt.c: Remove.
3118 * features/arm/arm-with-iwmmxt.xml: Remove.
3119 * features/arm/arm-with-m-fpa-layout.c: Remove.
3120 * features/arm/arm-with-m-fpa-layout.xml: Remove.
3121 * features/arm/arm-with-m-vfp-d16.c: Remove.
3122 * features/arm/arm-with-m-vfp-d16.xml: Remove.
3123 * features/arm/arm-with-m.c: Remove.
3124 * features/arm/arm-with-m.xml: Remove.
3125 * features/arm/arm-with-neon.c: Remove.
3126 * features/arm/arm-with-neon.xml: Remove.
3127 * features/arm/arm-with-vfpv2.c: Remove.
3128 * features/arm/arm-with-vfpv2.xml: Remove.
3129 * features/arm/arm-with-vfpv3.c: Remove.
3130 * features/arm/arm-with-vfpv3.xml: Remove.
3131
f42b2617
AH
31322019-07-19 Alan Hayward <alan.hayward@arm.com>
3133
3134 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
3135
f29ec966
AH
31362019-07-19 Alan Hayward <alan.hayward@arm.com>
3137
3138 * arch/aarch32.c (aarch32_create_target_description): Create
3139 target descriptions using features.
3140 * arch/arm.c (arm_create_target_description)
3141 (arm_create_mprofile_target_description): Likewise.
3142 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
3143
d105cce5
AH
31442019-07-19 Alan Hayward <alan.hayward@arm.com>
3145
3146 * Makefile.in: Add new files.
3147 * aarch32-tdep.c: New file.
3148 * aarch32-tdep.h: New file.
3149 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3150 Call aarch32_read_description.
3151 * arch/aarch32.c: New file.
3152 * arch/aarch32.h: New file.
3153 * arch/arm.c (arm_create_target_description)
3154 (arm_create_mprofile_target_description): New function.
3155 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
3156 (arm_create_target_description)
3157 (arm_create_mprofile_target_description): New declaration.
3158 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
3159 read_description functions.
3160 * arm-linux-nat.c (arm_linux_nat_target::read_description):
3161 Likewise.
3162 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3163 * arm-tdep.c (tdesc_arm_list): New variable.
3164 (arm_register_g_packet_guesses): Call create description functions.
3165 (arm_read_description) (arm_read_mprofile_description): New
3166 function.
3167 * arm-tdep.h (arm_read_description)
3168 (arm_read_mprofile_description): Add declaration.
3169 * configure.tgt: Add new files.
3170
afe09f0b
GL
31712019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
3172
3173 * top.c (new_ui_command): Open specified terminal just once.
3174
cd215b2e
TT
31752019-07-18 Tom Tromey <tromey@adacore.com>
3176
3177 * symtab.c (main_name): Constify return type.
3178 * symfile.c (set_initial_language): Update.
3179 * symtab.h (main_name): Constify return type.
3180
d8f68fcb
TT
31812019-07-17 Tom Tromey <tom@tromey.com>
3182
3183 * tui/tui-winsource.c (tui_update_source_window)
3184 (tui_update_source_window_as_is)
3185 (tui_update_source_windows_with_line): Remove return.
3186 * tui/tui-disasm.c (tui_show_disassem)
3187 (tui_show_disassem_and_update_source): Remove return.
3188 * tui/tui.c (tui_reset): Remove return.
3189 * tui/tui-wingeneral.c
3190 (tui_check_and_display_highlight_if_needed): Remove return.
3191
ca5af91e
TT
31922019-07-17 Tom Tromey <tom@tromey.com>
3193
3194 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
3195
5104fe36
TT
31962019-07-17 Tom Tromey <tom@tromey.com>
3197
3198 * tui/tui-winsource.h (struct tui_exec_info_window)
3199 (struct tui_source_window_base): Move from tui-data.h.
3200 * tui/tui-winsource.c: Move many method definitions from
3201 elsewhere. Remove "structuring" comments.
3202 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
3203 (tui_source_window_base::refresh_window): Move to
3204 tui-winsource.c.
3205 * tui/tui-win.c (tui_source_window_base::refresh_all)
3206 (tui_source_window_base::update_tab_width)
3207 (tui_source_window_base::set_new_height)
3208 (tui_source_window_base::do_make_visible_with_new_height): Move to
3209 tui-winsource.c.
3210 * tui/tui-source.h: Update.
3211 * tui/tui-source.c (tui_source_window_base::reset): Move to
3212 tui-winsource.c.
3213 * tui/tui-disasm.h: Update.
3214 * tui/tui-data.h (struct tui_exec_info_window): Move to
3215 tui-winsource.h.
3216 (struct tui_source_window_base): Likewise.
3217 * tui/tui-data.c (tui_source_window_base::clear_detail)
3218 (tui_source_window_base, ~tui_source_window_base): Move to
3219 tui-winsource.c.
3220
daa15dde
TT
32212019-07-17 Tom Tromey <tom@tromey.com>
3222
3223 * tui/tui-win.c (tui_resize_all)
3224 (tui_source_window_base::update_tab_width)
3225 (tui_adjust_win_heights): Update.
3226 (tui_win_info::make_invisible_and_set_new_height): Rename from
3227 make_invisible_and_set_new_height.
3228 * tui/tui-data.h (struct tui_win_info)
3229 <make_invisible_and_set_new_height>: New method.
3230
bfad4537
TT
32312019-07-17 Tom Tromey <tom@tromey.com>
3232
3233 * tui/tui.c: Update.
3234 * tui/tui-source.h (struct tui_source_window): Move from
3235 tui-data.h.
3236 * tui/tui-layout.c: Update.
3237 * tui/tui-disasm.c: Update.
3238 * tui/tui-data.h (struct tui_source_window): Move to
3239 tui-source.h.
3240
88f7e873
TT
32412019-07-17 Tom Tromey <tom@tromey.com>
3242
3243 * tui/tui-disasm.h (struct tui_disasm_window): Move from
3244 tui-data.h.
3245 * tui/tui-data.h (struct tui_disasm_window): Move to
3246 tui-disasm.h.
3247
96bd6233
TT
32482019-07-17 Tom Tromey <tom@tromey.com>
3249
3250 * tui/tui-regs.h (struct tui_data_item_window): Move from
3251 tui-data.h.
3252 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
3253 * tui/tui-data.h (struct tui_data_item_window): Move to
3254 tui-regs.h.
3255 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
3256
ce38393b
TT
32572019-07-17 Tom Tromey <tom@tromey.com>
3258
3259 * tui/tui.c: Update.
3260 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
3261 (tui_cmd_window::max_height): Move to tui-command.c.
3262 * tui/tui-layout.c: Update.
3263 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
3264 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
3265 tui-command.c.
3266 * tui/tui-command.h (struct tui_cmd_window): Move from
3267 tui-data.h.
3268 * tui/tui-command.c: Remove "structuring" comments.
3269 (tui_cmd_window::clear_detail)
3270 (tui_cmd_window::do_make_visible_with_new_height)
3271 (tui_cmd_window::max_height): Move from elsewhere.
3272
2d8b51cb
TT
32732019-07-17 Tom Tromey <tom@tromey.com>
3274
3275 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
3276 Now static.
3277 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
3278 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
3279
18ab23af
TT
32802019-07-17 Tom Tromey <tom@tromey.com>
3281
3282 * tui/tui.c: Update.
3283 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
3284 tui-regs.c.
3285 * tui/tui-windata.h: Remove file.
3286 * tui/tui-windata.c: Remove file.
3287 * tui/tui-win.c (tui_data_window::set_new_height)
3288 (tui_data_window::do_make_visible_with_new_height): Move to
3289 tui-regs.c.
3290 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
3291 * tui/tui-regs.c: Remove "structuring" comments.
3292 (tui_data_window::first_data_item_displayed)
3293 (tui_data_window::delete_data_content_windows)
3294 (tui_data_window::erase_data_content)
3295 (tui_data_window::display_all_data)
3296 (tui_data_window::refresh_all)
3297 (tui_data_window::do_scroll_vertical)
3298 (tui_data_window::clear_detail, tui_data_window::set_new_height)
3299 (tui_data_window::do_make_visible_with_new_height)
3300 (tui_data_window::refresh_window): Move from elsewhere.
3301 (_initialize_tui_regs): Move to end of file.
3302 * tui/tui-layout.c: Update.
3303 * tui/tui-hooks.c: Update.
3304 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
3305 * tui/tui-data.c (tui_data_window::clear_detail): Move to
3306 tui-regs.c.
3307 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
3308
88b7e7cc
TT
33092019-07-17 Tom Tromey <tom@tromey.com>
3310
3311 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
3312 seen.
3313
0fcd3711
TT
33142019-07-17 Tom Tromey <tom@tromey.com>
3315
3316 * tui/tui-win.c (tui_source_window_base::set_new_height)
3317 (tui_source_window_base::do_make_visible_with_new_height): Use
3318 m_has_locator field directly.
3319 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
3320 method.
3321 (struct tui_source_window_base) <has_locator>: Likewise.
3322
4a38112d
TT
33232019-07-17 Tom Tromey <tom@tromey.com>
3324
3325 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
3326 Don't declare.
3327 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
3328 Remove.
3329 * tui/tui-win.c (tui_source_window_base::set_new_height)
3330 (tui_source_window_base::set_new_height)
3331 (make_invisible_and_set_new_height)
3332 (tui_source_window_base::do_make_visible_with_new_height)
3333 (tui_source_window_base::do_make_visible_with_new_height):
3334 Update.
3335 * tui/tui-layout.c (show_source_disasm_command, show_data)
3336 (show_source_or_disasm_and_command): Update.
3337 * tui/tui-layout.c (show_layout): Update.
3338
09129226
TT
33392019-07-17 Tom Tromey <tom@tromey.com>
3340
3341 * tui/tui-layout.c (make_data_window): Remove.
3342 (show_data): Unify creation and re-initialization cases.
3343
4a8a5e84
TT
33442019-07-17 Tom Tromey <tom@tromey.com>
3345
3346 * tui/tui-layout.c (make_source_window, make_disasm_window):
3347 Remove.
3348 (show_data): Unify creation and re-initialization cases.
3349
76d2be8e
TT
33502019-07-17 Tom Tromey <tom@tromey.com>
3351
3352 * tui/tui-layout.c (make_command_window): Remove.
3353 (show_source_disasm_command, show_source_or_disasm_and_command):
3354 Unify creation and re-initialization cases.
3355
890b8bde
TT
33562019-07-17 Tom Tromey <tom@tromey.com>
3357
3358 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
3359 creation and re-initialization cases.
3360
2cdfa113
TT
33612019-07-17 Tom Tromey <tom@tromey.com>
3362
3363 * tui/tui-regs.c (tui_get_register): Return void.
3364
8e3cfd09
TT
33652019-07-17 Tom Tromey <tom@tromey.com>
3366
3367 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
3368 Simplify.
3369
f4e04977
TT
33702019-07-17 Tom Tromey <tom@tromey.com>
3371
3372 * tui/tui-layout.c (show_source_disasm_command): Simplify window
3373 resetting.
3374
0379b883
TT
33752019-07-17 Tom Tromey <tom@tromey.com>
3376
3377 * tui/tui.h (tui_set_layout_by_name): Don't declare.
3378 * tui/tui-regs.c (tui_reg_layout): New function.
3379 (tui_show_registers, tui_reg_command): Use it.
3380 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
3381 (tui_layout_command): Rename from tui_set_layout_by_name. Change
3382 parameters.
3383 (tui_layout_command): Remove.
3384
b7fbad91
TT
33852019-07-17 Tom Tromey <tom@tromey.com>
3386
3387 * tui/tui-layout.h (tui/tui-layout): Return void.
3388 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
3389
4e1e56b9
TT
33902019-07-17 Tom Tromey <tom@tromey.com>
3391
3392 * tui/tui-layout.c (show_source_disasm_command, show_data):
3393 Update.
3394 (reset_locator): Remove.
3395 (show_source_or_disasm_and_command): Update.
3396
1e0c09ba
TT
33972019-07-17 Tom Tromey <tom@tromey.com>
3398
3399 * tui/tui-source.c (tui_source_window_base::reset): Remove
3400 win_type parameter.
3401 * tui/tui-layout.c (make_command_window, make_source_window)
3402 (make_disasm_window, make_data_window)
3403 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
3404 (reset_locator, show_source_or_disasm_and_command): Update.
3405 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
3406 win_type parameter.
3407 (struct tui_source_window_base) <reset>: Likewise.
3408
1bf605de
TT
34092019-07-17 Tom Tromey <tom@tromey.com>
3410
3411 * tui/tui-layout.c (show_source_disasm_command): Use
3412 reset_locator.
3413 (reset_locator): New function.
3414 (init_and_make_win): Remove.
3415 (show_source_or_disasm_and_command): Use reset_locator.
3416
098f9ed4
TT
34172019-07-17 Tom Tromey <tom@tromey.com>
3418
3419 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
3420 condition.
3421 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
3422 Remove condition.
3423 * tui/tui-source.c (tui_source_window_base::reset): New method.
3424 * tui/tui-layout.c (make_command_window): Don't call
3425 init_and_make_win.
3426 (make_source_window, make_disasm_window): Don't call
3427 make_source_or_disasm_window.
3428 (make_data_window): Don't call init_and_make_win. Change calling
3429 convention.
3430 (show_source_disasm_command, show_data): Simplify.
3431 (make_source_or_disasm_window): Remove.
3432 (show_source_or_disasm_and_command): Simplify.
3433 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
3434 (struct tui_source_window_base) <reset>: Likewise.
3435 <execution_info>: Remove initializer.
3436 * tui/tui-data.c (tui_source_window_base): Initialize
3437 execution_info.
3438
80110957
TT
34392019-07-17 Tom Tromey <tom@tromey.com>
3440
3441 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
3442 variable.
3443
cf82af05
TT
34442019-07-17 Tom Tromey <tom@tromey.com>
3445
3446 * tui/tui.c (tui_rl_other_window): Update.
3447 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
3448 superclass method first. Always iterate over regs_content.
3449 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
3450 method.
3451 * tui/tui-win.c (tui_set_focus_command): Update.
3452
01aeb396
TT
34532019-07-17 Tom Tromey <tom@tromey.com>
3454
3455 * tui/tui-win.c (tui_set_focus_command): Rename from
3456 tui_set_focus. Call tui_enable.
3457 (tui_set_focus_command): Remove.
3458
fd6c75ee
TT
34592019-07-17 Tom Tromey <tom@tromey.com>
3460
3461 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
3462 refresh_window.
3463 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
3464 touchwin.
3465 (tui_data_window::refresh_window): Call refresh_window on data
3466 items. Always call superclass refresh_window.
3467 (tui_win_info::refresh): Remove.
3468 (tui_source_window_base::refresh_window): Update.
3469 (tui_refresh_all): Update.
3470 * tui/tui-layout.c (show_source_disasm_command): Remove call to
3471 refresh_window.
3472 (show_source_or_disasm_and_command): Likewise.
3473 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
3474 (struct tui_source_window_base) <refresh>: Likewise.
3475
f6cc34a9
TT
34762019-07-17 Tom Tromey <tom@tromey.com>
3477
3478 * tui/tui-winsource.c (tui_clear_source_content)
3479 (tui_show_source_content): Update.
3480 * tui/tui-source.c (tui_source_window::showing_source_p): Check
3481 whether content is empty.
3482 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
3483 Remove.
3484
f31ec9af
TT
34852019-07-17 Tom Tromey <tom@tromey.com>
3486
3487 * tui/tui-winsource.c (tui_erase_source_content): Clear the
3488 window's contents.
3489 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
3490 * tui/tui-source.c (tui_set_source_content_nil): Remove.
3491
d1b6f1e5
TT
34922019-07-17 Tom Tromey <tom@tromey.com>
3493
3494 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
3495 (struct tui_data_item_window): Update.
3496
d9743a13
TT
34972019-07-17 Tom Tromey <tom@tromey.com>
3498
3499 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
3500 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
3501 defines.
3502
caf0bc4e
TT
35032019-07-17 Tom Tromey <tom@tromey.com>
3504
3505 * tui/tui-winsource.h (tui_erase_source_content)
3506 (tui_clear_source_content): Remove "display_prompt" parameter.
3507 * tui/tui-winsource.c (tui_update_source_window_as_is)
3508 (tui_update_source_windows_with_addr): Update.
3509 (tui_clear_source_content): Remove "display_prompt" parameter.
3510 (tui_erase_source_content): Likewise. Simplify.
3511 (tui_show_source_content): Update.
3512 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3513 * tui/tui-stack.c (tui_show_frame_info): Update.
3514 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
3515 Remove defines.
3516
9d391078
TT
35172019-07-17 Tom Tromey <tom@tromey.com>
3518
3519 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3520 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
3521 parameter.
3522 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
3523 parameter.
3524
a38da35d
TT
35252019-07-17 Tom Tromey <tom@tromey.com>
3526
3527 * tui/tui-winsource.c (tui_clear_source_content)
3528 (tui_show_source_content, tui_show_exec_info_content)
3529 (tui_clear_exec_info_content): Update.
3530 * tui/tui-stack.c (tui_show_locator_content): Update.
3531 (tui_show_frame_info): Update.
3532 * tui/tui-source.h (tui_source_window): Don't declare.
3533 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
3534 from tui_source_is_displayed.
3535 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
3536 Remove field.
3537 (struct tui_source_window_base) <content_in_use>: New field. Now
3538 bool.
3539 (struct tui_source_window) <showing_source_p>: New method.
3540 (TUI_SRC_WIN): Change cast.
3541 * tui/tui-data.c (tui_initialize_static_data): Update.
3542
c2cd8994
TT
35432019-07-17 Tom Tromey <tom@tromey.com>
3544
3545 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
3546 location_matches_p.
3547 * tui/tui-source.c (tui_source_window::location_matches_p): New
3548 method.
3549 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
3550 method.
3551 * tui/tui-data.h (struct tui_source_window_base)
3552 <location_matches_p>: New method.
3553 (struct tui_source_window, struct tui_disasm_window)
3554 <location_matches_p>: Likewise.
3555
4dde7b34
TT
35562019-07-17 Tom Tromey <tom@tromey.com>
3557
3558 * tui/tui-win.c (tui_set_win_height_command): Rename from
3559 tui_set_win_height.
3560 (tui_set_win_height_command): Remove.
3561
b73dd877
TT
35622019-07-17 Tom Tromey <tom@tromey.com>
3563
3564 * tui/tui-source.c (tui_source_window): New constructor. Add
3565 observer.
3566 (~tui_source_window): New destructor.
3567 (tui_source_window::style_changed): New method.
3568 * tui/tui-hooks.c (tui_redisplay_source): Remove.
3569 (tui_attach_detach_observers): Update.
3570 * tui/tui-data.h (struct tui_source_window): Make constructor not
3571 inline. Add destructor.
3572 (struct tui_source_window) <style_changed>: New method.
3573 <m_observable>: New member.
3574
ae2b5380
TT
35752019-07-17 Tom Tromey <tom@tromey.com>
3576
3577 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
3578 * tui/tui-win.c (tui_resize_all): Fix typo.
3579
1ce3e844
TT
35802019-07-17 Tom Tromey <tom@tromey.com>
3581
3582 * tui/tui-wingeneral.h (tui_refresh_all): Update.
3583 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
3584 (tui_refresh_all): Remove "list" parameter. Use foreach.
3585 * tui/tui-win.c (window_name_completer): Use foreach.
3586 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
3587 (update_tab_width): Likewise.
3588 * tui/tui-layout.c (show_layout): Update.
3589 * tui/tui-data.h (class tui_window_iterator): New.
3590 (struct all_tui_windows): New.
3591 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
3592
fe3eaf1c
TT
35932019-07-17 Tom Tromey <tom@tromey.com>
3594
3595 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
3596 parameter. Don't reference globals.
3597 (tui_reg_command): Update.
3598
368c1354
TT
35992019-07-17 Tom Tromey <tom@tromey.com>
3600
3601 * tui/tui-regs.c (tui_show_registers): Simplify.
3602
e80cd204
TT
36032019-07-17 Tom Tromey <tom@tromey.com>
3604
3605 * tui/tui-regs.c (tui_show_registers): Update.
3606 (tui_show_register_group): Add win_info parameter.
3607
aca2dd16
TT
36082019-07-17 Tom Tromey <tom@tromey.com>
3609
3610 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
3611 Rename from tui_display_reg_element_at_line.
3612 (tui_data_window::display_registers_from_line): Update.
3613 * tui/tui-data.h (struct tui_data_window)
3614 <display_reg_element_at_line>: New method.
3615
517e9505
TT
36162019-07-17 Tom Tromey <tom@tromey.com>
3617
3618 * tui/tui-regs.h (tui_display_registers_from)
3619 (tui_display_registers_from_line): Don't declare.
3620 * tui/tui-windata.c (tui_data_window::display_all_data)
3621 (tui_data_window::refresh_all)
3622 (tui_data_window::do_scroll_vertical): Update.
3623 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
3624 from tui_display_registers_from.
3625 (tui_display_reg_element_at_line): Update.
3626 (tui_data_window::display_registers_from_line): Rename from
3627 tui_display_registers_from_line.
3628 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
3629 display_registers_from_line>: New methods.
3630
f76d8b19
TT
36312019-07-17 Tom Tromey <tom@tromey.com>
3632
3633 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
3634 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
3635 from tui_erase_data_content.
3636 (tui_data_window::display_all_data)
3637 (tui_data_window::refresh_all)
3638 (tui_data_window::do_scroll_vertical): Update.
3639 * tui/tui-regs.c (tui_show_registers): Update.
3640 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
3641 New method.
3642
b4094625
TT
36432019-07-17 Tom Tromey <tom@tromey.com>
3644
3645 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
3646 declare.
3647 * tui/tui-windata.c
3648 (tui_data_window::delete_data_content_windows): Rename from
3649 tui_delete_data_content_windows.
3650 (tui_data_window::display_all_data)
3651 (tui_data_window::do_scroll_vertical): Update.
3652 * tui/tui-data.h (struct tui_data_window)
3653 <delete_data_content_windows>: New method.
3654
c223a729
TT
36552019-07-17 Tom Tromey <tom@tromey.com>
3656
3657 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
3658 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
3659
50daf268
TT
36602019-07-17 Tom Tromey <tom@tromey.com>
3661
3662 * tui/tui-windata.h (tui_display_all_data): Don't declare.
3663 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
3664 from tui_display_all_data.
3665 * tui/tui-win.c
3666 (tui_data_window::do_make_visible_with_new_height): Update.
3667 * tui/tui-regs.c (tui_show_registers): Update.
3668 * tui/tui-layout.c (tui_set_layout): Update.
3669 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
3670 method.
3671
df5f8cab
TT
36722019-07-17 Tom Tromey <tom@tromey.com>
3673
3674 * tui/tui-windata.h (tui_display_data_from): Don't declare.
3675 * tui/tui-windata.c (tui_display_data_from): Remove.
3676 (tui_data_window::refresh_all): Update.
3677
80cb6c27
TT
36782019-07-17 Tom Tromey <tom@tromey.com>
3679
3680 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
3681 * tui/tui-windata.c (tui_display_data_from_line): Remove.
3682 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
3683 tui_display_registers_from_line.
3684 * tui/tui-regs.h (tui_display_registers_from_line): Update.
3685 * tui/tui-regs.c (tui_display_registers_from_line): Remove
3686 "force_display" parameter.
3687
baff0c28
TT
36882019-07-17 Tom Tromey <tom@tromey.com>
3689
3690 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
3691 declare.
3692 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
3693 Rename from tui_first_reg_element_no_inline.
3694 (tui_display_reg_element_at_line)
3695 (tui_display_registers_from_line): Update.
3696 * tui/tui-data.h (struct tui_data_window)
3697 <first_reg_element_no_inline>: New method.
3698
3b23c5f2
TT
36992019-07-17 Tom Tromey <tom@tromey.com>
3700
3701 * tui/tui-windata.c (tui_display_data_from)
3702 (tui_data_window::do_scroll_vertical): Update.
3703 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
3704 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
3705 Rename from tui_line_from_reg_element_no.
3706 (tui_display_registers_from_line): Update.
3707 * tui/tui-data.h (struct tui_data_window)
3708 <line_from_reg_element_no>: New method.
3709
0b5ec218
TT
37102019-07-17 Tom Tromey <tom@tromey.com>
3711
3712 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
3713 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
3714 tui_last_regs_line_no.
3715 (tui_display_reg_element_at_line)
3716 (tui_display_registers_from_line): Update.
3717 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
3718 method.
3719
0807ab7b
TT
37202019-07-17 Tom Tromey <tom@tromey.com>
3721
3722 PR tui/24722:
3723 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
3724 (tui_update_breakpoint_info): Add "being_deleted" parameter.
3725 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3726 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
3727 (tui_update_breakpoint_info): Likewise.
3728 * tui/tui-hooks.c (tui_event_create_breakpoint)
3729 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
3730 Update.
3731
9ad7fdef
TT
37322019-07-17 Tom Tromey <tom@tromey.com>
3733
3734 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
3735
5813316f
TT
37362019-07-17 Tom Tromey <tom@tromey.com>
3737
3738 * tui/tui-winsource.c (tui_update_source_window_as_is)
3739 (tui_update_source_windows_with_addr): Update.
3740 * tui/tui-source.h (tui_set_source_content)
3741 (tui_show_symtab_source): Add "win_info" parameter.
3742 * tui/tui-source.c (tui_set_source_content): Add "win_info"
3743 parameter.
3744 (tui_show_symtab_source): Likewise.
3745
00e264e7
TT
37462019-07-17 Tom Tromey <tom@tromey.com>
3747
3748 * tui/tui-wingeneral.c
3749 (tui_check_and_display_highlight_if_needed): Check can_highlight.
3750
06210ce4
TT
37512019-07-17 Tom Tromey <tom@tromey.com>
3752
3753 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
3754 (struct tui_cmd_window) <can_scroll>: New method.
3755 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
3756 method.
3757
381befee
TT
37582019-07-17 Tom Tromey <tromey@adacore.com>
3759
3760 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
3761 do_field_signed>: Rename. Change type of "value".
3762 * ui-out.c (ui_out::field_signed): Rename from field_int.
3763 Change type of "value".
3764 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
3765 type of "value".
3766 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
3767 do_field_int. Change type of "value".
3768 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
3769 do_field_int. Change type of "value".
3770 * tracepoint.c (trace_status_mi, tfind_1)
3771 (print_one_static_tracepoint_marker): Update.
3772 * thread.c (print_thread_info_1, print_selected_thread_frame):
3773 Update.
3774 * stack.c (print_frame, print_frame_info): Update.
3775 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
3776 Update.
3777 * source.c (print_source_lines_base): Update.
3778 * skip.c (info_skip_command): Update.
3779 * record-btrace.c (btrace_ui_out_decode_error)
3780 (btrace_call_history_src_line): Update.
3781 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
3782 Update.
3783 * progspace.c (print_program_space): Update.
3784 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
3785 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
3786 do_field_int. Change type of "value".
3787 * mi/mi-out.c (mi_ui_out::do_table_begin)
3788 (mi_ui_out::do_table_header): Update.
3789 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
3790 type of "value".
3791 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
3792 (mi_cmd_data_list_changed_registers, output_register)
3793 (mi_cmd_data_read_memory, mi_load_progress)
3794 (mi_cmd_trace_frame_collected): Update.
3795 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
3796 Update.
3797 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3798 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
3799 (mi_cmd_var_list_children, varobj_update_one): Update.
3800 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
3801 (mi_cmd_stack_list_args, list_arg_or_local): Update.
3802 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
3803 * inferior.c (print_inferior): Update.
3804 * gdb_bfd.c (print_one_bfd): Update.
3805 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3806 Update.
3807 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
3808 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
3809 do_field_int. Change type of "value".
3810 * cli-out.c (cli_ui_out::do_field_signed): Rename from
3811 do_field_int. Change type of "value".
3812 * breakpoint.c (watchpoint_check, print_breakpoint_location)
3813 (print_one_breakpoint_location, print_it_catch_fork)
3814 (print_one_catch_fork, print_it_catch_vfork)
3815 (print_one_catch_vfork, print_it_catch_solib)
3816 (print_it_catch_exec, print_it_ranged_breakpoint)
3817 (print_mention_watchpoint, print_mention_masked_watchpoint)
3818 (bkpt_print_it, update_static_tracepoint): Update.
3819 * break-catch-throw.c (print_it_exception_catchpoint): Update.
3820 * break-catch-syscall.c (print_it_catch_syscall): Update.
3821 * ada-tasks.c (print_ada_task_info): Update.
3822 * ada-lang.c (print_it_exception, print_mention_exception):
3823 Update.
3824
6b78c3f8
AB
38252019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3826
3827 PR breakpoints/24541
3828 * gdbarch.c: Regenerate.
3829 * gdbarch.h: Regenerate.
3830 * gdbarch.sh: Adjust return type and parameter types for
3831 'stap_adjust_register'.
3832 (i386_stap_adjust_register): Adjust signature and return new
3833 register name.
3834 * stap-probe.c (stap_parse_register_operand): Adjust use of
3835 'gdbarch_stap_adjust_register'.
3836
d72a9b85
TT
38372019-07-17 Tom Tromey <tromey@adacore.com>
3838
3839 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
3840 declare VEC.
3841 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
3842 std::vector.
3843 (struct s390_process_info): Add initializers.
3844 (s390_add_process): Use new.
3845 (s390_linux_nat_target::low_forget_process): Use delete.
3846 (s390_linux_nat_target::low_new_fork)
3847 (s390_linux_nat_target::stopped_by_watchpoint)
3848 (s390_linux_nat_target::low_prepare_to_resume)
3849 (s390_linux_nat_target::insert_watchpoint)
3850 (s390_linux_nat_target::insert_hw_breakpoint)
3851 (s390_linux_nat_target::remove_watchpoint)
3852 (s390_linux_nat_target::remove_hw_breakpoint): Update.
3853
206e6c58
JB
38542019-07-16 John Baldwin <jhb@FreeBSD.org>
3855
3856 * aarch64-fbsd-nat.c: Include regcache.h.
3857 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
3858 argument.
3859 (aarch64_fbsd_nat_target::fetch_registers)
3860 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
3861 variable.
3862 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
3863
cbde90f2
JB
38642019-07-16 John Baldwin <jhb@FreeBSD.org>
3865
3866 * fbsd-nat.c: Include gdbarch.h.
3867
07128006
TT
38682019-07-15 Tom Tromey <tromey@adacore.com>
3869
3870 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
3871
1f77b012
TT
38722019-07-15 Tom Tromey <tromey@adacore.com>
3873
3874 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
3875 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
3876 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
3877 * cli-out.c (cli_ui_out::do_field_int): New method.
3878 * ui-out.c (ui_out::field_unsigned): New method.
3879 * symfile.c (generic_load): Use field_unsigned.
3880 (print_transfer_performance): Likewise.
3881 * record-btrace.c (ui_out_field_uint): Remove.
3882 (btrace_call_history_insn_range, btrace_call_history): Use
3883 field_unsigned.
3884 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3885 field_unsigned.
3886 * ui-out.h (class ui_out) <field_unsigned>: New method.
3887 <do_field_unsigned>: Likewise.
3888
33eca680
TT
38892019-07-15 Tom Tromey <tromey@adacore.com>
3890
3891 * mi/mi-main.c (list_available_thread_groups): Use field_string.
3892 * mi/mi-interp.c (mi_memory_changed): Use field_string.
3893 * target.c (flash_erase_command): Use field_string.
3894 * infrun.c (print_signal_received_reason): Use field_string.
3895 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
3896 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
3897 field_string.
3898 * ada-tasks.c (print_ada_task_info): Use field_string.
3899
ca8d69be
TT
39002019-07-15 Tom Tromey <tromey@adacore.com>
3901
3902 * target.c (flash_erase_command): Use field_core_addr.
3903 * symfile.c (generic_load): Use field_core_addr.
3904 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3905 Use field_core_addr.
3906 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
3907 field_core_addr.
3908
0d4e84ed
AB
39092019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3910
3911 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
3912 value if its desired type is smaller than a CORE_ADDR and signed.
3913
9a49df9d
AB
39142019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3915
3916 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
3917 of changes to field names, and use new is_reference field to
3918 decide if a property is a reference or not.
3919 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
3920 field.
3921 (struct dwarf2_property_baton): Update header comment, rename
3922 'referenced_type' to 'property_type' and update comments.
3923 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
3924 default property type, store in property baton, update to take
3925 accound of renamed field.
3926 (read_func_scope): Update call to attr_to_dynamic_prop.
3927 (read_array_type): Likewise.
3928 (dwarf2_per_cu_addr_sized_int_type): New function.
3929 (read_subrange_index_type): Move type finding code to
3930 dwarf2_per_cu_addr_sized_int_type.
3931 (read_subrange_type): Update calls to attr_to_dynamic_prop.
3932 (dwarf2_per_cu_addr_type): New function.
3933 (set_die_type): Update calls to attr_to_dynamic_prop.
3934
b86352cf
AB
39352019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3936
3937 * dwarf2read.c (read_subrange_index_type): New function.
3938 (read_subrange_type): Move code into new function and call it.
3939 * gdbtypes.c (create_range_type): Add some asserts.
3940
603490bf
AB
39412019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3942
3943 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
3944 update return statements.
3945 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
3946 declaration, and update comment to match.
3947 * gdbtypes.c (resolve_dynamic_array): Update call to
3948 dwarf2_evaluate_property to match new return type.
3949
592f9d27
AB
39502019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3951
3952 * valarith.c (value_subscripted_rvalue): Change lowerbound
3953 parameter type from int to LONGEST.
3954 * value.h (value_subscripted_rvalue): Likewise in declaration.
3955
60cfcb20
AB
39562019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3957
3958 * cli/cli-utils.c (info_print_command_completer): New function.
3959 * cli/cli-utils.h: Add 'completer.h' include, and forward
3960 declaration for 'struct cmd_list_element'.
3961 (info_print_command_completer): Declare.
3962 * stack.c (_initialize_stack): Add completer for 'info locals' and
3963 'info args'.
3964 * symtab.c (_initialize_symtab): Add completer for 'info
3965 variables' and 'info functions'.
3966 * NEWS: Mention completion for additional info commands.
3967
b16507e0
AB
39682019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3969
3970 * cli/cli-utils.c (extract_info_print_args): Delete.
3971 (extract_arg_maybe_quoted): Delete.
3972 (info_print_options_defs): New variable.
3973 (make_info_print_options_def_group): New function.
3974 (extract_info_print_options): Define new function.
3975 * cli/cli-utils.h (extract_info_print_args): Delete.
3976 (struct info_print_options): New structure.
3977 (extract_info_print_options): Declare new function.
3978 * stack.c (info_locals_command): Update to use new
3979 extract_info_print_options, also add a header comment.
3980 (info_args_command): Likewise.
3981 * symtab.c (info_variables_command): Likewise.
3982 (info_functions_command): Likewise.
3983
021d8588
AB
39842019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3985
3986 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
3987 to extract string arguments.
3988 * common/common-utils.c (extract_string_maybe_quoted): New function.
3989 * common/common-utils.h (extract_string_maybe_quoted): Declare.
3990
b777eb6d
TT
39912019-07-11 Tom Tromey <tromey@adacore.com>
3992
3993 * main.c (get_init_files): Use GDBINIT, not gdbinit.
3994 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
3995 * top.h (gdbinit): Don't declare.
3996 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
3997 into...
3998 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
3999 * top.c (gdb_init): Don't call init_cli_cmds.
4000 (gdbinit): Remove.
4001 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
4002
72ee03ff
TT
40032019-07-11 Tom Tromey <tromey@adacore.com>
4004
4005 * python/py-inferior.c (add_thread_object): Don't use thread_obj
4006 after it has been moved.
4007
00db9531
SM
40082019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4009
4010 * valops.c (value_must_coerce_to_target): Change return type to
4011 bool.
4012 * value.h (value_must_coerce_to_target): Likewise.
4013
f2478a7e
SM
40142019-07-10 Simon Marchi <simon.marchi@efficios.com>
4015
4016 * breakpoint.c (is_hardware_watchpoint): Remove
4017 forward-declaration.
4018 (is_masked_watchpoint): Change return type to bool.
4019 (is_tracepoint): Likewise.
4020 (is_breakpoint): Likewise.
4021 (is_hardware_watchpoint): Likewise.
4022 (is_watchpoint): Likewise.
4023 (is_no_memory_software_watchpoint): Likewise.
4024 (is_catchpoint): Likewise.
4025 (breakpoint_1): Make FILTER parameter's return type bool.
4026 is_masked_watchpoint): Change return type to bool.
4027 (save_breakpoints): Make FILTER parameter's return type bool.
4028 * breakpoint.h (is_breakpoint): Change return type to bool.
4029 (is_watchpoint): Likewise.
4030 (is_catchpoint): Likewise.
4031 (is_tracepoint): Likewise.
4032
0d12e84c
TT
40332019-07-10 Tom Tromey <tom@tromey.com>
4034
4035 * defs.h: Don't include gdbarch.h.
4036 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
4037 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
4038 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
4039 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
4040 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
4041 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
4042 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
4043 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
4044 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
4045 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
4046 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
4047 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
4048 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
4049 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
4050 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
4051 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
4052 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
4053 record-btrace.c, record.h, regcache-dump.c, regcache.h,
4054 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
4055 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
4056 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
4057 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
4058 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
4059 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
4060 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
4061 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
4062 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
4063
f06f1252
TT
40642019-07-10 Tom Tromey <tromey@adacore.com>
4065
4066 * ada-lang.h (is_ada_exception_catchpoint): Declare.
4067 * breakpoint.c (init_ada_exception_breakpoint): Register as
4068 bp_catchpoint.
4069 (print_one_breakpoint_location, print_one_breakpoint): Use
4070 is_ada_exception_catchpoint.
4071 * ada-lang.c (class ada_catchpoint_location): Pass
4072 bp_loc_software_breakpoint to bp_location constructor.
4073 (is_ada_exception_catchpoint): New function.
4074
7a5d944b
TT
40752019-07-10 Tom Tromey <tromey@adacore.com>
4076
4077 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
4078 VEC.
4079 (struct arm_exidx_entry): New method operator<.
4080 (struct arm_exidx_data) <section_maps>: Change type.
4081 (arm_exidx_data_free): Remove.
4082 (arm_exidx_data_key): Change type. Move lower.
4083 (arm_exidx_new_objfile): Update.
4084 (arm_compare_exidx_entries): Remove.
4085 (arm_find_exidx_entry, _initialize_arm_tdep)
4086
48c66e1d
TT
40872019-07-10 Tom Tromey <tromey@adacore.com>
4088
4089 * solib-spu.c (ocl_program_data_key): Change type.
4090 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
4091 Update.
4092
a269fbf1
TT
40932019-07-10 Tom Tromey <tromey@adacore.com>
4094
4095 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
4096 (struct solib_aix_inferior_data) <library_list>: Change type.
4097 (solib_aix_inferior_data_handle): Change type.
4098 (get_solib_aix_inferior_data): Update.
4099 (solib_aix_free_library_list): Remove.
4100 (library_list_start_library): Update.
4101 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
4102 return type.
4103 (solib_aix_get_library_list)
4104 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
4105 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
4106
c294730c
TT
41072019-07-10 Tom Tromey <tromey@adacore.com>
4108
4109 * solib-dsbt.c (struct dsbt_info): Add initializers.
4110 (solib_dsbt_pspace_data): Change type.
4111 (dsbt_pspace_data_cleanup): Remove.
4112 (get_dsbt_info, _initialize_dsbt_solib): Update.
4113
9d52077d
TT
41142019-07-10 Tom Tromey <tromey@adacore.com>
4115
4116 * spu-tdep.c (spu_overlay_data): Change type.
4117 (spu_get_overlay_table, spu_overlay_new_objfile)
4118 (_initialize_spu_tdep): Update.
4119
22a20dca
TT
41202019-07-10 Tom Tromey <tromey@adacore.com>
4121
4122 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
4123 destructor.
4124 (dbx_objfile_data_key): Change type and declare later.
4125 (DBX_SYMFILE_INFO): Rewrite.
4126 * dbxread.c (dbx_objfile_data_key): Change type.
4127 (dbx_symfile_init): Update.
4128 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
4129 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4130 (stabsect_build_psymtabs, _initialize_dbxread): Update.
4131
cb60f420
TT
41322019-07-10 Tom Tromey <tromey@adacore.com>
4133
4134 * jit.c (jit_program_space_key): Change type. Move lower.
4135 (get_jit_program_space_data): Update.
4136 (jit_program_space_data_cleanup): Remove.
4137 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
4138 Update.
4139 (struct jit_program_space_data): Add initializers.
4140
51df2ae3
TT
41412019-07-10 Tom Tromey <tromey@adacore.com>
4142
4143 * solib-darwin.c (struct darwin_info): Add initializers.
4144 (solib_darwin_pspace_data): Change type.
4145 (darwin_pspace_data_cleanup): Remove.
4146 (get_darwin_info, _initialize_darwin_solib): Update.
4147
18101a35
TT
41482019-07-10 Tom Tromey <tromey@adacore.com>
4149
4150 * remote-sim.c (struct sim_inferior_data): Add initializers,
4151 constructor, and destructor.
4152 (sim_inferior_data_key): Change type. Move lower.
4153 (check_for_duplicate_sim_descriptor): Update.
4154 (get_sim_inferior_data): Use new. Update.
4155 (~sim_inferior_data_cleanup): Rename from
4156 sim_inferior_data_cleanup. Simplify.
4157 (gdbsim_close_inferior, simulator_command)
4158 (sim_command_completer, _initialize_remote_sim): Update.
4159 (next_pid, INITIAL_PID): Move earlier.
4160
05b08ac1
TT
41612019-07-10 Tom Tromey <tromey@adacore.com>
4162
4163 * python/python-internal.h (create_thread_object): Return
4164 gdbpy_ref.
4165 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
4166 * python/py-inferior.c (struct threadlist_entry): Add
4167 constructor.
4168 <thread_obj>: Now a gdbpy_ref.
4169 (thread_to_thread_object): Update.
4170 (add_thread_object): Use new.
4171 (delete_thread_object): Use delete.
4172 (infpy_threads): Update.
4173 (py_free_inferior): Update. Construct "inf_obj" after acquiring
4174 GIL.
4175
32372d80
TT
41762019-07-10 Tom Tromey <tromey@adacore.com>
4177
4178 * valops.c (value_cast): Specialize error message for Ada.
4179
5c458ae8
SM
41802019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4181
4182 * breakpoint.c (breakpoint_1): Update doc and parameter names.
4183
4c462cb0
SM
41842019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4185
4186 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
4187 bpstat_should_step): Return bool, adjust comments.
4188 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
4189 bpstat_should_step): Likewise.
4190
89abbcc2
AH
41912019-07-10 Alan Hayward <alan.hayward@arm.com>
4192
4193 * features/Makefile: Use feature target descriptions for Arm.
4194 * features/arm/arm-core.c: Generate new file.
4195 * features/arm/arm-fpa.c: Likewise.
4196 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
4197 * features/arm/arm-m-profile.c: Likewise.
4198 * features/arm/arm-vfpv2.c: Likewise.
4199 * features/arm/arm-vfpv3.c: Likewise.
4200 * features/arm/xscale-iwmmxt.c: Likewise.
4201 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
4202
166a82be
AH
42032019-07-10 Alan Hayward <alan.hayward@arm.com>
4204
4205 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
4206 ptrace earlier.
4207
9fb4c7e9
AH
42082019-07-10 Alan Hayward <alan.hayward@arm.com>
4209
4210 * features/aarch64-pauth.c: Regenerate.
4211
e2d0f980
SM
42122019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
4213
4214 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
4215 bool.
4216 (bpstat_what): Use false instead of 0.
4217
a38118e5
PA
42182019-07-09 Pedro Alves <palves@redhat.com>
4219
4220 * break-catch-throw.c (is_exception_catchpoint): New.
4221 * breakpoint.c (print_one_breakpoint_location): New parameter
4222 'raw_loc'. Handle it. Use
4223 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
4224 looking at the breakpoint's type.
4225 (print_one_breakpoint): If handling "maint info breakpoints", also
4226 print locations of exception catchpoints.
4227 * breakpoint.h (is_exception_catchpoint): Declare.
4228
cb1e4e32
PA
42292019-07-09 Pedro Alves <palves@redhat.com>
4230
4231 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
4232 "addr" field.
4233 (allocate_location_exception_catchpoint): New.
4234 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
4235 (initialize_throw_catchpoint_ops): Install
4236 allocate_location_exception_catchpoint as allocate_location
4237 method.
4238 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
4239 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
4240 bp_loc_other.
4241 (breakpoint_address_is_meaningful): Delete.
4242 (bl_address_is_meaningful): New.
4243 (breakpoint_locations_match): Adjust comment.
4244 (bp_location_from_bp_type): New, factored out of...
4245 (bp_location::bp_location(breakpoint *)): ... this.
4246 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
4247 factored out of...
4248 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
4249 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
4250 breakpoint_address_is_meaningful.
4251 (bp_locations_compare): Adjust comment.
4252 (update_global_location_list): Use bl_address_is_meaningful
4253 instead of breakpoint_address_is_meaningful.
4254 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
4255 explicit.
4256 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
4257 * python/py-breakpoint.c (bppy_get_location): No longer check
4258 whether location is null.
4259
b58a68fe
PA
42602019-07-09 Pedro Alves <palves@redhat.com>
4261
4262 PR c++/15468
4263 * breakpoint.c (print_one_breakpoint_location): Remove
4264 single-location assert.
4265
268a13a5
TT
42662019-07-09 Tom Tromey <tom@tromey.com>
4267
4268 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
4269 * configure: Rebuild.
4270 * configure.ac: Change common to gdbsupport.
4271 * gdbsupport: Rename from common.
4272 * acinclude.m4: Change common to gdbsupport.
4273 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
4274 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
4275 gdbsupport.
4276 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
4277 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
4278 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
4279 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
4280 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
4281 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
4282 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
4283 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
4284 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
4285 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
4286 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
4287 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
4288 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
4289 coff-pe-read.c, command.h, compile/compile-c-support.c,
4290 compile/compile-c.h, compile/compile-cplus-symbols.c,
4291 compile/compile-cplus-types.c, compile/compile-cplus.h,
4292 compile/compile-loc2c.c, compile/compile.c, completer.c,
4293 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
4294 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
4295 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
4296 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
4297 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
4298 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
4299 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
4300 features/aarch64-core.c, features/aarch64-fpu.c,
4301 features/aarch64-pauth.c, features/aarch64-sve.c,
4302 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
4303 features/i386/32bit-core.c, features/i386/32bit-linux.c,
4304 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
4305 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
4306 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
4307 features/i386/64bit-core.c, features/i386/64bit-linux.c,
4308 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
4309 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
4310 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
4311 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
4312 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
4313 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
4314 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
4315 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
4316 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
4317 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
4318 go32-nat.c, guile/guile.c, guile/scm-ports.c,
4319 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
4320 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
4321 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
4322 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
4323 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
4324 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
4325 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
4326 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
4327 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
4328 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
4329 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
4330 minsyms.c, mips-linux-tdep.c, namespace.h,
4331 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
4332 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
4333 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
4334 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
4335 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
4336 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
4337 nat/linux-waitpid.c, nat/mips-linux-watch.c,
4338 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
4339 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
4340 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
4341 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
4342 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
4343 procfs.c, producer.c, progspace.h, psymtab.h,
4344 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
4345 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
4346 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
4347 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
4348 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
4349 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
4350 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
4351 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
4352 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
4353 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
4354 target-memory.c, target.c, target.h, target/waitstatus.c,
4355 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
4356 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
4357 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
4358 unittests/array-view-selftests.c,
4359 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
4360 unittests/common-utils-selftests.c,
4361 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
4362 unittests/format_pieces-selftests.c,
4363 unittests/function-view-selftests.c,
4364 unittests/lookup_name_info-selftests.c,
4365 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
4366 unittests/mkdir-recursive-selftests.c,
4367 unittests/observable-selftests.c,
4368 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
4369 unittests/parse-connection-spec-selftests.c,
4370 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
4371 unittests/scoped_fd-selftests.c,
4372 unittests/scoped_mmap-selftests.c,
4373 unittests/scoped_restore-selftests.c,
4374 unittests/string_view-selftests.c, unittests/style-selftests.c,
4375 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
4376 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
4377 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
4378 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
4379 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
4380 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
4381
5b0e2db4
AB
43822019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4383
4384 * linespec.c (decode_digits_list_mode): Set explicit_line to a
4385 bool value.
4386 (decode_digits_ordinary): Set explicit_line field in sal.
4387 * symtab.c (skip_prologue_sal): Don't skip prologue for a
4388 symtab_and_line that was set on an explicit line number in
4389 assembler code. Do always update the recorded symtab and line if
4390 we do skip the prologue.
4391
0ba852ab
AB
43922019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4393
4394 * breakpoint.c (set_breakpoint_location_function): Remove
4395 explicit_loc parameter.
4396 (momentary_breakpoint_from_master): Update call to
4397 set_breakpoint_location_function.
4398 (add_location_to_breakpoint): Likewise.
4399
b3a7d171
AB
44002019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4401
4402 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
4403 required features based on default bfd type when no specific bfd
4404 is present.
4405
1f6f6e21
PW
44062019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4407
4408 * NEWS: Mention that GDB printf and eval commands can now print
4409 C-style and Ada-style convenience var strings without
4410 calling the inferior.
4411 * printcmd.c (printf_c_string): Locally print GDB internal var
4412 instead of transiting via the inferior.
4413 (printf_wide_c_string): Likewise.
4414
44152019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
4416
4417 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
4418
0598af48
TT
44192019-07-04 Tom Tromey <tom@tromey.com>
4420
4421 PR tui/24724:
4422 * tui/tui-winsource.c (tui_clear_source_content): Update.
4423 (tui_source_window_base::set_is_exec_point_at): Fix comment.
4424 (tui_update_breakpoint_info): Update.
4425 (tui_set_exec_info_content): Update.
4426 * tui/tui-source.c (tui_set_source_content_nil): Update.
4427 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
4428 has_break.
4429 * tui/tui-data.h (enum tui_bp_flag): New.
4430 (tui_bp_flags): New enum flags type.
4431 (struct tui_source_element) <break_mode>: Change type. Rename
4432 from has_break.
4433 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
4434 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
4435 constants.
4436 * tui/tui-winsource.h: Fix comment.
4437
350fab54
AH
44382019-07-04 Alan Hayward <alan.hayward@arm.com>
4439
4440 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
4441 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
4442 (store_fpregs_to_thread)
4443 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4444 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
4445 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
4446 (IWMMXT_REGS_SIZE): Add define.
4447 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
4448 (fetch_vfp_regs, store_vfp_regs)
4449 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4450 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
4451
f0452268
AH
44522019-07-04 Alan Hayward <alan.hayward@arm.com>
4453
4454 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
4455 defines.
4456 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
4457 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
4458 (ARM_INT_REGISTER_SIZE): ...to this.
4459 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
4460 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
4461 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
4462 (arm_linux_collect_gregset, supply_nwfpe_register)
4463 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
4464 defines.
4465 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
4466 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
4467 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
4468 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
4469 (arm_return_in_memory, arm_store_return_value)
4470 (arm_get_longjmp_target, arm_register_g_packet_guesses)
4471 (arm_record_ld_st_multiple): Likewise.
4472 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
4473 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
4474
e935475c
AH
44752019-07-04 Alan Hayward <alan.hayward@arm.com>
4476
4477 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
4478 AARCH64_DISPLACED_MODIFIED_INSNS.
4479 * aarch64-tdep.c (struct aarch64_displaced_step_data)
4480 (aarch64_displaced_step_copy_insn): Likewise.
4481 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4482 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
4483 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
4484 ARM_DISPLACED_MODIFIED_INSNS.
4485 * arm-tdep.c (arm_gdbarch_init): Likewise.
4486 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4487 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
4488 (struct arm_displaced_step_closure): Use
4489 ARM_DISPLACED_MODIFIED_INSNS.
4490
df0bb381
AH
44912019-07-04 Alan Hayward <alan.hayward@arm.com>
4492
4493 * features/Makefile: Remove unused xml files.
4494 * features/aarch64.xml: Remove.
4495 * features/i386/amd64-avx-avx512-linux.xml: Remove.
4496 * features/i386/amd64-avx-avx512.xml: Remove.
4497 * features/i386/amd64-avx-linux.xml: Remove.
4498 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
4499 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
4500 * features/i386/amd64-avx-mpx-linux.xml: Remove.
4501 * features/i386/amd64-avx-mpx.xml: Remove.
4502 * features/i386/amd64-avx.xml: Remove.
4503 * features/i386/amd64-linux.xml: Remove.
4504 * features/i386/amd64-mpx-linux.xml: Remove.
4505 * features/i386/amd64-mpx.xml: Remove.
4506 * features/i386/amd64.xml: Remove.
4507 * features/i386/i386-avx-avx512-linux.xml: Remove.
4508 * features/i386/i386-avx-avx512.xml: Remove.
4509 * features/i386/i386-avx-linux.xml: Remove.
4510 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
4511 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
4512 * features/i386/i386-avx-mpx-linux.xml: Remove.
4513 * features/i386/i386-avx-mpx.xml: Remove.
4514 * features/i386/i386-avx.xml: Remove.
4515 * features/i386/i386-linux.xml: Remove.
4516 * features/i386/i386-mmx-linux.xml: Remove.
4517 * features/i386/i386-mmx.xml: Remove.
4518 * features/i386/i386-mpx-linux.xml: Remove.
4519 * features/i386/i386-mpx.xml: Remove.
4520 * features/i386/i386.xml: Remove.
4521 * features/i386/x32-avx-avx512-linux.xml: Remove.
4522 * features/i386/x32-avx-linux.xml: Remove.
4523 * features/i386/x32-linux.xml: Remove.
4524
edd6266a
AH
45252019-07-04 Alan Hayward <alan.hayward@arm.com>
4526
4527 * regformats/aarch64.dat: Remove.
4528 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
4529 * regformats/i386/amd64-avx-linux.dat: Remove.
4530 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
4531 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
4532 * regformats/i386/amd64-linux.dat: Remove.
4533 * regformats/i386/amd64-mpx-linux.dat: Remove.
4534 * regformats/i386/amd64.dat: Remove.
4535 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
4536 * regformats/i386/i386-avx-linux.dat: Remove.
4537 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
4538 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
4539 * regformats/i386/i386-linux.dat: Remove.
4540 * regformats/i386/i386-mmx-linux.dat: Remove.
4541 * regformats/i386/i386-mpx-linux.dat: Remove.
4542 * regformats/i386/i386.dat: Remove.
4543 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
4544 * regformats/i386/x32-avx-linux.dat: Remove.
4545 * regformats/i386/x32-linux.dat: Remove.
4546
2b40fda7
AH
45472019-07-04 Alan Hayward <alan.hayward@arm.com>
4548
4549 * aarch64-tdep.c: Remove xml self tests.
4550 * amd64-linux-tdep.c: Likewise.
4551 * amd64-tdep.c: Likewise.
4552 * i386-linux-tdep.c: Likewise.
4553 * i386-tdep.c: Likewise.
4554
5f4ba3e7
PA
45552019-07-03 Pedro Alves <palves@redhat.com>
4556
4557 PR cli/24732
4558 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
4559 (pipe_cmd_option_defs): New.
4560 (make_pipe_cmd_options_def_group): New.
4561 (pipe_command): Use gdb::option::process_options.
4562 (pipe_command_completer): New function.
4563 (_initialize_cli_cmds): Install completer for "pipe" command.
4564
3d9be6f5
PA
45652019-07-03 Pedro Alves <palves@redhat.com>
4566
4567 * cli/cli-option.c (union option_value) <string>: New field.
4568 (struct option_def_and_value): Add ctor, move ctor, dtor and
4569 use DISABLE_COPY_AND_ASSIGN.
4570 (option_def_and_value::clear_value): New.
4571 (parse_option, save_option_value_in_ctx, get_val_type_str)
4572 (add_setshow_cmds_for_options): Handle var_string.
4573 * cli-option.h (union option_def::var_address) <string>: New
4574 field.
4575 (struct string_option_def): New.
4576 * maint-test-options.c (struct test_options_opts): Add default
4577 ctor and use DISABLE_COPY_AND_ASSIGN.
4578 <string_opt>: New field.
4579 (test_options_opts::~test_options_opts): New.
4580 (test_options_opts::dump): Also dump "-string".
4581 (test_options_option_defs): Install "string.
4582
41fc454c
PA
45832019-07-03 Pedro Alves <palves@redhat.com>
4584
4585 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
4586 option_value with a null enumeration.
4587 (complete_options): Save the option values in the context.
4588 (save_option_value_in_ctx): New, factored out from ...
4589 (process_options): ... here.
4590 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
4591 of the function.
4592 * maint-test-options.c (test_options_opts::dump): New, factored
4593 out from ...
4594 (maintenance_test_options_command_mode): ... here.
4595 (maintenance_test_options_command_completion_result): Delete.
4596 (maintenance_test_options_command_completion_text): Update
4597 comment.
4598 (maintenance_show_test_options_completion_result): Change
4599 prototype. Just print
4600 maintenance_test_options_command_completion_text.
4601 (save_completion_result): New.
4602 (maintenance_test_options_completer_mode): Pass options context to
4603 complete_options, and then save a dump.
4604 (_initialize_maint_test_options): Use add_cmd to install "maint
4605 show test-options-completion-result".
4606
fdbc9870
PA
46072019-07-03 Pedro Alves <palves@redhat.com>
4608
4609 * NEWS (New commands): Mention "with" and "maint with".
4610 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
4611 (with_command, with_command_completer): New.
4612 (pipe_command): Adjust to new repeat_previous
4613 interface.
4614 (_initialize_cli_cmds): Install the "with" command and its "w"
4615 alias.
4616 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
4617 declarations.
4618 * cli/cli-setshow.c (parse_cli_var_uinteger)
4619 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
4620 argument strings for all var_types.
4621 (get_setshow_command_value_string): New, factored out from ...
4622 (do_show_command): ... this.
4623 * cli/cli-setshow.h: Include <string>.
4624 (get_setshow_command_value_string): Declare.
4625 * command.h (repeat_previous): Now returns const char *. Adjust
4626 comment.
4627 * maint.c: Include "cli/cli-cmds.h".
4628 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
4629 (_initialize_maint_cmds): Register the "maintenance with" command.
4630 * top.c (repeat_previous): Move bits from pipe_command here:
4631 Return the saved command line, if any; error out if there's no
4632 command to relaunch.
4633
c6ac8931
PA
46342019-07-03 Pedro Alves <palves@redhat.com>
4635
4636 * NEWS (New commands): Mention "maint set/show test-settings"
4637 instead of "maint test-settings".
4638 * maint-test-settings.c (maintenance_test_settings_list): Delete.
4639 (maintenance_test_settings_set_list): Rename to ...
4640 (maintenance_set_test_settings_list): ... this.
4641 (maintenance_test_settings_show_list): Rename to ...
4642 (maintenance_show_test_settings_list): ... this.
4643 (maintenance_test_settings_cmd): Delete.
4644 (maintenance_test_settings_set_cmd): ...
4645 (maintenance_set_test_settings_cmd): ... this.
4646 (maintenance_test_settings_show_cmd): ...
4647 (maintenance_show_test_settings_cmd): ... this.
4648 (maintenance_test_settings_show_value_cmd):
4649 (maintenance_show_test_settings_value_cmd): ... this.
4650 (_initialize_maint_test_settings): No longer install the "maint
4651 test-settings" prefix command. Rename "maint test-settings set"
4652 to "maint set test-settings", and "maint test-settings show" to
4653 "maint show test-settings". Adjust all subcommands.
4654
d1fcf2fd
PA
46552019-07-03 Pedro Alves <palves@redhat.com>
4656
4657 * maint-test-settings.c: Fix file's intro comment. Replace all
4658 references to "test-options" with references to "test-settings",
4659 in comments.
4660
970f9d09
PA
46612019-07-03 Pedro Alves <palves@redhat.com>
4662
4663 * maint-test-settings.c (maintenance_test_settings_xxx)
4664 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
4665 New.
4666 (maintenance_test_settings_enums): Use them.
4667 (maintenance_test_settings_enum): Default to
4668 maintenance_test_settings_xxx.
4669 (_initialize_maint_test_settings): Initialize
4670 MAINTENANCE_TEST_SETTINGS_FILENAME.
4671
f3869b1a
SM
46722019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4673
4674 * breakpoint.h (remove_breakpoints_inf): Change return type to
4675 void, move function documentation here.
4676 * breakpoint.c (remove_breakpoints_inf): Change return type to
4677 void, move function documentation to header.
4678
54d66006
PA
46792019-07-02 Pedro Alves <palves@redhat.com>
4680
4681 * NEWS (Completion improvements): Mention "info threads".
4682 * thread.c (struct info_threads_opts, info_threads_option_defs)
4683 (make_info_threads_options_def_group): New.
4684 (info_threads_command): Use gdb::option::process_options.
4685 (info_threads_command_completer): New.
4686 (_initialize_thread): Use gdb::option::build_help to build the
4687 help text for "info threads".
4688
854f6088
SM
46892019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4690
4691 * defs.h (generic_load): Move from here...
4692 * symfile.h (generic_load): ... to here. Rename name parameter
4693 to args.
4694 * symfile.c (generic_load): Add comment.
4695
54ee4252
TT
46962019-07-01 Tom Tromey <tromey@adacore.com>
4697
4698 * dwarf2read.c
4699 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
4700 declaration of without_params. Fix formatting.
4701
65392b3e
TT
47022019-07-01 Tom Tromey <tromey@adacore.com>
4703
4704 * ada-exp.y (find_primitive_type): Update.
4705 * ada-lang.h (ada_lookup_symbol): Update.
4706 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
4707 parameter.
4708 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
4709
7d7571f0
SDJ
47102019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4711
4712 PR breakpoints/24541
4713 * gdbarch.c: Regenerate.
4714 * gdbarch.h: Regenerate.
4715 * gdbarch.sh: Add 'stap_adjust_register'.
4716 * i386-tdep.c: Include '<unordered_set>'.
4717 (i386_stap_adjust_register): New function.
4718 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
4719 * stap-probe.c (stap_parse_register_operand): Call
4720 'gdbarch_stap_adjust_register'.
4721
5af5392a
SDJ
47222019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4723
4724 PR python/24742
4725 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
4726 * python/python.c (do_start_initialization): Use 'xmalloc'
4727 instead of 'PyMem_Malloc'.
4728
10d06d82
TT
47292019-06-28 Tom Tromey <tromey@adacore.com>
4730
4731 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
4732 for Ada.
4733
1b7f24cd
TT
47342019-06-27 Tom Tromey <tromey@adacore.com>
4735
4736 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
4737 objfile_key.
4738 (arm_find_mapping_symbol, arm_record_special_symbol)
4739 (_initialize_arm_tdep): Update.
4740 (arm_objfile_data_free): Remove.
4741
3d507ff2
TT
47422019-06-27 Tom Tromey <tromey@adacore.com>
4743
4744 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
4745 to cp_print_static_field.
4746
762c164d
TT
47472019-06-26 Tom Tromey <tromey@adacore.com>
4748
4749 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
4750 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
4751 declare.
4752
aa2f9bcf
AH
47532019-06-26 Alan Hayward <alan.hayward@arm.com>
4754
4755 * features/aarch64-core.c (create_feature_aarch64_core):
4756 Regenerate.
4757 * features/aarch64-core.xml: Add cpsr flags.
4758
3426ae57
AH
47592019-06-26 Alan Hayward <alan.hayward@arm.com>
4760
4761 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
4762 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
4763
4838e44c
SM
47642019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4765
4766 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
4767 field.
4768 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
4769 use.
4770 (arm_record_special_symbol): Don't insert new symbol in sorted
4771 position, push it at the end.
4772
54cc7474
SM
47732019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4774
4775 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
4776 (arm_mapping_symbol_s): Remove.
4777 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
4778 (arm_mapping_symbol_vec): New typedef.
4779 (struct arm_per_objfile): Add constructor.
4780 <section_maps>: Change type to
4781 std::unique_ptr<arm_mapping_symbol_vec[]>.
4782 (arm_compare_mapping_symbols): Remove.
4783 (arm_find_mapping_symbol): Adjust to section_maps type change.
4784 (arm_objfile_data_free): Call delete on arm_per_objfile.
4785 (arm_record_special_symbol): Adjust to section_maps type change.
4786 Allocate arm_per_objfile with new.
4787
b65b566c
PW
47882019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4789
4790 * cli/cli-cmds.c (alias_command): Compare the alias prefix
4791 with the command prefix.
4792
c2fc64f5
TT
47932019-06-25 Tom Tromey <tom@tromey.com>
4794
4795 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
4796 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
4797
fb54fa76
TT
47982019-06-25 Tom Tromey <tom@tromey.com>
4799
4800 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
4801 type.
4802 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
4803 protected.
4804
f7952c57
TT
48052019-06-25 Tom Tromey <tom@tromey.com>
4806
4807 * tui/tui-winsource.c
4808 (tui_source_window_base::set_is_exec_point_at): Add check against
4809 LOA_ADDRESS.
4810
17568d78
TT
48112019-06-25 Tom Tromey <tom@tromey.com>
4812
4813 * tui/tui-source.c (tui_set_source_content): Don't check before
4814 xfree.
4815 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
4816
53e7cdba
TT
48172019-06-25 Tom Tromey <tom@tromey.com>
4818
4819 * tui/tui-winsource.h (tui_update_source_window_as_is)
4820 (tui_alloc_source_buffer, tui_line_is_displayed)
4821 (tui_addr_is_displayed): Change type of win_info.
4822 * tui/tui-winsource.c (tui_update_source_window_as_is)
4823 (tui_clear_source_content, tui_show_source_line)
4824 (tui_show_source_content, tui_source_window_base::refill)
4825 (tui_source_window_base::set_is_exec_point_at)
4826 (tui_source_window_base::set_is_exec_point_at)
4827 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
4828 (tui_alloc_source_buffer, tui_line_is_displayed)
4829 (tui_addr_is_displayed): Change type of win_info. Update.
4830 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4831 (tui_source_window_base::do_make_visible_with_new_height):
4832 Update.
4833 * tui/tui-source.c (tui_set_source_content)
4834 (tui_set_source_content_nil)
4835 (tui_source_window::do_scroll_vertical): Update.
4836 * tui/tui-layout.c (show_layout): Update.
4837 * tui/tui-disasm.c (tui_set_disassem_content)
4838 (tui_disasm_window::do_scroll_vertical): Update.
4839 * tui/tui-data.h (tui_win_content): Remove.
4840 (struct tui_gen_win_info) <content, content_size>: Remove.
4841 (struct tui_source_element): Add initializers and destructor.
4842 (union tui_which_element, struct tui_win_element): Remove.
4843 (struct tui_source_window_base) <content>: New field.
4844 (struct tui_data_window): Remove destructor.
4845 (tui_alloc_content, tui_free_win_content)
4846 (tui_free_all_source_wins_content): Don't declare.
4847 * tui/tui-data.c (tui_initialize_static_data): Update.
4848 (init_content_element, tui_alloc_content): Remove.
4849 (~tui_gen_win_info): Update.
4850 (~tui_data_window, tui_free_all_source_wins_content)
4851 (tui_free_win_content, free_content, free_content_elements):
4852 Remove.
4853
7908abbf
TT
48542019-06-25 Tom Tromey <tom@tromey.com>
4855
4856 * tui/tui-winsource.h (tui_clear_source_content)
4857 (tui_erase_source_content, tui_show_source_content): Change type
4858 of win_info.
4859 * tui/tui-winsource.c (tui_clear_source_content)
4860 (tui_erase_source_content, tui_show_source_content): Change type
4861 of win_info.
4862 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4863 * tui/tui-source.h (tui_set_source_content_nil): Change type of
4864 win_info.
4865 * tui/tui-source.c (tui_set_source_content_nil): Change type of
4866 win_info.
4867 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
4868
02c28df0
TT
48692019-06-25 Tom Tromey <tom@tromey.com>
4870
4871 * tui/tui-winsource.c (tui_clear_source_content)
4872 (tui_source_window_base::set_is_exec_point_at): Update.
4873 * tui/tui-source.c (tui_set_source_content_nil): Update.
4874 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
4875 a bool.
4876 * tui/tui-data.c (init_content_element): Update.
4877
6658b1bf
TT
48782019-06-25 Tom Tromey <tom@tromey.com>
4879
4880 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
4881 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
4882 * tui/tui-layout.c (init_and_make_win): Update.
4883 * tui/tui.h (enum tui_win_type): Update.
4884 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
4885 tui_win_is_auxillary.
4886 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
4887 tui_win_is_auxillary.
4888
21e1c91e
TT
48892019-06-25 Tom Tromey <tom@tromey.com>
4890
4891 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
4892 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
4893 (tui_delete_data_content_windows, tui_display_all_data)
4894 (tui_data_window::do_scroll_vertical, tui_display_data_from):
4895 Update.
4896 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
4897 * tui/tui-regs.c (tui_last_regs_line_no)
4898 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4899 (tui_show_registers): Update.
4900 (tui_show_register_group): Return void. Update.
4901 (tui_display_registers_from, tui_display_reg_element_at_line)
4902 (tui_display_registers_from_line, tui_check_register_values):
4903 Update.
4904 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
4905 member.
4906 (struct tui_data_window) <regs_content>: Now a std::vector.
4907 <regs_content_count>: Remove.
4908 (tui_add_content_elements, tui_free_data_content): Don't declare.
4909 * tui/tui-data.c (tui_data_window::clear_detail): Update.
4910 (init_content_element): Remove DATA_WIN case. Add assert.
4911 (tui_add_content_elements): Remove.
4912 (tui_data_window): Update.
4913 (tui_free_data_content): Remove.
4914 (free_content_elements): Remove DATA_WIN case.
4915
115ac53b
TT
49162019-06-25 Tom Tromey <tom@tromey.com>
4917
4918 * tui/tui-data.c (tui_data_item_window): Update.
4919 * tui/tui-windata.h (tui_check_data_values): Don't declare.
4920 * tui/tui-windata.c (tui_display_all_data)
4921 (tui_display_data_from_line): Update.
4922 (tui_check_data_values): Remove.
4923 * tui/tui-regs.c (tui_show_register_group)
4924 (tui_display_reg_element_at_line): Update.
4925 * tui/tui-hooks.c (tui_register_changed)
4926 (tui_refresh_frame_and_register_information): Call
4927 tui_check_register_values.
4928 * tui/tui-data.h (struct tui_data_window) <data_content,
4929 data_content_count, data_type>: Remove.
4930 (enum tui_data_type): Remove.
4931
4932 * tui/tui-data.c (tui_data_window::clear_detail)
4933 (~tui_data_window): Update.
4934
eaf9738b
TT
49352019-06-25 Tom Tromey <tom@tromey.com>
4936
4937 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
4938 declare.
4939 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
4940 Rename from tui_first_data_item_displayed. Update.
4941 (tui_data_window::refresh_all)
4942 (tui_data_window::do_scroll_vertical): Update.
4943 * tui/tui-data.h (struct tui_data_window)
4944 <first_data_item_displayed>: Declare new method.
4945
31ca4723
TT
49462019-06-25 Tom Tromey <tom@tromey.com>
4947
4948 * tui/tui-data.h (tui_init_generic_part): Don't declare.
4949 * tui/tui-data.c (tui_init_generic_part): Remove, moving
4950 contents...
4951 (tui_initialize_static_data): ...here.
4952
41bcff7f
TT
49532019-06-25 Tom Tromey <tom@tromey.com>
4954
4955 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4956 (tui_display_registers_from, tui_check_register_values): Update.
4957 (tui_display_register): Remove win_info parameter; update.
4958 (tui_get_register): Change type of parameters.
4959 * tui/tui-data.h (struct tui_data_element): Remove.
4960 (union tui_which_element) <data>: Remove.
4961 <data_window>: Change type.
4962 (struct tui_data_item_window): New.
4963 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
4964 case. Add assert.
4965 (~tui_data_item_window): New destructor.
4966 (free_content_elements): Remove DATA_ITEM_WIN case.
4967
d2802c33
TT
49682019-06-25 Tom Tromey <tom@tromey.com>
4969
4970 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
4971 Remove.
4972
dd835f8b
TT
49732019-06-25 Tom Tromey <tom@tromey.com>
4974
4975 * tui/tui-data.h (struct tui_command_element): Remove.
4976 (union tui_which_element) <command>: Remove.
4977 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
4978 assert.
4979 (free_content_elements): Remove CMD_WIN case.
4980
bd7db367
TT
49812019-06-25 Tom Tromey <tom@tromey.com>
4982
4983 * tui/tui-layout.c (tui_set_layout): Update.
4984 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
4985 * tui/tui-data.c (layout_def): Update.
4986
3add462f
TT
49872019-06-25 Tom Tromey <tom@tromey.com>
4988
4989 * tui/tui-wingeneral.c (tui_refresh_all): Update.
4990 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4991 (tui_source_window_base::set_new_height): Update.
4992 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
4993 Update.
4994 (tui_set_locator_fullname, tui_set_locator_info)
4995 (tui_show_frame_info): Update.
4996 * tui/tui-source.c (tui_set_source_content)
4997 (tui_source_is_displayed): Update.
4998 * tui/tui-layout.c (show_source_disasm_command, show_data)
4999 (show_source_or_disasm_and_command): Update.
5000 * tui/tui-disasm.c (tui_set_disassem_content)
5001 (tui_get_begin_asm_address): Update.
5002 * tui/tui-data.h (struct tui_locator_element): Remove.
5003 (union tui_which_element) <locator>: Remove.
5004 (struct tui_locator_window): New.
5005 (tui_locator_win_info_ptr): Change return type.
5006 * tui/tui-data.c (_locator): Change type.
5007 (tui_locator_win_info_ptr): Change return type.
5008 (init_content_element): Remove LOCATOR_WIN case. Add assert.
5009 (tui_alloc_content): Add assert.
5010
489e9d8b
TT
50112019-06-25 Tom Tromey <tom@tromey.com>
5012
5013 * tui/tui-winsource.c
5014 (tui_exec_info_window::maybe_allocate_content): New method.
5015 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
5016 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
5017 (make_source_or_disasm_window): Add cast.
5018 * tui/tui-data.h (union tui_which_element) <simple_string>:
5019 Remove.
5020 (struct tui_source_info): New.
5021 (struct tui_source_window_base) <execution_info>: Change type.
5022 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
5023 case, and add assert.
5024 (tui_alloc_content): Add assert.
5025
c3fabb7d
TT
50262019-06-25 Tom Tromey <tom@tromey.com>
5027
5028 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
5029 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
5030 * tui/tui-data.c (tui_alloc_win_info): Remove.
5031
bbc228ee
TT
50322019-06-25 Tom Tromey <tom@tromey.com>
5033
5034 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
5035 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
5036 can_highlight.
5037
5fcee43a
TT
50382019-06-25 Tom Tromey <tom@tromey.com>
5039
5040 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
5041 make_visible_with_new_height method.
5042 (tui_win_info::make_visible_with_new_height): New method.
5043 (tui_source_window_base::do_make_visible_with_new_height)
5044 (tui_data_window::do_make_visible_with_new_height)
5045 (tui_cmd_window::do_make_visible_with_new_height): New methods.
5046 (make_visible_with_new_height): Remove.
5047 (tui_resize_all, tui_adjust_win_heights): Use
5048 make_visible_with_new_height method.
5049 * tui/tui-data.h (struct tui_win_info)
5050 <do_make_visible_with_new_height, make_visible_with_new_height>:
5051 New methods.
5052 (struct tui_source_window_base, struct tui_data_window)
5053 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
5054 methods.
5055
d83f1fe6
TT
50562019-06-25 Tom Tromey <tom@tromey.com>
5057
5058 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
5059 method.
5060 (update_tab_width): Call update_tab_width method.
5061 * tui/tui-data.h (struct tui_win_info)
5062 (struct tui_source_window_base) <update_tab_width>: New methods.
5063
17374de4
TT
50642019-06-25 Tom Tromey <tom@tromey.com>
5065
5066 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
5067 parameter.
5068 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
5069 parameter.
5070 (tui_gen_win_info::make_visible): Update.
5071 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
5072 parameter.
5073 * tui/tui-data.h (enum tui_box): New enum.
5074 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
5075
f936bca2
TT
50762019-06-25 Tom Tromey <tom@tromey.com>
5077
5078 * tui/tui-layout.c (make_source_or_disasm_window): Always use
5079 init_and_make_win for EXEC_INFO_WIN.
5080 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
5081 longer inline.
5082 (struct tui_win_info) <~tui_win_info>: Inline.
5083 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5084 Don't declare.
5085 * tui/tui-data.c (source_win, disasm_win): Remove globals.
5086 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5087 Remove.
5088 (tui_initialize_static_data): Update.
5089 (~tui_gen_win_info): Handle more cleanup here.
5090 (~tui_source_window_base): Delete "execution_info".
5091 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
5092
d6ba6a11
TT
50932019-06-25 Tom Tromey <tom@tromey.com>
5094
5095 * tui/tui-layout.c (make_command_window): Don't set
5096 can_highlight.
5097 (show_source_disasm_command): Call the reset method.
5098 (show_data): Don't set can_highlight. Call the reset method.
5099 (tui_gen_win_info::reset): Rename from init_gen_win_info
5100 (init_and_make_win): Simplify. Return tui_gen_win_info.
5101 (show_source_or_disasm_and_command): Call the reset method.
5102 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
5103 (struct tui_cmd_window): Set can_highlight.
5104
48a3bd16
TT
51052019-06-25 Tom Tromey <tom@tromey.com>
5106
5107 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
5108 from make_visible.
5109 (tui_make_visible, tui_make_invisible): Rewrite.
5110 (tui_win_info::make_visible): Remove.
5111 (tui_source_window_base::make_visible): Update.
5112 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
5113 method. Moved from...
5114 (struct tui_win_info) <make_visible>: ...here.
5115
c3bd716f
TT
51162019-06-25 Tom Tromey <tom@tromey.com>
5117
5118 * tui/tui-winsource.c
5119 (tui_source_window_base::do_scroll_horizontal): Remove direction
5120 parameter.
5121 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
5122 direction parameter.
5123 * tui/tui-win.c (tui_win_info::forward_scroll)
5124 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5125 (tui_win_info::right_scroll): Update.
5126 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
5127 direction parameter.
5128 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
5129 direction parameter.
5130 * tui/tui-data.h (enum tui_scroll_direction): Remove.
5131 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
5132 Remove direction parameter.
5133 (struct tui_source_window_base, struct tui_source_window)
5134 (struct tui_disasm_window, struct tui_data_window)
5135 (struct tui_cmd_window): Update.
5136
21c32dca
TT
51372019-06-25 Tom Tromey <tom@tromey.com>
5138
5139 * tui/tui-winsource.h (tui_set_exec_info_content)
5140 (tui_show_exec_info_content, tui_erase_exec_info_content)
5141 (tui_clear_exec_info_content, tui_update_exec_info): Change
5142 argument to tui_source_window_base.
5143 * tui/tui-winsource.c (tui_set_exec_info_content)
5144 (tui_show_exec_info_content, tui_erase_exec_info_content)
5145 (tui_clear_exec_info_content, tui_update_exec_info): Change
5146 argument to tui_source_window_base.
5147
73fbdc65
TT
51482019-06-25 Tom Tromey <tom@tromey.com>
5149
5150 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
5151 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
5152
33325343
TT
51532019-06-25 Tom Tromey <tom@tromey.com>
5154
5155 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
5156 check.
5157
29d2c474
TT
51582019-06-25 Tom Tromey <tom@tromey.com>
5159
5160 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
5161 type to void.
5162 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
5163 type to void.
5164 * tui/tui-source.c (tui_set_source_content): Update.
5165 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5166
152f3f4b
TT
51672019-06-25 Tom Tromey <tom@tromey.com>
5168
5169 * tui/tui-win.c (window_name_completer, tui_set_focus)
5170 (tui_all_windows_info): Use name method.
5171 * tui/tui-data.h (struct tui_gen_win_info)
5172 (struct tui_source_window, struct tui_disasm_window)
5173 (struct tui_data_window, struct tui_cmd_window) <name>: New
5174 method.
5175 (tui_win_name): Don't declare.
5176 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
5177 (tui_win_name): Remove.
5178
be4da588
TT
51792019-06-25 Tom Tromey <tom@tromey.com>
5180
5181 * tui/tui-winsource.h (tui_update_source_window)
5182 (tui_update_source_window_as_is): Change parameter type.
5183 * tui/tui-winsource.c (tui_update_source_window): Change win_info
5184 to be a tui_source_window_base.
5185 (tui_update_source_window_as_is): Likewise.
5186 * tui/tui-win.c (make_visible_with_new_height): Update.
5187
5b81daba
TT
51882019-06-25 Tom Tromey <tom@tromey.com>
5189
5190 * tui/tui-winsource.c (tui_erase_source_content)
5191 (tui_show_source_content, tui_show_exec_info_content)
5192 (tui_erase_exec_info_content): Use refresh_window method.
5193 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
5194 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
5195 from tui_refresh_win.
5196 (tui_data_window::refresh_window): New method.
5197 (tui_win_info::refresh, tui_source_window_base::refresh)
5198 (tui_refresh_all): Use refresh_window method.
5199 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
5200 method.
5201 * tui/tui-regs.c (tui_display_register): Call refresh_window
5202 method.
5203 * tui/tui-layout.c (show_source_disasm_command)
5204 (show_source_or_disasm_and_command): Call refresh_window method.
5205 * tui/tui-data.h (struct tui_gen_win_info)
5206 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
5207 New method.
5208
cb2ce893
TT
52092019-06-25 Tom Tromey <tom@tromey.com>
5210
5211 * tui/tui.c (tui_rl_other_window, tui_enable)
5212 (tui_is_window_visible, tui_get_command_dimension): Update.
5213 * tui/tui-winsource.c (tui_update_source_window_as_is)
5214 (tui_clear_source_content, tui_erase_source_content)
5215 (tui_show_source_line, tui_source_window_base::refill)
5216 (tui_source_window_base::do_scroll_horizontal)
5217 (tui_source_window_base::set_is_exec_point_at)
5218 (tui_update_breakpoint_info, tui_set_exec_info_content)
5219 (tui_alloc_source_buffer, tui_line_is_displayed)
5220 (tui_addr_is_displayed): Update.
5221 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5222 (tui_check_and_display_highlight_if_needed)
5223 (tui_win_info::make_visible, tui_win_info::refresh)
5224 (tui_refresh_all): Update.
5225 * tui/tui-windata.c (tui_first_data_item_displayed)
5226 (tui_delete_data_content_windows, tui_erase_data_content)
5227 (tui_display_all_data, tui_data_window::refresh_all)
5228 (tui_check_data_values): Update.
5229 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
5230 (tui_set_win_focus_to, tui_win_info::forward_scroll)
5231 (tui_win_info::backward_scroll, tui_refresh_all_win)
5232 (tui_resize_all, tui_set_focus, tui_all_windows_info)
5233 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
5234 (tui_source_window_base::set_new_height)
5235 (tui_data_window::set_new_height)
5236 (make_invisible_and_set_new_height)
5237 (make_visible_with_new_height, new_height_ok)
5238 (parse_scrolling_args): Update.
5239 * tui/tui-stack.c (tui_show_frame_info): Update.
5240 * tui/tui-source.c (tui_set_source_content)
5241 (tui_set_source_content_nil, tui_source_is_displayed)
5242 (tui_source_window::do_scroll_vertical): Update.
5243 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5244 (tui_display_registers_from, tui_display_reg_element_at_line)
5245 (tui_check_register_values, tui_reg_command): Update.
5246 * tui/tui-layout.c (tui_default_win_height)
5247 (show_source_disasm_command, show_data, init_and_make_win)
5248 (show_source_or_disasm_and_command): Update.
5249 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
5250 (tui_redisplay_readline, tui_mld_flush)
5251 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
5252 (tui_getc): Update.
5253 * tui/tui-disasm.c (tui_set_disassem_content)
5254 (tui_disasm_window::do_scroll_vertical): Update.
5255 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
5256 Now virtual.
5257 (struct tui_win_info): Derive from tui_gen_win_info.
5258 <~tui_win_info>: Mark as override.
5259 <generic>: Remove member.
5260 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
5261 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
5262 (~tui_data_window, ~tui_win_info)
5263 (tui_free_all_source_wins_content): Update.
5264 * tui/tui-command.c (tui_refresh_cmd_win): Update.
5265
ab313b35
TT
52662019-06-25 Tom Tromey <tom@tromey.com>
5267
5268 * tui/tui-layout.c (init_and_make_win): Use new.
5269 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
5270 destructor, initializers.
5271 (tui_alloc_generic_win_info): Don't declare.
5272 * tui/tui-data.c (_locator): Add argument to constructor.
5273 (source_win, disasm_win): New globals.
5274 (exec_info): Remove.
5275 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5276 Update.
5277 (tui_alloc_generic_win_info): Remove.
5278 (init_content_element): Use new.
5279 (tui_win_info::tui_win_info): Update.
5280 (free_content_elements) <case DATA_WIN>: Use delete.
5281
dc2c33e4
TT
52822019-06-25 Tom Tromey <tom@tromey.com>
5283
5284 * tui/tui-wingeneral.c (tui_refresh_win): Update.
5285 * tui/tui-windata.c (tui_first_data_item_displayed)
5286 (tui_delete_data_content_windows): Update.
5287 * tui/tui-win.c (tui_data_window::set_new_height): Update.
5288 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5289 (tui_display_registers_from, tui_check_register_values): Update.
5290 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
5291 pointer.
5292 * tui/tui-data.c (init_content_element): Update. Allocate the new
5293 window.
5294 (tui_free_data_content): Update.
5295 (free_content_elements) <case DATA_WIN>: Free the window.
5296
214a5cbe
TT
52972019-06-25 Tom Tromey <tom@tromey.com>
5298
5299 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
5300 Update.
5301 * tui/tui-layout.c (make_command_window)
5302 (show_source_disasm_command, show_data, init_and_make_win)
5303 (show_source_or_disasm_and_command): Update.
5304 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
5305 method.
5306 <can_highight, is_highlighted>: Now bool.
5307 (tui_set_win_highlight): Don't declare.
5308 * tui/tui-data.c (tui_set_win_highlight): Remove.
5309
8e2daf15
TT
53102019-06-25 Tom Tromey <tom@tromey.com>
5311
5312 * tui/tui-wingeneral.c (make_visible): Remove check of window
5313 type.
5314
8903bd8a
TT
53152019-06-25 Tom Tromey <tom@tromey.com>
5316
5317 * tui/tui-win.c (tui_win_info::max_height)
5318 (tui_cmd_window::max_height): New methods.
5319 (new_height_ok): Call max_height.
5320 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
5321 <max_height>: New method.
5322
3f02ce1e
TT
53232019-06-25 Tom Tromey <tom@tromey.com>
5324
5325 * tui/tui-win.c (tui_source_window_base::set_new_height)
5326 (tui_data_window::set_new_height): New methods.
5327 (make_invisible_and_set_new_height): Call set_new_height method.
5328 * tui/tui-data.h (struct tui_win_info)
5329 (struct tui_source_window_base, struct tui_data_window)
5330 <set_new_height>: New method.
5331
1825f487
TT
53322019-06-25 Tom Tromey <tom@tromey.com>
5333
5334 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
5335 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
5336 tui_refresh_data_win.
5337 * tui/tui-win.c (tui_source_window_base::refresh_all): New
5338 method.
5339 (tui_refresh_all_win): Call the refresh_all method.
5340 (tui_set_focus): Likewise.
5341 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
5342 (struct tui_source_window_base, struct tui_data_window) <refresh>:
5343 Likewise.
5344
ad54d15b
TT
53452019-06-25 Tom Tromey <tom@tromey.com>
5346
5347 * tui/tui-winsource.h (tui_refill_source_window)
5348 (tui_set_is_exec_point_at): Don't declare.
5349 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5350 (tui_source_window_base::refill): Rename from
5351 tui_refill_source_window.
5352 (tui_source_window_base::do_scroll_horizontal): Update.
5353 (tui_source_window_base::set_is_exec_point_at): Rename from
5354 tui_set_is_exec_point_at.
5355 (tui_update_all_breakpoint_info): Update.
5356 * tui/tui-stack.c (tui_show_frame_info): Update.
5357 * tui/tui-layout.c (show_data): Add cast.
5358 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
5359 * tui/tui-data.h (struct tui_source_window_base) <refill,
5360 set_is_exec_point_at>: New methods.
5361 (tui_source_windows, tui_add_to_source_windows): Update types.
5362 (tui_add_to_source_windows): Remove redundant declaration.
5363 * tui/tui-data.c (source_windows): Store tui_source_window_base.
5364 (tui_source_windows): Change return type.
5365 (tui_clear_source_windows_detail): Update.
5366 (tui_add_to_source_windows): Change type of parameter.
5367 (tui_free_all_source_wins_content): Update.
5368
2042b506
TT
53692019-06-25 Tom Tromey <tom@tromey.com>
5370
5371 * tui/tui-wingeneral.c (tui_win_info::refresh)
5372 (tui_source_window_base::refresh): New methods.
5373 (tui_refresh_all): Call the refresh method.
5374 * tui/tui-data.h (struct tui_win_info)
5375 (struct tui_source_window_base) <refresh>: New method.
5376
56122977
TT
53772019-06-25 Tom Tromey <tom@tromey.com>
5378
5379 * tui/tui.h (tui_is_window_visible): Return bool.
5380 * tui/tui.c (tui_is_window_visible): Return bool.
5381 * tui/tui-wingeneral.c (tui_make_window, make_visible)
5382 (tui_make_visible, tui_make_invisible)
5383 (tui_win_info::make_visible)
5384 (tui_source_window_base::make_visible, make_all_visible)
5385 (tui_make_all_visible, tui_make_all_invisible): Update.
5386 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
5387 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
5388 bool.
5389 (struct tui_win_info, struct tui_source_window_base)
5390 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
5391 * tui/tui-data.c (tui_init_generic_part): Update.
5392
cda37efb
TT
53932019-06-25 Tom Tromey <tom@tromey.com>
5394
5395 * tui/tui-wingeneral.c (tui_win_info::make_visible)
5396 (tui_source_window_base::make_visible): New methods.
5397 (make_all_visible): Make method call.
5398 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
5399 (struct tui_source_window_base, struct tui_cmd_window): Override
5400 make_visible.
5401 (tui_win_is_source_type): Don't declare.
5402 * tui/tui-data.c (tui_win_is_source_type): Remove.
5403
6a0ee02c
TT
54042019-06-25 Tom Tromey <tom@tromey.com>
5405
5406 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
5407 NULL check.
5408
63901aec
TT
54092019-06-25 Tom Tromey <tom@tromey.com>
5410
5411 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
5412 Inline constructor. Add initializers for members.
5413 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
5414 constructors; now inline in class.
5415
ceb13a13
TT
54162019-06-25 Tom Tromey <tom@tromey.com>
5417
5418 * tui/tui-regs.c (tui_show_registers): Update.
5419 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
5420 bool.
5421 * tui/tui-data.c (tui_data_window::clear_detail)
5422 (tui_data_window): Update.
5423
238eb706
TT
54242019-06-25 Tom Tromey <tom@tromey.com>
5425
5426 * tui/tui-windata.c (tui_display_all_data)
5427 (tui_display_data_from_line, tui_display_data_from)
5428 (tui_check_data_values, tui_data_window::do_scroll_vertical):
5429 Update.
5430 * tui/tui-regs.c (tui_last_regs_line_no)
5431 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5432 (tui_show_registers, tui_show_register_group)
5433 (tui_display_registers_from, tui_display_reg_element_at_line)
5434 (tui_display_registers_from_line, tui_check_register_values)
5435 (tui_reg_next, tui_reg_prev): Update.
5436 * tui/tui-layout.c (tui_set_layout, show_data): Update.
5437 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
5438 tui_data_window.
5439 (struct tui_win_info) <detail>: Remove. Add new fields from
5440 tui_data_info.
5441 (TUI_DATA_WIN): Add cast.
5442 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
5443 (~tui_data_window): Simplify.
5444
81491aa0
TT
54452019-06-25 Tom Tromey <tom@tromey.com>
5446
5447 * tui/tui-layout.c (show_source_disasm_command)
5448 (show_source_or_disasm_and_command): Update.
5449 * tui/tui-io.c (update_cmdwin_start_line)
5450 (tui_redisplay_readline): Update.
5451 * tui/tui-data.h (struct tui_command_info): Remove.
5452 (struct tui_win_info) <detail>: Remove command_info member.
5453 (struct tui_data_window) <start_line>: New member, from
5454 tui_command_info.
5455 (TUI_CMD_WIN): Add casts.
5456
e6e41501
TT
54572019-06-25 Tom Tromey <tom@tromey.com>
5458
5459 * tui/tui-winsource.c (tui_update_source_window)
5460 (tui_refill_source_window)
5461 (tui_source_window_base::do_scroll_horizontal)
5462 (tui_update_breakpoint_info, tui_set_exec_info_content)
5463 (tui_show_exec_info_content, tui_erase_exec_info_content)
5464 (tui_clear_exec_info_content): Update.
5465 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
5466 Update.
5467 * tui/tui-win.c (make_invisible_and_set_new_height)
5468 (make_visible_with_new_height): Update.
5469 * tui/tui-source.c (tui_set_source_content)
5470 (tui_show_symtab_source): Update.
5471 * tui/tui-layout.c (extract_display_start_addr)
5472 (show_source_disasm_command, show_data)
5473 (make_source_or_disasm_window)
5474 (show_source_or_disasm_and_command): Update.
5475 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
5476 (tui_disasm_window::do_scroll_vertical): Remove shadowing
5477 "gdbarch".
5478 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
5479 to tui_source_window_base.
5480 (struct tui_win_info) <detail>: Remove source_info member.
5481 (struct tui_source_window_base) <has_locator>: Inline.
5482 Move contents from tui_source_info; rename has_locator member to
5483 m_has_locator.
5484 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
5485 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
5486 header file.
5487 (tui_source_window_base::clear_detail, ~tui_source_window_base):
5488 Simplify.
5489 (tui_free_all_source_wins_content): Cast to
5490 tui_source_window_base.
5491
44f0e208
TT
54922019-06-25 Tom Tromey <tom@tromey.com>
5493
5494 * tui/tui-win.c (make_invisible_and_set_new_height)
5495 (make_visible_with_new_height): Call has_locator method.
5496 * tui/tui-layout.c (show_source_disasm_command, show_data)
5497 (show_source_or_disasm_and_command): Update for bool change.
5498 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
5499 (tui_win_info) <has_locator>: New method.
5500 (struct tui_source_window_base) <has_locator>: New method.
5501 (tui_win_has_locator): Don't declare.
5502 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
5503 from tui_win_has_locator.
5504 (tui_source_window_base): Use false, not FALSE.
5505
7778b912
TT
55062019-06-25 Tom Tromey <tom@tromey.com>
5507
5508 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
5509 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
5510 clear_detail method directly.
5511 (tui_clear_win_detail): Remove.
5512
f83d391c
TT
55132019-06-25 Tom Tromey <tom@tromey.com>
5514
5515 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
5516 "this", not TUI_DISASM_WIN.
5517
13446e05
TT
55182019-06-25 Tom Tromey <tom@tromey.com>
5519
5520 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
5521 declare.
5522 * tui/tui-winsource.c
5523 (tui_source_window_base::do_scroll_horizontal): Rename from
5524 tui_horizontal_source_scroll.
5525 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
5526 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
5527 from tui_vertical_data_scroll.
5528 * tui/tui-win.h (tui_scroll): Don't declare.
5529 * tui/tui-win.c (tui_win_info::forward_scroll)
5530 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5531 (tui_win_info::right_scroll): Rename and update.
5532 (tui_scroll_forward_command, tui_scroll_backward_command)
5533 (tui_scroll_left_command, tui_scroll_right_command): Update.
5534 (tui_scroll): Remove.
5535 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
5536 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
5537 from tui_vertical_source_scroll.
5538 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
5539 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
5540 from tui_vertical_disassem_scroll.
5541 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
5542 do_scroll_horizontal>: New methods.
5543 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
5544 Likewise.
5545 (struct tui_source_window_base): Add do_scroll_horizontal.
5546 (struct tui_source_window, struct tui_disasm_window): Add
5547 do_scroll_vertical.
5548 (struct tui_data_window, struct tui_cmd_window): Add
5549 do_scroll_horizontal and do_scroll_vertical.
5550 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
5551
5cf82909
TT
55522019-06-25 Tom Tromey <tom@tromey.com>
5553
5554 * tui/tui-data.h (struct tui_source_window_base): New struct.
5555 (struct tui_source_window): Derive from tui_source_window_base.
5556 (struct tui_disasm_window): New struct.
5557 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
5558 from tui_source_window::clear_detail.
5559 (tui_source_window_base): Rename from tui_source_window.
5560 (~tui_source_window_base): Rename from ~tui_source_window.
5561 (tui_alloc_win_info): Create a tui_disasm_window.
5562
ee1d42d6
TT
55632019-06-25 Tom Tromey <tom@tromey.com>
5564
5565 * tui/tui-data.h (struct tui_source_window)
5566 (struct tui_data_window): Declare destructors.
5567 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
5568 destructors.
5569 (tui_win_info): Simplify.
5570
b4eb2452
TT
55712019-06-25 Tom Tromey <tom@tromey.com>
5572
5573 * tui/tui-winsource.c (tui_display_main)
5574 (tui_update_source_windows_with_addr)
5575 (tui_update_all_breakpoint_info): Update.
5576 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5577 (new_height_ok, parse_scrolling_args): Update.
5578 * tui/tui-stack.c (tui_show_frame_info): Update.
5579 * tui/tui-data.h (struct tui_list): Remove.
5580 (tui_source_windows): Return a reference to a std::vector.
5581 * tui/tui-data.c (source_windows): Now a std::vector.
5582 (tui_source_windows): Change return type.
5583 (tui_clear_source_windows): Rewrite.
5584 (tui_clear_source_windows_detail, tui_add_to_source_windows)
5585 (tui_free_all_source_wins_content): Rewrite.
5586
8761a91b
TT
55872019-06-25 Tom Tromey <tom@tromey.com>
5588
5589 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
5590 (struct tui_data_window, struct tui_cmd_window): Declare
5591 clear_detail method.
5592 * tui/tui-data.c (tui_source_window::clear_detail)
5593 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
5594 methods.
5595 (tui_clear_win_detail): Simplify.
5596
0ed69eda
TT
55972019-06-25 Tom Tromey <tom@tromey.com>
5598
5599 * tui/tui-layout.c (make_source_window, make_disasm_window)
5600 (make_source_or_disasm_window): Remove win_info_ptr parameter.
5601 Return the new window.
5602 (show_source_disasm_command, show_data)
5603 (show_source_or_disasm_and_command): Update.
5604
82432e10
TT
56052019-06-25 Tom Tromey <tom@tromey.com>
5606
5607 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
5608 parameter. Return the new window.
5609 (show_source_disasm_command): Update and remove NULL check.
5610 (show_source_or_disasm_and_command): Update.
5611
ec328aa5
TT
56122019-06-25 Tom Tromey <tom@tromey.com>
5613
5614 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
5615
33b906ab
TT
56162019-06-25 Tom Tromey <tom@tromey.com>
5617
5618 * tui/tui-data.h (struct tui_win_info): Make constructor
5619 protected. Make destructor virtual. Add initializers.
5620 (tui_source_window, tui_data_window, tui_cmd_window): New
5621 classes.
5622 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
5623 constructor. Add "type" parameter.
5624 (tui_source_window, tui_data_window, tui_cmd_window): New
5625 constructors.
5626 (tui_alloc_win_info): Instantiate the appropriate subclass.
5627
e7e11af4
TT
56282019-06-25 Tom Tromey <tom@tromey.com>
5629
5630 * tui/tui-win.c (tui_resize_all): Use delete.
5631 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
5632 destructor.
5633 (tui_free_window): Don't declare.
5634 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
5635 Update.
5636
6792b55e
TT
56372019-06-25 Tom Tromey <tom@tromey.com>
5638
5639 * tui/tui-data.h (struct tui_win_info): Add constructor.
5640 * tui/tui-data.c (tui_alloc_win_info): Use new.
5641 (tui_free_window): Use delete.
5642
f95675e1
TT
56432019-06-22 Tom Tromey <tom@tromey.com>
5644
5645 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
5646 declare.
5647 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
5648
5bff081c
TT
56492019-06-22 Tom Tromey <tom@tromey.com>
5650
5651 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
5652 declare.
5653 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
5654
47e3f474
TV
56552019-06-22 Tom de Vries <tdevries@suse.de>
5656
5657 * dwarf2read.c (create_addrmap_from_aranges)
5658 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
5659 instead of '%zu'.
5660
fd5866f6
SM
56612019-06-21 Simon Marchi <simon.marchi@efficios.com>
5662
5663 * dwarf2read.h (dwarf2_section_info_def): Remove.
5664 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
5665 * dwarf2read.c (struct dwo_sections) <types>: Change type to
5666 std::vector<dwarf2_section_info>.
5667 (struct dwo_file) <~dwo_file>: Remove.
5668 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
5669 types field.
5670 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
5671 (dwarf2_read_debug_names): Likewise.
5672 (create_debug_types_hash_table): Change parameter type to
5673 array_view, adjust code accordingly.
5674 (dwarf2_locate_dwo_sections): Adjust to std::vector.
5675 (partial_die_info::fixup): Likewise.
5676 (determine_prefix): Likewise.
5677 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
5678
fb1eb2f9
SM
56792019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5680
5681 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
5682 gdb_bfd_ref_ptr.
5683 <~dwo_file>: Remove call to gdb_bfd_unref.
5684 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
5685 gdb_bfd_ref_ptr::get.
5686
51ac9db5
SM
56872019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5688
5689 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
5690 type to htab_up.
5691 * dwarf2read.c (struct dwo_file): Initialize fields.
5692 <~dwo_file>: New.
5693 (free_dwo_file): Remove, move content to ~dwo_file.
5694 (struct dwo_file_deleter): Remove.
5695 (dwo_file_up>: Remove custom deleter.
5696 (free_dwo_files): Remove.
5697 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
5698 dwo_files.
5699 (process_skeletonless_type_units): Call unique_ptr::get.
5700 (allocate_dwo_file_hash_table): Add deleter to created hash
5701 table. Change return type to htab_up.
5702 (lookup_dwo_file_slot): Don't memset dwo_file, call
5703 unique_ptr::get.
5704 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
5705 (create_dwo_unit_in_dwp_v2): Likewise.
5706 (open_and_init_dwo_file): Likewise.
5707 (free_dwo_file_from_slot): Remove.
5708
dc4ccb6f
SM
57092019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5710
5711 * dwarf2read.h (struct dwarf2_section_info) <readin,
5712 is_virtual>: Change type to bool.
5713 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
5714 true instead of 1.
5715
e6a1c5cb
TT
57162019-06-19 Tom Tromey <tom@tromey.com>
5717
5718 * tui/tui-data.h (tui_init_content_element): Don't declare.
5719
6f6ffbeb
TT
57202019-06-19 Tom Tromey <tom@tromey.com>
5721
5722 * tui/tui-data.h (tui_init_win_info): Don't declare.
5723
f23f598e
TV
57242019-06-19 Tom de Vries <tdevries@suse.de>
5725
5726 * dwarf2read.h (abstract_to_concrete): Change type to
5727 std::unordered_map<sect_offset, std::vector<sect_offset>,
5728 gdb::hash_enum<sect_offset>>.
5729
680e1bee
TT
57302019-06-19 Tom Tromey <tromey@adacore.com>
5731
5732 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
5733 EVAL_AVOID_SIDE_EFFECTS specially.
5734
dcf37923
TT
57352019-06-19 Tom Tromey <tromey@adacore.com>
5736
5737 * source-cache.c (highlighter): New global.
5738 (source_cache::get_source_lines): Create a highlighter on demand.
5739
494986d5
AB
57402019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
5741
5742 * defs.h (deprecated_interactive_hook): Delete declaration.
5743 * interps.c (clear_interpreter_hooks): Remove use of
5744 deprecated_interactive_hook.
5745 * top.c (deprecated_interactive_hook): Delete definition.
5746 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
5747
3360b6e7
TV
57482019-06-18 Tom de Vries <tdevries@suse.de>
5749
5750 PR gdb/24515
5751 * dwarf2read.h (abstract_to_concrete): Change type from
5752 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
5753 std::unordered_map<sect_offset, std::vector<sect_offset>>.
5754 * dwarf2read.c (read_variable): Update.
5755 (dwarf2_fetch_die_loc_sect_off): Update.
5756
310b3441
TV
57572019-06-17 Tom de Vries <tdevries@suse.de>
5758
5759 PR gdb/24617
5760 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
5761 accessing parent[parent_len - 1].
5762
ba9777be
PP
57632019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
5764
5765 PR gdb/24364
5766 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
5767 call dtrace_process_dof with NULL dof.
5768
2b9f6e89
TV
57692019-06-16 Tom de Vries <tdevries@suse.de>
5770
5771 PR gdb/24445
5772 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
5773
431b3ead
TT
57742019-06-16 Tom Tromey <tom@tromey.com>
5775
5776 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5777 (make_all_visible): Use address of member.
5778
d04b44a1
TT
57792019-06-16 Tom Tromey <tom@tromey.com>
5780
5781 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
5782 (tui_free_window, free_content, free_content_elements): Remove
5783 unnecessary cast.
5784 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
5785 cast.
5786 * tui/tui-regs.c (tui_show_register_group)
5787 (tui_display_registers_from, tui_display_reg_element_at_line):
5788 Remove unnecessary cast.
5789
bf5142e7
AB
57902019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5791
5792 * linux-nat.c (normal_mask): Delete.
5793 (_initialize_linux_nat): Don't initialise normal_mask.
5794
c4973306
SM
57952019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
5796
5797 PR gdb/24445
5798 * dwarf-index-write.h (write_psymtabs_to_index): Add
5799 dwz_basename parameter.
5800 * dwarf-index-write.c (write_gdbindex): Move file writing to
5801 write_gdbindex_1. Change return type void.
5802 (assert_file_size): Move up, remove filename parameter.
5803 (write_gdbindex_1): New function.
5804 (write_debug_names): Change return type to void, call
5805 assert_file_size.
5806 (struct index_wip_file): New struct.
5807 (write_psymtabs_to_index): Add dwz_basename parameter. Move
5808 file logic to index_wip_file. Write index for dwz file if
5809 needed.
5810 (save_gdb_index_command): Pass basename of dwz file, if present.
5811 * dwarf-index-cache.c (index_cache::store): Obtain and pass
5812 build-id of dwz file, if present.
5813 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
5814 (dwarf2_get_dwz_file): Likewise.
5815 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
5816 (dwarf2_get_dwz_file): Likewise.
5817
395f9c91
TT
58182019-06-16 Tom Tromey <tom@tromey.com>
5819
5820 * coffread.c (process_coff_symbol): Use xstrdup.
5821 * value.c (create_internalvar): Use xstrdup.
5822
cafb3438
TT
58232019-06-16 Tom Tromey <tom@tromey.com>
5824
5825 * valops.c (value_cast, value_slice): Remove unnecessary cast.
5826 * breakpoint.c (stopin_command, stopat_command)
5827 (until_break_command, decode_location_default): Remove unnecessary
5828 cast.
5829 * utils.c (subset_compare): Remove unnecessary cast.
5830 * ada-lang.c (ada_update_initial_language): Remove unnecessary
5831 cast.
5832 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
5833 cast.
5834 * infcmd.c (path_command): Remove unnecessary cast.
5835 * coffread.c (decode_type): Remove unnecessary cast.
5836 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
5837 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
5838 * tui/tui-stack.c (tui_show_locator_content)
5839 (tui_show_frame_info): Remove unnecessary cast.
5840 * tui/tui-win.c (tui_scroll_forward_command)
5841 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
5842 (parse_scrolling_args): Remove unnecessary cast.
5843 * tui/tui-data.c (init_win_info, tui_del_window)
5844 (tui_free_window, tui_del_data_windows, tui_free_data_content)
5845 (free_content_elements): Remove unnecessary cast.
5846 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
5847 unnecessary cast.
5848 * tui/tui-source.c (tui_set_source_content)
5849 (tui_vertical_source_scroll): Remove unnecessary cast.
5850 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
5851 cast.
5852 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
5853 * tui/tui-regs.c (tui_display_registers_from)
5854 (tui_display_register): Remove unnecessary cast.
5855 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
5856 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
5857 (make_visible): Remove unnecessary cast.
5858 * tui/tui-winsource.c (tui_erase_source_content)
5859 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
5860 unnecessary cast.
5861 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
5862 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
5863 * stabsread.c (read_type, read_array_type, read_range_type):
5864 Remove unnecessary cast.
5865 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
5866 (parse_symbol, parse_type, upgrade_type, parse_external)
5867 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
5868 unnecessary cast.
5869 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
5870
730ead81
TT
58712019-06-16 Tom Tromey <tom@tromey.com>
5872
5873 * tui/tui-data.c (tui_alloc_generic_win_info)
5874 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
5875 checks.
5876
584a927c
AB
58772019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
5878 Andrew Burgess <andrew.burgess@embecosm.com>
5879
5880 * f-typeprint.c (f_print_type): Don't return early for not
5881 associated or not allocated types.
5882 (f_type_print_varspec_suffix): Add print_rank parameter and print
5883 ranks of array types in case they dangling.
5884 (f_type_print_base): Add print_rank parameter.
5885
30056ea0
AB
58862019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5887
5888 * NEWS: Mention new MI commands.
5889 * break-catch-throw.c (enum exception_event_kind): Move to
5890 breakpoint.h.
5891 (print_mention_exception_catchpoint): Output text as a single
5892 message.
5893 (catch_exception_command_1): Rename to...
5894 (catch_exception_event): ...this, make non-static, update header
5895 command, and change some parameter types.
5896 (catch_catch_command): Update for changes to
5897 catch_exception_command_1.
5898 (catch_throw_command): Likewise.
5899 (catch_rethrow_command): Likewise.
5900 * breakpoint.c (enum exception_event_kind): Delete.
5901 * breakpoint.h (enum exception_event_kind): Moved here from
5902 break-catch-throw.c.
5903 (catch_exception_event): Declare.
5904 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
5905 (mi_cmd_catch_throw): New function.
5906 (mi_cmd_catch_rethrow): New function.
5907 (mi_cmd_catch_catch): New function.
5908 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
5909 'catch-catch' entries.
5910 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
5911 (mi_cmd_catch_rethrow): Declare.
5912 (mi_cmd_catch_catch): Declare.
5913
ec8e2b6d
AB
59142019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5915
5916 * annotate.c (annotate_source_line): Change return type to void,
5917 update implementation to match.
5918 * annotate.h (annotate_source_line): Change return type to void,
5919 update header comment.
5920 * stack.c (print_frame_info): Don't change what frame information
5921 is printed based on whether annotations are on or not.
5922
0d3abd8c
AB
59232019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5924
5925 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
5926 (annotate_source): Make static.
5927 (annotate_source_line): Moved from source.c and renamed from
5928 identify_source_line. Update the return type.
5929 * annotate.h (annotate_source): Delete declaration.
5930 (annotate_source_line): Declaration moved from source.h, and
5931 renamed from identify_source_line. Return type updated.
5932 * source.c (identify_source_line): Moved to annotate.c and renamed
5933 to annotate_source_line.
5934 (info_line_command): Remove check of annotation_level.
5935 * source.h (identify_source_line): Move declaration to annotate.h
5936 and rename to annotate_source_line.
5937 * stack.c: Add 'annotate.h' include.
5938 (print_frame_info): Remove check of annotation_level before
5939 calling annotate_source_line.
5940
00df30ae
AB
59412019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5942
5943 * source-cache.c (source_cache::get_plain_source_lines): Use
5944 open_source_file_with_line_charpos instead of just
5945 open_source_file, remove call to find_source_lines.
5946 (source_cache::get_source_lines): Likewise.
5947 * source.c (find_source_lines): Make static.
5948 (get_filename_and_charpos): Renamed into...
5949 (open_source_file_with_line_charpos): ..this along with changes to
5950 return a scoped_fd, and some other minor clean ups.
5951 (identify_source_line): Use open_source_file_with_line_charpos.
5952 (search_command_helper): Use open_source_file_with_line_charpos
5953 instead of just open_source_file, remove call to
5954 find_source_lines.
5955 * source.h (open_source_file_with_line_charpos): Declare new
5956 function.
5957 (find_source_lines): Delete declaration.
5958
afda45a2
AB
59592019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5960
5961 * source.c (get_filename_and_charpos): Remove fullname
5962 parameter.
5963 (identify_source_line): Update call to get_filename_and_charpos.
5964
0735b091
TT
59652019-06-14 Tom Tromey <tromey@adacore.com>
5966
5967 PR gdb/24502:
5968 * ui-style.h (skip_ansi_escape): Update comment.
5969 * ui-file.h (class no_terminal_escape_file): New class.
5970 * ui-file.c (no_terminal_escape_file::write)
5971 (no_terminal_escape_file::puts): New methods.
5972 * cli/cli-logging.c (handle_redirections): Use
5973 no_terminal_escape_file.
5974
52ce35e2
TT
59752019-06-14 Tom Tromey <tromey@adacore.com>
5976
5977 * NEWS: Move convenience variable news above Python news.
5978
73cc7272
TT
59792019-06-14 Tom Tromey <tom@tromey.com>
5980
5981 * gnulib: Move directory to top-level.
5982 * configure.ac: Don't configure gnulib.
5983 * configure: Rebuild.
5984 * common/common-defs.h: Use new path to gnulib.
5985 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
5986 (GNULIB_H): Remove.
5987 (INCGNU): Look in new gnulib location.
5988 (HFILES_NO_SRCDIR): Remove gnulib files.
5989 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
5990 (generated_files): Remove GNULIB_H.
5991 ($(LIBGNU), all-lib): Remove targets.
5992 (distclean): Don't mention GNULIB_BUILDDIR.
5993 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
5994
f5686554
TT
59952019-06-14 Tom Tromey <tromey@adacore.com>
5996
5997 * symfile.c (add_symbol_file_command): Remove obsolete comment.
5998 Warn if symbol file does not provide any symbols.
5999
a0c1ffed
TT
60002019-06-14 Tom Tromey <tromey@adacore.com>
6001
6002 * source.c (find_and_open_source): Respect basenames_may_differ.
6003
7c39e397
AB
60042019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
6005
6006 * annotate.c (annotate_breakpoints_invalid): Make use of
6007 scoped_restore_terminal_state.
6008 (annotate_frames_invalid): Likewise.
6009
f411722c
TT
60102019-06-14 Tom Tromey <tromey@adacore.com>
6011
6012 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
6013 allow assignment to an internalvar.
6014
4268ec18
TT
60152019-06-14 Tom Tromey <tromey@adacore.com>
6016
6017 * ada-lex.l: Allow "_" in attribute names.
6018
abdb711e
TT
60192019-06-14 Tom Tromey <tromey@adacore.com>
6020
6021 PR gdb/24653:
6022 * regcache.c (registers_changed): Don't call alloca.
6023 * top.c (execute_command): Don't call alloca.
6024
4c048731
PA
60252019-06-13 Pedro Alves <palves@redhat.com>
6026
6027 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
6028 'expression'. When parsing an expression, error out if there's
6029 junk after "unlimited".
6030 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6031 (do_set_command): Adjust calls to is_unlimited_literal.
6032
66eb1ed3
PA
60332019-06-13 Pedro Alves <palves@redhat.com>
6034
6035 * compile/compile.c (make_compile_options_def_group): Add braces
6036 around array_view initializer.
6037 * thread.c (make_thread_apply_all_options_def_group)
6038 (make_thread_apply_all_options_def_group): Likewise.
6039
3345721a
PA
60402019-06-13 Pedro Alves <palves@redhat.com>
6041
6042 * NEWS (New commands): Mention "maint test-options
6043 require-delimiter", "maint test-options unknown-is-error", "maint
6044 test-options unknown-is-operand" and "maint show
6045 test-options-completion-result".
6046 (New command options, command completion): New section.
6047 (Completion improvements): New section.
6048 Mention that you can abbreviate "unlimited".
6049
6206060d
PA
60502019-06-13 Pedro Alves <palves@redhat.com>
6051
6052 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
6053 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
6054 * unittests/cli-utils-selftests.c (test_parse_flags)
6055 (test_parse_flags_qcs): Delete.
6056 (test_cli_utils): Don't call deleted functions.
6057
6665660a
PA
60582019-06-13 Pedro Alves <palves@redhat.com>
6059
6060 * thread.c: Include "cli/cli-option.h".
6061 (tp_array_compar_ascending): Global.
6062 (tp_array_compar): Delete function.
6063 (tp_array_compar_ascending, tp_array_compar_descending): New
6064 functions.
6065 (ascending_option_def, qcs_flag_option_def)
6066 (thr_qcs_flags_option_defs)
6067 (make_thread_apply_all_options_def_group)
6068 (make_thread_apply_options_def_group): New.
6069 (thread_apply_all_command): Use gdb::option::process_options.
6070 (thread_apply_command_completer)
6071 (thread_apply_all_command_completer): New.
6072 (thread_apply_command): Use gdb::option::process_options.
6073 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
6074 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
6075 to generate help text of "thread apply". Adjust "taas"'s help.
6076 * tid-parse.c (tid_range_parser::in_thread_range): New method.
6077 * tid-parse.h (tid_range_parser::in_thread_range): New method.
6078
f7e13587
PA
60792019-06-13 Pedro Alves <palves@redhat.com>
6080
6081 * thread.c (thread_apply_command): Check for invalid TID with
6082 isdigit instead of !isalpha.
6083
5d707134
PA
60842019-06-13 Pedro Alves <palves@redhat.com>
6085
6086 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
6087 (validate_flags_qcs): New.
6088 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
6089 (validate_flags_qcs): Declare.
6090 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
6091 (make_frame_apply_options_def_group): New.
6092 (frame_apply_command_count): Process options with
6093 gdb::option::process_options.
6094 (frame_apply_completer): New.
6095 (frame_apply_level_completer, frame_apply_all_completer)
6096 (frame_apply_completer): New.
6097 (_initialize_stack): Update help of "frame apply", "frame apply
6098 level", "frame apply all" and "faas" to mention supported options
6099 and install command completers.
6100 * stack.h (frame_apply_all_completer): Declare.
6101 * thread.c: Include "stack.h".
6102 (tfaas_command): Add "--".
6103 (_initialize_thread): Update help "tfaas" to mention supported
6104 options and install command completer.
6105
272d4594
PA
61062019-06-13 Pedro Alves <palves@redhat.com>
6107
6108 * completer.c (complete_nested_command_line): New.
6109 (gdb_completion_word_break_characters_throw): Add assertion.
6110 * completer.h (complete_nested_command_line): Declare.
6111
90a1ef87
PA
61122019-06-13 Pedro Alves <palves@redhat.com>
6113
6114 * stack.c (parse_backtrace_qualifiers): New.
6115 (backtrace_command): Use it.
6116 (backtrace_command_completer): Complete on qualifiers.
6117
d4c16835
PA
61182019-06-13 Pedro Alves <palves@redhat.com>
6119
6120 * frame.c: Include "cli/cli-option.h.
6121 (user_set_backtrace_options): New.
6122 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
6123 Delete.
6124 (get_prev_frame): Adjust.
6125 (boolean_option_def, uinteger_option_def)
6126 (set_backtrace_option_defs): New.
6127 (_initialize_frame): Adjust and use
6128 gdb::option::add_setshow_cmds_for_options to install "set
6129 backtrace past-main" and "set backtrace past-entry".
6130 * frame.h: Include "cli/cli-option.h".
6131 (struct frame_print_options): Forward declare.
6132 (print_frame_arguments_all, print_frame_arguments_scalars)
6133 (print_frame_arguments_none): Declare.
6134 (print_entry_values): Delete declaration.
6135 (struct frame_print_options, user_frame_print_options): New.
6136 (struct set_backtrace_options): New.
6137 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
6138 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
6139 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
6140 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
6141 (list_args_or_locals): Add frame_print_options parameter.
6142 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6143 * python/py-framefilter.c (enumerate_args): Pass down
6144 USER_FRAME_PRINT_OPTIONS.
6145 * stack.c: Include "cli/cli-option.h".
6146 (print_frame_arguments_all, print_frame_arguments_scalars)
6147 (print_frame_arguments_none): Declare.
6148 (print_raw_frame_arguments, print_entry_values): Delete.
6149 (user_frame_print_options): New.
6150 (boolean_option_def, enum_option_def, frame_print_option_defs):
6151 New.
6152 (struct backtrace_cmd_options): New.
6153 (bt_flag_option_def): New.
6154 (backtrace_command_option_defs): New.
6155 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6156 (print_frame_arg, read_frame_arg, print_frame_args)
6157 (print_frame_info, print_frame): Add frame_print_options parameter
6158 and use it.
6159 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
6160 (backtrace_command_1): Add frame_print_options and
6161 backtrace_cmd_options parameters and use them.
6162 (make_backtrace_options_def_group): New.
6163 (backtrace_command): Process command options with
6164 gdb::option::process_options.
6165 (backtrace_command_completer): New.
6166 (_initialize_stack): Extend "backtrace"'s help to mention
6167 supported options. Install completer for "backtrace".
6168 Install some settings commands with add_setshow_cmds_for_options.
6169
2daf894e
PA
61702019-06-13 Pedro Alves <palves@redhat.com>
6171
6172 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
6173 and that "set/show print raw frame-arguments" are now deprecated.
6174
6175 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
6176 command.
6177 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
6178 * stack.c (_initialize_stack): Install "set/show print
6179 raw-frame-arguments", and deprecate "set/show print raw
6180 frame-arguments".
6181 * valprint.c (_initialize_valprint): Deprecate "set/show print
6182 raw".
6183
e6ed716c
PA
61842019-06-13 Pedro Alves <palves@redhat.com>
6185
6186 * compile/compile.c (struct compile_options): New.
6187 (compile_flag_option_def, compile_command_option_defs)
6188 (make_compile_options_def_group): New.
6189 (compile_file_command): Handle options with
6190 gdb::option::process_options.
6191 (compile_file_command_completer): New function.
6192 (compile_code_command): Handle options with
6193 gdb::option::process_options.
6194 (compile_code_command_completer): New function.
6195 (_initialize_compiler): Install completers for "compile code" and
6196 "compile file". Mention available options in "compile code" and
6197 "compile code"'s help.
6198 * completer.c (advance_to_completion_word): New, factored out from
6199 ...
6200 (advance_to_expression_complete_word_point): ... this.
6201 (advance_to_filename_complete_word_point): New.
6202 * completer.h (advance_to_filename_complete_word_point): New
6203 declaration.
6204
7d8062de
PA
62052019-06-13 Pedro Alves <palves@redhat.com>
6206
6207 * compile/compile.c: Include "cli/cli-option.h".
6208 (compile_print_value): Scope data pointer is now a
6209 value_print_options pointer; adjust.
6210 (compile_print_command): Process options. Scope data pointer is
6211 now a value_print_options pointer; adjust.
6212 (_initialize_compile): Update "compile print"'s help to include
6213 supported options. Install a completer for "compile print".
6214 * cp-valprint.c (show_vtblprint, show_objectprint)
6215 (show_static_field_print): Delete.
6216 (_initialize_cp_valprint): Don't install "set print
6217 static-members", "set print vtbl", "set print object" here.
6218 * printcmd.c: Include "cli/cli-option.h" and
6219 "common/gdb_optional.h".
6220 (print_command_parse_format): Rework to fill in a
6221 value_print_options instead of a format_data.
6222 (print_value): Change parameter type from format_data pointer to
6223 value_print_options reference. Adjust.
6224 (print_command_1): Process options. Adjust to pass down a
6225 value_print_options.
6226 (print_command_completer): New.
6227 (_initialize_printcmd): Install print_command_completer as
6228 handle_brkchars completer for the "print" command. Update
6229 "print"'s help to include supported options.
6230 * valprint.c: Include "cli/cli-option.h".
6231 (show_vtblprint, show_objectprint, show_static_field_print): Moved
6232 here from cp-valprint.c.
6233 (boolean_option_def, uinteger_option_def)
6234 (value_print_option_defs, make_value_print_options_def_group):
6235 New. Use gdb::option::add_setshow_cmds_for_options to install
6236 "set print elements", "set print null-stop", "set print repeats",
6237 "set print pretty", "set print union", "set print array", "set
6238 print address", "set print symbol", "set print array-indexes".
6239 * valprint.h: Include <string> and "cli/cli-option.h".
6240 (make_value_print_options_def_group): Declare.
6241 (print_value): Change parameter type from format_data pointer to
6242 value_print_options reference.
6243 (print_command_completer): Declare.
6244
9d0faba9
PA
62452019-06-13 Pedro Alves <palves@redhat.com>
6246
6247 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
6248 (COMMON_SFILES): Add maint-test-settings.c.
6249 * cli/cli-decode.c (boolean_enums): New global, factored out from
6250 ...
6251 (add_setshow_boolean_cmd): ... here.
6252 * cli/cli-decode.h (boolean_enums): Declare.
6253 * cli/cli-option.c: New file.
6254 * cli/cli-option.h: New file.
6255 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
6256 factored out from ...
6257 (parse_cli_boolean_value(const char *)): ... this.
6258 (is_unlimited_literal): Change parameter type to pointer to
6259 pointer. Adjust and advance ARG pointer.
6260 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6261 (parse_cli_var_enum): New, factored out from ...
6262 (do_set_command): ... this. Adjust.
6263 * cli/cli-setshow.h (parse_cli_boolean_value)
6264 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6265 (parse_cli_var_enum): Declare.
6266 * cli/cli-utils.c: Include "cli/cli-option.h".
6267 (get_ulongest): New.
6268 * cli/cli-utils.h (get_ulongest): Declare.
6269 (check_for_argument): New overloads.
6270 * maint-test-options.c: New file.
6271
2c722807
PA
62722019-06-13 Pedro Alves <palves@redhat.com>
6273
6274 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
6275 parse a range if "-" is at the end of the string.
6276
dee7b4c8
PA
62772019-06-13 Pedro Alves <palves@redhat.com>
6278
6279 * cli/cli-setshow.c (parse_auto_binary_operation)
6280 (parse_cli_boolean_value): Don't allow "o".
6281
dca0f6c0
PA
62822019-06-13 Pedro Alves <palves@redhat.com>
6283
6284 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
6285 * NEWS: Mention maint test-settings KIND.
6286 * maint-test-settings.c: New file.
6287
597bf39d
PA
62882019-06-13 Pedro Alves <palves@redhat.com>
6289
6290 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
6291 completer.
6292 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
6293 "set" completers.
6294
48c410fb
PA
62952019-06-13 Pedro Alves <palves@redhat.com>
6296
6297 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
6298 after item.
6299
93bcb043
PA
63002019-06-13 Pedro Alves <palves@redhat.com>
6301
6302 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
6303
cbba3ecd
PA
63042019-06-13 Pedro Alves <palves@redhat.com>
6305
6306 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
6307 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
6308 call.
6309 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
6310 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
6311 calls.
6312 (check_for_argument): Skip spaces after argument.
6313
b9a3f842
PA
63142019-06-13 Pedro Alves <palves@redhat.com>
6315
6316 * thread.c (thread_apply_command): Adjust TID parsing.
6317 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
6318 detected before end of string.
6319 (tid_is_in_list): Error out if LIST is invalid.
6320
3844e605
PA
63212019-06-13 Pedro Alves <palves@redhat.com>
6322
6323 * completer.c (complete_line_internal_1): Rewind completion word
6324 point.
6325 (completion_tracker::advance_custom_word_point_by): Change
6326 parameter type to int.
6327 * completer.h (completion_tracker::advance_custom_word_point_by):
6328 Likewise.
6329
00b56dbe
PA
63302019-06-13 Pedro Alves <palves@redhat.com>
6331
6332 * completer.c (advance_to_completion_word): Handle delimiters.
6333
d106773e
PA
63342019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
6335
6336 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
6337
08f10e02
TT
63382019-06-11 Tom Tromey <tom@tromey.com>
6339
6340 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
6341 (xmalloc_failed): Move to alloc.c.
6342 * alloc.c: New file.
6343 * Makefile.in (COMMON_SFILES): Add alloc.c.
6344
1c7fe951
TT
63452019-06-11 Tom Tromey <tom@tromey.com>
6346
6347 * nat/linux-waitpid.c: Don't include server.h.
6348 (linux_debug): Remove.
6349 (my_waitpid): Update.
6350
89549d7f
TT
63512019-06-11 Tom Tromey <tromey@adacore.com>
6352
6353 * infcall.c (_initialize_infcall): Remove trailing newline from
6354 help.
6355 * user-regs.c (_initialize_user_regs): Remove trailing newline
6356 from help.
6357 * typeprint.c (_initialize_typeprint): Remove trailing newline
6358 from help.
6359 * reverse.c (_initialize_reverse): Remove trailing newlines from
6360 help.
6361 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
6362 from help.
6363 * language.c (add_set_language_command): Remove trailing newline
6364 from help.
6365 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
6366 help.
6367 * disasm.c (_initialize_disasm): Remove trailing newline from
6368 help.
6369 * top.c (init_main): Remove trailing newline from help.
6370 * interps.c (_initialize_interpreter): Remove trailing newline
6371 from help.
6372 * btrace.c (_initialize_btrace): Remove trailing newlines from
6373 help.
6374 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
6375 from help.
6376 * python/python.c (_initialize_python): Remove trailing newline
6377 from help.
6378 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
6379 help.
6380 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
6381 from help. Reformat some text.
6382 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
6383 from help.
6384 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
6385 newline from help.
6386
86108c13
TT
63872019-06-11 Tom Tromey <tromey@adacore.com>
6388
6389 * darwin-nat.c (darwin_decode_exception_message)
6390 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
6391
a7067863
AB
63922019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
6393
6394 * valops.c (value_slice): Check for not allocated or not
6395 associated values.
6396
9ab08412
TV
63972019-06-10 Tom de Vries <tdevries@suse.de>
6398
6399 PR gdb/24618
6400 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
6401 sure an empty slot (defined by a 32-bit zero pair) is recognized as
6402 invalid.
6403
f19e22e9
TV
64042019-06-10 Tom de Vries <tdevries@suse.de>
6405
6406 PR gdb/24611
6407 * linespec.c (linespec_lexer_lex_string): Remove incorrect
6408 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
6409
e99f9db0
TV
64102019-06-10 Tom de Vries <tdevries@suse.de>
6411
6412 PR symtab/24545
6413 * symtab.c (struct demangled_name_entry): Add language field.
6414 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
6415 static minimal symbol". Set and use language field.
6416
9bf7038b
TT
64172019-06-10 Tom Tromey <tromey@adacore.com>
6418
6419 * ada-lang.c (_initialize_ada_language): Update help text.
6420
422186a9
TT
64212019-06-10 Tom Tromey <tromey@adacore.com>
6422
6423 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
6424 with a newline.
6425 * guile/guile.c (handle_boot_error): Don't end warning with a
6426 newline.
6427 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
6428 warning with a newline.
6429 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
6430 newline.
6431 (s12z_frame_cache): Likewise.
6432 * dwarf-index-cache.c (index_cache::store): Don't end warning with
6433 a newline.
6434 * solib-svr4.c (disable_probes_interface): Don't end warning with
6435 a newline.
6436 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
6437 newline.
6438 * python/python.c (do_finish_initialization): Don't end warning
6439 with a newline.
6440
25ce02ee
TT
64412019-06-10 Tom Tromey <tom@tromey.com>
6442
6443 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6444 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
6445 gdbpy_enter.
6446
caa429d8
TT
64472019-06-10 Tom Tromey <tromey@adacore.com>
6448
6449 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
6450 data.
6451 (elf_new_init): Don't call stabsread_new_init.
6452 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
6453 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
6454 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
6455
81873cc8
TV
64562019-06-10 Tom de Vries <tdevries@suse.de>
6457
6458 PR symtab/16264
6459 PR symtab/24517
6460 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
6461
4fa0265e
РИ
64622019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
6463
6464 * source.c (find_and_open_source): Also rewrite relative file
6465 names.
6466
1a3da2cd
AB
64672019-04-26 Amos Bird <amosbird@gmail.com>
6468
6469 * annotate.c (annotate_thread_exited): Add "thread-exited"
6470 annotation.
6471
3847a7bf
TT
64722019-06-06 Tom Tromey <tromey@adacore.com>
6473
6474 * maint.h (class scoped_command_stats): Use
6475 DISABLE_COPY_AND_ASSIGN.
6476 <print_time>: New method.
6477 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
6478 print_time.
6479 (scoped_command_stats::print_time): New method.
6480
312617a3
AB
64812019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6482
6483 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
6484 instructions of lengths 6 or 8 bytes.
6485
b02f78f9
PA
64862019-06-04 Pedro Alves <palves@redhat.com>
6487
6488 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
6489
6490 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
6491 * breakpoint.c (condition_completer): Likewise.
6492 * cli/cli-dump.c (scan_expression): Likewise.
6493 * common/filestuff.c (mkdir_recursive): Likewise.
6494 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
6495 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
6496 (gdb_abspath): Likewise.
6497 * compile/compile-cplus-types.c
6498 (compile_cplus_instance::decl_name): Likewise.
6499 * completer.c (complete_explicit_location):
6500 (signal_completer, reg_or_group_completer_1): Likewise.
6501 * cp-support.c (cp_remove_params_if_any): Likewise.
6502 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
6503 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
6504 * infcmd.c (strip_bg_char): Likewise.
6505 * linespec.c (copy_token_string): Likewise.
6506 * mi/mi-main.c (output_cores): Likewise.
6507 * psymtab.c (psymtab_search_name):
6508 * symfile.c (test_set_ext_lang_command): Likewise.
6509 * target.c (target_fileio_read_stralloc): Likewise.
6510 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
6511 * value.c (complete_internalvar): Likewise.
6512
e1f2e1a2
CB
65132019-06-04 Christian Biesinger <cbiesinger@google.com>
6514
6515 Add objfile property to gdb.Type.
d3238f7d
PA
6516 * NEWS: Mention Python API addition.
6517 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 6518
e664d728
PW
65192019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6520
6521 * NEWS: Mention the new set|show style [title|highlight].
6522 Mention changes to "show style", "help" and "apropos".
6523
66d8c862
PW
65242019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6525
6526 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
6527 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
6528 instead of print_help_for_command.
6529 (print_doc_of_command): New function.
6530 (help_list): Add 'apropos -v word' suggestion.
6531 (print_help_for_command): Style the command name using title style.
6532 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
6533 (_initialize_cli_cmds): Describe -v in apropos_command help.
6534
9303eb2f
PW
65352019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6536
6537 * cli/cli-style.h (cli_style_option): Add name in constructor,
6538 add m_name class member, add constructor with intensity,
6539 add name class function.
6540 (cli_style_option::add_setshow_commands): Remove name argument.
6541 (highlight_style, title_style): New styles.
6542 * cli/cli-style.c (do_show): New function that shows a style
6543 characteristic styling the style name with itself.
6544 (set_style_name): New function.
6545 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
6546 Update all callers according to the changes in cli/cli-style.h.
6547 * utils.h (fputs_highlighted): New function.
6548 * utils.c (fputs_highlighted): Likewise.
6549
e2c52041
PW
65502019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6551
6552 * NEWS: Mention new pipe command and new convenience variables.
6553
947d3946
PW
65542019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6555
6556 * cli/cli-cmds.c (pipe_command): New function.
6557 (_initialize_cli_cmds): Call add_com for pipe_command.
6558 Define | as an alias for pipe.
6559 (exit_status_set_internal_vars): New function.
6560 (shell_escape): Call exit_status_set_internal_vars.
6561 cli/cli-decode.c (find_command_name_length): Recognize | as
6562 a single character command.
6563
b8fd0918
PW
65642019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6565
6566 * gdbcmd.h (execute_command_to_ui_file): New declaration.
6567 top.c (execute_command_to_ui_file): New function, mostly a copy
6568 of execute_command_to_string.
6569 (execute_command_to_string): Implement by calling
6570 execute_command_to_ui_file.
6571
68bb5386
PW
65722019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6573
6574 * top.h (saved_command_line): Remove declaration.
6575 * top.c (previous_saved_command_line, previous_repeat_arguments):
6576 New variables.
6577 (saved_command_line): Make static, define together with other
6578 'repeat variables'.
6579 (dont_repeat): Clear repeat_arguments.
6580 (repeat_previous, get_saved_command_line, save_command_line):
6581 New functions.
6582 (gdb_init): Initialize saved_command_line
6583 and previous_saved_command_line.
6584 * main.c (captured_main_1): Remove saved_command_line initialization.
6585 * event-top.c (handle_line_of_input): Update to use
6586 the new 'repeat' related functions instead of direct access to
6587 saved_command_line.
6588 * command.h (repeat_previous, get_saved_command_line,
6589 save_command_line): New declarations.
6590 (dont_repeat): Add comment.
6591
bfcdb852
TT
65922019-05-30 Tom Tromey <tromey@adacore.com>
6593
6594 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
6595 Fix comment.
6596 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
6597
0ef209f2
JV
65982019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
6599
6600 PR cli/24587
6601 * completer.c (complete): Initialize variable word.
6602
955b06fa
SDJ
66032019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
6604
6605 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6606 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
6607 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
6608 'body' is NULL to the outter 'if', protecting the '!is_define'
6609 situation as well.
6610
fa9c3fa0
TT
66112019-05-29 Tom Tromey <tromey@adacore.com>
6612
6613 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
6614 (dwarf_unknown): New function.
6615 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
6616 (dwarf_type_encoding_name): Use dwarf_unknown.
6617
4330d61d
TT
66182019-05-29 Tom Tromey <tromey@adacore.com>
6619
6620 PR c++/20020:
6621 * cp-valprint.c (cp_print_value_fields): Call
6622 cp_print_static_field inside "try".
6623
33a6bc35
TT
66242019-05-29 Tom Tromey <tromey@adacore.com>
6625
6626 * inflow.c (struct terminal_info): Add default operator=.
6627 * configure: Rebuild.
6628 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
6629 -Wdeprecated-copy-dtor, -Wredundant-move.
6630
000439d5
TT
66312019-05-29 Tom Tromey <tromey@adacore.com>
6632
6633 * NEWS: Add entry.
6634 * infcmd.c (print_return_value_1): Handle finish_print
6635 option.
6636 (show_print_finish): New function.
6637 (_initialize_infcmd): Add "set/show print finish" commands.
6638 * valprint.c (user_print_options): Initialize new member.
6639 * valprint.h (struct value_print_options) <finish_print>: New
6640 member.
6641
c0e70c62
TT
66422019-05-28 Tom Tromey <tromey@adacore.com>
6643
6644 * ada-lang.c (ada_remove_Xbn_suffix)
6645 (find_old_style_renaming_symbol)
6646 (parse_old_style_renaming): Remove.
6647 (ada_find_renaming_symbol): Don't call
6648 find_old_style_renaming_symbol.
6649 (ada_is_renaming_symbol): Rename from
6650 ada_find_renaming_symbol. Remove "block" parameter. Return
6651 bool. Now static.
6652 (ada_read_var_value): Update and simplify.
6653 * ada-exp.y (write_var_or_type): Remove old code.
6654
766f8836
AH
66552019-05-28 Alan Hayward <alan.hayward@arm.com>
6656
6657 * event-top.c: Remove include comment.
6658 * inflow.c (class scoped_ignore_sigttou): Move from here...
6659 * inflow.h (class scoped_ignore_sigttou): ...to here.
6660 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
6661 * top.c: Remove include comment.
6662
eb41253a
TT
66632019-05-27 Tom Tromey <tom@tromey.com>
6664
6665 * NEWS: Fix typo.
6666
4ca51187
TT
66672019-05-22 Tom Tromey <tromey@adacore.com>
6668
6669 * target.c (target_follow_exec): Constify parameter.
6670 * target-delegates.c: Rebuild.
6671 * remote.c (remote_target::follow_exec): Constify parameter.
6672 * infrun.c (follow_exec): Constify parameter.
6673 * target.h (struct target_ops) <follow_exec>: Constify parameter.
6674 (target_follow_exec): Likewise.
6675
8fca4da0
AH
66762019-05-22 Alan Hayward <alan.hayward@arm.com>
6677
6678 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
6679 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
6680
b7060614
AH
66812019-05-22 Alan Hayward <alan.hayward@arm.com>
6682
6683 * NEWS: Add debugredirect and testsuite sections.
6684
0a5954bd
SC
66852019-05-22 Simon Cook <simon.cook@embecosm.com>
6686
6687 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
6688 target descriptions using exclusively floating point register name
6689 aliases.
6690
dc42e902
AB
66912019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
6692
6693 PR gdb/18644:
6694 * f-lang.c (build_fortran_types): Handle the case where
6695 gdbarch_floatformat_for_type returns a nullptr.
6696
fb7806c7
TV
66972019-05-21 Tom de Vries <tdevries@suse.de>
6698
6699 PR cli/24587
6700 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
6701
34d11c68
AB
67022019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6703
6704 PR gdb/18644:
6705 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
6706 16-byte floats.
6707 * i386-tdep.c (i386_floatformat_for_type): Use
6708 floatformats_ia64_quad for the 16-byte floating point component
6709 within a fortran 32-byte complex number.
6710
122cf0f2
AB
67112019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6712
6713 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
6714 delete default constructor.
6715 (find_partial_die): Update to return const struct.
6716 (partial_die_parent_scope): Move variable declaration into scope
6717 of its use and change its type to auto.
6718 (guess_partial_die_structure_name): Likewise.
6719 (partial_die_info::fixup): Likewise.
6720
33d0e35a
TT
67212019-05-17 Tom Tromey <tromey@adacore.com>
6722
6723 * source.c (find_and_open_source): Remove cast.
6724
a45575b0
TT
67252019-05-17 Tom Tromey <tromey@adacore.com>
6726
6727 * annotate.c (annotate_source): Make "filename" const.
6728 * annotate.h (annotate_source): Use const.
6729
81f47ac2
AH
67302019-05-17 Alan Hayward <alan.hayward@arm.com>
6731
6732 * disasm.c (set_disassembler_options): Send errors to stderr.
6733
ca1285d1
AH
67342019-05-17 Alan Hayward <alan.hayward@arm.com>
6735
6736 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
6737 (cli_interp_base::set_logging): Check debug_redirect.
6738 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
6739 * cli/cli-logging.c (debug_redirect): Add static variable.
6740 (pop_output_files): Add default param.
6741 (handle_redirections): Print debug setting.
6742 (show_logging_command): Likewise.
6743 (_initialize_cli_logging): Add debugredirect command.
6744 * interps.c (current_interp_set_logging): Add debug_redirect
6745 parameter.
6746 * interps.h (set_logging): Add debug_redirect parameter.
6747 (current_interp_set_logging): Likewise.
6748 * mi/mi-common.h: Likewise.
6749 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
6750
67512019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
6752 Tom Tromey <tromey@adacore.com>
6753
6754 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
6755 directly.
6756 * cli/cli-interp.h (make_logging_output): Remove declaration.
6757 * cli/cli-logging.c (make_logging_output): Remove function.
6758 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
6759 directly.
6760 * ui-file.c (tee_file::tee_file): Remove bools.
6761 (tee_file::~tee_file): Remove deletes.
6762 * ui-file.h (tee_file): Remove bools.
6763
26648588
JV
67642019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
6765
6766 * mi/mi-cmds.h (mi_cmd_complete): New function.
6767 * mi/mi-main.c (mi_cmd_complete): Likewise.
6768 * mi/mi-cmds.c: Define new MI command -complete.
6769 * NEWS: Mention new -complete command.
6770
6e035501
JV
67712019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
6772
6773 * completer.h (complete): New function.
6774 * completer.c (complete): Likewise.
6775 * cli/cli-cmds.c: (complete_command): Update to use new complete()
6776 function defined in completer.h.
6777
7d0e2ece
JV
67782019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
6779
e79be6e5 6780 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 6781
fb816e8b
TV
67822019-05-17 Tom de Vries <tdevries@suse.de>
6783
6784 PR gdb/24094
6785 * dwarf2read.c (struct cu_partial_die_info): New struct.
6786 (find_partial_die): Return cu_partial_die_info.
6787 (partial_die_parent_scope, guess_partial_die_structure_name)
6788 (partial_die_info::fixup): Handle new return type of find_partial_die.
6789
677052f2
SDJ
67902019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6791
a1726c38 6792 PR breakpoints/24541
677052f2
SDJ
6793 * stap-probe.c (stap_parse_register_operand): Make "regname" an
6794 "std::string", simplifying the algorithm.
6795
f3da9116
SDJ
67962019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6797
6798 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
6799 (stap_static_probe_ops::get_probes): Likewise.
6800
f1bb75ab
SDJ
68012019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6802
6803 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
6804 '-')" and "else if".
6805 (stap_parse_single_operand): Join checks for
6806 "gdbarch_stap_parse_special_token_p" and
6807 "gdbarch_stap_parse_special_token" in the same "if" statement.
6808 Invert check when verifying for operation on register
6809 displacement.
6810
3ca58cde
SDJ
68112019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6812
6813 * stap-probe.c (stap_get_opcode): Update comment.
6814 (stap_get_expected_argument_type): Likewise.
6815 (handle_stap_probe): Likewise.
6816
af2d9bee
SDJ
68172019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6818
6819 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
6820 return type to 'bool'. Adjust comment. Use 'bool' when
6821 appropriate.
6822 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6823 * stap-probe.c (stap_parse_argument_1): Likewise.
6824 (stap_is_operator): Likewise.
6825 (stap_is_generic_prefix): Likewise.
6826 (stap_is_register_prefix): Likewise.
6827 (stap_is_register_indirection_prefix): Likewise.
6828 (stap_is_integer_prefix): Likewise.
6829 (stap_generic_check_suffix): Likewise.
6830 (stap_check_integer_suffix): Likewise.
6831 (stap_check_register_suffix): Likewise.
6832 (stap_check_register_indirection_suffix): Likewise.
6833 (stap_parse_register_operand): Likewise.
6834 (stap_parse_single_operand): Likewise.
6835 (stap_parse_argument_1): Likewise.
6836 (stap_probe::get_argument_count): Likewise.
6837 (stap_is_operator): Likewise.
6838
61c9c421
TT
68392019-05-16 Tom Tromey <tromey@adacore.com>
6840
6841 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
6842 keyword to foreach.
6843
9ddc1af1
SM
68442019-05-15 Simon Marchi <simon.marchi@efficios.com>
6845
6846 * linux-thread-db.c (try_thread_db_load_1): Change return type
6847 to bool.
6848 (try_thread_db_load): Likewise.
6849 (try_thread_db_load_from_pdir_1): Likewise.
6850 (try_thread_db_load_from_pdir): Likewise.
6851 (try_thread_db_load_from_sdir): Likewise.
6852 (try_thread_db_load_from_dir): Likewise.
6853 (thread_db_load_search): Likewise.
6854 (has_libpthread): Likewise.
6855 (thread_db_load): Likewise.
6856
7bede828
SDJ
68572019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
6858
6859 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6860 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
6861 NULL, and complain/return if that's the case.
6862
c5358db4
JD
68632019-05-15 John Darrington <john@darrington.wattle.id.au>
6864
6865 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
6866 (advance, posn, abstract_read_memory): New functions.
6867 [struct mem_read_abstraction]: New struct.
6868 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
6869
c408a94f
TT
68702019-05-14 Tom Tromey <tromey@adacore.com>
6871
6872 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
6873 value is not lval_memory.
6874
e7bd7fba
TT
68752019-05-14 Tom Tromey <tromey@adacore.com>
6876
6877 * solib.c (info_sharedlibrary_command): Style the file name.
6878
a6d0f249
AH
68792019-05-14 Alan Hayward <alan.hayward@arm.com>
6880
6881 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
6882 (aarch64_vnv_type): Likewise.
6883 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
6884 * common/tdesc.c: Likewise.
6885 * common/tdesc.h (enum tdesc_type_kind): Likewise.
6886 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
6887 * features/aarch64-fpu.xml: Add ieee half view.
6888 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
6889 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
6890 * gdbtypes.h (struct builtin_type): Likewise.
6891 (struct objfile_type): Likewise.
6892
66b8bb74
SM
68932019-05-12 Paul Naert <paul.naert@polymtl.ca>
6894
6895 * language.c (language_sniff_from_mangled_name): Fix "langauge"
6896 typo.
6897 * location.h (string_to_event_location): Likewise.
6898
21c219fd
JB
68992019-05-11 Joel Brobecker <brobecker@adacore.com>
6900
6901 GDB 8.3 released.
6902
13674803
SM
69032019-05-10 Simon Marchi <simon.marchi@efficios.com>
6904
6905 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
6906 New variable declaration.
6907 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
6908 New variable.
6909 (print_one_breakpoint): Use ui_out::test_flags and new global
6910 variable to compute use_fixed_output.
6911 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
6912 Remove.
6913 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
6914 (mi_multi_location_breakpoint_output_fixed): Remove.
6915 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
6916 new variable.
6917 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
6918 fix_multi_location_breakpoint_output flag if version >= 3.
6919 * ui-out.h (enum ui_out_flag)
6920 <fix_multi_location_breakpoint_output>: New enumerator.
6921
a9eac7f9
SM
69222019-05-10 Simon Marchi <simon.marchi@efficios.com>
6923
6924 * contrib/cc-with-tweaks.sh: Validate dwz's work.
6925
71bed2db
TT
69262019-05-10 Tom Tromey <tromey@adacore.com>
6927
6928 * ada-lang.c (catch_ada_completer): New function.
6929 (_initialize_ada_language): Use it.
6930
24c54127
TT
69312019-05-10 Tom Tromey <tromey@adacore.com>
6932
6933 * thread.c (print_thread_info): Make "requested_threads" const.
6934 * gdbthread.h (print_thread_info): Make "requested_threads"
6935 const.
6936 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
6937 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
6938
7a102139
TT
69392019-05-08 Tom Tromey <tom@tromey.com>
6940
6941 * gdbtypes.c (objfile_type_data): Change type.
6942 (objfile_type, _initialize_gdbtypes): Update.
6943
924d79e2
TT
69442019-05-08 Tom Tromey <tom@tromey.com>
6945
6946 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
6947 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
6948 (_initialize_dwarf2_frame): Update.
6949
4c58e337
TT
69502019-05-08 Tom Tromey <tom@tromey.com>
6951
6952 * objc-lang.c (objc_objfile_data): Change type.
6953 (find_methods): Update.
6954 (_initialize_objc_lang): Remove.
6955
d772d2ab
TT
69562019-05-08 Tom Tromey <tom@tromey.com>
6957
6958 * stabsread.c (rs6000_builtin_type_data): Change type.
6959 (rs6000_builtin_type, _initialize_stabsread): Update.
6960
d11d83f4
TT
69612019-05-08 Tom Tromey <tom@tromey.com>
6962
6963 * mips-tdep.c (mips_pdr_data): Remove.
6964 (_initialize_mips_tdep): Update.
6965
9a73f0ad
TT
69662019-05-08 Tom Tromey <tom@tromey.com>
6967
6968 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
6969 (hppa_init_objfile_priv_data, read_unwind_info)
6970 (find_unwind_entry, _initialize_hppa_tdep): Update.
6971
8127a2fa
TT
69722019-05-08 Tom Tromey <tom@tromey.com>
6973
6974 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
6975 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
6976 on obstack.
6977 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
6978
91d3055d
TT
69792019-05-08 Tom Tromey <tom@tromey.com>
6980
6981 * mdebugread.c (basic_type_data): Change type.
6982 (basic_type, _initialize_mdebugread): Update.
6983
31930bd3
TT
69842019-05-08 Tom Tromey <tom@tromey.com>
6985
6986 * common/gdb_unique_ptr.h (struct noop_deleter): New.
6987
bdb3ed9e
TT
69882019-05-08 Tom Tromey <tom@tromey.com>
6989
6990 * nto-tdep.c (nto_inferior_data_reg): Change type.
6991 (nto_inferior_data): Update.
6992 (nto_inferior_data_cleanup, nto_new_inferior_data)
6993 (_initialize_nto_tdep): Remove.
6994 * nto-tdep.h (struct nto_inferior_data): Add initializers.
6995
f37b313d
TT
69962019-05-08 Tom Tromey <tom@tromey.com>
6997
6998 * ada-lang.c (struct ada_inferior_data): Add initializers.
6999 (ada_inferior_data): Change type.
7000 (ada_inferior_data_cleanup): Remove.
7001 (get_ada_inferior_data, ada_inferior_exit)
7002 (struct ada_pspace_data): Add initializers, destructor.
7003 (ada_pspace_data_handle): Change type.
7004 (get_ada_pspace_data): Update.
7005 (ada_pspace_data_cleanup): Remove.
7006
24699405
TT
70072019-05-08 Tom Tromey <tom@tromey.com>
7008
7009 * coffread.c (struct coff_symfile_info): Add initializers.
7010 (coff_objfile_data_key): Move lower. Change type.
7011 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
7012 Update.
7013 (coff_free_info): Remove.
7014
d4e05d2f
TT
70152019-05-08 Tom Tromey <tom@tromey.com>
7016
7017 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
7018 (fbsd_pspace_data_handle): Move lower. Change type.
7019 (get_fbsd_pspace_data): Update.
7020 (fbsd_pspace_data_cleanup): Remove.
7021 (_initialize_fbsd_tdep): Update.
7022
14ef6690
TT
70232019-05-08 Tom Tromey <tom@tromey.com>
7024
7025 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
7026 (get_ada_tasks_pspace_data): Update.
7027 (ada_tasks_pspace_data_cleanup): Remove.
7028 (_initialize_tasks): Update.
7029 (ada_tasks_inferior_data_handle): Change type.
7030 (get_ada_tasks_inferior_data): Update.
7031 (ada_tasks_inferior_data_cleanup): Remove.
7032 (struct ada_tasks_pspace_data): Add initializers.
7033
814cf43a
TT
70342019-05-08 Tom Tromey <tom@tromey.com>
7035
7036 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
7037 * symfile-debug.c (debug_sym_get_probes): Change type.
7038 * stap-probe.c (handle_stap_probe):
7039 (stap_static_probe_ops::get_probes): Change type.
7040 * probe.h (class static_probe_ops) <get_probes>: Change type.
7041 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
7042 (parse_probes_in_pspace): Update.
7043 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
7044 Update.
7045 (any_static_probe_ops::get_probes): Change type.
7046 * elfread.c (elfread_data): New typedef.
7047 (probe_key): Change type.
7048 (elf_get_probes): Likewise. Update.
7049 (probe_key_free): Remove.
7050 (_initialize_elfread): Update.
7051 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
7052 Change type.
7053 (dtrace_process_dof_probe, dtrace_process_dof)
7054 (dtrace_static_probe_ops::get_probe): Change type.
7055
02dc647e
TT
70562019-05-08 Tom Tromey <tom@tromey.com>
7057
7058 * xcoffread.c (struct xcoff_symfile_info): Rename from
7059 coff_symfile_info. Add initializers.
7060 (xcoff_objfile_data_key): Move lower. Change type.
7061 (XCOFF_DATA): Rewrite.
7062 (xcoff_free_info): Remove.
7063 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
7064 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
7065 (xcoff_initial_scan): Update.
7066
09232438
TT
70672019-05-08 Tom Tromey <tom@tromey.com>
7068
7069 * solib-svr4.c (struct svr4_info): Add initializers and
7070 destructor.
7071 <probes_table>: Now an htab_up.
7072 (solib_svr4_pspace_data): Change type.
7073 (free_probes_table): Simplify.
7074 (~svr4_info): Rename from svr4_pspace_data_cleanup.
7075 (get_svr4_info, probes_table_htab_remove_objfile_probes)
7076 (probes_table_remove_objfile_probes, register_solib_event_probe)
7077 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
7078 (_initialize_svr4_solib): Update.
7079
7b4a314f
TT
70802019-05-08 Tom Tromey <tom@tromey.com>
7081
7082 * remote.c (remote_pspace_data): Change type.
7083 (remote_pspace_data_cleanup): Remove.
7084 (get_remote_exec_file, set_pspace_remote_exec_file)
7085 (_initialize_remote): Update.
7086
51d3063a
TT
70872019-05-08 Tom Tromey <tom@tromey.com>
7088
7089 * breakpoint.c (breakpoint_objfile_key): Change type.
7090 (get_breakpoint_objfile_data): Update.
7091 (free_breakpoint_objfile_data): Remove.
7092 (_initialize_breakpoint): Update.
7093
89fb8848
TT
70942019-05-08 Tom Tromey <tom@tromey.com>
7095
7096 * linux-tdep.c (struct linux_info): Add initializers.
7097 (linux_inferior_data): Move. Change type.
7098 (invalidate_linux_cache_inf): Update.
7099 (linux_inferior_data_cleanup): Remove.
7100 (get_linux_inferior_data, _initialize_linux_tdep): Update.
7101
e9b89e2d
TT
71022019-05-08 Tom Tromey <tom@tromey.com>
7103
7104 * auxv.c (auxv_inferior_data): Move. Change type.
7105 (auxv_inferior_data_cleanup): Remove.
7106 (invalidate_auxv_cache_inf): Rewrite.
7107 (get_auxv_inferior_data, _initialize_auxv): Update.
7108
8c42777c
TT
71092019-05-08 Tom Tromey <tom@tromey.com>
7110
7111 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
7112 (symfile_debug_objfile_data_key): Change type.
7113 (symfile_debug_installed, debug_qf_has_symbols)
7114 (debug_qf_find_last_source_symtab)
7115 (debug_qf_forget_cached_source_info)
7116 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
7117 (debug_qf_print_stats, debug_qf_dump)
7118 (debug_qf_expand_symtabs_for_function)
7119 (debug_qf_expand_all_symtabs)
7120 (debug_qf_expand_symtabs_with_fullname)
7121 (debug_qf_map_matching_symbols)
7122 (debug_qf_expand_symtabs_matching)
7123 (debug_qf_find_pc_sect_compunit_symtab)
7124 (debug_qf_map_symbol_filenames)
7125 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
7126 (debug_sym_new_init, debug_sym_init, debug_sym_read)
7127 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
7128 (debug_sym_read_linetable, debug_sym_relocate): Update.
7129 (symfile_debug_free_objfile): Remove.
7130 (install_symfile_debug_logging, _initialize_symfile_debug):
7131 Update.
7132
5bfd760d
TT
71332019-05-08 Tom Tromey <tom@tromey.com>
7134
7135 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
7136 allocate_on_obstack.
7137 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
7138 (get_dwarf2_per_objfile): Update.
7139 (set_dwarf2_per_objfile): Remove.
7140 (dwarf2_has_info, dwarf2_get_section_info): Update.
7141 (dwarf2_free_objfile): Remove.
7142 (_initialize_dwarf2_read): Update.
7143
e85e19b4
TT
71442019-05-08 Tom Tromey <tom@tromey.com>
7145
7146 * auto-load.c (struct auto_load_pspace_info): Add destructor and
7147 initializers.
7148 <unsupported_script_warning_printed,
7149 script_not_found_warning_printed>: Now bool.
7150 (auto_load_pspace_data): Change type.
7151 (~auto_load_pspace_info): Rename from
7152 auto_load_pspace_data_cleanup.
7153 (get_auto_load_pspace_data, init_loaded_scripts_info)
7154 (clear_section_scripts, maybe_print_unsupported_script_warning)
7155 (maybe_print_script_not_found_warning, _initialize_auto_load):
7156 Update.
7157
f6aa7436
TT
71582019-05-08 Tom Tromey <tom@tromey.com>
7159
7160 * objfiles.c (objfile_pspace_info): Add destructor and
7161 initializers.
7162 (objfiles_pspace_data): Change type.
7163 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
7164 (get_objfile_pspace_data): Update.
7165 (objfiles_bfd_data): Change type.
7166 (get_objfile_bfd_data): Update.
7167 (objfile_bfd_data_free, _initialize_objfiles): Remove.
7168
6ae614f6
TT
71692019-05-08 Tom Tromey <tom@tromey.com>
7170
7171 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
7172 Change type.
7173 (get_catch_syscall_inferior_data): Update.
7174 (catch_syscall_inferior_data_cleanup): Remove.
7175 (_initialize_break_catch_syscall): Update.
7176
6509b8eb
TT
71772019-05-08 Tom Tromey <tom@tromey.com>
7178
7179 * inflow.c (struct terminal_info): Add destructor and
7180 initializers.
7181 (inflow_inferior_data): Change type.
7182 (~terminal_info): Rename from inflow_inferior_data_cleanup.
7183 (get_inflow_inferior_data, inflow_inferior_exit)
7184 (swap_terminal_info, _initialize_inflow): Update.
7185
35632941
TT
71862019-05-08 Tom Tromey <tom@tromey.com>
7187
7188 * target-dcache.c (target_dcache_cleanup): Remove.
7189 (target_dcache_aspace_key): Change type.
7190 (target_dcache_init_p, target_dcache_invalidate)
7191 (target_dcache_get, target_dcache_get_or_init)
7192 (_initialize_target_dcache): Update.
7193 * dcache.h (struct dcache_deleter): New.
7194
3017b94d
TT
71952019-05-08 Tom Tromey <tom@tromey.com>
7196
7197 * symtab.c (struct symbol_cache): Add destructor and
7198 initializers.
7199 (symbol_cache_key): Move. Change type.
7200 (make_symbol_cache, free_symbol_cache): Remove.
7201 (get_symbol_cache): Update.
7202 (symbol_cache_cleanup): Remove.
7203 (ALL_PSPACES, symbol_cache_flush)
7204 (maintenance_print_symbol_cache)
7205 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
7206 Update.
7207
a32ad8c5
TT
72082019-05-08 Tom Tromey <tom@tromey.com>
7209
7210 * symtab.c (struct main_info): Add destructor and initializers.
7211 (main_progspace_key): Move. Change type.
7212 (get_main_info): Update.
7213 (main_info_cleanup): Remove.
7214 (_initialize_symtab): Update.
7215
5f6e90a0
TT
72162019-05-08 Tom Tromey <tom@tromey.com>
7217
7218 * registry.h (DECLARE_REGISTRY): Define the _key class.
7219
1bd0c6e4
AB
72202019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7221
7222 * NEWS: Merge two 'New commands' sections.
7223
2228ef77
XR
72242019-05-08 Joel Brobecker <brobecker@adacore.com>
7225
7226 * ada-valprint.c (ada_val_print_gnat_array): Remove language
7227 parameter and use Ada language definition instead.
7228 (ada_val_print_ptr): Remove unused language parameter.
7229 (ada_val_print_num): Remove language parameter and use Ada language
7230 definition instead.
7231 (ada_val_print_enum, ada_val_print_flt): Remove unused language
7232 parameter.
7233 (ada_val_print_struct_union, ada_val_print_ref): Remove language
7234 parameter and use Ada language definition instead.
7235 (ada_val_print_1): Update all ada_val_print_xxx calls.
7236 Remove language parameter.
7237 (ada_val_print): Update ada_val_print_1 call.
7238
60fcc1c3
TT
72392019-05-08 Tom Tromey <tromey@adacore.com>
7240
7241 * remote.c (remote_hw_watchpoint_limit)
7242 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
7243 Now static.
7244
ed2b7c17
TT
72452019-05-08 Tom Tromey <tromey@adacore.com>
7246
7247 * maint.c (_initialize_maint_cmds): Move initialization code to
7248 remote.c.
7249 (watchdog, show_watchdog): Move to remote.c.
7250 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
7251 "watchdog" static.
7252 (_initialize_remote): Move initialization code from maint.c.
7253 * defs.h (watchdog): Don't declare.
7254
b0be6c91
TT
72552019-05-08 Tom Tromey <tromey@adacore.com>
7256
7257 * tui/tui-interp.c: Include main.h.
7258 * interps.c: Include main.h.
7259 * main.h (interpreter_p): Declare.
7260 * defs.h (interpreter_p): Don't declare.
7261
587ee17b
TT
72622019-05-08 Tom Tromey <tromey@adacore.com>
7263
7264 * dwarf2loc.c: Include dwarf2read.h.
7265 * defs.h (read_unsigned_leb128): Don't declare.
7266 * dwarf2read.h (read_unsigned_leb128): Declare.
7267
ca1df239
TT
72682019-05-08 Tom Tromey <tromey@adacore.com>
7269
7270 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
7271 method.
7272
99f20f08
TT
72732019-05-08 Tom Tromey <tromey@adacore.com>
7274
7275 * utils.c (fputs_maybe_filtered): Reset style after paging, even
7276 when no wrap column is set.
7277
80e55b13
TT
72782019-05-08 Tom Tromey <tromey@adacore.com>
7279
7280 * c-lang.c (c_get_string): Handle non-C-style arrays.
7281
9d3421af
TT
72822019-05-08 Tom Tromey <tromey@adacore.com>
7283
7284 * typeprint.c (print_offset_data::update): Print the bit offset,
7285 not the number of bits remaining.
7286
844333e2
TT
72872019-05-08 Tom Tromey <tromey@adacore.com>
7288
7289 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
7290 padding at end of comment.
7291
988915ee
TT
72922019-05-08 Tom Tromey <tromey@adacore.com>
7293
7294 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
7295 Compare main types.
7296
26bfd823
TT
72972019-05-06 Tom Tromey <tom@tromey.com>
7298
7299 * common/scoped_mmap.c: Include common-defs.h.
7300 * common/scoped_mmap.h: Don't include config.h.
7301
89055eaa
TT
73022019-05-04 Tom Tromey <tom@tromey.com>
7303
7304 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
7305 (struct aarch64_call_info): Add initializers.
7306 <si>: Now a std::vector.
7307 (pass_on_stack, aarch64_push_dummy_call): Update.
7308
5da01df5
TT
73092019-05-04 Simon Marchi <simon.marchi@efficios.com>
7310 Tom Tromey <tom@tromey.com>
7311
7312 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
7313 (ppc_threads): Now a std::vector. Now static.
7314 (hwdebug_find_thread_points_by_tid)
7315 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
7316 Update.
7317
fbdf05a1
TT
73182019-05-04 Tom Tromey <tom@tromey.com>
7319
7320 * arc-tdep.c (arc_tdesc_init): Return bool.
7321
06d16ec9
TT
73222019-05-04 Tom Tromey <tom@tromey.com>
7323
7324 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
7325 Use gdb_assert_not_reached.
7326
9c056022
TT
73272019-05-04 Tom Tromey <tom@tromey.com>
7328
7329 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
7330 "false".
7331
fa9c2a59
TT
73322019-05-04 Tom Tromey <tom@tromey.com>
7333
7334 * arc-tdep.c (arc_tdesc_init): Use bool.
7335
e2eb806a
TT
73362019-05-04 Tom Tromey <tom@tromey.com>
7337
7338 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
7339
6fe87677
TT
73402019-05-04 Tom Tromey <tom@tromey.com>
7341
7342 * cli/cli-cmds.c (valid_command_p): Return bool.
7343
7f008c9e
TT
73442019-05-04 Tom Tromey <tom@tromey.com>
7345
7346 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
7347 * command.h (valid_user_defined_cmd_name_p): Channge return type.
7348
b6484282
RT
73492019-05-04 Raul Tambre <raul@tambre.ee>
7350
7351 * python/lib/gdb/prompt.py (_ExtendedPrompt)
7352 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
7353 operator for comparison.
7354
af97b416
TT
73552019-05-04 Tom Tromey <tom@tromey.com>
7356
7357 * psymtab.c (psymbol_name_matches, match_partial_symbol)
7358 (lookup_partial_symbol, print_partial_symbols)
7359 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
7360 (psymbol_compare): Update.
7361 (add_psymbol_to_bcache): Clear the entire psymbol.
7362 (maintenance_check_psymtabs): Update.
7363 * psympriv.h (struct partial_symbol): Don't derive from
7364 general_symbol_info.
7365 <obj_section, unrelocated_address, address,
7366 set_unrelocated_address>: Update.
7367 <ginfo>: New member.
7368 * dwarf-index-write.c (write_psymbols, debug_names::insert)
7369 (debug_names::write_psymbols): Update.
7370
9d6d4be8
TV
73712019-05-04 Tom de Vries <tdevries@suse.de>
7372
7373 * contrib/cc-with-tweaks.sh: Support -n arg.
7374
66452beb
PW
73752019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7376
7377 * corelow.c (core_target::detach): Ensure frame cache and
7378 register caches are cleared.
7379 inferior.c (exit_inferior_1): Likewise.
7380
bde09ab7
TT
73812019-05-03 Sandra Loosemore <sandra@codesourcery.com>
7382 Tom Tromey <tom@tromey.com>
7383
7384 * dictionary.c (collate_pending_symbols_by_language): Remove
7385 "struct" from foreach.
7386 * symtab.c (lookup_global_symbol_from_objfile)
7387 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
7388 foreach.
7389 * ser-tcp.c (net_open): Remove "struct" from foreach.
7390 * objfiles.c (objfile_relocate, objfile_rebase)
7391 (objfile_has_symbols): Remove "struct" from foreach.
7392 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
7393 from foreach.
7394 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
7395 foreach.
7396 * darwin-nat.c (thread_info_from_private_thread_info): Remove
7397 "struct" from foreach.
7398 * ada-lang.c (create_excep_cond_exprs)
7399 (ada_exception_catchpoint_cond_string): Remove "struct" from
7400 foreach.
7401
222a8d25
TT
74022019-05-03 Tom Tromey <tromey@adacore.com>
7403
7404 * ada-exp.y (convert_char_literal): Check suffix of each
7405 enumerator.
7406
fcd60b84
DP
74072019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
7408
7409 PR ada/21406:
7410 * ada-exp.y (yywrap): Don't define.
7411 * ada-lex.l (%option): Add noyywrap
7412 (yywrap): Remove.
7413
5f2459c2
EZ
74142019-05-03 Eli Zaretskii <eliz@gnu.org>
7415
353ea2d1
EZ
7416 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
7417 _WIN32_WINNT to the XP level, unless already defined to a higher
7418 level.
7419
7420 * unittests/parse-connection-spec-selftests.c:
7421 * ser-tcp.c:
7422 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
7423 override.
7424
5f2459c2
EZ
7425 * symfile.c (find_separate_debug_file): Remove colon from the
7426 drive spec of DOS/Windows file names of the target, so that the
7427 file name produced from DEBUGDIR and the target's directory will
7428 be valid on DOS/Windows systems.
7429
80062eb9
AB
74302019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
7431
7432 * rust-lang.c (val_print_struct): Handle printing structures
7433 containing strings.
7434
b8c05e85
TT
74352019-05-02 Tom Tromey <tromey@adacore.com>
7436
7437 * valarith.c (_initialize_valarith): Remove.
7438
4504bbde
TT
74392019-05-01 Tom Tromey <tromey@adacore.com>
7440
7441 * ada-lang.c (ada_value_primitive_field): Treat more fields as
7442 bitfields.
7443
d48e62f4
TT
74442019-05-01 Tom Tromey <tromey@adacore.com>
7445
7446 * ada-lang.c (ada_value_assign): Correctly compute starting offset
7447 for big-endian copies.
7448
15f18d14
AT
74492019-04-30 Ali Tamur <tamur@google.com>
7450 * gdb/dwarf2read.c (read_3_bytes): New declaration.
7451 (read_attribute_value): Added DW_FORM_strx1-4 cases.
7452 (read_3_bytes): New function.
7453
ab4ee614
JB
74542019-04-30 Joel Brobecker <brobecker@adacore.com>
7455
7456 * windows-nat.c (main_thread_id): Delete.
7457 (handle_output_debug_string): Replace main_thread_id by
7458 current_event.dwThreadId.
7459 (fake_create_process): Likewise.
7460 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
7461 Do not set main_thread_id.
7462 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
7463 current_event.dwThreadId.
7464 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
7465
8ed5b76e
JB
74662019-04-30 Joel Brobecker <brobecker@adacore.com>
7467
7468 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
7469 Use current_event.dwThreadId instead of main_thread_id.
7470
2ff0a947
TT
74712019-04-30 Tom Tromey <tromey@adacore.com>
7472
7473 * ada-lang.c (ada_lookup_simple_minsyms): New function.
7474 (create_excep_cond_exprs): Iterate over program spaces.
7475 (ada_exception_catchpoint_cond_string): Examine all minimal
7476 symbols for exception types.
7477
a776957c
TT
74782019-04-30 Tom Tromey <tromey@adacore.com>
7479
7480 PR c++/24470:
7481 * dwarf2read.c (process_structure_scope): Handle case where type
7482 has template parameters but no symbol was created.
7483
bc68014d
AB
74842019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7485 Chris January <chris.january@arm.com>
7486
7487 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
7488 qualifier.
7489 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
7490
f1fdc960
AB
74912019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7492
7493 * f-typeprint.c (f_print_type): Update rules for printing
7494 whitespace.
7495 (f_type_print_varspec_suffix): Likewise.
7496
bf7a4de1
AB
74972019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7498 Chris January <chris.january@arm.com>
7499
7500 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
7501 function arguments.
7502
bbe75b9d
AB
75032019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7504
7505 * f-lang.c (build_fortran_types): Change name of void type to
7506 lower case.
7507 * f-typeprint.c (f_type_print_base): Print the name of the void
7508 type, rather than a fixed string.
7509 * f-valprint.c (f_decorations): Use lower case void string.
7510
1db455a7
AB
75112019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7512 Chris January <chris.january@arm.com>
7513
7514 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
7515 types for Fortran.
7516
b6d03bb2
AB
75172019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7518 Chris January <chris.january@arm.com>
7519 David Lecomber <david.lecomber@arm.com>
7520
7521 * f-exp.y (BINOP_INTRINSIC): New token.
7522 (exp): New parser rule handling BINOP_INTRINSIC.
7523 (f77_keywords): Add new builtin procedures.
7524 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
7525 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7526 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
7527 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7528 (print_unop_subexp_f): New function.
7529 (print_binop_subexp_f): New function.
7530 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7531 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7532 (dump_subexp_body_f): Likewise.
7533 (operator_check_f): Likewise.
7534 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7535 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
7536
83228e93
AB
75372019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7538
7539 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
7540 UNOP_KIND.
7541 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
7542 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
7543 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
7544 (operator_length_f): New fuction.
7545 (print_subexp_f): New function.
7546 (op_name_f): New function.
7547 (dump_subexp_body_f): New function.
7548 (operator_check_f): New function.
7549 (exp_descriptor_f): Replace standard expression handling functions
7550 with new functions.
7551 * gdb/fortran-operator.def: New file.
7552 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
7553 * gdb/std-operator.def: Remove UNOP_KIND.
7554
6fdcd7cc
AB
75552019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7556
7557 * std-operator.def: Remove unbalanced, stray double quote
7558 character.
7559
2e62ab40
AB
75602019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7561 Chris January <chris.january@arm.com>
7562 Daniel Everett <daniel.everett@arm.com>
7563 Nick Forrington <nick.forrington@arm.com>
7564 Richard Bunt <richard.bunt@arm.com>
7565
7566 * cp-valprint.c (cp_print_value_fields): Allow an additional level
7567 of depth when printing anonymous structs or unions.
7568 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
7569 Don't print either the top-level value, or the children if the
7570 max-depth is exceeded.
7571 (ppscm_print_children): When printing the key of a map, allow one
7572 extra level of depth.
7573 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
7574 print either the top-level value, or the children if the max-depth
7575 is exceeded.
7576 (print_children): When printing the key of a map, allow one extra
7577 level of depth.
7578 * python/py-value.c (valpy_format_string): Add max_depth keyword.
7579 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
7580 (user_print_options): Initialise max_depth field.
7581 (val_print_scalar_or_string_type_p): New function.
7582 (val_print): Check to see if the max depth has been reached.
7583 (val_print_check_max_depth): Define new function.
7584 (show_print_max_depth): New function.
7585 (_initialize_valprint): Add 'print max-depth' option.
7586 * valprint.h (struct value_print_options) <max_depth>: New field.
7587 (val_print_check_max_depth): Declare new function.
7588 * NEWS: Document new feature.
7589
4be290b2
AB
75902019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7591
7592 * ada-lang.c (ada_language_defn): Initialise new field.
7593 * c-lang.c (c_is_string_type_p): New function.
7594 (c_language_defn): Initialise new field.
7595 (cplus_language_defn): Initialise new field.
7596 (asm_language_defn): Initialise new field.
7597 (minimal_language_defn): Initialise new field.
7598 * c-lang.h (c_is_string_type_p): Declare new function.
7599 * d-lang.c (d_language_defn): Initialise new field.
7600 * f-lang.c (f_is_string_type_p): New function.
7601 (f_language_defn): Initialise new field.
7602 * go-lang.c (go_is_string_type_p): New function.
7603 (go_language_defn): Initialise new field.
7604 * language.c (default_is_string_type_p): New function.
7605 (unknown_language_defn): Initialise new field.
7606 (auto_language_defn): Initialise new field.
7607 * language.h (struct language_defn) <la_is_string_type_p>: New
7608 member variable.
7609 (default_is_string_type_p): Declare new function.
7610 * m2-lang.c (m2_language_defn): Initialise new field.
7611 * objc-lang.c (objc_language_defn): Initialise new field.
7612 * opencl-lang.c (opencl_language_defn): Initialise new field.
7613 * p-lang.c (pascal_is_string_type_p): New function.
7614 (pascal_language_defn): Initialise new field.
7615 * rust-lang.c (rust_is_string_type_p): New function.
7616 (rust_language_defn): Initialise new field.
7617
721b08c6
AB
76182019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7619
7620 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
7621 New field.
7622 * ada-lang.c (ada_language_defn): Initialise new field.
7623 * c-lang.c (c_language_defn): Likewise.
7624 (cplus_language_defn): Likewise.
7625 (asm_language_defn): Likewise.
7626 (minimal_language_defn): Likewise.
7627 * d-lang.c (d_language_defn): Likewise.
7628 * f-lang.c (f_language_defn): Likewise.
7629 * go-lang.c (go_language_defn): Likewise.
7630 * language.c (unknown_language_defn): Likewise.
7631 (auto_language_defn): Likewise.
7632 * m2-lang.c (m2_language_defn): Likewise.
7633 * objc-lang.c (objc_language_defn): Likewise.
7634 * opencl-lang.c (opencl_language_defn): Likewise.
7635 * p-lang.c (pascal_language_defn): Likewise.
7636 * rust-lang.c (rust_language_defn): Likewise.
7637
fc913e53
AB
76382019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7639
7640 * ada-lang.c (ada_is_character_type): Change return type to bool.
7641 (ada_is_string_type): Likewise.
7642 * ada-lang.h (ada_is_character_type): Update declaration
7643 (ada_is_string_type): Likewise.
7644
fa731fa0
PW
76452019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7646
7647 Support style in 'frame|thread apply'
7648
7649 * gdbcmd.h (execute_command_to_string): New term_out parameter.
7650 * record.c (record_start, record_stop): Update callers of
7651 execute_command_to_string with false.
7652 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
7653 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
7654 methods.
7655 (class string_file): New constructor with term_out parameter.
7656 Override methods term_out and can_emit_style_escape. New member
7657 term_out.
7658 (class stdio_file): Override can_emit_style_escape.
7659 (class tee_file): Override term_out and can_emit_style_escape.
7660 * utils.h (can_emit_style_escape): Remove.
7661 * utils.c (can_emit_style_escape): Likewise.
7662 Update all callers of can_emit_style_escape (SOMESTREAM) to
7663 SOMESTREAM->can_emit_style_escape.
7664 * source-cache.c (source_cache::get_source_lines): Likewise.
7665 * stack.c (frame_apply_command_count): Call execute_command_to_string
7666 passing the term_out characteristic of the current gdb_stdout.
7667 * thread.c (thr_try_catch_cmd): Likewise.
7668 * top.c (execute_command_to_string): pass term_out parameter
7669 to construct the string_file for the command output.
7670 * ui-file.c (term_cli_styling): New function (most code moved
7671 from utils.c can_emit_style_escape).
7672 (string_file::string_file, string_file::can_emit_style_escape,
7673 stdio_file::can_emit_style_escape, tee_file::term_out,
7674 tee_file::can_emit_style_escape): New functions.
7675
136afab8
PW
76762019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7677
7678 * NEWS: Mention the new set|show may-call-functions.
7679 * infcall.c (may_call_functions_p): New variable.
7680 (show_may_call_functions_p): New function.
7681 (call_function_by_hand_dummy): Throws an error if not
7682 may-call-functions.
7683 (_initialize_infcall): Call add_setshow_boolean_cmd for
7684 may-call-functions.
7685
725cbb63
KS
76862019-04-25 Keith Seitz <keiths@redhat.com>
7687
7688 PR c++/24367
7689 * cp-support.c (inspect_type): Don't attempt substitutions
7690 of symbol with the same name.
7691
3d1cbb78
TT
76922019-04-25 Tom Tromey <tromey@adacore.com>
7693
7694 PR gdb/24475:
7695 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
7696 static.
7697
94aeb44b
TT
76982019-04-25 Tom Tromey <tromey@adacore.com>
7699
7700 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
7701 rvalue reference.
7702 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
7703 (gdb_xml_parser::parse): Use std::move.
7704 * python/python-internal.h (gdbpy_convert_exception): Take a const
7705 reference.
7706 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
7707 std::move.
7708 * python/py-utils.c (gdbpy_convert_exception): Take a const
7709 reference.
7710 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7711 Use std::move.
7712 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7713 Use std::move.
7714 * mi/mi-main.c (mi_print_exception): Take a const reference.
7715 * main.c (handle_command_errors): Take a const reference.
7716 * linespec.c (parse_linespec): Use std::move.
7717 * infcall.c (run_inferior_call): Use std::move.
7718 (call_function_by_hand_dummy): Use std::move.
7719 * exec.c (try_open_exec_file): Use std::move.
7720 * exceptions.h (exception_print, exception_fprintf)
7721 (exception_print_same): Update.
7722 * exceptions.c (print_exception, exception_print)
7723 (exception_fprintf, exception_print_same): Change parameters to
7724 const reference.
7725 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
7726 * common/new-op.c: Use std::move.
7727 * common/common-exceptions.h (struct gdb_exception): Add move
7728 constructor.
7729 (struct gdb_exception_error, struct gdb_exception_quit, struct
7730 gdb_quit_bad_alloc): Change constructor to move constructor.
7731 (throw_exception): Change parameter to rvalue reference.
7732 * common/common-exceptions.c (throw_exception): Take rvalue
7733 reference.
7734 * cli/cli-interp.c (safe_execute_command): Use std::move.
7735 * breakpoint.c (insert_bp_location, location_to_sals): Use
7736 std::move.
7737
680d7fd5
TT
77382019-04-25 Tom Tromey <tromey@adacore.com>
7739
7740 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
7741 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
7742 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
7743 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
7744 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
7745 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
7746 guile/scm-value.c: Use unpack.
7747 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
7748 gdbscm_gdb_exception.
7749 (gdbscm_throw_gdb_exception): Likewise.
7750 (struct gdbscm_gdb_exception): New.
7751 (unpack): New function.
7752 (gdbscm_wrap): Use unpack.
7753
c6fdd8b2
TT
77542019-04-25 Tom Tromey <tromey@adacore.com>
7755
7756 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7757 (gdb_rl_callback_handler): Use std::move.
7758 * common/common-exceptions.h (struct gdb_exception): Add move
7759 assignment operator.
7760 (throw_exception_sjlj): Change "exception" to const reference.
7761 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
7762 (throw_exception_sjlj): Change "exception" to const reference.
7763
cc06b668
TT
77642019-04-25 Tom Tromey <tromey@adacore.com>
7765
7766 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
7767 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
7768 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7769 Update.
7770 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7771 Update.
7772 * mi/mi-interp.c (mi_interp::exec): Update.
7773 * linespec.c (parse_linespec): Update.
7774 * infcall.c (run_inferior_call): Update.
7775 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
7776 * guile/scm-symbol.c (gdbscm_lookup_symbol)
7777 (gdbscm_lookup_global_symbol): Update.
7778 * guile/scm-param.c (gdbscm_parameter_value): Update.
7779 * guile/scm-frame.c (gdbscm_frame_read_register)
7780 (gdbscm_frame_read_var): Update.
7781 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7782 * exec.c (try_open_exec_file): Update.
7783 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7784 (gdb_rl_callback_handler): Update.
7785 * common/common-exceptions.h (exception_none): Don't declare.
7786 * common/common-exceptions.c (exception_none): Don't define.
7787 (struct catcher) <exception>: Update.
7788 * cli/cli-interp.c (safe_execute_command): Update.
7789 * breakpoint.c (insert_bp_location, location_to_sals): Update.
7790
cf532bd1
AT
77912019-04-25 Ali Tamur <tamur@google.com>
7792
7793 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
7794 (read_attribute_value): Likewise.
7795 (dwarf2_read_addr_index): Update comment.
7796 (read_str_index): Add DW_FORM_strx.
7797 (dwarf2_string_attr): Likewise.
7798 (dwarf2_const_value_attr): Likewise.
7799 (dump_die_shallow): Likewise.
7800 (dwarf2_fetch_constant_bytes): Likewise.
7801 (skip_form_bytes): Likewise.
7802 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
7803
82433e3e
SDJ
78042019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7805
7806 PR corefiles/11608
7807 PR corefiles/18187
7808 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
7809 OFFSET. Verify if current mapping contains an ELF header.
7810 (linux_find_memory_regions_full): Adjust call to
7811 dump_mapping_p.
7812
723adb65
SL
78132019-04-25 Sandra Loosemore <sandra@codesourcery.com>
7814 Kang Li <kanglictf@gmail.com>
7815
7816 PR gdb/21600
7817
7818 * dwarf2-frame.c (read_initial_length): Be consistent about using
7819 unsigned representation of length.
7820 (decode_frame_entry_1): Likewise. Check for wraparound of
7821 end pointer as well as buffer overflow.
7822
596179f7
SDJ
78232019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7824
7825 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
7826 "vq".
7827
a59240a4
TT
78282019-04-24 Tom Tromey <tromey@adacore.com>
7829
7830 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
7831
f872fdbb
AB
78322019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7833
7834 * s12z-tdep.c (s12z_unwind_pc): Delete.
7835 (s12z_unwind_sp): Delete.
7836 (s12z_gdbarch_init): Don't register deleted functions with
7837 gdbarch.
7838
b614e6f3
AB
78392019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7840
7841 * rl78-tdep.c (rl78_unwind_sp): Delete.
7842 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
7843
14faed38
AB
78442019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7845
7846 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
7847 (xstormy16_unwind_pc): Delete.
7848 (xstormy16_dummy_id): Delete.
7849 (xstormy16_gdbarch_init): Don't register deleted functions with
7850 gdbarch.
7851
541aad8a
AB
78522019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7853
7854 * vax-tdep.c (vax_unwind_pc): Delete.
7855 (vax_gdbarch_init): Don't register deleted function with gdbarch.
7856
29222070
AB
78572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7858
7859 * v850-tdep.c (v850_unwind_sp): Delete.
7860 (v850_unwind_pc): Delete.
7861 (v850_dummy_id): Delete.
7862 (v850_gdbarch_init): Don't register deleted functions with
7863 gdbarch.
7864
0f534d76
AB
78652019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7866
7867 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
7868 (tilegx_unwind_pc): Delete.
7869 (tilegx_unwind_dummy_id): Delete.
7870 (tilegx_gdbarch_init): Don't register deleted functions with
7871 gdbarch.
7872
1ba7b7f9
AB
78732019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7874
7875 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
7876 (tic6x_dummy_id): Delete.
7877 (tic6x_gdbarch_init): Don't register deleted functions with
7878 gdbarch.
7879
d31f262c
AB
78802019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7881
7882 * sparc-tdep.c (sparc_unwind_pc): Delete.
7883 (sparc32_gdbarch_init): Don't register deleted function with
7884 gdbarch.
7885
6d14d64d
AB
78862019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7887
7888 * sh-tdep.c (sh_unwind_sp): Delete.
7889 (sh_unwind_pc): Delete.
7890 (sh_dummy_id): Delete.
7891 (sh_gdbarch_init): Don't register deleted functions with
7892 gdbarch.
7893
a40dde9d
AB
78942019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7895
7896 * score-tdep.c (score_unwind_sp): Delete.
7897 (score_unwind_pc): Delete.
7898 (score_dummy_id): Delete.
7899 (score_gdbarch_init): Don't register deleted functions with
7900 gdbarch.
7901
47c47d69
AB
79022019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7903
7904 * rx-tdep.c (rx_unwind_pc): Delete.
7905 (rx_unwind_sp): Delete.
7906 (rx_dummy_id): Delete.
7907 (rx_gdbarch_init): Don't register deleted functions with
7908 gdbarch. Update comment.
7909
833a4480
AB
79102019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7911
7912 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
7913 (rs6000_dummy_id): Delete.
7914 (rs6000_gdbarch_init): Don't register deleted functions with
7915 gdbarch.
7916
3f2cef49
AB
79172019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7918
7919 * or1k-tdep.c (or1k_dummy_id): Delete.
7920 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
7921
96acf884
AB
79222019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7923
7924 * nios2-tdep.c (nios2_dummy_id): Delete.
7925 (nios2_unwind_sp): Delete.
7926 (nios2_gdbarch_init): Don't register deleted functions with
7927 gdbarch.
7928
ca0ab0aa
AB
79292019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7930
7931 * nds32-tdep.c (nds32_dummy_id): Delete.
7932 (nds32_unwind_pc): Delete.
7933 (nds32_unwind_sp): Delete.
7934 (nds32_gdbarch_init): Don't register deleted functions with
7935 gdbarch.
7936
c8259044
AB
79372019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7938
7939 * msp430-tdep.c (msp430_unwind_pc): Delete.
7940 (msp430_unwind_sp): Delete.
7941 (msp430_dummy_id): Delete.
7942 (msp430_gdbarch_init): Don't register deleted functions with
7943 gdbarch.
7944
27f113c8
AB
79452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7946
7947 * moxie-tdep.c (moxie_unwind_sp): Delete.
7948 (moxie_unwind_pc): Delete.
7949 (moxie_dummy_id): Delete.
7950 (moxie_gdbarch_init): Don't register deleted functions with
7951 gdbarch.
7952
aee6c3cd
AB
79532019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7954
7955 * mn10300-tdep.c (mn10300_dummy_id): Delete.
7956 (mn10300_unwind_pc): Delete.
7957 (mn10300_unwind_sp): Delete.
7958 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
7959 mn10300_unwind_sp.
7960 (mn10300_frame_unwind_init): Don't register deleted functions with
7961 gdbarch.
7962
8e2b5aea
AB
79632019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7964
7965 * mep-tdep.c (mep_unwind_pc): Delete.
7966 (mep_unwind_sp): Delete.
7967 (mep_dummy_id): Delete.
7968 (mep_gdbarch_init): Don't register deleted functions with
7969 gdbarch.
7970
43cf3ede
AB
79712019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7972
7973 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
7974 (m68hc11_unwind_sp): Delete.
7975 (m68hc11_gdbarch_init): Don't register deleted functions with
7976 gdbarch.
7977
5e79b7bb
AB
79782019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7979
7980 * m32r-tdep.c (m32r_unwind_sp): Delete.
7981 (m32r_unwind_pc): Delete.
7982 (m32r_dummy_id): Delete.
7983 (m32r_gdbarch_init): Don't register deleted functions with
7984 gdbarch.
7985
89b268d8
AB
79862019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7987
7988 * m32c-tdep.c (m32c_unwind_pc): Delete.
7989 (m32c_unwind_sp): Delete.
7990 (m32c_dummy_id): Delete.
7991 (m32c_gdbarch_init): Don't register deleted functions with
7992 gdbarch.
7993
946c28d2
AB
79942019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7995
7996 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
7997 (lm32_unwind_pc): Delete.
7998 (lm32_dummy_id): Delete.
7999 (lm32_gdbarch_init): Don't register deleted functions with
8000 gdbarch.
8001
bf12844a
AB
80022019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8003
8004 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
8005 (iq2000_unwind_pc): Delete.
8006 (iq2000_dummy_id): Delete.
8007 (iq2000_gdbarch_init): Don't register deleted functions with
8008 gdbarch.
8009
ecbc06d2
AB
80102019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8011
8012 * nds32-tdep.c (nds32_type_align): Delete.
8013 (nds32_push_dummy_call): Use type_align instead.
8014
030197b4
AB
80152019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8016
8017 * arm-tdep.c (arm_type_align): Only handle vector override case.
8018 (arm_push_dummy_call): Use type_align.
8019 (arm_gdbarch_init): Register arm_type_align gdbarch function.
8020
b907456c
AB
80212019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8022
8023 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
8024 case.
8025 (pass_on_stack): Use type_align.
8026 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
8027 function.
8028
9e97ba43
TT
80292019-04-23 Tom Tromey <tromey@adacore.com>
8030
8031 * dwarf2read.c (line_header::file_name_at): Remove unused
8032 overload.
8033
6892f601
TV
80342019-04-23 Tom de Vries <tdevries@suse.de>
8035
8036 PR gdb/24438
8037 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
8038 invocation.
8039
336d760d
AT
8040
80412019-03-27 Ali Tamur <tamur@google.com>
8042
8043 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
8044 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
8045 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
8046 (dwarf_expr_context::get_addr_index): Likewise
8047 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
8048 (symbol_needs_eval_context::get_addr_index): Likewise
8049 (disassemble_dwarf_expression): Add DW_OP_addrx
8050 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
8051 (read_cutu_die_from_dwo): Update comment
8052 (skip_one_die): Add DW_FORM_addrx
8053 (read_attribute_value): Likewise
8054 (var_decode_location): Add DW_OP_addrx
8055 (dwarf2_const_value_attr): Add DW_FORM_addrx
8056 (dump_die_shallow): Likewise
8057 (dwarf2_fetch_constant_bytes): Likewise
8058 (decode_locdesc): Add DW_OP_addrx
8059 (skip_form_bytes): Add DW_FORM_addrx
8060
ad9d13f8
AT
80612019-04-22 Ali Tamur <tamur@google.com>
8062
8063 * MAINTAINERS (Write After Approval): Add self.
8064
d70cc3ba
SM
80652019-04-22 Simon Marchi <simon.marchi@efficios.com>
8066
8067 * solib-svr4.c (get_svr4_info): Add pspace parameter.
8068 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
8069 (open_symbol_file_object): Likewise.
8070 (svr4_default_sos): Add info parameter.
8071 (svr4_read_so_list): Likewise.
8072 (svr4_current_sos_direct): Adjust functions calls to pass down
8073 info.
8074 (svr4_current_sos_1): Add info parameter.
8075 (svr4_current_sos): Call get_svr4_info, pass info down to
8076 svr4_current_sos_1.
8077 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
8078 get_svr4_info.
8079 (svr4_in_dynsym_resolve_code): Pass current_program_space to
8080 get_svr4_info.
8081 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
8082 to get_svr4_info.
8083 (probes_table_remove_objfile_probes): Likewise.
8084 (register_solib_event_probe): Add info parameter.
8085 (solist_update_incremental): Pass info parameter down to
8086 svr4_read_so_list.
8087 (disable_probes_interface): Add info parameter.
8088 (svr4_handle_solib_event): Pass current_program_space to
8089 get_svr4_info. Adjust disable_probes_interface cleanup.
8090 (svr4_create_probe_breakpoints): Add info parameter, pass it
8091 down to register_solib_event_probe.
8092 (svr4_create_solib_event_breakpoints): Add info parameter,
8093 pass it down to svr4_create_probe_breakpoints.
8094 (enable_break): Pass info down to
8095 svr4_create_solib_event_breakpoints.
8096 (svr4_solib_create_inferior_hook): Pass current_program_space to
8097 get_svr4_info.
8098 (svr4_clear_solib): Likewise.
8099
7905fc35
PA
81002019-04-22 Pedro Alves <palves@redhat.com>
8101
8102 * solib-svr4.c (svr4_free_objfile_observer): New.
8103 (probe_and_action::objfile): New field.
8104 (probes_table_htab_remove_objfile_probes)
8105 (probes_table_remove_objfile_probes): New functions.
8106 (register_solib_event_probe): Add 'objfile' parameter. Store it
8107 in the new probe_and_action. Don't store the probe in 'lookup'.
8108 (svr4_create_probe_breakpoints): Pass objfile to
8109 register_solib_event_probe.
8110 (_initialize_svr4_solib): Register a free_objfile observer.
8111
fb881986
TT
81122019-04-19 Tom Tromey <tom@tromey.com>
8113
8114 * common/queue.h: Remove.
8115
8732db6c
TT
81162019-04-19 Tom Tromey <tom@tromey.com>
8117
8118 * event-loop.c: Don't include "common/queue.h".
8119
97dfbadd
TT
81202019-04-19 Tom Tromey <tom@tromey.com>
8121
8122 * remote.c (remote_target): Use delete.
8123 * remote-notif.h: Include <list>, not "common/queue.h".
8124 (notif_client_p): Remove typedef.
8125 (remote_notif_state): Add constructor, destructor, initializer.
8126 <notif_queue>: Now a std::list.
8127 (remote_notif_state_xfree): Don't declare.
8128 * remote-notif.c (remote_notif_process, handle_notification)
8129 (remote_notif_state_allocate): Update.
8130 (~remote_notif_state): Rename from remote_notif_state_xfree.
8131
cf250e36
TT
81322019-04-19 Tom Tromey <tom@tromey.com>
8133
8134 * symfile.c (reread_symbols): Update.
8135 * objfiles.c (objfile_register_static_link)
8136 (objfile_lookup_static_link): Update
8137 (~objfile) Don't delete static_links.
8138 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
8139
61f4b350
TT
81402019-04-19 Tom Tromey <tom@tromey.com>
8141
8142 * type-stack.h (struct type_stack) <insert>: Constify string.
8143 * type-stack.c (type_stack::insert): Constify string.
8144 * gdbtypes.h (lookup_template_type): Update.
8145 (address_space_name_to_int): Update.
8146 * gdbtypes.c (address_space_name_to_int): Make space_identifier
8147 const.
8148 (lookup_template_type): Make name const.
8149 * c-exp.y: Update rules.
8150 (lex_one_token, classify_name, classify_inner_name)
8151 (c_print_token): Update.
8152 * p-exp.y: Update rules.
8153 (yylex): Update.
8154 * f-exp.y: Update rules.
8155 (yylex): Update.
8156 * d-exp.y: Update rules.
8157 (lex_one_token, classify_name, classify_inner_name): Update.
8158 * parse.c (write_dollar_variable, copy_name): Return std::string.
8159 * parser-defs.h (copy_name): Change return type.
8160 * m2-exp.y: Update rules.
8161 (yylex): Update.
8162 * go-exp.y (lex_one_token): Update.
8163 Update rules.
8164 (classify_unsafe_function, classify_packaged_name)
8165 (classify_name, yylex): Update.
8166
189b8c2e
ST
81672019-04-19 Sergei Trofimovich <siarheit@google.com>
8168
8169 * configure.ac: add --enable-source-highlight switch.
8170 * configure: Regenerate.
8171 * top.c (print_gdb_version): plumb --enable-source-highlight
8172 status to "show configuration".
8173
8ecb59f8
TT
81742019-04-19 Tom Tromey <tromey@adacore.com>
8175
8176 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
8177 Check ADA_TYPE_P.
8178 (empty_record, ada_template_to_fixed_record_type_1)
8179 (template_to_static_fixed_type)
8180 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
8181 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
8182 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
8183 macros.
8184
62160ec9
TT
81852019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
8186
8187 PR symtab/24423:
8188 * source.c (print_source_lines_base): Advance "iter" when a
8189 control character is seen.
8190
f2ae8bc8
PW
81912019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8192
8193 * inferior.h (struct infcall_suspend_state_deleter):
8194 Catch exception in destructor to avoid crash.
8195
d563b953
PW
81962019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8197
8198 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
8199 close to the add_com "shell".
8200
dc34c897
TT
82012019-04-18 Tom Tromey <tromey@adacore.com>
8202
8203 * process-stratum-target.h (class process_stratum_target)
8204 <stratum>: Add "final".
8205
a12e5744
TT
82062019-04-17 Tom Tromey <tromey@adacore.com>
8207
8208 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
8209 against nullptr before use.
8210
a7e559cc
AH
82112019-04-17 Alan Hayward <alan.hayward@arm.com>
8212
8213 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
8214
c01660c6
AB
82152019-04-17 Jim Wilson <jimw@sifive.com>
8216 Andrew Burgess <andrew.burgess@embecosm.com>
8217
8218 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
8219 code read might fail, assume 4-byte breakpoint in that case.
8220
4aa866af
LS
82212019-04-15 Leszek Swirski <leszeks@google.com>
8222
8223 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
8224 rather than a hand-rolled POD check when checking for forced MEMORY
8225 classification.
8226
48574d91
AH
82272019-04-15 Alan Hayward <alan.hayward@arm.com>
8228
8229 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
8230 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
8231 function.
8232 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
8233 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
8234 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
8235 declaration.
8236
4da037ef
AH
82372019-04-15 Alan Hayward <alan.hayward@arm.com>
8238
8239 * aarch64-linux-nat.c
8240 (aarch64_linux_nat_target::thread_architecture): Add override.
8241 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
8242 each VQ.
8243
ccb8d7e8
AH
82442019-04-15 Alan Hayward <alan.hayward@arm.com>
8245
8246 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
8247
35add35e
AB
82482019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
8249
8250 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
8251 target types of size 96-bits, add some additional comments, and
8252 check that the builtin type we found was the correct size.
8253
51196bbc
EZ
82542019-04-12 Eli Zaretskii <eliz@gnu.org>
8255
8256 * utils.c (prompt_for_continue): Don't restore the styling at the
8257 end, as applied_style has the wrong value. This fixes styling in
8258 long lists of file names that are interrupted by the "Continue?"
8259 prompt.
8260
62253a61
AB
82612019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
8262
8263 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
8264 * c-lang.c (c_language_defn): Likewise.
8265 (cplus_language_defn): Likewise.
8266 (asm_language_defn): Likewise.
8267 (minimal_language_defn): Likewise.
8268 * d-lang.c (d_language_defn): Likewise.
8269 * f-lang.c (f_language_defn): Likewise.
8270 * go-lang.c (go_language_defn): Likewise.
8271 * language.c (unknown_language_defn): Likewise.
8272 (auto_language_defn): Likewise.
8273 * language.h (struct language_defn): Remove la_magic field.
8274 (LANG_MAGIC): Delete.
8275 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
8276 * objc-lang.c (objc_language_defn): Likewise.
8277 * opencl-lang.c (opencl_language_defn): Likewise.
8278 * p-lang.c (pascal_language_defn): Likewise.
8279 * rust-lang.c (rust_language_defn): Likewise.
8280
a9158a86
AB
82812019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8282
8283 * riscv-tdep.c (riscv_type_align): New function.
8284 (riscv_type_alignment): Delete.
8285 (riscv_arg_location): Use 'type_align'.
8286 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
8287
41077b66
AB
82882019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8289
8290 * gdbtypes.c (type_align): A struct with no non-static fields also
8291 has alignment of 1.
8292
9f0272f8
AB
82932019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8294
8295 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
8296 component to 0.
8297 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
8298 member.
8299 (riscv_struct_info::analyse): New implementation using new
8300 analyse_inner member function.
8301 (riscv_struct_info::field_offset): New member function.
8302 (riscv_struct_info::m_offsets): New member variable.
8303 (riscv_struct_info::analyse_inner): New private member function,
8304 takes the old implementation of riscv_struct_info::analyse but
8305 extended to track field offsets.
8306 (riscv_call_arg_struct): Update the struct folding special cases
8307 to handle cases where empty C++ structs, which are non-zero
8308 length, are found.
8309 (riscv_arg_location): Initialise the length of each location, a
8310 non-zero length now indicates the location is in use.
8311 (riscv_push_dummy_call): Allow for the first location having a
8312 non-zero offset when setting up arguments.
8313 (riscv_return_value): Likewise, but for return values.
8314
02cf60c7
TT
83152019-04-11 Tom Tromey <tromey@adacore.com>
8316
8317 * utils.c (internal_vproblem): Make "msg" const.
8318
68811f8f
AH
83192019-04-11 Alan Hayward <alan.hayward@arm.com>
8320
8321 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
8322 * trad-frame.c (trad_frame_reset_saved_regs): New function.
8323 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
8324 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
8325
3f52fdbc
KB
83262019-04-10 Kevin Buettner <kevinb@redhat.com>
8327
8328 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
8329 function.
8330 (fill_gregset): Call amd64_linux_collect_native_gregset instead
8331 of amd64_collect_native_gregset.
8332 (amd64_linux_nat_target::store_registers): Likewise.
8333
e9ad22ee
TT
83342019-04-10 Tom Tromey <tom@tromey.com>
8335
8336 * symtab.c (lookup_global_symbol_from_objfile)
8337 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
8338 * objfiles.h (class separate_debug_iterator): New.
8339 (class separate_debug_range): New.
8340 (struct objfile) <separate_debug_objfiles>: New method.
8341 (objfile_separate_debug_iterate): Don't declare.
8342 * objfiles.c (separate_debug_iterator::operator++): Rename from
8343 objfile_separate_debug_iterate.
8344 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
8345 iterator.
8346 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
8347 iterator.
8348
ee371134
TT
83492019-04-10 Tom Tromey <tom@tromey.com>
8350
8351 * symfile.c (reread_symbols): Remove old comment.
8352 * objfiles.c (free_all_objfiles): Fix a typo.
8353
bf227d61
TT
83542019-04-10 Tom Tromey <tom@tromey.com>
8355
8356 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
8357 * minsyms.c (lookup_minimal_symbol): Use foreach.
8358 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8359 (lookup_minimal_symbol_solib_trampoline): Likewise.
8360 * symfile.c (reread_symbols): Use foreach.
8361
8dc433a0
TT
83622019-04-09 Ivan Begert <ivanbegert@gmail.com>
8363 Tom Tromey <tromey@adacore.com>
8364
8365 PR rust/24414:
8366 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
8367 (rust_lex_int_test): Change "value" to be LONGEST.
8368 (rust_lex_tests): Add test for long integer literal.
8369
9ab8741a
TT
83702019-04-09 Tom Tromey <tromey@adacore.com>
8371
8372 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
8373 to bool.
8374 (extended_remote_target::attach): Update.
8375 (remote_target::remote_notice_new_inferior): Update.
8376 (remote_target::add_current_inferior_and_thread): Update.
8377 * inferior.c (exit_inferior_1): Use "false".
8378 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
8379
e242fd12
SM
83802019-04-09 Simon Marchi <simon.marchi@efficios.com>
8381
9ca1957f 8382 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
8383 the "start" command.
8384
2b0c8b01
KB
83852019-04-08 Kevin Buettner <kevinb@redhat.com>
8386
8387 * python/py-inferior.c (infpy_thread_from_thread_handle):
8388 Adjust comments to reflect renaming of thread_from_thread_handle
8389 to thread_from_handle. Adjust keywords. Fix type error message.
8390 (inferior_object_methods): Add thread_from_handle. Retain
8391 thread_from_thread_handle, but mark it as deprecated.
8392
50a82723
KB
83932019-04-08 Kevin Buettner <kevinb@redhat.com>
8394
8395 * gdbthread.h (find_thread_by_handle): Revise declaration.
8396 * thread.c (find_thread_by_handle): Likewise. Adjust
8397 implementation too.
8398 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
8399 support for buffer objects as handles.
8400
cf63b016
KB
84012019-04-08 Kevin Buettner <kevinb@redhat.com>
8402
8403 * python/py-infthread.c (thpy_thread_handle): New function.
8404 (thread_object_methods): Register thpy_thread_handle.
8405
3d6c6204
KB
84062019-04-08 Kevin Buettner <kevinb@redhat.com>
8407
8408 * gdbthread.h (thread_to_thread_handle): Declare.
8409 * thread.c (gdbtypes.h): Include.
8410 (thread_to_thread_handle): New function.
8411
8412 * target.h (struct target_ops): Add thread_info_to_thread_handle.
8413 (target_thread_info_to_thread_handle): Declare.
8414 * target.c (target_thread_info_to_thread_handle): New function.
8415 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
8416 * target-delegates.c: Regenerate.
8417
8418 * linux-thread-db.c (class thread_db_target): Add method
8419 thread_info_to_thread_handle.
8420 (thread_db_target::thread_info_to_thread_handle): Define.
8421 * remote.c (class remote_target): Add new method
8422 thread_info_to_thread_handle.
8423 (remote_target::thread_info_to_thread_handle): Define.
8424
56be6ea8
PA
84252019-04-08 Pedro Alves <palves@redhat.com>
8426
8427 * common/common-exceptions.c (throw_exception): Don't create
8428 named object to throw; throw directly.
8429 (throw_it): Likewise. Don't initialize gdb_exception::message
8430 here, with new; pass FMT and AP to the ctor instead.
8431 * common/common-exceptions.h: Include <string>.
8432 (gdb_exception::gdb_exception(enum return_reason, enum errors,
8433 const char *, va_list)): New ctor. Use std::make_shared.
8434 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
8435 errors)): Delete.
8436 (gdb_exception_error::gdb_exception_error(enum errors, const char
8437 *, va_list)): New.
8438 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
8439 Add assertion.
8440 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
8441 errors)): Delete.
8442 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
8443 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
8444 Add assertion.
8445
eedc3f4f
TT
84462019-04-08 Tom Tromey <tom@tromey.com>
8447
8448 * valops.c (value_rtti_indirect_type): Replace throw_exception
8449 with throw.
8450 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
8451 with throw.
8452 * thread.c (thr_try_catch_cmd): Replace throw_exception with
8453 throw.
8454 * target.c (target_translate_tls_address): Replace throw_exception
8455 with throw.
8456 * stack.c (frame_apply_command_count): Replace throw_exception
8457 with throw.
8458 * solib-spu.c (append_ocl_sos): Replace throw_exception with
8459 throw.
8460 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
8461 with throw.
8462 * rs6000-tdep.c (rs6000_frame_cache)
8463 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
8464 * remote.c: Replace throw_exception with throw.
8465 * record-full.c (record_full_message, record_full_wait_1)
8466 (record_full_restore): Replace throw_exception with throw.
8467 * record-btrace.c:
8468 (get_thread_current_frame_id, record_btrace_start_replaying)
8469 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
8470 (cmd_record_btrace_start): Replace throw_exception with throw.
8471 * parse.c (parse_exp_in_context_1): Replace throw_exception with
8472 throw.
8473 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
8474 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
8475 * linespec.c:
8476 (find_linespec_symbols): Replace throw_exception with throw.
8477 * infrun.c (displaced_step_prepare, resume): Replace
8478 throw_exception with throw.
8479 * infcmd.c (post_create_inferior): Replace throw_exception with
8480 throw.
8481 * inf-loop.c (inferior_event_handler): Replace throw_exception
8482 with throw.
8483 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
8484 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
8485 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
8486 (get_prev_frame_always, get_frame_pc_if_available)
8487 (get_frame_address_in_block_if_available, get_frame_language):
8488 Replace throw_exception with throw.
8489 * frame-unwind.c (frame_unwind_try_unwinder): Replace
8490 throw_exception with throw.
8491 * eval.c (fetch_subexp_value, evaluate_var_value)
8492 (evaluate_funcall, evaluate_subexp_standard): Replace
8493 throw_exception with throw.
8494 * dwarf2loc.c (call_site_find_chain)
8495 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
8496 Replace throw_exception with throw.
8497 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
8498 with throw.
8499 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
8500 throw.
8501 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
8502 * completer.c (complete_line_internal): Replace throw_exception
8503 with throw.
8504 * compile/compile-object-run.c (compile_object_run): Replace
8505 throw_exception with throw.
8506 * cli/cli-script.c (process_next_line): Replace throw_exception
8507 with throw.
8508 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
8509 (btrace_enable, btrace_maint_update_pt_packets): Replace
8510 throw_exception with throw.
8511 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
8512 throw_exception with throw.
8513 * break-catch-throw.c (re_set_exception_catchpoint): Replace
8514 throw_exception with throw.
8515 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
8516 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
8517 * aarch64-tdep.c (aarch64_make_prologue_cache)
8518 (aarch64_make_stub_cache): Replace throw_exception with throw.
8519
26003a20
TT
85202019-04-08 Tom Tromey <tom@tromey.com>
8521
8522 * common/common-exceptions.c (throw_exception): Rename from
8523 throw_exception_cxx. Remove old copy. Make argument const.
8524 (throw_it): Create and throw exception objects directly.
8525 * common/common-exceptions.h (throw_exception): Make argument
8526 const.
8527 (struct gdb_exception_error): Add constructor.
8528 (struct gdb_exception_quit): Add constructor.
8529
d272eb37
TT
85302019-04-08 Tom Tromey <tom@tromey.com>
8531
8532 * common/common-exceptions.h (exception_rethrow): Don't declare.
8533 (TRY_SJLJ): Update comment.
8534 (TRY, CATCH, END_CATCH): Remove.
8535 * common/common-exceptions.c (exception_rethrow): Remove.
8536
230d2906
TT
85372019-04-08 Tom Tromey <tom@tromey.com>
8538
8539 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
8540 Remove.
8541 (gdb_exception_error): Rename from
8542 gdb_exception_RETURN_MASK_ERROR.
8543 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
8544 (gdb_quit_bad_alloc): Update.
8545 * aarch64-tdep.c: Update.
8546 * ada-lang.c: Update.
8547 * ada-typeprint.c: Update.
8548 * ada-valprint.c: Update.
8549 * amd64-tdep.c: Update.
8550 * arch-utils.c: Update.
8551 * break-catch-throw.c: Update.
8552 * breakpoint.c: Update.
8553 * btrace.c: Update.
8554 * c-varobj.c: Update.
8555 * cli/cli-cmds.c: Update.
8556 * cli/cli-interp.c: Update.
8557 * cli/cli-script.c: Update.
8558 * common/common-exceptions.c: Update.
8559 * common/new-op.c: Update.
8560 * common/selftest.c: Update.
8561 * compile/compile-c-symbols.c: Update.
8562 * compile/compile-cplus-symbols.c: Update.
8563 * compile/compile-object-load.c: Update.
8564 * compile/compile-object-run.c: Update.
8565 * completer.c: Update.
8566 * corelow.c: Update.
8567 * cp-abi.c: Update.
8568 * cp-support.c: Update.
8569 * cp-valprint.c: Update.
8570 * darwin-nat.c: Update.
8571 * disasm-selftests.c: Update.
8572 * dtrace-probe.c: Update.
8573 * dwarf-index-cache.c: Update.
8574 * dwarf-index-write.c: Update.
8575 * dwarf2-frame-tailcall.c: Update.
8576 * dwarf2-frame.c: Update.
8577 * dwarf2loc.c: Update.
8578 * dwarf2read.c: Update.
8579 * eval.c: Update.
8580 * event-loop.c: Update.
8581 * event-top.c: Update.
8582 * exec.c: Update.
8583 * f-valprint.c: Update.
8584 * fbsd-tdep.c: Update.
8585 * frame-unwind.c: Update.
8586 * frame.c: Update.
8587 * gdbtypes.c: Update.
8588 * gnu-v3-abi.c: Update.
8589 * guile/guile-internal.h: Update.
8590 * guile/scm-block.c: Update.
8591 * guile/scm-breakpoint.c: Update.
8592 * guile/scm-cmd.c: Update.
8593 * guile/scm-disasm.c: Update.
8594 * guile/scm-frame.c: Update.
8595 * guile/scm-lazy-string.c: Update.
8596 * guile/scm-math.c: Update.
8597 * guile/scm-param.c: Update.
8598 * guile/scm-ports.c: Update.
8599 * guile/scm-pretty-print.c: Update.
8600 * guile/scm-symbol.c: Update.
8601 * guile/scm-symtab.c: Update.
8602 * guile/scm-type.c: Update.
8603 * guile/scm-value.c: Update.
8604 * i386-linux-tdep.c: Update.
8605 * i386-tdep.c: Update.
8606 * inf-loop.c: Update.
8607 * infcall.c: Update.
8608 * infcmd.c: Update.
8609 * infrun.c: Update.
8610 * jit.c: Update.
8611 * language.c: Update.
8612 * linespec.c: Update.
8613 * linux-fork.c: Update.
8614 * linux-nat.c: Update.
8615 * linux-tdep.c: Update.
8616 * linux-thread-db.c: Update.
8617 * main.c: Update.
8618 * mi/mi-cmd-break.c: Update.
8619 * mi/mi-cmd-stack.c: Update.
8620 * mi/mi-interp.c: Update.
8621 * mi/mi-main.c: Update.
8622 * objc-lang.c: Update.
8623 * p-valprint.c: Update.
8624 * parse.c: Update.
8625 * ppc-linux-tdep.c: Update.
8626 * printcmd.c: Update.
8627 * python/py-arch.c: Update.
8628 * python/py-breakpoint.c: Update.
8629 * python/py-cmd.c: Update.
8630 * python/py-finishbreakpoint.c: Update.
8631 * python/py-frame.c: Update.
8632 * python/py-framefilter.c: Update.
8633 * python/py-gdb-readline.c: Update.
8634 * python/py-inferior.c: Update.
8635 * python/py-infthread.c: Update.
8636 * python/py-lazy-string.c: Update.
8637 * python/py-linetable.c: Update.
8638 * python/py-objfile.c: Update.
8639 * python/py-param.c: Update.
8640 * python/py-prettyprint.c: Update.
8641 * python/py-progspace.c: Update.
8642 * python/py-record-btrace.c: Update.
8643 * python/py-record.c: Update.
8644 * python/py-symbol.c: Update.
8645 * python/py-type.c: Update.
8646 * python/py-unwind.c: Update.
8647 * python/py-utils.c: Update.
8648 * python/py-value.c: Update.
8649 * python/python.c: Update.
8650 * record-btrace.c: Update.
8651 * record-full.c: Update.
8652 * remote-fileio.c: Update.
8653 * remote.c: Update.
8654 * riscv-tdep.c: Update.
8655 * rs6000-aix-tdep.c: Update.
8656 * rs6000-tdep.c: Update.
8657 * rust-exp.y: Update.
8658 * rust-lang.c: Update.
8659 * s390-tdep.c: Update.
8660 * selftest-arch.c: Update.
8661 * solib-dsbt.c: Update.
8662 * solib-frv.c: Update.
8663 * solib-spu.c: Update.
8664 * solib-svr4.c: Update.
8665 * solib.c: Update.
8666 * sparc64-linux-tdep.c: Update.
8667 * stack.c: Update.
8668 * symfile-mem.c: Update.
8669 * symmisc.c: Update.
8670 * target.c: Update.
8671 * thread.c: Update.
8672 * top.c: Update.
8673 * tracefile-tfile.c: Update.
8674 * tui/tui.c: Update.
8675 * typeprint.c: Update.
8676 * unittests/cli-utils-selftests.c: Update.
8677 * unittests/parse-connection-spec-selftests.c: Update.
8678 * valops.c: Update.
8679 * valprint.c: Update.
8680 * value.c: Update.
8681 * varobj.c: Update.
8682 * windows-nat.c: Update.
8683 * x86-linux-nat.c: Update.
8684 * xml-support.c: Update.
8685
a70b8144
TT
86862019-04-08 Tom Tromey <tom@tromey.com>
8687
8688 * xml-support.c: Use C++ exception handling.
8689 * x86-linux-nat.c: Use C++ exception handling.
8690 * windows-nat.c: Use C++ exception handling.
8691 * varobj.c: Use C++ exception handling.
8692 * value.c: Use C++ exception handling.
8693 * valprint.c: Use C++ exception handling.
8694 * valops.c: Use C++ exception handling.
8695 * unittests/parse-connection-spec-selftests.c: Use C++ exception
8696 handling.
8697 * unittests/cli-utils-selftests.c: Use C++ exception handling.
8698 * typeprint.c: Use C++ exception handling.
8699 * tui/tui.c: Use C++ exception handling.
8700 * tracefile-tfile.c: Use C++ exception handling.
8701 * top.c: Use C++ exception handling.
8702 * thread.c: Use C++ exception handling.
8703 * target.c: Use C++ exception handling.
8704 * symmisc.c: Use C++ exception handling.
8705 * symfile-mem.c: Use C++ exception handling.
8706 * stack.c: Use C++ exception handling.
8707 * sparc64-linux-tdep.c: Use C++ exception handling.
8708 * solib.c: Use C++ exception handling.
8709 * solib-svr4.c: Use C++ exception handling.
8710 * solib-spu.c: Use C++ exception handling.
8711 * solib-frv.c: Use C++ exception handling.
8712 * solib-dsbt.c: Use C++ exception handling.
8713 * selftest-arch.c: Use C++ exception handling.
8714 * s390-tdep.c: Use C++ exception handling.
8715 * rust-lang.c: Use C++ exception handling.
8716 * rust-exp.y: Use C++ exception handling.
8717 * rs6000-tdep.c: Use C++ exception handling.
8718 * rs6000-aix-tdep.c: Use C++ exception handling.
8719 * riscv-tdep.c: Use C++ exception handling.
8720 * remote.c: Use C++ exception handling.
8721 * remote-fileio.c: Use C++ exception handling.
8722 * record-full.c: Use C++ exception handling.
8723 * record-btrace.c: Use C++ exception handling.
8724 * python/python.c: Use C++ exception handling.
8725 * python/py-value.c: Use C++ exception handling.
8726 * python/py-utils.c: Use C++ exception handling.
8727 * python/py-unwind.c: Use C++ exception handling.
8728 * python/py-type.c: Use C++ exception handling.
8729 * python/py-symbol.c: Use C++ exception handling.
8730 * python/py-record.c: Use C++ exception handling.
8731 * python/py-record-btrace.c: Use C++ exception handling.
8732 * python/py-progspace.c: Use C++ exception handling.
8733 * python/py-prettyprint.c: Use C++ exception handling.
8734 * python/py-param.c: Use C++ exception handling.
8735 * python/py-objfile.c: Use C++ exception handling.
8736 * python/py-linetable.c: Use C++ exception handling.
8737 * python/py-lazy-string.c: Use C++ exception handling.
8738 * python/py-infthread.c: Use C++ exception handling.
8739 * python/py-inferior.c: Use C++ exception handling.
8740 * python/py-gdb-readline.c: Use C++ exception handling.
8741 * python/py-framefilter.c: Use C++ exception handling.
8742 * python/py-frame.c: Use C++ exception handling.
8743 * python/py-finishbreakpoint.c: Use C++ exception handling.
8744 * python/py-cmd.c: Use C++ exception handling.
8745 * python/py-breakpoint.c: Use C++ exception handling.
8746 * python/py-arch.c: Use C++ exception handling.
8747 * printcmd.c: Use C++ exception handling.
8748 * ppc-linux-tdep.c: Use C++ exception handling.
8749 * parse.c: Use C++ exception handling.
8750 * p-valprint.c: Use C++ exception handling.
8751 * objc-lang.c: Use C++ exception handling.
8752 * mi/mi-main.c: Use C++ exception handling.
8753 * mi/mi-interp.c: Use C++ exception handling.
8754 * mi/mi-cmd-stack.c: Use C++ exception handling.
8755 * mi/mi-cmd-break.c: Use C++ exception handling.
8756 * main.c: Use C++ exception handling.
8757 * linux-thread-db.c: Use C++ exception handling.
8758 * linux-tdep.c: Use C++ exception handling.
8759 * linux-nat.c: Use C++ exception handling.
8760 * linux-fork.c: Use C++ exception handling.
8761 * linespec.c: Use C++ exception handling.
8762 * language.c: Use C++ exception handling.
8763 * jit.c: Use C++ exception handling.
8764 * infrun.c: Use C++ exception handling.
8765 * infcmd.c: Use C++ exception handling.
8766 * infcall.c: Use C++ exception handling.
8767 * inf-loop.c: Use C++ exception handling.
8768 * i386-tdep.c: Use C++ exception handling.
8769 * i386-linux-tdep.c: Use C++ exception handling.
8770 * guile/scm-value.c: Use C++ exception handling.
8771 * guile/scm-type.c: Use C++ exception handling.
8772 * guile/scm-symtab.c: Use C++ exception handling.
8773 * guile/scm-symbol.c: Use C++ exception handling.
8774 * guile/scm-pretty-print.c: Use C++ exception handling.
8775 * guile/scm-ports.c: Use C++ exception handling.
8776 * guile/scm-param.c: Use C++ exception handling.
8777 * guile/scm-math.c: Use C++ exception handling.
8778 * guile/scm-lazy-string.c: Use C++ exception handling.
8779 * guile/scm-frame.c: Use C++ exception handling.
8780 * guile/scm-disasm.c: Use C++ exception handling.
8781 * guile/scm-cmd.c: Use C++ exception handling.
8782 * guile/scm-breakpoint.c: Use C++ exception handling.
8783 * guile/scm-block.c: Use C++ exception handling.
8784 * guile/guile-internal.h: Use C++ exception handling.
8785 * gnu-v3-abi.c: Use C++ exception handling.
8786 * gdbtypes.c: Use C++ exception handling.
8787 * frame.c: Use C++ exception handling.
8788 * frame-unwind.c: Use C++ exception handling.
8789 * fbsd-tdep.c: Use C++ exception handling.
8790 * f-valprint.c: Use C++ exception handling.
8791 * exec.c: Use C++ exception handling.
8792 * event-top.c: Use C++ exception handling.
8793 * event-loop.c: Use C++ exception handling.
8794 * eval.c: Use C++ exception handling.
8795 * dwarf2read.c: Use C++ exception handling.
8796 * dwarf2loc.c: Use C++ exception handling.
8797 * dwarf2-frame.c: Use C++ exception handling.
8798 * dwarf2-frame-tailcall.c: Use C++ exception handling.
8799 * dwarf-index-write.c: Use C++ exception handling.
8800 * dwarf-index-cache.c: Use C++ exception handling.
8801 * dtrace-probe.c: Use C++ exception handling.
8802 * disasm-selftests.c: Use C++ exception handling.
8803 * darwin-nat.c: Use C++ exception handling.
8804 * cp-valprint.c: Use C++ exception handling.
8805 * cp-support.c: Use C++ exception handling.
8806 * cp-abi.c: Use C++ exception handling.
8807 * corelow.c: Use C++ exception handling.
8808 * completer.c: Use C++ exception handling.
8809 * compile/compile-object-run.c: Use C++ exception handling.
8810 * compile/compile-object-load.c: Use C++ exception handling.
8811 * compile/compile-cplus-symbols.c: Use C++ exception handling.
8812 * compile/compile-c-symbols.c: Use C++ exception handling.
8813 * common/selftest.c: Use C++ exception handling.
8814 * common/new-op.c: Use C++ exception handling.
8815 * cli/cli-script.c: Use C++ exception handling.
8816 * cli/cli-interp.c: Use C++ exception handling.
8817 * cli/cli-cmds.c: Use C++ exception handling.
8818 * c-varobj.c: Use C++ exception handling.
8819 * btrace.c: Use C++ exception handling.
8820 * breakpoint.c: Use C++ exception handling.
8821 * break-catch-throw.c: Use C++ exception handling.
8822 * arch-utils.c: Use C++ exception handling.
8823 * amd64-tdep.c: Use C++ exception handling.
8824 * ada-valprint.c: Use C++ exception handling.
8825 * ada-typeprint.c: Use C++ exception handling.
8826 * ada-lang.c: Use C++ exception handling.
8827 * aarch64-tdep.c: Use C++ exception handling.
8828
3d6e9d23
TT
88292019-04-08 Tom Tromey <tom@tromey.com>
8830
8831 * xml-support.c (gdb_xml_parser::parse): Update.
8832 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8833 * value.c (show_convenience): Update.
8834 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
8835 (test_parse_flags_qcs): Update.
8836 * thread.c (thr_try_catch_cmd): Update.
8837 * target.c (target_translate_tls_address): Update.
8838 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
8839 (info_frame_command_core, frame_apply_command_count): Update.
8840 * rust-exp.y (rust_lex_exception_test): Update.
8841 * riscv-tdep.c (riscv_print_one_register_info): Update.
8842 * remote.c (remote_target::enable_btrace): Update.
8843 * record-btrace.c (record_btrace_enable_warn): Update.
8844 * python/py-utils.c (gdbpy_convert_exception): Update.
8845 * printcmd.c (do_one_display, print_variable_and_value): Update.
8846 * mi/mi-main.c (mi_print_exception): Update.
8847 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
8848 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
8849 * linux-nat.c (linux_nat_target::attach): Update.
8850 * linux-fork.c (class scoped_switch_fork_info): Update.
8851 * infrun.c (displaced_step_prepare): Update.
8852 * infcall.c (call_function_by_hand_dummy): Update.
8853 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
8854 * gnu-v3-abi.c (print_one_vtable): Update.
8855 * frame.c (get_prev_frame_always): Update.
8856 * f-valprint.c (info_common_command_for_block): Update.
8857 * exec.c (try_open_exec_file): Update.
8858 * exceptions.c (print_exception, exception_print)
8859 (exception_fprintf, exception_print_same): Update.
8860 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
8861 * dwarf-index-cache.c (index_cache::store)
8862 (index_cache::lookup_gdb_index): Update.
8863 * darwin-nat.c (maybe_cache_shell): Update.
8864 * cp-valprint.c (cp_print_value_fields): Update.
8865 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
8866 (gcc_cplus_symbol_address): Update.
8867 * compile/compile-c-symbols.c (gcc_convert_symbol)
8868 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
8869 * common/selftest.c: Update.
8870 * common/common-exceptions.h (struct gdb_exception) <message>: Now
8871 a std::string.
8872 (exception_try_scope_entry, exception_try_scope_exit): Don't
8873 declare.
8874 (struct exception_try_scope): Remove.
8875 (TRY): Don't use exception_try_scope.
8876 (struct gdb_exception): Add constructor, operator=.
8877 <what>: New method.
8878 (struct gdb_exception_RETURN_MASK_ALL)
8879 (struct gdb_exception_RETURN_MASK_ERROR)
8880 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
8881 (struct gdb_quit_bad_alloc): Update.
8882 * common/common-exceptions.c (exception_none): Change
8883 initializer.
8884 (struct catcher) <state, exception>: Initialize inline.
8885 <prev>: Remove member.
8886 (current_catcher): Remove.
8887 (catchers): New global.
8888 (exceptions_state_mc_init): Simplify.
8889 (catcher_pop): Remove.
8890 (exceptions_state_mc, exceptions_state_mc_catch): Update.
8891 (try_scope_depth, exception_try_scope_entry)
8892 (exception_try_scope_exit): Remove.
8893 (throw_exception_sjlj): Update.
8894 (exception_messages, exception_messages_size): Remove.
8895 (throw_it): Simplify.
8896 (gdb_exception_sliced_copy): Remove.
8897 (throw_exception_cxx): Update.
8898 * cli/cli-script.c (script_from_file): Update.
8899 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
8900 Update.
8901 * ada-valprint.c (ada_val_print): Update.
8902 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
8903 (create_excep_cond_exprs): Update.
8904
c5c10118
TT
89052019-04-08 Tom Tromey <tom@tromey.com>
8906
8907 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
8908 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
8909 (TRY, CATCH, END_CATCH): Remove some definitions.
8910 * common/common-exceptions.c: Don't use GDB_XCPT.
8911 (catcher_list_size): Remove.
8912 (throw_exception, throw_it): Simplify.
8913
4de283e4
TT
89142019-04-05 Tom Tromey <tom@tromey.com>
8915
8916 Revert the header-sorting patch.
8917 * ft32-tdep.c: Revert.
8918 * frv-tdep.c: Revert.
8919 * frv-linux-tdep.c: Revert.
8920 * frame.c: Revert.
8921 * frame-unwind.c: Revert.
8922 * frame-base.c: Revert.
8923 * fork-child.c: Revert.
8924 * findvar.c: Revert.
8925 * findcmd.c: Revert.
8926 * filesystem.c: Revert.
8927 * filename-seen-cache.h: Revert.
8928 * filename-seen-cache.c: Revert.
8929 * fbsd-tdep.c: Revert.
8930 * fbsd-nat.h: Revert.
8931 * fbsd-nat.c: Revert.
8932 * f-valprint.c: Revert.
8933 * f-typeprint.c: Revert.
8934 * f-lang.c: Revert.
8935 * extension.h: Revert.
8936 * extension.c: Revert.
8937 * extension-priv.h: Revert.
8938 * expprint.c: Revert.
8939 * exec.h: Revert.
8940 * exec.c: Revert.
8941 * exceptions.c: Revert.
8942 * event-top.c: Revert.
8943 * event-loop.c: Revert.
8944 * eval.c: Revert.
8945 * elfread.c: Revert.
8946 * dwarf2read.h: Revert.
8947 * dwarf2read.c: Revert.
8948 * dwarf2loc.c: Revert.
8949 * dwarf2expr.h: Revert.
8950 * dwarf2expr.c: Revert.
8951 * dwarf2-frame.c: Revert.
8952 * dwarf2-frame-tailcall.c: Revert.
8953 * dwarf-index-write.h: Revert.
8954 * dwarf-index-write.c: Revert.
8955 * dwarf-index-common.c: Revert.
8956 * dwarf-index-cache.h: Revert.
8957 * dwarf-index-cache.c: Revert.
8958 * dummy-frame.c: Revert.
8959 * dtrace-probe.c: Revert.
8960 * disasm.h: Revert.
8961 * disasm.c: Revert.
8962 * disasm-selftests.c: Revert.
8963 * dictionary.c: Revert.
8964 * dicos-tdep.c: Revert.
8965 * demangle.c: Revert.
8966 * dcache.h: Revert.
8967 * dcache.c: Revert.
8968 * darwin-nat.h: Revert.
8969 * darwin-nat.c: Revert.
8970 * darwin-nat-info.c: Revert.
8971 * d-valprint.c: Revert.
8972 * d-namespace.c: Revert.
8973 * d-lang.c: Revert.
8974 * ctf.c: Revert.
8975 * csky-tdep.c: Revert.
8976 * csky-linux-tdep.c: Revert.
8977 * cris-tdep.c: Revert.
8978 * cris-linux-tdep.c: Revert.
8979 * cp-valprint.c: Revert.
8980 * cp-support.c: Revert.
8981 * cp-namespace.c: Revert.
8982 * cp-abi.c: Revert.
8983 * corelow.c: Revert.
8984 * corefile.c: Revert.
8985 * continuations.c: Revert.
8986 * completer.h: Revert.
8987 * completer.c: Revert.
8988 * complaints.c: Revert.
8989 * coffread.c: Revert.
8990 * coff-pe-read.c: Revert.
8991 * cli-out.h: Revert.
8992 * cli-out.c: Revert.
8993 * charset.c: Revert.
8994 * c-varobj.c: Revert.
8995 * c-valprint.c: Revert.
8996 * c-typeprint.c: Revert.
8997 * c-lang.c: Revert.
8998 * buildsym.c: Revert.
8999 * buildsym-legacy.c: Revert.
9000 * build-id.h: Revert.
9001 * build-id.c: Revert.
9002 * btrace.c: Revert.
9003 * bsd-uthread.c: Revert.
9004 * breakpoint.h: Revert.
9005 * breakpoint.c: Revert.
9006 * break-catch-throw.c: Revert.
9007 * break-catch-syscall.c: Revert.
9008 * break-catch-sig.c: Revert.
9009 * blockframe.c: Revert.
9010 * block.c: Revert.
9011 * bfin-tdep.c: Revert.
9012 * bfin-linux-tdep.c: Revert.
9013 * bfd-target.c: Revert.
9014 * bcache.c: Revert.
9015 * ax-general.c: Revert.
9016 * ax-gdb.h: Revert.
9017 * ax-gdb.c: Revert.
9018 * avr-tdep.c: Revert.
9019 * auxv.c: Revert.
9020 * auto-load.c: Revert.
9021 * arm-wince-tdep.c: Revert.
9022 * arm-tdep.c: Revert.
9023 * arm-symbian-tdep.c: Revert.
9024 * arm-pikeos-tdep.c: Revert.
9025 * arm-obsd-tdep.c: Revert.
9026 * arm-nbsd-tdep.c: Revert.
9027 * arm-nbsd-nat.c: Revert.
9028 * arm-linux-tdep.c: Revert.
9029 * arm-linux-nat.c: Revert.
9030 * arm-fbsd-tdep.c: Revert.
9031 * arm-fbsd-nat.c: Revert.
9032 * arm-bsd-tdep.c: Revert.
9033 * arch-utils.c: Revert.
9034 * arc-tdep.c: Revert.
9035 * arc-newlib-tdep.c: Revert.
9036 * annotate.h: Revert.
9037 * annotate.c: Revert.
9038 * amd64-windows-tdep.c: Revert.
9039 * amd64-windows-nat.c: Revert.
9040 * amd64-tdep.c: Revert.
9041 * amd64-sol2-tdep.c: Revert.
9042 * amd64-obsd-tdep.c: Revert.
9043 * amd64-obsd-nat.c: Revert.
9044 * amd64-nbsd-tdep.c: Revert.
9045 * amd64-nbsd-nat.c: Revert.
9046 * amd64-nat.c: Revert.
9047 * amd64-linux-tdep.c: Revert.
9048 * amd64-linux-nat.c: Revert.
9049 * amd64-fbsd-tdep.c: Revert.
9050 * amd64-fbsd-nat.c: Revert.
9051 * amd64-dicos-tdep.c: Revert.
9052 * amd64-darwin-tdep.c: Revert.
9053 * amd64-bsd-nat.c: Revert.
9054 * alpha-tdep.c: Revert.
9055 * alpha-obsd-tdep.c: Revert.
9056 * alpha-nbsd-tdep.c: Revert.
9057 * alpha-mdebug-tdep.c: Revert.
9058 * alpha-linux-tdep.c: Revert.
9059 * alpha-linux-nat.c: Revert.
9060 * alpha-bsd-tdep.c: Revert.
9061 * alpha-bsd-nat.c: Revert.
9062 * aix-thread.c: Revert.
9063 * agent.c: Revert.
9064 * addrmap.c: Revert.
9065 * ada-varobj.c: Revert.
9066 * ada-valprint.c: Revert.
9067 * ada-typeprint.c: Revert.
9068 * ada-tasks.c: Revert.
9069 * ada-lang.c: Revert.
9070 * aarch64-tdep.c: Revert.
9071 * aarch64-ravenscar-thread.c: Revert.
9072 * aarch64-newlib-tdep.c: Revert.
9073 * aarch64-linux-tdep.c: Revert.
9074 * aarch64-linux-nat.c: Revert.
9075 * aarch64-fbsd-tdep.c: Revert.
9076 * aarch64-fbsd-nat.c: Revert.
9077 * aarch32-linux-nat.c: Revert.
9078
d55e5aa6
TT
90792019-04-05 Tom Tromey <tom@tromey.com>
9080
9081 * ft32-tdep.c: Sort headers.
9082 * frv-tdep.c: Sort headers.
9083 * frv-linux-tdep.c: Sort headers.
9084 * frame.c: Sort headers.
9085 * frame-unwind.c: Sort headers.
9086 * frame-base.c: Sort headers.
9087 * fork-child.c: Sort headers.
9088 * findvar.c: Sort headers.
9089 * findcmd.c: Sort headers.
9090 * filesystem.c: Sort headers.
9091 * filename-seen-cache.h: Sort headers.
9092 * filename-seen-cache.c: Sort headers.
9093 * fbsd-tdep.c: Sort headers.
9094 * fbsd-nat.h: Sort headers.
9095 * fbsd-nat.c: Sort headers.
9096 * f-valprint.c: Sort headers.
9097 * f-typeprint.c: Sort headers.
9098 * f-lang.c: Sort headers.
9099 * extension.h: Sort headers.
9100 * extension.c: Sort headers.
9101 * extension-priv.h: Sort headers.
9102 * expprint.c: Sort headers.
9103 * exec.h: Sort headers.
9104 * exec.c: Sort headers.
9105 * exceptions.c: Sort headers.
9106 * event-top.c: Sort headers.
9107 * event-loop.c: Sort headers.
9108 * eval.c: Sort headers.
9109 * elfread.c: Sort headers.
9110 * dwarf2read.h: Sort headers.
9111 * dwarf2read.c: Sort headers.
9112 * dwarf2loc.c: Sort headers.
9113 * dwarf2expr.h: Sort headers.
9114 * dwarf2expr.c: Sort headers.
9115 * dwarf2-frame.c: Sort headers.
9116 * dwarf2-frame-tailcall.c: Sort headers.
9117 * dwarf-index-write.h: Sort headers.
9118 * dwarf-index-write.c: Sort headers.
9119 * dwarf-index-common.c: Sort headers.
9120 * dwarf-index-cache.h: Sort headers.
9121 * dwarf-index-cache.c: Sort headers.
9122 * dummy-frame.c: Sort headers.
9123 * dtrace-probe.c: Sort headers.
9124 * disasm.h: Sort headers.
9125 * disasm.c: Sort headers.
9126 * disasm-selftests.c: Sort headers.
9127 * dictionary.c: Sort headers.
9128 * dicos-tdep.c: Sort headers.
9129 * demangle.c: Sort headers.
9130 * dcache.h: Sort headers.
9131 * dcache.c: Sort headers.
9132 * darwin-nat.h: Sort headers.
9133 * darwin-nat.c: Sort headers.
9134 * darwin-nat-info.c: Sort headers.
9135 * d-valprint.c: Sort headers.
9136 * d-namespace.c: Sort headers.
9137 * d-lang.c: Sort headers.
9138 * ctf.c: Sort headers.
9139 * csky-tdep.c: Sort headers.
9140 * csky-linux-tdep.c: Sort headers.
9141 * cris-tdep.c: Sort headers.
9142 * cris-linux-tdep.c: Sort headers.
9143 * cp-valprint.c: Sort headers.
9144 * cp-support.c: Sort headers.
9145 * cp-namespace.c: Sort headers.
9146 * cp-abi.c: Sort headers.
9147 * corelow.c: Sort headers.
9148 * corefile.c: Sort headers.
9149 * continuations.c: Sort headers.
9150 * completer.h: Sort headers.
9151 * completer.c: Sort headers.
9152 * complaints.c: Sort headers.
9153 * coffread.c: Sort headers.
9154 * coff-pe-read.c: Sort headers.
9155 * cli-out.h: Sort headers.
9156 * cli-out.c: Sort headers.
9157 * charset.c: Sort headers.
9158 * c-varobj.c: Sort headers.
9159 * c-valprint.c: Sort headers.
9160 * c-typeprint.c: Sort headers.
9161 * c-lang.c: Sort headers.
9162 * buildsym.c: Sort headers.
9163 * buildsym-legacy.c: Sort headers.
9164 * build-id.h: Sort headers.
9165 * build-id.c: Sort headers.
9166 * btrace.c: Sort headers.
9167 * bsd-uthread.c: Sort headers.
9168 * breakpoint.h: Sort headers.
9169 * breakpoint.c: Sort headers.
9170 * break-catch-throw.c: Sort headers.
9171 * break-catch-syscall.c: Sort headers.
9172 * break-catch-sig.c: Sort headers.
9173 * blockframe.c: Sort headers.
9174 * block.c: Sort headers.
9175 * bfin-tdep.c: Sort headers.
9176 * bfin-linux-tdep.c: Sort headers.
9177 * bfd-target.c: Sort headers.
9178 * bcache.c: Sort headers.
9179 * ax-general.c: Sort headers.
9180 * ax-gdb.h: Sort headers.
9181 * ax-gdb.c: Sort headers.
9182 * avr-tdep.c: Sort headers.
9183 * auxv.c: Sort headers.
9184 * auto-load.c: Sort headers.
9185 * arm-wince-tdep.c: Sort headers.
9186 * arm-tdep.c: Sort headers.
9187 * arm-symbian-tdep.c: Sort headers.
9188 * arm-pikeos-tdep.c: Sort headers.
9189 * arm-obsd-tdep.c: Sort headers.
9190 * arm-nbsd-tdep.c: Sort headers.
9191 * arm-nbsd-nat.c: Sort headers.
9192 * arm-linux-tdep.c: Sort headers.
9193 * arm-linux-nat.c: Sort headers.
9194 * arm-fbsd-tdep.c: Sort headers.
9195 * arm-fbsd-nat.c: Sort headers.
9196 * arm-bsd-tdep.c: Sort headers.
9197 * arch-utils.c: Sort headers.
9198 * arc-tdep.c: Sort headers.
9199 * arc-newlib-tdep.c: Sort headers.
9200 * annotate.h: Sort headers.
9201 * annotate.c: Sort headers.
9202 * amd64-windows-tdep.c: Sort headers.
9203 * amd64-windows-nat.c: Sort headers.
9204 * amd64-tdep.c: Sort headers.
9205 * amd64-sol2-tdep.c: Sort headers.
9206 * amd64-obsd-tdep.c: Sort headers.
9207 * amd64-obsd-nat.c: Sort headers.
9208 * amd64-nbsd-tdep.c: Sort headers.
9209 * amd64-nbsd-nat.c: Sort headers.
9210 * amd64-nat.c: Sort headers.
9211 * amd64-linux-tdep.c: Sort headers.
9212 * amd64-linux-nat.c: Sort headers.
9213 * amd64-fbsd-tdep.c: Sort headers.
9214 * amd64-fbsd-nat.c: Sort headers.
9215 * amd64-dicos-tdep.c: Sort headers.
9216 * amd64-darwin-tdep.c: Sort headers.
9217 * amd64-bsd-nat.c: Sort headers.
9218 * alpha-tdep.c: Sort headers.
9219 * alpha-obsd-tdep.c: Sort headers.
9220 * alpha-nbsd-tdep.c: Sort headers.
9221 * alpha-mdebug-tdep.c: Sort headers.
9222 * alpha-linux-tdep.c: Sort headers.
9223 * alpha-linux-nat.c: Sort headers.
9224 * alpha-bsd-tdep.c: Sort headers.
9225 * alpha-bsd-nat.c: Sort headers.
9226 * aix-thread.c: Sort headers.
9227 * agent.c: Sort headers.
9228 * addrmap.c: Sort headers.
9229 * ada-varobj.c: Sort headers.
9230 * ada-valprint.c: Sort headers.
9231 * ada-typeprint.c: Sort headers.
9232 * ada-tasks.c: Sort headers.
9233 * ada-lang.c: Sort headers.
9234 * aarch64-tdep.c: Sort headers.
9235 * aarch64-ravenscar-thread.c: Sort headers.
9236 * aarch64-newlib-tdep.c: Sort headers.
9237 * aarch64-linux-tdep.c: Sort headers.
9238 * aarch64-linux-nat.c: Sort headers.
9239 * aarch64-fbsd-tdep.c: Sort headers.
9240 * aarch64-fbsd-nat.c: Sort headers.
9241 * aarch32-linux-nat.c: Sort headers.
9242
699bd4cf
TT
92432019-04-04 Tom Tromey <tom@tromey.com>
9244
9245 * varobj.c (varobj_create): Update.
9246 * rust-exp.y (struct rust_parser) <update_innermost_block,
9247 lookup_symbol>: New methods.
9248 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
9249 Rename.
9250 (rust_parser::rust_lookup_type)
9251 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9252 * printcmd.c (display_command, do_one_display): Update.
9253 * parser-defs.h (struct parser_state) <parser_state>: Add
9254 "tracker" parameter.
9255 (block_tracker): New member.
9256 (class innermost_block_tracker) <innermost_block_tracker>: Add
9257 "types" parameter.
9258 <reset>: Remove method.
9259 (innermost_block): Don't declare.
9260 (null_post_parser): Update.
9261 * parse.c (innermost_block): Remove global.
9262 (write_dollar_variable): Update.
9263 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
9264 Remove "tracker_types" parameter.
9265 (parse_expression): Add "tracker" parameter.
9266 (parse_expression_for_completion): Update.
9267 (null_post_parser): Add "tracker" parameter.
9268 * p-exp.y: Update rules.
9269 * m2-exp.y: Update rules.
9270 * language.h (struct language_defn) <la_post_parser>: Add
9271 "tracker" parameter.
9272 * go-exp.y: Update rules.
9273 * f-exp.y: Update rules.
9274 * expression.h (parse_expression, parse_exp_1): Add "tracker"
9275 parameter.
9276 * d-exp.y: Update rules.
9277 * c-exp.y: Update rules.
9278 * breakpoint.c (set_breakpoint_condition): Create an
9279 innermost_block_tracker.
9280 (watch_command_1): Likewise.
9281 * ada-lang.c (resolve): Add "tracker" parameter.
9282 (resolve_subexp): Likewise.
9283 * ada-exp.y (write_var_from_sym): Update.
9284
dac43e32
TT
92852019-04-04 Tom Tromey <tom@tromey.com>
9286
9287 * type-stack.h: New file.
9288 * type-stack.c: New file.
9289 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
9290 type-stack.h.
9291 (insert_into_type_stack, insert_type, push_type, push_type_int)
9292 (insert_type_address_space, pop_type, pop_type_int)
9293 (pop_typelist, pop_type_stack, append_type_stack)
9294 (push_type_stack, get_type_stack, push_typelist)
9295 (follow_type_instance_flags, follow_types): Don't declare.
9296 * parse.c (type_stack): Remove global.
9297 (parse_exp_in_context): Update.
9298 (insert_into_type_stack, insert_type, push_type, push_type_int)
9299 (insert_type_address_space, pop_type, pop_type_int)
9300 (pop_typelist, pop_type_stack, append_type_stack)
9301 (push_type_stack, get_type_stack, push_typelist)
9302 (follow_type_instance_flags, follow_types): Remove (moved to
9303 type-stack.c).
9304 * f-exp.y (type_stack): New global.
9305 Update rules.
9306 (push_kind_type, f_parse): Update.
9307 * d-exp.y (type_stack): New global.
9308 Update rules.
9309 (d_parse): Update.
9310 * c-exp.y (struct c_parse_state) <type_stack>: New member.
9311 Update rules.
9312 * Makefile.in (COMMON_SFILES): Add type-stack.c.
9313 (HFILES_NO_SRCDIR): Add type-stack.h.
9314
2a612529
TT
93152019-04-04 Tom Tromey <tom@tromey.com>
9316
9317 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
9318 (rust_parser::convert_ast_to_expression, rust_parse)
9319 (rust_lex_test_completion, rust_lex_tests): Update.
9320 * parser-defs.h (struct expr_completion_state): New.
9321 (struct parser_state) <parser_state>: Add completion parameter.
9322 <mark_struct_expression, mark_completion_tag>: New methods.
9323 <parse_completion, m_completion_state>: New members.
9324 (prefixify_expression, null_post_parser): Update.
9325 (mark_struct_expression, mark_completion_tag): Don't declare.
9326 * parse.c (parse_completion, expout_last_struct)
9327 (expout_tag_completion_type, expout_completion_name): Remove
9328 globals.
9329 (parser_state::mark_struct_expression)
9330 (parser_state::mark_completion_tag): Now methods.
9331 (prefixify_expression): Add last_struct parameter.
9332 (prefixify_subexp): Likewise.
9333 (parse_exp_1): Update.
9334 (parse_exp_in_context): Add cstate parameter. Update.
9335 (parse_expression_for_completion): Create an
9336 expr_completion_state.
9337 (null_post_parser): Add "completion" parameter.
9338 * p-exp.y: Update rules.
9339 (yylex): Update.
9340 * language.h (struct language_defn) <la_post_parser>: Add
9341 "completing" parameter.
9342 * go-exp.y: Update rules.
9343 (lex_one_token): Update.
9344 * expression.h (parse_completion): Don't declare.
9345 * d-exp.y: Update rules.
9346 (lex_one_token): Update rules.
9347 * c-exp.y: Update rules.
9348 (lex_one_token): Update.
9349 * ada-lang.c (resolve): Add "parse_completion" parameter.
9350 (resolve_subexp): Likewise.
9351 (ada_resolve_function): Likewise.
9352
43476f0b
TT
93532019-04-04 Tom Tromey <tom@tromey.com>
9354
9355 * parser-defs.h (struct parser_state) <start_arglist,
9356 end_arglist>: New methods.
9357 <arglist_len, m_funcall_chain>: New members.
9358 (arglist_len, start_arglist, end_arglist): Don't declare.
9359 * parse.c (arglist_len, funcall_chain): Remove global.
9360 (start_arglist, end_arglist): Remove functions.
9361 (parse_exp_in_context): Update.
9362 * p-exp.y: Update rules.
9363 * m2-exp.y: Update rules.
9364 * go-exp.y: Update rules.
9365 * f-exp.y: Update rules.
9366 * d-exp.y: Update rules.
9367 * c-exp.y: Update rules.
9368
5776fca3
TT
93692019-04-04 Tom Tromey <tom@tromey.com>
9370
9371 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
9372 lex_operator, push_back>: New methods.
9373 Update all rules.
9374 (rust_parser::lex_hex, lex_escape): Rename and update.
9375 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
9376 (rust_parser::lex_operator): Rename and update.
9377 (rust_parser::lex_number, rustyylex, rustyyerror)
9378 (rust_lex_test_init, rust_lex_test_sequence)
9379 (rust_lex_test_push_back, rust_lex_tests): Update.
9380 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
9381 parameter.
9382 <lexptr, prev_lexptr>: New members.
9383 (lexptr, prev_lexptr): Don't declare.
9384 * parse.c (lexptr, prev_lexptr): Remove globals.
9385 (parse_exp_in_context): Update.
9386 * p-exp.y (yylex, yyerror): Update.
9387 * m2-exp.y (parse_number, yylex, yyerror): Update.
9388 * go-exp.y (lex_one_token, yyerror): Update.
9389 * f-exp.y (match_string_literal, yylex, yyerror): Update.
9390 * d-exp.y (lex_one_token, yyerror): Update.
9391 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
9392 (lex_one_token, yyerror): Update.
9393 * ada-lex.l (YY_INPUT): Update.
9394 (rewind_to_char): Update.
9395 * ada-exp.y (yyerror): Update.
9396
8621b685
TT
93972019-04-04 Tom Tromey <tom@tromey.com>
9398
9399 * rust-exp.y (rustyylex, rust_lex_tests): Update.
9400 * parser-defs.h (struct parser_state) <parser_state>: Add new
9401 parameter.
9402 <comma_terminates>: New member.
9403 (comma_terminates): Don't declare global.
9404 * parse.c (comma_terminates): Remove global.
9405 (parse_exp_in_context): Update.
9406 * p-exp.y (yylex): Update.
9407 * m2-exp.y (yylex): Update.
9408 * go-exp.y (lex_one_token): Update.
9409 * f-exp.y (yylex): Update.
9410 * d-exp.y (lex_one_token): Update.
9411 * c-exp.y (lex_one_token): Update.
9412 * ada-lex.l: Update.
9413
28aaf3fd
TT
94142019-04-04 Tom Tromey <tom@tromey.com>
9415
9416 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
9417 (rustyylex, rust_lex_test_init, rust_lex_test_one)
9418 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
9419 * parser-defs.h (paren_depth): Don't declare.
9420 * parse.c (paren_depth): Remove global.
9421 (parse_exp_in_context): Update.
9422 * p-exp.y (paren_depth): New global.
9423 (pascal_parse): Initialize it.
9424 * m2-exp.y (paren_depth): New global.
9425 (m2_parse): Initialize it.
9426 * go-exp.y (paren_depth): New global.
9427 (go_parse): Initialize it.
9428 * f-exp.y (paren_depth): New global.
9429 (f_parse): Initialize it.
9430 * d-exp.y (paren_depth): New global.
9431 (d_parse): Initialize it.
9432 * c-exp.y (paren_depth): New global.
9433 (c_parse): Initialize it.
9434 * ada-lex.l (paren_depth): New global.
9435 (lexer_init): Initialize it.
9436
1e58a4a4
TT
94372019-04-04 Tom Tromey <tom@tromey.com>
9438
9439 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
9440 (rust_parser::convert_ast_to_type)
9441 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9442 * parser-defs.h (struct parser_state) <parser_state>: Add
9443 parameters. Initialize new members.
9444 <expression_context_block, expression_context_pc>: New members.
9445 * parse.c (expression_context_block, expression_context_pc):
9446 Remove globals.
9447 (parse_exp_in_context): Update.
9448 * p-exp.y: Update all rules.
9449 (yylex): Update.
9450 * m2-exp.y: Update all rules.
9451 (yylex): Update.
9452 * go-exp.y (yylex): Update.
9453 * f-exp.y (yylex): Update.
9454 * d-exp.y: Update all rules.
9455 (yylex): Update.
9456 * c-exp.y: Update all rules.
9457 (lex_one_token, classify_name, yylex, c_parse): Update.
9458 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
9459
37eedb39
TT
94602019-04-04 Tom Tromey <tom@tromey.com>
9461
9462 * gdbarch.h, gdbarch.c: Rebuild.
9463 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
9464 * stap-probe.h:
9465 (struct stap_parse_info): Replace "parser_state" with
9466 "expr_builder".
9467 * parser-defs.h (struct expr_builder): Rename from "parser_state".
9468 (parser_state): New class.
9469 * parse.c (expr_builder): Rename.
9470 (expr_builder::release): Rename.
9471 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
9472 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
9473 (write_exp_elt_longcst, write_exp_elt_floatcst)
9474 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
9475 (write_exp_string_vector, write_exp_bitstring)
9476 (write_exp_msymbol, mark_struct_expression)
9477 (write_dollar_variable)
9478 (insert_type_address_space, increase_expout_size): Replace
9479 "parser_state" with "expr_builder".
9480 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
9481 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
9482 "parser_state" with "expr_builder".
9483
73923d7e
TT
94842019-04-04 Tom Tromey <tom@tromey.com>
9485
9486 * rust-exp.y: Replace "parse_language" with method call.
9487 * p-exp.y:
9488 (yylex): Replace "parse_language" with method call.
9489 * m2-exp.y:
9490 (yylex): Replace "parse_language" with method call.
9491 * go-exp.y (classify_name): Replace "parse_language" with method
9492 call.
9493 * f-exp.y (yylex): Replace "parse_language" with method call.
9494 * d-exp.y (lex_one_token): Replace "parse_language" with method
9495 call.
9496 * c-exp.y:
9497 (lex_one_token, classify_name, yylex): Replace "parse_language"
9498 with method call.
9499 * ada-exp.y (find_primitive_type, type_char)
9500 (type_system_address): Replace "parse_language" with method call.
9501
fa9f5be6
TT
95022019-04-04 Tom Tromey <tom@tromey.com>
9503
9504 * rust-exp.y: Replace "parse_gdbarch" with method call.
9505 * parse.c (write_dollar_variable, insert_type_address_space):
9506 Replace "parse_gdbarch" with method call.
9507 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
9508 call.
9509 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
9510 call.
9511 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
9512 "parse_gdbarch" with method call.
9513 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
9514 with method call.
9515 * f-exp.y (parse_type, parse_f_type, yylex): Replace
9516 "parse_gdbarch" with method call.
9517 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
9518 "parse_gdbarch" with method call.
9519 * c-exp.y (parse_type, parse_number, classify_name): Replace
9520 "parse_gdbarch" with method call.
9521 * ada-lex.l: Replace "parse_gdbarch" with method call.
9522 * ada-exp.y (parse_type, find_primitive_type, type_char)
9523 (type_system_address): Replace "parse_gdbarch" with method call.
9524
1201a264
TT
95252019-04-04 Tom Tromey <tom@tromey.com>
9526
9527 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
9528 * stap-probe.c (stap_parse_argument): Update.
9529 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
9530 initial_size parameter.
9531 * rust-exp.y (rust_lex_tests): Update.
9532 * parse.c (parser_state): Update.
9533 (parse_exp_in_context): Update.
9534 * parser-defs.h (struct parser_state) <parser_state>: Remove
9535 "initial_size" parameter.
9536
e3980ce2
TT
95372019-04-04 Tom Tromey <tom@tromey.com>
9538
9539 * parser-defs.h (increase_expout_size): Don't declare.
9540 * parse.c (increase_expout_size): Now static.
9541
e9f8e3f1
TS
95422019-04-04 Thomas Schwinge <thomas@codesourcery.com>
9543
9544 * gnu-nat.c (gnu_nat_target::wait): Fix
9545 target_waitstatus_to_string call.
9546
d7df6549
AB
95472019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9548
9549 * eval.c (evaluate_subexp_standard): Handle internal functions
9550 during Fortran function call handling.
9551
8bdc1658
AB
95522019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9553
9554 * NEWS: Mention new internal functions.
9555 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
9556 (read_base_type): Use dwarf2_init_complex_target_type.
9557 * value.c (creal_internal_fn): New function.
9558 (cimag_internal_fn): New function.
9559 (_initialize_values): Register new internal functions.
9560
c29705b7
PW
95612019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9562
9563 * infrun.c (stop_all_threads): If debug_infrun, always
9564 trace the wait status after wait_one, using
9565 target_waitstatus_to_string and target_pid_to_str.
9566 (handle_inferior_event): Replace various trace of
9567 wait status kind by a single trace.
9568 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
9569 wait status kind image by target_waitstatus_to_string.
9570 * target/waitstatus.c (target_waitstatus_to_string): Fix
9571 obsolete comment.
9572
05caa1d2
TT
95732019-04-01 Tom Tromey <tromey@adacore.com>
9574
9575 PR symtab/23331:
9576 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
9577
9d1447e0
SDJ
95782019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
9579 Pedro Alves <palves@redhat.com>
9580
9581 * top.c (quit_force): Call 'finalize_values'.
9582 * value.c (finalize_values): New function.
9583 * value.h (finalize_values): Declare.
9584
7734102d
EZ
95852019-03-30 Eli Zaretskii <eliz@gnu.org>
9586
9587 * NEWS: Announce $_gdb_major and $_gdb_minor.
9588
9589 * top.c (init_gdb_version_vars): New function.
9590 (gdb_init): Call init_gdb_version_vars.
9591
188e1fa9
TT
95922019-03-29 Tom Tromey <tromey@adacore.com>
9593
9594 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
9595 help text. Remove dead code.
9596
2880242d
KS
95972019-03-29 Keith Seitz <keiths@redhat.com>
9598
9599 From Siddhesh Poyarekar:
9600 * f-lang.h (f77_get_upperbound): Return LONGEST.
9601 (f77_get_lowerbound): Likewise.
9602 * f-typeprint.c (f_type_print_varspec_suffix): Expand
9603 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
9604 print them.
9605 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
9606 plongest to format print it.
9607 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
9608 (f77_get_upperbound): Likewise.
9609 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
9610 LOWER_BOUND to LONGEST.
9611 (f77_create_arrayprint_offset_tbl): Likewise.
9612
cc1defb1
KS
96132019-03-29 Keith Seitz <keiths@redhat.com>
9614
9615 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
9616 %s/pulongest for TYPE_LENGTH instead of %d in format
9617 strings.
9618 * ada-typerint.c (ada_print_type): Likewise.
9619 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
9620 * compile/compile-c-support.c (generate_register_struct): Likewise.
9621 * gdbtypes.c (recursive_dump_type): Likewise.
9622 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
9623 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
9624 instead of %d in format strings.
9625 * riscv-tdep.c (riscv_type_alignment): Cast second argument
9626 to std::min to ULONGEST.
9627 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
9628 instead of %d in format strings.
9629 * tracepoint.c (info_scope_command): Likewise.
9630 * typeprint.c (print_offset_data::update)
9631 (print_offset_data::finish): Likewise.
9632 * xtensa-tdep.c (xtensa_store_return_value)
9633 (xtensa_push_dummy_call): Likewise.
9634
e432ccf1
JT
96352019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
9636
9637 * windows-nat.c (display_selector): Fixed format specifications
9638 for 64-bit Cygwin.
9639
65d2b333
PW
96402019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9641
9642 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
9643
f489207e
SL
96442019-03-28 Sandra Loosemore <sandra@codesourcery.com>
9645
9646 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
9647 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
9648 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
9649 (nios2_linux_init_abi): Install it.
9650
bffa1015
AH
96512019-03-28 Alan Hayward <alan.hayward@arm.com>
9652
9653 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
9654
fc96163a
AH
96552019-03-28 Alan Hayward <alan.hayward@arm.com>
9656
9657 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
9658
20dc7e9b
PW
96592019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9660 Tom Tromey <tromey@adacore.com>
9661
9662 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
9663
7f5331a8
JB
96642019-03-26 Joel Brobecker <brobecker@adacore.com>
9665
9666 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
9667 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
9668 method to compute the bounds of range types. Also print "[evaluated]"
9669 if the bounds' values come from a dynamic evaluation.
9670
18c77628
AB
96712019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
9672
9673 * cp-valprint.c (cp_print_value_fields): Don't print trailing
9674 whitespace when pretty printing is on.
9675
53c973f2
AH
96762019-03-26 Alan Hayward <alan.hayward@arm.com>
9677
e79be6e5 9678 * ppc-linux-nat.c: Add include.
53c973f2 9679
d851aa71
AH
96802019-03-26 Alan Hayward <alan.hayward@arm.com>
9681
e79be6e5 9682 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 9683
2fe7bab7
AH
96842019-03-26 Alan Hayward <alan.hayward@arm.com>
9685
e79be6e5 9686 * arm-linux-nat.c: Add include.
2fe7bab7 9687
068ef30e
SM
96882019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
9689
9690 * source-cache.c (source_cache::get_source_lines): Re-read
9691 fullname after calling open_source_file.
9692
81a24d04
JB
96932019-03-25 John Baldwin <jhb@FreeBSD.org>
9694
9695 * NEWS: Mention TLS support for FreeBSD.
9696
79e7ae11
TT
96972019-03-25 Tom Tromey <tromey@adacore.com>
9698
9699 * minsyms.c (BUNCH_SIZE): Update comment.
9700 (~minimal_symbol_reader): Remove old comment.
9701 (compact_minimal_symbols): Update comment.
9702 (minimal_symbol_reader::install): Remove old comment. Update
9703 other comments.
9704
d45963c2
AH
97052019-03-25 Alan Hayward <alan.hayward@arm.com>
9706
9707 * s390-linux-nat.c: Add include.
9708
0f83012e
AH
97092019-03-25 Alan Hayward <alan.hayward@arm.com>
9710
9711 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
9712 Call linux_get_hwcap.
9713 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
9714 Likewise.
9715 (aarch64_linux_get_hwcap): Remove function.
9716 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
9717 declaration.
9718 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
9719 linux_get_hwcap.
9720 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
9721 * linux-tdep.c (linux_get_hwcap): Add function.
9722 (linux_get_hwcap2): Likewise.
9723 * linux-tdep.h (linux_get_hwcap): Add declaration.
9724 (linux_get_hwcap2): Likewise.
9725 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
9726 (ppc_linux_get_hwcap2): Likewise.
9727 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
9728 linux_get_hwcap.
9729 (ppc_linux_nat_target::insert_watchpoint): Likewise.
9730 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
9731 (ppc_linux_nat_target::read_description): Likewise.
9732 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
9733 * s390-linux-nat.c: Likewise.
9734 * s390-linux-tdep.c (s390_core_read_description): Likewise.
9735
6640a367
TT
97362019-03-24 Tom Tromey <tom@tromey.com>
9737
9738 * ada-lang.c (standard_lookup): Simplify initialization.
9739 (ada_lookup_symbol_nonlocal): Simplify return.
9740 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
9741 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
9742 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
9743 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
9744 initialization.
9745 * solib.c (solib_global_lookup): Simplify.
9746 * symtab.c (null_block_symbol): Remove.
9747 (symbol_cache_lookup): Simplify returns.
9748 (lookup_language_this): Simplify returns.
9749 (lookup_symbol_aux): Simplify return.
9750 (lookup_local_symbol): Simplify returns.
9751 (lookup_global_symbol_from_objfile): Simplify return.
9752 (lookup_symbol_in_objfile_symtabs)
9753 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
9754 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
9755 (lookup_static_symbol, lookup_global_symbol): Simplify return.
9756 * cp-namespace.c (cp_lookup_bare_symbol)
9757 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
9758 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
9759 (cp_lookup_nested_symbol): Don't use null_block_symbol.
9760 (cp_lookup_symbol_via_imports): Simplify initialization.
9761 (find_symbol_in_baseclass): Likewise.
9762 * symtab.h (null_block_symbol): Remove.
9763 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
9764 (d_lookup_nested_symbol, d_lookup_symbol_imports)
9765 (d_lookup_symbol_module): Likewise.
9766 (find_symbol_in_baseclass): Simplify initialization.
9767
a930ebcd
TT
97682019-03-24 Tom Tromey <tom@tromey.com>
9769
9770 * expression.h: Don't include symtab.h.
9771 (struct block): Forward declare.
9772
582942f4
TT
97732019-03-24 Tom Tromey <tom@tromey.com>
9774
9775 * c-exp.y (typebase): Remove casts.
9776 * gdbtypes.c (lookup_unsigned_typename, )
9777 (lookup_signed_typename): Remove cast.
9778 * eval.c (parse_to_comma_and_eval): Remove cast.
9779 * parse.c (write_dollar_variable): Remove cast.
9780 * block.h (struct block) <superblock>: Now const.
9781 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
9782 * psymtab.c (psym_map_matching_symbols): Make "block" const.
9783 (map_block): Make "block" const.
9784 * symfile.h (struct quick_symbol_functions)
9785 <map_matching_symbols>: Constify block argument to "callback".
9786 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
9787 const.
9788 (find_pc_sect_compunit_symtab): Make "b" const.
9789 (find_symbol_at_address): Likewise.
9790 (search_symbols): Likewise.
9791 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
9792 (dw2_debug_names_lookup_symbol): Likewise.
9793 (dw2_map_matching_symbols): Update.
9794 * p-valprint.c (pascal_val_print): Remove "block".
9795 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
9796 (aux_add_nonlocal_symbols): Make "block" const.
9797 (resolve_subexp): Remove cast.
9798 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
9799 const.
9800 (iterate_over_file_blocks): Likewise.
9801 * f-exp.y (%union) <bval>: Remove.
9802 * coffread.c (patch_opaque_types): Make "b" const.
9803 * spu-tdep.c (spu_catch_start): Make "block" const.
9804 * c-valprint.c (print_unpacked_pointer): Remove "block".
9805 * symmisc.c (dump_symtab_1): Make "b" const.
9806 (block_depth): Make "block" const.
9807 * d-exp.y (%union) <bval>: Remove.
9808 * cp-support.h (cp_lookup_rtti_type): Update.
9809 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
9810 * psymtab.c (psym_lookup_symbol): Make "block" const.
9811 (maintenance_check_psymtabs): Make "b" const.
9812 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
9813 (enumerate_locals, enumerate_args): Update.
9814 * python/py-symtab.c (stpy_global_block): Make "block" const.
9815 (stpy_static_block): Likewise.
9816 * inline-frame.c (block_starting_point_at): Make "new_block"
9817 const.
9818 * block.c (find_block_in_blockvector): Make return type const.
9819 (blockvector_for_pc_sect): Make "b" const.
9820 (find_block_in_blockvector): Make "b" const.
9821
7ad417dd
TT
98222019-03-23 Tom Tromey <tom@tromey.com>
9823
9824 * varobj.c (varobj_create): Update.
9825 * symfile.c (clear_symtab_users): Don't reset innermost_block.
9826 * printcmd.c (display_command, do_one_display): Don't reset
9827 innermost_block.
9828 * parser-defs.h (enum innermost_block_tracker_type): Move to
9829 expression.h.
9830 (innermost_block): Update comment.
9831 * parse.c (parse_exp_1): Add tracker_types parameter.
9832 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
9833 tracker_types parameter. Reset innermost_block.
9834 (parse_exp_in_context): Remove.
9835 (parse_expression_for_completion): Update.
9836 * objfiles.c (~objfile): Don't reset expression_context_block or
9837 innermost_block.
9838 * expression.h (enum innermost_block_tracker_type): Move from
9839 parser-defs.h.
9840 (parse_exp_1): Add tracker_types parameter.
9841 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
9842 reset innermost_block.
9843
b366c208
TT
98442019-03-23 Tom Tromey <tom@tromey.com>
9845
9846 * objfiles.h: Include bcache.h.
9847
9bb9b2f9
TT
98482019-03-23 Tom Tromey <tom@tromey.com>
9849
9850 * linespec.c (get_current_search_block): Use
9851 scoped_restore_current_language.
9852 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
9853
59c28372
AH
98542019-03-22 Alan Hayward <alan.hayward@arm.com>
9855 Jiong Wang <jiong.wang@arm.com>
9856
9857 * aarch64-linux-tdep.c
9858 (aarch64_linux_iterate_over_regset_sections): Check for pauth
9859 section.
9860 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
9861
17e116a7
AH
98622019-03-22 Alan Hayward <alan.hayward@arm.com>
9863 Jiong Wang <jiong.wang@arm.com>
9864
9865 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
9866 instructions.
9867 (aarch64_analyze_prologue_test): Add PACIASP test.
9868 (aarch64_prologue_prev_register): Unmask PC value.
9869
11e1b75f
AH
98702019-03-22 Alan Hayward <alan.hayward@arm.com>
9871 Jiong Wang <jiong.wang@arm.com>
9872
9873 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
9874 (aarch64_dwarf2_prev_register): Unmask PC value.
9875 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
9876 (aarch64_execute_dwarf_cfa_vendor_op): Check for
9877 DW_CFA_AARCH64_negate_ra_state.
9878 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
9879
34dcc7cf
AH
98802019-03-22 Alan Hayward <alan.hayward@arm.com>
9881 Jiong Wang <jiong.wang@arm.com>
9882
9883 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
9884 registers.
9885 (aarch64_pseudo_register_name): Likewise.
9886 (aarch64_pseudo_register_type): Likewise.
9887 (aarch64_pseudo_register_reggroup_p): Likewise.
9888 (aarch64_gdbarch_init): Add pauth registers.
9889 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
9890 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
9891 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
9892 (struct gdbarch_tdep): Add regnum for ra_state.
9893
1ef53e6b
AH
98942019-03-22 Alan Hayward <alan.hayward@arm.com>
9895 Jiong Wang <jiong.wang@arm.com>
9896
9897 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
9898
76bed0fd
AH
98992019-03-22 Alan Hayward <alan.hayward@arm.com>
9900 Jiong Wang <jiong.wang@arm.com>
9901
9902 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
9903 function.
9904 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
9905 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
9906 (aarch64_gdbarch_init): Add puth registers.
9907 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
9908 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
9909 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
9910
ee4fbcfa
AH
99112019-03-22 Alan Hayward <alan.hayward@arm.com>
9912 Jiong Wang <jiong.wang@arm.com>
9913
9914 * aarch64-linux-nat.c
9915 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
9916 * aarch64-linux-tdep.c
9917 (aarch64_linux_core_read_description): Likewise.
9918 (aarch64_linux_get_hwcap): New function.
9919 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
9920 (aarch64_linux_get_hwcap): New declaration.
9921
6dc0ebde
AH
99222019-03-22 Alan Hayward <alan.hayward@arm.com>
9923 Jiong Wang <jiong.wang@arm.com>
9924
9925 * aarch64-linux-nat.c
9926 (aarch64_linux_nat_target::read_description): Add pauth param.
9927 * aarch64-linux-tdep.c
9928 (aarch64_linux_core_read_description): Likewise.
9929 * aarch64-tdep.c (struct target_desc): Add in pauth.
9930 (aarch64_read_description): Add pauth param.
9931 (aarch64_gdbarch_init): Likewise.
9932 * aarch64-tdep.h (aarch64_read_description): Likewise.
9933 * arch/aarch64.c (aarch64_create_target_description): Likewise.
9934 * arch/aarch64.h (aarch64_create_target_description): Likewise.
9935 * features/Makefile: Add new files.
9936 * features/aarch64-pauth.c: New file.
9937 * features/aarch64-pauth.xml: New file.
9938
595915c1
TT
99392019-03-20 Tom Tromey <tromey@adacore.com>
9940
9941 * infrun.c (handle_inferior_event): Rename from
9942 handle_inferior_event_1. Create a scoped_value_mark.
9943 (handle_inferior_event): Remove.
9944
4c7d57e7
TT
99452019-03-19 Tom Tromey <tromey@adacore.com>
9946
9947 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
9948 * infrun.h (print_stop_event): Add "displays" parameter.
9949 * infrun.c (print_stop_event): Add "displays" parameter.
9950
cb246234
PA
99512019-03-19 Pedro Alves <palves@redhat.com>
9952
9953 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
9954 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
9955 to -1. Fix TABs vs spaces.
9956 (tui_ui_out::tui_ui_out): Don't initialize fields here.
9957 * tui/tui-out.h (tui_ui_out) Add intro comments.
9958 <m_line, m_start_of_line>: In-class initialize, and add describing
9959 comment.
9960
3a0e45b2
AH
99612019-03-18 Alan Hayward <alan.hayward@arm.com>
9962
9963 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
9964 variable names.
9965 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
9966
5371b850
PA
99672019-03-18 Pedro Alves <palves@redhat.com>
9968 Eli Zaretskii <eliz@gnu.org>
9969
9970 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
9971 m_line and m_start_of_line.
9972
b17c4cd0
EZ
99732019-03-18 Eli Zaretskii <eliz@gnu.org>
9974
9975 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
9976 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
9977 it returns a newline. This fixes a regression in TU mode, whereby
9978 the next line is output on the same screen line as the user input.
9979
4bd56d18
TT
99802019-03-18 Tom Tromey <tromey@adacore.com>
9981
9982 * minsyms.c (minimal_symbol_reader::install): Remove call to
9983 obstack_blank.
9984
55c10aca
PA
99852019-03-18 Pedro Alves <palves@redhat.com>
9986
9987 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
9988 New globals.
9989 (apply_style): New, factored out from ...
9990 (apply_ansi_escape): ... this. Handle reverse video mode.
9991 (tui_set_reverse_mode): New function.
9992 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
9993 * tui/tui-winsource.c (tui_show_source_line): Use
9994 tui_set_reverse_mode instead of setting A_STANDOUT.
9995 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
9996 New setter methods.
9997
647bb750
HD
99982019-03-18 Hannes Domani <ssbssa@yahoo.de>
9999
10000 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
10001 Handle tabs.
10002
bff8c71f
TT
100032019-03-18 Tom Tromey <tromey@adacore.com>
10004
10005 * ada-lang.c (empty_array): Add "high" parameter.
10006 (ada_evaluate_subexp): Update.
10007
58785d98
ST
100082019-03-17 Sergei Trofimovich <siarheit@google.com>
10009
10010 * unittests/string_view-selftests.c: Define
10011 _initialize_string_view_selftests unconditionally.
10012
d4cbef22
ВМ
100132019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10014
10015 PR gdb/24350
10016 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
10017
fce4c071
ВМ
100182019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10019
10020 PR gdb/24351
10021 * windows-nat.c (display_selector): Fix format specifiers.
10022
f7f0a123
EZ
100232019-03-17 Eli Zaretskii <eliz@gnu.org>
10024
10025 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
10026 tui_refill_source_window instead of tui_refresh_win, to update the
10027 current execution line. This fixes redisplay of the current line
10028 when stepping through the code with "next" or "step".
10029
ab42892f
EZ
100302019-03-16 Eli Zaretskii <eliz@gnu.org>
10031
10032 * source-cache.c (source_cache::get_source_lines): Call
10033 find_source_lines to initialize s->nlines. This fixes vertical
10034 scrolling of TUI source window when the DOWN arrow is pressed.
10035
8d8c087f
PW
100362019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10037
10038 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
10039 linux-thread-db.c (_initialize_thread_db): Likewise.
10040
798e1c30
EZ
100412019-03-16 Eli Zaretskii <eliz@gnu.org>
10042
10043 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
10044 wclrtoeol in tui_show_source_line". This reverts changes made in
10045 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
10046
eefba3da
TT
100472019-03-15 Tom Tromey <tom@tromey.com>
10048
10049 * symtab.h (struct minimal_symbol): Derive from
10050 general_symbol_info.
10051 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
10052 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10053 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10054 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10055 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
10056 (MSYMBOL_SEARCH_NAME): Update.
10057 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
10058 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
10059 * minsyms.c (minimal_symbol_reader::record_full): Update.
10060
0de2420c
TT
100612019-03-15 Tom Tromey <tom@tromey.com>
10062
10063 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
10064
042d75e4
TT
100652019-03-15 Tom Tromey <tom@tromey.com>
10066
10067 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
10068 unique_xmalloc_ptr.
10069 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
10070 Update.
10071 * minsyms.c (lookup_minimal_symbol_by_pc_section)
10072 (build_minimal_symbol_hash_tables)
10073 (minimal_symbol_reader::install): Update.
10074
db92718b
TT
100752019-03-15 Tom Tromey <tom@tromey.com>
10076
10077 * symtab.c (create_demangled_names_hash): Update.
10078 (symbol_set_names): Update.
10079 * objfiles.h (struct objfile_per_bfd_storage)
10080 <demangled_names_hash>: Now an htab_up.
10081 * objfiles.c (objfile_per_bfd_storage): Simplify.
10082
d6797f46
TT
100832019-03-15 Tom Tromey <tom@tromey.com>
10084
10085 * objfiles.h (struct objfile_per_bfd_storage): Declare
10086 destructor.
10087 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
10088 New.
10089 (get_objfile_bfd_data): Use new. Don't initialize
10090 language_of_main.
10091 (free_objfile_per_bfd_storage): Remove.
10092 (objfile_bfd_data_free, objfile::~objfile): Use delete.
10093
741d7538
TT
100942019-03-15 Tom Tromey <tom@tromey.com>
10095
10096 * symfile.c (reread_symbols): Update.
10097 * objfiles.c (objfile::objfile): Update.
10098 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
10099 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
10100 comment.
10101 (minimal_symbol_reader::install): Update.
10102 (terminate_minimal_symbol_table): Remove.
10103 * jit.c (jit_object_close_impl): Update.
10104
788c80d1
TT
101052019-03-15 Tom Tromey <tom@tromey.com>
10106
10107 * minsyms.c (minimal_symbol_reader::record_full): Remove some
10108 initializations.
10109
1b7a07cb
TT
101102019-03-15 Tom Tromey <tom@tromey.com>
10111
10112 * objfiles.h (struct objfile_per_bfd_storage)
10113 <demangled_hash_languages>: Now a bitset.
10114 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
10115 (lookup_minimal_symbol): Update.
10116
3db066bc
TT
101172019-03-15 Tom Tromey <tom@tromey.com>
10118
10119 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
10120 Don't return the symbol.
10121 * coffread.c (record_minimal_symbol): Use record_full.
10122
3fff2c37
EZ
101232019-03-14 Eli Zaretskii <eliz@gnu.org>
10124
10125 The MS-Windows port of ncurses fails to switch to a color pair if
10126 one or both of the colors are the implicit default colors. This
10127 change records the default colors when TUI is initialized, and
10128 then specifies them explicitly when a color pair uses the default
10129 colors. This allows color styling in TUI mode on MS-Windows.
10130
10131 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
10132 ncurses_norm_attr.
10133 (tui_initialize_io) [__MINGW32__]: Record the default terminal
10134 colors in ncurses_norm_attr.
10135 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
10136 "none", replace it with the default color recorded in
10137 ncurses_norm_attr.
10138
3b336828
TT
101392019-03-14 Tom Tromey <tromey@adacore.com>
10140
10141 * source-cache.h (class source_cache) <get_source_lines>: Return
10142 std::string.
10143 * source-cache.c (source_cache::extract_lines): Handle case where
10144 first_pos==npos. Return std::string.
10145 (source_cache::get_source_lines): Update.
10146
d085f989
TT
101472019-03-14 Tom Tromey <tromey@adacore.com>
10148
10149 * NEWS: Add item for "style sources" commands.
10150 * source-cache.c (source_cache::get_source_lines): Check
10151 source_styling.
10152 * cli/cli-style.c (source_styling): New global.
10153 (_initialize_cli_style): Add "style sources" commands.
10154 (show_style_sources): New function.
10155 * cli/cli-style.h (source_styling): Declare.
10156
6f11e682
TT
101572019-03-14 Pedro Alves <palves@redhat.com>
10158 Tom Tromey <tromey@adacore.com>
10159
10160 * tui/tui-winsource.h (tui_refill_source_window): Declare.
10161 * tui/tui-winsource.c (tui_refill_source_window): New function,
10162 from...
10163 (tui_horizontal_source_scroll): ... here. Move some logic.
10164 * cli/cli-style.c (set_style_enabled): Notify new observable.
10165 * tui/tui-hooks.c (tui_redisplay_source): New function.
10166 (tui_attach_detach_observers): Attach or detach
10167 tui_redisplay_source.
10168 * observable.h (source_styling_changed): New observable.
10169 * observable.c: Define source_styling_changed observable.
10170
a068643d
TT
101712019-03-13 Tom Tromey <tromey@adacore.com>
10172
10173 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
10174 (i386_gnu_nat_target::store_registers): Update.
10175 * target-debug.h (target_debug_print_std_string): New macro.
10176 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10177 * windows-tdep.c (display_one_tib): Update.
10178 * tui/tui-stack.c (tui_make_status_line): Update.
10179 * top.c (print_inferior_quit_action): Update.
10180 * thread.c (thr_try_catch_cmd): Update.
10181 (add_thread_with_info): Update.
10182 (thread_target_id_str): Update.
10183 (thr_try_catch_cmd): Update.
10184 (thread_command): Update.
10185 (thread_find_command): Update.
10186 * record-btrace.c (record_btrace_target::info_record)
10187 (record_btrace_resume_thread, record_btrace_target::resume)
10188 (record_btrace_cancel_resume, record_btrace_step_thread)
10189 (record_btrace_target::wait, record_btrace_target::wait)
10190 (record_btrace_target::wait, record_btrace_target::stop): Update.
10191 * progspace.c (print_program_space): Update.
10192 * process-stratum-target.c
10193 (process_stratum_target::thread_address_space): Update.
10194 * linux-fork.c (linux_fork_mourn_inferior)
10195 (detach_checkpoint_command, info_checkpoints_command)
10196 (linux_fork_context): Update.
10197 (linux_fork_detach): Update.
10198 (class scoped_switch_fork_info): Update.
10199 (delete_checkpoint_command): Update.
10200 * infrun.c (follow_fork_inferior): Update.
10201 (follow_fork_inferior): Update.
10202 (proceed_after_vfork_done): Update.
10203 (handle_vfork_child_exec_or_exit): Update.
10204 (follow_exec): Update.
10205 (displaced_step_prepare_throw): Update.
10206 (displaced_step_restore): Update.
10207 (start_step_over): Update.
10208 (resume_1): Update.
10209 (clear_proceed_status_thread): Update.
10210 (proceed): Update.
10211 (print_target_wait_results): Update.
10212 (do_target_wait): Update.
10213 (context_switch): Update.
10214 (stop_all_threads): Update.
10215 (restart_threads): Update.
10216 (finish_step_over): Update.
10217 (handle_signal_stop): Update.
10218 (switch_back_to_stepped_thread): Update.
10219 (keep_going_pass_signal): Update.
10220 (print_exited_reason): Update.
10221 (normal_stop): Update.
10222 * inferior.c (inferior_pid_to_str): Change return type.
10223 (print_selected_inferior): Update.
10224 (add_inferior): Update.
10225 (detach_inferior): Update.
10226 * dummy-frame.c (fprint_dummy_frames): Update.
10227 * dcache.c (dcache_info_1): Update.
10228 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
10229 (btrace_fetch, btrace_clear): Update.
10230 * linux-tdep.c (linux_core_pid_to_str): Change return type.
10231 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
10232 type.
10233 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
10234 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
10235 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
10236 * gdbarch.c, gdbarch.h: Rebuild.
10237 * gdbarch.sh (core_pid_to_str): Change return type.
10238 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
10239 return type.
10240 (windows_nat_target::pid_to_str): Change return type.
10241 (windows_delete_thread): Update.
10242 (windows_nat_target::attach): Update.
10243 (windows_nat_target::files_info): Update.
10244 * target-delegates.c: Rebuild.
10245 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
10246 return type.
10247 (sol_thread_target::pid_to_str): Change return type.
10248 * remote.c (class remote_target) <pid_to_str>: Change return
10249 type.
10250 (remote_target::pid_to_str): Change return type.
10251 (extended_remote_target::attach, remote_target::remote_stop_ns)
10252 (remote_target::remote_notif_remove_queued_reply)
10253 (remote_target::push_stop_reply, remote_target::disable_btrace):
10254 Update.
10255 (extended_remote_target::attach): Update.
10256 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
10257 type.
10258 (gdbsim_target::pid_to_str): Change return type.
10259 * ravenscar-thread.c (struct ravenscar_thread_target)
10260 <pid_to_str>: Change return type.
10261 (ravenscar_thread_target::pid_to_str): Change return type.
10262 * procfs.c (class procfs_target) <pid_to_str>: Change return
10263 type.
10264 (procfs_target::pid_to_str): Change return type.
10265 (procfs_target::attach): Update.
10266 (procfs_target::detach): Update.
10267 (procfs_target::fetch_registers): Update.
10268 (procfs_target::store_registers): Update.
10269 (procfs_target::wait): Update.
10270 (procfs_target::files_info): Update.
10271 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
10272 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
10273 return type.
10274 (nto_procfs_target::pid_to_str): Change return type.
10275 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
10276 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
10277 return type.
10278 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
10279 (exit_lwp): Update.
10280 (attach_proc_task_lwp_callback, get_detach_signal)
10281 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
10282 (linux_nat_target::resume, wait_lwp, stop_callback)
10283 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
10284 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
10285 (linux_nat_wait_1, resume_stopped_resumed_lwps)
10286 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
10287 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
10288 type.
10289 (inf_ptrace_target::attach): Update.
10290 (inf_ptrace_target::files_info): Update.
10291 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
10292 type.
10293 (go32_nat_target::pid_to_str): Change return type.
10294 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
10295 (gnu_nat_target::wait): Update.
10296 (gnu_nat_target::wait): Update.
10297 (gnu_nat_target::resume): Update.
10298 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
10299 (fbsd_nat_target::wait): Update.
10300 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
10301 type.
10302 (darwin_nat_target::attach): Update.
10303 * corelow.c (class core_target) <pid_to_str>: Change return type.
10304 (core_target::pid_to_str): Change return type.
10305 * target.c (normal_pid_to_str): Change return type.
10306 (default_pid_to_str): Likewise.
10307 (target_pid_to_str): Change return type.
10308 (target_translate_tls_address): Update.
10309 (target_announce_detach): Update.
10310 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
10311 return type.
10312 (bsd_uthread_target::pid_to_str): Change return type.
10313 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
10314 type.
10315 (bsd_kvm_target::pid_to_str): Change return type.
10316 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
10317 return type.
10318 (aix_thread_target::pid_to_str): Change return type.
10319 * target.h (struct target_ops) <pid_to_str>: Change return type.
10320 (target_pid_to_str, normal_pid_to_str): Likewise.
10321 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
10322 type.
10323 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
10324 type.
10325 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
10326 return type.
10327 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
10328 type.
10329 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
10330 type.
10331 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
10332 return type.
10333
b4be1b06
SM
103342019-03-13 Simon Marchi <simon.marchi@ericsson.com>
10335
10336 * NEWS: Mention that the new default MI version is 3. Mention
10337 changes to the output of commands and events that deal with
10338 multi-location breakpoints.
10339 * breakpoint.c: Include "mi/mi-out.h".
10340 (print_one_breakpoint): Change output syntax if using MI version
10341 >= 3.
10342 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
10343 New.
10344 (mi_multi_location_breakpoint_output_fixed): New.
10345 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
10346 (mi_cmd_fix_multi_location_breakpoint_output): New.
10347 (mi_multi_location_breakpoint_output_fixed): New.
10348 * mi/mi-cmds.c (mi_cmds): Register command
10349 -fix-multi-location-breakpoint-output.
10350 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
10351 interpreter "mi".
10352
8e5e5494
SM
103532019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10354
10355 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
10356 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
10357 instantiate mi_ui_out based on interpreter name.
10358 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
10359 * mi/mi-main.c (mi_load_progress): Likewise.
10360
197df35e
JB
103612019-03-12 John Baldwin <jhb@FreeBSD.org>
10362
10363 * NEWS: Combine separate "New targets" sections for 8.3.
10364
8399425f
JB
103652019-03-12 John Baldwin <jhb@FreeBSD.org>
10366
10367 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
10368 (ppcfbsd_init_abi): Install gdbarch
10369 "fetch_tls_load_module_address" and "get_thread_local_address"
10370 methods.
10371
b0f87ed0
JB
103722019-03-12 John Baldwin <jhb@FreeBSD.org>
10373
10374 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
10375 (riscv_fbsd_init_abi): Install gdbarch
10376 "fetch_tls_load_module_address" and "get_thread_local_address"
10377 methods.
10378
ce25aa57
JB
103792019-03-12 John Baldwin <jhb@FreeBSD.org>
10380
10381 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
10382 (i386fbsd_init_abi): Install gdbarch
10383 "fetch_tls_load_module_address" and "get_thread_local_address"
10384 methods.
10385
f5424cfa
JB
103862019-03-12 John Baldwin <jhb@FreeBSD.org>
10387
10388 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
10389 (amd64fbsd_init_abi): Install gdbarch
10390 "fetch_tls_load_module_address" and "get_thread_local_address"
10391 methods.
10392
945f3901
JB
103932019-03-12 John Baldwin <jhb@FreeBSD.org>
10394
10395 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
10396 (struct fbsd_pspace_data): New type.
10397 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
10398 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
10399 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
10400 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
10401 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
10402
ef0bd204
JB
104032019-03-12 John Baldwin <jhb@FreeBSD.org>
10404
10405 * gdbtypes.c (lookup_struct_elt): New function.
10406 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
10407 * gdbtypes.h (struct struct_elt): New type.
10408 (lookup_struct_elt): New prototype.
10409
36c53a02
JB
104102019-03-12 John Baldwin <jhb@FreeBSD.org>
10411
10412 * gdbtypes.c (lookup_struct_elt_type): Update comment and
10413 remove disabled code block.
10414
6e056c81
JB
104152019-03-12 John Baldwin <jhb@FreeBSD.org>
10416
10417 * gdbarch.sh (get_thread_local_address): New method.
10418 * gdbarch.h, gdbarch.c: Regenerate.
10419 * target.c (target_translate_tls_address): Use
10420 gdbarch_get_thread_local_address if present instead of
10421 target::get_thread_local_address.
10422
cd250a18
JB
104232019-03-12 John Baldwin <jhb@FreeBSD.org>
10424
10425 * target.h (target::get_thread_local_address): Update comment.
10426
df22c1e5
JB
104272019-03-12 John Baldwin <jhb@FreeBSD.org>
10428
10429 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
10430 objfile->separate_debug_objfile_backlink if not NULL.
10431
dd6876c9
JB
104322019-03-12 John Baldwin <jhb@FreeBSD.org>
10433
10434 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10435 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
10436 (amd64bsd_store_inferior_registers): Likewise.
10437 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10438 Enable segment base registers.
10439 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
10440 PT_GETFSBASE and PT_GETGSBASE.
10441 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
10442 PT_SETGSBASE.
10443 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
10444 segment base registers.
10445 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10446
1163a4b7
JB
104472019-03-12 John Baldwin <jhb@FreeBSD.org>
10448
10449 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10450 Update calls to i386_target_description to add 'segments'
10451 parameter.
10452 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
10453 add segment base registers.
10454 * arch/i386.c (i386_create_target_description): Add 'segments'
10455 parameter to enable segment base registers.
10456 * arch/i386.h (i386_create_target_description): Likewise.
10457 * features/i386/32bit-segments.xml: New file.
10458 * features/i386/32bit-segments.c: Generate.
10459 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
10460 call to i386_target_description to add 'segments' parameter.
10461 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10462 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
10463 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
10464 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
10465 if feature is present.
10466 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
10467 Add 'segments' parameter to call to i386_target_description.
10468 (i386_target_description): Add 'segments' parameter to enable
10469 segment base registers.
10470 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
10471 to call to i386_target_description.
10472 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
10473 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
10474 Define I386_NUM_REGS.
10475 (i386_target_description): Add 'segments' parameter to enable
10476 segment base registers.
10477
3a350822
EZ
104782019-03-12 Eli Zaretskii <eliz@gnu.org>
10479
10480 PR/24325
10481 * source-cache.c: #undef open and close, to avoid unresolved
10482 externals during linking.
10483
ffdd69cf
TT
104842019-03-12 Tom Tromey <tromey@adacore.com>
10485
10486 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
10487 const. Add initializers.
10488 (_initialize_remote): Don't initialize ptid globals.
10489
ec148c57
PA
104902019-03-12 Pedro Alves <palves@redhat.com>
10491
10492 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
10493
32764270
PA
104942019-03-12 Pedro Alves <palves@redhat.com>
10495
10496 * cp-name-parser.y (main): Remove unused 'len' variable.
10497
17547186
TT
104982019-03-12 Tom Tromey <tromey@adacore.com>
10499
10500 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
10501 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
10502
d3a70e03
TT
105032019-03-12 Tom Tromey <tromey@adacore.com>
10504
10505 * linux-nat.c (iterate_over_lwps): Update.
10506 (stop_callback): Remove parameter.
10507 (stop_wait_callback, detach_callback, resume_set_callback)
10508 (select_singlestep_lwp_callback, set_ignore_sigint)
10509 (status_callback, resumed_callback, resume_clear_callback)
10510 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
10511 data parameter.
10512 (linux_nat_target::detach, linux_nat_target::resume)
10513 (linux_stop_and_wait_all_lwps, select_event_lwp)
10514 (linux_nat_filter_event, linux_nat_wait_1)
10515 (linux_nat_target::kill, linux_nat_target::stop)
10516 (linux_nat_target::stop): Update.
10517 (linux_nat_resume_callback): Change type.
10518 (resume_stopped_resumed_lwps, count_events_callback)
10519 (select_event_lwp_callback): Likewise.
10520 (linux_stop_lwp, linux_nat_stop_lwp): Update.
10521 * arm-linux-nat.c (struct update_registers_data): Remove.
10522 (update_registers_callback): Change type.
10523 (arm_linux_insert_hw_breakpoint1): Update.
10524 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
10525 parameter.
10526 (x86_linux_dr_set_addr): Update.
10527 (x86_linux_dr_set_control): Update.
10528 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
10529 (iterate_over_lwps): Use gdb::function_view.
10530 * nat/aarch64-linux-hw-point.c (struct
10531 aarch64_dr_update_callback_param): Remove.
10532 (debug_reg_change_callback): Change type.
10533 (aarch64_notify_debug_reg_change): Update.
10534 * s390-linux-nat.c (s390_refresh_per_info): Update.
10535
82cb27ff
TT
105362019-03-11 Tom Tromey <tromey@adacore.com>
10537
10538 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
10539 redundant assignment to "this_cu".
10540
568c0683
SM
105412019-03-08 Simon Marchi <simon.marchi@efficios.com>
10542
10543 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
10544
f09ce22d
SM
105452019-03-08 Simon Marchi <simon.marchi@efficios.com>
10546
10547 * gdbtypes.c (rank_one_type_parm_set): New function extracted
10548 from...
10549 (rank_one_type): ... this.
10550
595f96a9
SM
105512019-03-08 Simon Marchi <simon.marchi@efficios.com>
10552
10553 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
10554 from...
10555 (rank_one_type): ... this.
10556
2598a94b
SM
105572019-03-08 Simon Marchi <simon.marchi@efficios.com>
10558
10559 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
10560 from...
10561 (rank_one_type): ... this.
10562
7f17b20d
SM
105632019-03-08 Simon Marchi <simon.marchi@efficios.com>
10564
10565 * gdbtypes.c (rank_one_type_parm_float): New function extracted
10566 from...
10567 (rank_one_type): ... this.
10568
2c509035
SM
105692019-03-08 Simon Marchi <simon.marchi@efficios.com>
10570
10571 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
10572 from...
10573 (rank_one_type): ... this.
10574
0dd322dc
SM
105752019-03-08 Simon Marchi <simon.marchi@efficios.com>
10576
10577 * gdbtypes.c (rank_one_type_parm_range): New function extracted
10578 from...
10579 (rank_one_type): ... this.
10580
41ea4728
SM
105812019-03-08 Simon Marchi <simon.marchi@efficios.com>
10582
10583 * gdbtypes.c (rank_one_type_parm_char): New function extracted
10584 from...
10585 (rank_one_type): ... this.
10586
793cd1d2
SM
105872019-03-08 Simon Marchi <simon.marchi@efficios.com>
10588
10589 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
10590 from...
10591 (rank_one_type): ... this.
10592
34910087
SM
105932019-03-08 Simon Marchi <simon.marchi@efficios.com>
10594
10595 * gdbtypes.c (rank_one_type_parm_int): New function extracted
10596 from...
10597 (rank_one_type): ... this.
10598
f1f832d6
SM
105992019-03-08 Simon Marchi <simon.marchi@efficios.com>
10600
10601 * gdbtypes.c (rank_one_type_parm_func): New function extracted
10602 from...
10603 (rank_one_type): ... this.
10604
b9f4512f
SM
106052019-03-08 Simon Marchi <simon.marchi@efficios.com>
10606
10607 * gdbtypes.c (rank_one_type_parm_array): New function extracted
10608 from...
10609 (rank_one_type): ... this.
10610
9293fc63
SM
106112019-03-08 Simon Marchi <simon.marchi@efficios.com>
10612
10613 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
10614 from...
10615 (rank_one_type): ... this.
10616
e3abbe7e
PW
106172019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10618
10619 * inferior.c (initialize_inferiors): Ensure 'help set/show print
10620 inferior-events' shows the example events.
10621
e4adb939
EZ
106222019-03-08 Eli Zaretskii <eliz@gnu.org>
10623
10624 Support styling on native MS-Windows console
10625
10626 PR/24315
10627 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
10628 on MS-Windows if $TERM is not defined.
10629
10630 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
10631
10632 * posix-hdep.c (gdb_console_fputs):
10633 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
10634 functions.
10635 * ui-file.h (gdb_console_fputs): Add prototype.
10636
10637 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
10638 back to fputs only if the former returns zero.
10639
25629dfd
TT
106402019-03-07 Tom Tromey <tom@tromey.com>
10641
10642 * symmisc.c (print_symbol_bcache_statistics): Update.
10643 (print_objfile_statistics): Update.
10644 * symfile.c (allocate_symtab): Update.
10645 * stabsread.c: Don't include bcache.h.
10646 * psymtab.h (struct psymbol_bcache): Don't declare.
10647 (class psymtab_storage) <psymbol_cache>: Now a bcache.
10648 (psymbol_bcache_init, psymbol_bcache_free)
10649 (psymbol_bcache_get_bcache): Don't declare.
10650 * psymtab.c (struct psymbol_bcache): Remove.
10651 (psymtab_storage::psymtab_storage): Update.
10652 (psymtab_storage::~psymtab_storage): Update.
10653 (psymbol_bcache_init, psymbol_bcache_free)
10654 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
10655 (add_psymbol_to_bcache): Update.
10656 (allocate_psymtab): Update.
10657 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10658 macro_cache>: No longer pointers.
10659 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
10660 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
10661 * macrotab.c (macro_bcache): Update.
10662 * macroexp.c: Don't include bcache.h.
10663 * gdbtypes.c (check_types_worklist): Update.
10664 (types_deeply_equal): Remove TRY/CATCH. Update.
10665 * elfread.c (elf_symtab_read): Update.
10666 * dwarf2read.c: Don't include bcache.h.
10667 * buildsym.c (buildsym_compunit::get_macro_table): Update.
10668 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
10669 (print_bcache_statistics, bcache_memory_used): Don't declare.
10670 (struct bcache): Move from bcache.c. Add constructor, destructor,
10671 methods. Rename all data members.
10672 * bcache.c (struct bcache): Move to bcache.h.
10673 (bcache::expand_hash_table): Rename from expand_hash_table.
10674 (bcache): Remove.
10675 (bcache::insert): Rename from bcache_full.
10676 (bcache::compare): Rename from bcache_compare.
10677 (bcache_xmalloc): Remove.
10678 (bcache::~bcache): Rename from bcache_xfree.
10679 (bcache::print_statistics): Rename from print_bcache_statistics.
10680 (bcache::memory_used): Rename from bcache_memory_used.
10681
fe726667
PA
106822019-03-07 Pedro Alves <palves@redhat.com>
10683
10684 * infrun.c (normal_stop): Also check for
10685 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
10686
7584bb30
AB
106872019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10688
10689 * f-lang.c (value_from_host_double): Moved to...
10690 * value.c (value_from_host_double): ...here.
10691 * value.h (value_from_host_double): Declare.
10692 * guile/scm-math.c (vlscm_convert_typed_number): Use
10693 value_from_host_double.
10694 (vlscm_convert_number): Likewise.
10695 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
10696 * python/py-value.c (convert_value_from_python): Likewise.
10697
a7b1986e
TT
106982019-03-06 Tom Tromey <tom@tromey.com>
10699
10700 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
10701
0ccf4211
TT
107022019-03-06 Tom Tromey <tom@tromey.com>
10703
10704 * utils.h (free_current_contents): Don't declare.
10705 * utils.c (free_current_contents): Remove.
10706
fe7b42e5
TT
107072019-03-06 Tom Tromey <tom@tromey.com>
10708
10709 * top.c (quit_force): Update.
10710 * main.c (captured_command_loop): Update.
10711 * common/new-op.c (operator new): Update.
10712 * common/common-exceptions.c (struct catcher)
10713 <save_cleanup_chain>: Remove member.
10714 (exceptions_state_mc_init): Update.
10715 (exception_try_scope_entry): Return nullptr.
10716 (exception_try_scope_exit, exception_rethrow)
10717 (throw_exception_sjlj, throw_exception_cxx): Update.
10718 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
10719 (all_cleanups, do_cleanups, discard_cleanups)
10720 (discard_final_cleanups, save_cleanups, save_final_cleanups)
10721 (restore_cleanups, restore_final_cleanups): Don't declare.
10722 (do_final_cleanups): Remove parameter.
10723 * common/cleanups.c (cleanup_chain, make_cleanup)
10724 (make_cleanup_dtor, all_cleanups, do_cleanups)
10725 (discard_my_cleanups, discard_cleanups)
10726 (discard_final_cleanups, save_my_cleanups, save_cleanups)
10727 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
10728 (null_cleanup): Remove.
10729 (do_final_cleanups): Remove parameter.
10730
c6321f19
TT
107312019-03-06 Tom Tromey <tom@tromey.com>
10732
10733 * remote.c (remote_target::remote_parse_stop_reply): Use
10734 unique_xmalloc_ptr.
10735
61b30099
TT
107362019-03-06 Tom Tromey <tom@tromey.com>
10737
10738 * stabsread.c (struct stabs_field_info): Rename from field_info.
10739 <list, fnlist>: Add initializers.
10740 <obstack>: New member.
10741 (read_member_functions, read_struct_fields, read_baseclasses):
10742 Allocate on obstack. Don't use cleanups.
10743 (read_one_struct_field, read_member_functions, read_struct_fields)
10744 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
10745 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
10746 (read_struct_type): Update.
10747
6cceac94
TT
107482019-03-06 Tom Tromey <tom@tromey.com>
10749
10750 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
10751 * common/filestuff.h (make_cleanup_close): Don't declare.
10752 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
10753 Remove.
10754
72412762
TT
107552019-03-06 Tom Tromey <tom@tromey.com>
10756
10757 * solib-aix.c: Use make_scope_exit.
10758
2b6ff1c0
TT
107592019-03-06 Tom Tromey <tom@tromey.com>
10760
10761 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
10762 Use make_scope_exit.
10763
d01c5877
TT
107642019-03-06 Tom Tromey <tom@tromey.com>
10765
10766 * solib-svr4.c (disable_probes_interface): Remove parameter.
10767 (svr4_handle_solib_event): Use make_scope_exit.
10768
32603266
TT
107692019-03-06 Tom Tromey <tom@tromey.com>
10770
10771 * remote.c (struct stop_reply_deleter): Remove.
10772 (stop_reply_up): Update.
10773 (struct stop_reply): Derive from notif_event. Don't typedef.
10774 <regcache>: Now a std::vector.
10775 (stop_reply_xfree): Remove.
10776 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
10777 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
10778 (remote_target::discard_pending_stop_replies): Use delete.
10779 (remote_target::remote_parse_stop_reply): Update.
10780 (remote_target::process_stop_reply): Update.
10781 * remote-notif.h (struct notif_event): Add virtual destructor.
10782 Remove "dtr" member.
10783 (struct notif_client) <alloc_event>: Return a unique_ptr.
10784 (notif_event_xfree): Don't declare.
10785 (notif_event_up): New typedef.
10786 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
10787 (notif_event_xfree, do_notif_event_xfree): Remove.
10788 (remote_notif_state_xfree): Update.
10789
9799571e
TT
107902019-03-06 Tom Tromey <tom@tromey.com>
10791
10792 * infrun.c (displaced_step_clear_cleanup): Now a
10793 forward_scope_exit type.
10794 (displaced_step_prepare_throw): Update.
10795 (displaced_step_fixup): Update.
10796
09e3c4ca
TT
107972019-03-06 Tom Tromey <tom@tromey.com>
10798
10799 * inferior.h (class inferior): Update comment.
10800 * gdbthread.h (class thread_info): Update comment.
10801
e2a03548
TT
108022019-03-06 Joel Brobecker <brobecker@adacore.com>
10803 Tom Tromey <tom@tromey.com>
10804
10805 * stabsread.h (struct stab_section_list): Remove.
10806 (coffstab_build_psymtabs): Update.
10807 * dbxread.c (symbuf_sections): Now a std::vector.
10808 (sect_idx): New global.
10809 (fill_symbuf): Update.
10810 (coffstab_build_psymtabs): Change type of stabsects parameter.
10811 Update.
10812 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
10813 std::vector.
10814 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
10815 (coff_locate_sections): Update.
10816 (coff_symfile_read): Remove cleanups. Update.
10817 (init_stringtab): Add storage parameter.
10818 (free_stringtab, free_stringtab_cleanup): Remove.
10819 (init_lineno): Add storage parameter.
10820 (free_linetab, free_linetab_cleanup): Remove.
10821
b7e60d85
PA
108222019-03-06 Pedro Alves <palves@redhat.com>
10823
10824 * linux-fork.c (fork_info::clobber_regs): Delete.
10825 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
10826 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
10827 comment. Adjust.
10828 (scoped_switch_fork_info::scoped_switch_fork_info)
10829 (checkpoint_command, linux_fork_context): Adjust
10830 fork_save_infrun_state calls.
10831
e52c971f
PA
108322019-03-06 Pedro Alves <palves@redhat.com>
10833
10834 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
10835 (inf_has_multiple_threads): Return 'bool' and rewrite using
10836 inferior_info::threads().
10837
06974e6c
PA
108382019-03-06 Pedro Alves <palves@redhat.com>
10839
10840 * linux-fork.c: Include <list>.
10841 (fork_list): Now a std::list instance.
10842 (fork_info): Add ctor, dtor, and in-class initialize all fields.
10843 (forks_exist_p, find_last_fork): Adjust.
10844 (new_fork): Delete.
10845 (one_fork_p): New.
10846 (add_fork): Adjust.
10847 (free_fork): Delete, folded into fork_info::~fork_info().
10848 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
10849 Adjust.
10850 (init_fork_list): Delete.
10851 (linux_fork_killall, linux_fork_mourn_inferior)
10852 (linux_fork_detach, info_checkpoints_command): Adjust.
10853 (_initialize_linux_fork): No longer call init_fork_list.
10854
72f31aea
PA
108552019-03-06 Pedro Alves <palves@redhat.com>
10856
10857 * linux-fork.c (new_fork): New, split out of ...
10858 (add_fork): ... this. Return void. Move "first fork" special
10859 case from here, to ...
10860 (checkpoint_command): ... here.
10861 * linux-linux.h (add_fork): Return void.
10862
efbecbc1
AB
108632019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10864
10865 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
10866
0841c79a
AB
108672019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10868 Chris January <chris.january@arm.com>
10869 David Lecomber <david.lecomber@arm.com>
10870
10871 * f-exp.y: New token, UNOP_INTRINSIC.
10872 (exp): New pattern using UNOP_INTRINSIC token.
10873 (f77_keywords): Add 'abs' keyword.
10874 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
10875 (value_from_host_double): New function.
10876 (evaluate_subexp_f): Support UNOP_ABS.
10877
4a270568
AB
108782019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10879
10880 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
10881 types.
10882
067630bd
AB
108832019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10884
10885 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
10886 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
10887 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
10888
3be47f7a
AB
108892019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10890
10891 * f-exp.y (convert_to_kind_type): Handle more type kinds.
10892
4d00f5d8
AB
108932019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10894 Chris January <chris.january@arm.com>
10895
10896 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
10897 * f-exp.y: Define 'KIND' token.
10898 (exp): New pattern for KIND expressions.
10899 (ptype): Handle types with a kind extension.
10900 (direct_abs_decl): Extend to spot kind extensions.
10901 (f77_keywords): Add 'kind' to the list.
10902 (push_kind_type): New function.
10903 (convert_to_kind_type): New function.
10904 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
10905 * parse.c (operator_length_standard): Likewise.
10906 * parser-defs.h (enum type_pieces): Add tp_kind.
10907 * std-operator.def: Add UNOP_KIND.
10908
e454224f
AB
109092019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10910
10911 * f-exp.y (f_parse): Set yydebug.
10912
9dad4a58
AB
109132019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10914
10915 * f-lang.c (evaluate_subexp_f): New function.
10916 (exp_descriptor_f): New global.
10917 (f_language_defn): Use exp_descriptor_f instead of
10918 exp_descriptor_standard.
10919
c8f91604
AB
109202019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10921
10922 * f-exp.y (struct token): Add comments.
10923 (dot_ops): Remove uppercase versions and the end marker.
10924 (f77_keywords): Likewise.
10925 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
10926 entries in the dot_ops array are case insensitive, and use
10927 strncasecmp to compare strings. Also some whitespace cleanup in
10928 this area. Similar for the f77_keywords array, except entries in
10929 this list might be case sensitive.
10930
dd9f2c76
AB
109312019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10932
10933 * f-exp.y (struct f77_boolean_val): Add comments.
10934 (boolean_values): Remove uppercase versions, and end marker.
10935 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
10936 and use strncasecmp to achieve case insensitivity. Additionally,
10937 perform whitespace cleanup around this code.
10938
67a3048c
TT
109392019-03-06 Tom Tromey <tromey@adacore.com>
10940
10941 * remote-sim.c (gdbsim_target_open): Use result of
10942 gdb_argv::release.
10943
aa3cfbda
RB
109442019-03-06 Richard Bunt <richard.bunt@arm.com>
10945 Dirk Schubert <dirk.schubert@arm.com>
10946 Chris January <chris.january@arm.com>
10947
10948 * eval.c (evaluate_subexp_standard): Call Fortran argument
10949 wrapping logic.
10950 * f-lang.c (struct value): A value which can be passed into a
10951 Fortran function call.
10952 (fortran_argument_convert): Wrap Fortran arguments in a pointer
10953 where appropriate.
10954 (struct type): Value ready for a Fortran function call.
10955 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
10956 is needed.
10957 * f-lang.h (fortran_argument_convert): Declaration.
10958 (fortran_preserve_arg_pointer): Declaration.
10959 * infcall.c (value_arg_coerce): Call Fortran argument logic.
10960
ea38e5df
TT
109612019-03-05 Tom Tromey <tromey@adacore.com>
10962
10963 * python/py-prettyprint.c (print_string_repr): Remove #if.
10964 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
10965
06b5b831
TT
109662019-03-05 Tom Tromey <tromey@adacore.com>
10967
10968 * target.c (the_dummy_target): Move later. Change type to
10969 "dummy_target".
10970 (initialize_targets): Don't initialize the_dummy_target.
10971
edbd9e45
TT
109722019-03-05 Tom Tromey <tromey@adacore.com>
10973
10974 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
10975 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
10976
c119e040
TT
109772019-03-05 Tom Tromey <tromey@adacore.com>
10978
10979 * windows-nat.c (windows_nat_target::attach)
10980 (windows_nat_target::detach): Don't call gdb_flush.
10981 * valprint.c (generic_val_print, val_print, val_print_string):
10982 Don't call gdb_flush.
10983 * utils.c (defaulted_query): Don't call gdb_flush.
10984 * typeprint.c (print_type_scalar): Don't call gdb_flush.
10985 * target.c (target_announce_detach): Don't call gdb_flush.
10986 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
10987 * remote.c (extended_remote_target::attach): Don't call
10988 gdb_flush.
10989 * procfs.c (procfs_target::detach): Don't call gdb_flush.
10990 * printcmd.c (do_examine): Don't call gdb_flush.
10991 (info_display_command): Don't call gdb_flush.
10992 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
10993 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
10994 * memattr.c (info_mem_command): Don't call gdb_flush.
10995 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
10996 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
10997 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
10998 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
10999 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
11000 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
11001 (gnu_nat_target::detach): Don't call gdb_flush.
11002 * f-valprint.c (f_val_print): Don't call gdb_flush.
11003 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
11004 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
11005 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
11006 gdb_flush.
11007 * c-valprint.c (c_val_print): Don't call gdb_flush.
11008 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
11009
895dafa6
TT
110102019-03-05 Tom Tromey <tromey@adacore.com>
11011
11012 * varobj.c (update_dynamic_varobj_children): Update.
11013 (install_default_visualizer): Use reset, not release.
11014 * value.c (set_internalvar): Update.
11015 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
11016 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
11017 ATTRIBUTE_UNUSED_RESULT.
11018
88a774b9
TT
110192019-03-05 Tom Tromey <tromey@adacore.com>
11020
11021 * remote.c (class scoped_remote_fd) <release>: Add
11022 ATTRIBUTE_UNUSED_RESULT.
11023
4e4a8b93
TT
110242019-03-05 Tom Tromey <tromey@adacore.com>
11025
11026 * macroexp.c (struct macro_buffer) <release>: Add
11027 ATTRIBUTE_UNUSED_RESULT.
11028
083eef1f
TT
110292019-03-05 Tom Tromey <tromey@adacore.com>
11030
11031 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
11032 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
11033 ATTRIBUTE_UNUSED_RESULT.
11034
3cabd438
TT
110352019-03-05 Tom Tromey <tromey@adacore.com>
11036
11037 * common/scoped_fd.h (class scoped_fd) <release>: Add
11038 ATTRIBUTE_UNUSED_RESULT.
11039
41e3300a
TT
110402019-03-05 Tom Tromey <tromey@adacore.com>
11041
11042 * parser-defs.h (struct parser_state) <release>: Add
11043 ATTRIBUTE_UNUSED_RESULT.
11044
18cb7c9f
TT
110452019-03-05 Tom Tromey <tromey@adacore.com>
11046
11047 * utils.h (class gdb_argv) <release>: Add
11048 ATTRIBUTE_UNUSED_RESULT.
11049 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
11050
41fa577f
EZ
110512019-03-02 Eli Zaretskii <eliz@gnu.org>
11052
a6a4b2c6
EZ
11053 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
11054 for-loop range, to avoid compiler warnings.
11055
11056 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
11057 avoid compiler warnings about unused variables.
11058
742a7df5
EZ
11059 * NEWS: Mention end of support for native debugging on MS-Windows
11060 before XP.
11061
41fa577f
EZ
11062 PR gdb/24292
11063 * common/netstuff.c:
11064 * gdbserver/gdbreplay.c
11065 * gdbserver/remote-utils.c:
11066 * ser-tcp.c:
11067 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
11068 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
11069 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
11070 'getaddrinfo' and 'freeaddrinfo' were not available before
11071 Windows XP, and mingw.org's MinGW headers by default define
11072 _WIN32_WINNT to 0x500.
11073
827f438f
GB
110742019-03-01 Gary Benson <gbenson@redhat.com>
11075
11076 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
11077
92137da0
RO
110782019-02-28 Brian Vandenberg <phantall@gmail.com>
11079 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11080
11081 PR gdb/8527
11082 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
11083 set_sigint_trap, clear_sigint_trap.
11084
799efbe8
PW
110852019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11086
11087 * target.c (target_detach): Clear the regcache and the
11088 frame cache.
11089
8ed25214
PA
110902019-02-27 Pedro Alves <palves@redhat.com>
11091
11092 * utils.c (set_screen_size): When we cap the height/width sizes,
11093 tweak the corresponding command variable to show "unlimited":
11094
23031e31
SJ
110952019-02-27 Saagar Jha <saagar@saagarjha.com>
11096 Pedro Alves <palves@redhat.com>
11097
11098 * utils.c (set_screen_size): Reduce "infinite" rows and columns
11099 before calling rl_set_screen_size.
11100
6c28e44a
TT
111012019-02-27 Tom Tromey <tromey@adacore.com>
11102
11103 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
11104 define.
11105 * python/py-value.c: Remove Python 2.4 workaround.
11106 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
11107 workaround.
11108 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
11109 Python 2.4 workaround.
11110 * python/python-internal.h: Remove Python 2.4 comment.
11111 (Py_ssize_t): Don't define.
11112 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
11113 (gdb_Py_DECREF): Remove Python 2.4 workaround.
11114 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
11115 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
11116 * python/python.c (do_start_initialization): Remove Python 2.4
11117 workaround.
11118 * python/py-prettyprint.c (class dummy_python_frame): Remove.
11119 (print_children): Remove Python 2.4 workaround.
11120 * python/py-inferior.c (buffer_procs): Remove Python 2.4
11121 workaround.
11122 (CHARBUFFERPROC_NAME): Remove.
11123 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
11124 Python 2.4 workaround.
11125
2c3fc25d 111262019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 11127
2c3fc25d
KB
11128 * NEWS: Note minimum Python version.
11129
6ca62222
KB
111302019-02-27 Kevin Buettner <kevinb@redhat.com>
11131
11132 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
11133 code from these functions. Remove corresponding ifdefs. Use
11134 Py_buffer_up instead of explicit calls to PyBuffer_Release.
11135 Remove gotos and target of gotos.
11136 (infpy_search_memory): Likewise.
11137
f4bc7d2c
AB
111382019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11139
11140 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
11141 (hppa_gdbarch_init): Don't register deleted functions with
11142 gdbarch.
11143
9734a586
AB
111442019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11145
11146 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
11147 (h8300_unwind_sp): Delete.
11148 (h8300_dummy_id): Delete.
11149 (h8300_gdbarch_init): Don't register deleted functions with
11150 gdbarch.
11151
68b867f3
AB
111522019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11153
11154 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
11155 (ft32_unwind_pc): Delete.
11156 (ft32_unwind_sp): Delete.
11157 (ft32_gdbarch_init): Don't register deleted functions with
11158 gdbarch.
11159
2fbe7ad0
AB
111602019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11161
11162 * gdb/frv-tdep.c (frv_dummy_id): Delete.
11163 (frv_unwind_pc): Delete.
11164 (frv_unwind_sp): Delete.
11165 (frv_gdbarch_init): Don't register deleted functions with
11166 gdbarch.
11167
76055cbe
AB
111682019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11169
11170 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
11171 (riscv_unwind_pc): Delete.
11172 (riscv_unwind_sp): Delete.
11173 (riscv_gdbarch_init): Don't register deleted functions with
11174 gdbarch.
11175
4133e5a1
AB
111762019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11177
11178 * gdb/csky-tdep.c (csky_dummy_id): Delete.
11179 (csky_unwind_pc): Delete.
11180 (csky_unwind_sp): Delete.
11181 (csky_gdbarch_init): Don't register deleted functions with
11182 gdbarch.
11183
8010f576
AB
111842019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11185
11186 * gdb/cris-tdep.c (cris_dummy_id): Delete.
11187 (cris_unwind_pc): Delete.
11188 (cris_unwind_sp): Delete.
11189 (cris_gdbarch_init): Don't register deleted functions with
11190 gdbarch.
11191
b56bf084
AB
111922019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11193
11194 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
11195 (bfin_unwind_pc): Delete.
11196 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
11197
a19a650f
AB
111982019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11199
11200 * gdb/arm-tdep.c (arm_dummy_id): Delete.
11201 (arm_unwind_pc): Delete.
11202 (arm_unwind_sp): Delete.
11203 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
11204
f8278c3c
AB
112052019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11206
11207 * gdb/arc-tdep.c (arc_dummy_id): Delete.
11208 (arc_unwind_pc): Delete.
11209 (arc_unwind_sp): Delete.
11210 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
11211
480e46cf
AB
112122019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11213
11214 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
11215 (alpha_unwind_pc): Delete.
11216 (alpha_gdbarch_init): Don't register deleted functions with
11217 gdbarch.
11218
7a995095
AB
112192019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11220
11221 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
11222 (aarch64_unwind_pc): Delete.
11223 (aarch64_unwind_sp): Delete.
11224 (aarch64_gdbarch_init): Don't register deleted functions with
11225 gdbarch.
11226
bf9a735e
AB
112272019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11228
11229 * gdbtypes.c (type_align): Don't consider static members when
11230 computing structure alignment.
11231
5561fc30
AB
112322019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11233
11234 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
11235 return 0 for other types.
11236 * arch-utils.c (default_type_align): Always return 0.
11237 * gdbarch.h: Regenerate.
11238 * gdbarch.sh (type_align): Extend comment.
11239 * gdbtypes.c (type_align): Add additional comments, always call
11240 gdbarch_type_align before applying the default rules.
11241 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
11242 generic code will then apply a suitable default.
11243 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
11244 types, return 0 for other types.
11245
9335e75a
JB
112462019-02-27 Joel Brobecker <brobecker@adacore.com>
11247
11248 * NEWS: Create a new section for the next release branch.
11249 Rename the section of the current branch, now that it has
11250 been cut.
11251
3d34d8de
JB
112522019-02-27 Joel Brobecker <brobecker@adacore.com>
11253
11254 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
11255 * version.in: Bump version to 8.3.50.DATE-git.
11256
143420fb
SM
112572019-02-26 Simon Marchi <simon.marchi@efficios.com>
11258
11259 * aix-thread.c (ptid_cmp): Remove unused variable.
11260 (get_signaled_thread): Likewise.
11261 (store_regs_user_thread): Likewise.
11262 (store_regs_kernel_thread): Likewise.
11263 (fetch_regs_kernel_thread): Remove shadowed variable.
11264
172fb711
AB
112652019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
11266
11267 * features/riscv/32bit-cpu.xml: Add register numbers.
11268 * features/riscv/32bit-fpu.c: Regenerate.
11269 * features/riscv/32bit-fpu.xml: Add register numbers.
11270 * features/riscv/64bit-cpu.xml: Add register numbers.
11271 * features/riscv/64bit-fpu.c: Regenerate.
11272 * features/riscv/64bit-fpu.xml: Add register numbers.
11273
26c89782
KB
112742019-02-26 Kevin Buettner <kevinb@redhat.com>
11275
af54ade9 11276 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
11277 * python/py-value.c (convert_buffer_and_type_to_value): New
11278 function.
11279 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
11280 Add support for handling an optional second argument. Call
11281 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
11282 * python/python-internal.h (Py_buffer_deleter): New struct.
11283 (Py_buffer_up): New typedef.
11284
0f58c9e8
JB
112852019-02-25 John Baldwin <jhb@FreeBSD.org>
11286
11287 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
11288 instead of releasing ownership.
11289
0a0f4c01
JR
112902019-02-25 Jordan Rupprecht <rupprecht@google.com>
11291
11292 * dwarf2read.c (open_and_init_dwp_file): Call
11293 elf_numsections instead of bfd_count_sections to initialize
11294 dwp_file->num_sections.
11295
cd5a152c
TT
112962019-02-25 Tom Tromey <tromey@adacore.com>
11297
11298 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
11299
8a6a8513
SDJ
113002019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
11301
11302 * gcore.in: Add '--readnever' option when invoking GDB.
11303
04dcda9c
SM
113042019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11305
11306 * MAINTAINERS: Update my email address.
11307
07bc701d
SM
113082019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11309
11310 * build-id.c (build_id_to_debug_bfd_1): New function.
11311 (build_id_to_debug_bfd): Look for separate debug file in
11312 sysroot.
11313
c6f4a5d0
AB
113142019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
11315
11316 * gdbarch.sh: Update the copyright year range that is placed into
11317 generated files.
11318
9600246d
KS
113192019-02-22 Keith Seitz <keiths@redhat.com>
11320
11321 PR symtab/23853
11322 * linespec.c (create_sals_line_offset): Search for the default
11323 symtab's filename instead of its fullname.
11324
7557a514
AH
113252019-02-21 Alan Hayward <alan.hayward@arm.com>
11326
11327 * NEWS: Update style defaults.
11328
ee2bcb0c
AH
113292019-02-21 Alan Hayward <alan.hayward@arm.com>
11330
11331 * main.c (captured_main_1): Disable styling in batch mode.
11332
0c95f9ed
TT
113332019-02-20 Tom Tromey <tom@tromey.com>
11334
11335 * symtab.c (symtab_symbol_info): Fix typos.
11336
c763b894
TT
113372019-02-20 Tom Tromey <tromey@adacore.com>
11338
11339 * findcmd.c (_initialize_mem_search): Use upper case for
11340 metasyntactic variables.
11341
0ef8a082
AH
113422019-02-20 Alan Hayward <alan.hayward@arm.com>
11343
11344 * aarch64-tdep.c (aarch64_add_reggroups): New function.
11345 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
11346
6caa91b6
SM
113472019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
11348
11349 * top.h (source_file_name): Change to std::string.
11350 * top.c (source_file_name): Likewise.
11351 (command_line_input): Adjust.
11352 * cli/cli-script.c (script_from_file): Adjust.
11353
98814c6c
TT
113542019-02-19 Tom Tromey <tromey@adacore.com>
11355
11356 * ravenscar-thread.c
11357 (ravenscar_thread_target::update_thread_list): Don't call
11358 ada_build_task_list.
11359 * ada-lang.h (ada_build_task_list): Don't declare.
11360 * ada-tasks.c (struct ada_tasks_inferior_data)
11361 <task_list_valid_p>: Now bool.
11362 (read_known_tasks, ada_task_list_changed)
11363 (ada_tasks_invalidate_inferior_data): Update.
11364 (read_known_tasks_array): Return bool.
11365 (read_known_tasks_list): Likewise.
11366 (read_known_tasks): Return void.
11367 (ada_build_task_list): Now static.
11368
70cd633e
AB
113692019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
11370
11371 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
11372 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
11373
040b3e95
PW
113742019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11375
11376 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
11377 variant for ada_tasks_pspace_data_handle and
11378 ada_tasks_inferior_data_handle.
11379 (ada_tasks_pspace_data_cleanup): New function.
11380 (ada_tasks_inferior_data_cleanup): New function.
11381
9409233b
TT
113822019-02-17 Tom Tromey <tom@tromey.com>
11383
11384 * macrotab.h (macro_source_fullname): Return a std::string.
11385 * macrotab.c (macro_include, check_for_redefinition)
11386 (macro_undef, macro_lookup_definition, foreach_macro)
11387 (foreach_macro_in_scope): Update.
11388 (macro_source_fullname): Return a std::string.
11389 * macrocmd.c (show_pp_source_pos): Update.
11390
6506371f
TT
113912019-02-17 Tom Tromey <tom@tromey.com>
11392
11393 * macrocmd.c (show_pp_source_pos): Style the file names.
11394
0c820d67
TT
113952019-02-17 Tom Tromey <tom@tromey.com>
11396
11397 PR tui/24197:
11398 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
11399
a0087920
TT
114002019-02-17 Tom Tromey <tom@tromey.com>
11401
11402 * ada-lang.c (user_select_syms): Use filtered printing.
11403 * utils.c (wrap_style): New global.
11404 (desired_style): Remove.
11405 (emit_style_escape): Add stream parameter.
11406 (set_output_style, reset_terminal_style, prompt_for_continue):
11407 Update.
11408 (flush_wrap_buffer): Only flush gdb_stdout.
11409 (wrap_here): Set wrap_style.
11410 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
11411 treat escape sequences as a character. Change when wrap buffer is
11412 flushed.
11413 (fputs_styled): Do not set the output style when the default is
11414 requested.
11415 * ui-style.h (struct ui_file_style) <is_default>: New method.
11416 * source.c (print_source_lines_base): Emit escape sequences in one
11417 piece.
11418
75ba10dc
JB
114192019-02-17 Joel Brobecker <brobecker@adacore.com>
11420
11421 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
11422 integers and enumeration types.
11423
a2cd4f14
JB
114242019-02-17 Joel Brobecker <brobecker@adacore.com>
11425
11426 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
11427 instead of lookup_symbol_in_language
11428 (do_exact_match): New function.
11429 (ada_get_symbol_name_matcher): Return do_exact_match when
11430 doing a verbatim match.
11431
485b851b
TT
114322019-02-15 Tom Tromey <tromey@adacore.com>
11433
11434 * ravenscar-thread.c (ravenscar_thread_target::resume)
11435 (ravenscar_thread_target::wait): Special case wildcard requests.
11436
0b790b1e
TT
114372019-02-15 Tom Tromey <tromey@adacore.com>
11438
11439 * ravenscar-thread.c (base_ptid): Remove.
11440 (struct ravenscar_thread_target) <close>: New method.
11441 <m_base_ptid>: New member.
11442 <update_inferior_ptid, active_task, task_is_currently_active,
11443 runtime_initialized>: Declare methods.
11444 <ravenscar_thread_target>: Add constructor.
11445 (ravenscar_thread_target::task_is_currently_active)
11446 (ravenscar_thread_target::update_inferior_ptid)
11447 (ravenscar_runtime_initialized): Rename. Now methods.
11448 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
11449 (ravenscar_thread_target::update_thread_list): Update.
11450 (ravenscar_thread_target::active_task): Now method.
11451 (ravenscar_thread_target::store_registers)
11452 (ravenscar_thread_target::prepare_to_store)
11453 (ravenscar_thread_target::prepare_to_store)
11454 (ravenscar_thread_target::mourn_inferior): Update.
11455 (ravenscar_inferior_created): Use "new" to create target.
11456 (ravenscar_thread_target::get_ada_task_ptid): Update.
11457 (_initialize_ravenscar): Don't initialize base_ptid.
11458 (ravenscar_ops): Remove global.
11459
dea57a62
TT
114602019-02-15 Tom Tromey <tromey@adacore.com>
11461
11462 * target.h (push_target): Declare new overload.
11463 * target.c (push_target): New overload, taking an rvalue reference.
11464 * remote.c (remote_target::open_1): Use push_target overload.
11465 * corelow.c (core_target_open): Use push_target overload.
11466
989f3c58
TT
114672019-02-15 Tom Tromey <tromey@adacore.com>
11468
11469 * ravenscar-thread.c (is_ravenscar_task)
11470 (ravenscar_task_is_currently_active): Return bool.
11471 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
11472 (_initialize_ravenscar): Remove "(void)".
11473 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
11474 Return bool.
11475
6cbcc006
TT
114762019-02-15 Tom Tromey <tromey@adacore.com>
11477
11478 * ravenscar-thread.c (ravenscar_runtime_initializer)
11479 (has_ravenscar_runtime, get_running_thread_id)
11480 (ravenscar_thread_target::resume): Fix indentation.
11481
7657f14d
TT
114822019-02-15 Tom Tromey <tromey@adacore.com>
11483
11484 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
11485 from ravenscar_arch_ops.
11486 (sparc_ravenscar_ops::fetch_registers)
11487 (sparc_ravenscar_ops::store_registers): Now methods.
11488 (sparc_ravenscar_prepare_to_store): Remove.
11489 (sparc_ravenscar_ops): Redefine.
11490 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
11491 methods and destructor. Remove members.
11492 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
11493 (ravenscar_thread_target::store_registers)
11494 (ravenscar_thread_target::prepare_to_store): Update.
11495 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
11496 Remove.
11497 (struct ppc_ravenscar_powerpc_ops): Derive from
11498 ravenscar_arch_ops.
11499 (ppc_ravenscar_powerpc_ops::fetch_registers)
11500 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
11501 (ppc_ravenscar_powerpc_ops): Redefine.
11502 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
11503 (ppc_ravenscar_e500_ops::fetch_registers)
11504 (ppc_ravenscar_e500_ops::store_registers): Now methods.
11505 (ppc_ravenscar_e500_ops): Redefine.
11506 * aarch64-ravenscar-thread.c
11507 (aarch64_ravenscar_generic_prepare_to_store): Remove.
11508 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
11509 (aarch64_ravenscar_fetch_registers)
11510 (aarch64_ravenscar_store_registers): Now methods.
11511 (aarch64_ravenscar_ops): Redefine.
11512
5b6ea500
TT
115132019-02-15 Tom Tromey <tromey@adacore.com>
11514
11515 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
11516 (ravenscar_thread_target::stopped_by_hw_breakpoint)
11517 (ravenscar_thread_target::stopped_by_watchpoint)
11518 (ravenscar_thread_target::stopped_data_address)
11519 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
11520
e397fd39
TT
115212019-02-15 Tom Tromey <tromey@adacore.com>
11522
11523 * ravenscar-thread.c: Fix some typos.
11524
cc12f4a8
TT
115252019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11526 Tom Tromey <tromey@adacore.com>
11527
11528 * ada-lang.c (ada_exception_sal): Change addr_string to a
11529 std::string.
11530 (create_ada_exception_catchpoint): Update.
11531
5f486660
TT
115322019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11533 Tom Tromey <tromey@adacore.com>
11534
11535 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
11536 (bp_location_ops): Remove.
11537 (base_breakpoint_allocate_location): Update.
11538 (free_bp_location): Update.
11539 * ada-lang.c (class ada_catchpoint_location)
11540 <ada_catchpoint_location>: Remove ops parameter.
11541 (ada_catchpoint_location_dtor): Remove.
11542 (ada_catchpoint_location_ops): Remove.
11543 (allocate_location_exception): Update.
11544 * breakpoint.h (struct bp_location_ops): Remove.
11545 (class bp_location) <bp_location>: Remove bp_location_ops
11546 parameter.
11547 <~bp_location>: Add destructor.
11548 <ops>: Remove.
11549
b671c7fb
TS
115502019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11551 Pedro Alves <palves@redhat.com>
11552
11553 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
11554 'PATH_MAX'.
11555
8071c5ce
DM
115562019-02-14 David Michael <fedora.dm0@gmail.com>
11557 Samuel Thibault <samuel.thibault@gnu.org>
11558 Thomas Schwinge <thomas@codesourcery.com>
11559
11560 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
11561 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
11562
b1041ae0
TS
115632019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11564
924514e1
TS
11565 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
11566 (check_empty): Use "const char *".
11567
c29ee8d4
TS
11568 * gnu-nat.c (gnu_nat_target::detach): Instead of
11569 'detach_inferior (pid)' call
11570 'detach_inferior (find_inferior_pid (pid))'.
11571
6c6ef69f
TS
11572 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
11573 'nat/fork-inferior.o'.
11574 * gnu-nat.c: #include "nat/fork-inferior.h".
11575
2d0a338c
TS
11576 * gnu-nat.c (gnu_nat_target::detach): Instead of
11577 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
11578 * gnu-nat.h: #include "inf-child.h".
11579 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
11580 'i386_gnu_nat_target::fetch_registers'.
11581 (gnu_store_registers): Rename/move to
11582 'i386_gnu_nat_target::store_registers'.
11583
cabb5f06
TS
11584 * config/i386/nm-i386gnu.h: Don't "#include" any files.
11585 * gnu-nat.h (mach_thread_info): New function.
11586 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
11587
b1041ae0
TS
11588 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
11589
2988d01e
KF
115902019-02-14 Frederic Konrad <konrad@adacore.com>
11591
11592 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
11593
c559d709
JB
115942019-02-14 Joel Brobecker <brobecker@adacore.com>
11595
11596 * windows-nat.c (windows_add_thread): Add new parameter
11597 "main_thread_p" with default value set to false. Update
11598 function documentation as well as all callers.
11599 (windows_delete_thread): Likewise.
11600 (fake_create_process): Update call to windows_add_thread.
11601 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
11602 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
11603 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
11604 call to windows_delete_thread.
11605
007024cc
SM
116062019-02-13 Simon Marchi <simon.marchi@ericsson.com>
11607
11608 * MAINTAINERS: Add Andrew Burgess as global maintainer.
11609
f62318e9
JB
116102019-02-12 John Baldwin <jhb@FreeBSD.org>
11611
11612 * symfile.c (find_separate_debug_file): Use canonical path of
11613 sysroot with child_path instead of gdb_sysroot if it is valid.
11614
cd4b7848
JB
116152019-02-12 John Baldwin <jhb@FreeBSD.org>
11616
11617 * symfile.c (find_separate_debug_file): Use child_path to
11618 determine if an object file is under a sysroot.
11619
efac4bfe
JB
116202019-02-12 John Baldwin <jhb@FreeBSD.org>
11621
11622 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11623 unittests/child-path-selftests.c.
11624 * common/pathstuff.c (child_path): New function.
11625 * common/pathstuff.h (child_path): New prototype.
11626 * unittests/child-path-selftests.c: New file.
11627
402d2bfe
JB
116282019-02-12 John Baldwin <jhb@FreeBSD.org>
11629
11630 * symfile.c (find_separate_debug_file): Look for separate debug
11631 files in debug directories under the sysroot.
11632
1ed9f74e
PW
116332019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11634
11635 * symtab.h (struct minimal_symbol data_p): New const method.
11636 (struct minimal_symbol text_p): Likewise.
11637 * symtab.c (output_source_filename): Use file name style
11638 to print file name.
11639 (print_symbol_info): Likewise.
11640 (print_msymbol_info): Use address style to print addresses.
11641 Use function name style to print executable text symbols.
11642 (expand_symtab_containing_pc): Use data_p.
11643 (find_pc_sect_compunit_symtab): Likewise.
11644
2636d81d
PW
116452019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11646
11647 * breakpoint.c (describe_other_breakpoints): Use address style
11648 to print addresses.
11649 (say_where): Likewise.
11650
ac8c53cc
PW
116512019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11652
11653 * ada-typeprint.c (print_func_type): Print function name
11654 style to print function name.
11655 * c-typeprint.c (c_print_type_1): Likewise.
11656
ea638c43
AH
116572019-02-11 Alan Hayward <alan.hayward@arm.com>
11658
11659 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
11660 for execve.
11661
ab759ca8
PW
116622019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11663
11664 * c-exp.y (direct_abs_decl): Use emplace_back to record the
11665 type_stack.
11666
aff29d1c
JB
116672019-02-10 Joel Brobecker <brobecker@adacore.com>
11668
11669 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
11670 TYPE_CODE_REF types.
11671
617126bc
JW
116722019-02-08 Jim Wilson <jimw@sifive.com>
11673
11674 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
11675 (riscv_linux_fregset): New.
11676 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
11677
46e3ed7f
TT
116782019-02-07 Tom Tromey <tom@tromey.com>
11679
11680 * thread.c (thread_cancel_execution_command): Update.
11681 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
11682 methods.
11683 (struct thread_fsm_ops): Remove.
11684 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
11685 (thread_fsm_should_stop, thread_fsm_return_value)
11686 (thread_fsm_set_finished, thread_fsm_finished_p)
11687 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
11688 Don't declare.
11689 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
11690 * infrun.c (clear_proceed_status_thread)
11691 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
11692 (print_stop_event): Update.
11693 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
11694 Add constructor.
11695 (step_command_fsm_ops): Remove.
11696 (new_step_command_fsm): Remove.
11697 (step_1): Update.
11698 (step_command_fsm::should_stop): Rename from
11699 step_command_fsm_should_stop.
11700 (step_command_fsm::clean_up): Rename from
11701 step_command_fsm_clean_up.
11702 (step_command_fsm::do_async_reply_reason): Rename from
11703 step_command_fsm_async_reply_reason.
11704 (struct until_next_fsm): Inherit from thread_fsm. Add
11705 constructor.
11706 (until_next_fsm_ops): Remove.
11707 (new_until_next_fsm): Remove.
11708 (until_next_fsm::should_stop): Rename from
11709 until_next_fsm_should_stop.
11710 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
11711 (until_next_fsm::do_async_reply_reason): Rename from
11712 until_next_fsm_async_reply_reason.
11713 (struct finish_command_fsm): Inherit from thread_fsm. Add
11714 constructor. Change type of breakpoint.
11715 (finish_command_fsm_ops): Remove.
11716 (new_finish_command_fsm): Remove.
11717 (finish_command_fsm::should_stop): Rename from
11718 finish_command_fsm_should_stop.
11719 (finish_command_fsm::clean_up): Rename from
11720 finish_command_fsm_clean_up.
11721 (finish_command_fsm::return_value): Rename from
11722 finish_command_fsm_return_value.
11723 (finish_command_fsm::do_async_reply_reason): Rename from
11724 finish_command_fsm_async_reply_reason.
11725 (finish_command): Update.
11726 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
11727 Add constructor.
11728 (call_thread_fsm_ops): Remove.
11729 (call_thread_fsm::call_thread_fsm): Rename from
11730 new_call_thread_fsm.
11731 (call_thread_fsm::should_stop): Rename from
11732 call_thread_fsm_should_stop.
11733 (call_thread_fsm::should_notify_stop): Rename from
11734 call_thread_fsm_should_notify_stop.
11735 (run_inferior_call, call_function_by_hand_dummy): Update.
11736 * cli/cli-interp.c (should_print_stop_to_console): Update.
11737 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
11738 Add constructor. Change type of location_breakpoint,
11739 caller_breakpoint.
11740 (until_break_fsm_ops): Remove.
11741 (new_until_break_fsm): Remove.
11742 (until_break_fsm::should_stop): Rename from
11743 until_break_fsm_should_stop.
11744 (until_break_fsm::clean_up): Rename from
11745 until_break_fsm_clean_up.
11746 (until_break_fsm::do_async_reply_reason): Rename from
11747 until_break_fsm_async_reply_reason.
11748 (until_break_command): Update.
11749 * thread-fsm.c: Remove.
11750 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
11751
1a5c2598
TT
117522019-02-07 Tom Tromey <tom@tromey.com>
11753
11754 * yy-remap.h: Add include guard.
11755 * xtensa-tdep.h: Add include guard.
11756 * xcoffread.h: Rename include guard.
11757 * varobj-iter.h: Add include guard.
11758 * tui/tui.h: Rename include guard.
11759 * tui/tui-winsource.h: Rename include guard.
11760 * tui/tui-wingeneral.h: Rename include guard.
11761 * tui/tui-windata.h: Rename include guard.
11762 * tui/tui-win.h: Rename include guard.
11763 * tui/tui-stack.h: Rename include guard.
11764 * tui/tui-source.h: Rename include guard.
11765 * tui/tui-regs.h: Rename include guard.
11766 * tui/tui-out.h: Rename include guard.
11767 * tui/tui-layout.h: Rename include guard.
11768 * tui/tui-io.h: Rename include guard.
11769 * tui/tui-hooks.h: Rename include guard.
11770 * tui/tui-file.h: Rename include guard.
11771 * tui/tui-disasm.h: Rename include guard.
11772 * tui/tui-data.h: Rename include guard.
11773 * tui/tui-command.h: Rename include guard.
11774 * tic6x-tdep.h: Add include guard.
11775 * target/waitstatus.h: Rename include guard.
11776 * target/wait.h: Rename include guard.
11777 * target/target.h: Rename include guard.
11778 * target/resume.h: Rename include guard.
11779 * target-float.h: Rename include guard.
11780 * stabsread.h: Add include guard.
11781 * rs6000-tdep.h: Add include guard.
11782 * riscv-fbsd-tdep.h: Add include guard.
11783 * regformats/regdef.h: Rename include guard.
11784 * record.h: Rename include guard.
11785 * python/python.h: Rename include guard.
11786 * python/python-internal.h: Rename include guard.
11787 * python/py-stopevent.h: Rename include guard.
11788 * python/py-ref.h: Rename include guard.
11789 * python/py-record.h: Rename include guard.
11790 * python/py-record-full.h: Rename include guard.
11791 * python/py-record-btrace.h: Rename include guard.
11792 * python/py-instruction.h: Rename include guard.
11793 * python/py-events.h: Rename include guard.
11794 * python/py-event.h: Rename include guard.
11795 * procfs.h: Add include guard.
11796 * proc-utils.h: Add include guard.
11797 * p-lang.h: Add include guard.
11798 * or1k-tdep.h: Rename include guard.
11799 * observable.h: Rename include guard.
11800 * nto-tdep.h: Rename include guard.
11801 * nat/x86-linux.h: Rename include guard.
11802 * nat/x86-linux-dregs.h: Rename include guard.
11803 * nat/x86-gcc-cpuid.h: Add include guard.
11804 * nat/x86-dregs.h: Rename include guard.
11805 * nat/x86-cpuid.h: Rename include guard.
11806 * nat/ppc-linux.h: Rename include guard.
11807 * nat/mips-linux-watch.h: Rename include guard.
11808 * nat/linux-waitpid.h: Rename include guard.
11809 * nat/linux-ptrace.h: Rename include guard.
11810 * nat/linux-procfs.h: Rename include guard.
11811 * nat/linux-osdata.h: Rename include guard.
11812 * nat/linux-nat.h: Rename include guard.
11813 * nat/linux-namespaces.h: Rename include guard.
11814 * nat/linux-btrace.h: Rename include guard.
11815 * nat/glibc_thread_db.h: Rename include guard.
11816 * nat/gdb_thread_db.h: Rename include guard.
11817 * nat/gdb_ptrace.h: Rename include guard.
11818 * nat/fork-inferior.h: Rename include guard.
11819 * nat/amd64-linux-siginfo.h: Rename include guard.
11820 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
11821 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
11822 * nat/aarch64-linux.h: Rename include guard.
11823 * nat/aarch64-linux-hw-point.h: Rename include guard.
11824 * mn10300-tdep.h: Add include guard.
11825 * mips-linux-tdep.h: Add include guard.
11826 * mi/mi-parse.h: Rename include guard.
11827 * mi/mi-out.h: Rename include guard.
11828 * mi/mi-main.h: Rename include guard.
11829 * mi/mi-interp.h: Rename include guard.
11830 * mi/mi-getopt.h: Rename include guard.
11831 * mi/mi-console.h: Rename include guard.
11832 * mi/mi-common.h: Rename include guard.
11833 * mi/mi-cmds.h: Rename include guard.
11834 * mi/mi-cmd-break.h: Rename include guard.
11835 * m2-lang.h: Add include guard.
11836 * location.h: Rename include guard.
11837 * linux-record.h: Rename include guard.
11838 * linux-nat.h: Add include guard.
11839 * linux-fork.h: Add include guard.
11840 * i386-darwin-tdep.h: Rename include guard.
11841 * hppa-linux-offsets.h: Add include guard.
11842 * guile/guile.h: Rename include guard.
11843 * guile/guile-internal.h: Rename include guard.
11844 * gnu-nat.h: Rename include guard.
11845 * gdb-stabs.h: Rename include guard.
11846 * frv-tdep.h: Add include guard.
11847 * f-lang.h: Add include guard.
11848 * event-loop.h: Add include guard.
11849 * darwin-nat.h: Rename include guard.
11850 * cp-abi.h: Rename include guard.
11851 * config/sparc/nm-sol2.h: Rename include guard.
11852 * config/nm-nto.h: Rename include guard.
11853 * config/nm-linux.h: Add include guard.
11854 * config/i386/nm-i386gnu.h: Rename include guard.
11855 * config/djgpp/nl_types.h: Rename include guard.
11856 * config/djgpp/langinfo.h: Rename include guard.
11857 * compile/gcc-cp-plugin.h: Add include guard.
11858 * compile/gcc-c-plugin.h: Add include guard.
11859 * compile/compile.h: Rename include guard.
11860 * compile/compile-object-run.h: Rename include guard.
11861 * compile/compile-object-load.h: Rename include guard.
11862 * compile/compile-internal.h: Rename include guard.
11863 * compile/compile-cplus.h: Rename include guard.
11864 * compile/compile-c.h: Rename include guard.
11865 * common/xml-utils.h: Rename include guard.
11866 * common/x86-xstate.h: Rename include guard.
11867 * common/version.h: Rename include guard.
11868 * common/vec.h: Rename include guard.
11869 * common/tdesc.h: Rename include guard.
11870 * common/selftest.h: Rename include guard.
11871 * common/scoped_restore.h: Rename include guard.
11872 * common/scoped_mmap.h: Rename include guard.
11873 * common/scoped_fd.h: Rename include guard.
11874 * common/safe-iterator.h: Rename include guard.
11875 * common/run-time-clock.h: Rename include guard.
11876 * common/refcounted-object.h: Rename include guard.
11877 * common/queue.h: Rename include guard.
11878 * common/ptid.h: Rename include guard.
11879 * common/print-utils.h: Rename include guard.
11880 * common/preprocessor.h: Rename include guard.
11881 * common/pathstuff.h: Rename include guard.
11882 * common/observable.h: Rename include guard.
11883 * common/netstuff.h: Rename include guard.
11884 * common/job-control.h: Rename include guard.
11885 * common/host-defs.h: Rename include guard.
11886 * common/gdb_wait.h: Rename include guard.
11887 * common/gdb_vecs.h: Rename include guard.
11888 * common/gdb_unlinker.h: Rename include guard.
11889 * common/gdb_unique_ptr.h: Rename include guard.
11890 * common/gdb_tilde_expand.h: Rename include guard.
11891 * common/gdb_sys_time.h: Rename include guard.
11892 * common/gdb_string_view.h: Rename include guard.
11893 * common/gdb_splay_tree.h: Rename include guard.
11894 * common/gdb_setjmp.h: Rename include guard.
11895 * common/gdb_ref_ptr.h: Rename include guard.
11896 * common/gdb_optional.h: Rename include guard.
11897 * common/gdb_locale.h: Rename include guard.
11898 * common/gdb_assert.h: Rename include guard.
11899 * common/filtered-iterator.h: Rename include guard.
11900 * common/filestuff.h: Rename include guard.
11901 * common/fileio.h: Rename include guard.
11902 * common/environ.h: Rename include guard.
11903 * common/common-utils.h: Rename include guard.
11904 * common/common-types.h: Rename include guard.
11905 * common/common-regcache.h: Rename include guard.
11906 * common/common-inferior.h: Rename include guard.
11907 * common/common-gdbthread.h: Rename include guard.
11908 * common/common-exceptions.h: Rename include guard.
11909 * common/common-defs.h: Rename include guard.
11910 * common/common-debug.h: Rename include guard.
11911 * common/cleanups.h: Rename include guard.
11912 * common/buffer.h: Rename include guard.
11913 * common/btrace-common.h: Rename include guard.
11914 * common/break-common.h: Rename include guard.
11915 * cli/cli-utils.h: Rename include guard.
11916 * cli/cli-style.h: Rename include guard.
11917 * cli/cli-setshow.h: Rename include guard.
11918 * cli/cli-script.h: Rename include guard.
11919 * cli/cli-interp.h: Rename include guard.
11920 * cli/cli-decode.h: Rename include guard.
11921 * cli/cli-cmds.h: Rename include guard.
11922 * charset-list.h: Add include guard.
11923 * buildsym-legacy.h: Rename include guard.
11924 * bfin-tdep.h: Add include guard.
11925 * ax.h: Rename include guard.
11926 * arm-linux-tdep.h: Add include guard.
11927 * arm-fbsd-tdep.h: Add include guard.
11928 * arch/xtensa.h: Rename include guard.
11929 * arch/tic6x.h: Add include guard.
11930 * arch/i386.h: Add include guard.
11931 * arch/arm.h: Rename include guard.
11932 * arch/arm-linux.h: Rename include guard.
11933 * arch/arm-get-next-pcs.h: Rename include guard.
11934 * arch/amd64.h: Add include guard.
11935 * arch/aarch64-insn.h: Rename include guard.
11936 * arch-utils.h: Rename include guard.
11937 * annotate.h: Add include guard.
11938 * amd64-darwin-tdep.h: Rename include guard.
11939 * aarch64-linux-tdep.h: Add include guard.
11940 * aarch64-fbsd-tdep.h: Add include guard.
11941 * aarch32-linux-nat.h: Add include guard.
11942
ab9268d2
PW
119432019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11944
11945 * macrotab.c (macro_define_internal): New function that
11946 factorizes macro_define_object_internal and macro_define_function
11947 code.
11948 (macro_define_object_internal): Use macro_define_internal.
11949 (macro_define_function): Likewise.
11950
bb0da2b4
PW
119512019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11952
11953 * macrocmd.c (extract_identifier): Return
11954 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
11955 callers.
11956
424eb552
JB
119572019-02-06 John Baldwin <jhb@FreeBSD.org>
11958
11959 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
11960
1688cb29
TT
119612019-02-05 Tom Tromey <tom@tromey.com>
11962
11963 * target.c (target_stack::unpush): Move assertion earlier.
11964
b5eba2d8
TT
119652019-01-30 Tom Tromey <tom@tromey.com>
11966
11967 PR python/23615:
11968 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
11969 (gdbpy_parse_and_eval): Likewise.
11970 * python/python-internal.h (gdbpy_allow_threads): New class.
11971
7054e2ff
JB
119722019-01-28 John Baldwin <jhb@FreeBSD.org>
11973
11974 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
11975 (aarch64_fbsd_fpregmap): Move earlier.
11976 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
11977 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11978 instead of individual calls to trad_frame_set_reg_addr.
11979 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
11980 earlier.
11981 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
11982 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11983 instead of individual calls to trad_frame_set_reg_addr.
11984
36c25ffa
AH
119852019-01-28 Alan Hayward <alan.hayward@arm.com>
11986
11987 * CONTRIBUTE: Replace contribution list with wiki link.
11988
a0707f3c
TT
119892019-01-25 Tom Tromey <tom@tromey.com>
11990
11991 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
11992
0747795c
TT
119932019-01-25 Tom Tromey <tom@tromey.com>
11994
11995 * xtensa-linux-nat.c: Fix common/ includes.
11996 * xml-support.h: Fix common/ includes.
11997 * xml-support.c: Fix common/ includes.
11998 * x86-linux-nat.c: Fix common/ includes.
11999 * windows-nat.c: Fix common/ includes.
12000 * varobj.h: Fix common/ includes.
12001 * varobj.c: Fix common/ includes.
12002 * value.c: Fix common/ includes.
12003 * valops.c: Fix common/ includes.
12004 * utils.c: Fix common/ includes.
12005 * unittests/xml-utils-selftests.c: Fix common/ includes.
12006 * unittests/utils-selftests.c: Fix common/ includes.
12007 * unittests/unpack-selftests.c: Fix common/ includes.
12008 * unittests/tracepoint-selftests.c: Fix common/ includes.
12009 * unittests/style-selftests.c: Fix common/ includes.
12010 * unittests/string_view-selftests.c: Fix common/ includes.
12011 * unittests/scoped_restore-selftests.c: Fix common/ includes.
12012 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
12013 * unittests/scoped_fd-selftests.c: Fix common/ includes.
12014 * unittests/rsp-low-selftests.c: Fix common/ includes.
12015 * unittests/parse-connection-spec-selftests.c: Fix common/
12016 includes.
12017 * unittests/optional-selftests.c: Fix common/ includes.
12018 * unittests/offset-type-selftests.c: Fix common/ includes.
12019 * unittests/observable-selftests.c: Fix common/ includes.
12020 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
12021 * unittests/memrange-selftests.c: Fix common/ includes.
12022 * unittests/memory-map-selftests.c: Fix common/ includes.
12023 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
12024 * unittests/function-view-selftests.c: Fix common/ includes.
12025 * unittests/environ-selftests.c: Fix common/ includes.
12026 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
12027 * unittests/common-utils-selftests.c: Fix common/ includes.
12028 * unittests/cli-utils-selftests.c: Fix common/ includes.
12029 * unittests/array-view-selftests.c: Fix common/ includes.
12030 * ui-file.c: Fix common/ includes.
12031 * tui/tui-io.c: Fix common/ includes.
12032 * tracepoint.h: Fix common/ includes.
12033 * tracepoint.c: Fix common/ includes.
12034 * tracefile-tfile.c: Fix common/ includes.
12035 * top.h: Fix common/ includes.
12036 * top.c: Fix common/ includes.
12037 * thread.c: Fix common/ includes.
12038 * target/waitstatus.h: Fix common/ includes.
12039 * target/waitstatus.c: Fix common/ includes.
12040 * target.h: Fix common/ includes.
12041 * target.c: Fix common/ includes.
12042 * target-memory.c: Fix common/ includes.
12043 * target-descriptions.c: Fix common/ includes.
12044 * symtab.h: Fix common/ includes.
12045 * symfile.c: Fix common/ includes.
12046 * stap-probe.c: Fix common/ includes.
12047 * spu-linux-nat.c: Fix common/ includes.
12048 * sparc-nat.c: Fix common/ includes.
12049 * source.c: Fix common/ includes.
12050 * solib.c: Fix common/ includes.
12051 * solib-target.c: Fix common/ includes.
12052 * ser-unix.c: Fix common/ includes.
12053 * ser-tcp.c: Fix common/ includes.
12054 * ser-pipe.c: Fix common/ includes.
12055 * ser-base.c: Fix common/ includes.
12056 * selftest-arch.c: Fix common/ includes.
12057 * s12z-tdep.c: Fix common/ includes.
12058 * rust-exp.y: Fix common/ includes.
12059 * rs6000-aix-tdep.c: Fix common/ includes.
12060 * riscv-tdep.c: Fix common/ includes.
12061 * remote.c: Fix common/ includes.
12062 * remote-notif.h: Fix common/ includes.
12063 * remote-fileio.h: Fix common/ includes.
12064 * remote-fileio.c: Fix common/ includes.
12065 * regcache.h: Fix common/ includes.
12066 * regcache.c: Fix common/ includes.
12067 * record-btrace.c: Fix common/ includes.
12068 * python/python.c: Fix common/ includes.
12069 * python/py-type.c: Fix common/ includes.
12070 * python/py-inferior.c: Fix common/ includes.
12071 * progspace.h: Fix common/ includes.
12072 * producer.c: Fix common/ includes.
12073 * procfs.c: Fix common/ includes.
12074 * proc-api.c: Fix common/ includes.
12075 * printcmd.c: Fix common/ includes.
12076 * ppc-linux-nat.c: Fix common/ includes.
12077 * parser-defs.h: Fix common/ includes.
12078 * osdata.c: Fix common/ includes.
12079 * obsd-nat.c: Fix common/ includes.
12080 * nat/x86-linux.c: Fix common/ includes.
12081 * nat/x86-linux-dregs.c: Fix common/ includes.
12082 * nat/x86-dregs.h: Fix common/ includes.
12083 * nat/x86-dregs.c: Fix common/ includes.
12084 * nat/ppc-linux.c: Fix common/ includes.
12085 * nat/mips-linux-watch.h: Fix common/ includes.
12086 * nat/mips-linux-watch.c: Fix common/ includes.
12087 * nat/linux-waitpid.c: Fix common/ includes.
12088 * nat/linux-ptrace.h: Fix common/ includes.
12089 * nat/linux-ptrace.c: Fix common/ includes.
12090 * nat/linux-procfs.c: Fix common/ includes.
12091 * nat/linux-personality.c: Fix common/ includes.
12092 * nat/linux-osdata.c: Fix common/ includes.
12093 * nat/linux-namespaces.c: Fix common/ includes.
12094 * nat/linux-btrace.h: Fix common/ includes.
12095 * nat/linux-btrace.c: Fix common/ includes.
12096 * nat/fork-inferior.c: Fix common/ includes.
12097 * nat/amd64-linux-siginfo.c: Fix common/ includes.
12098 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
12099 * nat/aarch64-linux.c: Fix common/ includes.
12100 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
12101 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
12102 * namespace.h: Fix common/ includes.
12103 * mips-linux-tdep.c: Fix common/ includes.
12104 * minsyms.c: Fix common/ includes.
12105 * mi/mi-parse.h: Fix common/ includes.
12106 * mi/mi-main.c: Fix common/ includes.
12107 * mi/mi-cmd-env.c: Fix common/ includes.
12108 * memrange.h: Fix common/ includes.
12109 * memattr.c: Fix common/ includes.
12110 * maint.h: Fix common/ includes.
12111 * maint.c: Fix common/ includes.
12112 * main.c: Fix common/ includes.
12113 * machoread.c: Fix common/ includes.
12114 * location.c: Fix common/ includes.
12115 * linux-thread-db.c: Fix common/ includes.
12116 * linux-nat.c: Fix common/ includes.
12117 * linux-fork.c: Fix common/ includes.
12118 * inline-frame.c: Fix common/ includes.
12119 * infrun.c: Fix common/ includes.
12120 * inflow.c: Fix common/ includes.
12121 * inferior.h: Fix common/ includes.
12122 * inferior.c: Fix common/ includes.
12123 * infcmd.c: Fix common/ includes.
12124 * inf-ptrace.c: Fix common/ includes.
12125 * inf-child.c: Fix common/ includes.
12126 * ia64-linux-nat.c: Fix common/ includes.
12127 * i387-tdep.c: Fix common/ includes.
12128 * i386-tdep.c: Fix common/ includes.
12129 * i386-linux-tdep.c: Fix common/ includes.
12130 * i386-linux-nat.c: Fix common/ includes.
12131 * i386-go32-tdep.c: Fix common/ includes.
12132 * i386-fbsd-tdep.c: Fix common/ includes.
12133 * i386-fbsd-nat.c: Fix common/ includes.
12134 * guile/scm-type.c: Fix common/ includes.
12135 * guile/guile.c: Fix common/ includes.
12136 * go32-nat.c: Fix common/ includes.
12137 * gnu-nat.c: Fix common/ includes.
12138 * gdbthread.h: Fix common/ includes.
12139 * gdbarch-selftests.c: Fix common/ includes.
12140 * gdb_usleep.c: Fix common/ includes.
12141 * gdb_select.h: Fix common/ includes.
12142 * gdb_bfd.c: Fix common/ includes.
12143 * gcore.c: Fix common/ includes.
12144 * fork-child.c: Fix common/ includes.
12145 * findvar.c: Fix common/ includes.
12146 * fbsd-nat.c: Fix common/ includes.
12147 * event-top.c: Fix common/ includes.
12148 * event-loop.c: Fix common/ includes.
12149 * dwarf2read.c: Fix common/ includes.
12150 * dwarf2loc.c: Fix common/ includes.
12151 * dwarf2-frame.c: Fix common/ includes.
12152 * dwarf-index-cache.c: Fix common/ includes.
12153 * dtrace-probe.c: Fix common/ includes.
12154 * disasm-selftests.c: Fix common/ includes.
12155 * defs.h: Fix common/ includes.
12156 * csky-tdep.c: Fix common/ includes.
12157 * cp-valprint.c: Fix common/ includes.
12158 * cp-support.h: Fix common/ includes.
12159 * cp-support.c: Fix common/ includes.
12160 * corelow.c: Fix common/ includes.
12161 * completer.h: Fix common/ includes.
12162 * completer.c: Fix common/ includes.
12163 * compile/compile.c: Fix common/ includes.
12164 * compile/compile-loc2c.c: Fix common/ includes.
12165 * compile/compile-cplus-types.c: Fix common/ includes.
12166 * compile/compile-cplus-symbols.c: Fix common/ includes.
12167 * command.h: Fix common/ includes.
12168 * cli/cli-dump.c: Fix common/ includes.
12169 * cli/cli-cmds.c: Fix common/ includes.
12170 * charset.c: Fix common/ includes.
12171 * build-id.c: Fix common/ includes.
12172 * btrace.h: Fix common/ includes.
12173 * btrace.c: Fix common/ includes.
12174 * breakpoint.h: Fix common/ includes.
12175 * breakpoint.c: Fix common/ includes.
12176 * ax.h:
12177 (enum agent_op): Fix common/ includes.
12178 * ax-general.c (struct aop_map): Fix common/ includes.
12179 * ax-gdb.c: Fix common/ includes.
12180 * auxv.c: Fix common/ includes.
12181 * auto-load.c: Fix common/ includes.
12182 * arm-tdep.c: Fix common/ includes.
12183 * arch/riscv.c: Fix common/ includes.
12184 * arch/ppc-linux-common.c: Fix common/ includes.
12185 * arch/i386.c: Fix common/ includes.
12186 * arch/arm.c: Fix common/ includes.
12187 * arch/arm-linux.c: Fix common/ includes.
12188 * arch/arm-get-next-pcs.c: Fix common/ includes.
12189 * arch/amd64.c: Fix common/ includes.
12190 * arch/aarch64.c: Fix common/ includes.
12191 * arch/aarch64-insn.c: Fix common/ includes.
12192 * arch-utils.c: Fix common/ includes.
12193 * amd64-windows-tdep.c: Fix common/ includes.
12194 * amd64-tdep.c: Fix common/ includes.
12195 * amd64-sol2-tdep.c: Fix common/ includes.
12196 * amd64-obsd-tdep.c: Fix common/ includes.
12197 * amd64-nbsd-tdep.c: Fix common/ includes.
12198 * amd64-linux-tdep.c: Fix common/ includes.
12199 * amd64-linux-nat.c: Fix common/ includes.
12200 * amd64-fbsd-tdep.c: Fix common/ includes.
12201 * amd64-fbsd-nat.c: Fix common/ includes.
12202 * amd64-dicos-tdep.c: Fix common/ includes.
12203 * amd64-darwin-tdep.c: Fix common/ includes.
12204 * agent.c: Fix common/ includes.
12205 * ada-lang.h: Fix common/ includes.
12206 * ada-lang.c: Fix common/ includes.
12207 * aarch64-tdep.c: Fix common/ includes.
12208
2f5c153e
TT
122092019-01-25 Tom Tromey <tom@tromey.com>
12210
12211 * common/create-version.sh: Use common/version.h.
12212
adc6a863
PA
122132019-01-24 Pedro Alves <palves@redhat.com>
12214
12215 * infrun.c (signal_stop, signal_print, signal_program)
12216 (signal_catch, signal_pass): Now arrays instead of pointers.
12217 (update_signals_program_target, do_target_resume)
12218 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
12219 * linux-nat.c (linux_nat_target::pass_signals)
12220 (linux_nat_target::create_inferior, linux_nat_target::attach):
12221 Adjust.
12222 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
12223 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
12224 * procfs.c (procfs_target::pass_signals): Adjust.
12225 * record-full.c (record_full_target::resume): Adjust.
12226 * remote.c (remote_target::pass_signals)
12227 (remote_target::program_signals): Adjust.
12228 * target-debug.h (target_debug_print_signals): Now takes a
12229 gdb::array_view as parameter. Adjust.
12230 * target.h (target_ops) <pass_signals, program_signals>: Replace
12231 pointer and length parameters with gdb::array_view.
12232 (target_pass_signals, target_program_signals): Likewise.
12233 * target-delegates.c: Regenerate.
12234
3046d67a
PA
122352019-01-24 Pedro Alves <palves@redhat.com>
12236
12237 * common/forward-scope-exit.h
12238 (forward_scope_exit::forward_scope_exit): Pass arguments to
12239 m_bind_function directly, instead of creating a std::bind and
12240 copying that.
12241
353229bf
AH
122422019-01-24 Alan Hayward <alan.hayward@arm.com>
12243
12244 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12245 for static members.
12246 (pass_in_v_vfp_candidate): Likewise.
12247
311dc83a
TT
122482019-01-23 Tom Tromey <tom@tromey.com>
12249 Pedro Alves <palves@redhat.com>
12250
12251 * regcache.c (class regcache_invalidator): Remove.
12252 (regcache::raw_write): Use make_scope_exit.
12253
296bd123
TT
122542019-01-23 Tom Tromey <tom@tromey.com>
12255
12256 * ui-out.h (class ui_out_emit_type): Update comment.
12257
979a0d13
TT
122582019-01-23 Tom Tromey <tom@tromey.com>
12259
12260 * infrun.c (fetch_inferior_event): Update comment.
12261
d238133d
TT
122622019-01-23 Tom Tromey <tom@tromey.com>
12263 Pedro Alves <palves@redhat.com>
12264
12265 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
12266 parameter.
12267 (fetch_inferior_event): Use SCOPE_EXIT.
12268
12269
9885e6bb
TT
122702019-01-23 Tom Tromey <tom@tromey.com>
12271 Pedro Alves <palves@redhat.com>
12272
12273 * infrun.c (disable_thread_events): Delete.
12274 (stop_all_threads): Use SCOPE_EXIT.
12275
286526c1
TT
122762019-01-23 Tom Tromey <tom@tromey.com>
12277 Pedro Alves <palves@redhat.com>
12278
12279 * symfile.c: Include forward-scope-exit.h.
12280 (clear_symtab_users_cleanup): Replace forward declaration with
12281 a FORWARD_SCOPE_EXIT.
12282 (syms_from_objfile_1): Use the forward_scope_exit and
12283 gdb::optional instead of cleanup_function.
12284 (reread_symbols): Use the forward_scope_exit instead of
12285 cleanup_function.
12286 (clear_symtab_users_cleanup): Remove function.
12287
1db93f14
TT
122882019-01-23 Tom Tromey <tom@tromey.com>
12289 Pedro Alves <palves@redhat.com>
12290
12291 * linux-nat.c: Include scope-exit.h.
12292 (cleanup_target_stop): Remove.
12293 (linux_nat_target::static_tracepoint_markers_by_strid): Use
12294 SCOPE_EXIT.
12295
2cc83d1e
TT
122962019-01-23 Tom Tromey <tom@tromey.com>
12297 Pedro Alves <palves@redhat.com>
12298
12299 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
12300 (call_function_by_hand_dummy): Use SCOPE_EXIT.
12301
694c6bf5
TT
123022019-01-23 Tom Tromey <tom@tromey.com>
12303 Andrew Burgess <andrew.burgess@embecosm.com>
12304 Pedro Alves <palves@redhat.com>
12305
12306 * infrun.c (fetch_inferior_event): Use scope_exit.
12307 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
12308 * top.c (execute_command): Use scope_exit.
12309 * breakpoint.c (bpstat_do_actions): Use scope_exit.
12310 * utils.c (do_bpstat_clear_actions_cleanup)
12311 (make_bpstat_clear_actions_cleanup): Remove.
12312
4c41382a
TT
123132019-01-23 Tom Tromey <tom@tromey.com>
12314 Pedro Alves <palves@redhat.com>
12315
12316 * infrun.c: Include "common/scope-exit.h"
12317 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
12318 (wait_for_inferior): Use SCOPE_EXIT.
12319 (fetch_inferior_event): Use scope_exit.
12320
89f8fb50
TT
123212019-01-23 Tom Tromey <tom@tromey.com>
12322 Pedro Alves <palves@redhat.com>
12323
12324 * breakpoint.c (create_breakpoint): Remove cleanup.
12325
5419bdae
TT
123262019-01-23 Tom Tromey <tom@tromey.com>
12327 Andrew Burgess <andrew.burgess@embecosm.com>
12328 Pedro Alves <palves@redhat.com>
12329
e587ef42
PA
123302019-01-23 Pedro Alves <palves@redhat.com>
12331
12332 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
12333
77f0e74c
PA
123342019-01-23 Pedro Alves <palves@redhat.com>
12335 Andrew Burgess <andrew.burgess@embecosm.com>
12336
12337 * gdbthread.h: Include "common/forward-scope-exit.h".
12338 (scoped_finish_thread_state): Redefine custom class in terms of
12339 forward_scope_exit.
12340
5b9b3e53
PA
123412019-01-23 Pedro Alves <palves@redhat.com>
12342 Andrew Burgess <andrew.burgess@embecosm.com>
12343
12344 * common/forward-scope-exit.h: New file.
12345
54b65c9b
PA
123462019-01-23 Pedro Alves <palves@redhat.com>
12347 Andrew Burgess <andrew.burgess@embecosm.com>
12348 Tom Tromey <tom@tromey.com>
12349
12350 * common/scope-exit.h: New file.
12351
cf08fb29
PA
123522019-01-23 Pedro Alves <palves@redhat.com>
12353
12354 * common/preprocessor.h (ESC): Rename to ...
12355 (ESC_PARENS): ... this.
12356 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
12357 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
12358
ae73e2e2
TT
123592019-01-23 Tom Tromey <tom@tromey.com>
12360
12361 * language.h (class scoped_switch_to_sym_language_if_auto):
12362 Initialize m_lang in both cases.
12363
6594e122
AH
123642019-01-23 Alan Hayward <alan.hayward@arm.com>
12365
12366 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
12367 with XCNEW.
12368
a7c9855d
TT
123692019-01-22 Tom Tromey <tom@tromey.com>
12370
12371 * corelow.c: Do not include sys/file.h.
12372
93cc1d53
TT
123732019-01-22 Tom Tromey <tom@tromey.com>
12374
12375 * tui/tui-wingeneral.h: Include gdb_curses.h.
12376
38561778
TT
123772019-01-22 Tom Tromey <tom@tromey.com>
12378
12379 * source-cache.h (class source_cache) <get_source_lines,
12380 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
12381
37b3ab5b
TT
123822019-01-22 Tom Tromey <tom@tromey.com>
12383
12384 * remote-fileio.h (struct remote_target): Declare.
12385
3fabc016
TT
123862019-01-22 Tom Tromey <tom@tromey.com>
12387
12388 * python/py-arch.c: Do not include py-ref.h.
12389 * python/py-bpevent.c: Do not include py-ref.h.
12390 * python/py-cmd.c: Do not include py-ref.h.
12391 * python/py-continueevent.c: Do not include py-ref.h.
12392 * python/py-event.h: Do not include py-ref.h.
12393 * python/py-evtregistry.c: Do not include py-ref.h.
12394 * python/py-finishbreakpoint.c: Do not include py-ref.h.
12395 * python/py-frame.c: Do not include py-ref.h.
12396 * python/py-framefilter.c: Do not include py-ref.h.
12397 * python/py-function.c: Do not include py-ref.h.
12398 * python/py-infevents.c: Do not include py-ref.h.
12399 * python/py-linetable.c: Do not include py-ref.h.
12400 * python/py-objfile.c: Do not include py-ref.h.
12401 * python/py-param.c: Do not include py-ref.h.
12402 * python/py-prettyprint.c: Do not include py-ref.h.
12403 * python/py-progspace.c: Do not include py-ref.h.
12404 * python/py-symbol.c: Do not include py-ref.h.
12405 * python/py-symtab.c: Do not include py-ref.h.
12406 * python/py-type.c: Do not include py-ref.h.
12407 * python/py-unwind.c: Do not include py-ref.h.
12408 * python/py-utils.c: Do not include py-ref.h.
12409 * python/py-value.c: Do not include py-ref.h.
12410 * python/py-varobj.c: Do not include py-ref.h.
12411 * python/py-xmethods.c: Do not include py-ref.h.
12412 * python/python.c: Do not include py-ref.h.
12413 * varobj.c: Do not include py-ref.h.
12414
6b4d7774
TT
124152019-01-22 Tom Tromey <tom@tromey.com>
12416
12417 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
12418 keyword for bcache.
12419
7af7e9b5
TT
124202019-01-22 Tom Tromey <tom@tromey.com>
12421
12422 * compile/compile-cplus-types.c: Remove a comment by #include.
12423
951d1049
TT
124242019-01-22 Tom Tromey <tom@tromey.com>
12425
12426 * compile/gcc-c-plugin.h: Include compile-internal.h.
12427
d65d5705
TT
124282019-01-22 Tom Tromey <tom@tromey.com>
12429
12430 * stabsread.c (EXTERN): Do not define.
12431 (symnum, next_symbol_text_func, processing_gcc_compilation)
12432 (within_function, global_sym_chain, global_stabs)
12433 (previous_stab_code, this_object_header_files)
12434 (n_this_object_header_files)
12435 (n_allocated_this_object_header_files): Define.
12436 * stabsread.h (EXTERN): Never define. Use "extern".
12437
b6fb1ee5
PW
124382019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12439
12440 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
12441 history_value.
12442
be6d4f74
TT
124432019-01-21 Tom Tromey <tom@tromey.com>
12444
12445 * ui-out.c: Fix includes.
12446 * tui/tui-source.c: Fix includes.
12447 * target.c: Fix includes.
12448 * remote.c: Fix includes.
12449 * regcache.c: Fix includes.
12450 * python/py-block.c: Fix includes.
12451 * printcmd.c: Fix includes.
12452 * or1k-tdep.c: Fix includes.
12453 * mi/mi-main.c: Fix includes.
12454 * m32r-tdep.c: Fix includes.
12455 * csky-tdep.c: Fix includes.
12456 * compile/compile-cplus-types.c: Fix includes.
12457 * cli/cli-interp.c: Fix includes.
12458
73021deb
AH
124592019-01-21 Alan Hayward <alan.hayward@arm.com>
12460
12461 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12462 for padding.
12463
7932255d
TT
124642019-01-16 Tom Tromey <tom@tromey.com>
12465
12466 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
12467 earlier.
12468 (struct objfile) <msymbols_range>: Move from top level.
12469 <msymbols>: New method.
12470 (class objfile_msymbols): Remove.
12471 * symtab.c (default_collect_symbol_completion_matches_break_on):
12472 Update.
12473 * symmisc.c (dump_msymbols): Update.
12474 * stabsread.c (scan_file_globals): Update.
12475 * objc-lang.c (info_selectors_command, info_classes_command)
12476 (find_methods): Update.
12477 * minsyms.c (find_solib_trampoline_target): Update.
12478 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
12479 * coffread.c (coff_symfile_read): Update.
12480 * ada-lang.c (ada_lookup_simple_minsym)
12481 (ada_collect_symbol_completion_matches): Update.
12482
604b1bfb
TT
124832019-01-16 Tom Tromey <tom@tromey.com>
12484
12485 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
12486 type. Remove no-argument constructor.
12487 <iterator::operator++>: Simplify.
12488 <begin>: Update.
12489 <end>: Use minimal_symbol_count.
12490
f252c6d5
TT
124912019-01-16 Tom Tromey <tom@tromey.com>
12492
12493 * objfiles.h (struct objfile) <psymtabs>: New method.
12494 (class objfile_psymtabs): Remove.
12495 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
12496 typedef.
12497 <range>: New method.
12498 (require_partial_symbols): Change return type.
12499 * psymtab.c (require_partial_symbols)
12500 (psym_expand_symtabs_matching): Update.
12501 * mdebugread.c (parse_partial_symbols): Update.
12502 * dbxread.c (dbx_end_psymtab): Update.
12503
b669c953
TT
125042019-01-15 Tom Tromey <tom@tromey.com>
12505
12506 * symtab.c (lookup_objfile_from_block)
12507 (lookup_symbol_in_objfile_symtabs)
12508 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
12509 (find_line_symtab, info_sources_command)
12510 (default_collect_symbol_completion_matches_break_on)
12511 (make_source_files_completion_list): Update.
12512 * symmisc.c (print_objfile_statistics, dump_objfile)
12513 (maintenance_print_symbols, maintenance_info_symtabs)
12514 (maintenance_check_symtabs, maintenance_info_line_tables):
12515 Update.
12516 * source.c (select_source_symtab)
12517 (forget_cached_source_info_for_objfile): Update.
12518 * objfiles.h (class objfile_compunits): Remove.
12519 (struct objfile) <compunits_range>: New typedef.
12520 (compunits): New method.
12521 * objfiles.c (objfile_relocate1): Update.
12522 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12523 * maint.c (count_symtabs_and_blocks): Update.
12524 * linespec.c (iterate_over_all_matching_symtabs): Update.
12525 * cp-support.c (add_symbol_overload_list_qualified): Update.
12526 * coffread.c (coff_symtab_read): Update.
12527 * ada-lang.c (add_nonlocal_symbols)
12528 (ada_collect_symbol_completion_matches)
12529 (ada_add_global_exceptions): Update.
12530
7e955d83
TT
125312019-01-15 Tom Tromey <tom@tromey.com>
12532
12533 * progspace.h (program_space) <objfiles_safe_range>: New
12534 typedef.
12535 <objfiles_safe>: New method.
12536 * objfiles.h (class all_objfiles_safe): Remove.
12537 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
12538 * jit.c (jit_inferior_exit_hook): Update.
12539
2030c079
TT
125402019-01-17 Tom Tromey <tom@tromey.com>
12541
12542 * progspace.h (program_space) <objfiles_range>: New typedef.
12543 <objfiles>: New method.
12544 <objfiles_head>: Rename from objfiles.
12545 (object_files): Update.
12546 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
12547 * guile/scm-pretty-print.c
12548 (ppscm_find_pretty_printer_from_objfiles): Update.
12549 * guile/scm-objfile.c (gdbscm_objfiles): Update.
12550 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
12551 Update.
12552 * python/py-progspace.c (pspy_get_objfiles): Update.
12553 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12554 Update.
12555 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12556 (objfpy_lookup_objfile_by_build_id): Update.
12557 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12558 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12559 Update.
12560 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12561 (expand_symtab_containing_pc, lookup_objfile_from_block)
12562 (lookup_static_symbol, basic_lookup_transparent_type)
12563 (find_pc_sect_compunit_symtab, find_symbol_at_address)
12564 (find_line_symtab, info_sources_command)
12565 (default_collect_symbol_completion_matches_break_on)
12566 (make_source_files_completion_list, find_main_name): Update.
12567 * symmisc.c (print_symbol_bcache_statistics)
12568 (print_objfile_statistics, maintenance_print_symbols)
12569 (maintenance_print_msymbols, maintenance_print_objfiles)
12570 (maintenance_info_symtabs, maintenance_check_symtabs)
12571 (maintenance_expand_symtabs, maintenance_info_line_tables):
12572 Update.
12573 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
12574 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
12575 (map_overlay_command, unmap_overlay_command)
12576 (simple_overlay_update, expand_symtabs_matching)
12577 (map_symbol_filenames): Update.
12578 * symfile-debug.c (set_debug_symfile): Update.
12579 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
12580 Update.
12581 * source.c (select_source_symtab, forget_cached_source_info):
12582 Update.
12583 * solib.c (solib_read_symbols): Update.
12584 * solib-spu.c (append_ocl_sos): Update.
12585 * psymtab.c (maintenance_print_psymbols)
12586 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
12587 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
12588 * printcmd.c (info_symbol_command): Update.
12589 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
12590 Update.
12591 * objfiles.h (class all_objfiles): Remove.
12592 * objfiles.c (have_partial_symbols, have_full_symbols)
12593 (have_minimal_symbols, qsort_cmp, update_section_map)
12594 (shared_objfile_contains_address_p)
12595 (default_iterate_over_objfiles_in_search_order): Update.
12596 * objc-lang.c (info_selectors_command, info_classes_command)
12597 (find_methods): Update.
12598 * minsyms.c (find_solib_trampoline_target): Update.
12599 * maint.c (maintenance_info_sections)
12600 (maintenance_translate_address, count_symtabs_and_blocks):
12601 Update.
12602 * main.c (captured_main_1): Update.
12603 * linux-thread-db.c (try_thread_db_load_from_pdir)
12604 (has_libpthread): Update.
12605 * linespec.c (iterate_over_all_matching_symtabs)
12606 (search_minsyms_for_name): Update.
12607 * jit.c (jit_find_objf_with_entry_addr): Update.
12608 * hppa-tdep.c (find_unwind_entry)
12609 (hppa_lookup_stub_minimal_symbol): Update.
12610 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
12611 Update.
12612 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12613 (elf_gnu_ifunc_resolve_by_got): Update.
12614 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
12615 * dwarf-index-write.c (save_gdb_index_command): Update.
12616 * cp-support.c (add_symbol_overload_list_qualified): Update.
12617 * breakpoint.c (create_overlay_event_breakpoint)
12618 (create_longjmp_master_breakpoint)
12619 (create_std_terminate_master_breakpoint)
12620 (create_exception_master_breakpoint): Update.
12621 * blockframe.c (find_pc_partial_function): Update.
12622 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
12623 (ada_collect_symbol_completion_matches)
12624 (ada_add_global_exceptions): Update.
12625
776489e0
TT
126262019-01-17 Tom Tromey <tom@tromey.com>
12627
12628 * solib-target.c (lm_info_target_p): Remove typedef. Don't
12629 declare VEC.
12630 (solib_target_parse_libraries): Change return type.
12631 (library_list_start_segment, library_list_start_section)
12632 (library_list_end_library, library_list_start_library); Update.
12633 (solib_target_free_library_list): Remove.
12634 (solib_target_parse_libraries): Remove cleanup. Change return
12635 type.
12636 (solib_target_current_sos): Update.
12637
6471e7d2
TT
126382019-01-17 Tom Tromey <tromey@bapiya>
12639
12640 * valprint.c: Replace "the the" with "the".
12641 * symtab.c: Replace "the the" with "the".
12642 * solib.c: Replace "the the" with "the".
12643 * solib-dsbt.c: Replace "the the" with "the".
12644 * linespec.c: Replace "the the" with "the".
12645 * dwarf2loc.h: Replace "the the" with "the".
12646 * amd64-windows-tdep.c: Replace "the the" with "the".
12647 * aarch64-tdep.c: Replace "the the" with "the".
12648
c24bdb02
KS
126492019-01-16 Keith Seitz <keiths@redhat.com>
12650
12651 PR gdb/23773
12652 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
12653 <builder>: Rename to ..
12654 <m_builder>: ... this and make private.
12655 (dwarf2_cu::get_builder): New method. Change all users of
12656 `builder' to use this method.
12657 (dwarf2_start_symtab): Move to ...
12658 (dwarf2_cu::start_symtab): ... here. Update all callers
12659 (setup_type_unit_groups): Move to ...
12660 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
12661 callers.
12662 (dwarf2_cu::reset_builder): New method.
12663 (process_full_compunit, process_full_type_unit): Use
12664 dwarf2_cu::reset_builder.
12665 (follow_die_offset): Record the ancestor CU if it is different
12666 from the followed DIE's CU.
12667 (follow_die_sig_1): Likewise.
12668
8d64371b
TT
126692019-01-15 Tom Tromey <tom@tromey.com>
12670
12671 * remote.c (class remote_state) <buf>: Now a char_vector.
12672 <buf_size>: Remove.
12673 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
12674 parameter.
12675 (remote_target::getpkt_or_notif_sane_1)
12676 (remote_target::getpkt_sane)
12677 (remote_target::getpkt_or_notif_sane): Likewise.
12678 (class remote_target) <putpkt>: New overload.
12679 (remote_target::read_frame): Change type of "buf_p". Remove
12680 sizeof_p parameter.
12681 (packet_ok): New overload.
12682 (packet_check_result): New overload.
12683 Update all uses.
12684
bb277751
TT
126852019-01-14 Tom Tromey <tom@tromey.com>
12686
12687 * remote-notif.c (handle_notification, remote_notif_ack)
12688 (remote_notif_parse): Make "buf" const.
12689 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
12690 const.
12691 (remote_notif_parse, remote_notif_ack, handle_notification):
12692 Likewise.
12693 * remote.c (remote_notif_stop_parse): Make "buf" const.
12694 (remote_target::remote_parse_stop_reply): Make "buf" const.
12695 (remote_notif_stop_ack): Make "buf" const.
12696
05be00a8
TT
126972019-01-14 Tom Tromey <tom@tromey.com>
12698
12699 * remote.c (remote_console_output): Make parameter const.
12700
491adeca
TT
127012019-01-14 Tom Tromey <tom@tromey.com>
12702
12703 * target-debug.h (target_debug_print_signals): Constify.
12704 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
12705 * procfs.c (procfs_target::pass_signals): Update.
12706 * linux-nat.c (linux_nat_target::pass_signals): Update.
12707 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
12708 * target-delegates.c: Rebuild.
12709 * remote.c (remote_target::program_signals): Update.
12710 (remote_target::pass_signals): Update.
12711 * target.c (target_pass_signals): Constify argument.
12712 (target_program_signals): Likewise.
12713 * target.h (struct target_ops) <pass_signals, program_signals>:
12714 Constify argument.
12715 (target_pass_signals, target_program_signals): Constify argument.
12716
bbd94648
TT
127172019-01-14 Tom Tromey <tom@tromey.com>
12718
12719 PR tui/28819:
12720 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
12721
6f072a10
PFC
127222019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12723
12724 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
12725 field.
12726 * rs6000-tdep.c: Include reggroups.h.
12727 (IS_V_ALIAS_PSEUDOREG): Define.
12728 (rs6000_register_name): Return names for the "vX" aliases.
12729 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
12730 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
12731 aliases. Call default_register_reggroup_p for all other
12732 pseudo-registers.
12733 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
12734 New functions.
12735 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
12736 Handle "vX" aliases.
12737 (v_alias_pseudo_register_collect): New function.
12738 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
12739 (rs6000_gdbarch_init): Initialize "vX" aliases as
12740 pseudo-registers. Restore registration of
12741 rs6000_pseudo_register_reggroup_p with
12742 set_tdesc_pseudo_register_reggroup_p.
12743
1a782351
MF
127442019-01-13 Max Filippov <jcmvbkbc@gmail.com>
12745
12746 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
12747 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
12748 set_gdbarch_num_pseudo_regs.
12749
d73cff18
PW
127502019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12751
12752 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
12753 Remove arg prefixname, add do_set and do_show.
12754 Add member functions set_list and show_list.
12755 * cli/cli-style.c (class cli_style_option): Update accordingly.
12756 (style_set_list): Move to file scope.
12757 (style_show_list): Likewise.
12758 (set_style): Call help_list.
12759 (show_style): Call cmd_show_list.
12760 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
12761 Update to use the new macro.
12762
60a90376
JB
127632019-10-12 Joel Brobecker <brobecker@adacore.com>
12764
12765 * ada-lang.c (_initialize_ada_language): Expand the help text
12766 for the "catch exception" command.
12767
9d7c67bf
PW
127682019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12769
12770 * symtab.c (matching_obj_sections): Initialize obj,
12771 declare it closer to its usage.
12772
7cf47dc4
TT
127732019-01-10 Tom Tromey <tom@tromey.com>
12774
12775 * thread-iter.h (inf_threads_iterator): Use next_iterator.
12776 (basic_inf_threads_range): Remove.
12777 (inf_threads_range, inf_non_exited_threads_range)
12778 (safe_inf_threads_range): Use next_adapter.
12779
d3cb6808
KS
127802019-01-10 Keith Seitz <keiths@redhat.com>
12781
12782 PR gdb/23712
12783 PR symtab/23010
12784 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
12785 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
12786
63a20375
KS
127872019-01-10 Keith Seitz <keiths@redhat.com>
12788
12789 PR gdb/23712
12790 PR symtab/23010
12791 * dictionary.c (pending_to_vector): Remove.
12792 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12793 Remove _1 suffix, replacing functions of the same name. Update
12794 all callers.
12795 (dict_create_hashed, dict_create_hashed_expandable)
12796 (dict_create_linear, dict_create_linear_expandable, dict_free)
12797 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
12798 Make functions static.
12799
b026f593
KS
128002019-01-10 Keith Seitz <keiths@redhat.com>
12801
12802 PR gdb/23712
12803 PR symtab/23010
12804 * dictionary.h (struct dictionary): Replace declaration with
12805 multidictionary.
12806 (dict_create_hashed, dict_create_hashed_expandable)
12807 (dict_create_linear, dict_create_linear_expandable)
12808 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
12809 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
12810 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
12811 taking multidictionary argument.
12812 [ALL_DICT_SYMBOLS]: Update for multidictionary.
12813 * block.h (struct block) <dict>: Change to multidictionary
12814 and rename `multidict'.
12815 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
12816 symmisc.c: Update all dictionary references to multidictionary.
12817
c7748ee9
KS
128182019-01-10 Keith Seitz <keiths@redhat.com>
12819
12820 PR gdb/23712
12821 PR symtab/23010
12822 * dictionary.c: Include unordered_map.
12823 (pending_to_vector): New function.
12824 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12825 Rewrite the non-"_1" functions to take vector instead
12826 of linked list.
12827 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
12828 "new" _1 versions of the same name.
12829 (multidictionary): Define.
12830 (std::hash<enum language): New definition.
12831 (collate_pending_symbols_by_language, mdict_create_hashed)
12832 (mdict_create_hashed_expandable, mdict_create_linear)
12833 (mdict_create_linear_expandable, mdict_free)
12834 (find_language_dictionary, create_new_language_dictionary)
12835 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
12836 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
12837 (mdict_size, mdict_empty): New functions.
12838 * dictionary.h (mdict_iterator): Define.
12839
67aa1f3c
PA
128402019-01-10 Pedro Alves <palves@redhat.com>
12841
12842 * breakpoint.c (read_uploaded_action)
12843 (create_tracepoint_from_upload): Adjust to use
12844 gdb::unique_xmalloc_ptr.
12845 * ctf.c (ctf_write_uploaded_tp):
12846 (SET_ARRAY_FIELD): Use emplace_back.
12847 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
12848 * tracefile-tfile.c (tfile_write_uploaded_tp):
12849 * tracepoint.c (parse_tracepoint_definition): Adjust to use
12850 gdb::unique_xmalloc_ptr.
12851 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
12852 at_string, cond_string, cmd_strings>: Replace char pointers
12853 with gdb::unique_xmalloc_ptr.
12854
2f667667
PA
128552019-01-10 Pedro Alves <palves@redhat.com>
12856
12857 * solib-target.c (library_list_start_library): Don't xstrdup name.
12858
36cb7237
PA
128592019-01-10 Pedro Alves <palves@redhat.com>
12860
12861 * mdebugread.c (parse_partial_symbols): Use
12862 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
12863
da584958
AB
128642019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12865
12866 * linux-fork.c (scoped_switch_fork_info)
12867 <~scoped_switch_fork_info>: Fix incorrect variable name.
12868
1ef8573c
AB
128692019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12870
12871 * linux-fork.c (scoped_switch_fork_info)
12872 <scoped_switch_fork_info>: Make explicit.
12873 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
12874
8d7bcccb
TT
128752019-01-10 Tom Tromey <tom@tromey.com>
12876
12877 * objfiles.h (objfile::reset_psymtabs): Update.
12878 * objfiles.c (objfile::objfile): Update.
12879 * psymtab.h (psymtab_storage::obstack): Update.
12880 (psymtab_storage::m_obstack): Use gdb::optional.
12881 (class psymtab_storage): Update comment. Remove objfile
12882 parameter.
12883 * psymtab.c (psymtab_storage::psymtab_storage): Update.
12884
b596a3c7
TT
128852019-01-10 Tom Tromey <tom@tromey.com>
12886
12887 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
12888 <free_psymtabs>: Now private.
12889 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
12890 (allocate_psymtab): Use new method.
12891
a9342b62
TT
128922019-01-10 Tom Tromey <tom@tromey.com>
12893
12894 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
12895 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
12896 * mdebugread.c (parse_partial_symbols): Use
12897 allocate_dependencies.
12898 * dwarf2read.c (dwarf2_create_include_psymtab): Use
12899 allocate_dependencies.
12900 (process_psymtab_comp_unit_reader)
12901 (build_type_psymtab_dependencies): Likewise.
12902 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
12903
5af70966
TT
129042019-01-10 Tom Tromey <tom@tromey.com>
12905
12906 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
12907 PSYMBOL_SET_LANGUAGE.
12908 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
12909
5923a04c
TT
129102019-01-10 Tom Tromey <tom@tromey.com>
12911
12912 * psymtab.h (psymtab_storage::obstack): New method.
12913 <m_obstack>: Rename from obstack; now private.
12914 * psymtab.c (psymtab_storage): Update.
12915 * dwarf2read.c (create_addrmap_from_index)
12916 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
12917 Update.
12918
6d6a12bf
TT
129192019-01-10 Tom Tromey <tom@tromey.com>
12920
12921 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
12922 * objfiles.h (objfile::reset_psymtabs): New method.
12923
d320c2b5
TT
129242019-01-10 Tom Tromey <tom@tromey.com>
12925
12926 * symmisc.c (print_symbol_bcache_statistics): Update.
12927 (print_objfile_statistics): Update.
12928 * symfile.c (reread_symbols): Update.
12929 * psymtab.h (class psymtab_storage): New.
12930 * psymtab.c (psymtab_storage): New constructor.
12931 (~psymtab_storage): New destructor.
12932 (require_partial_symbols): Update.
12933 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
12934 (find_pc_sect_psymtab, find_pc_sect_psymbol)
12935 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
12936 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
12937 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
12938 (start_psymtab_common, end_psymtab_common)
12939 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
12940 (allocate_psymtab): Update.
12941 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
12942 Update.
12943 (dump_psymtab_addrmap, maintenance_print_psymbols)
12944 (maintenance_check_psymtabs): Update.
12945 (class objfile_psymtabs): Move to objfiles.h.
12946 * psympriv.h (discard_psymtab): Now inline.
12947 (psymtab_discarder::psymtab_discarder): Update.
12948 (psymtab_discarder::~psymtab_discarder): Update.
12949 (ALL_OBJFILE_PSYMTABS): Rewrite.
12950 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
12951 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
12952 Remove fields.
12953 <partial_symtabs>: New field.
12954 (class objfile_psymtabs): Move from psymtab.h. Update.
12955 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
12956 psymbol_cache.
12957 (objfile::~objfile): Don't destroy psymbol_cache.
12958 * mdebugread.c (parse_partial_symbols): Update.
12959 * dwarf2read.c (create_addrmap_from_index)
12960 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12961 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
12962 (add_partial_subprogram, dwarf2_ranges_read): Update.
12963 * dwarf-index-write.c (write_address_map)
12964 (write_one_signatured_type, recursively_write_psymbols)
12965 (class debug_names, class debug_names, write_psymtabs_to_index):
12966 Update.
12967
1d94a5a3
TT
129682019-01-10 Tom Tromey <tom@tromey.com>
12969
12970 * symtab.h (SYMBOL_SET_NAMES): Update.
12971 (symbol_set_names): Update.
12972 (MSYMBOL_SET_NAMES): Update.
12973 * symtab.c (symbol_set_names): Change argument to be an
12974 objfile_per_bfd_storage.
12975 * psymtab.c (add_psymbol_to_bcache): Update.
12976 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
12977
0f14768a
TT
129782019-01-10 Tom Tromey <tom@tromey.com>
12979
12980 * symtab.c (create_demangled_names_hash): Change argument to be an
12981 objfile_per_bfd_storage.
12982 (symbol_set_names): Update.
12983
6eee24ce
TT
129842019-01-10 Tom Tromey <tom@tromey.com>
12985
12986 * xcoffread.c (xcoff_initial_scan): Unconditionally call
12987 init_psymbol_list.
12988 * psymtab.c (init_psymbol_list): Do nothing if already called.
12989 * psympriv.h (init_psymbol_list): Add comment.
12990 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
12991 init_psymbol_list.
12992 * dbxread.c (dbx_symfile_read): Unconditionally call
12993 init_psymbol_list.
12994
75aedd27
TT
129952019-01-10 Tom Tromey <tom@tromey.com>
12996
12997 * xcoffread.c (scan_xcoff_symtab): Update.
12998 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
12999 "where".
13000 * mdebugread.c (parse_partial_symbols)
13001 (handle_psymbol_enumerators): Update.
13002 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
13003 * dbxread.c (read_dbx_symtab): Update.
13004 * psympriv.h (psymbol_placement): New enum.
13005 (add_psymbol_to_list): Update.
13006
939652a5
TT
130072019-01-10 Tom Tromey <tom@tromey.com>
13008
13009 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
13010 static_psymbols parameters.
13011 (scan_xcoff_symtab): Update.
13012 * psymtab.c (start_psymtab_common): Remove global_psymbols and
13013 static_psymbols parameters.
13014 * psympriv.h (start_psymtab_common): Update.
13015 * mdebugread.c (parse_partial_symbols): Update.
13016 * dwarf2read.c (create_partial_symtab): Update.
13017 * dbxread.c (read_dbx_symtab): Update.
13018 (start_psymtab): Remove global_psymbols and static_psymbols
13019 parameters.
13020
baa62830
TT
130212019-01-10 Tom Tromey <tom@tromey.com>
13022
13023 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
13024 * psymtab.c (allocate_psymtab): Add comment.
13025 * psympriv.h (allocate_psymtab): Add comment.
13026 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
13027 initializations.
13028 * dbxread.c (dbx_end_psymtab): Remove some initializations.
13029
0e8f53ba
TT
130302019-01-10 Tom Tromey <tom@tromey.com>
13031
13032 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13033 Don't declare.
13034 * mipsread.c: Include mdebugread.h.
13035 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13036 Declare.
13037 * elfread.c: Include mdebugread.h.
13038
b22a7c6a
TT
130392019-01-09 Tom Tromey <tom@tromey.com>
13040
13041 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
13042 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
13043 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
13044 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
13045 (psym_lookup_symbol, psym_find_last_source_symtab)
13046 (psym_forget_cached_source_info, psym_print_stats)
13047 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
13048 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
13049 (psym_map_matching_symbols, psym_expand_symtabs_matching)
13050 (psym_find_compunit_symtab_by_address)
13051 (maintenance_print_psymbols, maintenance_info_psymtabs)
13052 (maintenance_check_psymtabs): Use ranged for.
13053 * psymtab.h (class objfile_psymtabs): New.
13054 (require_partial_symbols): Return objfile_psymtabs.
13055 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
13056
3b9d3ac2
TT
130572019-01-09 Tom Tromey <tom@tromey.com>
13058
13059 * symfile.c (overlay_invalidate_all, find_pc_overlay)
13060 (find_pc_mapped_section, list_overlays_command)
13061 (map_overlay_command, unmap_overlay_command)
13062 (simple_overlay_update): Use all_objfiles.
13063 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
13064 * printcmd.c (info_symbol_command): Use all_objfiles.
13065 * objfiles.h (ALL_OBJSECTIONS): Remove.
13066 * maint.c (maintenance_translate_address): Use all_objfiles.
13067 * gcore.c (gcore_create_callback): Use all_objfiles.
13068 (objfile_find_memory_regions): Likewise.
13069
8b31193a
TT
130702019-01-09 Tom Tromey <tom@tromey.com>
13071
13072 * symtab.c (find_line_symtab, info_sources_command)
13073 (make_source_files_completion_list): Use objfile_compunits.
13074 * source.c (select_source_symtab): Use objfile_compunits.
13075 * objfiles.h (struct objfile): Update comment.
13076 (ALL_OBJFILES): Remove.
13077 (ALL_FILETABS): Remove.
13078 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
13079 objfile_compunits.
13080
d5da8b3c
TT
130812019-01-09 Tom Tromey <tom@tromey.com>
13082
13083 * symmisc.c (print_objfile_statistics, dump_objfile)
13084 (maintenance_print_symbols): Use compunit_filetabs.
13085 * source.c (forget_cached_source_info_for_objfile): Use
13086 compunit_filetabs.
13087 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
13088 (ALL_FILETABS): Use compunit_filetabs.
13089 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
13090 * coffread.c (coff_symtab_read): Use compunit_filetabs.
13091
5accd1a0
TT
130922019-01-09 Tom Tromey <tom@tromey.com>
13093
13094 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
13095 (compunit_filetabs): New.
13096 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
13097 compunit_filetabs.
13098 (info_sources_command, make_source_files_completion_list): Remove
13099 declaration.
13100 * symmisc.c (print_objfile_statistics, dump_objfile)
13101 (maintenance_print_symbols): Remove declaration.
13102 (maintenance_info_symtabs): Use compunit_filetabs.
13103 (maintenance_info_line_tables): Likewise.
13104 * source.c (select_source_symtab): Change local variable name.
13105 (forget_cached_source_info_for_objfile): Remove declaration.
13106 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
13107 * objfiles.c (objfile_relocate1): Remove declaration.
13108 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13109 declaration.
13110 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
13111 * coffread.c (coff_symtab_read): Remove declaration.
13112 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
13113 compunit_filetabs.
13114
d8aeb77f
TT
131152019-01-09 Tom Tromey <tom@tromey.com>
13116
13117 * symtab.c (lookup_objfile_from_block)
13118 (find_pc_sect_compunit_symtab, search_symbols)
13119 (default_collect_symbol_completion_matches_break_on): Use
13120 objfile_compunits.
13121 * objfiles.h (ALL_COMPUNITS): Remove.
13122 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
13123 * cp-support.c (add_symbol_overload_list_qualified): Use
13124 objfile_compunits.
13125 * ada-lang.c (ada_collect_symbol_completion_matches)
13126 (ada_add_global_exceptions): Use objfile_compunits.
13127
592553c4
TT
131282019-01-09 Tom Tromey <tom@tromey.com>
13129
13130 * source.c (select_source_symtab)
13131 (forget_cached_source_info_for_objfile): Remove declaration.
13132 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13133 declaration.
13134 * maint.c (count_symtabs_and_blocks): Remove declaration.
13135 * cp-support.c (add_symbol_overload_list_qualified): Remove
13136 declaration.
13137 * coffread.c (coff_symtab_read): Remove declaration.
13138 * symtab.c (lookup_symbol_in_objfile_symtabs)
13139 (basic_lookup_transparent_type_1): Use objfile_compunits.
13140 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
13141 (info_sources_command, search_symbols)
13142 (default_collect_symbol_completion_matches_break_on)
13143 (make_source_files_completion_list): Remove declaration.
13144 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
13145 (ada_collect_symbol_completion_matches)
13146 (ada_add_global_exceptions): Remove declaration.
13147 * linespec.c (iterate_over_all_matching_symtabs): Use
13148 objfile_compunits.
13149 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
13150 (class objfile_compunits): New.
13151 (ALL_COMPUNITS): Use objfile_compunits.
13152 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
13153 (maintenance_check_symtabs, maintenance_info_line_tables): Use
13154 objfile_compunits.
13155 * objfiles.c (objfile_relocate1): Use objfile_compunits.
13156
5325b9bf
TT
131572019-01-09 Tom Tromey <tom@tromey.com>
13158
13159 * symtab.c (search_symbols)
13160 (default_collect_symbol_completion_matches_break_on): Use
13161 objfile_msymbols.
13162 * ada-lang.c (ada_lookup_simple_minsym)
13163 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
13164 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
13165 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
13166 objfile_msymbols.
13167 * coffread.c (coff_symfile_read): Use objfile_msymbols.
13168 * symmisc.c (dump_msymbols): Use objfile_msymbols.
13169 * objc-lang.c (find_methods): Use objfile_msymbols.
13170 (info_selectors_command, info_classes_command): Likewise.
13171 * stabsread.c (scan_file_globals): Use objfile_msymbols.
13172 * objfiles.h (class objfile_msymbols): New.
13173 (ALL_OBJFILE_MSYMBOLS): Remove.
13174 (ALL_MSYMBOLS): Remove.
13175
cac85af2
TT
131762019-01-09 Tom Tromey <tom@tromey.com>
13177
13178 * common/next-iterator.h (next_adapter): Add Iterator template
13179 parameter.
13180 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
13181 (class all_objfiles_safe): New.
13182 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
13183 * objfiles.c (put_objfile_before): Update comment.
13184 (add_separate_debug_objfile): Likewise.
13185 (free_all_objfiles): Use all_objfiles_safe.
13186 (objfile_purge_solibs): Likewise.
13187
aed57c53
TT
131882019-01-09 Tom Tromey <tom@tromey.com>
13189
13190 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13191 (expand_symtab_containing_pc, lookup_static_symbol)
13192 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
13193 (find_symbol_at_address, find_line_symtab, find_main_name): Use
13194 all_objfiles.
13195 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
13196 * breakpoint.c (create_overlay_event_breakpoint)
13197 (create_longjmp_master_breakpoint)
13198 (create_std_terminate_master_breakpoint)
13199 (create_exception_master_breakpoint): Use all_objfiles.
13200 * linux-thread-db.c (try_thread_db_load_from_pdir)
13201 (has_libpthread): Use all_objfiles.
13202 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
13203 * linespec.c (iterate_over_all_matching_symtabs)
13204 (search_minsyms_for_name): Use all_objfiles.
13205 * maint.c (maintenance_info_sections): Use all_objfiles.
13206 * main.c (captured_main_1): Use all_objfiles.
13207 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
13208 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
13209 * guile/scm-pretty-print.c
13210 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
13211 * solib-spu.c (append_ocl_sos): Use all_objfiles.
13212 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
13213 (maintenance_print_msymbols): Use all_objfiles.
13214 * source.c (select_source_symtab): Use all_objfiles.
13215 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
13216 * symfile.c (remove_symbol_file_command)
13217 (expand_symtabs_matching, map_symbol_filenames): Use
13218 all_objfiles.
13219 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
13220 all_objfiles.
13221 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
13222 * objc-lang.c (find_methods): Use all_objfiles.
13223 * objfiles.c (have_partial_symbols, have_full_symbols)
13224 (have_minimal_symbols, qsort_cmp)
13225 (default_iterate_over_objfiles_in_search_order): Use
13226 all_objfiles.
13227 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
13228 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
13229 (maintenance_check_psymtabs): Use all_objfiles.
13230 (ALL_PSYMTABS): Remove.
13231 * compile/compile-object-run.c (do_module_cleanup): Use
13232 all_objfiles.
13233 * blockframe.c (find_pc_partial_function): Use all_objfiles.
13234 * cp-support.c (add_symbol_overload_list_qualified): Use
13235 all_objfiles.
13236 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13237 Use all_objfiles.
13238 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
13239 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
13240 all_objfiles.
13241 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13242 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
13243 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13244 Uses all_objfiles.
13245 * solib.c (solib_read_symbols): Use all_objfiles
13246
99d89cde
TT
132472019-01-09 Tom Tromey <tom@tromey.com>
13248
13249 * probe.c (parse_probes_in_pspace): Use all_objfiles.
13250 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
13251 all_objfiles.
13252 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
13253 * symmisc.c (print_symbol_bcache_statistics)
13254 (print_objfile_statistics, maintenance_print_objfiles)
13255 (maintenance_info_symtabs, maintenance_check_symtabs)
13256 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
13257 all_objfiles.
13258 * source.c (forget_cached_source_info): Use all_objfiles.
13259 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
13260 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13261 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
13262 * objfiles.c (update_section_map): Use all_objfiles.
13263 (shared_objfile_contains_address_p): Likewise.
13264 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
13265 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
13266
21708325
TT
132672019-01-09 Tom Tromey <tom@tromey.com>
13268
13269 * common/next-iterator.h: New file.
13270 * objfiles.h (class all_objfiles): New.
13271 (struct objfile_iterator): New.
13272
669e09f6
PW
132732019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13274
13275 * NEWS: Move the description of the changed "frame", "select-frame",
13276 and "info frame" commands to the Changed commands section.
13277
041be526
SM
132782019-01-09 Simon Marchi <simon.marchi@ericsson.com>
13279
13280 * gdbtypes.c (check_stub_method_group): Remove handling of old
13281 mangling schemes.
13282 * linespec.c (find_methods): Likewise.
13283 * stabsread.c (read_member_functions): Likewise.
13284 * valops.c (search_struct_method): Likewise.
13285 (value_struct_elt_for_reference): Likewise.
13286 * NEWS: Mention this change.
13287
0e2a2133
AB
132882019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13289
13290 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
13291 print_source_lines.
13292 * source.c (print_source_lines_base): Update line number check.
13293 (print_source_lines): New function.
13294 (source_lines_range::source_lines_range): New function.
13295 * source.h (class source_lines_range): New class.
13296 (print_source_lines): New declaration.
13297
1055a3b4
PW
132982019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13299
13300 * linespec.c (linespec_state_destructor): Free self->canonical_names.
13301
cfeadda5
TT
133022019-01-08 Tom Tromey <tom@tromey.com>
13303 Simon Marchi <simon.marchi@ericsson.com>
13304
13305 PR gdb/24060
13306 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
13307 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
13308 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13309 * f-exp.y (DOLLAR_VARIABLE): Likewise.
13310 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
13311 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13312
583068ca
AB
133132019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13314
13315 * source.c (select_source_symtab): Move header comment to
13316 declaration in source.h.
13317 (forget_cached_source_info_for_objfile): Likewise.
13318 (forget_cached_source_info): Likewise.
13319 (identify_source_line): Likewise.
13320 * source.h (identify_source_line): Move declaration from symtab.h
13321 and add comment from source.c
13322 (print_source_lines): Likewise.
13323 (forget_cached_source_info_for_objfile): Likewise.
13324 (forget_cached_source_info): Likewise.
13325 (select_source_symtab): Likewise.
13326 (enum print_source_lines_flag): Move definition from symtab.h.
13327 * symtab.h (identify_source_line): Move declaration to source.h.
13328 (print_source_lines): Likewise.
13329 (forget_cached_source_info_for_objfile): Likewise.
13330 (forget_cached_source_info): Likewise.
13331 (select_source_symtab): Likewise.
13332 (enum print_source_lines_flag): Move definition to source.h.
13333 * tui/tui-hooks.c: Add 'source.h' include.
13334
ec98a4ad
AB
133352019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13336
13337 * source.c (print_source_lines_base): Handle requests to print
13338 reverse line number sequences, and guard against empty lines
13339 string.
13340
62ea19c1
AB
133412019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13342
13343 * source.c (print_source_lines_base): Fix skip of '\r' if next
13344 character is '\n'.
13345
9d30e1fd
TT
133462019-01-06 Tom Tromey <tom@tromey.com>
13347
13348 * c-exp.y (struct c_parse_state) <macro_original_text,
13349 expansion_obstack>: New member.
13350 (macro_original_text, expansion_obstack): Remove globals.
13351 (scan_macro_expansion, scanning_macro_expansion)
13352 (finished_macro_expansion): Update.
13353 (scan_macro_cleanup): Remove.
13354 (yylex, c_parse): Update.
13355
c65bac38
TT
133562019-01-06 Tom Tromey <tom@tromey.com>
13357
13358 * c-exp.y (struct c_parse_state) <strings>: New member.
13359 (operator_stoken): Update.
13360
02e12e38
TT
133612019-01-06 Tom Tromey <tom@tromey.com>
13362
13363 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
13364 (union type_stack_elt) <typelist_val>: Now a pointer to
13365 std::vector.
13366 (type_stack_cleanup): Don't declare.
13367 (push_typelist): Update.
13368 * parse.c (pop_typelist): Return a std::vector.
13369 (push_typelist): Take a std::vector.
13370 (follow_types): Update. Do not free args.
13371 (type_stack_cleanup): Remove.
13372 * c-exp.y (struct c_parse_state): New.
13373 (cpstate): New global.
13374 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
13375 (nonempty_typelist): Update.
13376 (func_mod): Create a new vector.
13377 (c_parse): Create a c_parse_state.
13378 (check_parameter_typelist): Do not delete params.
13379 (function_method): Update. Do not delete type_list.
13380
f097f5ad
TT
133812019-01-06 Tom Tromey <tom@tromey.com>
13382
13383 PR gdb/28155:
13384 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
13385 check_typedef.
13386 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
13387 (print_return_value): Likewise.
13388
d2adf9f1
TT
133892019-01-05 Tom Tromey <tom@tromey.com>
13390
13391 * contrib/cleanup_check.py: Remove.
13392 * contrib/gcc-with-excheck: Remove.
13393 * contrib/exsummary.py: Remove.
13394 * contrib/excheck.py: Remove.
13395
2eab46b1
JB
133962019-01-05 Joel Brobecker <brobecker@adacore.com>
13397
13398 * thread.c (delete_thread_1): Add gdb_assert that THR is not
13399 NULL. Initialize tpprev to NULL instead of assigning it
13400 to NULL on the next statement.
13401 * windows-nat.c (windows_delete_thread): Remove check for
13402 main_thread_id before printing thread exit notifications.
13403 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
13404 Remove thread ID check against main_thread_id.
13405 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
13406 windows_delete_thread.
13407 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
13408
48c5e7e2
TT
134092019-01-04 Tom Tromey <tom@tromey.com>
13410
13411 * compile/compile.c (_initialize_compile): Use upper case for
13412 metasyntactic variables.
13413 * symmisc.c (_initialize_symmisc): Use upper case for
13414 metasyntactic variables.
13415 * psymtab.c (_initialize_psymtab): Use upper case for
13416 metasyntactic variables.
13417 * demangle.c (demangle_command): Use upper case for metasyntactic
13418 variables.
13419 (_initialize_demangler): Likewise.
13420 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
13421 variables.
13422
986041cd
TT
134232019-01-03 Tom Tromey <tom@tromey.com>
13424
13425 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
13426
7c711119
TT
134272019-01-03 Tom Tromey <tom@tromey.com>
13428
13429 * python/py-symtab.c (salpy_str): Update.
13430 (struct salpy_sal_object) <symtab>: Now a PyObject.
13431 (salpy_dealloc): Update.
13432 (del_objfile_sal): Use gdbpy_ref.
13433
1b20edf0
TT
134342019-01-03 Tom Tromey <tom@tromey.com>
13435
13436 * python/py-type.c (convert_field): Use new_reference. Return
13437 gdbpy_ref.
13438 (make_fielditem): Return gdbpy_ref.
13439 (typy_fields): Update.
13440 (typy_getitem): Update.
13441 (field_name): Return gdbpy_ref. Use new_reference.
13442 (typy_iterator_iternext): Update.
13443
ea41325b
TT
134442019-01-03 Tom Tromey <tom@tromey.com>
13445
13446 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
13447
2a3c71d6
TT
134482019-01-03 Tom Tromey <tom@tromey.com>
13449
13450 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
13451 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
13452 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
13453 (pspy_set_frame_filters, pspy_set_frame_unwinders)
13454 (pspy_set_type_printers): Likewise.
13455 * python/py-function.c (fnpy_init): Use gdbpy_ref.
13456 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
13457 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
13458 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
13459 (objfpy_set_type_printers): Likewise.
13460
5c329e6a
TT
134612019-01-03 Tom Tromey <tom@tromey.com>
13462
13463 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
13464 (gdbpy_print_stack): Use gdbpy_err_fetch.
13465 * python/python-internal.h (class gdbpy_err_fetch): New class.
13466 (class gdbpy_enter) <m_error_type, m_error_value,
13467 m_error_traceback>: Remove.
13468 <m_error>: New member.
13469 (gdbpy_exception_to_string): Don't declare.
13470 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
13471 * python/py-value.c (convert_value_from_python): Use
13472 gdbpy_err_fetch.
13473 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
13474 gdbpy_exception_to_string.
13475 (gdbpy_handle_exception): Use gdbpy_err_fetch.
13476 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
13477 gdbpy_err_fetch.
13478
169bb27b
AB
134792019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13480
13481 * linux-nat.c (delete_lwp_cleanup): Delete.
13482 (struct lwp_deleter): New struct.
13483 (lwp_info_up): New typedef.
13484 (linux_nat_target::follow_fork): Delete cleanup, and make use of
13485 lwp_info_up.
13486
a07c8880
AB
134872019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13488
13489 * linux-fork.c (class scoped_switch_fork_info): New class.
13490 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
13491
26089c49
AB
134922019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13493
13494 * valops.c (find_overload_match): Remove use of null_cleanup, and
13495 calls to do_cleanups.
13496
06d3e5b0
AB
134972019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13498
13499 * compile/compile-cplus-types.c
13500 (compile_cplus_instance::decl_name): Handle changes to
13501 cp_func_name.
13502 * cp-support.c (cp_func_name): Update header comment, update
13503 return type.
13504 * cp-support.h (cp_func_name): Update return type in declaration.
13505 * valops.c (find_overload_match): Move temp_func local to top
13506 level of function and change its type. Use temp_func to hold and
13507 delete temporary string obtained from cp_func_name.
13508
66644cd3
AB
135092019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13510
13511 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
13512 gdb::char_vector, remove cleanup, and update uses of `msg`.
13513
592d8c0a
JW
135142019-01-03 Jim Wilson <jimw@sifive.com>
13515
13516 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
13517
c55d06ec
TT
135182019-01-02 Tom Tromey <tom@tromey.com>
13519
13520 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
13521 (tdesc_parse_xml): Remove cleanups.
13522 * target-descriptions.h (make_cleanup_free_target_description):
13523 Don't declare.
13524 (target_desc_deleter): New struct.
13525 (target_desc_up): New typedef.
13526 * target-descriptions.c (target_desc_deleter::operator()): Rename
13527 from free_target_description.
13528 (make_cleanup_free_target_description): Remove.
13529
3a6ae42d
TT
135302019-01-02 Tom Tromey <tom@tromey.com>
13531
13532 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
13533 constructor, destructor.
13534 (linespec_parser): Remove typedef.
13535 (~linespec_parser): Rename from linespec_parser_delete.
13536 (linespec_lex_to_end, linespec_complete_label)
13537 (linespec_complete): Update.
13538 (decode_line_full): Remove cleanups.
13539 (decode_line_1): Update.
13540
61fd3e73
TT
135412019-01-02 Tom Tromey <tom@tromey.com>
13542
13543 * python/python-internal.h (inferior_to_inferior_object): Change
13544 return type.
13545 * python/py-exitedevent.c (create_exited_event_object): Update.
13546 * python/py-inferior.c (inferior_to_inferior_object): Return
13547 gdbpy_ref.
13548 (python_new_inferior, python_inferior_deleted)
13549 (thread_to_thread_object, delete_thread_object)
13550 (build_inferior_list, gdbpy_selected_inferior): Update.
13551 * python/py-infthread.c (create_thread_object): Update. Also fail
13552 if inferior_to_inferior_object fails.
13553
d20172fc
SM
135542019-01-02 Simon Marchi <simon.marchi@ericsson.com>
13555
13556 * inferior.h (class inferior) <displaced_step_state>: New field.
13557 * infrun.h (struct displaced_step_state): Move here from
13558 infrun.c. Initialize fields, add constructor.
13559 <inf>: Remove field.
13560 <reset>: New method.
13561 * infrun.c (struct displaced_step_inferior_state): Move to
13562 infrun.h.
13563 (displaced_step_inferior_states): Remove.
13564 (get_displaced_stepping_state): Adust.
13565 (displaced_step_in_progress_any_inferior): Adjust.
13566 (displaced_step_in_progress_thread): Adjust.
13567 (displaced_step_in_progress): Adjust.
13568 (add_displaced_stepping_state): Remove.
13569 (get_displaced_step_closure_by_addr): Adjust.
13570 (remove_displaced_stepping_state): Remove.
13571 (infrun_inferior_exit): Call displaced_step_state.reset.
13572 (use_displaced_stepping): Don't check for NULL.
13573 (displaced_step_prepare_throw): Call
13574 get_displaced_stepping_state.
13575 (displaced_step_fixup): Don't check for NULL.
13576 (prepare_for_detach): Don't check for NULL.
13577
e3319240
PW
135782019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13579
13580 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
13581 in case of call that did not complete.
13582
5d36dfb9
AU
135832019-01-02 Andrey Utkin <autkin@undo.io>
13584
13585 * symfile.c (find_separate_debug_file): Fix search of debug files for
13586 remote debuggee.
13587
8833fbf0
TT
135882019-01-02 Tom Tromey <tom@tromey.com>
13589
13590 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
13591 indentation.
13592 * python/py-frame.c (frapy_older): Remove cast.
13593 (frapy_newer): Likewise.
13594 * python/py-breakpoint.c (local_setattro): Remove cast.
13595 * python/py-arch.c (archpy_name): Remove local variable.
13596 * python/py-type.c (gdbpy_lookup_type): Remove cast.
13597
4ada3dfd
JB
135982019-01-02 Joel Brobecker <brobecker@adacore.com>
13599
13600 * unittests/basic_string_view/element_access/char/empty.cc:
13601 Fix year range in copyright header.
13602
113b7b81
AB
136032019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
13604
13605 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
13606 Delete.
13607 <operator==>: Update with for removed field.
13608 <hash>: Likewise.
13609 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
13610 <isa_features>: ...this.
13611 <abi_features>: New field.
13612 (riscv_isa_flen): Update comment.
13613 (riscv_abi_xlen): New declaration.
13614 (riscv_abi_flen): New declaration.
13615 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
13616 isa_features.
13617 (riscv_abi_xlen): New function.
13618 (riscv_isa_flen): Update to get answer from isa_features.
13619 (riscv_abi_flen): New function.
13620 (riscv_has_fp_abi): Update to get answer from abi_features.
13621 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
13622 xlen and flen.
13623 (riscv_call_info) <xlen, flen>: Update comment.
13624 (riscv_call_arg_struct): Remove invalid assertions
13625 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
13626 is removed.
13627 (riscv_gdbarch_init): Gather isa features and abi features
13628 separately, ensure both match on the gdbarch when reusing an old
13629 gdbarch. Relax an error check to allow 32-bit abi float to run on
13630 a target with 64-bit float hardware.
13631
b18ca514
PW
136322019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13633
13634 * source.c (search_command_helper): Stop reverse search
13635 when line 1 has been searched.
13636
ec70d8db
PW
136372019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13638
13639 * record-full.c (record_full_base_target::close): Rewrite
13640 record_full_core_buf_list free logic.
13641
5b38f9c1
PW
136422019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13643
13644 * break-catch-syscall.c (print_one_catch_syscall): xfree
13645 the last text.
13646
66d91b39
JB
136472019-01-01 Joel Brobecker <brobecker@adacore.com>
13648
13649 * top.c (print_gdb_version): Update Copyright year in version
13650 message.
13651
42a4f53d
JB
136522019-01-01 Joel Brobecker <brobecker@adacore.com>
13653
13654 Update copyright year range in all GDB files.
13655
7e955d83 136562019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 13657
5bbd631d 13658 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 13659
5bbd631d 13660For older changes see ChangeLog-2018.
c906108c
SS
13661\f
13662Local Variables:
13663mode: change-log
13664left-margin: 8
13665fill-column: 74
13666version-control: never
57da7796 13667coding: utf-8
c906108c 13668End:
5bbd631d 13669