Remove tui_win_is_auxiliary
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5c45899e
TT
12019-10-09 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
4 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
5
6d7fd9aa
TT
62019-10-09 Tom Tromey <tom@tromey.com>
7
8 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
9 window height directly.
10 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
11 declare.
12 * tui/tui-layout.c (tui_default_win_height): Remove.
13 (tui_default_win_viewport_height): Remove.
14
d2dd1084
TT
152019-10-09 Tom Tromey <tom@tromey.com>
16
17 * tui/tui.h: Remove comments.
18
cff32449
TV
192019-10-09 Tom de Vries <tdevries@suse.de>
20
21 * python/lib/gdb/printer/bound_registers.py: Use
22 '^builtin_type_bound128' as regexp argument for
23 add_builtin_pretty_printer.
24
6a25e8a2
CB
252019-10-09 Christian Biesinger <cbiesinger@google.com>
26
27 * guile/guile.c (guile_extension_script_ops): Remove forward
28 declaration and mark as static.
29 (guile_script_ops): Likewise.
30 (extension_language_guile): Move further down in the file so
31 it can reference the definitions for guile_{extension_,}script_ops.
32
6d9d6da4
AA
332019-10-09 Andreas Arnez <arnez@linux.ibm.com>
34
35 * s390-tdep.c (390_process_record): Handle new arch13 instructions
36 except SORTL, DFLTCC, and KDSA.
37
3abea05d
TT
382019-10-08 Tom Tromey <tromey@adacore.com>
39
40 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
41 (struct safe_symbol_file_add_args): Remove.
42
dde996e2
TT
432019-10-08 Tom Tromey <tromey@adacore.com>
44
45 * windows-nat.c: Don't include buildsym-legacy.h.
46
cd6fdaa1
TT
472019-10-08 Tom Tromey <tromey@adacore.com>
48
49 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
50
79bb1944
CB
512019-10-08 Christian Biesinger <cbiesinger@google.com>
52
53 * gdbtypes.c (overload_debug): Move comment to header.
54 * gdbtypes.h (overload_debug): Declare.
55 * valops.c: Remove declaration of overload_debug, instead
56 include gdbtypes.h.
57
34916edc
CB
582019-10-08 Christian Biesinger <cbiesinger@google.com>
59
60 * language.c (show_language_command): Pass lang_frame_mismatch_warn
61 through _().
62 (lang_frame_mismatch_warn): Make const, mark with N_(), and
63 move comment...
64 * language.h (lang_frame_mismatch_warn): ... here. Also add
65 declaration.
66 * top.c (lang_frame_mismatch_warn): Remove declaration.
67 (check_frame_language_change): Pass lang_frame_mismatch_warn
68 through _().
69
bad5c026
CB
702019-10-07 Christian Biesinger <cbiesinger@google.com>
71
72 * c-lang.h (vtbl_ptr_name): Declare.
73 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
74 it from the header.
75 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
76
51f1fdc3
CB
772019-10-07 Christian Biesinger <cbiesinger@google.com>
78
79 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
80 gdb_static_assert.
81
30d1f018
WP
822019-10-07 Weimin Pan <weimin.pan@oracle.com>
83
606813d5
WP
84 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
85 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
86 * ctfread.c: New file.
87 * ctfread.h: New file.
88 * elfread.c: Include ctfread.h.
89 (struct elfinfo text_p): New member ctfsect.
90 (elf_locate_sections): Mark CTF section.
91 (elf_symfile_read): Call elfctf_build_psymtabs.
92 * Makefile.in (LIBCTF): Add.
93 (CLIBS): Use it.
94 (CDEPS): Likewise.
95 (DIST): Add ctfread.c.
606813d5
WP
96
972019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
98
99 * ctfread.c (struct nextfield): Renamed to ...
100 (struct ctf_nextfield): ... this.
101 (struct field_info): Renamed to ...
102 (strut ctf_field_info): ... this.
103 (attach_fields_to_type): Update for renamed structures.
104 (ctf_add_member_cb): Likewise.
105 (ctf_add_enum_member_cb): Likewise.
106 (process_struct_members): Likewise.
107 (process_enum_type): Likewise.
30d1f018 108
518fe38c
WP
1092019-10-07 Weimin Pan <weimin.pan@oracle.com>
110
111 * tracectf.h: Rename, was ctf.h.
112 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
113 * tracefile.c: Likewise.
114 * tracepoint.c: Remove unused include ctf.h.
115 * mi/mi-main.c: Likewise.
116 * Makefile.in Replace ctf.c with tracectf.c.
117
225f296a
JB
1182019-10-06 Joel Brobecker <brobecker@adacore.com>
119
120 * version.in: Change version number to "9.0.50.DATE-git".
121
77c2dba3
TT
1222019-10-03 Tom Tromey <tom@tromey.com>
123
124 PR rust/24976:
125 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
126
179aed7f
AB
1272019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
128
129 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
130 cp_search_name_hash.
131 * NEWS: Add entry about nested function support.
132
0a4b0913
AB
1332019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
134 Andrew Burgess <andrew.burgess@embecosm.com>
135
136 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
137 for nested static variables when searchin VAR_DOMAIN.
138 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
139 global scope, update comment.
140 (add_partial_subprogram): Call add_partial_subprogram recursively
141 for nested subroutines when processinng Fortran.
142 (load_partial_dies): Process the child entities of a subprogram
143 when processing Fortran.
144 (partial_die_parent_scope): Handle building scope
145 for Fortran nested functions.
146 (process_die): Record that nested functions have a scope.
147 (new_symbol): Always record Fortran subprograms on the global
148 symbol list.
149 (determine_prefix): How to build the prefix for Fortran
150 subprograms.
151
d8c06f22
AB
1522019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
153
154 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
155 have just sent the thread a SIGSTOP and are waiting for it to
156 arrive.
157
a8b3b8e9
AB
1582019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
159
160 * btrace.c (btrace_add_pc): Remove whitespace before the template
161 parameter in 'std::vector <...>'.
162 (parse_xml_btrace_block): Likewise.
163 (btrace_maint_decode_pt): Likewise.
164 (btrace_maint_update_packets): Likewise.
165 (btrace_maint_print_packets): Likewise.
166 * btrace.h (struct btrace_maint_info): Likewise.
167 * dwarf2read.c (struct type_unit_group): Likewise.
168 (build_type_psymtabs_reader): Likewise.
169 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
170 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
171 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
172
4d825eab
TV
1732019-10-03 Tom de Vries <tdevries@suse.de>
174
175 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
176 the first line of the help text for set/show style metadata.
177
80fd2826
TT
1782019-10-02 Tom Tromey <tromey@adacore.com>
179
180 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
181 * gdbsupport/common-inferior.c: New file.
182 * infcmd.c (startup_with_shell): Don't define.
183 * nat/fork-inferior.h (startup_with_shell): Don't declare.
184 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
185 * inferior.h (startup_with_shell): Don't declare.
186
70054538
CB
1872019-10-02 Christian Biesinger <cbiesinger@google.com>
188
189 * gdbsupport/gdb_assert.h: Include errors.h.
190 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
191
37f6a7f4
TT
1922019-10-02 Tom Tromey <tromey@adacore.com>
193
194 * NEWS: Add $_ada_exception entry.
195 * ada-lang.c (struct ada_catchpoint): Add constructor.
196 <m_kind>: New member.
197 (allocate_location_exception, re_set_exception): Remove
198 "ex" parameter.
199 (should_stop_exception): Compute $_ada_exception.
200 (check_status_exception, print_it_exception)
201 (print_one_exception, print_mention_exception): Remove
202 "ex" parameter.
203 (allocate_location_catch_exception, re_set_catch_exception)
204 (check_status_exception, print_it_catch_exception)
205 (print_one_catch_exception, print_mention_catch_exception)
206 (print_recreate_catch_exception)
207 (allocate_location_catch_exception_unhandled)
208 (re_set_catch_exception_unhandled)
209 (check_status_exception, print_it_catch_exception_unhandled)
210 (print_one_catch_exception_unhandled)
211 (print_mention_catch_exception_unhandled)
212 (print_recreate_catch_exception_unhandled)
213 (allocate_location_catch_assert, re_set_catch_assert)
214 (check_status_assert, print_it_catch_assert)
215 (print_one_catch_assert, print_mention_catch_assert)
216 (print_recreate_catch_assert)
217 (allocate_location_catch_handlers, re_set_catch_handlers)
218 (check_status_handlers, print_it_catch_handlers)
219 (print_one_catch_handlers, print_mention_catch_handlers)
220 (print_recreate_catch_handlers): Remove.
221 (create_ada_exception_catchpoint): Update.
222 (initialize_ada_catchpoint_ops): Update.
223
fccf9de1
TT
2242019-10-02 Tom Tromey <tromey@adacore.com>
225
226 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
227 (create_excep_cond_exprs): Simplify exception string computation.
228 (ada_exception_catchpoint_cond_string): Likewise.
229
4b610737
TT
2302019-10-02 Tom Tromey <tromey@adacore.com>
231
232 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
233 * ada-lang.c (lesseq_defined_than): Handle
234 LOC_STATIC.
235 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
236 parameter.
237 (dwarf2_has_info): Likewise.
238 (new_symbol): Set maybe_copied on symbol when
239 appropriate.
240 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
241 parameter.
242 <can_copy>: New member.
243 * elfread.c (record_minimal_symbol): Set maybe_copied
244 on symbol when appropriate.
245 (elf_symfile_read): Update call to dwarf2_has_info.
246 * minsyms.c (lookup_minimal_symbol_linkage): New
247 function.
248 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
249 * symtab.c (get_symbol_address, get_msymbol_address):
250 New functions.
251 * symtab.h (get_symbol_address, get_msymbol_address):
252 Declare.
253 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
254 maybe_copied.
255 (struct symbol, struct minimal_symbol) <maybe_copied>:
256 New member.
257
1dd58850
TT
2582019-10-02 Tom Tromey <tromey@adacore.com>
259
260 * source.c (struct current_source_location): New.
261 (current_source_key): New global.
262 (current_source_symtab, current_source_line)
263 (current_source_pspace): Remove.
264 (get_source_location): New function.
265 (get_current_source_symtab_and_line)
266 (set_default_source_symtab_and_line)
267 (set_current_source_symtab_and_line)
268 (clear_current_source_symtab_and_line, select_source_symtab)
269 (info_source_command, print_source_lines_base)
270 (info_line_command, search_command_helper, _initialize_source):
271 Update.
272
5c281dbb
TT
2732019-10-02 Tom Tromey <tromey@adacore.com>
274
275 * source.c (select_source_symtab): Don't call
276 decode_line_with_current_source.
277
d3d32391
AB
2782019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
279
280 * symtab.c (lookup_global_symbol): Search global block.
281
38583298
TT
2822019-10-02 Tom Tromey <tromey@adacore.com>
283
284 * coffread.c (process_coff_symbol): Update.
285 * dwarf2read.c (var_decode_location, new_symbol): Update.
286 * mdebugread.c (parse_symbol): Update.
287 * objfiles.c (relocate_one_symbol): Update.
288 * stabsread.c (define_symbol, fix_common_block)
289 (scan_file_globals): Update.
290 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
291 (SET_SYMBOL_VALUE_ADDRESS): New macro.
292 * xcoffread.c (process_xcoff_symbol): Update.
293
9344c18f
AA
2942019-10-02 Andreas Arnez <arnez@linux.ibm.com>
295
296 * MAINTAINERS: Update my email address.
297
df07e2c7
AB
2982019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
299
300 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
301 std::vector.
302 (build_type_psymtabs_reader): Update for std::vector.
303 (build_type_psymtab_dependencies): Likewise.
304 * dwarf2read.h: Remove use of DEF_VEC_P.
305 (typedef sig_type_ptr): Delete.
306
554ac434
AB
3072019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
308
309 * btrace.c (btrace_maint_clear): Update to handle change from VEC
310 to std::vector.
311 (btrace_maint_decode_pt): Likewise, and move allocation of the
312 vector outside of the loop.
313 (btrace_maint_update_packets): Update to handle change from VEC to
314 std::vector.
315 (btrace_maint_print_packets): Likewise.
316 (maint_info_btrace_cmd): Likewise.
317 * btrace.h: Remove use of DEF_VEC_O.
318 (typedef btrace_pt_packet_s): Delete.
319 (struct btrace_maint_info) <packets>: Change fromm VEC to
320 std::vector.
321 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
322
46f29a9a
AB
3232019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
324
325 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
326 make accesses into the vector constant references.
327 (btrace_add_pc): Update for std::vector.
328 (btrace_stitch_bts): Likewise.
329 (parse_xml_btrace_block): Likewise.
330 (btrace_maint_update_packets): Likewise.
331 (btrace_maint_print_packets): Likewise.
332 (maint_info_btrace_cmd): Likewise.
333 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
334 std::vector.
335 (btrace_data::empty): Likewise.
336 (btrace_data_append): Likewise.
337 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
338 (typedef btrace_block_s): Delete.
339 (struct btrace_block): Add constructor.
340 (struct btrace_data_bts) <blocks>: Change to std::vector.
341 * nat/linux-btrace.c (perf_event_read_bts): Update for
342 std::vector.
343 (linux_read_bts): Likewise.
344
d770d56f
TT
3452019-10-01 Tom Tromey <tom@tromey.com>
346
347 * cli/cli-logging.c (show_logging_filename): Use styled_string.
348
9d636d67
TT
3492019-10-01 Tom Tromey <tom@tromey.com>
350
351 * stack.c (print_frame, info_frame_command_core): Use
352 styled_string.
353 * linux-thread-db.c (try_thread_db_load_1)
354 (try_thread_db_load_from_pdir_1): Use styled_string.
355 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
356 (auto_load_section_scripts, info_auto_load_local_gdbinit)
357 (maybe_print_unsupported_script_warning)
358 (maybe_print_script_not_found_warning): Use styled_string.
359 * ada-lang.c (user_select_syms): Use styled_string.
360
7f6aba03
TT
3612019-10-01 Tom Tromey <tom@tromey.com>
362
363 * p-lang.c (pascal_printstr): Use metadata style.
364 * value.c (show_convenience): Use metadata style.
365 * valprint.c (valprint_check_validity, val_print_optimized_out)
366 (val_print_not_saved, val_print_unavailable)
367 (val_print_invalid_address, generic_val_print, val_print)
368 (value_check_printable, val_print_array_elements): Use metadata
369 style.
370 * ui-out.h (class ui_out) <field_fmt>: New overload.
371 <do_field_fmt>: Add style parameter.
372 * ui-out.c (ui_out::field_fmt): New overload.
373 * typeprint.c (type_print_unknown_return_type)
374 (val_print_not_allocated, val_print_not_associated): Use metadata
375 style.
376 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
377 parameter.
378 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
379 * tracepoint.c (tvariables_info_1): Use metadata style.
380 * stack.c (print_frame_arg, print_frame_info, print_frame)
381 (info_frame_command_core): Use metadata style.
382 * skip.c (info_skip_command): Use metadata style.
383 * rust-lang.c (rust_print_enum): Use metadata style.
384 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
385 metadata style.
386 * python/py-framefilter.c (py_print_single_arg): Use metadata
387 style.
388 * printcmd.c (do_one_display, print_variable_and_value): Use
389 metadata style.
390 * p-valprint.c (pascal_val_print)
391 (pascal_object_print_value_fields): Use metadata style.
392 * p-typeprint.c (pascal_type_print_base): Use metadata style.
393 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
394 parameter.
395 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
396 * m2-valprint.c (m2_print_long_set): Use metadata style.
397 * m2-typeprint.c (m2_print_type): Use metadata style.
398 * infcmd.c (print_return_value_1): Use metadata style.
399 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
400 * f-valprint.c (info_common_command_for_block): Use metadata
401 style.
402 * f-typeprint.c (f_type_print_base): Use metadata style.
403 * expprint.c (print_subexp_standard): Use metadata style.
404 * cp-valprint.c (cp_print_value_fields): Use metadata style.
405 * cli/cli-style.h (class cli_style_option): Add constructor.
406 (metadata_style): Declare.
407 * cli/cli-style.c (metadata_style): New global.
408 (_initialize_cli_style): Register metadata style.
409 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
410 parameter.
411 * cli-out.c (cli_ui_out::do_field_fmt): Update.
412 * c-typeprint.c (c_type_print_base_struct_union)
413 (c_type_print_base_1): Use metadata style.
414 * breakpoint.c (watchpoint_value_print)
415 (print_one_breakpoint_location): Use metadata style.
416 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
417 style.
418 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
419 style.
420 * ada-valprint.c (val_print_packed_array_elements, printstr)
421 (print_field_values, ada_val_print_ref, ada_val_print): Use
422 metadata style.
423 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
424 style.
425 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
426 style.
427 * ada-lang.c (user_select_syms): Use metadata style.
428
14309bb6
TT
4292019-10-01 Tom Tromey <tom@tromey.com>
430
431 * cli/cli-cmds.c (pwd_command): Style output.
432
6a831f06
PA
4332019-10-01 Pedro Alves <palves@redhat.com>
434 Tom Tromey <tom@tromey.com>
435
436 * symtab.c (print_symbol_info): Use %ps.
437 (print_msymbol_info): Use %ps.
438 * symfile.c (symbol_file_add_with_addrs): Use %ps.
439 * printcmd.c (print_variable_and_value): Use %ps.
440 * macrocmd.c (show_pp_source_pos): Use %ps.
441 * infrun.c (print_exited_reason): Use ui_out::message.
442 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
443 (describe_other_breakpoints): Use ui_out::message and new
444 formats.
445 (say_where): Use new formats.
446 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
447 and new formats.
448
2a3c1174
PA
4492019-10-01 Pedro Alves <palves@redhat.com>
450 Tom Tromey <tom@tromey.com>
451
452 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
453 (test_gdb_formats): New function.
454 (run_tests): Call it.
455 (test_format_specifier): Update.
456 * utils.h (fputs_filtered): Update comment.
457 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
458 (fputs_styled_unfiltered): Declare.
459 * utils.c (fputs_styled_unfiltered): New function.
460 (vfprintf_maybe_filtered): Add gdbfmt parameter.
461 (vfprintf_filtered): Update.
462 (vfprintf_unfiltered, vprintf_filtered): Update.
463 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
464 * ui-out.h (enum ui_out_flag) <unfiltered_output,
465 disallow_ui_out_field>: New constants.
466 (enum class field_kind): New.
467 (struct base_field_s, struct signed_field_s): New.
468 (signed_field): New function.
469 (struct string_field_s): New.
470 (string_field): New function.
471 (struct styled_string_s): New.
472 (styled_string): New function.
473 (class ui_out) <message>: Add comment.
474 <vmessage, call_do_message>: New methods.
475 <do_message>: Add style parameter.
476 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
477 methods.
478 (ui_out::message): Rewrite.
479 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
480 parameter.
481 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
482 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
483 gdb_extensions parameter.
484 (class format_piece): Add parameter to constructor.
485 (n_int_args): New field.
486 * gdbsupport/format.c (format_pieces::format_pieces): Add
487 gdb_extensions parameter. Handle '*'.
488 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
489 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
490 vfprintf_styled_no_gdbfmt.
491 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
492 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
493 unfiltered output.
494 * ui-style.h (struct ui_file_style) <ptr>: New method.
495
0dfe5bfb
TT
4962019-10-01 Tom Tromey <tom@tromey.com>
497
498 * unittests/format_pieces-selftests.c: Update. Add final format.
499 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
500 empty literal pieces.
501
e43b10e1
TT
5022019-10-01 Tom Tromey <tom@tromey.com>
503
504 * ui-out.h (enum class ui_out_style_kind): Remove.
505 (class ui_out) <field_string, field_stsream, do_field_string>:
506 Change type of "style".
507 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
508 (ui_out::field_string): Update.
509 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
510 of "style".
511 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
512 * tracepoint.c (print_one_static_tracepoint_marker): Update.
513 * stack.c (print_frame_arg, print_frame_info, print_frame):
514 Update.
515 * source.c (print_source_lines_base): Update.
516 * solib.c (info_sharedlibrary_command): Update.
517 * skip.c (info_skip_command): Update.
518 * record-btrace.c (btrace_call_history_src_line)
519 (btrace_call_history): Update.
520 * python/py-framefilter.c (py_print_frame): Update.
521 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
522 "style".
523 * mi/mi-out.c (mi_ui_out::do_table_header)
524 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
525 (mi_ui_out::do_field_string): Update.
526 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
527 Update.
528 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
529 "style".
530 * cli-out.c (cli_ui_out::do_table_header)
531 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
532 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
533 (cli_ui_out::do_field_fmt): Update.
534 * breakpoint.c (print_breakpoint_location): Update.
535 (update_static_tracepoint): Update.
536
cd7c32c3
PW
5372019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
538
539 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
540 conversion of gdb_datadir.
541 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
542 remove not needed c_str ().
543
8fe0f950
AT
5442019-09-30 Ali Tamur <tamur@google.com>
545
546 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
547 (dwarf2_string_attr): Likewise.
548
5f48f8f3
AT
5492019-09-30 Ali Tamur <tamur@google.com>
550
551 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
552 (process_full_type_unit): Likewise.
553 (dump_die_shallow): Likewise.
554 (cu_debug_loc_section): Likewise.
555
6fb08628
CB
5562019-09-28 Christian Biesinger <cbiesinger@google.com>
557
558 * minsyms.c (compare_minimal_symbols): Rename to...
559 (minimal_symbol_is_less_than): ...this, and adjust to STL
560 conventions (return bool, take arguments as references)
561 (minimal_symbol_reader::install): Call std::sort instead
562 of qsort.
563
c7ee338a
CB
5642019-09-29 Christian Biesinger <cbiesinger@google.com>
565
566 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
567 hash and why.
568 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
569 msymbol_hash, msymbol_demangled_hash>: Improve comments.
570
703a86c2
SM
5712019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
572
573 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
574 * psympriv.h (add_psymbol_to_list): Move comment here and update
575 it.
576
0df0352a
TV
5772019-09-29 Tom de Vries <tdevries@suse.de>
578
579 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
580 Use $tmpdir/$(basename "$output_file").dwz instead of
581 "${output_file}.dwz".
582
ad75efa6
SM
5832019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
584
585 PR gdb/25045
586 * hppa-linux-nat.c: Include gdbarch.h.
587
ececd218
CB
5882019-09-26 Christian Biesinger <cbiesinger@google.com>
589
590 * blockframe.c (find_pc_partial_function): Change return type to bool.
591 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
592 * minsyms.c (in_gnu_ifunc_stub): Likewise.
593 (stub_gnu_ifunc_resolve_name): Likewise.
594 * symtab.c (compare_filenames_for_search): Likewise.
595 (compare_glob_filenames_for_search): Likewise.
596 (matching_obj_sections): Likewise.
597 (symbol_matches_domain): Likewise.
598 (find_line_symtab): Change out param EXACT_MATCH to bool *.
599 (find_line_pc): Change return type to bool.
600 (find_line_pc_range): Likewise.
601 (producer_is_realview): Likewise.
602 * symtab.h (symbol_matches_domain): Likewise.
603 (find_pc_partial_function): Likewise.
604 (find_pc_line_pc_range): Likewise.
605 (in_gnu_ifunc_stub): Likewise.
606 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
607 (find_line_pc): Likewise.
608 (find_line_pc_range): Likewise.
609 (matching_obj_sections): Likewise.
610 (find_line_symtab): Change out parameter to bool.
611 (producer_is_realview): Change return type to bool.
612 (compare_filenames_for_search): Likewise.
613 (compare_glob_filenames_for_search): Likewise.
614
27a900b8
TT
6152019-09-26 Tom Tromey <tom@tromey.com>
616
617 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
618 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
619 * gdb_usleep.h: Remove.
620 * gdb_usleep.c: Remove.
621 * utils.c: Don't include gdb_usleep.h.
622
5d63b30a
TT
6232019-09-26 Tom Tromey <tromey@adacore.com>
624
625 * python/py-type.c (type_to_type_object): Call check_typedef
626 for stub types.
627
12904d37
TT
6282019-09-26 Tom Tromey <tom@tromey.com>
629
630 * utils.h (initialize_utils): Don't declare.
631 * top.c (gdb_init): Don't call initialize_utils.
632 * utils.c (initialize_utils): Remove. Move contents...
633 (_initialize_utils): ... here.
634
858f25f0
TT
6352019-09-25 Tom Tromey <tom@tromey.com>
636
637 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
638 * utils.h (make_hex_string): Don't declare.
639 * utils.c (make_hex_string): Remove.
640
3d435220
TV
6412019-09-24 Tom de Vries <tdevries@suse.de>
642
643 PR gdb/23815
644 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
645 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
646
ddd44b70
DD
6472019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
648
649 * NEWS: Mention new simulator port for PRU.
650
f945dedf
CB
6512019-09-23 Christian Biesinger <cbiesinger@google.com>
652
653 * ada-exp.y (write_object_remaining): Update.
654 * ada-lang.c (ada_decode): Return a std::string instead of a char*
655 and eliminate the static buffer.
656 (ada_decode_symbol): Update.
657 (ada_la_decode): Update.
658 (ada_sniff_from_mangled_name): Update.
659 (is_valid_name_for_wild_match): Update.
660 (ada_lookup_name_info::matches): Update and simplify.
661 (name_matches_regex): Update.
662 (ada_add_global_exceptions): Update.
663 * ada-lang.h (ada_decode): Update signature.
664 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
665 * dwarf-index-write.c (debug_names::insert): Update.
666
7ab78ccb
SM
6672019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
668
669 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
670 formatting.
671
9252448b
SM
6722019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
673
674 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
675 Change "nonzero" to "true" in documentation.
676
626ca2c0
CB
6772019-09-20 Christian Biesinger <cbiesinger@google.com>
678
679 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
680 (_initialize_darwin_solib): Don't set
681 darwin_so_ops.lookup_lib_global_symbol.
682 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
683 set_gdbarch_iterate_over_objfiles_in_search_order.
684 (elf_lookup_lib_symbol): Rename to...
685 (svr4_iterate_over_objfiles_in_search_order): this, and update
686 to iterate semantics.
687 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
688 * solib.c (solib_global_lookup): Remove.
689 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
690 (solib_global_lookup): Remove.
691 * symtab.c (lookup_global_or_static_symbol): Remove call to
692 solib_global_lookup.
693
5a3a0d63
JB
6942019-09-20 Joel Brobecker <brobecker@adacore.com>
695
696 * NEWS: Move entries about default MI version now being
697 version 3, and about the GDB/MI fix for multi-location
698 breakpoints to the "since GDB 8.3" section.
699
ffea1427
JB
7002019-09-20 Joel Brobecker <brobecker@adacore.com>
701
702 GDB 8.3.1 released.
703
abf516c6
UW
7042019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
705
706 * NEWS: Mention that Cell/B.E. debugging support was removed.
707 * MAINTAINERS: Remove spu target.
708
709 * config/djgpp/fnchange.lst: Remove entries for removed files.
710
711 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
712 spu-multiarch.o, and spu-tdep.o.
713 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
714 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
715 spu-multiarch.c, and spu-tdep.c.
716 * spu-linux-nat.c: Remove file.
717 * spu-multiarch.c: Remove file.
718 * spu-tdep.c: Remove file.
719 * spu-tdep.h: Remove file.
720 * solib-spu.c: Remove file.
721 * solib-spu.h: Remove file.
722
723 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
724 * configure.nat (spu-linux): Remove.
725 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
726 solib-multiarch.o from gdb_target_obs.
727 (spu*-*-*): Remove.
728
729 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
730 feature flag.
731 (ppc_linux_no_features): Update.
732 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
733 Cell/B.E. support.
734 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
735 (tdesc_powerpc_cell64l): Likewise.
736 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
737 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
738 Cell/B.E. support.
739 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
740 Do not include "features/rs6000/powerpc-cell32l.c" or
741 "features/rs6000/powerpc-cell64l.c".
742 (ppc_linux_spu_section): Remove.
743 (ppc_linux_core_read_description): Remove Cell/B.E. support.
744 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
745 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
746 (ppc_linux_spe_context_lookup): Remove.
747 (ppc_linux_spe_context_inferior_created): Remove.
748 (ppc_linux_spe_context_solib_loaded): Remove.
749 (ppc_linux_spe_context_solib_unloaded): Remove.
750 (ppc_linux_spe_context): Remove.
751 (struct ppu2spu_cache): Remove.
752 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
753 (struct ppu2spu_data): Remove.
754 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
755 ppu2spu_unwind): Remove.
756 (ppc_linux_init_abi): Remove Cell/B.E. support.
757 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
758
759 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
760 (rs6000/powerpc-cell64l-expedite): Likewise
761 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
762 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
763 rs6000/powerpc-cell64l.xml.
764 * features/rs6000/powerpc-cell32l.xml: Remove.
765 * features/rs6000/powerpc-cell64l.xml: Likewise.
766 * features/rs6000/powerpc-cell32l.c: Remove generated file.
767 * features/rs6000/powerpc-cell64l.c: Likewise.
768 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
769 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
770 * regformats/reg-spu.dat: Remove.
771
772 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
773 * corelow.c (struct spuid_list): Remove.
774 (add_to_spuid_list): Remove.
775 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
776 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
777 (remote_protocol_features): Remove associated entries.
778 (_initialize_remote): No longer initialize them.
779 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
780 * linux-nat.c (SPUFS_MAGIC): Remove.
781 (linux_proc_xfer_spu): Remove.
782 (spu_enumerate_spu_ids): Remove.
783 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
784 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
785 (linux_make_corefile_notes): No longer call it.
786
787 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
788 (cooked_write_test): Likewise.
789
78e8cb91
TT
7902019-09-20 Tom Tromey <tom@tromey.com>
791
792 * NEWS: Mention case-sensitivity of TUI commands.
793 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
794 (tui_set_win_height_command, parse_scrolling_args): Likewise.
795 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
796
f074b67e
TT
7972019-09-20 Tom Tromey <tom@tromey.com>
798
799 * tui/tui-source.c (tui_source_window::set_contents): Use
800 make_unique_xstrdup.
801 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
802 make_unique_xstrdup.
803
63c4bf19
TT
8042019-09-20 Tom Tromey <tom@tromey.com>
805
806 * tui/tui-data.c: Remove separator comments.
807 * tui/tui-layout.c: Remove separator comments.
808 * tui/tui-win.c: Remove separator comments.
809 * tui/tui-wingeneral.c: Remove separator comments.
810
43df9b2f
TT
8112019-09-20 Tom Tromey <tom@tromey.com>
812
813 * tui/tui.h (strcat_to_buf): Don't declare.
814 * tui/tui.c (strcat_to_buf): Remove.
815
7226433c
TT
8162019-09-20 Tom Tromey <tom@tromey.com>
817
818 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
819 from "fullname".
820 * tui/tui-source.c (tui_source_window::set_contents)
821 (tui_source_window::location_matches_p)
822 (tui_source_window::maybe_update): Update.
823
80df3337
TT
8242019-09-20 Tom Tromey <tom@tromey.com>
825
826 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
827 Update.
828 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
829 prefix.
830 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
831 (tui_data_window::line_from_reg_element_no)
832 (tui_data_window::first_reg_element_no_inline)
833 (tui_data_window::show_registers)
834 (tui_data_window::show_register_group)
835 (tui_data_window::display_registers_from)
836 (tui_data_window::display_registers_from_line)
837 (tui_data_window::first_data_item_displayed)
838 (tui_data_window::delete_data_content_windows)
839 (tui_data_window::erase_data_content)
840 (tui_data_window::do_scroll_vertical)
841 (tui_data_window::refresh_window)
842 (tui_data_window::check_register_values): Update.
843
9923f347
TT
8442019-09-20 Tom Tromey <tom@tromey.com>
845
846 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
847 (struct tui_locator_window) <full_name, proc_name>: Now
848 std::string.
849 * tui/tui-stack.c (tui_locator_window::make_status_line)
850 (tui_locator_window::set_locator_fullname)
851 (tui_locator_window::set_locator_info): Update.
852 * tui/tui-source.c (tui_source_window::set_contents)
853 (tui_source_window::showing_source_p): Update.
854
b76251ab
TT
8552019-09-20 Tom Tromey <tom@tromey.com>
856
857 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
858 Don't call tui_locator_win_info_ptr.
859
0891be08
TT
8602019-09-20 Tom Tromey <tom@tromey.com>
861
862 * tui/tui-win.c (tui_resize_all): Don't call refresh.
863
1b935acf
TT
8642019-09-20 Tom Tromey <tom@tromey.com>
865
866 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
867 height for locator.
868 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
869 * tui/tui-layout.c (show_source_disasm_command, show_data)
870 (show_source_or_disasm_and_command): Use 1 as height for locator.
871
9abd8a65
TT
8722019-09-20 Tom Tromey <tom@tromey.com>
873
874 * tui/tui.c (tui_enable): Update.
875 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
876 Update.
877 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
878 Update.
879 * tui/tui-data.c (win_resized): Now bool.
880 (tui_win_resized): Return bool.
881 (tui_set_win_resized_to): Accept a bool.
882
b5457826
TT
8832019-09-20 Tom Tromey <tom@tromey.com>
884
885 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
886 Change type of "refresh_values_only".
887 * tui/tui-regs.c (tui_data_window::show_register_group): Change
888 type of "refresh_values_only".
889
6b915f7d
TT
8902019-09-20 Tom Tromey <tom@tromey.com>
891
892 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
893 std::string.
894 (tui_disassemble): Add "pos" parameter.
895 (tui_disasm_window::set_contents): Simplify.
896
2ad52f6f
TT
8972019-09-20 Tom Tromey <tom@tromey.com>
898
899 * tui/tui-winsource.h (struct tui_source_window_base)
900 <show_source_content>: Now private.
901 * tui/tui-winsource.c
902 (tui_source_window_base::show_source_content): Don't handle empty
903 content case.
904
b3b1bde6
TT
9052019-09-20 Tom Tromey <tom@tromey.com>
906
907 * tui/tui-layout.c (show_source_disasm_command)
908 (show_source_or_disasm_and_command): Don't call
909 show_source_content.
910
71a25ed2
TT
9112019-09-20 Tom Tromey <tom@tromey.com>
912
913 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
914 Declare.
915 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
916 from tui_make_status_line.
917 (tui_locator_window::rerender): Update.
918
f8532154
TT
9192019-09-20 Tom Tromey <tom@tromey.com>
920
921 * tui/tui-stack.c (tui_make_status_line): Return std::string.
922 (tui_locator_window::rerender): Update.
923
2d81b349
TT
9242019-09-20 Tom Tromey <tom@tromey.com>
925
926 * tui/tui-winsource.h (struct tui_source_window_base)
927 <~tui_source_window_base>: Don't declare.
928 <fullname>: Remove.
929 * tui/tui-winsource.c (~tui_source_window_base): Remove.
930 * tui/tui-source.h (struct tui_source_window) <fullname>: New
931 member.
932 * tui/tui-source.c (tui_source_window::set_contents): Update.
933 (tui_source_window::location_matches_p)
934 (tui_source_window::maybe_update): Update.
935
f14bec58
TT
9362019-09-20 Tom Tromey <tom@tromey.com>
937
938 * tui/tui-winsource.h (~tui_source_element): Remove.
939 (tui_source_element): Update.
940 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
941 * tui/tui-winsource.c (tui_show_source_line): Update.
942 * tui/tui-source.c (tui_source_window::set_contents): Update.
943 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
944
78d5933a
TT
9452019-09-20 Tom Tromey <tom@tromey.com>
946
947 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
948 declare.
949 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
950 tui_clear_source_windows_detail.
951 * tui/tui-winsource.h (struct tui_source_window_base)
952 <clear_detail>: Don't declare.
953 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
954 Remove.
955 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
956
d4207696
TT
9572019-09-20 Tom Tromey <tromey@adacore.com>
958
959 PR ada/24919:
960 * block.c (contained_in): Fix final return value.
961
00f93c44
AM
9622019-09-20 Alan Modra <amodra@gmail.com>
963
964 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
965 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
966 (read_indirect_string_from_dwz): Use bfd accessor.
967 * dwarf2read.h (struct dwz_file <filename>): Likewise.
968 * machoread.c (macho_symfile_read_all_oso): Likewise.
969 * solib.c (solib_bfd_open): Likewise.
970
e4153ae6
CB
9712019-09-19 Christian Biesinger <cbiesinger@google.com>
972
973 * eval.c: Move declaration of overload_resolution to...
974 * value.h: ...here.
975
c7ae7675
CB
9762019-09-19 Christian Biesinger <cbiesinger@google.com>
977
978 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
979 * arm-linux-tdep.c: Likewise.
980 * arm-nbsd-nat.c: Likewise.
981 * arm-tdep.h: Declare arm_apcs_32.
982 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
983
e86f08d2
CB
9842019-09-19 Christian Biesinger <cbiesinger@google.com>
985
986 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
987 * dwarf2read.h: Declare dwarf_always_disassemble.
988
f64e2f40
TV
9892019-09-19 Tom de Vries <tdevries@suse.de>
990
991 PR gdb/25009
992 * source-cache.c (source_cache::ensure): Catch exception thrown during
993 construction of the highlighter.
994
fd361982
AM
9952019-09-18 Alan Modra <amodra@gmail.com>
996
997 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
998 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
999 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
1000 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
1001 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
1002 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
1003 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
1004 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
1005 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
1006 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
1007 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
1008 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
1009 * solib-spu.c, * solib-svr4.c, * solib-target.c,
1010 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
1011 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
1012 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
1013 * mi/mi-interp.c: Update throughout for bfd section macro and
1014 function changes.
1015 * gcore (gcore_create_callback): Use bfd_set_section_lma.
1016 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
1017
11061048
TT
10182019-09-18 Tom Tromey <tom@tromey.com>
1019
1020 * NEWS: Add entry.
1021 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
1022 call rl_initialize.
1023 (tui_enable): Do not call rl_initialize.
1024
7a27b85f
CG
10252019-09-18 Christian Groessler <chris@groessler.org>
1026
1027 * alpha-linux-nat.c: Include gdbarch.h.
1028
f64eea3a
SM
10292019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
1030
1031 * ui-file.c: Include cli/cli-style.h.
1032 (term_cli_styling): Remove cli_styling declaration.
1033
e6f7f6d1
AM
10342019-09-18 Alan Modra <amodra@gmail.com>
1035
1036 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
1037 to bfd_asymbol_section.
1038
1d38e9d1
AM
10392019-09-18 Alan Modra <amodra@gmail.com>
1040
1041 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
1042 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
1043 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
1044
90d92a63
AM
10452019-09-18 Alan Modra <amodra@gmail.com>
1046
1047 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
1048 * spu-linux-nat.c (spu_bfd_open): Likewise.
1049
a3d181d2
CB
10502019-09-18 Christian Biesinger <cbiesinger@google.com>
1051
1052 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
1053 to bool to match definition in dwarf2read.c.
1054
491144b5
CB
10552019-09-17 Christian Biesinger <cbiesinger@google.com>
1056
1057 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
1058 (print_signatures): Likewise.
1059 (trust_pad_over_xvs): Likewise.
1060 * arch/aarch64-insn.c (aarch64_debug): Likewise.
1061 * arch/aarch64-insn.h (aarch64_debug): Likewise.
1062 * arm-linux-nat.c (arm_apcs_32): Likewise.
1063 * arm-linux-tdep.c (arm_apcs_32): Likewise.
1064 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
1065 * arm-tdep.c (arm_debug): Likewise.
1066 (arm_apcs_32): Likewise.
1067 * auto-load.c (debug_auto_load): Likewise.
1068 (auto_load_gdb_scripts): Likewise.
1069 (global_auto_load): Likewise.
1070 (auto_load_local_gdbinit): Likewise.
1071 (auto_load_local_gdbinit_loaded): Likewise.
1072 * auto-load.h (global_auto_load): Likewise.
1073 (auto_load_local_gdbinit): Likewise.
1074 (auto_load_local_gdbinit_loaded): Likewise.
1075 * breakpoint.c (disconnected_dprintf): Likewise.
1076 (breakpoint_proceeded): Likewise.
1077 (automatic_hardware_breakpoints): Likewise.
1078 (always_inserted_mode): Likewise.
1079 (target_exact_watchpoints): Likewise.
1080 (_initialize_breakpoint): Update.
1081 * breakpoint.h (target_exact_watchpoints): Change to bool.
1082 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
1083 * cli/cli-cmds.c (trace_commands): Likewise.
1084 * cli/cli-cmds.h (trace_commands): Likewise.
1085 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
1086 to bool*.
1087 * cli/cli-logging.c (logging_overwrite): Change to bool.
1088 (logging_redirect): Likewise.
1089 (debug_redirect): Likewise.
1090 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
1091 (struct boolean_option_def) <get_var_address_cb_>: Change return type
1092 to bool.
1093 <boolean_option_def>: Update.
1094 (struct flag_option_def): Change default type of Context to bool
1095 from int.
1096 <flag_option_def>: Change return type of var_address_cb_ to bool*.
1097 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
1098 (get_setshow_command_value_string): Likewise.
1099 * cli/cli-style.c (cli_styling): Change to bool.
1100 (source_styling): Likewise.
1101 * cli/cli-style.h (source_styling): Likewise.
1102 (cli_styling): Likewise.
1103 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
1104 to bool.
1105 * command.h (var_types): Update comment.
1106 (add_setshow_boolean_cmd): Change int* var argument to bool*.
1107 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
1108 bool.
1109 (debug_compile_cplus_scopes): Likewise.
1110 * compile/compile-internal.h (compile_debug): Likewise.
1111 * compile/compile.c (compile_debug): Likewise.
1112 (struct compile_options) <raw>: Likewise.
1113 * cp-support.c (catch_demangler_crashes): Likewise.
1114 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
1115 (usr_cmd_cris_dwarf2_cfi): Likewise.
1116 * csky-tdep.c (csky_debug): Likewise.
1117 * darwin-nat.c (enable_mach_exceptions): Likewise.
1118 * dcache.c (dcache_enabled_p): Likewise.
1119 * defs.h (info_verbose): Likewise.
1120 * demangle.c (demangle): Likewise.
1121 (asm_demangle): Likewise.
1122 * dwarf-index-cache.c (debug_index_cache): Likewise.
1123 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
1124 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
1125 * dwarf2read.c (check_physname): Likewise.
1126 (use_deprecated_index_sections): Likewise.
1127 (dwarf_always_disassemble): Likewise.
1128 * eval.c (overload_resolution): Likewise.
1129 * event-top.c (set_editing_cmd_var): Likewise.
1130 (exec_done_display_p): Likewise.
1131 * event-top.h (set_editing_cmd_var): Likewise.
1132 (exec_done_display_p): Likewise.
1133 * exec.c (write_files): Likewise.
1134 * fbsd-nat.c (debug_fbsd_lwp): Likewise
1135 (debug_fbsd_nat): Likewise.
1136 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
1137 Likewise.
1138 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
1139 <backtrace_past_entry> Likewise.
1140 * gdb-demangle.h (demangle): Likewise.
1141 (asm_demangle): Likewise.
1142 * gdb_bfd.c (bfd_sharing): Likewise.
1143 * gdbcore.h (write_files): Likewise.
1144 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
1145 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
1146 * gdbthread.h (print_thread_events): Likewise.
1147 * gdbtypes.c (opaque_type_resolution): Likewise.
1148 (strict_type_checking): Likewise.
1149 * gnu-nat.c (gnu_debug_flag): Likewise.
1150 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
1151 * guile/scm-param.c (pascm_variable): Add boolval.
1152 (add_setshow_generic): Update.
1153 (pascm_param_value): Update.
1154 (pascm_set_param_value_x): Update.
1155 * hppa-tdep.c (hppa_debug): Change to bool..
1156 * infcall.c (may_call_functions_p): Likewise.
1157 (coerce_float_to_double_p): Likewise.
1158 (unwind_on_signal_p): Likewise.
1159 (unwind_on_terminating_exception_p): Likewise.
1160 * infcmd.c (startup_with_shell): Likewise.
1161 * inferior.c (print_inferior_events): Likewise.
1162 * inferior.h (startup_with_shell): Likewise.
1163 (print_inferior_events): Likewise.
1164 * infrun.c (step_stop_if_no_debug): Likewise.
1165 (detach_fork): Likewise.
1166 (debug_displaced): Likewise.
1167 (disable_randomization): Likewise.
1168 (non_stop): Likewise.
1169 (non_stop_1): Likewise.
1170 (observer_mode): Likewise.
1171 (observer_mode_1): Likewise.
1172 (set_observer_mode): Update.
1173 (sched_multi): Change to bool.
1174 * infrun.h (debug_displaced): Likewise.
1175 (sched_multi): Likewise.
1176 (step_stop_if_no_debug): Likewise.
1177 (non_stop): Likewise.
1178 (disable_randomization): Likewise.
1179 * linux-tdep.c (use_coredump_filter): Likewise.
1180 (dump_excluded_mappings): Likewise.
1181 * linux-thread-db.c (auto_load_thread_db): Likewise.
1182 (check_thread_db_on_load): Likewise.
1183 * main.c (captured_main_1): Update.
1184 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
1185 xx2_opt, boolean_opt>: Change to bool.
1186 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
1187 * maint.c (maintenance_profile_p): Likewise.
1188 (per_command_time): Likewise.
1189 (per_command_space): Likewise.
1190 (per_command_symtab): Likewise.
1191 * memattr.c (inaccessible_by_default): Likewise.
1192 * mi/mi-main.c (mi_async): Likewise.
1193 (mi_async_1): Likewise.
1194 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
1195 * nat/fork-inferior.h (startup_with_shell): Likewise.
1196 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
1197 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
1198 * nios2-tdep.c (nios2_debug): Likewise.
1199 * or1k-tdep.c (or1k_debug): Likewise.
1200 * parse.c (parser_debug): Likewise.
1201 * parser-defs.h (parser_debug): Likewise.
1202 * printcmd.c (print_symbol_filename): Likewise.
1203 * proc-api.c (procfs_trace): Likewise.
1204 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
1205 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
1206 (set_parameter_value): Update.
1207 (add_setshow_generic): Update.
1208 * python/py-value.c (copy_py_bool_obj): Change argument from int*
1209 to bool*.
1210 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
1211 int*.
1212 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
1213 * record-btrace.c (record_btrace_target::store_registers): Update.
1214 * record-full.c (record_full_memory_query): Change to bool.
1215 (record_full_stop_at_limit): Likewise.
1216 * record-full.h (record_full_memory_query): Likewise.
1217 * remote-notif.c (notif_debug): Likewise.
1218 * remote-notif.h (notif_debug): Likewise.
1219 * remote.c (use_range_stepping): Likewise.
1220 (interrupt_on_connect): Likewise.
1221 (remote_break): Likewise.
1222 * ser-tcp.c (tcp_auto_retry): Likewise.
1223 * ser-unix.c (serial_hwflow): Likewise.
1224 * skip.c (debug_skip): Likewise.
1225 * solib-aix.c (solib_aix_debug): Likewise.
1226 * spu-tdep.c (spu_stop_on_load_p): Likewise.
1227 (spu_auto_flush_cache_p): Likewise.
1228 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
1229 Likewise.
1230 (struct info_print_options) <quiet>: Likewise.
1231 * symfile-debug.c (debug_symfile): Likewise.
1232 * symfile.c (auto_solib_add): Likewise.
1233 (separate_debug_file_debug): Likewise.
1234 * symfile.h (auto_solib_add): Likewise.
1235 (separate_debug_file_debug): Likewise.
1236 * symtab.c (basenames_may_differ): Likewise.
1237 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
1238 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
1239 (struct info_types_options) <quiet>: Likewise.
1240 * symtab.h (demangle): Likewise.
1241 (basenames_may_differ): Likewise.
1242 * target-dcache.c (stack_cache_enabled_1): Likewise.
1243 (code_cache_enabled_1): Likewise.
1244 * target.c (trust_readonly): Likewise.
1245 (may_write_registers): Likewise.
1246 (may_write_memory): Likewise.
1247 (may_insert_breakpoints): Likewise.
1248 (may_insert_tracepoints): Likewise.
1249 (may_insert_fast_tracepoints): Likewise.
1250 (may_stop): Likewise.
1251 (auto_connect_native_target): Likewise.
1252 (target_stop_and_wait): Update.
1253 (target_async_permitted): Change to bool.
1254 (target_async_permitted_1): Likewise.
1255 (may_write_registers_1): Likewise.
1256 (may_write_memory_1): Likewise.
1257 (may_insert_breakpoints_1): Likewise.
1258 (may_insert_tracepoints_1): Likewise.
1259 (may_insert_fast_tracepoints_1): Likewise.
1260 (may_stop_1): Likewise.
1261 * target.h (target_async_permitted): Likewise.
1262 (may_write_registers): Likewise.
1263 (may_write_memory): Likewise.
1264 (may_insert_breakpoints): Likewise.
1265 (may_insert_tracepoints): Likewise.
1266 (may_insert_fast_tracepoints): Likewise.
1267 (may_stop): Likewise.
1268 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
1269 (make_thread_apply_all_options_def_group): Change argument from int*
1270 to bool*.
1271 (thread_apply_all_command): Update.
1272 (print_thread_events): Change to bool.
1273 * top.c (confirm): Likewise.
1274 (command_editing_p): Likewise.
1275 (history_expansion_p): Likewise.
1276 (write_history_p): Likewise.
1277 (info_verbose): Likewise.
1278 * top.h (confirm): Likewise.
1279 (history_expansion_p): Likewise.
1280 * tracepoint.c (disconnected_tracing): Likewise.
1281 (circular_trace_buffer): Likewise.
1282 * typeprint.c (print_methods): Likewise.
1283 (print_typedefs): Likewise.
1284 * utils.c (debug_timestamp): Likewise.
1285 (sevenbit_strings): Likewise.
1286 (pagination_enabled): Likewise.
1287 * utils.h (sevenbit_strings): Likewise.
1288 (pagination_enabled): Likewise.
1289 * valops.c (overload_resolution): Likewise.
1290 * valprint.h (struct value_print_options) <prettyformat_arrays,
1291 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
1292 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
1293 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
1294 Likewise.
1295 * windows-nat.c (new_console): Likewise.
1296 (cygwin_exceptions): Likewise.
1297 (new_group): Likewise.
1298 (debug_exec): Likewise.
1299 (debug_events): Likewise.
1300 (debug_memory): Likewise.
1301 (debug_exceptions): Likewise.
1302 (useshell): Likewise.
1303 * windows-tdep.c (maint_display_all_tib): Likewise.
1304 * xml-support.c (debug_xml): Likewise.
1305
f1b620e9
MG
13062019-09-17 Mike Gulick <mgulick@mathworks.com>
1307
1308 * source.c (prepare_path_for_appending): New function.
1309 (openp): Make use of new function.
1310 (find_and_open_source): Search for the compilation directory and
1311 source file as a relative path beneath the directory search path.
1312
67f3ed6a
AB
13132019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
1314
1315 * source-cache.c (source_cache::get_line_charpos): Catch
1316 exceptions and return false, this matches the behaviour documented
1317 in the header file.
1318
74332189
JB
13192019-09-17 Joel Brobecker <brobecker@adacore.com>
1320
1321 * ada-tasks.c (info_task): Remove quoting of the task's name.
1322
f2f24aa9
CB
13232019-09-16 Christian Biesinger <cbiesinger@google.com>
1324
1325 * symfile.c (auto_solib_add): Replace comment with a reference
1326 to the header file.
1327
6a062a93
CB
13282019-09-14 Christian Biesinger <cbiesinger@google.com>
1329
1330 * NEWS: Mention that gdb can now be compiled with Python 3
1331 on Windows.
1332
ec6c8338
AB
13332019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1334
1335 * maint.c (maint_print_section_data::maint_print_section_data):
1336 Force use of 'float log10 (float)' by casting the argument to
1337 float.
1338
aa17805f
AB
13392019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1340
1341 * maint.c: Add 'cmath' include.
1342 (struct maint_print_section_data): New structure.
1343 (print_section_index): New function.
1344 (print_bfd_section_info): Add header comment, small whitespace
1345 cleanup, and update to call new print_section_index function.
1346 (print_objfile_section_info): Likewise.
1347 (maint_obj_section_from_bfd_section): New function.
1348 (print_bfd_section_info_maybe_relocated): New function.
1349 (maintenance_info_sections): Add header comment, always use
1350 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
1351
3dd9bb46
AB
13522019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1353
1354 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
1355 inner scope, add check that the objfile has psymtabs before
1356 checking psymtabs_addrmap.
1357 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
1358
4993045d
PW
13592019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1360
1361 * NEWS: Announce that Ada task names are now shown at more places,
1362 and between quotes (except in info task output).
1363 * gdb/ada-tasks.c (task_to_str): New function.
1364 (display_current_task_id): Call task_to_str.
1365 (task_command_1): Likewise.
1366 (print_ada_task_info): In non-mi mode, Properly align headers and data
1367 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
1368
7a289707
RO
13692019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1370
1371 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
1372 prstatus.pr_lwp.pr_info instead of making it up.
1373
f2aec7f6
CB
13742019-09-11 Christian Biesinger <cbiesinger@google.com>
1375
1376 * auto-load.c (auto_load_expand_dir_vars): Update.
1377 * defs.h (gdb_datadir): Change to std::string.
1378 (python_libdir): Likewise.
1379 (relocate_gdb_directory): Change return type to std::string.
1380 * guile/guile.c (gdbscm_data_directory): Update.
1381 (initialize_scheme_side): Update.
1382 * jit.c (jit_reader_dir): Change to std::string.
1383 (jit_reader_load_command): Update.
1384 * main.c (gdb_datadir): Change to std::string.
1385 (python_libdir): Likewise.
1386 (set_gdb_data_directory): Update.
1387 (relocate_path): Change to return std::string.
1388 (relocate_gdb_directory): Change to return std::string.
1389 (relocate_gdbinit_path_maybe_in_datadir): Update.
1390 (captured_main_1): Update.
1391 * python/python.c (do_start_initialization): Update.
1392 * top.c (show_gdb_datadir): Update.
1393 * xml-syscall.c (xml_init_syscalls_info): Update.
1394 (init_syscalls_info): Update.
1395
9224a013
CB
13962019-09-11 Christian Biesinger <cbiesinger@google.com>
1397
1398 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
1399 out of get_init_files.
1400 (get_init_files): Update.
1401
f48cd836
CB
14022019-09-11 Christian Biesinger <cbiesinger@google.com>
1403
1404 * main.c (get_init_files): Change to use std::string.
1405 (captured_main_1): Update.
1406 (print_gdb_help): Update.
1407
9cab7ecd
AT
14082019-09-11 Ali Tamur <tamur@google.com>
1409
1410 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
1411 implementation.
1412
67547d89
CB
14132019-09-11 Christian Biesinger <cbiesinger@google.com>
1414
1415 * dbxread.c (read_dbx_symtab): Update.
1416 * dwarf2read.c (load_partial_dies): Update.
1417 * mdebugread.c (parse_partial_symbols): Update.
1418 (handle_psymbol_enumerators): Update.
1419 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
1420 * psymtab.c (add_psymbol_to_bcache): Likewise.
1421 (add_psymbol_to_list): Likewise.
1422 * symtab.c (symbol_set_names): Likewise.
1423 * symtab.h (symbol_set_names): Likewise.
1424 * xcoffread.c (scan_xcoff_symtab): Update.
1425
64b2d4a0
TT
14262019-09-11 Tom Tromey <tom@tromey.com>
1427
1428 * symfile-mem.c (symbol_file_add_from_memory): Use
1429 bfd_set_filename.
1430 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
1431 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
1432
3b00ef10
TT
14332019-09-10 Tom Tromey <tromey@adacore.com>
1434
1435 * dwarf-index-write.c (write_psymbols): Extend error message.
1436 (debug_names::insert): Add Ada code.
1437 (debug_names::write_psymbols): Remove Ada check.
1438 (debug_names) <m_string_obstack>: New member.
1439 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
1440 (gdb_index_symbol_name_matcher::matches): Remove.
1441 (mapped_index_base::find_name_components_bounds): Add "lang"
1442 parameter.
1443 (mapped_index_base::build_name_components): Also split names
1444 according to Ada syntax.
1445 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
1446 type of "match_callback".
1447 (check_match, check_find_bounds_finds)
1448 (dw2_expand_symtabs_matching): Update.
1449 (dw2_debug_names_iterator): Add new constructor.
1450 (dw2_debug_names_map_matching_symbols): New function.
1451 (dw2_debug_names_expand_symtabs_matching): Update.
1452 (dwarf2_debug_names_functions): Use
1453 dw2_debug_names_map_matching_symbols.
1454
aa391654
TT
14552019-09-10 Tom Tromey <tromey@adacore.com>
1456
1457 * dwarf2read.c (dw2_get_file_names_reader): Add the
1458 CU's file name to the results.
1459
b054970d
TT
14602019-09-10 Tom Tromey <tromey@adacore.com>
1461
1462 * ada-lang.c (add_nonlocal_symbols): Combine calls to
1463 map_matching_symbols. Update.
1464 * dwarf2read.c (dw2_map_matching_symbols): Update.
1465 * psymtab.c (match_partial_symbol): Change type; update.
1466 (psym_map_matching_symbols): Likewise.
1467 * symfile-debug.c (debug_qf_map_matching_symbols): Change
1468 type; update.
1469 * symfile.h (struct quick_symbol_functions)
1470 <map_matching_symbols>: Change "name" to be a lookup_name_info.
1471 Remove "match".
1472
6a3dbf1b
TT
14732019-09-10 Tom Tromey <tromey@adacore.com>
1474
1475 * psymtab.c (map_block): Remove.
1476 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
1477 * symtab.c (iterate_over_symbols_terminated): New function.
1478 * symtab.c (iterate_over_symbols_terminated): Declare.
1479
6969f124
TT
14802019-09-10 Tom Tromey <tromey@adacore.com>
1481
1482 * ada-lang.c (ada_iterate_over_symbols): Return bool.
1483 * language.h (struct language_defn) <la_iterate_over_symbols>:
1484 Return bool.
1485 * symtab.c (iterate_over_symbols): Return bool.
1486 * symtab.h (iterate_over_symbols): Return bool.
1487
199b4314
TT
14882019-09-10 Tom Tromey <tromey@adacore.com>
1489
1490 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
1491 (add_nonlocal_symbols): Update.
1492 * dwarf2read.c (dw2_map_matching_symbols): Change type.
1493 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
1494 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
1495 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
1496 Change type of "callback". Remove "data".
1497
a084a2a6
AT
1498
14992019-09-09 Ali Tamur <tamur@google.com>
1500
1501 * dwarf2read.c (comp_unit_head): Update comment.
1502 (dwarf2_dwo_name): New function declaration.
1503 (dwarf_unit_type_name): New function declaration.
1504 (read_comp_unit_head): Add support for new compilation units,
1505 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
1506 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
1507 (currently named as "signature") in their header. Also clarify error
1508 messages.
1509 (lookup_dwo_id): New function. Returns the dwo id of the given
1510 compile unit.
1511 (lookup_dwo_unit): Use the new lookup_dwo_id function.
1512 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
1513 functions.
1514 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
1515 (dwarf2_dwo_name): Get the dwo name if present.
1516 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
1517 purposes.
1518
25a2915e
TT
15192019-09-09 Tom Tromey <tom@tromey.com>
1520
1521 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
1522
e4df0874
PW
15232019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1524
1525 * python/python.c (do_start_initialization): Make progname_copy static,
1526 to avoid a leak report.
1527
8634b462
TT
15282019-09-08 Tom Tromey <tom@tromey.com>
1529
1530 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
1531
c7f839cb
SM
15322019-09-07 Simon Marchi <simon.marchi@efficios.com>
1533
1534 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
1535 Change type to gdb::optional<block_enum>.
1536 (dw2_symtab_iter_init): Change block_index parameter type
1537 to gdb::optional<block_enum>.
1538 (dw2_lookup_symbol): Change block_index parameter
1539 type to block_enum.c
1540 (dw2_debug_names_lookup_symbol): Likewise.
1541 * psymtab.c (psym_lookup_symbol): Likewise.
1542 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
1543 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1544 Likewise.
1545
ead0e69a
CB
15462019-09-06 Christian Biesinger <cbiesinger@google.com>
1547
1548 * defs.h (relocate_gdb_directory): Change int to bool in
1549 signature and rename flag to relocatable.
1550 * main.c (relocate_path): Likewise.
1551 (relocate_gdb_directory): Likewise.
1552
b16c44de
AM
15532019-09-06 Alan Modra <amodra@gmail.com>
1554
1555 * coffread.c (coff_symfile_read): Constify filename variable.
1556 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
1557 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
1558 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
1559 * solib.c (reload_shared_libraries_1): Likewise.
1560 * symfile.c (reread_symbols): Likewise.
1561 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
1562 * solib-darwin.c (darwin_bfd_open): Likewise.
1563 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1564
06ff036e
AB
15652019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1566
1567 * psymtab.c (print_partial_symbols): Handle missing domain_enum
1568 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
1569
4e962e74
TT
15702019-09-03 Tom Tromey <tromey@adacore.com>
1571
1572 * ada-valprint.c (ada_val_print_num): Don't recurse for range
1573 types.
1574 (has_negatives): Unbias a range type bound.
1575 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
1576 * gdbtypes.c (operator==): Handle new field.
1577 (create_range_type): Add "bias" parameter.
1578 (create_static_range_type, resolve_dynamic_range): Update.
1579 * gdbtypes.h (struct range_bounds) <bias>: New member.
1580 (create_range_type): Add bias parameter.
1581 * printcmd.c (print_scalar_formatted): Unbias range types.
1582 * value.c (unpack_long): Unbias range types.
1583 (pack_long): Bias range types.
1584
d90b8f26
AH
15852019-09-02 Alan Hayward <alan.hayward@arm.com>
1586
1587 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
1588 probe arguments.
1589
fe01123e
AH
15902019-09-02 Alan Hayward <alan.hayward@arm.com>
1591
1592 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
1593 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
1594 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
1595 (compile_probe_arg): Likewise.
1596 * probe.h (get_argument_count): Likewise.
1597 * solib-svr4.c (solib_event_probe_action): Likewise.
1598 * stap-probe.c (stap_probe::get_argument_count): Likewise.
1599
e661ef01
AH
16002019-09-02 Alan Hayward <alan.hayward@arm.com>
1601
1602 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
1603 code to here...
1604 (svr4_create_solib_event_breakpoints): ...from here.
1605
47a536d9
SDJ
16062019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
1607
1608 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
1609 suffix from warning message.
1610
d6a00eba
TT
16112019-08-30 Tom Tromey <tom@tromey.com>
1612
1613 * tui/tui-winsource.h (struct tui_source_window_base)
1614 <refresh_all>: Don't declare.
1615 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
1616 Remove.
1617 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
1618 tui_show_locator_content.
1619 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
1620 declare.
1621 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
1622 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
1623 declare.
1624
55b2657b
TT
16252019-08-30 Tom Tromey <tom@tromey.com>
1626
1627 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
1628
12a8555a
TT
16292019-08-30 Tom Tromey <tom@tromey.com>
1630
1631 * tui/tui-stack.c (_initialize_tui_stack): Move later.
1632 Remove unnecessary forward declarations.
1633
900ac242
TT
16342019-08-30 Tom Tromey <tom@tromey.com>
1635
1636 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
1637 rerender.
1638 (tui_update_locator_fullname, tui_show_frame_info): Don't call
1639 tui_show_locator_content.
1640
99ab33fb
TT
16412019-08-30 Tom Tromey <tom@tromey.com>
1642
1643 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
1644 (tui_locator_window::rerender): Rewrite using body of previous
1645 tui_show_locator_content.
1646
e594a5d1
TT
16472019-08-30 Tom Tromey <tom@tromey.com>
1648
1649 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
1650 set_locator_fullname>: New methods.
1651 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1652 Rename from tui_set_locator_fullname.
1653 (tui_locator_window::set_locator_info): Rename from
1654 tui_set_locator_info. Return bool.
1655 (tui_update_locator_fullname, tui_show_frame_info): Update.
1656
715bb467
TT
16572019-08-30 Tom Tromey <tom@tromey.com>
1658
1659 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
1660
772f3f03
TT
16612019-08-30 Tom Tromey <tom@tromey.com>
1662
1663 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
1664 call touchwin.
1665
108e13ab
TT
16662019-08-30 Tom Tromey <tom@tromey.com>
1667
1668 * tui/tui-wingeneral.c (box_win): Assume win_info and
1669 win_info->handle cannot be NULL.
1670
cdaa6eb4
TT
16712019-08-30 Tom Tromey <tom@tromey.com>
1672
1673 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
1674 refresh_window>: Declare.
1675 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
1676 resize.
1677 (tui_data_item_window::rerender): Rename from
1678 tui_display_register.
1679 (tui_data_item_window::refresh_window): New method.
1680 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
1681 no-op.
1682
89df7f90
TT
16832019-08-30 Tom Tromey <tom@tromey.com>
1684
1685 * tui/tui-regs.h (struct tui_data_window) <regs_content,
1686 regs_column_count, current_group>: Move later. Now private.
1687 <get_current_group>: New method.
1688 * tui/tui-regs.c (tui_reg_command): Update.
1689 * tui/tui-layout.c (tui_set_layout): Update.
1690
1bf2866a
TT
16912019-08-30 Tom Tromey <tom@tromey.com>
1692
1693 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1694 (tui_data_window::rerender): Don't call
1695 check_and_display_highlight_if_needed.
1696 (tui_data_window::refresh_all): Remove call to
1697 erase_data_content.
1698
0670413d
TT
16992019-08-30 Tom Tromey <tom@tromey.com>
1700
1701 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1702 (tui_data_window::display_registers_from)
1703 (tui_data_window::display_reg_element_at_line)
1704 (tui_data_window::display_registers_from_line): Remove checks of
1705 "empty".
1706
18bb55c7
TT
17072019-08-30 Tom Tromey <tom@tromey.com>
1708
1709 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
1710 Don't declare.
1711 * tui/tui-regs.c (tui_data_window::show_registers): Call
1712 rerender.
1713 (tui_data_window::rerender): Rename from display_all_data.
1714 (tui_data_window::rerender): Remove old implementation.
1715
1f6d2f10
TT
17162019-08-30 Tom Tromey <tom@tromey.com>
1717
1718 * tui/tui-regs.c (tui_data_window::display_all_data): Change
1719 text.
1720 * tui/tui-data.h (NO_DATA_STRING): Remove define.
1721
16d01f9c
BW
17222019-08-29 Bernhard Wodok <barto@gmx.net>
1723 Sergio Durigan Junior <sergiodj@redhat.com>
1724
1725 PR win32/24284
1726 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
1727
d8f27c60
AB
17282019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1729
1730 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
1731 when searching for types.
1732
1f20c35e
AB
17332019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1734
1735 * f-lang.c (f_language_defn): Use f_print_typedef.
1736 * f-lang.h (f_print_typedef): Declare.
1737 * f-typeprint.c (f_print_typedef): Define.
1738
550105b7
CB
17392019-08-27 Christian Biesinger <cbiesinger@google.com>
1740
1741 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
1742
4acfdd20
AB
17432019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
1744
1745 * cli/cli-utils.c (info_print_options_defs): Delete.
1746 (make_info_print_options_def_group): Delete.
1747 (extract_info_print_options): Delete.
1748 (info_print_command_completer): Delete.
1749 (info_print_args_help): Add extra parameter, and optionally
1750 include text about -n flag.
1751 * cli/cli-utils.h (struct info_print_options): Delete.
1752 (extract_info_print_options): Delete declaration.
1753 (info_print_command_completer): Delete declaration.
1754 (info_print_args_help): Add extra parameter, extend header
1755 comment.
1756 * python/python.c (gdbpy_rbreak): Pass additional parameter to
1757 search_symbols.
1758 * stack.c (struct info_print_options): New type.
1759 (info_print_options_defs): New file scoped variable.
1760 (make_info_print_options_def_group): New static function.
1761 (info_print_command_completer): New static function.
1762 (info_locals_command): Update to use new local functions.
1763 (info_args_command): Likewise.
1764 (_initialize_stack): Add extra parameter to calls to
1765 info_print_args_help.
1766 * symtab.c (search_symbols): Add extra parameter, use this to
1767 possibly excluse non-debug symbols.
1768 (symtab_symbol_info): Add extra parameter, which is passed on to
1769 search_symbols.
1770 (struct info_print_options): New type.
1771 (info_print_options_defs): New file scoped variable.
1772 (make_info_print_options_def_group): New static function.
1773 (info_print_command_completer): New static function.
1774 (info_variables_command): Update to use local functions, and pass
1775 extra parameter through to symtab_symbol_info.
1776 (info_functions_command): Likewise.
1777 (info_types_command): Pass additional argument through to
1778 symtab_symbol_info.
1779 (rbreak_command): Pass extra argument to search_symbols.
1780 (_initialize_symtab): Add extra arguments for calls to
1781 info_print_args_help, and update help text for 'info variables',
1782 'whereis', and 'info functions' commands.
1783 * symtab.h (search_symbols): Add extra argument to declaration.
1784 * NEWS: Mention new flags.
1785
9aa55206
CB
17862019-08-26 Christian Biesinger <cbiesinger@google.com>
1787
1788 * symtab.c (lookup_static_symbol): Call the new function (and move
1789 it down to be next to lookup_global_symbol).
1790 (struct global_sym_lookup_data): Add block_enum member and rename to...
1791 (struct global_or_static_sym_lookup_data): ...this.
1792 (lookup_symbol_global_iterator_cb): Pass block_index instead of
1793 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
1794 (lookup_symbol_global_or_static_iterator_cb): ...this.
1795 (lookup_global_or_static_symbol): New function.
1796 (lookup_global_symbol): Call new function.
1797
5c31b358
TV
17982019-08-26 Tom de Vries <tdevries@suse.de>
1799
1800 PR c++/24852
1801 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
1802 when pc_probe.prob == NULL.
1803
23c13d42
SM
18042019-08-25 Simon Marchi <simon.marchi@efficios.com>
1805
1806 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
1807 variable symbol_linkage to symbol_linkage_.
1808
beadd3e8
SM
18092019-08-25 Simon Marchi <simon.marchi@efficios.com>
1810
1811 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
1812 represent whether the symbol is static, dynamic, or we don't
1813 know.
1814
e3ec872f
YS
18152019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
1816
1817 * gdb/rx-tdep.c (rx_register_names): New.
1818 (rx_register_name): Delete.
1819 (rx_psw_type): Delete.
1820 (rx_fpsw_type): Delete.
1821 (rx_register_type): Delete.
1822 (rx_gdbarch_init): Convert target-descriptions.
1823 (_initialize_rx_tdep): Add initialize_tdesc_rx.
1824 * gdb/features/Makefile: Add rx.xml.
1825 * gdb/features/rx.xml: New.
1826 * gdb/features/rx.c: Generated.
1827 * gdb/NEWS: Mention target description support.
1828
d0509ba4
CB
18292019-08-22 Christian Biesinger <cbiesinger@google.com>
1830
1831 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
1832 *slot_ptr.
1833
2d41fa11
SDJ
18342019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1835
1836 * configure.ac: Don't check for 'dlfcn.h' (moved to
1837 gdbsupport/common.m4).
1838 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
1839 'gdbsupport/'.
1840 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
1841 * compile/compile-c-support.c: Include
1842 'gdbsupport/gdb-dlfcn.h'.
1843 * gdbsupport/common.m4: Check for 'dlfcn.h'.
1844 * gdb-dlfcn.c: Move to...
1845 * gdbsupport/gdb-dlfcn.c: ... here.
1846 * gdb-dlfcn.h: Move to...
1847 * gdbsupport/gdb-dlfcn.h: ... here.
1848
de8af808
SL
18492019-08-23 Sandra Loosemore <sandra@codesourcery.com>
1850
1851 * nios2-tdep.c (struct reg_value): Improve comments. Make
1852 the offset field signed.
1853
27204489
CB
18542019-08-22 Christian Biesinger <cbiesinger@google.com>
1855
1856 * python/lib/gdb/__init__.py (_execute_file): New function.
1857 * python/python.c (python_run_simple_file): Call gdb._execute_file
1858 on Windows.
1859
43771869
AB
18602019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
1861
1862 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
1863 all uses as this was never set to anything but a zero value.
1864
26c957f1
PA
18652019-08-21 Bogdan Harjoc <harjoc@gmail.com>
1866
1867 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
1868
c07aae6e
CB
18692019-08-21 Christian Biesinger <cbiesinger@google.com>
1870
1871 * tui/tui-data.h (tui_gen_win_info): Add an =default
1872 move constructor, required by some GCC versions.
1873
3960cb7a
JF
18742019-08-21 Jinke Fan <fanjinke51@yeah.net>
1875
1876 * go32-nat.c (go32_sysinfo): Add hygon_p.
1877
04c72a68
TT
18782019-08-20 Tom Tromey <tom@tromey.com>
1879
1880 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
1881 line_from_reg_element_no, first_reg_element_no_inline,
1882 display_all_data, delete_data_content_windows,
1883 erase_data_content>: Now private.
1884
072272ce
TT
18852019-08-20 Tom Tromey <tom@tromey.com>
1886
1887 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
1888 (tui_unhighlight_win, tui_highlight_win)
1889 (tui_win_info::make_window): Update.
1890 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
1891
973961bd
TT
18922019-08-20 Tom Tromey <tom@tromey.com>
1893
1894 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1895 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1896 (MAX_PID_WIDTH): Move to tui-stack.c.
1897 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1898 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1899 (MAX_PID_WIDTH): Move from tui-data.h.
1900
ab0e1f1a
TT
19012019-08-20 Tom Tromey <tom@tromey.com>
1902
1903 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
1904 * tui/tui-wingeneral.c (box_win): Change type of win_info.
1905 (box_win): Update.
1906 (tui_gen_win_info::make_window): Rename from tui_make_window.
1907 (tui_win_info::make_window): New method.
1908 (tui_gen_win_info::make_visible): Update.
1909 * tui/tui-source.c (tui_source_window::set_contents): Update.
1910 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1911 (tui_data_window::display_registers_from): Update.
1912 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1913 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
1914 Declare.
1915 <can_box>: Remove.
1916 <title>: Remove.
1917 (struct tui_win_info) <make_window>: Declare.
1918 <can_box>: Now virtual.
1919 <title>: New member.
1920 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
1921 * tui/tui-command.c (tui_cmd_window::resize): Update.
1922
100c2bf3
TT
19232019-08-20 Tom Tromey <tom@tromey.com>
1924
1925 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
1926 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1927 (tui_data_window::check_register_values): Update.
1928
fa4dc567
TT
19292019-08-20 Tom Tromey <tom@tromey.com>
1930
1931 * tui/tui-regs.h (struct tui_data_window): Use
1932 DISABLE_COPY_AND_ASSIGN.
1933 <regs_content>: Change type, removing unique_ptr.
1934 <tui_data_window>: Add move constructor.
1935 * tui/tui-regs.c (tui_data_window::show_registers)
1936 (tui_data_window::show_register_group)
1937 (tui_data_window::display_registers_from)
1938 (tui_data_window::display_registers_from)
1939 (tui_data_window::first_data_item_displayed)
1940 (tui_data_window::delete_data_content_windows)
1941 (tui_data_window::rerender, tui_data_window::refresh_window)
1942 (tui_data_window::check_register_values): Update.
1943
ca02d7c8
TT
19442019-08-20 Tom Tromey <tom@tromey.com>
1945
1946 * tui/tui-regs.h (struct tui_data_window) <show_registers,
1947 show_register_group>: Declare.
1948 (tui_show_register_group): Don't declare.
1949 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
1950 tui_show_registers.
1951 (tui_data_window::show_register_group): Rename from
1952 tui_show_register_group.
1953 (tui_data_window::check_register_values, tui_reg_command):
1954 Update.
1955 * tui/tui-layout.c (tui_set_layout): Update.
1956
63356bfd
TT
19572019-08-20 Tom Tromey <tom@tromey.com>
1958
1959 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
1960 Declare.
1961 (tui_check_register_values): Don't declare.
1962 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
1963 from tui_check_register_values.
1964 * tui/tui-hooks.c (tui_register_changed): Update.
1965
42cc14a7
TT
19662019-08-20 Tom Tromey <tom@tromey.com>
1967
1968 * tui/tui-regs.c (tui_reg_layout): Move later.
1969 (tui_show_registers): Don't enable TUI mode or change layout.
1970
b9ad3686
TT
19712019-08-20 Tom Tromey <tom@tromey.com>
1972
1973 * tui/tui-regs.h (struct tui_data_item_window)
1974 <~tui_data_item_window>: Remove.
1975 <content>: Now a unique_xmalloc_ptr.
1976 * tui/tui-regs.c (tui_register_format): Return a
1977 unique_xmalloc_ptr.
1978 (tui_get_register): Update.
1979 (~tui_data_item_window): Remove.
1980 (tui_data_window::display_registers_from, tui_display_register):
1981 Update.
1982 * tui/tui-io.h (tui_expand_tabs): Update.
1983 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
1984 Remove "col" parameter.
1985
8e114aab
TT
19862019-08-20 Tom Tromey <tom@tromey.com>
1987
1988 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
1989 field.
1990 * tui/tui-regs.c (~tui_data_item_window): Update.
1991
1a4f81dd
TT
19922019-08-20 Tom Tromey <tom@tromey.com>
1993
1994 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
1995 earlier.
1996
0f8d8876
TT
19972019-08-20 Tom Tromey <tom@tromey.com>
1998
1999 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
2000
605dc2c2
TT
20012019-08-20 Tom Tromey <tom@tromey.com>
2002
2003 * tui/tui-source.h (struct tui_source_window): Update.
2004 * tui/tui-regs.c (tui_show_registers): Update.
2005 * tui/tui-disasm.h (struct tui_disasm_window): Update.
2006 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
2007 (NO_REGS_STRING): Remove defines.
2008
aedbe3bb
CM
20092019-08-20 Conrad Meyer <cem@FreeBSD.org>
2010
2011 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
2012 unnecessary thread walk if remote doesn't support the packet.
2013
7ce8f214
TT
20142019-08-19 Tom Tromey <tromey@adacore.com>
2015
2016 * python/py-value.c (value_has_field): Fix indentation.
2017
f21c2bd7
TT
20182019-08-19 Tom Tromey <tromey@adacore.com>
2019
2020 * printcmd.c (do_one_display, info_display_command): Update.
2021 * block.h (contained_in): Return bool. Add allow_nested
2022 parameter.
2023 * block.c (contained_in): Return bool. Add allow_nested
2024 parameter.
2025
d806ea2d
TT
20262019-08-19 Tom Tromey <tom@tromey.com>
2027
2028 * configure: Rebuild.
2029 * configure.ac: Disallow the combination of -static-libstdc++ and
2030 source highlight.
2031 * source-cache.c (get_language_name): Handle rust.
2032 (source_cache::get_source_lines): Ignore highlighting exceptions.
2033
398fdd60
TT
20342019-08-16 Tom Tromey <tom@tromey.com>
2035
2036 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
2037 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
2038 (struct tui_source_window_base) <make_visible, refresh_window,
2039 resize>: Remove methods.
2040 <execution_info>: Remove field.
2041 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
2042 (tui_show_source_line, tui_source_window_base)
2043 (~tui_source_window_base): Update.
2044 (tui_source_window_base::resize)
2045 (tui_source_window_base::make_visible)
2046 (tui_source_window_base::refresh_window): Remove.
2047 (tui_source_window_base::update_exec_info): Update.
2048 * tui/tui-source.c (tui_source_window::set_contents): Update.
2049 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2050
e699d331
TT
20512019-08-16 Tom Tromey <tom@tromey.com>
2052
2053 * tui/tui-hooks.c (tui_remove_hooks): Don't set
2054 deprecated_query_hook.
2055
bb01dbfc
TT
20562019-08-16 Tom Tromey <tom@tromey.com>
2057
2058 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2059 (tui_update_source_windows_with_line): Update.
2060 * tui/tui-source.h (struct tui_source_window)
2061 <show_symtab_source>: Declare.
2062 (tui_show_symtab_source): Don't declare.
2063 * tui/tui-source.c (tui_show_symtab_source): Rename from
2064 tui_show_symtab_source.
2065
81c82c4b
TT
20662019-08-16 Tom Tromey <tom@tromey.com>
2067
2068 * tui/tui-winsource.h (struct tui_source_window_base)
2069 <set_contents>: Declare.
2070 * tui/tui-winsource.c
2071 (tui_source_window_base::update_source_window_as_is): Update.
2072 * tui/tui-source.h (struct tui_source_window) <set_contents>:
2073 Declare.
2074 (tui_set_source_content): Don't declare.
2075 * tui/tui-source.c (tui_source_window::set_contents): Rename from
2076 tui_set_source_content.
2077 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
2078 Declare.
2079 (tui_set_disassem_content): Don't declare.
2080 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
2081 tui_set_disassem_content.
2082
2ddaf614
TT
20832019-08-16 Tom Tromey <tom@tromey.com>
2084
2085 * tui/tui-winsource.h (struct tui_source_window_base)
2086 <update_breakpoint_info>: Declare.
2087 (tui_update_breakpoint_info): Don't declare.
2088 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
2089 (tui_update_all_breakpoint_info): Update.
2090 (tui_source_window_base::update_breakpoint_info): Rename from
2091 tui_update_breakpoint_info.
2092 (tui_source_window_base::update_exec_info): Update.
2093
017f9828
TT
20942019-08-16 Tom Tromey <tom@tromey.com>
2095
2096 * tui/tui-winsource.h (struct tui_source_window_base)
2097 <update_source_window>: Declare.
2098 (tui_update_source_window): Don't declare.
2099 * tui/tui-winsource.c
2100 (tui_source_window_base::update_source_window): Rename from
2101 tui_update_source_window.
2102 (tui_source_window_base::rerender): Update.
2103 * tui/tui-source.c (tui_source_window::maybe_update): Update.
2104 * tui/tui-disasm.c (tui_show_disassem)
2105 (tui_show_disassem_and_update_source)
2106 (tui_disasm_window::maybe_update): Update.
2107
ed8358e9
TT
21082019-08-16 Tom Tromey <tom@tromey.com>
2109
2110 * tui/tui-winsource.h (struct tui_source_window_base)
2111 <update_source_window_as_is>: Declare.
2112 (tui_update_source_window_as_is): Don't declare.
2113 * tui/tui-winsource.c (tui_update_source_window): Update
2114 (tui_source_window_base::update_source_window_as_is): Rename from
2115 tui_update_source_window_as_is.
2116 (tui_source_window_base::refill): Update.
2117 * tui/tui-source.c (tui_show_symtab_source): Update.
2118 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
2119 Update.
2120
20149b6b
TT
21212019-08-16 Tom Tromey <tom@tromey.com>
2122
2123 * tui/tui-winsource.h (tui_update_source_window)
2124 (tui_update_source_window_as_is): Remove "noerror" parameter.
2125 * tui/tui-winsource.c (tui_update_source_window)
2126 (tui_update_source_window_as_is): Remove "noerror" parameter.
2127 (tui_update_source_windows_with_addr)
2128 (tui_update_source_windows_with_line)
2129 (tui_source_window_base::rerender)
2130 (tui_source_window_base::refill): Update.
2131 * tui/tui-source.h (tui_set_source_content)
2132 (tui_show_symtab_source): Remove "noerror" parameter.
2133 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
2134 parameter.
2135 (tui_show_symtab_source): Likewise.
2136 (tui_source_window::maybe_update): Update.
2137 * tui/tui-disasm.c (tui_show_disassem)
2138 (tui_show_disassem_and_update_source)
2139 (tui_disasm_window::do_scroll_vertical)
2140 (tui_disasm_window::maybe_update): Update.
2141
2d83e710
TT
21422019-08-16 Tom Tromey <tom@tromey.com>
2143
2144 * tui/tui.c (tui_is_window_visible): Update.
2145 * tui/tui-wingeneral.c (tui_make_window)
2146 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
2147 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
2148 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
2149 (tui_set_win_height_command, parse_scrolling_args): Update.
2150 * tui/tui-source.c (tui_source_window::style_changed): Update.
2151 * tui/tui-regs.c (tui_show_registers)
2152 (tui_data_window::first_data_item_displayed)
2153 (tui_data_window::delete_data_content_windows)
2154 (tui_check_register_values, tui_reg_command): Update.
2155 * tui/tui-disasm.c (tui_show_disassem): Update.
2156 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
2157 method.
2158 <is_visible>: Remove field.
2159 * tui/tui-data.c (tui_next_win, tui_prev_win)
2160 (tui_delete_invisible_windows): Update.
2161
d4ab829a
TT
21622019-08-16 Tom Tromey <tom@tromey.com>
2163
2164 * tui/tui-winsource.h (struct tui_source_window_base)
2165 <m_has_locator>: Remove.
2166 * tui/tui-layout.c (show_source_disasm_command, show_data)
2167 (show_source_or_disasm_and_command): Update.
2168
aa7ca1bb
AH
21692019-08-16 Alan Hayward <alan.hayward@arm.com>
2170
2171 * NEWS (Other MI changes): New subsection.
2172 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
2173 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
2174 * arch-utils.c (default_get_pc_address_flags): New function.
2175 * arch-utils.h (default_get_pc_address_flags): New declaration.
2176 * gdbarch.sh: Add get_pc_address_flags.
2177 * gdbarch.c: Regenerate.
2178 * gdbarch.h: Likewise.
2179 * stack.c (print_pc): New function.
2180 (print_frame_info) (print_frame): Call print_pc.
2181
6eac171f
TV
21822019-08-16 Tom de Vries <tdevries@suse.de>
2183
2184 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
2185 print_objfile_section_info.
2186
3df505f6
TT
21872019-08-15 Tom Tromey <tom@tromey.com>
2188
2189 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
2190 calling update_cmdwin_start_line.
2191 * tui/tui-winsource.h (struct tui_source_window_base)
2192 <do_make_visible_with_new_height, set_new_height>: Don't declare.
2193 <rerender>: Declare.
2194 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
2195 Call rerender.
2196 (tui_source_window_base::set_new_height): Remove.
2197 (tui_source_window_base::rerender): Rename from
2198 do_make_visible_with_new_height.
2199 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
2200 resize method.
2201 (tui_win_info::make_invisible_and_set_new_height)
2202 (tui_win_info::make_visible_with_new_height): Remove.
2203 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
2204 Declare.
2205 * tui/tui-stack.c (tui_locator_window::rerender): New method.
2206 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
2207 do_make_visible_with_new_height>: Don't declare.
2208 <rerender>: Declare.
2209 * tui/tui-regs.c (tui_data_window::rerender): Rename from
2210 set_new_height.
2211 (tui_data_window::do_make_visible_with_new_height): Remove.
2212 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
2213 call tui_show_locator_content.
2214 (tui_gen_win_info::resize): Call rerender.
2215 (show_source_or_disasm_and_command): Don't call
2216 tui_show_locator_content.
2217 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
2218 method.
2219 (struct tui_win_info) <rerender>: Declare.
2220 <set_new_height, make_invisible_and_set_new_height,
2221 make_visible_with_new_height>: Don't declare.
2222 * tui/tui-data.c (tui_win_list::rerender): New method.
2223 * tui/tui-command.h (struct tui_cmd_window)
2224 <do_make_visible_with_new_height>: Don't declare.
2225 * tui/tui-command.c
2226 (tui_cmd_window::do_make_visible_with_new_height): Remove.
2227
272560b5
TT
22282019-08-15 Tom Tromey <tromey@adacore.com>
2229
2230 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
2231 * ada-lang.c (ada_enum_name): Likewise.
2232
08235187
CB
22332019-08-15 Christian Biesinger <cbiesinger@google.com>
2234
2235 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
2236 leading underscore.
2237 (GdbOutputErrorFile): Likewise.
2238 (global scope): Adjust constructor calls to GdbOutput{,Error}File
2239 accordingly.
2240 (execute_unwinders): Rename to have a leading underscore.
2241 (auto_load_packages): Likewise.
2242 (global scope): Adjust call to auto_load_packages accordingly.
2243 (GdbSetPythonDirectory): Likewise.
2244 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
2245 instead of execute_unwinders.
2246
db502012
TT
22472019-08-15 Tom Tromey <tom@tromey.com>
2248
2249 * tui/tui-layout.c (show_layout, show_source_disasm_command)
2250 (show_data): Don't change window visibility.
2251 (tui_gen_win_info::resize): Remove special case for command
2252 window. Use wresize, when available.
2253 (show_source_or_disasm_and_command): Don't change window
2254 visibility.
2255 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
2256 <make_visible>: New method.
2257 * tui/tui-command.c (tui_cmd_window::resize): New method.
2258
3891b65e
TT
22592019-08-15 Tom Tromey <tom@tromey.com>
2260
2261 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
2262 (struct tui_source_windows): New.
2263 * tui/tui-winsource.c (tui_display_main): Update.
2264 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2265 (new_height_ok, parse_scrolling_args): Update.
2266 * tui/tui-layout.c (show_layout, show_data): Update.
2267 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
2268 (tui_add_to_source_windows): Don't declare.
2269 * tui/tui-data.c (source_windows, tui_source_windows)
2270 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
2271
ee556432
TT
22722019-08-15 Tom Tromey <tom@tromey.com>
2273
2274 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
2275 Rename from reset.
2276 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
2277 * tui/tui-layout.c (show_source_disasm_command, show_data):
2278 Update.
2279 (tui_gen_win_info::resize): Rename.
2280 (show_source_or_disasm_and_command): Update.
2281 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
2282 reset.
2283
46f438e3
TT
22842019-08-15 Tom Tromey <tom@tromey.com>
2285
2286 * tui/tui-stack.c (tui_initialize_static_data): Remove.
2287 * tui/tui-interp.c (tui_interp::init): Don't call
2288 tui_initialize_static_data.
2289 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
2290
f4ce562c
TT
22912019-08-15 Tom Tromey <tom@tromey.com>
2292
2293 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
2294 examine tui_win_list.
2295
c398c3d0
TT
22962019-08-15 Tom Tromey <tom@tromey.com>
2297
2298 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
2299 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
2300 tui_clear_source_content.
2301 (tui_clear_source_content): Remove.
2302 (tui_source_window_base::do_erase_source_content): Hoist call to
2303 content.clear().
2304 * tui/tui-stack.c (tui_show_frame_info): Don't call
2305 tui_clear_source_content.
2306
e25d2004
TT
23072019-08-15 Tom Tromey <tom@tromey.com>
2308
2309 * tui/tui-winsource.h (struct tui_source_window_base)
2310 <do_erase_source_content>: New method.
2311 <erase_source_content>: New method.
2312 (tui_erase_source_content): Don't declare.
2313 * tui/tui-winsource.c (tui_clear_source_content): Update.
2314 (tui_source_window_base::do_erase_source_content): Rename from
2315 tui_erase_source_content.
2316 (tui_source_window_base::show_source_content): Update.
2317 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2318 * tui/tui-source.h (struct tui_source_window)
2319 <erase_source_content>: New method.
2320 * tui/tui-disasm.h (struct tui_disasm_window)
2321 <erase_source_content>: New method.
2322
002f15c2
TT
23232019-08-15 Tom Tromey <tom@tromey.com>
2324
2325 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
2326 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
2327 constructor.
2328 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
2329 * tui/tui-source.c (tui_set_source_content): Update.
2330 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2331
c9033fe8
TT
23322019-08-15 Tom Tromey <tom@tromey.com>
2333
2334 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
2335 * tui/tui-winsource.c (tui_line_is_displayed): Move to
2336 tui-source.c.
2337 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
2338 Declare.
2339 * tui/tui-source.c (tui_source_window::line_is_displayed): New
2340 method.
2341 (tui_source_window::maybe_update): Update.
2342
088f37dd
TT
23432019-08-15 Tom Tromey <tom@tromey.com>
2344
2345 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
2346 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
2347 tui-disasm.c.
2348 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
2349 Declare.
2350 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
2351 method.
2352 (tui_disasm_window::maybe_update): Update.
2353
a54700c6
TT
23542019-08-15 Tom Tromey <tom@tromey.com>
2355
2356 * tui/tui-winsource.h (struct tui_source_window_base)
2357 <maybe_update>: Declare.
2358 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
2359 method.
2360 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
2361 Declare.
2362 * tui/tui-source.c (tui_source_window::maybe_update): New method.
2363 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
2364 Declare.
2365 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
2366
e2a678a5
TT
23672019-08-15 Tom Tromey <tom@tromey.com>
2368
2369 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
2370
f2dda477
TT
23712019-08-15 Tom Tromey <tom@tromey.com>
2372
2373 * tui/tui-wingeneral.c: Include tui-stack.h.
2374 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
2375 (struct tui_locator_window): Move from tui-data.h.
2376 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
2377 (tui_initialize_static_data): Move from tui-data.c.
2378 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
2379 (struct tui_locator_window): Move to tui-stack.c.
2380 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
2381 (tui_initialize_static_data): Move to tui-stack.c.
2382
ed4a1084
TT
23832019-08-15 Tom Tromey <tom@tromey.com>
2384
2385 * tui/tui-layout.c (show_source_disasm_command)
2386 (show_source_or_disasm_and_command): Use make_visible method, not
2387 tui_make_window.
2388 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
2389 Remove.
2390
65962b20
TT
23912019-08-15 Tom Tromey <tom@tromey.com>
2392
2393 * tui/tui-wingeneral.h (tui_make_window): Update.
2394 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
2395 parameter.
2396 (tui_gen_win_info::make_visible): Update.
2397 * tui/tui-regs.c (tui_data_window::display_registers_from):
2398 Update.
2399 * tui/tui-layout.c (show_source_disasm_command)
2400 (show_source_or_disasm_and_command): Update.
2401 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
2402 (enum tui_box): Remove.
2403 (struct tui_win_info) <can_box>: New method.
2404 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
2405 method.
2406
2208ee91
TV
24072019-08-15 Tom de Vries <tdevries@suse.de>
2408
2409 * linux-nat-trad.c: Include gdbarch.h.
2410
75faf5c4
AH
24112019-08-14 Alan Hayward <alan.hayward@arm.com>
2412
2413 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
2414 register sizes.
2415
b1c896b3
TT
24162019-08-14 Tom Tromey <tromey@adacore.com>
2417
2418 * darwin-nat.c: Include gdbarch.h.
2419 * darwin-nat-info.c: Include gdbarch.h.
2420
6405cd73
TT
24212019-08-13 Tom Tromey <tom@tromey.com>
2422
2423 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
2424 Remove.
2425 * tui/tui-data.c (tui_initialize_static_data): Update.
2426
5216580d
TT
24272019-08-13 Tom Tromey <tom@tromey.com>
2428
2429 * tui/tui-winsource.h (struct tui_exec_info_window)
2430 <~tui_exec_info_window, maybe_allocate_content, get_content,
2431 m_content>: Remove.
2432 (struct tui_source_window_base) <set_exec_info_content,
2433 show_exec_info_content>: Don't declare.
2434 * tui/tui-winsource.c
2435 (tui_exec_info_window::maybe_allocate_content): Remove.
2436 (tui_source_window_base::update_exec_info): Rename from
2437 set_exec_info_content.
2438 (tui_source_window_base::show_exec_info_content)
2439 (tui_source_window_base::update_exec_info): Remove.
2440
93858ad3
TT
24412019-08-13 Tom Tromey <tom@tromey.com>
2442
2443 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
2444 declare.
2445 * tui/tui-winsource.c (tui_update_source_window_as_is)
2446 (tui_update_source_windows_with_addr, tui_erase_source_content):
2447 Update.
2448 (tui_clear_exec_info_content): Remove.
2449
e321e7ce
TT
24502019-08-13 Tom Tromey <tom@tromey.com>
2451
2452 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
2453 declare.
2454 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
2455 call tui_erase_exec_info_content.
2456 (tui_clear_exec_info_content): Rename from
2457 tui_erase_exec_info_content.
2458 (tui_clear_exec_info_content): Delete.
2459
8270ac62
TT
24602019-08-13 Tom Tromey <tom@tromey.com>
2461
2462 * tui/tui-winsource.h (struct tui_source_window_base)
2463 <show_exec_info_content>: Declare.
2464 (tui_show_exec_info_content): Don't declare.
2465 * tui/tui-winsource.c
2466 (tui_source_window_base::show_exec_info_content): Rename from
2467 tui_show_exec_info_content.
2468 (tui_source_window_base::update_exec_info): Update.
2469
7b56485d
TT
24702019-08-13 Tom Tromey <tom@tromey.com>
2471
2472 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
2473 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
2474 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
2475 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
2476 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
2477 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
2478 ... here.
2479
7ba913dc
TT
24802019-08-13 Tom Tromey <tom@tromey.com>
2481
2482 * tui/tui-winsource.h (struct tui_source_window_base)
2483 <update_exec_info>: Declare.
2484 (tui_update_exec_info): Don't declare.
2485 * tui/tui-winsource.c (tui_update_source_window_as_is)
2486 (tui_source_window_base::refresh_all)
2487 (tui_update_all_breakpoint_info): Update.
2488 (tui_source_window_base::update_exec_info): Rename from
2489 tui_update_exec_info.
2490 * tui/tui-stack.c (tui_show_frame_info): Update.
2491
37a4a131
TT
24922019-08-13 Tom Tromey <tom@tromey.com>
2493
2494 * tui/tui-winsource.h (struct tui_source_window_base)
2495 <set_exec_info_content>: Declare.
2496 (tui_set_exec_info_content): Don't declare.
2497 * tui/tui-winsource.c
2498 (tui_source_window_base::set_exec_info_content): Rename from
2499 tui_set_exec_info_content.
2500 (tui_update_exec_info): Update.
2501
0bd27e07
TT
25022019-08-13 Tom Tromey <tom@tromey.com>
2503
2504 * tui/tui-winsource.h (struct tui_source_window_base)
2505 <show_source_content>: Declare.
2506 (tui_show_source_content): Don't declare.
2507 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2508 (tui_source_window_base::show_source_content): Rename from
2509 tui_show_source_content.
2510 (tui_source_window_base::refresh_all): Update.
2511 * tui/tui-layout.c (show_source_disasm_command)
2512 (show_source_or_disasm_and_command): Update.
2513
b4ef5aeb
TT
25142019-08-13 Tom Tromey <tom@tromey.com>
2515
2516 * tui/tui-winsource.c (tui_erase_source_content)
2517 (tui_show_source_content, tui_source_window_base::refresh_all):
2518 Update.
2519 * tui/tui-wingeneral.h
2520 (tui_check_and_display_highlight_if_needed): Don't declare.
2521 * tui/tui-wingeneral.c
2522 (tui_win_info::check_and_display_highlight_if_needed): Rename from
2523 check_and_display_highlight_if_needed.
2524 * tui/tui-win.c (tui_rehighlight_all)
2525 (tui_win_info::make_visible_with_new_height): Update.
2526 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2527 (tui_data_window::erase_data_content)
2528 (tui_data_window::display_all_data): Update.
2529 * tui/tui-data.h (struct tui_win_info)
2530 <check_and_display_highlight_if_needed>: Declare.
2531
fede5273
TT
25322019-08-13 Tom Tromey <tom@tromey.com>
2533
2534 * tui/tui-win.c (tui_resize_all): Call
2535 tui_delete_invisible_windows.
2536 * tui/tui-layout.c (show_layout): Call
2537 tui_delete_invisible_windows.
2538 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
2539 * tui/tui-data.c (tui_delete_invisible_windows): New function.
2540
22c3f490
TT
25412019-08-13 Tom Tromey <tom@tromey.com>
2542
2543 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
2544 tui_add_win_to_layout.
2545
16cb7910
TT
25462019-08-13 Tom Tromey <tom@tromey.com>
2547
2548 * tui/tui-layout.h (tui_default_win_height): Don't declare.
2549 * tui/tui-layout.c (tui_default_win_height): Now static.
2550
cc0c3ffb
TT
25512019-08-13 Tom Tromey <tom@tromey.com>
2552
2553 * tui/tui-layout.c (show_layout): Unify all layout cases into a
2554 single switch.
2555 (show_source_disasm_command, show_source_or_disasm_and_command):
2556 Don't check current layout.
2557
3f3ffe54
TT
25582019-08-13 Tom Tromey <tom@tromey.com>
2559
2560 * tui/tui-wingeneral.c (make_all_visible): Remove.
2561 (tui_make_all_invisible): Simplify.
2562 * tui/tui-layout.c (tui_make_all_invisible): Move from
2563 tui-wingeneral.c; simplify.
2564 (show_layout): Hoist call to tui_make_all_invisible.
2565 (show_data): Don't call tui_make_all_invisible.
2566
69258091
TT
25672019-08-13 Tom Tromey <tom@tromey.com>
2568
2569 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
2570 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
2571
62cf57fe
TT
25722019-08-13 Tom Tromey <tom@tromey.com>
2573
2574 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
2575 tui-data.c.
2576 (show_source_disasm_command, show_data)
2577 (show_source_or_disasm_and_command): Don't use
2578 tui_set_current_layout_to.
2579 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
2580 * tui/tui-data.c (current_layout, tui_current_layout): Move to
2581 tui-layout.c.
2582 (tui_set_current_layout_to): Remove.
2583
2afade5d
TT
25842019-08-13 Tom Tromey <tom@tromey.com>
2585
2586 * tui/tui-layout.c (tui_set_layout): Update.
2587 * tui/tui-data.h (struct tui_layout_def): Remove.
2588 (tui_layout_def): Don't declare.
2589 * tui/tui-data.c (layout_def): Remove.
2590 (tui_layout_def): Remove.
2591
a3504e96
TT
25922019-08-13 Tom Tromey <tom@tromey.com>
2593
2594 * tui/tui-winsource.h (struct tui_source_window_base)
2595 <clear_detail>: No longer "override".
2596 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
2597 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
2598 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
2599 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
2600 Remove.
2601 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
2602
29c92911
TT
26032019-08-13 Tom Tromey <tromey@adacore.com>
2604
2605 * tracepoint.c: Don't include readline.h or history.h.
2606
86c6b807
TT
26072019-08-12 Tom Tromey <tom@tromey.com>
2608
2609 * configure: Rebuild.
2610 * configure.ac: Check for readline 7.
2611 * NEWS: Mention readline 7 requirement.
2612 * README: Update.
2613
5db2718c
TT
26142019-08-12 Tom Tromey <tom@tromey.com>
2615
2616 * mingw-hdep.c (gdb_select): Remove readline hack.
2617
dac36daf
PFC
26182019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2619
2620 * blockframe.c (find_pc_partial_function): Set *block to nullptr
2621 when the function fails.
2622
1022c627
AA
26232019-08-09 Andreas Arnez <arnez@linux.ibm.com>
2624
2625 * s390-tdep.c (s390_type_align): New function.
2626 (s390_gdbarch_init): Set it as type_align gdbarch method.
2627
eba4caf2
TV
26282019-08-09 Tom de Vries <tdevries@suse.de>
2629
2630 PR gdb/24591
2631 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
2632 pc_low with relocation offset.
2633
123cd851
TT
26342019-08-07 Tom Tromey <tromey@adacore.com>
2635
2636 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2637 (print_frame_args): Update.
2638 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
2639 Update.
2640 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2641 * frame.h (struct frame_arg): Add initializers.
2642 <error>: Now a unique_xmalloc_ptr.
2643
3d31bc39
AH
26442019-08-07 Alan Hayward <alan.hayward@arm.com>
2645
2646 * NEWS: Expand the Pointer Authentication entry.
2647 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
2648 (aarch64_frame_unmask_lr): ... to this.
2649 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
2650 Call aarch64_frame_unmask_lr.
2651 * frame.c (struct frame_info): Add "masked" variable.
2652 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
2653 (fprint_frame): Check for masked pc.
2654 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
2655 declarations.
2656 * python/py-framefilter.c (py_print_frame): Check for masked pc.
2657 * stack.c (print_frame): Check for masked pc.
2658
0cf9feb9
TT
26592019-08-06 Tom Tromey <tom@tromey.com>
2660
2661 * stabsread.c (patch_block_stabs, read_one_struct_field)
2662 (read_enum_type): Use obstack_strndup.
2663 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
2664 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
2665 * dwarf2read.c (guess_full_die_structure_name)
2666 (anonymous_struct_prefix): Use obstack_strndup.
2667 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
2668 * c-exp.y (yylex): Use obstack_strndup.
2669 * ada-exp.y (write_object_renaming, write_ambiguous_var)
2670 (write_var_or_type): Use obstack_strndup.
2671
efba19b0
TT
26722019-08-06 Tom Tromey <tom@tromey.com>
2673
2674 * symfile.c (reread_symbols): Use obstack_strdup.
2675 * stabsread.c (read_type): Use obstack_strdup.
2676 * gdb_obstack.h (obstack_strdup): New overload.
2677 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
2678 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
2679 (dwarf2_canonicalize_name): Use obstack_strdup.
2680 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
2681 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
2682 Use obstack_strdup.
2683
f25102f7
TT
26842019-08-06 Tom Tromey <tom@tromey.com>
2685
2686 * gdb_obstack.h (obstack_strdup): Define.
2687 * gdb_obstack.c (obstack_strdup): Don't define.
2688
021887d8
TT
26892019-08-06 Tom Tromey <tom@tromey.com>
2690
2691 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
2692 obstack_strdup.
2693 * typeprint.c (typedef_hash_table::find_global_typedef): Use
2694 obstack_strdup.
2695 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
2696 * stabsread.c (common_block_start): Use obstack_strdup.
2697 * objfiles.c (set_objfile_main_name, objfile): Use
2698 obstack_strdup.
2699 * namespace.c (add_using_directive): Use obstack_strdup.
2700 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
2701 * jit.c (finalize_symtab): Use obstack_strdup.
2702 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
2703 (guess_partial_die_structure_name, partial_die_info::fixup)
2704 (dwarf2_name): Use obstack_strdup.
2705 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
2706 obstack_strdup.
2707 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
2708 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
2709 obstack_strdup.
2710 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
2711
d2834edc
PW
27122019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2713
2714 * unittests/help-doc-selftests.c: New file.
2715 * Makefile.in: Add the new file.
2716
590042fc
PW
27172019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2718
2719 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
2720 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
2721 the full first line, except when FOR_VALUE_PREFIX. In this case,
2722 the trailing '.' is not output, and the first character is uppercased.
2723 (print_help_for_command): Update call to print_doc_line.
2724 (print_doc_of_command): Likewise.
2725 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
2726 * cli/cli-option.c (append_indented_doc): Do not append newline.
2727 (build_help_option): Append newline after first appended_indented_doc
2728 only if a second call is done.
2729 (build_help): Append 2 new lines before each option, except the first
2730 one.
2731 * compile/compile.c (_initialize_compile): Add new lines after
2732 %OPTIONS%, when not at the end of the help.
2733 Change help doc or code
2734 producing the help doc to respect the invariants.
2735 * maint-test-options.c (_initialize_maint_test_options): Likewise.
2736 Also removed the new line after 'Options:', as all other commands
2737 do not put an empty line between 'Options:' and the first option.
2738 * printcmd.c (_initialize_printcmd): Likewise.
2739 * stack.c (_initialize_stack): Likewise.
2740 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
2741 incorrectly telling COMMAND is optional.
2742 * ada-lang.c (_initialize_ada_language): Change help doc or code
2743 producing the help doc to respect the invariants.
2744 * ada-tasks.c (_initialize_ada_tasks): Likewise.
2745 * breakpoint.c (_initialize_breakpoint): Likewise.
2746 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
2747 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
2748 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
2749 * cli/cli-style.c (cli_style_option::add_setshow_commands,
2750 _initialize_cli_style): Likewise.
2751 * corelow.c (core_target_info): Likewise.
2752 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
2753 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
2754 * filesystem.c (_initialize_filesystem): Likewise.
2755 * frame.c (_initialize_frame): Likewise.
2756 * gnu-nat.c (add_task_commands): Likewise.
2757 * infcall.c (_initialize_infcall): Likewise.
2758 * infcmd.c (_initialize_infcmd): Likewise.
2759 * interps.c (_initialize_interpreter): Likewise.
2760 * language.c (_initialize_language): Likewise.
2761 * linux-fork.c (_initialize_linux_fork): Likewise.
2762 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
2763 * maint.c (_initialize_maint_cmds): Likewise.
2764 * memattr.c (_initialize_mem): Likewise.
2765 * printcmd.c (_initialize_printcmd): Likewise.
2766 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
2767 _RegEx): Likewise.
2768 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
2769 * record-btrace.c (_initialize_record_btrace): Likewise.
2770 * record-full.c (_initialize_record_full): Likewise.
2771 * record.c (_initialize_record): Likewise.
2772 * regcache-dump.c (_initialize_regcache_dump): Likewise.
2773 * regcache.c (_initialize_regcache): Likewise.
2774 * remote.c (add_packet_config_cmd, init_remote_threadtests,
2775 _initialize_remote): Likewise.
2776 * ser-tcp.c (_initialize_ser_tcp): Likewise.
2777 * serial.c (_initialize_serial): Likewise.
2778 * skip.c (_initialize_step_skip): Likewise.
2779 * source.c (_initialize_source): Likewise.
2780 * stack.c (_initialize_stack): Likewise.
2781 * symfile.c (_initialize_symfile): Likewise.
2782 * symtab.c (_initialize_symtab): Likewise.
2783 * target-descriptions.c (_initialize_target_descriptions): Likewise.
2784 * top.c (init_main): Likewise.
2785 * tracefile-tfile.c (tfile_target_info): Likewise.
2786 * tracepoint.c (_initialize_tracepoint): Likewise.
2787 * tui/tui-win.c (_initialize_tui_win): Likewise.
2788 * utils.c (add_internal_problem_command): Likewise.
2789 * valprint.c (value_print_option_defs): Likewise.
2790
404f2902
FCE
27912019-08-06 Frank Ch. Eigler <fche@redhat.com>
2792
2793 PR build/24886
2794 * configure.ac: Drop enable-libmcheck support.
2795 * configure, config.in: Rebuild.
2796 * libmcheck.m4: Remove.
2797 * acinclude.m4: Don't include it.
2798 * Makefile.in: Don't distribute it.
2799 * top.c (print_gdb_configuration): Don't mention it.
2800
046bebe1
TT
28012019-08-06 Tom Tromey <tom@tromey.com>
2802
2803 * utils.c (set_output_style): Sometimes pass stream to
2804 emit_style_escape.
2805 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
2806 * record-btrace.c (btrace_insn_history): Update.
2807 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
2808 method.
2809 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
2810 Update initializers.
2811 <m_uiout>: New field.
2812 <m_di>: Move lower.
2813 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2814 Remove "uiout" parameter.
2815 (dump_insns): Update.
2816 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
2817 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
2818
ddbcedf5
CB
28192019-08-06 Christian Biesinger <cbiesinger@google.com>
2820
2821 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
2822 (error_in_psymtab_expansion): Likewise.
2823 (lookup_symbol_via_quick_fns): Likewise.
2824 (basic_lookup_transparent_type_quick): Likewise.
2825 (basic_lookup_transparent_type_1): Likewise.
2826
b08b16c8
TT
28272019-08-06 Tom Tromey <tromey@adacore.com>
2828
2829 * source.c (last_source_error): Now bool.
2830 (print_source_lines_base): Make "noprint" bool. Only open
2831 source file when last_source_visited changes.
2832
cb44333d
TT
28332019-08-06 Tom Tromey <tromey@adacore.com>
2834
2835 * annotate.c (annotate_source_line): Use g_source_cache.
2836 * source-cache.c (source_cache::get_plain_source_lines): Change
2837 parameters. Populate m_offset_cache.
2838 (source_cache::ensure): New method.
2839 (source_cache::get_line_charpos): New method.
2840 (extract_lines): Move lower. Change parameters.
2841 (source_cache::get_source_lines): Move lower.
2842 * source-cache.h (class source_cache): Update comment.
2843 <get_line_charpos>: New method.
2844 <get_source_lines>: Update comment.
2845 <clear>: Clear m_offset_cache.
2846 <get_plain_source_lines>: Change parameters.
2847 <ensure>: New method
2848 <m_offset_cache>: New member.
2849 * source.c (forget_cached_source_info_for_objfile): Update.
2850 (info_source_command): Use g_source_cache.
2851 (find_source_lines, open_source_file_with_line_charpos): Remove.
2852 (print_source_lines_base, search_command_helper): Use g_source_cache.
2853 * source.h (open_source_file_with_line_charpos): Don't declare.
2854 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
2855 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
2856 Use g_source_cache.
2857
872dceaa
TT
28582019-08-06 Tom Tromey <tromey@adacore.com>
2859
2860 * source-cache.c (source_cache::get_plain_source_lines):
2861 Remove "first_line" and "last_line" parameters.
2862 (source_cache::get_source_lines): Cache plain text.
2863 * source-cache.h (class source_cache)
2864 <get_plain_source_lines>: Update.
2865
269249d9
TT
28662019-08-06 Tom Tromey <tromey@adacore.com>
2867
2868 * source-cache.c (extract_lines): No longer a method.
2869 Changed type of parameter. Include final newline.
2870 (selftests::extract_lines_test): New function.
2871 (_initialize_source_cache): Likewise.
2872 * source-cache.h (class source_cache)
2873 <extract_lines>: Don't declare.
2874
c0e8dcd8
TT
28752019-08-06 Tom Tromey <tromey@adacore.com>
2876
2877 * breakpoint.c (init_breakpoint_sal): Update.
2878 (breakpoint): Update.
2879 * breakpoint.h (struct breakpoint) <filter>: Now a
2880 unique_xmalloc_ptr.
2881
0b27c27d
CB
28822019-08-05 Christian Biesinger <cbiesinger@google.com>
2883
2884 * NEWS: Mention dictionary access on blocks.
2885 * python/py-block.c (blpy_getitem): New function.
2886 (block_object_as_mapping): New struct.
2887 (block_object_type): Use new struct for tp_as_mapping field.
2888
4ee94178
CB
28892019-08-05 Christian Biesinger <cbiesinger@google.com>
2890
2891 * objfiles.h (objfile): Add a comment describing partial symbols.
2892
8abfcabc
TT
28932019-08-05 Tom Tromey <tromey@adacore.com>
2894
2895 * compile/compile.c (_initialize_compile): Use _(), not N_().
2896 * thread.c (_initialize_thread): Use _(), not N_().
2897 * stack.c (_initialize_stack): Use _(), not N_().
2898 * printcmd.c (_initialize_printcmd): Use _(), not N_().
2899
2b79f376
SM
29002019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2901
2902 * dwarf2read.c (struct dw2_symtab_iterator):
2903 <want_specific_block>: Remove.
2904 <block_index>: Change type to gdb::optional.
2905 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
2906 change type of BLOCK_INDEX parameter to gdb::optional.
2907 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
2908 (dw2_lookup_symbol): Don't pass argument for
2909 WANT_SPECIFIC_BLOCK.
2910 (dw2_expand_symtabs_for_function): Don't pass argument for
2911 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
2912 (class dw2_debug_names_iterator)
2913 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
2914 parameter, change BLOCK_INDEX type to gdb::optional.
2915 <m_want_specific_block>: Remove.
2916 <m_block_index>: Change type to gdb::optional.
2917 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
2918 gdb::optional. Re-write in function of gdb::optional.
2919 (dw2_debug_names_lookup_symbol): Don't pass argument for
2920 WANT_SPECIFIC_BLOCK.
2921 (dw2_debug_names_expand_symtabs_for_function): Don't pass
2922 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
2923 BLOCK_INDEX.
2924
ae60f04e
PW
29252019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2926
2927 * NEWS: Mention changes to "info sources" command.
2928
28cd9371
PW
29292019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2930
2931 * symtab.c (filename_partial_match_opts): New struct type.
2932 (struct output_source_filename_data): New members
2933 regexp, c_regexp, partial_match.
2934 (output_source_filename): Use new members to decide to print file.
2935 (info_sources_option_defs): New variable.
2936 (make_info_sources_options_def_group, print_info_sources_header,
2937 info_sources_command_completer):
2938 New functions.
2939 (info_sources_command): Read new optional arguments.
2940 (_initialize_symtab): Update info sources help.
2941
ca683e3a
AO
29422019-08-02 Alexandre Oliva <oliva@adacore.com>
2943
2944 * ada-lang.c (exception_support_info_v0): Renamed from...
2945 (default_exception_support_info): ... this. Create new
2946 definition for v1.
2947 (ada_has_this_exception_support): Look up catch_handlers_sym.
2948 (ada_exception_support_info_sniffer): Try v0 after default.
2949
f1264162
TT
29502019-08-01 Tom Tromey <tromey@adacore.com>
2951
2952 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
2953 gdbarch.h.
2954
0a7b2485
CB
29552019-08-01 Christian Biesinger <cbiesinger@google.com>
2956
2957 * s12z-tdep.c: Fix include path for s12z-opc.h.
2958
c6bdbeb7
AH
29592019-08-01 Alan Hayward <alan.hayward@arm.com>
2960
2961 * NEWS: Require GNU make 3.82.
2962
a2bd7b82
TT
29632019-07-16 Tom Tromey <tom@tromey.com>
2964
2965 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
2966 declare.
2967
aa3b6533
TT
29682019-07-30 Tom Tromey <tromey@adacore.com>
2969
2970 * block.c (contained_in): Remove BLOCK_FUNCTION check.
2971
a1530dc7
KB
29722019-07-30 Kevin Buettner <kevinb@redhat.com>
2973
2974 * printcmd.c (print_address_symbolic): Print negative offsets.
2975 (build_address_symbolic): Force signed arithmetic when computing
2976 offset.
2977
2906593f
CB
29782019-07-30 Christian Biesinger <cbiesinger@google.com>
2979
2980 PR/24474: Add a function to lookup static variables.
2981 * NEWS: Mention this new function.
2982 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
2983 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
2984 * python/python.c (python_GdbMethods): Add new function.
2985
c620ed88
CB
29862019-07-29 Christian Biesinger <cbiesinger@google.com>
2987
2988 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
2989 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
2990 (objfpy_lookup_static_symbol): New function.
2991 (objfile_object_methods): Add new functions.
2992
bc4268a5
PW
29932019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2994
2995 * NEWS: Mention 'set|show print frame-info'. Mention new
2996 'presence' value for 'frame-arguments'. Mention new '-frame-info'
2997 backtrace argument. Mention that python frame filtering code
2998 is now consistent with what 'backtrace' command prints.
2999
4b5e8d19
PW
30002019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3001
3002 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
3003 comments.
3004 (print_frame_info_auto, print_frame_info_source_line,
3005 print_frame_info_location, print_frame_info_source_and_location,
3006 print_frame_info_location_and_address, print_frame_info_short_location):
3007 New declarations.
3008 (struct frame_print_options): New member print_frame_info.
3009 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
3010 * stack.h (get_user_print_what_frame_info): New declaration.
3011 (frame_show_address): New declaration.
3012 * stack.c (print_frame_arguments_choices): New value 'presence'.
3013 (print_frame_info_auto, print_frame_info_source_line,
3014 print_frame_info_location, print_frame_info_source_and_location,
3015 print_frame_info_location_and_address, print_frame_info_short_location,
3016 print_frame_info_choices, print_frame_info_print_what): New definitions.
3017 (print_frame_args): Only print dots for args if print frame-arguments
3018 is 'presence'.
3019 (frame_print_option_defs): New element for "frame-info".
3020 (get_user_print_what_frame_info): New function.
3021 (frame_show_address): Make non static. Move comment to stack.h.
3022 (print_frame_info_to_print_what): New function.
3023 (print_frame_info): Update comment. Use fp_opts.print_frame_info
3024 to decide what to print.
3025 (backtrace_command_1): Handle the new print_frame_arguments_presence
3026 value.
3027 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
3028 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
3029 (py_print_frame): In non-mi mode, use LOCATION as default for
3030 print_what, similarly to frame information printed directly by
3031 backtrace command. Handle frame-info user option in non MI mode.
3032
6bdfee81
KB
30332019-07-27 Kevin Buettner <kevinb@redhat.com>
3034
3035 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
3036 Add case for debugging 32-bit target on 64-bit host. Revise
3037 comment.
3038
98a617f8
KB
30392019-07-27 Kevin Buettner <kevinb@redhat.com>
3040
3041 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
3042 instead of find_function_entry_range_from_pc.
3043
567238c9
KB
30442019-07-27 Kevin Buettner <kevinb@redhat.com>
3045
3046 * stack.c (find_frame_funname): Remove code which preferred
3047 minsym over symtab sym in "certain pathological cases".
3048
2dc80cf8
KB
3049 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
3050 parameter. Change type of "do_demangle" to bool.
3051 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3052 Pass suitable "prefer_sym_over_minsym" flag to
3053 build_address_symbolic(). Don't output "+" for negative offsets.
3054 * printcmd.c (print_address_symbolic): Update invocation of
3055 build_address_symbolic to include a "prefer_sym_over_minsym"
3056 flag.
3057 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
3058 Restrict cases in which use of minimal symbol is preferred to that
3059 of a found symbol. Update comments.
3060
1aff7173
KB
3061 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
3062 for entry pc when entry pc is out of range for that FDE.
3063
89b085ac
BC
30642019-07-26 Brian Callahan <bcallah@openbsd.org>
3065
3066 PR gdb/24839:
3067 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
3068 type.
3069
f32feb4a
CB
30702019-07-25 Christian Biesinger <cbiesinger@google.com>
3071
3072 * python/py-objfile.c (add_separate_debug_file): Fix comment about
3073 this function's Python signature.
3074
3075
30762019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
3077
3078 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
3079 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3080 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3081 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
3082 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
3083
3084
c54e4253
YS
30852019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
3086
3087 * h8300-tdep.c (h8300_register_name_common): New.
3088 h8300_register_name): Use h8300_register_name_common.
3089 (h8300s_register_name): Likewise.
3090 (h8300sx_register_name): Likewise.
3091 (h8300h_register_nam): New.
3092 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
3093
3094
40eadf04
SP
30952019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3096
3097 * arm-tdep.c (arm_skip_cmse_entry): New function.
3098 (arm_is_sgstubs_section): New function.
3099 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
3100
bfa2a36d
TT
31012019-07-22 Tom Tromey <tom@tromey.com>
3102
3103 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
3104 Don't self-assign.
3105
a8e9d247
AB
31062019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3107
3108 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
3109 type_print.
3110
eb86c5e2
AB
31112019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3112
3113 * symtab.c (search_symbols): Adjust msymbol matching type arrays
3114 so that GDB doesn't match any msymbols when searching in the
3115 TYPES_DOMAIN.
3116 (print_symbol_info): Print using typedef_print or type_print based
3117 on the type of the symbol. Add updated FIXME comment moved from...
3118 (_initialize_symtab): ... move and update FIXME comment to above.
3119
a8eab7c6
AB
31202019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3121
3122 * NEWS: Mention adding -q option to "info types".
3123 * symtab.c (struct info_types_options): New struct.
3124 (info_types_options_defs): New variable.
3125 (make_info_types_options_def_group): New function.
3126 (info_types_command): Use gdb::option framework to parse options.
3127 (info_types_command_completer): New function.
3128 (_initialize_symtab): Extend the help text on "info types" and
3129 register command completer.
3130
b4603c34
CB
31312019-07-21 Christian Biesinger <cbiesinger@google.com>
3132
3133 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
3134 (lookup_symbol_in_objfile): Change int to block_enum and add a
3135 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
3136
c8cdc1e0
CB
31372019-07-20 Christian Biesinger <cbiesinger@google.com>
3138
3139 * MAINTAINERS (Write After Approval): Add self.
3140
01e175fe
AB
31412019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
3142
3143 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
3144 instruction to the dummy code region.
3145
56f79b63
TT
31462019-07-19 Tom Tromey <tromey@adacore.com>
3147
3148 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
3149 (ARGSUSED, PARAMS, __func__): Remove rules.
3150
4c5aa8e0
AH
31512019-07-19 Alan Hayward <alan.hayward@arm.com>
3152
3153 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
3154 * features/arm/arm-with-iwmmxt.c: Remove.
3155 * features/arm/arm-with-iwmmxt.xml: Remove.
3156 * features/arm/arm-with-m-fpa-layout.c: Remove.
3157 * features/arm/arm-with-m-fpa-layout.xml: Remove.
3158 * features/arm/arm-with-m-vfp-d16.c: Remove.
3159 * features/arm/arm-with-m-vfp-d16.xml: Remove.
3160 * features/arm/arm-with-m.c: Remove.
3161 * features/arm/arm-with-m.xml: Remove.
3162 * features/arm/arm-with-neon.c: Remove.
3163 * features/arm/arm-with-neon.xml: Remove.
3164 * features/arm/arm-with-vfpv2.c: Remove.
3165 * features/arm/arm-with-vfpv2.xml: Remove.
3166 * features/arm/arm-with-vfpv3.c: Remove.
3167 * features/arm/arm-with-vfpv3.xml: Remove.
3168
f42b2617
AH
31692019-07-19 Alan Hayward <alan.hayward@arm.com>
3170
3171 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
3172
f29ec966
AH
31732019-07-19 Alan Hayward <alan.hayward@arm.com>
3174
3175 * arch/aarch32.c (aarch32_create_target_description): Create
3176 target descriptions using features.
3177 * arch/arm.c (arm_create_target_description)
3178 (arm_create_mprofile_target_description): Likewise.
3179 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
3180
d105cce5
AH
31812019-07-19 Alan Hayward <alan.hayward@arm.com>
3182
3183 * Makefile.in: Add new files.
3184 * aarch32-tdep.c: New file.
3185 * aarch32-tdep.h: New file.
3186 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3187 Call aarch32_read_description.
3188 * arch/aarch32.c: New file.
3189 * arch/aarch32.h: New file.
3190 * arch/arm.c (arm_create_target_description)
3191 (arm_create_mprofile_target_description): New function.
3192 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
3193 (arm_create_target_description)
3194 (arm_create_mprofile_target_description): New declaration.
3195 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
3196 read_description functions.
3197 * arm-linux-nat.c (arm_linux_nat_target::read_description):
3198 Likewise.
3199 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3200 * arm-tdep.c (tdesc_arm_list): New variable.
3201 (arm_register_g_packet_guesses): Call create description functions.
3202 (arm_read_description) (arm_read_mprofile_description): New
3203 function.
3204 * arm-tdep.h (arm_read_description)
3205 (arm_read_mprofile_description): Add declaration.
3206 * configure.tgt: Add new files.
3207
afe09f0b
GL
32082019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
3209
3210 * top.c (new_ui_command): Open specified terminal just once.
3211
cd215b2e
TT
32122019-07-18 Tom Tromey <tromey@adacore.com>
3213
3214 * symtab.c (main_name): Constify return type.
3215 * symfile.c (set_initial_language): Update.
3216 * symtab.h (main_name): Constify return type.
3217
d8f68fcb
TT
32182019-07-17 Tom Tromey <tom@tromey.com>
3219
3220 * tui/tui-winsource.c (tui_update_source_window)
3221 (tui_update_source_window_as_is)
3222 (tui_update_source_windows_with_line): Remove return.
3223 * tui/tui-disasm.c (tui_show_disassem)
3224 (tui_show_disassem_and_update_source): Remove return.
3225 * tui/tui.c (tui_reset): Remove return.
3226 * tui/tui-wingeneral.c
3227 (tui_check_and_display_highlight_if_needed): Remove return.
3228
ca5af91e
TT
32292019-07-17 Tom Tromey <tom@tromey.com>
3230
3231 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
3232
5104fe36
TT
32332019-07-17 Tom Tromey <tom@tromey.com>
3234
3235 * tui/tui-winsource.h (struct tui_exec_info_window)
3236 (struct tui_source_window_base): Move from tui-data.h.
3237 * tui/tui-winsource.c: Move many method definitions from
3238 elsewhere. Remove "structuring" comments.
3239 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
3240 (tui_source_window_base::refresh_window): Move to
3241 tui-winsource.c.
3242 * tui/tui-win.c (tui_source_window_base::refresh_all)
3243 (tui_source_window_base::update_tab_width)
3244 (tui_source_window_base::set_new_height)
3245 (tui_source_window_base::do_make_visible_with_new_height): Move to
3246 tui-winsource.c.
3247 * tui/tui-source.h: Update.
3248 * tui/tui-source.c (tui_source_window_base::reset): Move to
3249 tui-winsource.c.
3250 * tui/tui-disasm.h: Update.
3251 * tui/tui-data.h (struct tui_exec_info_window): Move to
3252 tui-winsource.h.
3253 (struct tui_source_window_base): Likewise.
3254 * tui/tui-data.c (tui_source_window_base::clear_detail)
3255 (tui_source_window_base, ~tui_source_window_base): Move to
3256 tui-winsource.c.
3257
daa15dde
TT
32582019-07-17 Tom Tromey <tom@tromey.com>
3259
3260 * tui/tui-win.c (tui_resize_all)
3261 (tui_source_window_base::update_tab_width)
3262 (tui_adjust_win_heights): Update.
3263 (tui_win_info::make_invisible_and_set_new_height): Rename from
3264 make_invisible_and_set_new_height.
3265 * tui/tui-data.h (struct tui_win_info)
3266 <make_invisible_and_set_new_height>: New method.
3267
bfad4537
TT
32682019-07-17 Tom Tromey <tom@tromey.com>
3269
3270 * tui/tui.c: Update.
3271 * tui/tui-source.h (struct tui_source_window): Move from
3272 tui-data.h.
3273 * tui/tui-layout.c: Update.
3274 * tui/tui-disasm.c: Update.
3275 * tui/tui-data.h (struct tui_source_window): Move to
3276 tui-source.h.
3277
88f7e873
TT
32782019-07-17 Tom Tromey <tom@tromey.com>
3279
3280 * tui/tui-disasm.h (struct tui_disasm_window): Move from
3281 tui-data.h.
3282 * tui/tui-data.h (struct tui_disasm_window): Move to
3283 tui-disasm.h.
3284
96bd6233
TT
32852019-07-17 Tom Tromey <tom@tromey.com>
3286
3287 * tui/tui-regs.h (struct tui_data_item_window): Move from
3288 tui-data.h.
3289 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
3290 * tui/tui-data.h (struct tui_data_item_window): Move to
3291 tui-regs.h.
3292 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
3293
ce38393b
TT
32942019-07-17 Tom Tromey <tom@tromey.com>
3295
3296 * tui/tui.c: Update.
3297 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
3298 (tui_cmd_window::max_height): Move to tui-command.c.
3299 * tui/tui-layout.c: Update.
3300 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
3301 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
3302 tui-command.c.
3303 * tui/tui-command.h (struct tui_cmd_window): Move from
3304 tui-data.h.
3305 * tui/tui-command.c: Remove "structuring" comments.
3306 (tui_cmd_window::clear_detail)
3307 (tui_cmd_window::do_make_visible_with_new_height)
3308 (tui_cmd_window::max_height): Move from elsewhere.
3309
2d8b51cb
TT
33102019-07-17 Tom Tromey <tom@tromey.com>
3311
3312 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
3313 Now static.
3314 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
3315 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
3316
18ab23af
TT
33172019-07-17 Tom Tromey <tom@tromey.com>
3318
3319 * tui/tui.c: Update.
3320 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
3321 tui-regs.c.
3322 * tui/tui-windata.h: Remove file.
3323 * tui/tui-windata.c: Remove file.
3324 * tui/tui-win.c (tui_data_window::set_new_height)
3325 (tui_data_window::do_make_visible_with_new_height): Move to
3326 tui-regs.c.
3327 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
3328 * tui/tui-regs.c: Remove "structuring" comments.
3329 (tui_data_window::first_data_item_displayed)
3330 (tui_data_window::delete_data_content_windows)
3331 (tui_data_window::erase_data_content)
3332 (tui_data_window::display_all_data)
3333 (tui_data_window::refresh_all)
3334 (tui_data_window::do_scroll_vertical)
3335 (tui_data_window::clear_detail, tui_data_window::set_new_height)
3336 (tui_data_window::do_make_visible_with_new_height)
3337 (tui_data_window::refresh_window): Move from elsewhere.
3338 (_initialize_tui_regs): Move to end of file.
3339 * tui/tui-layout.c: Update.
3340 * tui/tui-hooks.c: Update.
3341 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
3342 * tui/tui-data.c (tui_data_window::clear_detail): Move to
3343 tui-regs.c.
3344 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
3345
88b7e7cc
TT
33462019-07-17 Tom Tromey <tom@tromey.com>
3347
3348 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
3349 seen.
3350
0fcd3711
TT
33512019-07-17 Tom Tromey <tom@tromey.com>
3352
3353 * tui/tui-win.c (tui_source_window_base::set_new_height)
3354 (tui_source_window_base::do_make_visible_with_new_height): Use
3355 m_has_locator field directly.
3356 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
3357 method.
3358 (struct tui_source_window_base) <has_locator>: Likewise.
3359
4a38112d
TT
33602019-07-17 Tom Tromey <tom@tromey.com>
3361
3362 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
3363 Don't declare.
3364 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
3365 Remove.
3366 * tui/tui-win.c (tui_source_window_base::set_new_height)
3367 (tui_source_window_base::set_new_height)
3368 (make_invisible_and_set_new_height)
3369 (tui_source_window_base::do_make_visible_with_new_height)
3370 (tui_source_window_base::do_make_visible_with_new_height):
3371 Update.
3372 * tui/tui-layout.c (show_source_disasm_command, show_data)
3373 (show_source_or_disasm_and_command): Update.
3374 * tui/tui-layout.c (show_layout): Update.
3375
09129226
TT
33762019-07-17 Tom Tromey <tom@tromey.com>
3377
3378 * tui/tui-layout.c (make_data_window): Remove.
3379 (show_data): Unify creation and re-initialization cases.
3380
4a8a5e84
TT
33812019-07-17 Tom Tromey <tom@tromey.com>
3382
3383 * tui/tui-layout.c (make_source_window, make_disasm_window):
3384 Remove.
3385 (show_data): Unify creation and re-initialization cases.
3386
76d2be8e
TT
33872019-07-17 Tom Tromey <tom@tromey.com>
3388
3389 * tui/tui-layout.c (make_command_window): Remove.
3390 (show_source_disasm_command, show_source_or_disasm_and_command):
3391 Unify creation and re-initialization cases.
3392
890b8bde
TT
33932019-07-17 Tom Tromey <tom@tromey.com>
3394
3395 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
3396 creation and re-initialization cases.
3397
2cdfa113
TT
33982019-07-17 Tom Tromey <tom@tromey.com>
3399
3400 * tui/tui-regs.c (tui_get_register): Return void.
3401
8e3cfd09
TT
34022019-07-17 Tom Tromey <tom@tromey.com>
3403
3404 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
3405 Simplify.
3406
f4e04977
TT
34072019-07-17 Tom Tromey <tom@tromey.com>
3408
3409 * tui/tui-layout.c (show_source_disasm_command): Simplify window
3410 resetting.
3411
0379b883
TT
34122019-07-17 Tom Tromey <tom@tromey.com>
3413
3414 * tui/tui.h (tui_set_layout_by_name): Don't declare.
3415 * tui/tui-regs.c (tui_reg_layout): New function.
3416 (tui_show_registers, tui_reg_command): Use it.
3417 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
3418 (tui_layout_command): Rename from tui_set_layout_by_name. Change
3419 parameters.
3420 (tui_layout_command): Remove.
3421
b7fbad91
TT
34222019-07-17 Tom Tromey <tom@tromey.com>
3423
3424 * tui/tui-layout.h (tui/tui-layout): Return void.
3425 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
3426
4e1e56b9
TT
34272019-07-17 Tom Tromey <tom@tromey.com>
3428
3429 * tui/tui-layout.c (show_source_disasm_command, show_data):
3430 Update.
3431 (reset_locator): Remove.
3432 (show_source_or_disasm_and_command): Update.
3433
1e0c09ba
TT
34342019-07-17 Tom Tromey <tom@tromey.com>
3435
3436 * tui/tui-source.c (tui_source_window_base::reset): Remove
3437 win_type parameter.
3438 * tui/tui-layout.c (make_command_window, make_source_window)
3439 (make_disasm_window, make_data_window)
3440 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
3441 (reset_locator, show_source_or_disasm_and_command): Update.
3442 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
3443 win_type parameter.
3444 (struct tui_source_window_base) <reset>: Likewise.
3445
1bf605de
TT
34462019-07-17 Tom Tromey <tom@tromey.com>
3447
3448 * tui/tui-layout.c (show_source_disasm_command): Use
3449 reset_locator.
3450 (reset_locator): New function.
3451 (init_and_make_win): Remove.
3452 (show_source_or_disasm_and_command): Use reset_locator.
3453
098f9ed4
TT
34542019-07-17 Tom Tromey <tom@tromey.com>
3455
3456 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
3457 condition.
3458 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
3459 Remove condition.
3460 * tui/tui-source.c (tui_source_window_base::reset): New method.
3461 * tui/tui-layout.c (make_command_window): Don't call
3462 init_and_make_win.
3463 (make_source_window, make_disasm_window): Don't call
3464 make_source_or_disasm_window.
3465 (make_data_window): Don't call init_and_make_win. Change calling
3466 convention.
3467 (show_source_disasm_command, show_data): Simplify.
3468 (make_source_or_disasm_window): Remove.
3469 (show_source_or_disasm_and_command): Simplify.
3470 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
3471 (struct tui_source_window_base) <reset>: Likewise.
3472 <execution_info>: Remove initializer.
3473 * tui/tui-data.c (tui_source_window_base): Initialize
3474 execution_info.
3475
80110957
TT
34762019-07-17 Tom Tromey <tom@tromey.com>
3477
3478 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
3479 variable.
3480
cf82af05
TT
34812019-07-17 Tom Tromey <tom@tromey.com>
3482
3483 * tui/tui.c (tui_rl_other_window): Update.
3484 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
3485 superclass method first. Always iterate over regs_content.
3486 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
3487 method.
3488 * tui/tui-win.c (tui_set_focus_command): Update.
3489
01aeb396
TT
34902019-07-17 Tom Tromey <tom@tromey.com>
3491
3492 * tui/tui-win.c (tui_set_focus_command): Rename from
3493 tui_set_focus. Call tui_enable.
3494 (tui_set_focus_command): Remove.
3495
fd6c75ee
TT
34962019-07-17 Tom Tromey <tom@tromey.com>
3497
3498 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
3499 refresh_window.
3500 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
3501 touchwin.
3502 (tui_data_window::refresh_window): Call refresh_window on data
3503 items. Always call superclass refresh_window.
3504 (tui_win_info::refresh): Remove.
3505 (tui_source_window_base::refresh_window): Update.
3506 (tui_refresh_all): Update.
3507 * tui/tui-layout.c (show_source_disasm_command): Remove call to
3508 refresh_window.
3509 (show_source_or_disasm_and_command): Likewise.
3510 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
3511 (struct tui_source_window_base) <refresh>: Likewise.
3512
f6cc34a9
TT
35132019-07-17 Tom Tromey <tom@tromey.com>
3514
3515 * tui/tui-winsource.c (tui_clear_source_content)
3516 (tui_show_source_content): Update.
3517 * tui/tui-source.c (tui_source_window::showing_source_p): Check
3518 whether content is empty.
3519 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
3520 Remove.
3521
f31ec9af
TT
35222019-07-17 Tom Tromey <tom@tromey.com>
3523
3524 * tui/tui-winsource.c (tui_erase_source_content): Clear the
3525 window's contents.
3526 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
3527 * tui/tui-source.c (tui_set_source_content_nil): Remove.
3528
d1b6f1e5
TT
35292019-07-17 Tom Tromey <tom@tromey.com>
3530
3531 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
3532 (struct tui_data_item_window): Update.
3533
d9743a13
TT
35342019-07-17 Tom Tromey <tom@tromey.com>
3535
3536 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
3537 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
3538 defines.
3539
caf0bc4e
TT
35402019-07-17 Tom Tromey <tom@tromey.com>
3541
3542 * tui/tui-winsource.h (tui_erase_source_content)
3543 (tui_clear_source_content): Remove "display_prompt" parameter.
3544 * tui/tui-winsource.c (tui_update_source_window_as_is)
3545 (tui_update_source_windows_with_addr): Update.
3546 (tui_clear_source_content): Remove "display_prompt" parameter.
3547 (tui_erase_source_content): Likewise. Simplify.
3548 (tui_show_source_content): Update.
3549 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3550 * tui/tui-stack.c (tui_show_frame_info): Update.
3551 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
3552 Remove defines.
3553
9d391078
TT
35542019-07-17 Tom Tromey <tom@tromey.com>
3555
3556 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3557 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
3558 parameter.
3559 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
3560 parameter.
3561
a38da35d
TT
35622019-07-17 Tom Tromey <tom@tromey.com>
3563
3564 * tui/tui-winsource.c (tui_clear_source_content)
3565 (tui_show_source_content, tui_show_exec_info_content)
3566 (tui_clear_exec_info_content): Update.
3567 * tui/tui-stack.c (tui_show_locator_content): Update.
3568 (tui_show_frame_info): Update.
3569 * tui/tui-source.h (tui_source_window): Don't declare.
3570 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
3571 from tui_source_is_displayed.
3572 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
3573 Remove field.
3574 (struct tui_source_window_base) <content_in_use>: New field. Now
3575 bool.
3576 (struct tui_source_window) <showing_source_p>: New method.
3577 (TUI_SRC_WIN): Change cast.
3578 * tui/tui-data.c (tui_initialize_static_data): Update.
3579
c2cd8994
TT
35802019-07-17 Tom Tromey <tom@tromey.com>
3581
3582 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
3583 location_matches_p.
3584 * tui/tui-source.c (tui_source_window::location_matches_p): New
3585 method.
3586 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
3587 method.
3588 * tui/tui-data.h (struct tui_source_window_base)
3589 <location_matches_p>: New method.
3590 (struct tui_source_window, struct tui_disasm_window)
3591 <location_matches_p>: Likewise.
3592
4dde7b34
TT
35932019-07-17 Tom Tromey <tom@tromey.com>
3594
3595 * tui/tui-win.c (tui_set_win_height_command): Rename from
3596 tui_set_win_height.
3597 (tui_set_win_height_command): Remove.
3598
b73dd877
TT
35992019-07-17 Tom Tromey <tom@tromey.com>
3600
3601 * tui/tui-source.c (tui_source_window): New constructor. Add
3602 observer.
3603 (~tui_source_window): New destructor.
3604 (tui_source_window::style_changed): New method.
3605 * tui/tui-hooks.c (tui_redisplay_source): Remove.
3606 (tui_attach_detach_observers): Update.
3607 * tui/tui-data.h (struct tui_source_window): Make constructor not
3608 inline. Add destructor.
3609 (struct tui_source_window) <style_changed>: New method.
3610 <m_observable>: New member.
3611
ae2b5380
TT
36122019-07-17 Tom Tromey <tom@tromey.com>
3613
3614 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
3615 * tui/tui-win.c (tui_resize_all): Fix typo.
3616
1ce3e844
TT
36172019-07-17 Tom Tromey <tom@tromey.com>
3618
3619 * tui/tui-wingeneral.h (tui_refresh_all): Update.
3620 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
3621 (tui_refresh_all): Remove "list" parameter. Use foreach.
3622 * tui/tui-win.c (window_name_completer): Use foreach.
3623 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
3624 (update_tab_width): Likewise.
3625 * tui/tui-layout.c (show_layout): Update.
3626 * tui/tui-data.h (class tui_window_iterator): New.
3627 (struct all_tui_windows): New.
3628 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
3629
fe3eaf1c
TT
36302019-07-17 Tom Tromey <tom@tromey.com>
3631
3632 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
3633 parameter. Don't reference globals.
3634 (tui_reg_command): Update.
3635
368c1354
TT
36362019-07-17 Tom Tromey <tom@tromey.com>
3637
3638 * tui/tui-regs.c (tui_show_registers): Simplify.
3639
e80cd204
TT
36402019-07-17 Tom Tromey <tom@tromey.com>
3641
3642 * tui/tui-regs.c (tui_show_registers): Update.
3643 (tui_show_register_group): Add win_info parameter.
3644
aca2dd16
TT
36452019-07-17 Tom Tromey <tom@tromey.com>
3646
3647 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
3648 Rename from tui_display_reg_element_at_line.
3649 (tui_data_window::display_registers_from_line): Update.
3650 * tui/tui-data.h (struct tui_data_window)
3651 <display_reg_element_at_line>: New method.
3652
517e9505
TT
36532019-07-17 Tom Tromey <tom@tromey.com>
3654
3655 * tui/tui-regs.h (tui_display_registers_from)
3656 (tui_display_registers_from_line): Don't declare.
3657 * tui/tui-windata.c (tui_data_window::display_all_data)
3658 (tui_data_window::refresh_all)
3659 (tui_data_window::do_scroll_vertical): Update.
3660 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
3661 from tui_display_registers_from.
3662 (tui_display_reg_element_at_line): Update.
3663 (tui_data_window::display_registers_from_line): Rename from
3664 tui_display_registers_from_line.
3665 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
3666 display_registers_from_line>: New methods.
3667
f76d8b19
TT
36682019-07-17 Tom Tromey <tom@tromey.com>
3669
3670 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
3671 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
3672 from tui_erase_data_content.
3673 (tui_data_window::display_all_data)
3674 (tui_data_window::refresh_all)
3675 (tui_data_window::do_scroll_vertical): Update.
3676 * tui/tui-regs.c (tui_show_registers): Update.
3677 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
3678 New method.
3679
b4094625
TT
36802019-07-17 Tom Tromey <tom@tromey.com>
3681
3682 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
3683 declare.
3684 * tui/tui-windata.c
3685 (tui_data_window::delete_data_content_windows): Rename from
3686 tui_delete_data_content_windows.
3687 (tui_data_window::display_all_data)
3688 (tui_data_window::do_scroll_vertical): Update.
3689 * tui/tui-data.h (struct tui_data_window)
3690 <delete_data_content_windows>: New method.
3691
c223a729
TT
36922019-07-17 Tom Tromey <tom@tromey.com>
3693
3694 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
3695 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
3696
50daf268
TT
36972019-07-17 Tom Tromey <tom@tromey.com>
3698
3699 * tui/tui-windata.h (tui_display_all_data): Don't declare.
3700 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
3701 from tui_display_all_data.
3702 * tui/tui-win.c
3703 (tui_data_window::do_make_visible_with_new_height): Update.
3704 * tui/tui-regs.c (tui_show_registers): Update.
3705 * tui/tui-layout.c (tui_set_layout): Update.
3706 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
3707 method.
3708
df5f8cab
TT
37092019-07-17 Tom Tromey <tom@tromey.com>
3710
3711 * tui/tui-windata.h (tui_display_data_from): Don't declare.
3712 * tui/tui-windata.c (tui_display_data_from): Remove.
3713 (tui_data_window::refresh_all): Update.
3714
80cb6c27
TT
37152019-07-17 Tom Tromey <tom@tromey.com>
3716
3717 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
3718 * tui/tui-windata.c (tui_display_data_from_line): Remove.
3719 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
3720 tui_display_registers_from_line.
3721 * tui/tui-regs.h (tui_display_registers_from_line): Update.
3722 * tui/tui-regs.c (tui_display_registers_from_line): Remove
3723 "force_display" parameter.
3724
baff0c28
TT
37252019-07-17 Tom Tromey <tom@tromey.com>
3726
3727 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
3728 declare.
3729 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
3730 Rename from tui_first_reg_element_no_inline.
3731 (tui_display_reg_element_at_line)
3732 (tui_display_registers_from_line): Update.
3733 * tui/tui-data.h (struct tui_data_window)
3734 <first_reg_element_no_inline>: New method.
3735
3b23c5f2
TT
37362019-07-17 Tom Tromey <tom@tromey.com>
3737
3738 * tui/tui-windata.c (tui_display_data_from)
3739 (tui_data_window::do_scroll_vertical): Update.
3740 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
3741 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
3742 Rename from tui_line_from_reg_element_no.
3743 (tui_display_registers_from_line): Update.
3744 * tui/tui-data.h (struct tui_data_window)
3745 <line_from_reg_element_no>: New method.
3746
0b5ec218
TT
37472019-07-17 Tom Tromey <tom@tromey.com>
3748
3749 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
3750 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
3751 tui_last_regs_line_no.
3752 (tui_display_reg_element_at_line)
3753 (tui_display_registers_from_line): Update.
3754 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
3755 method.
3756
0807ab7b
TT
37572019-07-17 Tom Tromey <tom@tromey.com>
3758
3759 PR tui/24722:
3760 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
3761 (tui_update_breakpoint_info): Add "being_deleted" parameter.
3762 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3763 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
3764 (tui_update_breakpoint_info): Likewise.
3765 * tui/tui-hooks.c (tui_event_create_breakpoint)
3766 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
3767 Update.
3768
9ad7fdef
TT
37692019-07-17 Tom Tromey <tom@tromey.com>
3770
3771 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
3772
5813316f
TT
37732019-07-17 Tom Tromey <tom@tromey.com>
3774
3775 * tui/tui-winsource.c (tui_update_source_window_as_is)
3776 (tui_update_source_windows_with_addr): Update.
3777 * tui/tui-source.h (tui_set_source_content)
3778 (tui_show_symtab_source): Add "win_info" parameter.
3779 * tui/tui-source.c (tui_set_source_content): Add "win_info"
3780 parameter.
3781 (tui_show_symtab_source): Likewise.
3782
00e264e7
TT
37832019-07-17 Tom Tromey <tom@tromey.com>
3784
3785 * tui/tui-wingeneral.c
3786 (tui_check_and_display_highlight_if_needed): Check can_highlight.
3787
06210ce4
TT
37882019-07-17 Tom Tromey <tom@tromey.com>
3789
3790 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
3791 (struct tui_cmd_window) <can_scroll>: New method.
3792 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
3793 method.
3794
381befee
TT
37952019-07-17 Tom Tromey <tromey@adacore.com>
3796
3797 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
3798 do_field_signed>: Rename. Change type of "value".
3799 * ui-out.c (ui_out::field_signed): Rename from field_int.
3800 Change type of "value".
3801 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
3802 type of "value".
3803 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
3804 do_field_int. Change type of "value".
3805 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
3806 do_field_int. Change type of "value".
3807 * tracepoint.c (trace_status_mi, tfind_1)
3808 (print_one_static_tracepoint_marker): Update.
3809 * thread.c (print_thread_info_1, print_selected_thread_frame):
3810 Update.
3811 * stack.c (print_frame, print_frame_info): Update.
3812 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
3813 Update.
3814 * source.c (print_source_lines_base): Update.
3815 * skip.c (info_skip_command): Update.
3816 * record-btrace.c (btrace_ui_out_decode_error)
3817 (btrace_call_history_src_line): Update.
3818 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
3819 Update.
3820 * progspace.c (print_program_space): Update.
3821 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
3822 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
3823 do_field_int. Change type of "value".
3824 * mi/mi-out.c (mi_ui_out::do_table_begin)
3825 (mi_ui_out::do_table_header): Update.
3826 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
3827 type of "value".
3828 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
3829 (mi_cmd_data_list_changed_registers, output_register)
3830 (mi_cmd_data_read_memory, mi_load_progress)
3831 (mi_cmd_trace_frame_collected): Update.
3832 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
3833 Update.
3834 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3835 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
3836 (mi_cmd_var_list_children, varobj_update_one): Update.
3837 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
3838 (mi_cmd_stack_list_args, list_arg_or_local): Update.
3839 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
3840 * inferior.c (print_inferior): Update.
3841 * gdb_bfd.c (print_one_bfd): Update.
3842 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3843 Update.
3844 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
3845 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
3846 do_field_int. Change type of "value".
3847 * cli-out.c (cli_ui_out::do_field_signed): Rename from
3848 do_field_int. Change type of "value".
3849 * breakpoint.c (watchpoint_check, print_breakpoint_location)
3850 (print_one_breakpoint_location, print_it_catch_fork)
3851 (print_one_catch_fork, print_it_catch_vfork)
3852 (print_one_catch_vfork, print_it_catch_solib)
3853 (print_it_catch_exec, print_it_ranged_breakpoint)
3854 (print_mention_watchpoint, print_mention_masked_watchpoint)
3855 (bkpt_print_it, update_static_tracepoint): Update.
3856 * break-catch-throw.c (print_it_exception_catchpoint): Update.
3857 * break-catch-syscall.c (print_it_catch_syscall): Update.
3858 * ada-tasks.c (print_ada_task_info): Update.
3859 * ada-lang.c (print_it_exception, print_mention_exception):
3860 Update.
3861
6b78c3f8
AB
38622019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3863
3864 PR breakpoints/24541
3865 * gdbarch.c: Regenerate.
3866 * gdbarch.h: Regenerate.
3867 * gdbarch.sh: Adjust return type and parameter types for
3868 'stap_adjust_register'.
3869 (i386_stap_adjust_register): Adjust signature and return new
3870 register name.
3871 * stap-probe.c (stap_parse_register_operand): Adjust use of
3872 'gdbarch_stap_adjust_register'.
3873
d72a9b85
TT
38742019-07-17 Tom Tromey <tromey@adacore.com>
3875
3876 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
3877 declare VEC.
3878 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
3879 std::vector.
3880 (struct s390_process_info): Add initializers.
3881 (s390_add_process): Use new.
3882 (s390_linux_nat_target::low_forget_process): Use delete.
3883 (s390_linux_nat_target::low_new_fork)
3884 (s390_linux_nat_target::stopped_by_watchpoint)
3885 (s390_linux_nat_target::low_prepare_to_resume)
3886 (s390_linux_nat_target::insert_watchpoint)
3887 (s390_linux_nat_target::insert_hw_breakpoint)
3888 (s390_linux_nat_target::remove_watchpoint)
3889 (s390_linux_nat_target::remove_hw_breakpoint): Update.
3890
206e6c58
JB
38912019-07-16 John Baldwin <jhb@FreeBSD.org>
3892
3893 * aarch64-fbsd-nat.c: Include regcache.h.
3894 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
3895 argument.
3896 (aarch64_fbsd_nat_target::fetch_registers)
3897 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
3898 variable.
3899 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
3900
cbde90f2
JB
39012019-07-16 John Baldwin <jhb@FreeBSD.org>
3902
3903 * fbsd-nat.c: Include gdbarch.h.
3904
07128006
TT
39052019-07-15 Tom Tromey <tromey@adacore.com>
3906
3907 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
3908
1f77b012
TT
39092019-07-15 Tom Tromey <tromey@adacore.com>
3910
3911 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
3912 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
3913 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
3914 * cli-out.c (cli_ui_out::do_field_int): New method.
3915 * ui-out.c (ui_out::field_unsigned): New method.
3916 * symfile.c (generic_load): Use field_unsigned.
3917 (print_transfer_performance): Likewise.
3918 * record-btrace.c (ui_out_field_uint): Remove.
3919 (btrace_call_history_insn_range, btrace_call_history): Use
3920 field_unsigned.
3921 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3922 field_unsigned.
3923 * ui-out.h (class ui_out) <field_unsigned>: New method.
3924 <do_field_unsigned>: Likewise.
3925
33eca680
TT
39262019-07-15 Tom Tromey <tromey@adacore.com>
3927
3928 * mi/mi-main.c (list_available_thread_groups): Use field_string.
3929 * mi/mi-interp.c (mi_memory_changed): Use field_string.
3930 * target.c (flash_erase_command): Use field_string.
3931 * infrun.c (print_signal_received_reason): Use field_string.
3932 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
3933 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
3934 field_string.
3935 * ada-tasks.c (print_ada_task_info): Use field_string.
3936
ca8d69be
TT
39372019-07-15 Tom Tromey <tromey@adacore.com>
3938
3939 * target.c (flash_erase_command): Use field_core_addr.
3940 * symfile.c (generic_load): Use field_core_addr.
3941 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3942 Use field_core_addr.
3943 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
3944 field_core_addr.
3945
0d4e84ed
AB
39462019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3947
3948 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
3949 value if its desired type is smaller than a CORE_ADDR and signed.
3950
9a49df9d
AB
39512019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3952
3953 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
3954 of changes to field names, and use new is_reference field to
3955 decide if a property is a reference or not.
3956 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
3957 field.
3958 (struct dwarf2_property_baton): Update header comment, rename
3959 'referenced_type' to 'property_type' and update comments.
3960 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
3961 default property type, store in property baton, update to take
3962 accound of renamed field.
3963 (read_func_scope): Update call to attr_to_dynamic_prop.
3964 (read_array_type): Likewise.
3965 (dwarf2_per_cu_addr_sized_int_type): New function.
3966 (read_subrange_index_type): Move type finding code to
3967 dwarf2_per_cu_addr_sized_int_type.
3968 (read_subrange_type): Update calls to attr_to_dynamic_prop.
3969 (dwarf2_per_cu_addr_type): New function.
3970 (set_die_type): Update calls to attr_to_dynamic_prop.
3971
b86352cf
AB
39722019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3973
3974 * dwarf2read.c (read_subrange_index_type): New function.
3975 (read_subrange_type): Move code into new function and call it.
3976 * gdbtypes.c (create_range_type): Add some asserts.
3977
603490bf
AB
39782019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3979
3980 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
3981 update return statements.
3982 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
3983 declaration, and update comment to match.
3984 * gdbtypes.c (resolve_dynamic_array): Update call to
3985 dwarf2_evaluate_property to match new return type.
3986
592f9d27
AB
39872019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3988
3989 * valarith.c (value_subscripted_rvalue): Change lowerbound
3990 parameter type from int to LONGEST.
3991 * value.h (value_subscripted_rvalue): Likewise in declaration.
3992
60cfcb20
AB
39932019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3994
3995 * cli/cli-utils.c (info_print_command_completer): New function.
3996 * cli/cli-utils.h: Add 'completer.h' include, and forward
3997 declaration for 'struct cmd_list_element'.
3998 (info_print_command_completer): Declare.
3999 * stack.c (_initialize_stack): Add completer for 'info locals' and
4000 'info args'.
4001 * symtab.c (_initialize_symtab): Add completer for 'info
4002 variables' and 'info functions'.
4003 * NEWS: Mention completion for additional info commands.
4004
b16507e0
AB
40052019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4006
4007 * cli/cli-utils.c (extract_info_print_args): Delete.
4008 (extract_arg_maybe_quoted): Delete.
4009 (info_print_options_defs): New variable.
4010 (make_info_print_options_def_group): New function.
4011 (extract_info_print_options): Define new function.
4012 * cli/cli-utils.h (extract_info_print_args): Delete.
4013 (struct info_print_options): New structure.
4014 (extract_info_print_options): Declare new function.
4015 * stack.c (info_locals_command): Update to use new
4016 extract_info_print_options, also add a header comment.
4017 (info_args_command): Likewise.
4018 * symtab.c (info_variables_command): Likewise.
4019 (info_functions_command): Likewise.
4020
021d8588
AB
40212019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4022
4023 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
4024 to extract string arguments.
4025 * common/common-utils.c (extract_string_maybe_quoted): New function.
4026 * common/common-utils.h (extract_string_maybe_quoted): Declare.
4027
b777eb6d
TT
40282019-07-11 Tom Tromey <tromey@adacore.com>
4029
4030 * main.c (get_init_files): Use GDBINIT, not gdbinit.
4031 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
4032 * top.h (gdbinit): Don't declare.
4033 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
4034 into...
4035 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
4036 * top.c (gdb_init): Don't call init_cli_cmds.
4037 (gdbinit): Remove.
4038 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
4039
72ee03ff
TT
40402019-07-11 Tom Tromey <tromey@adacore.com>
4041
4042 * python/py-inferior.c (add_thread_object): Don't use thread_obj
4043 after it has been moved.
4044
00db9531
SM
40452019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4046
4047 * valops.c (value_must_coerce_to_target): Change return type to
4048 bool.
4049 * value.h (value_must_coerce_to_target): Likewise.
4050
f2478a7e
SM
40512019-07-10 Simon Marchi <simon.marchi@efficios.com>
4052
4053 * breakpoint.c (is_hardware_watchpoint): Remove
4054 forward-declaration.
4055 (is_masked_watchpoint): Change return type to bool.
4056 (is_tracepoint): Likewise.
4057 (is_breakpoint): Likewise.
4058 (is_hardware_watchpoint): Likewise.
4059 (is_watchpoint): Likewise.
4060 (is_no_memory_software_watchpoint): Likewise.
4061 (is_catchpoint): Likewise.
4062 (breakpoint_1): Make FILTER parameter's return type bool.
4063 is_masked_watchpoint): Change return type to bool.
4064 (save_breakpoints): Make FILTER parameter's return type bool.
4065 * breakpoint.h (is_breakpoint): Change return type to bool.
4066 (is_watchpoint): Likewise.
4067 (is_catchpoint): Likewise.
4068 (is_tracepoint): Likewise.
4069
0d12e84c
TT
40702019-07-10 Tom Tromey <tom@tromey.com>
4071
4072 * defs.h: Don't include gdbarch.h.
4073 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
4074 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
4075 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
4076 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
4077 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
4078 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
4079 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
4080 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
4081 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
4082 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
4083 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
4084 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
4085 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
4086 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
4087 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
4088 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
4089 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
4090 record-btrace.c, record.h, regcache-dump.c, regcache.h,
4091 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
4092 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
4093 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
4094 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
4095 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
4096 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
4097 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
4098 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
4099 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
4100
f06f1252
TT
41012019-07-10 Tom Tromey <tromey@adacore.com>
4102
4103 * ada-lang.h (is_ada_exception_catchpoint): Declare.
4104 * breakpoint.c (init_ada_exception_breakpoint): Register as
4105 bp_catchpoint.
4106 (print_one_breakpoint_location, print_one_breakpoint): Use
4107 is_ada_exception_catchpoint.
4108 * ada-lang.c (class ada_catchpoint_location): Pass
4109 bp_loc_software_breakpoint to bp_location constructor.
4110 (is_ada_exception_catchpoint): New function.
4111
7a5d944b
TT
41122019-07-10 Tom Tromey <tromey@adacore.com>
4113
4114 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
4115 VEC.
4116 (struct arm_exidx_entry): New method operator<.
4117 (struct arm_exidx_data) <section_maps>: Change type.
4118 (arm_exidx_data_free): Remove.
4119 (arm_exidx_data_key): Change type. Move lower.
4120 (arm_exidx_new_objfile): Update.
4121 (arm_compare_exidx_entries): Remove.
4122 (arm_find_exidx_entry, _initialize_arm_tdep)
4123
48c66e1d
TT
41242019-07-10 Tom Tromey <tromey@adacore.com>
4125
4126 * solib-spu.c (ocl_program_data_key): Change type.
4127 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
4128 Update.
4129
a269fbf1
TT
41302019-07-10 Tom Tromey <tromey@adacore.com>
4131
4132 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
4133 (struct solib_aix_inferior_data) <library_list>: Change type.
4134 (solib_aix_inferior_data_handle): Change type.
4135 (get_solib_aix_inferior_data): Update.
4136 (solib_aix_free_library_list): Remove.
4137 (library_list_start_library): Update.
4138 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
4139 return type.
4140 (solib_aix_get_library_list)
4141 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
4142 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
4143
c294730c
TT
41442019-07-10 Tom Tromey <tromey@adacore.com>
4145
4146 * solib-dsbt.c (struct dsbt_info): Add initializers.
4147 (solib_dsbt_pspace_data): Change type.
4148 (dsbt_pspace_data_cleanup): Remove.
4149 (get_dsbt_info, _initialize_dsbt_solib): Update.
4150
9d52077d
TT
41512019-07-10 Tom Tromey <tromey@adacore.com>
4152
4153 * spu-tdep.c (spu_overlay_data): Change type.
4154 (spu_get_overlay_table, spu_overlay_new_objfile)
4155 (_initialize_spu_tdep): Update.
4156
22a20dca
TT
41572019-07-10 Tom Tromey <tromey@adacore.com>
4158
4159 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
4160 destructor.
4161 (dbx_objfile_data_key): Change type and declare later.
4162 (DBX_SYMFILE_INFO): Rewrite.
4163 * dbxread.c (dbx_objfile_data_key): Change type.
4164 (dbx_symfile_init): Update.
4165 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
4166 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4167 (stabsect_build_psymtabs, _initialize_dbxread): Update.
4168
cb60f420
TT
41692019-07-10 Tom Tromey <tromey@adacore.com>
4170
4171 * jit.c (jit_program_space_key): Change type. Move lower.
4172 (get_jit_program_space_data): Update.
4173 (jit_program_space_data_cleanup): Remove.
4174 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
4175 Update.
4176 (struct jit_program_space_data): Add initializers.
4177
51df2ae3
TT
41782019-07-10 Tom Tromey <tromey@adacore.com>
4179
4180 * solib-darwin.c (struct darwin_info): Add initializers.
4181 (solib_darwin_pspace_data): Change type.
4182 (darwin_pspace_data_cleanup): Remove.
4183 (get_darwin_info, _initialize_darwin_solib): Update.
4184
18101a35
TT
41852019-07-10 Tom Tromey <tromey@adacore.com>
4186
4187 * remote-sim.c (struct sim_inferior_data): Add initializers,
4188 constructor, and destructor.
4189 (sim_inferior_data_key): Change type. Move lower.
4190 (check_for_duplicate_sim_descriptor): Update.
4191 (get_sim_inferior_data): Use new. Update.
4192 (~sim_inferior_data_cleanup): Rename from
4193 sim_inferior_data_cleanup. Simplify.
4194 (gdbsim_close_inferior, simulator_command)
4195 (sim_command_completer, _initialize_remote_sim): Update.
4196 (next_pid, INITIAL_PID): Move earlier.
4197
05b08ac1
TT
41982019-07-10 Tom Tromey <tromey@adacore.com>
4199
4200 * python/python-internal.h (create_thread_object): Return
4201 gdbpy_ref.
4202 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
4203 * python/py-inferior.c (struct threadlist_entry): Add
4204 constructor.
4205 <thread_obj>: Now a gdbpy_ref.
4206 (thread_to_thread_object): Update.
4207 (add_thread_object): Use new.
4208 (delete_thread_object): Use delete.
4209 (infpy_threads): Update.
4210 (py_free_inferior): Update. Construct "inf_obj" after acquiring
4211 GIL.
4212
32372d80
TT
42132019-07-10 Tom Tromey <tromey@adacore.com>
4214
4215 * valops.c (value_cast): Specialize error message for Ada.
4216
5c458ae8
SM
42172019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4218
4219 * breakpoint.c (breakpoint_1): Update doc and parameter names.
4220
4c462cb0
SM
42212019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4222
4223 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
4224 bpstat_should_step): Return bool, adjust comments.
4225 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
4226 bpstat_should_step): Likewise.
4227
89abbcc2
AH
42282019-07-10 Alan Hayward <alan.hayward@arm.com>
4229
4230 * features/Makefile: Use feature target descriptions for Arm.
4231 * features/arm/arm-core.c: Generate new file.
4232 * features/arm/arm-fpa.c: Likewise.
4233 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
4234 * features/arm/arm-m-profile.c: Likewise.
4235 * features/arm/arm-vfpv2.c: Likewise.
4236 * features/arm/arm-vfpv3.c: Likewise.
4237 * features/arm/xscale-iwmmxt.c: Likewise.
4238 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
4239
166a82be
AH
42402019-07-10 Alan Hayward <alan.hayward@arm.com>
4241
4242 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
4243 ptrace earlier.
4244
9fb4c7e9
AH
42452019-07-10 Alan Hayward <alan.hayward@arm.com>
4246
4247 * features/aarch64-pauth.c: Regenerate.
4248
e2d0f980
SM
42492019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
4250
4251 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
4252 bool.
4253 (bpstat_what): Use false instead of 0.
4254
a38118e5
PA
42552019-07-09 Pedro Alves <palves@redhat.com>
4256
4257 * break-catch-throw.c (is_exception_catchpoint): New.
4258 * breakpoint.c (print_one_breakpoint_location): New parameter
4259 'raw_loc'. Handle it. Use
4260 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
4261 looking at the breakpoint's type.
4262 (print_one_breakpoint): If handling "maint info breakpoints", also
4263 print locations of exception catchpoints.
4264 * breakpoint.h (is_exception_catchpoint): Declare.
4265
cb1e4e32
PA
42662019-07-09 Pedro Alves <palves@redhat.com>
4267
4268 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
4269 "addr" field.
4270 (allocate_location_exception_catchpoint): New.
4271 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
4272 (initialize_throw_catchpoint_ops): Install
4273 allocate_location_exception_catchpoint as allocate_location
4274 method.
4275 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
4276 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
4277 bp_loc_other.
4278 (breakpoint_address_is_meaningful): Delete.
4279 (bl_address_is_meaningful): New.
4280 (breakpoint_locations_match): Adjust comment.
4281 (bp_location_from_bp_type): New, factored out of...
4282 (bp_location::bp_location(breakpoint *)): ... this.
4283 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
4284 factored out of...
4285 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
4286 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
4287 breakpoint_address_is_meaningful.
4288 (bp_locations_compare): Adjust comment.
4289 (update_global_location_list): Use bl_address_is_meaningful
4290 instead of breakpoint_address_is_meaningful.
4291 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
4292 explicit.
4293 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
4294 * python/py-breakpoint.c (bppy_get_location): No longer check
4295 whether location is null.
4296
b58a68fe
PA
42972019-07-09 Pedro Alves <palves@redhat.com>
4298
4299 PR c++/15468
4300 * breakpoint.c (print_one_breakpoint_location): Remove
4301 single-location assert.
4302
268a13a5
TT
43032019-07-09 Tom Tromey <tom@tromey.com>
4304
4305 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
4306 * configure: Rebuild.
4307 * configure.ac: Change common to gdbsupport.
4308 * gdbsupport: Rename from common.
4309 * acinclude.m4: Change common to gdbsupport.
4310 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
4311 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
4312 gdbsupport.
4313 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
4314 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
4315 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
4316 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
4317 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
4318 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
4319 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
4320 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
4321 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
4322 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
4323 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
4324 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
4325 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
4326 coff-pe-read.c, command.h, compile/compile-c-support.c,
4327 compile/compile-c.h, compile/compile-cplus-symbols.c,
4328 compile/compile-cplus-types.c, compile/compile-cplus.h,
4329 compile/compile-loc2c.c, compile/compile.c, completer.c,
4330 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
4331 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
4332 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
4333 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
4334 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
4335 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
4336 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
4337 features/aarch64-core.c, features/aarch64-fpu.c,
4338 features/aarch64-pauth.c, features/aarch64-sve.c,
4339 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
4340 features/i386/32bit-core.c, features/i386/32bit-linux.c,
4341 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
4342 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
4343 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
4344 features/i386/64bit-core.c, features/i386/64bit-linux.c,
4345 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
4346 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
4347 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
4348 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
4349 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
4350 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
4351 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
4352 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
4353 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
4354 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
4355 go32-nat.c, guile/guile.c, guile/scm-ports.c,
4356 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
4357 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
4358 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
4359 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
4360 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
4361 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
4362 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
4363 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
4364 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
4365 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
4366 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
4367 minsyms.c, mips-linux-tdep.c, namespace.h,
4368 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
4369 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
4370 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
4371 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
4372 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
4373 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
4374 nat/linux-waitpid.c, nat/mips-linux-watch.c,
4375 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
4376 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
4377 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
4378 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
4379 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
4380 procfs.c, producer.c, progspace.h, psymtab.h,
4381 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
4382 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
4383 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
4384 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
4385 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
4386 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
4387 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
4388 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
4389 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
4390 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
4391 target-memory.c, target.c, target.h, target/waitstatus.c,
4392 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
4393 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
4394 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
4395 unittests/array-view-selftests.c,
4396 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
4397 unittests/common-utils-selftests.c,
4398 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
4399 unittests/format_pieces-selftests.c,
4400 unittests/function-view-selftests.c,
4401 unittests/lookup_name_info-selftests.c,
4402 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
4403 unittests/mkdir-recursive-selftests.c,
4404 unittests/observable-selftests.c,
4405 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
4406 unittests/parse-connection-spec-selftests.c,
4407 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
4408 unittests/scoped_fd-selftests.c,
4409 unittests/scoped_mmap-selftests.c,
4410 unittests/scoped_restore-selftests.c,
4411 unittests/string_view-selftests.c, unittests/style-selftests.c,
4412 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
4413 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
4414 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
4415 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
4416 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
4417 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
4418
5b0e2db4
AB
44192019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4420
4421 * linespec.c (decode_digits_list_mode): Set explicit_line to a
4422 bool value.
4423 (decode_digits_ordinary): Set explicit_line field in sal.
4424 * symtab.c (skip_prologue_sal): Don't skip prologue for a
4425 symtab_and_line that was set on an explicit line number in
4426 assembler code. Do always update the recorded symtab and line if
4427 we do skip the prologue.
4428
0ba852ab
AB
44292019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4430
4431 * breakpoint.c (set_breakpoint_location_function): Remove
4432 explicit_loc parameter.
4433 (momentary_breakpoint_from_master): Update call to
4434 set_breakpoint_location_function.
4435 (add_location_to_breakpoint): Likewise.
4436
b3a7d171
AB
44372019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4438
4439 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
4440 required features based on default bfd type when no specific bfd
4441 is present.
4442
1f6f6e21
PW
44432019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4444
4445 * NEWS: Mention that GDB printf and eval commands can now print
4446 C-style and Ada-style convenience var strings without
4447 calling the inferior.
4448 * printcmd.c (printf_c_string): Locally print GDB internal var
4449 instead of transiting via the inferior.
4450 (printf_wide_c_string): Likewise.
4451
44522019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
4453
4454 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
4455
0598af48
TT
44562019-07-04 Tom Tromey <tom@tromey.com>
4457
4458 PR tui/24724:
4459 * tui/tui-winsource.c (tui_clear_source_content): Update.
4460 (tui_source_window_base::set_is_exec_point_at): Fix comment.
4461 (tui_update_breakpoint_info): Update.
4462 (tui_set_exec_info_content): Update.
4463 * tui/tui-source.c (tui_set_source_content_nil): Update.
4464 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
4465 has_break.
4466 * tui/tui-data.h (enum tui_bp_flag): New.
4467 (tui_bp_flags): New enum flags type.
4468 (struct tui_source_element) <break_mode>: Change type. Rename
4469 from has_break.
4470 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
4471 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
4472 constants.
4473 * tui/tui-winsource.h: Fix comment.
4474
350fab54
AH
44752019-07-04 Alan Hayward <alan.hayward@arm.com>
4476
4477 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
4478 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
4479 (store_fpregs_to_thread)
4480 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4481 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
4482 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
4483 (IWMMXT_REGS_SIZE): Add define.
4484 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
4485 (fetch_vfp_regs, store_vfp_regs)
4486 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4487 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
4488
f0452268
AH
44892019-07-04 Alan Hayward <alan.hayward@arm.com>
4490
4491 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
4492 defines.
4493 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
4494 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
4495 (ARM_INT_REGISTER_SIZE): ...to this.
4496 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
4497 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
4498 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
4499 (arm_linux_collect_gregset, supply_nwfpe_register)
4500 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
4501 defines.
4502 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
4503 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
4504 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
4505 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
4506 (arm_return_in_memory, arm_store_return_value)
4507 (arm_get_longjmp_target, arm_register_g_packet_guesses)
4508 (arm_record_ld_st_multiple): Likewise.
4509 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
4510 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
4511
e935475c
AH
45122019-07-04 Alan Hayward <alan.hayward@arm.com>
4513
4514 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
4515 AARCH64_DISPLACED_MODIFIED_INSNS.
4516 * aarch64-tdep.c (struct aarch64_displaced_step_data)
4517 (aarch64_displaced_step_copy_insn): Likewise.
4518 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4519 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
4520 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
4521 ARM_DISPLACED_MODIFIED_INSNS.
4522 * arm-tdep.c (arm_gdbarch_init): Likewise.
4523 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4524 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
4525 (struct arm_displaced_step_closure): Use
4526 ARM_DISPLACED_MODIFIED_INSNS.
4527
df0bb381
AH
45282019-07-04 Alan Hayward <alan.hayward@arm.com>
4529
4530 * features/Makefile: Remove unused xml files.
4531 * features/aarch64.xml: Remove.
4532 * features/i386/amd64-avx-avx512-linux.xml: Remove.
4533 * features/i386/amd64-avx-avx512.xml: Remove.
4534 * features/i386/amd64-avx-linux.xml: Remove.
4535 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
4536 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
4537 * features/i386/amd64-avx-mpx-linux.xml: Remove.
4538 * features/i386/amd64-avx-mpx.xml: Remove.
4539 * features/i386/amd64-avx.xml: Remove.
4540 * features/i386/amd64-linux.xml: Remove.
4541 * features/i386/amd64-mpx-linux.xml: Remove.
4542 * features/i386/amd64-mpx.xml: Remove.
4543 * features/i386/amd64.xml: Remove.
4544 * features/i386/i386-avx-avx512-linux.xml: Remove.
4545 * features/i386/i386-avx-avx512.xml: Remove.
4546 * features/i386/i386-avx-linux.xml: Remove.
4547 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
4548 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
4549 * features/i386/i386-avx-mpx-linux.xml: Remove.
4550 * features/i386/i386-avx-mpx.xml: Remove.
4551 * features/i386/i386-avx.xml: Remove.
4552 * features/i386/i386-linux.xml: Remove.
4553 * features/i386/i386-mmx-linux.xml: Remove.
4554 * features/i386/i386-mmx.xml: Remove.
4555 * features/i386/i386-mpx-linux.xml: Remove.
4556 * features/i386/i386-mpx.xml: Remove.
4557 * features/i386/i386.xml: Remove.
4558 * features/i386/x32-avx-avx512-linux.xml: Remove.
4559 * features/i386/x32-avx-linux.xml: Remove.
4560 * features/i386/x32-linux.xml: Remove.
4561
edd6266a
AH
45622019-07-04 Alan Hayward <alan.hayward@arm.com>
4563
4564 * regformats/aarch64.dat: Remove.
4565 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
4566 * regformats/i386/amd64-avx-linux.dat: Remove.
4567 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
4568 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
4569 * regformats/i386/amd64-linux.dat: Remove.
4570 * regformats/i386/amd64-mpx-linux.dat: Remove.
4571 * regformats/i386/amd64.dat: Remove.
4572 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
4573 * regformats/i386/i386-avx-linux.dat: Remove.
4574 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
4575 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
4576 * regformats/i386/i386-linux.dat: Remove.
4577 * regformats/i386/i386-mmx-linux.dat: Remove.
4578 * regformats/i386/i386-mpx-linux.dat: Remove.
4579 * regformats/i386/i386.dat: Remove.
4580 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
4581 * regformats/i386/x32-avx-linux.dat: Remove.
4582 * regformats/i386/x32-linux.dat: Remove.
4583
2b40fda7
AH
45842019-07-04 Alan Hayward <alan.hayward@arm.com>
4585
4586 * aarch64-tdep.c: Remove xml self tests.
4587 * amd64-linux-tdep.c: Likewise.
4588 * amd64-tdep.c: Likewise.
4589 * i386-linux-tdep.c: Likewise.
4590 * i386-tdep.c: Likewise.
4591
5f4ba3e7
PA
45922019-07-03 Pedro Alves <palves@redhat.com>
4593
4594 PR cli/24732
4595 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
4596 (pipe_cmd_option_defs): New.
4597 (make_pipe_cmd_options_def_group): New.
4598 (pipe_command): Use gdb::option::process_options.
4599 (pipe_command_completer): New function.
4600 (_initialize_cli_cmds): Install completer for "pipe" command.
4601
3d9be6f5
PA
46022019-07-03 Pedro Alves <palves@redhat.com>
4603
4604 * cli/cli-option.c (union option_value) <string>: New field.
4605 (struct option_def_and_value): Add ctor, move ctor, dtor and
4606 use DISABLE_COPY_AND_ASSIGN.
4607 (option_def_and_value::clear_value): New.
4608 (parse_option, save_option_value_in_ctx, get_val_type_str)
4609 (add_setshow_cmds_for_options): Handle var_string.
4610 * cli-option.h (union option_def::var_address) <string>: New
4611 field.
4612 (struct string_option_def): New.
4613 * maint-test-options.c (struct test_options_opts): Add default
4614 ctor and use DISABLE_COPY_AND_ASSIGN.
4615 <string_opt>: New field.
4616 (test_options_opts::~test_options_opts): New.
4617 (test_options_opts::dump): Also dump "-string".
4618 (test_options_option_defs): Install "string.
4619
41fc454c
PA
46202019-07-03 Pedro Alves <palves@redhat.com>
4621
4622 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
4623 option_value with a null enumeration.
4624 (complete_options): Save the option values in the context.
4625 (save_option_value_in_ctx): New, factored out from ...
4626 (process_options): ... here.
4627 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
4628 of the function.
4629 * maint-test-options.c (test_options_opts::dump): New, factored
4630 out from ...
4631 (maintenance_test_options_command_mode): ... here.
4632 (maintenance_test_options_command_completion_result): Delete.
4633 (maintenance_test_options_command_completion_text): Update
4634 comment.
4635 (maintenance_show_test_options_completion_result): Change
4636 prototype. Just print
4637 maintenance_test_options_command_completion_text.
4638 (save_completion_result): New.
4639 (maintenance_test_options_completer_mode): Pass options context to
4640 complete_options, and then save a dump.
4641 (_initialize_maint_test_options): Use add_cmd to install "maint
4642 show test-options-completion-result".
4643
fdbc9870
PA
46442019-07-03 Pedro Alves <palves@redhat.com>
4645
4646 * NEWS (New commands): Mention "with" and "maint with".
4647 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
4648 (with_command, with_command_completer): New.
4649 (pipe_command): Adjust to new repeat_previous
4650 interface.
4651 (_initialize_cli_cmds): Install the "with" command and its "w"
4652 alias.
4653 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
4654 declarations.
4655 * cli/cli-setshow.c (parse_cli_var_uinteger)
4656 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
4657 argument strings for all var_types.
4658 (get_setshow_command_value_string): New, factored out from ...
4659 (do_show_command): ... this.
4660 * cli/cli-setshow.h: Include <string>.
4661 (get_setshow_command_value_string): Declare.
4662 * command.h (repeat_previous): Now returns const char *. Adjust
4663 comment.
4664 * maint.c: Include "cli/cli-cmds.h".
4665 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
4666 (_initialize_maint_cmds): Register the "maintenance with" command.
4667 * top.c (repeat_previous): Move bits from pipe_command here:
4668 Return the saved command line, if any; error out if there's no
4669 command to relaunch.
4670
c6ac8931
PA
46712019-07-03 Pedro Alves <palves@redhat.com>
4672
4673 * NEWS (New commands): Mention "maint set/show test-settings"
4674 instead of "maint test-settings".
4675 * maint-test-settings.c (maintenance_test_settings_list): Delete.
4676 (maintenance_test_settings_set_list): Rename to ...
4677 (maintenance_set_test_settings_list): ... this.
4678 (maintenance_test_settings_show_list): Rename to ...
4679 (maintenance_show_test_settings_list): ... this.
4680 (maintenance_test_settings_cmd): Delete.
4681 (maintenance_test_settings_set_cmd): ...
4682 (maintenance_set_test_settings_cmd): ... this.
4683 (maintenance_test_settings_show_cmd): ...
4684 (maintenance_show_test_settings_cmd): ... this.
4685 (maintenance_test_settings_show_value_cmd):
4686 (maintenance_show_test_settings_value_cmd): ... this.
4687 (_initialize_maint_test_settings): No longer install the "maint
4688 test-settings" prefix command. Rename "maint test-settings set"
4689 to "maint set test-settings", and "maint test-settings show" to
4690 "maint show test-settings". Adjust all subcommands.
4691
d1fcf2fd
PA
46922019-07-03 Pedro Alves <palves@redhat.com>
4693
4694 * maint-test-settings.c: Fix file's intro comment. Replace all
4695 references to "test-options" with references to "test-settings",
4696 in comments.
4697
970f9d09
PA
46982019-07-03 Pedro Alves <palves@redhat.com>
4699
4700 * maint-test-settings.c (maintenance_test_settings_xxx)
4701 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
4702 New.
4703 (maintenance_test_settings_enums): Use them.
4704 (maintenance_test_settings_enum): Default to
4705 maintenance_test_settings_xxx.
4706 (_initialize_maint_test_settings): Initialize
4707 MAINTENANCE_TEST_SETTINGS_FILENAME.
4708
f3869b1a
SM
47092019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4710
4711 * breakpoint.h (remove_breakpoints_inf): Change return type to
4712 void, move function documentation here.
4713 * breakpoint.c (remove_breakpoints_inf): Change return type to
4714 void, move function documentation to header.
4715
54d66006
PA
47162019-07-02 Pedro Alves <palves@redhat.com>
4717
4718 * NEWS (Completion improvements): Mention "info threads".
4719 * thread.c (struct info_threads_opts, info_threads_option_defs)
4720 (make_info_threads_options_def_group): New.
4721 (info_threads_command): Use gdb::option::process_options.
4722 (info_threads_command_completer): New.
4723 (_initialize_thread): Use gdb::option::build_help to build the
4724 help text for "info threads".
4725
854f6088
SM
47262019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4727
4728 * defs.h (generic_load): Move from here...
4729 * symfile.h (generic_load): ... to here. Rename name parameter
4730 to args.
4731 * symfile.c (generic_load): Add comment.
4732
54ee4252
TT
47332019-07-01 Tom Tromey <tromey@adacore.com>
4734
4735 * dwarf2read.c
4736 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
4737 declaration of without_params. Fix formatting.
4738
65392b3e
TT
47392019-07-01 Tom Tromey <tromey@adacore.com>
4740
4741 * ada-exp.y (find_primitive_type): Update.
4742 * ada-lang.h (ada_lookup_symbol): Update.
4743 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
4744 parameter.
4745 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
4746
7d7571f0
SDJ
47472019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4748
4749 PR breakpoints/24541
4750 * gdbarch.c: Regenerate.
4751 * gdbarch.h: Regenerate.
4752 * gdbarch.sh: Add 'stap_adjust_register'.
4753 * i386-tdep.c: Include '<unordered_set>'.
4754 (i386_stap_adjust_register): New function.
4755 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
4756 * stap-probe.c (stap_parse_register_operand): Call
4757 'gdbarch_stap_adjust_register'.
4758
5af5392a
SDJ
47592019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4760
4761 PR python/24742
4762 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
4763 * python/python.c (do_start_initialization): Use 'xmalloc'
4764 instead of 'PyMem_Malloc'.
4765
10d06d82
TT
47662019-06-28 Tom Tromey <tromey@adacore.com>
4767
4768 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
4769 for Ada.
4770
1b7f24cd
TT
47712019-06-27 Tom Tromey <tromey@adacore.com>
4772
4773 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
4774 objfile_key.
4775 (arm_find_mapping_symbol, arm_record_special_symbol)
4776 (_initialize_arm_tdep): Update.
4777 (arm_objfile_data_free): Remove.
4778
3d507ff2
TT
47792019-06-27 Tom Tromey <tromey@adacore.com>
4780
4781 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
4782 to cp_print_static_field.
4783
762c164d
TT
47842019-06-26 Tom Tromey <tromey@adacore.com>
4785
4786 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
4787 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
4788 declare.
4789
aa2f9bcf
AH
47902019-06-26 Alan Hayward <alan.hayward@arm.com>
4791
4792 * features/aarch64-core.c (create_feature_aarch64_core):
4793 Regenerate.
4794 * features/aarch64-core.xml: Add cpsr flags.
4795
3426ae57
AH
47962019-06-26 Alan Hayward <alan.hayward@arm.com>
4797
4798 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
4799 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
4800
4838e44c
SM
48012019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4802
4803 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
4804 field.
4805 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
4806 use.
4807 (arm_record_special_symbol): Don't insert new symbol in sorted
4808 position, push it at the end.
4809
54cc7474
SM
48102019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4811
4812 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
4813 (arm_mapping_symbol_s): Remove.
4814 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
4815 (arm_mapping_symbol_vec): New typedef.
4816 (struct arm_per_objfile): Add constructor.
4817 <section_maps>: Change type to
4818 std::unique_ptr<arm_mapping_symbol_vec[]>.
4819 (arm_compare_mapping_symbols): Remove.
4820 (arm_find_mapping_symbol): Adjust to section_maps type change.
4821 (arm_objfile_data_free): Call delete on arm_per_objfile.
4822 (arm_record_special_symbol): Adjust to section_maps type change.
4823 Allocate arm_per_objfile with new.
4824
b65b566c
PW
48252019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4826
4827 * cli/cli-cmds.c (alias_command): Compare the alias prefix
4828 with the command prefix.
4829
c2fc64f5
TT
48302019-06-25 Tom Tromey <tom@tromey.com>
4831
4832 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
4833 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
4834
fb54fa76
TT
48352019-06-25 Tom Tromey <tom@tromey.com>
4836
4837 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
4838 type.
4839 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
4840 protected.
4841
f7952c57
TT
48422019-06-25 Tom Tromey <tom@tromey.com>
4843
4844 * tui/tui-winsource.c
4845 (tui_source_window_base::set_is_exec_point_at): Add check against
4846 LOA_ADDRESS.
4847
17568d78
TT
48482019-06-25 Tom Tromey <tom@tromey.com>
4849
4850 * tui/tui-source.c (tui_set_source_content): Don't check before
4851 xfree.
4852 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
4853
53e7cdba
TT
48542019-06-25 Tom Tromey <tom@tromey.com>
4855
4856 * tui/tui-winsource.h (tui_update_source_window_as_is)
4857 (tui_alloc_source_buffer, tui_line_is_displayed)
4858 (tui_addr_is_displayed): Change type of win_info.
4859 * tui/tui-winsource.c (tui_update_source_window_as_is)
4860 (tui_clear_source_content, tui_show_source_line)
4861 (tui_show_source_content, tui_source_window_base::refill)
4862 (tui_source_window_base::set_is_exec_point_at)
4863 (tui_source_window_base::set_is_exec_point_at)
4864 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
4865 (tui_alloc_source_buffer, tui_line_is_displayed)
4866 (tui_addr_is_displayed): Change type of win_info. Update.
4867 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4868 (tui_source_window_base::do_make_visible_with_new_height):
4869 Update.
4870 * tui/tui-source.c (tui_set_source_content)
4871 (tui_set_source_content_nil)
4872 (tui_source_window::do_scroll_vertical): Update.
4873 * tui/tui-layout.c (show_layout): Update.
4874 * tui/tui-disasm.c (tui_set_disassem_content)
4875 (tui_disasm_window::do_scroll_vertical): Update.
4876 * tui/tui-data.h (tui_win_content): Remove.
4877 (struct tui_gen_win_info) <content, content_size>: Remove.
4878 (struct tui_source_element): Add initializers and destructor.
4879 (union tui_which_element, struct tui_win_element): Remove.
4880 (struct tui_source_window_base) <content>: New field.
4881 (struct tui_data_window): Remove destructor.
4882 (tui_alloc_content, tui_free_win_content)
4883 (tui_free_all_source_wins_content): Don't declare.
4884 * tui/tui-data.c (tui_initialize_static_data): Update.
4885 (init_content_element, tui_alloc_content): Remove.
4886 (~tui_gen_win_info): Update.
4887 (~tui_data_window, tui_free_all_source_wins_content)
4888 (tui_free_win_content, free_content, free_content_elements):
4889 Remove.
4890
7908abbf
TT
48912019-06-25 Tom Tromey <tom@tromey.com>
4892
4893 * tui/tui-winsource.h (tui_clear_source_content)
4894 (tui_erase_source_content, tui_show_source_content): Change type
4895 of win_info.
4896 * tui/tui-winsource.c (tui_clear_source_content)
4897 (tui_erase_source_content, tui_show_source_content): Change type
4898 of win_info.
4899 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4900 * tui/tui-source.h (tui_set_source_content_nil): Change type of
4901 win_info.
4902 * tui/tui-source.c (tui_set_source_content_nil): Change type of
4903 win_info.
4904 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
4905
02c28df0
TT
49062019-06-25 Tom Tromey <tom@tromey.com>
4907
4908 * tui/tui-winsource.c (tui_clear_source_content)
4909 (tui_source_window_base::set_is_exec_point_at): Update.
4910 * tui/tui-source.c (tui_set_source_content_nil): Update.
4911 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
4912 a bool.
4913 * tui/tui-data.c (init_content_element): Update.
4914
6658b1bf
TT
49152019-06-25 Tom Tromey <tom@tromey.com>
4916
4917 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
4918 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
4919 * tui/tui-layout.c (init_and_make_win): Update.
4920 * tui/tui.h (enum tui_win_type): Update.
4921 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
4922 tui_win_is_auxillary.
4923 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
4924 tui_win_is_auxillary.
4925
21e1c91e
TT
49262019-06-25 Tom Tromey <tom@tromey.com>
4927
4928 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
4929 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
4930 (tui_delete_data_content_windows, tui_display_all_data)
4931 (tui_data_window::do_scroll_vertical, tui_display_data_from):
4932 Update.
4933 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
4934 * tui/tui-regs.c (tui_last_regs_line_no)
4935 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4936 (tui_show_registers): Update.
4937 (tui_show_register_group): Return void. Update.
4938 (tui_display_registers_from, tui_display_reg_element_at_line)
4939 (tui_display_registers_from_line, tui_check_register_values):
4940 Update.
4941 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
4942 member.
4943 (struct tui_data_window) <regs_content>: Now a std::vector.
4944 <regs_content_count>: Remove.
4945 (tui_add_content_elements, tui_free_data_content): Don't declare.
4946 * tui/tui-data.c (tui_data_window::clear_detail): Update.
4947 (init_content_element): Remove DATA_WIN case. Add assert.
4948 (tui_add_content_elements): Remove.
4949 (tui_data_window): Update.
4950 (tui_free_data_content): Remove.
4951 (free_content_elements): Remove DATA_WIN case.
4952
115ac53b
TT
49532019-06-25 Tom Tromey <tom@tromey.com>
4954
4955 * tui/tui-data.c (tui_data_item_window): Update.
4956 * tui/tui-windata.h (tui_check_data_values): Don't declare.
4957 * tui/tui-windata.c (tui_display_all_data)
4958 (tui_display_data_from_line): Update.
4959 (tui_check_data_values): Remove.
4960 * tui/tui-regs.c (tui_show_register_group)
4961 (tui_display_reg_element_at_line): Update.
4962 * tui/tui-hooks.c (tui_register_changed)
4963 (tui_refresh_frame_and_register_information): Call
4964 tui_check_register_values.
4965 * tui/tui-data.h (struct tui_data_window) <data_content,
4966 data_content_count, data_type>: Remove.
4967 (enum tui_data_type): Remove.
4968
4969 * tui/tui-data.c (tui_data_window::clear_detail)
4970 (~tui_data_window): Update.
4971
eaf9738b
TT
49722019-06-25 Tom Tromey <tom@tromey.com>
4973
4974 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
4975 declare.
4976 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
4977 Rename from tui_first_data_item_displayed. Update.
4978 (tui_data_window::refresh_all)
4979 (tui_data_window::do_scroll_vertical): Update.
4980 * tui/tui-data.h (struct tui_data_window)
4981 <first_data_item_displayed>: Declare new method.
4982
31ca4723
TT
49832019-06-25 Tom Tromey <tom@tromey.com>
4984
4985 * tui/tui-data.h (tui_init_generic_part): Don't declare.
4986 * tui/tui-data.c (tui_init_generic_part): Remove, moving
4987 contents...
4988 (tui_initialize_static_data): ...here.
4989
41bcff7f
TT
49902019-06-25 Tom Tromey <tom@tromey.com>
4991
4992 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4993 (tui_display_registers_from, tui_check_register_values): Update.
4994 (tui_display_register): Remove win_info parameter; update.
4995 (tui_get_register): Change type of parameters.
4996 * tui/tui-data.h (struct tui_data_element): Remove.
4997 (union tui_which_element) <data>: Remove.
4998 <data_window>: Change type.
4999 (struct tui_data_item_window): New.
5000 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
5001 case. Add assert.
5002 (~tui_data_item_window): New destructor.
5003 (free_content_elements): Remove DATA_ITEM_WIN case.
5004
d2802c33
TT
50052019-06-25 Tom Tromey <tom@tromey.com>
5006
5007 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
5008 Remove.
5009
dd835f8b
TT
50102019-06-25 Tom Tromey <tom@tromey.com>
5011
5012 * tui/tui-data.h (struct tui_command_element): Remove.
5013 (union tui_which_element) <command>: Remove.
5014 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
5015 assert.
5016 (free_content_elements): Remove CMD_WIN case.
5017
bd7db367
TT
50182019-06-25 Tom Tromey <tom@tromey.com>
5019
5020 * tui/tui-layout.c (tui_set_layout): Update.
5021 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
5022 * tui/tui-data.c (layout_def): Update.
5023
3add462f
TT
50242019-06-25 Tom Tromey <tom@tromey.com>
5025
5026 * tui/tui-wingeneral.c (tui_refresh_all): Update.
5027 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5028 (tui_source_window_base::set_new_height): Update.
5029 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
5030 Update.
5031 (tui_set_locator_fullname, tui_set_locator_info)
5032 (tui_show_frame_info): Update.
5033 * tui/tui-source.c (tui_set_source_content)
5034 (tui_source_is_displayed): Update.
5035 * tui/tui-layout.c (show_source_disasm_command, show_data)
5036 (show_source_or_disasm_and_command): Update.
5037 * tui/tui-disasm.c (tui_set_disassem_content)
5038 (tui_get_begin_asm_address): Update.
5039 * tui/tui-data.h (struct tui_locator_element): Remove.
5040 (union tui_which_element) <locator>: Remove.
5041 (struct tui_locator_window): New.
5042 (tui_locator_win_info_ptr): Change return type.
5043 * tui/tui-data.c (_locator): Change type.
5044 (tui_locator_win_info_ptr): Change return type.
5045 (init_content_element): Remove LOCATOR_WIN case. Add assert.
5046 (tui_alloc_content): Add assert.
5047
489e9d8b
TT
50482019-06-25 Tom Tromey <tom@tromey.com>
5049
5050 * tui/tui-winsource.c
5051 (tui_exec_info_window::maybe_allocate_content): New method.
5052 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
5053 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
5054 (make_source_or_disasm_window): Add cast.
5055 * tui/tui-data.h (union tui_which_element) <simple_string>:
5056 Remove.
5057 (struct tui_source_info): New.
5058 (struct tui_source_window_base) <execution_info>: Change type.
5059 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
5060 case, and add assert.
5061 (tui_alloc_content): Add assert.
5062
c3fabb7d
TT
50632019-06-25 Tom Tromey <tom@tromey.com>
5064
5065 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
5066 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
5067 * tui/tui-data.c (tui_alloc_win_info): Remove.
5068
bbc228ee
TT
50692019-06-25 Tom Tromey <tom@tromey.com>
5070
5071 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
5072 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
5073 can_highlight.
5074
5fcee43a
TT
50752019-06-25 Tom Tromey <tom@tromey.com>
5076
5077 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
5078 make_visible_with_new_height method.
5079 (tui_win_info::make_visible_with_new_height): New method.
5080 (tui_source_window_base::do_make_visible_with_new_height)
5081 (tui_data_window::do_make_visible_with_new_height)
5082 (tui_cmd_window::do_make_visible_with_new_height): New methods.
5083 (make_visible_with_new_height): Remove.
5084 (tui_resize_all, tui_adjust_win_heights): Use
5085 make_visible_with_new_height method.
5086 * tui/tui-data.h (struct tui_win_info)
5087 <do_make_visible_with_new_height, make_visible_with_new_height>:
5088 New methods.
5089 (struct tui_source_window_base, struct tui_data_window)
5090 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
5091 methods.
5092
d83f1fe6
TT
50932019-06-25 Tom Tromey <tom@tromey.com>
5094
5095 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
5096 method.
5097 (update_tab_width): Call update_tab_width method.
5098 * tui/tui-data.h (struct tui_win_info)
5099 (struct tui_source_window_base) <update_tab_width>: New methods.
5100
17374de4
TT
51012019-06-25 Tom Tromey <tom@tromey.com>
5102
5103 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
5104 parameter.
5105 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
5106 parameter.
5107 (tui_gen_win_info::make_visible): Update.
5108 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
5109 parameter.
5110 * tui/tui-data.h (enum tui_box): New enum.
5111 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
5112
f936bca2
TT
51132019-06-25 Tom Tromey <tom@tromey.com>
5114
5115 * tui/tui-layout.c (make_source_or_disasm_window): Always use
5116 init_and_make_win for EXEC_INFO_WIN.
5117 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
5118 longer inline.
5119 (struct tui_win_info) <~tui_win_info>: Inline.
5120 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5121 Don't declare.
5122 * tui/tui-data.c (source_win, disasm_win): Remove globals.
5123 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5124 Remove.
5125 (tui_initialize_static_data): Update.
5126 (~tui_gen_win_info): Handle more cleanup here.
5127 (~tui_source_window_base): Delete "execution_info".
5128 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
5129
d6ba6a11
TT
51302019-06-25 Tom Tromey <tom@tromey.com>
5131
5132 * tui/tui-layout.c (make_command_window): Don't set
5133 can_highlight.
5134 (show_source_disasm_command): Call the reset method.
5135 (show_data): Don't set can_highlight. Call the reset method.
5136 (tui_gen_win_info::reset): Rename from init_gen_win_info
5137 (init_and_make_win): Simplify. Return tui_gen_win_info.
5138 (show_source_or_disasm_and_command): Call the reset method.
5139 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
5140 (struct tui_cmd_window): Set can_highlight.
5141
48a3bd16
TT
51422019-06-25 Tom Tromey <tom@tromey.com>
5143
5144 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
5145 from make_visible.
5146 (tui_make_visible, tui_make_invisible): Rewrite.
5147 (tui_win_info::make_visible): Remove.
5148 (tui_source_window_base::make_visible): Update.
5149 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
5150 method. Moved from...
5151 (struct tui_win_info) <make_visible>: ...here.
5152
c3bd716f
TT
51532019-06-25 Tom Tromey <tom@tromey.com>
5154
5155 * tui/tui-winsource.c
5156 (tui_source_window_base::do_scroll_horizontal): Remove direction
5157 parameter.
5158 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
5159 direction parameter.
5160 * tui/tui-win.c (tui_win_info::forward_scroll)
5161 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5162 (tui_win_info::right_scroll): Update.
5163 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
5164 direction parameter.
5165 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
5166 direction parameter.
5167 * tui/tui-data.h (enum tui_scroll_direction): Remove.
5168 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
5169 Remove direction parameter.
5170 (struct tui_source_window_base, struct tui_source_window)
5171 (struct tui_disasm_window, struct tui_data_window)
5172 (struct tui_cmd_window): Update.
5173
21c32dca
TT
51742019-06-25 Tom Tromey <tom@tromey.com>
5175
5176 * tui/tui-winsource.h (tui_set_exec_info_content)
5177 (tui_show_exec_info_content, tui_erase_exec_info_content)
5178 (tui_clear_exec_info_content, tui_update_exec_info): Change
5179 argument to tui_source_window_base.
5180 * tui/tui-winsource.c (tui_set_exec_info_content)
5181 (tui_show_exec_info_content, tui_erase_exec_info_content)
5182 (tui_clear_exec_info_content, tui_update_exec_info): Change
5183 argument to tui_source_window_base.
5184
73fbdc65
TT
51852019-06-25 Tom Tromey <tom@tromey.com>
5186
5187 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
5188 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
5189
33325343
TT
51902019-06-25 Tom Tromey <tom@tromey.com>
5191
5192 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
5193 check.
5194
29d2c474
TT
51952019-06-25 Tom Tromey <tom@tromey.com>
5196
5197 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
5198 type to void.
5199 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
5200 type to void.
5201 * tui/tui-source.c (tui_set_source_content): Update.
5202 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5203
152f3f4b
TT
52042019-06-25 Tom Tromey <tom@tromey.com>
5205
5206 * tui/tui-win.c (window_name_completer, tui_set_focus)
5207 (tui_all_windows_info): Use name method.
5208 * tui/tui-data.h (struct tui_gen_win_info)
5209 (struct tui_source_window, struct tui_disasm_window)
5210 (struct tui_data_window, struct tui_cmd_window) <name>: New
5211 method.
5212 (tui_win_name): Don't declare.
5213 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
5214 (tui_win_name): Remove.
5215
be4da588
TT
52162019-06-25 Tom Tromey <tom@tromey.com>
5217
5218 * tui/tui-winsource.h (tui_update_source_window)
5219 (tui_update_source_window_as_is): Change parameter type.
5220 * tui/tui-winsource.c (tui_update_source_window): Change win_info
5221 to be a tui_source_window_base.
5222 (tui_update_source_window_as_is): Likewise.
5223 * tui/tui-win.c (make_visible_with_new_height): Update.
5224
5b81daba
TT
52252019-06-25 Tom Tromey <tom@tromey.com>
5226
5227 * tui/tui-winsource.c (tui_erase_source_content)
5228 (tui_show_source_content, tui_show_exec_info_content)
5229 (tui_erase_exec_info_content): Use refresh_window method.
5230 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
5231 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
5232 from tui_refresh_win.
5233 (tui_data_window::refresh_window): New method.
5234 (tui_win_info::refresh, tui_source_window_base::refresh)
5235 (tui_refresh_all): Use refresh_window method.
5236 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
5237 method.
5238 * tui/tui-regs.c (tui_display_register): Call refresh_window
5239 method.
5240 * tui/tui-layout.c (show_source_disasm_command)
5241 (show_source_or_disasm_and_command): Call refresh_window method.
5242 * tui/tui-data.h (struct tui_gen_win_info)
5243 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
5244 New method.
5245
cb2ce893
TT
52462019-06-25 Tom Tromey <tom@tromey.com>
5247
5248 * tui/tui.c (tui_rl_other_window, tui_enable)
5249 (tui_is_window_visible, tui_get_command_dimension): Update.
5250 * tui/tui-winsource.c (tui_update_source_window_as_is)
5251 (tui_clear_source_content, tui_erase_source_content)
5252 (tui_show_source_line, tui_source_window_base::refill)
5253 (tui_source_window_base::do_scroll_horizontal)
5254 (tui_source_window_base::set_is_exec_point_at)
5255 (tui_update_breakpoint_info, tui_set_exec_info_content)
5256 (tui_alloc_source_buffer, tui_line_is_displayed)
5257 (tui_addr_is_displayed): Update.
5258 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5259 (tui_check_and_display_highlight_if_needed)
5260 (tui_win_info::make_visible, tui_win_info::refresh)
5261 (tui_refresh_all): Update.
5262 * tui/tui-windata.c (tui_first_data_item_displayed)
5263 (tui_delete_data_content_windows, tui_erase_data_content)
5264 (tui_display_all_data, tui_data_window::refresh_all)
5265 (tui_check_data_values): Update.
5266 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
5267 (tui_set_win_focus_to, tui_win_info::forward_scroll)
5268 (tui_win_info::backward_scroll, tui_refresh_all_win)
5269 (tui_resize_all, tui_set_focus, tui_all_windows_info)
5270 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
5271 (tui_source_window_base::set_new_height)
5272 (tui_data_window::set_new_height)
5273 (make_invisible_and_set_new_height)
5274 (make_visible_with_new_height, new_height_ok)
5275 (parse_scrolling_args): Update.
5276 * tui/tui-stack.c (tui_show_frame_info): Update.
5277 * tui/tui-source.c (tui_set_source_content)
5278 (tui_set_source_content_nil, tui_source_is_displayed)
5279 (tui_source_window::do_scroll_vertical): Update.
5280 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5281 (tui_display_registers_from, tui_display_reg_element_at_line)
5282 (tui_check_register_values, tui_reg_command): Update.
5283 * tui/tui-layout.c (tui_default_win_height)
5284 (show_source_disasm_command, show_data, init_and_make_win)
5285 (show_source_or_disasm_and_command): Update.
5286 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
5287 (tui_redisplay_readline, tui_mld_flush)
5288 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
5289 (tui_getc): Update.
5290 * tui/tui-disasm.c (tui_set_disassem_content)
5291 (tui_disasm_window::do_scroll_vertical): Update.
5292 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
5293 Now virtual.
5294 (struct tui_win_info): Derive from tui_gen_win_info.
5295 <~tui_win_info>: Mark as override.
5296 <generic>: Remove member.
5297 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
5298 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
5299 (~tui_data_window, ~tui_win_info)
5300 (tui_free_all_source_wins_content): Update.
5301 * tui/tui-command.c (tui_refresh_cmd_win): Update.
5302
ab313b35
TT
53032019-06-25 Tom Tromey <tom@tromey.com>
5304
5305 * tui/tui-layout.c (init_and_make_win): Use new.
5306 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
5307 destructor, initializers.
5308 (tui_alloc_generic_win_info): Don't declare.
5309 * tui/tui-data.c (_locator): Add argument to constructor.
5310 (source_win, disasm_win): New globals.
5311 (exec_info): Remove.
5312 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5313 Update.
5314 (tui_alloc_generic_win_info): Remove.
5315 (init_content_element): Use new.
5316 (tui_win_info::tui_win_info): Update.
5317 (free_content_elements) <case DATA_WIN>: Use delete.
5318
dc2c33e4
TT
53192019-06-25 Tom Tromey <tom@tromey.com>
5320
5321 * tui/tui-wingeneral.c (tui_refresh_win): Update.
5322 * tui/tui-windata.c (tui_first_data_item_displayed)
5323 (tui_delete_data_content_windows): Update.
5324 * tui/tui-win.c (tui_data_window::set_new_height): Update.
5325 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5326 (tui_display_registers_from, tui_check_register_values): Update.
5327 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
5328 pointer.
5329 * tui/tui-data.c (init_content_element): Update. Allocate the new
5330 window.
5331 (tui_free_data_content): Update.
5332 (free_content_elements) <case DATA_WIN>: Free the window.
5333
214a5cbe
TT
53342019-06-25 Tom Tromey <tom@tromey.com>
5335
5336 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
5337 Update.
5338 * tui/tui-layout.c (make_command_window)
5339 (show_source_disasm_command, show_data, init_and_make_win)
5340 (show_source_or_disasm_and_command): Update.
5341 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
5342 method.
5343 <can_highight, is_highlighted>: Now bool.
5344 (tui_set_win_highlight): Don't declare.
5345 * tui/tui-data.c (tui_set_win_highlight): Remove.
5346
8e2daf15
TT
53472019-06-25 Tom Tromey <tom@tromey.com>
5348
5349 * tui/tui-wingeneral.c (make_visible): Remove check of window
5350 type.
5351
8903bd8a
TT
53522019-06-25 Tom Tromey <tom@tromey.com>
5353
5354 * tui/tui-win.c (tui_win_info::max_height)
5355 (tui_cmd_window::max_height): New methods.
5356 (new_height_ok): Call max_height.
5357 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
5358 <max_height>: New method.
5359
3f02ce1e
TT
53602019-06-25 Tom Tromey <tom@tromey.com>
5361
5362 * tui/tui-win.c (tui_source_window_base::set_new_height)
5363 (tui_data_window::set_new_height): New methods.
5364 (make_invisible_and_set_new_height): Call set_new_height method.
5365 * tui/tui-data.h (struct tui_win_info)
5366 (struct tui_source_window_base, struct tui_data_window)
5367 <set_new_height>: New method.
5368
1825f487
TT
53692019-06-25 Tom Tromey <tom@tromey.com>
5370
5371 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
5372 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
5373 tui_refresh_data_win.
5374 * tui/tui-win.c (tui_source_window_base::refresh_all): New
5375 method.
5376 (tui_refresh_all_win): Call the refresh_all method.
5377 (tui_set_focus): Likewise.
5378 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
5379 (struct tui_source_window_base, struct tui_data_window) <refresh>:
5380 Likewise.
5381
ad54d15b
TT
53822019-06-25 Tom Tromey <tom@tromey.com>
5383
5384 * tui/tui-winsource.h (tui_refill_source_window)
5385 (tui_set_is_exec_point_at): Don't declare.
5386 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5387 (tui_source_window_base::refill): Rename from
5388 tui_refill_source_window.
5389 (tui_source_window_base::do_scroll_horizontal): Update.
5390 (tui_source_window_base::set_is_exec_point_at): Rename from
5391 tui_set_is_exec_point_at.
5392 (tui_update_all_breakpoint_info): Update.
5393 * tui/tui-stack.c (tui_show_frame_info): Update.
5394 * tui/tui-layout.c (show_data): Add cast.
5395 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
5396 * tui/tui-data.h (struct tui_source_window_base) <refill,
5397 set_is_exec_point_at>: New methods.
5398 (tui_source_windows, tui_add_to_source_windows): Update types.
5399 (tui_add_to_source_windows): Remove redundant declaration.
5400 * tui/tui-data.c (source_windows): Store tui_source_window_base.
5401 (tui_source_windows): Change return type.
5402 (tui_clear_source_windows_detail): Update.
5403 (tui_add_to_source_windows): Change type of parameter.
5404 (tui_free_all_source_wins_content): Update.
5405
2042b506
TT
54062019-06-25 Tom Tromey <tom@tromey.com>
5407
5408 * tui/tui-wingeneral.c (tui_win_info::refresh)
5409 (tui_source_window_base::refresh): New methods.
5410 (tui_refresh_all): Call the refresh method.
5411 * tui/tui-data.h (struct tui_win_info)
5412 (struct tui_source_window_base) <refresh>: New method.
5413
56122977
TT
54142019-06-25 Tom Tromey <tom@tromey.com>
5415
5416 * tui/tui.h (tui_is_window_visible): Return bool.
5417 * tui/tui.c (tui_is_window_visible): Return bool.
5418 * tui/tui-wingeneral.c (tui_make_window, make_visible)
5419 (tui_make_visible, tui_make_invisible)
5420 (tui_win_info::make_visible)
5421 (tui_source_window_base::make_visible, make_all_visible)
5422 (tui_make_all_visible, tui_make_all_invisible): Update.
5423 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
5424 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
5425 bool.
5426 (struct tui_win_info, struct tui_source_window_base)
5427 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
5428 * tui/tui-data.c (tui_init_generic_part): Update.
5429
cda37efb
TT
54302019-06-25 Tom Tromey <tom@tromey.com>
5431
5432 * tui/tui-wingeneral.c (tui_win_info::make_visible)
5433 (tui_source_window_base::make_visible): New methods.
5434 (make_all_visible): Make method call.
5435 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
5436 (struct tui_source_window_base, struct tui_cmd_window): Override
5437 make_visible.
5438 (tui_win_is_source_type): Don't declare.
5439 * tui/tui-data.c (tui_win_is_source_type): Remove.
5440
6a0ee02c
TT
54412019-06-25 Tom Tromey <tom@tromey.com>
5442
5443 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
5444 NULL check.
5445
63901aec
TT
54462019-06-25 Tom Tromey <tom@tromey.com>
5447
5448 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
5449 Inline constructor. Add initializers for members.
5450 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
5451 constructors; now inline in class.
5452
ceb13a13
TT
54532019-06-25 Tom Tromey <tom@tromey.com>
5454
5455 * tui/tui-regs.c (tui_show_registers): Update.
5456 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
5457 bool.
5458 * tui/tui-data.c (tui_data_window::clear_detail)
5459 (tui_data_window): Update.
5460
238eb706
TT
54612019-06-25 Tom Tromey <tom@tromey.com>
5462
5463 * tui/tui-windata.c (tui_display_all_data)
5464 (tui_display_data_from_line, tui_display_data_from)
5465 (tui_check_data_values, tui_data_window::do_scroll_vertical):
5466 Update.
5467 * tui/tui-regs.c (tui_last_regs_line_no)
5468 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5469 (tui_show_registers, tui_show_register_group)
5470 (tui_display_registers_from, tui_display_reg_element_at_line)
5471 (tui_display_registers_from_line, tui_check_register_values)
5472 (tui_reg_next, tui_reg_prev): Update.
5473 * tui/tui-layout.c (tui_set_layout, show_data): Update.
5474 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
5475 tui_data_window.
5476 (struct tui_win_info) <detail>: Remove. Add new fields from
5477 tui_data_info.
5478 (TUI_DATA_WIN): Add cast.
5479 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
5480 (~tui_data_window): Simplify.
5481
81491aa0
TT
54822019-06-25 Tom Tromey <tom@tromey.com>
5483
5484 * tui/tui-layout.c (show_source_disasm_command)
5485 (show_source_or_disasm_and_command): Update.
5486 * tui/tui-io.c (update_cmdwin_start_line)
5487 (tui_redisplay_readline): Update.
5488 * tui/tui-data.h (struct tui_command_info): Remove.
5489 (struct tui_win_info) <detail>: Remove command_info member.
5490 (struct tui_data_window) <start_line>: New member, from
5491 tui_command_info.
5492 (TUI_CMD_WIN): Add casts.
5493
e6e41501
TT
54942019-06-25 Tom Tromey <tom@tromey.com>
5495
5496 * tui/tui-winsource.c (tui_update_source_window)
5497 (tui_refill_source_window)
5498 (tui_source_window_base::do_scroll_horizontal)
5499 (tui_update_breakpoint_info, tui_set_exec_info_content)
5500 (tui_show_exec_info_content, tui_erase_exec_info_content)
5501 (tui_clear_exec_info_content): Update.
5502 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
5503 Update.
5504 * tui/tui-win.c (make_invisible_and_set_new_height)
5505 (make_visible_with_new_height): Update.
5506 * tui/tui-source.c (tui_set_source_content)
5507 (tui_show_symtab_source): Update.
5508 * tui/tui-layout.c (extract_display_start_addr)
5509 (show_source_disasm_command, show_data)
5510 (make_source_or_disasm_window)
5511 (show_source_or_disasm_and_command): Update.
5512 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
5513 (tui_disasm_window::do_scroll_vertical): Remove shadowing
5514 "gdbarch".
5515 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
5516 to tui_source_window_base.
5517 (struct tui_win_info) <detail>: Remove source_info member.
5518 (struct tui_source_window_base) <has_locator>: Inline.
5519 Move contents from tui_source_info; rename has_locator member to
5520 m_has_locator.
5521 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
5522 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
5523 header file.
5524 (tui_source_window_base::clear_detail, ~tui_source_window_base):
5525 Simplify.
5526 (tui_free_all_source_wins_content): Cast to
5527 tui_source_window_base.
5528
44f0e208
TT
55292019-06-25 Tom Tromey <tom@tromey.com>
5530
5531 * tui/tui-win.c (make_invisible_and_set_new_height)
5532 (make_visible_with_new_height): Call has_locator method.
5533 * tui/tui-layout.c (show_source_disasm_command, show_data)
5534 (show_source_or_disasm_and_command): Update for bool change.
5535 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
5536 (tui_win_info) <has_locator>: New method.
5537 (struct tui_source_window_base) <has_locator>: New method.
5538 (tui_win_has_locator): Don't declare.
5539 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
5540 from tui_win_has_locator.
5541 (tui_source_window_base): Use false, not FALSE.
5542
7778b912
TT
55432019-06-25 Tom Tromey <tom@tromey.com>
5544
5545 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
5546 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
5547 clear_detail method directly.
5548 (tui_clear_win_detail): Remove.
5549
f83d391c
TT
55502019-06-25 Tom Tromey <tom@tromey.com>
5551
5552 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
5553 "this", not TUI_DISASM_WIN.
5554
13446e05
TT
55552019-06-25 Tom Tromey <tom@tromey.com>
5556
5557 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
5558 declare.
5559 * tui/tui-winsource.c
5560 (tui_source_window_base::do_scroll_horizontal): Rename from
5561 tui_horizontal_source_scroll.
5562 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
5563 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
5564 from tui_vertical_data_scroll.
5565 * tui/tui-win.h (tui_scroll): Don't declare.
5566 * tui/tui-win.c (tui_win_info::forward_scroll)
5567 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5568 (tui_win_info::right_scroll): Rename and update.
5569 (tui_scroll_forward_command, tui_scroll_backward_command)
5570 (tui_scroll_left_command, tui_scroll_right_command): Update.
5571 (tui_scroll): Remove.
5572 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
5573 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
5574 from tui_vertical_source_scroll.
5575 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
5576 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
5577 from tui_vertical_disassem_scroll.
5578 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
5579 do_scroll_horizontal>: New methods.
5580 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
5581 Likewise.
5582 (struct tui_source_window_base): Add do_scroll_horizontal.
5583 (struct tui_source_window, struct tui_disasm_window): Add
5584 do_scroll_vertical.
5585 (struct tui_data_window, struct tui_cmd_window): Add
5586 do_scroll_horizontal and do_scroll_vertical.
5587 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
5588
5cf82909
TT
55892019-06-25 Tom Tromey <tom@tromey.com>
5590
5591 * tui/tui-data.h (struct tui_source_window_base): New struct.
5592 (struct tui_source_window): Derive from tui_source_window_base.
5593 (struct tui_disasm_window): New struct.
5594 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
5595 from tui_source_window::clear_detail.
5596 (tui_source_window_base): Rename from tui_source_window.
5597 (~tui_source_window_base): Rename from ~tui_source_window.
5598 (tui_alloc_win_info): Create a tui_disasm_window.
5599
ee1d42d6
TT
56002019-06-25 Tom Tromey <tom@tromey.com>
5601
5602 * tui/tui-data.h (struct tui_source_window)
5603 (struct tui_data_window): Declare destructors.
5604 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
5605 destructors.
5606 (tui_win_info): Simplify.
5607
b4eb2452
TT
56082019-06-25 Tom Tromey <tom@tromey.com>
5609
5610 * tui/tui-winsource.c (tui_display_main)
5611 (tui_update_source_windows_with_addr)
5612 (tui_update_all_breakpoint_info): Update.
5613 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5614 (new_height_ok, parse_scrolling_args): Update.
5615 * tui/tui-stack.c (tui_show_frame_info): Update.
5616 * tui/tui-data.h (struct tui_list): Remove.
5617 (tui_source_windows): Return a reference to a std::vector.
5618 * tui/tui-data.c (source_windows): Now a std::vector.
5619 (tui_source_windows): Change return type.
5620 (tui_clear_source_windows): Rewrite.
5621 (tui_clear_source_windows_detail, tui_add_to_source_windows)
5622 (tui_free_all_source_wins_content): Rewrite.
5623
8761a91b
TT
56242019-06-25 Tom Tromey <tom@tromey.com>
5625
5626 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
5627 (struct tui_data_window, struct tui_cmd_window): Declare
5628 clear_detail method.
5629 * tui/tui-data.c (tui_source_window::clear_detail)
5630 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
5631 methods.
5632 (tui_clear_win_detail): Simplify.
5633
0ed69eda
TT
56342019-06-25 Tom Tromey <tom@tromey.com>
5635
5636 * tui/tui-layout.c (make_source_window, make_disasm_window)
5637 (make_source_or_disasm_window): Remove win_info_ptr parameter.
5638 Return the new window.
5639 (show_source_disasm_command, show_data)
5640 (show_source_or_disasm_and_command): Update.
5641
82432e10
TT
56422019-06-25 Tom Tromey <tom@tromey.com>
5643
5644 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
5645 parameter. Return the new window.
5646 (show_source_disasm_command): Update and remove NULL check.
5647 (show_source_or_disasm_and_command): Update.
5648
ec328aa5
TT
56492019-06-25 Tom Tromey <tom@tromey.com>
5650
5651 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
5652
33b906ab
TT
56532019-06-25 Tom Tromey <tom@tromey.com>
5654
5655 * tui/tui-data.h (struct tui_win_info): Make constructor
5656 protected. Make destructor virtual. Add initializers.
5657 (tui_source_window, tui_data_window, tui_cmd_window): New
5658 classes.
5659 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
5660 constructor. Add "type" parameter.
5661 (tui_source_window, tui_data_window, tui_cmd_window): New
5662 constructors.
5663 (tui_alloc_win_info): Instantiate the appropriate subclass.
5664
e7e11af4
TT
56652019-06-25 Tom Tromey <tom@tromey.com>
5666
5667 * tui/tui-win.c (tui_resize_all): Use delete.
5668 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
5669 destructor.
5670 (tui_free_window): Don't declare.
5671 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
5672 Update.
5673
6792b55e
TT
56742019-06-25 Tom Tromey <tom@tromey.com>
5675
5676 * tui/tui-data.h (struct tui_win_info): Add constructor.
5677 * tui/tui-data.c (tui_alloc_win_info): Use new.
5678 (tui_free_window): Use delete.
5679
f95675e1
TT
56802019-06-22 Tom Tromey <tom@tromey.com>
5681
5682 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
5683 declare.
5684 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
5685
5bff081c
TT
56862019-06-22 Tom Tromey <tom@tromey.com>
5687
5688 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
5689 declare.
5690 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
5691
47e3f474
TV
56922019-06-22 Tom de Vries <tdevries@suse.de>
5693
5694 * dwarf2read.c (create_addrmap_from_aranges)
5695 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
5696 instead of '%zu'.
5697
fd5866f6
SM
56982019-06-21 Simon Marchi <simon.marchi@efficios.com>
5699
5700 * dwarf2read.h (dwarf2_section_info_def): Remove.
5701 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
5702 * dwarf2read.c (struct dwo_sections) <types>: Change type to
5703 std::vector<dwarf2_section_info>.
5704 (struct dwo_file) <~dwo_file>: Remove.
5705 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
5706 types field.
5707 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
5708 (dwarf2_read_debug_names): Likewise.
5709 (create_debug_types_hash_table): Change parameter type to
5710 array_view, adjust code accordingly.
5711 (dwarf2_locate_dwo_sections): Adjust to std::vector.
5712 (partial_die_info::fixup): Likewise.
5713 (determine_prefix): Likewise.
5714 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
5715
fb1eb2f9
SM
57162019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5717
5718 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
5719 gdb_bfd_ref_ptr.
5720 <~dwo_file>: Remove call to gdb_bfd_unref.
5721 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
5722 gdb_bfd_ref_ptr::get.
5723
51ac9db5
SM
57242019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5725
5726 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
5727 type to htab_up.
5728 * dwarf2read.c (struct dwo_file): Initialize fields.
5729 <~dwo_file>: New.
5730 (free_dwo_file): Remove, move content to ~dwo_file.
5731 (struct dwo_file_deleter): Remove.
5732 (dwo_file_up>: Remove custom deleter.
5733 (free_dwo_files): Remove.
5734 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
5735 dwo_files.
5736 (process_skeletonless_type_units): Call unique_ptr::get.
5737 (allocate_dwo_file_hash_table): Add deleter to created hash
5738 table. Change return type to htab_up.
5739 (lookup_dwo_file_slot): Don't memset dwo_file, call
5740 unique_ptr::get.
5741 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
5742 (create_dwo_unit_in_dwp_v2): Likewise.
5743 (open_and_init_dwo_file): Likewise.
5744 (free_dwo_file_from_slot): Remove.
5745
dc4ccb6f
SM
57462019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5747
5748 * dwarf2read.h (struct dwarf2_section_info) <readin,
5749 is_virtual>: Change type to bool.
5750 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
5751 true instead of 1.
5752
e6a1c5cb
TT
57532019-06-19 Tom Tromey <tom@tromey.com>
5754
5755 * tui/tui-data.h (tui_init_content_element): Don't declare.
5756
6f6ffbeb
TT
57572019-06-19 Tom Tromey <tom@tromey.com>
5758
5759 * tui/tui-data.h (tui_init_win_info): Don't declare.
5760
f23f598e
TV
57612019-06-19 Tom de Vries <tdevries@suse.de>
5762
5763 * dwarf2read.h (abstract_to_concrete): Change type to
5764 std::unordered_map<sect_offset, std::vector<sect_offset>,
5765 gdb::hash_enum<sect_offset>>.
5766
680e1bee
TT
57672019-06-19 Tom Tromey <tromey@adacore.com>
5768
5769 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
5770 EVAL_AVOID_SIDE_EFFECTS specially.
5771
dcf37923
TT
57722019-06-19 Tom Tromey <tromey@adacore.com>
5773
5774 * source-cache.c (highlighter): New global.
5775 (source_cache::get_source_lines): Create a highlighter on demand.
5776
494986d5
AB
57772019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
5778
5779 * defs.h (deprecated_interactive_hook): Delete declaration.
5780 * interps.c (clear_interpreter_hooks): Remove use of
5781 deprecated_interactive_hook.
5782 * top.c (deprecated_interactive_hook): Delete definition.
5783 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
5784
3360b6e7
TV
57852019-06-18 Tom de Vries <tdevries@suse.de>
5786
5787 PR gdb/24515
5788 * dwarf2read.h (abstract_to_concrete): Change type from
5789 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
5790 std::unordered_map<sect_offset, std::vector<sect_offset>>.
5791 * dwarf2read.c (read_variable): Update.
5792 (dwarf2_fetch_die_loc_sect_off): Update.
5793
310b3441
TV
57942019-06-17 Tom de Vries <tdevries@suse.de>
5795
5796 PR gdb/24617
5797 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
5798 accessing parent[parent_len - 1].
5799
ba9777be
PP
58002019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
5801
5802 PR gdb/24364
5803 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
5804 call dtrace_process_dof with NULL dof.
5805
2b9f6e89
TV
58062019-06-16 Tom de Vries <tdevries@suse.de>
5807
5808 PR gdb/24445
5809 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
5810
431b3ead
TT
58112019-06-16 Tom Tromey <tom@tromey.com>
5812
5813 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5814 (make_all_visible): Use address of member.
5815
d04b44a1
TT
58162019-06-16 Tom Tromey <tom@tromey.com>
5817
5818 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
5819 (tui_free_window, free_content, free_content_elements): Remove
5820 unnecessary cast.
5821 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
5822 cast.
5823 * tui/tui-regs.c (tui_show_register_group)
5824 (tui_display_registers_from, tui_display_reg_element_at_line):
5825 Remove unnecessary cast.
5826
bf5142e7
AB
58272019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5828
5829 * linux-nat.c (normal_mask): Delete.
5830 (_initialize_linux_nat): Don't initialise normal_mask.
5831
c4973306
SM
58322019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
5833
5834 PR gdb/24445
5835 * dwarf-index-write.h (write_psymtabs_to_index): Add
5836 dwz_basename parameter.
5837 * dwarf-index-write.c (write_gdbindex): Move file writing to
5838 write_gdbindex_1. Change return type void.
5839 (assert_file_size): Move up, remove filename parameter.
5840 (write_gdbindex_1): New function.
5841 (write_debug_names): Change return type to void, call
5842 assert_file_size.
5843 (struct index_wip_file): New struct.
5844 (write_psymtabs_to_index): Add dwz_basename parameter. Move
5845 file logic to index_wip_file. Write index for dwz file if
5846 needed.
5847 (save_gdb_index_command): Pass basename of dwz file, if present.
5848 * dwarf-index-cache.c (index_cache::store): Obtain and pass
5849 build-id of dwz file, if present.
5850 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
5851 (dwarf2_get_dwz_file): Likewise.
5852 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
5853 (dwarf2_get_dwz_file): Likewise.
5854
395f9c91
TT
58552019-06-16 Tom Tromey <tom@tromey.com>
5856
5857 * coffread.c (process_coff_symbol): Use xstrdup.
5858 * value.c (create_internalvar): Use xstrdup.
5859
cafb3438
TT
58602019-06-16 Tom Tromey <tom@tromey.com>
5861
5862 * valops.c (value_cast, value_slice): Remove unnecessary cast.
5863 * breakpoint.c (stopin_command, stopat_command)
5864 (until_break_command, decode_location_default): Remove unnecessary
5865 cast.
5866 * utils.c (subset_compare): Remove unnecessary cast.
5867 * ada-lang.c (ada_update_initial_language): Remove unnecessary
5868 cast.
5869 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
5870 cast.
5871 * infcmd.c (path_command): Remove unnecessary cast.
5872 * coffread.c (decode_type): Remove unnecessary cast.
5873 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
5874 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
5875 * tui/tui-stack.c (tui_show_locator_content)
5876 (tui_show_frame_info): Remove unnecessary cast.
5877 * tui/tui-win.c (tui_scroll_forward_command)
5878 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
5879 (parse_scrolling_args): Remove unnecessary cast.
5880 * tui/tui-data.c (init_win_info, tui_del_window)
5881 (tui_free_window, tui_del_data_windows, tui_free_data_content)
5882 (free_content_elements): Remove unnecessary cast.
5883 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
5884 unnecessary cast.
5885 * tui/tui-source.c (tui_set_source_content)
5886 (tui_vertical_source_scroll): Remove unnecessary cast.
5887 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
5888 cast.
5889 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
5890 * tui/tui-regs.c (tui_display_registers_from)
5891 (tui_display_register): Remove unnecessary cast.
5892 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
5893 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
5894 (make_visible): Remove unnecessary cast.
5895 * tui/tui-winsource.c (tui_erase_source_content)
5896 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
5897 unnecessary cast.
5898 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
5899 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
5900 * stabsread.c (read_type, read_array_type, read_range_type):
5901 Remove unnecessary cast.
5902 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
5903 (parse_symbol, parse_type, upgrade_type, parse_external)
5904 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
5905 unnecessary cast.
5906 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
5907
730ead81
TT
59082019-06-16 Tom Tromey <tom@tromey.com>
5909
5910 * tui/tui-data.c (tui_alloc_generic_win_info)
5911 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
5912 checks.
5913
584a927c
AB
59142019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
5915 Andrew Burgess <andrew.burgess@embecosm.com>
5916
5917 * f-typeprint.c (f_print_type): Don't return early for not
5918 associated or not allocated types.
5919 (f_type_print_varspec_suffix): Add print_rank parameter and print
5920 ranks of array types in case they dangling.
5921 (f_type_print_base): Add print_rank parameter.
5922
30056ea0
AB
59232019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5924
5925 * NEWS: Mention new MI commands.
5926 * break-catch-throw.c (enum exception_event_kind): Move to
5927 breakpoint.h.
5928 (print_mention_exception_catchpoint): Output text as a single
5929 message.
5930 (catch_exception_command_1): Rename to...
5931 (catch_exception_event): ...this, make non-static, update header
5932 command, and change some parameter types.
5933 (catch_catch_command): Update for changes to
5934 catch_exception_command_1.
5935 (catch_throw_command): Likewise.
5936 (catch_rethrow_command): Likewise.
5937 * breakpoint.c (enum exception_event_kind): Delete.
5938 * breakpoint.h (enum exception_event_kind): Moved here from
5939 break-catch-throw.c.
5940 (catch_exception_event): Declare.
5941 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
5942 (mi_cmd_catch_throw): New function.
5943 (mi_cmd_catch_rethrow): New function.
5944 (mi_cmd_catch_catch): New function.
5945 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
5946 'catch-catch' entries.
5947 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
5948 (mi_cmd_catch_rethrow): Declare.
5949 (mi_cmd_catch_catch): Declare.
5950
ec8e2b6d
AB
59512019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5952
5953 * annotate.c (annotate_source_line): Change return type to void,
5954 update implementation to match.
5955 * annotate.h (annotate_source_line): Change return type to void,
5956 update header comment.
5957 * stack.c (print_frame_info): Don't change what frame information
5958 is printed based on whether annotations are on or not.
5959
0d3abd8c
AB
59602019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5961
5962 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
5963 (annotate_source): Make static.
5964 (annotate_source_line): Moved from source.c and renamed from
5965 identify_source_line. Update the return type.
5966 * annotate.h (annotate_source): Delete declaration.
5967 (annotate_source_line): Declaration moved from source.h, and
5968 renamed from identify_source_line. Return type updated.
5969 * source.c (identify_source_line): Moved to annotate.c and renamed
5970 to annotate_source_line.
5971 (info_line_command): Remove check of annotation_level.
5972 * source.h (identify_source_line): Move declaration to annotate.h
5973 and rename to annotate_source_line.
5974 * stack.c: Add 'annotate.h' include.
5975 (print_frame_info): Remove check of annotation_level before
5976 calling annotate_source_line.
5977
00df30ae
AB
59782019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5979
5980 * source-cache.c (source_cache::get_plain_source_lines): Use
5981 open_source_file_with_line_charpos instead of just
5982 open_source_file, remove call to find_source_lines.
5983 (source_cache::get_source_lines): Likewise.
5984 * source.c (find_source_lines): Make static.
5985 (get_filename_and_charpos): Renamed into...
5986 (open_source_file_with_line_charpos): ..this along with changes to
5987 return a scoped_fd, and some other minor clean ups.
5988 (identify_source_line): Use open_source_file_with_line_charpos.
5989 (search_command_helper): Use open_source_file_with_line_charpos
5990 instead of just open_source_file, remove call to
5991 find_source_lines.
5992 * source.h (open_source_file_with_line_charpos): Declare new
5993 function.
5994 (find_source_lines): Delete declaration.
5995
afda45a2
AB
59962019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5997
5998 * source.c (get_filename_and_charpos): Remove fullname
5999 parameter.
6000 (identify_source_line): Update call to get_filename_and_charpos.
6001
0735b091
TT
60022019-06-14 Tom Tromey <tromey@adacore.com>
6003
6004 PR gdb/24502:
6005 * ui-style.h (skip_ansi_escape): Update comment.
6006 * ui-file.h (class no_terminal_escape_file): New class.
6007 * ui-file.c (no_terminal_escape_file::write)
6008 (no_terminal_escape_file::puts): New methods.
6009 * cli/cli-logging.c (handle_redirections): Use
6010 no_terminal_escape_file.
6011
52ce35e2
TT
60122019-06-14 Tom Tromey <tromey@adacore.com>
6013
6014 * NEWS: Move convenience variable news above Python news.
6015
73cc7272
TT
60162019-06-14 Tom Tromey <tom@tromey.com>
6017
6018 * gnulib: Move directory to top-level.
6019 * configure.ac: Don't configure gnulib.
6020 * configure: Rebuild.
6021 * common/common-defs.h: Use new path to gnulib.
6022 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
6023 (GNULIB_H): Remove.
6024 (INCGNU): Look in new gnulib location.
6025 (HFILES_NO_SRCDIR): Remove gnulib files.
6026 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
6027 (generated_files): Remove GNULIB_H.
6028 ($(LIBGNU), all-lib): Remove targets.
6029 (distclean): Don't mention GNULIB_BUILDDIR.
6030 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
6031
f5686554
TT
60322019-06-14 Tom Tromey <tromey@adacore.com>
6033
6034 * symfile.c (add_symbol_file_command): Remove obsolete comment.
6035 Warn if symbol file does not provide any symbols.
6036
a0c1ffed
TT
60372019-06-14 Tom Tromey <tromey@adacore.com>
6038
6039 * source.c (find_and_open_source): Respect basenames_may_differ.
6040
7c39e397
AB
60412019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
6042
6043 * annotate.c (annotate_breakpoints_invalid): Make use of
6044 scoped_restore_terminal_state.
6045 (annotate_frames_invalid): Likewise.
6046
f411722c
TT
60472019-06-14 Tom Tromey <tromey@adacore.com>
6048
6049 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
6050 allow assignment to an internalvar.
6051
4268ec18
TT
60522019-06-14 Tom Tromey <tromey@adacore.com>
6053
6054 * ada-lex.l: Allow "_" in attribute names.
6055
abdb711e
TT
60562019-06-14 Tom Tromey <tromey@adacore.com>
6057
6058 PR gdb/24653:
6059 * regcache.c (registers_changed): Don't call alloca.
6060 * top.c (execute_command): Don't call alloca.
6061
4c048731
PA
60622019-06-13 Pedro Alves <palves@redhat.com>
6063
6064 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
6065 'expression'. When parsing an expression, error out if there's
6066 junk after "unlimited".
6067 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6068 (do_set_command): Adjust calls to is_unlimited_literal.
6069
66eb1ed3
PA
60702019-06-13 Pedro Alves <palves@redhat.com>
6071
6072 * compile/compile.c (make_compile_options_def_group): Add braces
6073 around array_view initializer.
6074 * thread.c (make_thread_apply_all_options_def_group)
6075 (make_thread_apply_all_options_def_group): Likewise.
6076
3345721a
PA
60772019-06-13 Pedro Alves <palves@redhat.com>
6078
6079 * NEWS (New commands): Mention "maint test-options
6080 require-delimiter", "maint test-options unknown-is-error", "maint
6081 test-options unknown-is-operand" and "maint show
6082 test-options-completion-result".
6083 (New command options, command completion): New section.
6084 (Completion improvements): New section.
6085 Mention that you can abbreviate "unlimited".
6086
6206060d
PA
60872019-06-13 Pedro Alves <palves@redhat.com>
6088
6089 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
6090 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
6091 * unittests/cli-utils-selftests.c (test_parse_flags)
6092 (test_parse_flags_qcs): Delete.
6093 (test_cli_utils): Don't call deleted functions.
6094
6665660a
PA
60952019-06-13 Pedro Alves <palves@redhat.com>
6096
6097 * thread.c: Include "cli/cli-option.h".
6098 (tp_array_compar_ascending): Global.
6099 (tp_array_compar): Delete function.
6100 (tp_array_compar_ascending, tp_array_compar_descending): New
6101 functions.
6102 (ascending_option_def, qcs_flag_option_def)
6103 (thr_qcs_flags_option_defs)
6104 (make_thread_apply_all_options_def_group)
6105 (make_thread_apply_options_def_group): New.
6106 (thread_apply_all_command): Use gdb::option::process_options.
6107 (thread_apply_command_completer)
6108 (thread_apply_all_command_completer): New.
6109 (thread_apply_command): Use gdb::option::process_options.
6110 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
6111 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
6112 to generate help text of "thread apply". Adjust "taas"'s help.
6113 * tid-parse.c (tid_range_parser::in_thread_range): New method.
6114 * tid-parse.h (tid_range_parser::in_thread_range): New method.
6115
f7e13587
PA
61162019-06-13 Pedro Alves <palves@redhat.com>
6117
6118 * thread.c (thread_apply_command): Check for invalid TID with
6119 isdigit instead of !isalpha.
6120
5d707134
PA
61212019-06-13 Pedro Alves <palves@redhat.com>
6122
6123 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
6124 (validate_flags_qcs): New.
6125 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
6126 (validate_flags_qcs): Declare.
6127 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
6128 (make_frame_apply_options_def_group): New.
6129 (frame_apply_command_count): Process options with
6130 gdb::option::process_options.
6131 (frame_apply_completer): New.
6132 (frame_apply_level_completer, frame_apply_all_completer)
6133 (frame_apply_completer): New.
6134 (_initialize_stack): Update help of "frame apply", "frame apply
6135 level", "frame apply all" and "faas" to mention supported options
6136 and install command completers.
6137 * stack.h (frame_apply_all_completer): Declare.
6138 * thread.c: Include "stack.h".
6139 (tfaas_command): Add "--".
6140 (_initialize_thread): Update help "tfaas" to mention supported
6141 options and install command completer.
6142
272d4594
PA
61432019-06-13 Pedro Alves <palves@redhat.com>
6144
6145 * completer.c (complete_nested_command_line): New.
6146 (gdb_completion_word_break_characters_throw): Add assertion.
6147 * completer.h (complete_nested_command_line): Declare.
6148
90a1ef87
PA
61492019-06-13 Pedro Alves <palves@redhat.com>
6150
6151 * stack.c (parse_backtrace_qualifiers): New.
6152 (backtrace_command): Use it.
6153 (backtrace_command_completer): Complete on qualifiers.
6154
d4c16835
PA
61552019-06-13 Pedro Alves <palves@redhat.com>
6156
6157 * frame.c: Include "cli/cli-option.h.
6158 (user_set_backtrace_options): New.
6159 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
6160 Delete.
6161 (get_prev_frame): Adjust.
6162 (boolean_option_def, uinteger_option_def)
6163 (set_backtrace_option_defs): New.
6164 (_initialize_frame): Adjust and use
6165 gdb::option::add_setshow_cmds_for_options to install "set
6166 backtrace past-main" and "set backtrace past-entry".
6167 * frame.h: Include "cli/cli-option.h".
6168 (struct frame_print_options): Forward declare.
6169 (print_frame_arguments_all, print_frame_arguments_scalars)
6170 (print_frame_arguments_none): Declare.
6171 (print_entry_values): Delete declaration.
6172 (struct frame_print_options, user_frame_print_options): New.
6173 (struct set_backtrace_options): New.
6174 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
6175 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
6176 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
6177 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
6178 (list_args_or_locals): Add frame_print_options parameter.
6179 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6180 * python/py-framefilter.c (enumerate_args): Pass down
6181 USER_FRAME_PRINT_OPTIONS.
6182 * stack.c: Include "cli/cli-option.h".
6183 (print_frame_arguments_all, print_frame_arguments_scalars)
6184 (print_frame_arguments_none): Declare.
6185 (print_raw_frame_arguments, print_entry_values): Delete.
6186 (user_frame_print_options): New.
6187 (boolean_option_def, enum_option_def, frame_print_option_defs):
6188 New.
6189 (struct backtrace_cmd_options): New.
6190 (bt_flag_option_def): New.
6191 (backtrace_command_option_defs): New.
6192 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6193 (print_frame_arg, read_frame_arg, print_frame_args)
6194 (print_frame_info, print_frame): Add frame_print_options parameter
6195 and use it.
6196 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
6197 (backtrace_command_1): Add frame_print_options and
6198 backtrace_cmd_options parameters and use them.
6199 (make_backtrace_options_def_group): New.
6200 (backtrace_command): Process command options with
6201 gdb::option::process_options.
6202 (backtrace_command_completer): New.
6203 (_initialize_stack): Extend "backtrace"'s help to mention
6204 supported options. Install completer for "backtrace".
6205 Install some settings commands with add_setshow_cmds_for_options.
6206
2daf894e
PA
62072019-06-13 Pedro Alves <palves@redhat.com>
6208
6209 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
6210 and that "set/show print raw frame-arguments" are now deprecated.
6211
6212 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
6213 command.
6214 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
6215 * stack.c (_initialize_stack): Install "set/show print
6216 raw-frame-arguments", and deprecate "set/show print raw
6217 frame-arguments".
6218 * valprint.c (_initialize_valprint): Deprecate "set/show print
6219 raw".
6220
e6ed716c
PA
62212019-06-13 Pedro Alves <palves@redhat.com>
6222
6223 * compile/compile.c (struct compile_options): New.
6224 (compile_flag_option_def, compile_command_option_defs)
6225 (make_compile_options_def_group): New.
6226 (compile_file_command): Handle options with
6227 gdb::option::process_options.
6228 (compile_file_command_completer): New function.
6229 (compile_code_command): Handle options with
6230 gdb::option::process_options.
6231 (compile_code_command_completer): New function.
6232 (_initialize_compiler): Install completers for "compile code" and
6233 "compile file". Mention available options in "compile code" and
6234 "compile code"'s help.
6235 * completer.c (advance_to_completion_word): New, factored out from
6236 ...
6237 (advance_to_expression_complete_word_point): ... this.
6238 (advance_to_filename_complete_word_point): New.
6239 * completer.h (advance_to_filename_complete_word_point): New
6240 declaration.
6241
7d8062de
PA
62422019-06-13 Pedro Alves <palves@redhat.com>
6243
6244 * compile/compile.c: Include "cli/cli-option.h".
6245 (compile_print_value): Scope data pointer is now a
6246 value_print_options pointer; adjust.
6247 (compile_print_command): Process options. Scope data pointer is
6248 now a value_print_options pointer; adjust.
6249 (_initialize_compile): Update "compile print"'s help to include
6250 supported options. Install a completer for "compile print".
6251 * cp-valprint.c (show_vtblprint, show_objectprint)
6252 (show_static_field_print): Delete.
6253 (_initialize_cp_valprint): Don't install "set print
6254 static-members", "set print vtbl", "set print object" here.
6255 * printcmd.c: Include "cli/cli-option.h" and
6256 "common/gdb_optional.h".
6257 (print_command_parse_format): Rework to fill in a
6258 value_print_options instead of a format_data.
6259 (print_value): Change parameter type from format_data pointer to
6260 value_print_options reference. Adjust.
6261 (print_command_1): Process options. Adjust to pass down a
6262 value_print_options.
6263 (print_command_completer): New.
6264 (_initialize_printcmd): Install print_command_completer as
6265 handle_brkchars completer for the "print" command. Update
6266 "print"'s help to include supported options.
6267 * valprint.c: Include "cli/cli-option.h".
6268 (show_vtblprint, show_objectprint, show_static_field_print): Moved
6269 here from cp-valprint.c.
6270 (boolean_option_def, uinteger_option_def)
6271 (value_print_option_defs, make_value_print_options_def_group):
6272 New. Use gdb::option::add_setshow_cmds_for_options to install
6273 "set print elements", "set print null-stop", "set print repeats",
6274 "set print pretty", "set print union", "set print array", "set
6275 print address", "set print symbol", "set print array-indexes".
6276 * valprint.h: Include <string> and "cli/cli-option.h".
6277 (make_value_print_options_def_group): Declare.
6278 (print_value): Change parameter type from format_data pointer to
6279 value_print_options reference.
6280 (print_command_completer): Declare.
6281
9d0faba9
PA
62822019-06-13 Pedro Alves <palves@redhat.com>
6283
6284 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
6285 (COMMON_SFILES): Add maint-test-settings.c.
6286 * cli/cli-decode.c (boolean_enums): New global, factored out from
6287 ...
6288 (add_setshow_boolean_cmd): ... here.
6289 * cli/cli-decode.h (boolean_enums): Declare.
6290 * cli/cli-option.c: New file.
6291 * cli/cli-option.h: New file.
6292 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
6293 factored out from ...
6294 (parse_cli_boolean_value(const char *)): ... this.
6295 (is_unlimited_literal): Change parameter type to pointer to
6296 pointer. Adjust and advance ARG pointer.
6297 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6298 (parse_cli_var_enum): New, factored out from ...
6299 (do_set_command): ... this. Adjust.
6300 * cli/cli-setshow.h (parse_cli_boolean_value)
6301 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6302 (parse_cli_var_enum): Declare.
6303 * cli/cli-utils.c: Include "cli/cli-option.h".
6304 (get_ulongest): New.
6305 * cli/cli-utils.h (get_ulongest): Declare.
6306 (check_for_argument): New overloads.
6307 * maint-test-options.c: New file.
6308
2c722807
PA
63092019-06-13 Pedro Alves <palves@redhat.com>
6310
6311 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
6312 parse a range if "-" is at the end of the string.
6313
dee7b4c8
PA
63142019-06-13 Pedro Alves <palves@redhat.com>
6315
6316 * cli/cli-setshow.c (parse_auto_binary_operation)
6317 (parse_cli_boolean_value): Don't allow "o".
6318
dca0f6c0
PA
63192019-06-13 Pedro Alves <palves@redhat.com>
6320
6321 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
6322 * NEWS: Mention maint test-settings KIND.
6323 * maint-test-settings.c: New file.
6324
597bf39d
PA
63252019-06-13 Pedro Alves <palves@redhat.com>
6326
6327 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
6328 completer.
6329 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
6330 "set" completers.
6331
48c410fb
PA
63322019-06-13 Pedro Alves <palves@redhat.com>
6333
6334 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
6335 after item.
6336
93bcb043
PA
63372019-06-13 Pedro Alves <palves@redhat.com>
6338
6339 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
6340
cbba3ecd
PA
63412019-06-13 Pedro Alves <palves@redhat.com>
6342
6343 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
6344 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
6345 call.
6346 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
6347 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
6348 calls.
6349 (check_for_argument): Skip spaces after argument.
6350
b9a3f842
PA
63512019-06-13 Pedro Alves <palves@redhat.com>
6352
6353 * thread.c (thread_apply_command): Adjust TID parsing.
6354 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
6355 detected before end of string.
6356 (tid_is_in_list): Error out if LIST is invalid.
6357
3844e605
PA
63582019-06-13 Pedro Alves <palves@redhat.com>
6359
6360 * completer.c (complete_line_internal_1): Rewind completion word
6361 point.
6362 (completion_tracker::advance_custom_word_point_by): Change
6363 parameter type to int.
6364 * completer.h (completion_tracker::advance_custom_word_point_by):
6365 Likewise.
6366
00b56dbe
PA
63672019-06-13 Pedro Alves <palves@redhat.com>
6368
6369 * completer.c (advance_to_completion_word): Handle delimiters.
6370
d106773e
PA
63712019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
6372
6373 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
6374
08f10e02
TT
63752019-06-11 Tom Tromey <tom@tromey.com>
6376
6377 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
6378 (xmalloc_failed): Move to alloc.c.
6379 * alloc.c: New file.
6380 * Makefile.in (COMMON_SFILES): Add alloc.c.
6381
1c7fe951
TT
63822019-06-11 Tom Tromey <tom@tromey.com>
6383
6384 * nat/linux-waitpid.c: Don't include server.h.
6385 (linux_debug): Remove.
6386 (my_waitpid): Update.
6387
89549d7f
TT
63882019-06-11 Tom Tromey <tromey@adacore.com>
6389
6390 * infcall.c (_initialize_infcall): Remove trailing newline from
6391 help.
6392 * user-regs.c (_initialize_user_regs): Remove trailing newline
6393 from help.
6394 * typeprint.c (_initialize_typeprint): Remove trailing newline
6395 from help.
6396 * reverse.c (_initialize_reverse): Remove trailing newlines from
6397 help.
6398 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
6399 from help.
6400 * language.c (add_set_language_command): Remove trailing newline
6401 from help.
6402 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
6403 help.
6404 * disasm.c (_initialize_disasm): Remove trailing newline from
6405 help.
6406 * top.c (init_main): Remove trailing newline from help.
6407 * interps.c (_initialize_interpreter): Remove trailing newline
6408 from help.
6409 * btrace.c (_initialize_btrace): Remove trailing newlines from
6410 help.
6411 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
6412 from help.
6413 * python/python.c (_initialize_python): Remove trailing newline
6414 from help.
6415 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
6416 help.
6417 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
6418 from help. Reformat some text.
6419 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
6420 from help.
6421 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
6422 newline from help.
6423
86108c13
TT
64242019-06-11 Tom Tromey <tromey@adacore.com>
6425
6426 * darwin-nat.c (darwin_decode_exception_message)
6427 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
6428
a7067863
AB
64292019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
6430
6431 * valops.c (value_slice): Check for not allocated or not
6432 associated values.
6433
9ab08412
TV
64342019-06-10 Tom de Vries <tdevries@suse.de>
6435
6436 PR gdb/24618
6437 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
6438 sure an empty slot (defined by a 32-bit zero pair) is recognized as
6439 invalid.
6440
f19e22e9
TV
64412019-06-10 Tom de Vries <tdevries@suse.de>
6442
6443 PR gdb/24611
6444 * linespec.c (linespec_lexer_lex_string): Remove incorrect
6445 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
6446
e99f9db0
TV
64472019-06-10 Tom de Vries <tdevries@suse.de>
6448
6449 PR symtab/24545
6450 * symtab.c (struct demangled_name_entry): Add language field.
6451 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
6452 static minimal symbol". Set and use language field.
6453
9bf7038b
TT
64542019-06-10 Tom Tromey <tromey@adacore.com>
6455
6456 * ada-lang.c (_initialize_ada_language): Update help text.
6457
422186a9
TT
64582019-06-10 Tom Tromey <tromey@adacore.com>
6459
6460 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
6461 with a newline.
6462 * guile/guile.c (handle_boot_error): Don't end warning with a
6463 newline.
6464 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
6465 warning with a newline.
6466 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
6467 newline.
6468 (s12z_frame_cache): Likewise.
6469 * dwarf-index-cache.c (index_cache::store): Don't end warning with
6470 a newline.
6471 * solib-svr4.c (disable_probes_interface): Don't end warning with
6472 a newline.
6473 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
6474 newline.
6475 * python/python.c (do_finish_initialization): Don't end warning
6476 with a newline.
6477
25ce02ee
TT
64782019-06-10 Tom Tromey <tom@tromey.com>
6479
6480 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6481 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
6482 gdbpy_enter.
6483
caa429d8
TT
64842019-06-10 Tom Tromey <tromey@adacore.com>
6485
6486 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
6487 data.
6488 (elf_new_init): Don't call stabsread_new_init.
6489 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
6490 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
6491 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
6492
81873cc8
TV
64932019-06-10 Tom de Vries <tdevries@suse.de>
6494
6495 PR symtab/16264
6496 PR symtab/24517
6497 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
6498
4fa0265e
РИ
64992019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
6500
6501 * source.c (find_and_open_source): Also rewrite relative file
6502 names.
6503
1a3da2cd
AB
65042019-04-26 Amos Bird <amosbird@gmail.com>
6505
6506 * annotate.c (annotate_thread_exited): Add "thread-exited"
6507 annotation.
6508
3847a7bf
TT
65092019-06-06 Tom Tromey <tromey@adacore.com>
6510
6511 * maint.h (class scoped_command_stats): Use
6512 DISABLE_COPY_AND_ASSIGN.
6513 <print_time>: New method.
6514 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
6515 print_time.
6516 (scoped_command_stats::print_time): New method.
6517
312617a3
AB
65182019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6519
6520 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
6521 instructions of lengths 6 or 8 bytes.
6522
b02f78f9
PA
65232019-06-04 Pedro Alves <palves@redhat.com>
6524
6525 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
6526
6527 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
6528 * breakpoint.c (condition_completer): Likewise.
6529 * cli/cli-dump.c (scan_expression): Likewise.
6530 * common/filestuff.c (mkdir_recursive): Likewise.
6531 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
6532 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
6533 (gdb_abspath): Likewise.
6534 * compile/compile-cplus-types.c
6535 (compile_cplus_instance::decl_name): Likewise.
6536 * completer.c (complete_explicit_location):
6537 (signal_completer, reg_or_group_completer_1): Likewise.
6538 * cp-support.c (cp_remove_params_if_any): Likewise.
6539 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
6540 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
6541 * infcmd.c (strip_bg_char): Likewise.
6542 * linespec.c (copy_token_string): Likewise.
6543 * mi/mi-main.c (output_cores): Likewise.
6544 * psymtab.c (psymtab_search_name):
6545 * symfile.c (test_set_ext_lang_command): Likewise.
6546 * target.c (target_fileio_read_stralloc): Likewise.
6547 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
6548 * value.c (complete_internalvar): Likewise.
6549
e1f2e1a2
CB
65502019-06-04 Christian Biesinger <cbiesinger@google.com>
6551
6552 Add objfile property to gdb.Type.
d3238f7d
PA
6553 * NEWS: Mention Python API addition.
6554 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 6555
e664d728
PW
65562019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6557
6558 * NEWS: Mention the new set|show style [title|highlight].
6559 Mention changes to "show style", "help" and "apropos".
6560
66d8c862
PW
65612019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6562
6563 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
6564 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
6565 instead of print_help_for_command.
6566 (print_doc_of_command): New function.
6567 (help_list): Add 'apropos -v word' suggestion.
6568 (print_help_for_command): Style the command name using title style.
6569 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
6570 (_initialize_cli_cmds): Describe -v in apropos_command help.
6571
9303eb2f
PW
65722019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6573
6574 * cli/cli-style.h (cli_style_option): Add name in constructor,
6575 add m_name class member, add constructor with intensity,
6576 add name class function.
6577 (cli_style_option::add_setshow_commands): Remove name argument.
6578 (highlight_style, title_style): New styles.
6579 * cli/cli-style.c (do_show): New function that shows a style
6580 characteristic styling the style name with itself.
6581 (set_style_name): New function.
6582 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
6583 Update all callers according to the changes in cli/cli-style.h.
6584 * utils.h (fputs_highlighted): New function.
6585 * utils.c (fputs_highlighted): Likewise.
6586
e2c52041
PW
65872019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6588
6589 * NEWS: Mention new pipe command and new convenience variables.
6590
947d3946
PW
65912019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6592
6593 * cli/cli-cmds.c (pipe_command): New function.
6594 (_initialize_cli_cmds): Call add_com for pipe_command.
6595 Define | as an alias for pipe.
6596 (exit_status_set_internal_vars): New function.
6597 (shell_escape): Call exit_status_set_internal_vars.
6598 cli/cli-decode.c (find_command_name_length): Recognize | as
6599 a single character command.
6600
b8fd0918
PW
66012019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6602
6603 * gdbcmd.h (execute_command_to_ui_file): New declaration.
6604 top.c (execute_command_to_ui_file): New function, mostly a copy
6605 of execute_command_to_string.
6606 (execute_command_to_string): Implement by calling
6607 execute_command_to_ui_file.
6608
68bb5386
PW
66092019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6610
6611 * top.h (saved_command_line): Remove declaration.
6612 * top.c (previous_saved_command_line, previous_repeat_arguments):
6613 New variables.
6614 (saved_command_line): Make static, define together with other
6615 'repeat variables'.
6616 (dont_repeat): Clear repeat_arguments.
6617 (repeat_previous, get_saved_command_line, save_command_line):
6618 New functions.
6619 (gdb_init): Initialize saved_command_line
6620 and previous_saved_command_line.
6621 * main.c (captured_main_1): Remove saved_command_line initialization.
6622 * event-top.c (handle_line_of_input): Update to use
6623 the new 'repeat' related functions instead of direct access to
6624 saved_command_line.
6625 * command.h (repeat_previous, get_saved_command_line,
6626 save_command_line): New declarations.
6627 (dont_repeat): Add comment.
6628
bfcdb852
TT
66292019-05-30 Tom Tromey <tromey@adacore.com>
6630
6631 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
6632 Fix comment.
6633 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
6634
0ef209f2
JV
66352019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
6636
6637 PR cli/24587
6638 * completer.c (complete): Initialize variable word.
6639
955b06fa
SDJ
66402019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
6641
6642 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6643 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
6644 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
6645 'body' is NULL to the outter 'if', protecting the '!is_define'
6646 situation as well.
6647
fa9c3fa0
TT
66482019-05-29 Tom Tromey <tromey@adacore.com>
6649
6650 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
6651 (dwarf_unknown): New function.
6652 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
6653 (dwarf_type_encoding_name): Use dwarf_unknown.
6654
4330d61d
TT
66552019-05-29 Tom Tromey <tromey@adacore.com>
6656
6657 PR c++/20020:
6658 * cp-valprint.c (cp_print_value_fields): Call
6659 cp_print_static_field inside "try".
6660
33a6bc35
TT
66612019-05-29 Tom Tromey <tromey@adacore.com>
6662
6663 * inflow.c (struct terminal_info): Add default operator=.
6664 * configure: Rebuild.
6665 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
6666 -Wdeprecated-copy-dtor, -Wredundant-move.
6667
000439d5
TT
66682019-05-29 Tom Tromey <tromey@adacore.com>
6669
6670 * NEWS: Add entry.
6671 * infcmd.c (print_return_value_1): Handle finish_print
6672 option.
6673 (show_print_finish): New function.
6674 (_initialize_infcmd): Add "set/show print finish" commands.
6675 * valprint.c (user_print_options): Initialize new member.
6676 * valprint.h (struct value_print_options) <finish_print>: New
6677 member.
6678
c0e70c62
TT
66792019-05-28 Tom Tromey <tromey@adacore.com>
6680
6681 * ada-lang.c (ada_remove_Xbn_suffix)
6682 (find_old_style_renaming_symbol)
6683 (parse_old_style_renaming): Remove.
6684 (ada_find_renaming_symbol): Don't call
6685 find_old_style_renaming_symbol.
6686 (ada_is_renaming_symbol): Rename from
6687 ada_find_renaming_symbol. Remove "block" parameter. Return
6688 bool. Now static.
6689 (ada_read_var_value): Update and simplify.
6690 * ada-exp.y (write_var_or_type): Remove old code.
6691
766f8836
AH
66922019-05-28 Alan Hayward <alan.hayward@arm.com>
6693
6694 * event-top.c: Remove include comment.
6695 * inflow.c (class scoped_ignore_sigttou): Move from here...
6696 * inflow.h (class scoped_ignore_sigttou): ...to here.
6697 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
6698 * top.c: Remove include comment.
6699
eb41253a
TT
67002019-05-27 Tom Tromey <tom@tromey.com>
6701
6702 * NEWS: Fix typo.
6703
4ca51187
TT
67042019-05-22 Tom Tromey <tromey@adacore.com>
6705
6706 * target.c (target_follow_exec): Constify parameter.
6707 * target-delegates.c: Rebuild.
6708 * remote.c (remote_target::follow_exec): Constify parameter.
6709 * infrun.c (follow_exec): Constify parameter.
6710 * target.h (struct target_ops) <follow_exec>: Constify parameter.
6711 (target_follow_exec): Likewise.
6712
8fca4da0
AH
67132019-05-22 Alan Hayward <alan.hayward@arm.com>
6714
6715 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
6716 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
6717
b7060614
AH
67182019-05-22 Alan Hayward <alan.hayward@arm.com>
6719
6720 * NEWS: Add debugredirect and testsuite sections.
6721
0a5954bd
SC
67222019-05-22 Simon Cook <simon.cook@embecosm.com>
6723
6724 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
6725 target descriptions using exclusively floating point register name
6726 aliases.
6727
dc42e902
AB
67282019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
6729
6730 PR gdb/18644:
6731 * f-lang.c (build_fortran_types): Handle the case where
6732 gdbarch_floatformat_for_type returns a nullptr.
6733
fb7806c7
TV
67342019-05-21 Tom de Vries <tdevries@suse.de>
6735
6736 PR cli/24587
6737 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
6738
34d11c68
AB
67392019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6740
6741 PR gdb/18644:
6742 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
6743 16-byte floats.
6744 * i386-tdep.c (i386_floatformat_for_type): Use
6745 floatformats_ia64_quad for the 16-byte floating point component
6746 within a fortran 32-byte complex number.
6747
122cf0f2
AB
67482019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6749
6750 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
6751 delete default constructor.
6752 (find_partial_die): Update to return const struct.
6753 (partial_die_parent_scope): Move variable declaration into scope
6754 of its use and change its type to auto.
6755 (guess_partial_die_structure_name): Likewise.
6756 (partial_die_info::fixup): Likewise.
6757
33d0e35a
TT
67582019-05-17 Tom Tromey <tromey@adacore.com>
6759
6760 * source.c (find_and_open_source): Remove cast.
6761
a45575b0
TT
67622019-05-17 Tom Tromey <tromey@adacore.com>
6763
6764 * annotate.c (annotate_source): Make "filename" const.
6765 * annotate.h (annotate_source): Use const.
6766
81f47ac2
AH
67672019-05-17 Alan Hayward <alan.hayward@arm.com>
6768
6769 * disasm.c (set_disassembler_options): Send errors to stderr.
6770
ca1285d1
AH
67712019-05-17 Alan Hayward <alan.hayward@arm.com>
6772
6773 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
6774 (cli_interp_base::set_logging): Check debug_redirect.
6775 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
6776 * cli/cli-logging.c (debug_redirect): Add static variable.
6777 (pop_output_files): Add default param.
6778 (handle_redirections): Print debug setting.
6779 (show_logging_command): Likewise.
6780 (_initialize_cli_logging): Add debugredirect command.
6781 * interps.c (current_interp_set_logging): Add debug_redirect
6782 parameter.
6783 * interps.h (set_logging): Add debug_redirect parameter.
6784 (current_interp_set_logging): Likewise.
6785 * mi/mi-common.h: Likewise.
6786 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
6787
67882019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
6789 Tom Tromey <tromey@adacore.com>
6790
6791 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
6792 directly.
6793 * cli/cli-interp.h (make_logging_output): Remove declaration.
6794 * cli/cli-logging.c (make_logging_output): Remove function.
6795 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
6796 directly.
6797 * ui-file.c (tee_file::tee_file): Remove bools.
6798 (tee_file::~tee_file): Remove deletes.
6799 * ui-file.h (tee_file): Remove bools.
6800
26648588
JV
68012019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
6802
6803 * mi/mi-cmds.h (mi_cmd_complete): New function.
6804 * mi/mi-main.c (mi_cmd_complete): Likewise.
6805 * mi/mi-cmds.c: Define new MI command -complete.
6806 * NEWS: Mention new -complete command.
6807
6e035501
JV
68082019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
6809
6810 * completer.h (complete): New function.
6811 * completer.c (complete): Likewise.
6812 * cli/cli-cmds.c: (complete_command): Update to use new complete()
6813 function defined in completer.h.
6814
7d0e2ece
JV
68152019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
6816
e79be6e5 6817 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 6818
fb816e8b
TV
68192019-05-17 Tom de Vries <tdevries@suse.de>
6820
6821 PR gdb/24094
6822 * dwarf2read.c (struct cu_partial_die_info): New struct.
6823 (find_partial_die): Return cu_partial_die_info.
6824 (partial_die_parent_scope, guess_partial_die_structure_name)
6825 (partial_die_info::fixup): Handle new return type of find_partial_die.
6826
677052f2
SDJ
68272019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6828
a1726c38 6829 PR breakpoints/24541
677052f2
SDJ
6830 * stap-probe.c (stap_parse_register_operand): Make "regname" an
6831 "std::string", simplifying the algorithm.
6832
f3da9116
SDJ
68332019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6834
6835 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
6836 (stap_static_probe_ops::get_probes): Likewise.
6837
f1bb75ab
SDJ
68382019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6839
6840 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
6841 '-')" and "else if".
6842 (stap_parse_single_operand): Join checks for
6843 "gdbarch_stap_parse_special_token_p" and
6844 "gdbarch_stap_parse_special_token" in the same "if" statement.
6845 Invert check when verifying for operation on register
6846 displacement.
6847
3ca58cde
SDJ
68482019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6849
6850 * stap-probe.c (stap_get_opcode): Update comment.
6851 (stap_get_expected_argument_type): Likewise.
6852 (handle_stap_probe): Likewise.
6853
af2d9bee
SDJ
68542019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6855
6856 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
6857 return type to 'bool'. Adjust comment. Use 'bool' when
6858 appropriate.
6859 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6860 * stap-probe.c (stap_parse_argument_1): Likewise.
6861 (stap_is_operator): Likewise.
6862 (stap_is_generic_prefix): Likewise.
6863 (stap_is_register_prefix): Likewise.
6864 (stap_is_register_indirection_prefix): Likewise.
6865 (stap_is_integer_prefix): Likewise.
6866 (stap_generic_check_suffix): Likewise.
6867 (stap_check_integer_suffix): Likewise.
6868 (stap_check_register_suffix): Likewise.
6869 (stap_check_register_indirection_suffix): Likewise.
6870 (stap_parse_register_operand): Likewise.
6871 (stap_parse_single_operand): Likewise.
6872 (stap_parse_argument_1): Likewise.
6873 (stap_probe::get_argument_count): Likewise.
6874 (stap_is_operator): Likewise.
6875
61c9c421
TT
68762019-05-16 Tom Tromey <tromey@adacore.com>
6877
6878 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
6879 keyword to foreach.
6880
9ddc1af1
SM
68812019-05-15 Simon Marchi <simon.marchi@efficios.com>
6882
6883 * linux-thread-db.c (try_thread_db_load_1): Change return type
6884 to bool.
6885 (try_thread_db_load): Likewise.
6886 (try_thread_db_load_from_pdir_1): Likewise.
6887 (try_thread_db_load_from_pdir): Likewise.
6888 (try_thread_db_load_from_sdir): Likewise.
6889 (try_thread_db_load_from_dir): Likewise.
6890 (thread_db_load_search): Likewise.
6891 (has_libpthread): Likewise.
6892 (thread_db_load): Likewise.
6893
7bede828
SDJ
68942019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
6895
6896 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6897 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
6898 NULL, and complain/return if that's the case.
6899
c5358db4
JD
69002019-05-15 John Darrington <john@darrington.wattle.id.au>
6901
6902 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
6903 (advance, posn, abstract_read_memory): New functions.
6904 [struct mem_read_abstraction]: New struct.
6905 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
6906
c408a94f
TT
69072019-05-14 Tom Tromey <tromey@adacore.com>
6908
6909 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
6910 value is not lval_memory.
6911
e7bd7fba
TT
69122019-05-14 Tom Tromey <tromey@adacore.com>
6913
6914 * solib.c (info_sharedlibrary_command): Style the file name.
6915
a6d0f249
AH
69162019-05-14 Alan Hayward <alan.hayward@arm.com>
6917
6918 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
6919 (aarch64_vnv_type): Likewise.
6920 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
6921 * common/tdesc.c: Likewise.
6922 * common/tdesc.h (enum tdesc_type_kind): Likewise.
6923 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
6924 * features/aarch64-fpu.xml: Add ieee half view.
6925 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
6926 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
6927 * gdbtypes.h (struct builtin_type): Likewise.
6928 (struct objfile_type): Likewise.
6929
66b8bb74
SM
69302019-05-12 Paul Naert <paul.naert@polymtl.ca>
6931
6932 * language.c (language_sniff_from_mangled_name): Fix "langauge"
6933 typo.
6934 * location.h (string_to_event_location): Likewise.
6935
21c219fd
JB
69362019-05-11 Joel Brobecker <brobecker@adacore.com>
6937
6938 GDB 8.3 released.
6939
13674803
SM
69402019-05-10 Simon Marchi <simon.marchi@efficios.com>
6941
6942 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
6943 New variable declaration.
6944 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
6945 New variable.
6946 (print_one_breakpoint): Use ui_out::test_flags and new global
6947 variable to compute use_fixed_output.
6948 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
6949 Remove.
6950 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
6951 (mi_multi_location_breakpoint_output_fixed): Remove.
6952 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
6953 new variable.
6954 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
6955 fix_multi_location_breakpoint_output flag if version >= 3.
6956 * ui-out.h (enum ui_out_flag)
6957 <fix_multi_location_breakpoint_output>: New enumerator.
6958
a9eac7f9
SM
69592019-05-10 Simon Marchi <simon.marchi@efficios.com>
6960
6961 * contrib/cc-with-tweaks.sh: Validate dwz's work.
6962
71bed2db
TT
69632019-05-10 Tom Tromey <tromey@adacore.com>
6964
6965 * ada-lang.c (catch_ada_completer): New function.
6966 (_initialize_ada_language): Use it.
6967
24c54127
TT
69682019-05-10 Tom Tromey <tromey@adacore.com>
6969
6970 * thread.c (print_thread_info): Make "requested_threads" const.
6971 * gdbthread.h (print_thread_info): Make "requested_threads"
6972 const.
6973 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
6974 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
6975
7a102139
TT
69762019-05-08 Tom Tromey <tom@tromey.com>
6977
6978 * gdbtypes.c (objfile_type_data): Change type.
6979 (objfile_type, _initialize_gdbtypes): Update.
6980
924d79e2
TT
69812019-05-08 Tom Tromey <tom@tromey.com>
6982
6983 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
6984 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
6985 (_initialize_dwarf2_frame): Update.
6986
4c58e337
TT
69872019-05-08 Tom Tromey <tom@tromey.com>
6988
6989 * objc-lang.c (objc_objfile_data): Change type.
6990 (find_methods): Update.
6991 (_initialize_objc_lang): Remove.
6992
d772d2ab
TT
69932019-05-08 Tom Tromey <tom@tromey.com>
6994
6995 * stabsread.c (rs6000_builtin_type_data): Change type.
6996 (rs6000_builtin_type, _initialize_stabsread): Update.
6997
d11d83f4
TT
69982019-05-08 Tom Tromey <tom@tromey.com>
6999
7000 * mips-tdep.c (mips_pdr_data): Remove.
7001 (_initialize_mips_tdep): Update.
7002
9a73f0ad
TT
70032019-05-08 Tom Tromey <tom@tromey.com>
7004
7005 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
7006 (hppa_init_objfile_priv_data, read_unwind_info)
7007 (find_unwind_entry, _initialize_hppa_tdep): Update.
7008
8127a2fa
TT
70092019-05-08 Tom Tromey <tom@tromey.com>
7010
7011 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
7012 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
7013 on obstack.
7014 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
7015
91d3055d
TT
70162019-05-08 Tom Tromey <tom@tromey.com>
7017
7018 * mdebugread.c (basic_type_data): Change type.
7019 (basic_type, _initialize_mdebugread): Update.
7020
31930bd3
TT
70212019-05-08 Tom Tromey <tom@tromey.com>
7022
7023 * common/gdb_unique_ptr.h (struct noop_deleter): New.
7024
bdb3ed9e
TT
70252019-05-08 Tom Tromey <tom@tromey.com>
7026
7027 * nto-tdep.c (nto_inferior_data_reg): Change type.
7028 (nto_inferior_data): Update.
7029 (nto_inferior_data_cleanup, nto_new_inferior_data)
7030 (_initialize_nto_tdep): Remove.
7031 * nto-tdep.h (struct nto_inferior_data): Add initializers.
7032
f37b313d
TT
70332019-05-08 Tom Tromey <tom@tromey.com>
7034
7035 * ada-lang.c (struct ada_inferior_data): Add initializers.
7036 (ada_inferior_data): Change type.
7037 (ada_inferior_data_cleanup): Remove.
7038 (get_ada_inferior_data, ada_inferior_exit)
7039 (struct ada_pspace_data): Add initializers, destructor.
7040 (ada_pspace_data_handle): Change type.
7041 (get_ada_pspace_data): Update.
7042 (ada_pspace_data_cleanup): Remove.
7043
24699405
TT
70442019-05-08 Tom Tromey <tom@tromey.com>
7045
7046 * coffread.c (struct coff_symfile_info): Add initializers.
7047 (coff_objfile_data_key): Move lower. Change type.
7048 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
7049 Update.
7050 (coff_free_info): Remove.
7051
d4e05d2f
TT
70522019-05-08 Tom Tromey <tom@tromey.com>
7053
7054 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
7055 (fbsd_pspace_data_handle): Move lower. Change type.
7056 (get_fbsd_pspace_data): Update.
7057 (fbsd_pspace_data_cleanup): Remove.
7058 (_initialize_fbsd_tdep): Update.
7059
14ef6690
TT
70602019-05-08 Tom Tromey <tom@tromey.com>
7061
7062 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
7063 (get_ada_tasks_pspace_data): Update.
7064 (ada_tasks_pspace_data_cleanup): Remove.
7065 (_initialize_tasks): Update.
7066 (ada_tasks_inferior_data_handle): Change type.
7067 (get_ada_tasks_inferior_data): Update.
7068 (ada_tasks_inferior_data_cleanup): Remove.
7069 (struct ada_tasks_pspace_data): Add initializers.
7070
814cf43a
TT
70712019-05-08 Tom Tromey <tom@tromey.com>
7072
7073 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
7074 * symfile-debug.c (debug_sym_get_probes): Change type.
7075 * stap-probe.c (handle_stap_probe):
7076 (stap_static_probe_ops::get_probes): Change type.
7077 * probe.h (class static_probe_ops) <get_probes>: Change type.
7078 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
7079 (parse_probes_in_pspace): Update.
7080 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
7081 Update.
7082 (any_static_probe_ops::get_probes): Change type.
7083 * elfread.c (elfread_data): New typedef.
7084 (probe_key): Change type.
7085 (elf_get_probes): Likewise. Update.
7086 (probe_key_free): Remove.
7087 (_initialize_elfread): Update.
7088 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
7089 Change type.
7090 (dtrace_process_dof_probe, dtrace_process_dof)
7091 (dtrace_static_probe_ops::get_probe): Change type.
7092
02dc647e
TT
70932019-05-08 Tom Tromey <tom@tromey.com>
7094
7095 * xcoffread.c (struct xcoff_symfile_info): Rename from
7096 coff_symfile_info. Add initializers.
7097 (xcoff_objfile_data_key): Move lower. Change type.
7098 (XCOFF_DATA): Rewrite.
7099 (xcoff_free_info): Remove.
7100 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
7101 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
7102 (xcoff_initial_scan): Update.
7103
09232438
TT
71042019-05-08 Tom Tromey <tom@tromey.com>
7105
7106 * solib-svr4.c (struct svr4_info): Add initializers and
7107 destructor.
7108 <probes_table>: Now an htab_up.
7109 (solib_svr4_pspace_data): Change type.
7110 (free_probes_table): Simplify.
7111 (~svr4_info): Rename from svr4_pspace_data_cleanup.
7112 (get_svr4_info, probes_table_htab_remove_objfile_probes)
7113 (probes_table_remove_objfile_probes, register_solib_event_probe)
7114 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
7115 (_initialize_svr4_solib): Update.
7116
7b4a314f
TT
71172019-05-08 Tom Tromey <tom@tromey.com>
7118
7119 * remote.c (remote_pspace_data): Change type.
7120 (remote_pspace_data_cleanup): Remove.
7121 (get_remote_exec_file, set_pspace_remote_exec_file)
7122 (_initialize_remote): Update.
7123
51d3063a
TT
71242019-05-08 Tom Tromey <tom@tromey.com>
7125
7126 * breakpoint.c (breakpoint_objfile_key): Change type.
7127 (get_breakpoint_objfile_data): Update.
7128 (free_breakpoint_objfile_data): Remove.
7129 (_initialize_breakpoint): Update.
7130
89fb8848
TT
71312019-05-08 Tom Tromey <tom@tromey.com>
7132
7133 * linux-tdep.c (struct linux_info): Add initializers.
7134 (linux_inferior_data): Move. Change type.
7135 (invalidate_linux_cache_inf): Update.
7136 (linux_inferior_data_cleanup): Remove.
7137 (get_linux_inferior_data, _initialize_linux_tdep): Update.
7138
e9b89e2d
TT
71392019-05-08 Tom Tromey <tom@tromey.com>
7140
7141 * auxv.c (auxv_inferior_data): Move. Change type.
7142 (auxv_inferior_data_cleanup): Remove.
7143 (invalidate_auxv_cache_inf): Rewrite.
7144 (get_auxv_inferior_data, _initialize_auxv): Update.
7145
8c42777c
TT
71462019-05-08 Tom Tromey <tom@tromey.com>
7147
7148 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
7149 (symfile_debug_objfile_data_key): Change type.
7150 (symfile_debug_installed, debug_qf_has_symbols)
7151 (debug_qf_find_last_source_symtab)
7152 (debug_qf_forget_cached_source_info)
7153 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
7154 (debug_qf_print_stats, debug_qf_dump)
7155 (debug_qf_expand_symtabs_for_function)
7156 (debug_qf_expand_all_symtabs)
7157 (debug_qf_expand_symtabs_with_fullname)
7158 (debug_qf_map_matching_symbols)
7159 (debug_qf_expand_symtabs_matching)
7160 (debug_qf_find_pc_sect_compunit_symtab)
7161 (debug_qf_map_symbol_filenames)
7162 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
7163 (debug_sym_new_init, debug_sym_init, debug_sym_read)
7164 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
7165 (debug_sym_read_linetable, debug_sym_relocate): Update.
7166 (symfile_debug_free_objfile): Remove.
7167 (install_symfile_debug_logging, _initialize_symfile_debug):
7168 Update.
7169
5bfd760d
TT
71702019-05-08 Tom Tromey <tom@tromey.com>
7171
7172 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
7173 allocate_on_obstack.
7174 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
7175 (get_dwarf2_per_objfile): Update.
7176 (set_dwarf2_per_objfile): Remove.
7177 (dwarf2_has_info, dwarf2_get_section_info): Update.
7178 (dwarf2_free_objfile): Remove.
7179 (_initialize_dwarf2_read): Update.
7180
e85e19b4
TT
71812019-05-08 Tom Tromey <tom@tromey.com>
7182
7183 * auto-load.c (struct auto_load_pspace_info): Add destructor and
7184 initializers.
7185 <unsupported_script_warning_printed,
7186 script_not_found_warning_printed>: Now bool.
7187 (auto_load_pspace_data): Change type.
7188 (~auto_load_pspace_info): Rename from
7189 auto_load_pspace_data_cleanup.
7190 (get_auto_load_pspace_data, init_loaded_scripts_info)
7191 (clear_section_scripts, maybe_print_unsupported_script_warning)
7192 (maybe_print_script_not_found_warning, _initialize_auto_load):
7193 Update.
7194
f6aa7436
TT
71952019-05-08 Tom Tromey <tom@tromey.com>
7196
7197 * objfiles.c (objfile_pspace_info): Add destructor and
7198 initializers.
7199 (objfiles_pspace_data): Change type.
7200 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
7201 (get_objfile_pspace_data): Update.
7202 (objfiles_bfd_data): Change type.
7203 (get_objfile_bfd_data): Update.
7204 (objfile_bfd_data_free, _initialize_objfiles): Remove.
7205
6ae614f6
TT
72062019-05-08 Tom Tromey <tom@tromey.com>
7207
7208 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
7209 Change type.
7210 (get_catch_syscall_inferior_data): Update.
7211 (catch_syscall_inferior_data_cleanup): Remove.
7212 (_initialize_break_catch_syscall): Update.
7213
6509b8eb
TT
72142019-05-08 Tom Tromey <tom@tromey.com>
7215
7216 * inflow.c (struct terminal_info): Add destructor and
7217 initializers.
7218 (inflow_inferior_data): Change type.
7219 (~terminal_info): Rename from inflow_inferior_data_cleanup.
7220 (get_inflow_inferior_data, inflow_inferior_exit)
7221 (swap_terminal_info, _initialize_inflow): Update.
7222
35632941
TT
72232019-05-08 Tom Tromey <tom@tromey.com>
7224
7225 * target-dcache.c (target_dcache_cleanup): Remove.
7226 (target_dcache_aspace_key): Change type.
7227 (target_dcache_init_p, target_dcache_invalidate)
7228 (target_dcache_get, target_dcache_get_or_init)
7229 (_initialize_target_dcache): Update.
7230 * dcache.h (struct dcache_deleter): New.
7231
3017b94d
TT
72322019-05-08 Tom Tromey <tom@tromey.com>
7233
7234 * symtab.c (struct symbol_cache): Add destructor and
7235 initializers.
7236 (symbol_cache_key): Move. Change type.
7237 (make_symbol_cache, free_symbol_cache): Remove.
7238 (get_symbol_cache): Update.
7239 (symbol_cache_cleanup): Remove.
7240 (ALL_PSPACES, symbol_cache_flush)
7241 (maintenance_print_symbol_cache)
7242 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
7243 Update.
7244
a32ad8c5
TT
72452019-05-08 Tom Tromey <tom@tromey.com>
7246
7247 * symtab.c (struct main_info): Add destructor and initializers.
7248 (main_progspace_key): Move. Change type.
7249 (get_main_info): Update.
7250 (main_info_cleanup): Remove.
7251 (_initialize_symtab): Update.
7252
5f6e90a0
TT
72532019-05-08 Tom Tromey <tom@tromey.com>
7254
7255 * registry.h (DECLARE_REGISTRY): Define the _key class.
7256
1bd0c6e4
AB
72572019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7258
7259 * NEWS: Merge two 'New commands' sections.
7260
2228ef77
XR
72612019-05-08 Joel Brobecker <brobecker@adacore.com>
7262
7263 * ada-valprint.c (ada_val_print_gnat_array): Remove language
7264 parameter and use Ada language definition instead.
7265 (ada_val_print_ptr): Remove unused language parameter.
7266 (ada_val_print_num): Remove language parameter and use Ada language
7267 definition instead.
7268 (ada_val_print_enum, ada_val_print_flt): Remove unused language
7269 parameter.
7270 (ada_val_print_struct_union, ada_val_print_ref): Remove language
7271 parameter and use Ada language definition instead.
7272 (ada_val_print_1): Update all ada_val_print_xxx calls.
7273 Remove language parameter.
7274 (ada_val_print): Update ada_val_print_1 call.
7275
60fcc1c3
TT
72762019-05-08 Tom Tromey <tromey@adacore.com>
7277
7278 * remote.c (remote_hw_watchpoint_limit)
7279 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
7280 Now static.
7281
ed2b7c17
TT
72822019-05-08 Tom Tromey <tromey@adacore.com>
7283
7284 * maint.c (_initialize_maint_cmds): Move initialization code to
7285 remote.c.
7286 (watchdog, show_watchdog): Move to remote.c.
7287 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
7288 "watchdog" static.
7289 (_initialize_remote): Move initialization code from maint.c.
7290 * defs.h (watchdog): Don't declare.
7291
b0be6c91
TT
72922019-05-08 Tom Tromey <tromey@adacore.com>
7293
7294 * tui/tui-interp.c: Include main.h.
7295 * interps.c: Include main.h.
7296 * main.h (interpreter_p): Declare.
7297 * defs.h (interpreter_p): Don't declare.
7298
587ee17b
TT
72992019-05-08 Tom Tromey <tromey@adacore.com>
7300
7301 * dwarf2loc.c: Include dwarf2read.h.
7302 * defs.h (read_unsigned_leb128): Don't declare.
7303 * dwarf2read.h (read_unsigned_leb128): Declare.
7304
ca1df239
TT
73052019-05-08 Tom Tromey <tromey@adacore.com>
7306
7307 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
7308 method.
7309
99f20f08
TT
73102019-05-08 Tom Tromey <tromey@adacore.com>
7311
7312 * utils.c (fputs_maybe_filtered): Reset style after paging, even
7313 when no wrap column is set.
7314
80e55b13
TT
73152019-05-08 Tom Tromey <tromey@adacore.com>
7316
7317 * c-lang.c (c_get_string): Handle non-C-style arrays.
7318
9d3421af
TT
73192019-05-08 Tom Tromey <tromey@adacore.com>
7320
7321 * typeprint.c (print_offset_data::update): Print the bit offset,
7322 not the number of bits remaining.
7323
844333e2
TT
73242019-05-08 Tom Tromey <tromey@adacore.com>
7325
7326 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
7327 padding at end of comment.
7328
988915ee
TT
73292019-05-08 Tom Tromey <tromey@adacore.com>
7330
7331 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
7332 Compare main types.
7333
26bfd823
TT
73342019-05-06 Tom Tromey <tom@tromey.com>
7335
7336 * common/scoped_mmap.c: Include common-defs.h.
7337 * common/scoped_mmap.h: Don't include config.h.
7338
89055eaa
TT
73392019-05-04 Tom Tromey <tom@tromey.com>
7340
7341 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
7342 (struct aarch64_call_info): Add initializers.
7343 <si>: Now a std::vector.
7344 (pass_on_stack, aarch64_push_dummy_call): Update.
7345
5da01df5
TT
73462019-05-04 Simon Marchi <simon.marchi@efficios.com>
7347 Tom Tromey <tom@tromey.com>
7348
7349 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
7350 (ppc_threads): Now a std::vector. Now static.
7351 (hwdebug_find_thread_points_by_tid)
7352 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
7353 Update.
7354
fbdf05a1
TT
73552019-05-04 Tom Tromey <tom@tromey.com>
7356
7357 * arc-tdep.c (arc_tdesc_init): Return bool.
7358
06d16ec9
TT
73592019-05-04 Tom Tromey <tom@tromey.com>
7360
7361 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
7362 Use gdb_assert_not_reached.
7363
9c056022
TT
73642019-05-04 Tom Tromey <tom@tromey.com>
7365
7366 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
7367 "false".
7368
fa9c2a59
TT
73692019-05-04 Tom Tromey <tom@tromey.com>
7370
7371 * arc-tdep.c (arc_tdesc_init): Use bool.
7372
e2eb806a
TT
73732019-05-04 Tom Tromey <tom@tromey.com>
7374
7375 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
7376
6fe87677
TT
73772019-05-04 Tom Tromey <tom@tromey.com>
7378
7379 * cli/cli-cmds.c (valid_command_p): Return bool.
7380
7f008c9e
TT
73812019-05-04 Tom Tromey <tom@tromey.com>
7382
7383 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
7384 * command.h (valid_user_defined_cmd_name_p): Channge return type.
7385
b6484282
RT
73862019-05-04 Raul Tambre <raul@tambre.ee>
7387
7388 * python/lib/gdb/prompt.py (_ExtendedPrompt)
7389 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
7390 operator for comparison.
7391
af97b416
TT
73922019-05-04 Tom Tromey <tom@tromey.com>
7393
7394 * psymtab.c (psymbol_name_matches, match_partial_symbol)
7395 (lookup_partial_symbol, print_partial_symbols)
7396 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
7397 (psymbol_compare): Update.
7398 (add_psymbol_to_bcache): Clear the entire psymbol.
7399 (maintenance_check_psymtabs): Update.
7400 * psympriv.h (struct partial_symbol): Don't derive from
7401 general_symbol_info.
7402 <obj_section, unrelocated_address, address,
7403 set_unrelocated_address>: Update.
7404 <ginfo>: New member.
7405 * dwarf-index-write.c (write_psymbols, debug_names::insert)
7406 (debug_names::write_psymbols): Update.
7407
9d6d4be8
TV
74082019-05-04 Tom de Vries <tdevries@suse.de>
7409
7410 * contrib/cc-with-tweaks.sh: Support -n arg.
7411
66452beb
PW
74122019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7413
7414 * corelow.c (core_target::detach): Ensure frame cache and
7415 register caches are cleared.
7416 inferior.c (exit_inferior_1): Likewise.
7417
bde09ab7
TT
74182019-05-03 Sandra Loosemore <sandra@codesourcery.com>
7419 Tom Tromey <tom@tromey.com>
7420
7421 * dictionary.c (collate_pending_symbols_by_language): Remove
7422 "struct" from foreach.
7423 * symtab.c (lookup_global_symbol_from_objfile)
7424 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
7425 foreach.
7426 * ser-tcp.c (net_open): Remove "struct" from foreach.
7427 * objfiles.c (objfile_relocate, objfile_rebase)
7428 (objfile_has_symbols): Remove "struct" from foreach.
7429 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
7430 from foreach.
7431 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
7432 foreach.
7433 * darwin-nat.c (thread_info_from_private_thread_info): Remove
7434 "struct" from foreach.
7435 * ada-lang.c (create_excep_cond_exprs)
7436 (ada_exception_catchpoint_cond_string): Remove "struct" from
7437 foreach.
7438
222a8d25
TT
74392019-05-03 Tom Tromey <tromey@adacore.com>
7440
7441 * ada-exp.y (convert_char_literal): Check suffix of each
7442 enumerator.
7443
fcd60b84
DP
74442019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
7445
7446 PR ada/21406:
7447 * ada-exp.y (yywrap): Don't define.
7448 * ada-lex.l (%option): Add noyywrap
7449 (yywrap): Remove.
7450
5f2459c2
EZ
74512019-05-03 Eli Zaretskii <eliz@gnu.org>
7452
353ea2d1
EZ
7453 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
7454 _WIN32_WINNT to the XP level, unless already defined to a higher
7455 level.
7456
7457 * unittests/parse-connection-spec-selftests.c:
7458 * ser-tcp.c:
7459 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
7460 override.
7461
5f2459c2
EZ
7462 * symfile.c (find_separate_debug_file): Remove colon from the
7463 drive spec of DOS/Windows file names of the target, so that the
7464 file name produced from DEBUGDIR and the target's directory will
7465 be valid on DOS/Windows systems.
7466
80062eb9
AB
74672019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
7468
7469 * rust-lang.c (val_print_struct): Handle printing structures
7470 containing strings.
7471
b8c05e85
TT
74722019-05-02 Tom Tromey <tromey@adacore.com>
7473
7474 * valarith.c (_initialize_valarith): Remove.
7475
4504bbde
TT
74762019-05-01 Tom Tromey <tromey@adacore.com>
7477
7478 * ada-lang.c (ada_value_primitive_field): Treat more fields as
7479 bitfields.
7480
d48e62f4
TT
74812019-05-01 Tom Tromey <tromey@adacore.com>
7482
7483 * ada-lang.c (ada_value_assign): Correctly compute starting offset
7484 for big-endian copies.
7485
15f18d14
AT
74862019-04-30 Ali Tamur <tamur@google.com>
7487 * gdb/dwarf2read.c (read_3_bytes): New declaration.
7488 (read_attribute_value): Added DW_FORM_strx1-4 cases.
7489 (read_3_bytes): New function.
7490
ab4ee614
JB
74912019-04-30 Joel Brobecker <brobecker@adacore.com>
7492
7493 * windows-nat.c (main_thread_id): Delete.
7494 (handle_output_debug_string): Replace main_thread_id by
7495 current_event.dwThreadId.
7496 (fake_create_process): Likewise.
7497 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
7498 Do not set main_thread_id.
7499 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
7500 current_event.dwThreadId.
7501 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
7502
8ed5b76e
JB
75032019-04-30 Joel Brobecker <brobecker@adacore.com>
7504
7505 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
7506 Use current_event.dwThreadId instead of main_thread_id.
7507
2ff0a947
TT
75082019-04-30 Tom Tromey <tromey@adacore.com>
7509
7510 * ada-lang.c (ada_lookup_simple_minsyms): New function.
7511 (create_excep_cond_exprs): Iterate over program spaces.
7512 (ada_exception_catchpoint_cond_string): Examine all minimal
7513 symbols for exception types.
7514
a776957c
TT
75152019-04-30 Tom Tromey <tromey@adacore.com>
7516
7517 PR c++/24470:
7518 * dwarf2read.c (process_structure_scope): Handle case where type
7519 has template parameters but no symbol was created.
7520
bc68014d
AB
75212019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7522 Chris January <chris.january@arm.com>
7523
7524 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
7525 qualifier.
7526 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
7527
f1fdc960
AB
75282019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7529
7530 * f-typeprint.c (f_print_type): Update rules for printing
7531 whitespace.
7532 (f_type_print_varspec_suffix): Likewise.
7533
bf7a4de1
AB
75342019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7535 Chris January <chris.january@arm.com>
7536
7537 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
7538 function arguments.
7539
bbe75b9d
AB
75402019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7541
7542 * f-lang.c (build_fortran_types): Change name of void type to
7543 lower case.
7544 * f-typeprint.c (f_type_print_base): Print the name of the void
7545 type, rather than a fixed string.
7546 * f-valprint.c (f_decorations): Use lower case void string.
7547
1db455a7
AB
75482019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7549 Chris January <chris.january@arm.com>
7550
7551 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
7552 types for Fortran.
7553
b6d03bb2
AB
75542019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7555 Chris January <chris.january@arm.com>
7556 David Lecomber <david.lecomber@arm.com>
7557
7558 * f-exp.y (BINOP_INTRINSIC): New token.
7559 (exp): New parser rule handling BINOP_INTRINSIC.
7560 (f77_keywords): Add new builtin procedures.
7561 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
7562 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7563 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
7564 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7565 (print_unop_subexp_f): New function.
7566 (print_binop_subexp_f): New function.
7567 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7568 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7569 (dump_subexp_body_f): Likewise.
7570 (operator_check_f): Likewise.
7571 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7572 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
7573
83228e93
AB
75742019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7575
7576 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
7577 UNOP_KIND.
7578 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
7579 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
7580 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
7581 (operator_length_f): New fuction.
7582 (print_subexp_f): New function.
7583 (op_name_f): New function.
7584 (dump_subexp_body_f): New function.
7585 (operator_check_f): New function.
7586 (exp_descriptor_f): Replace standard expression handling functions
7587 with new functions.
7588 * gdb/fortran-operator.def: New file.
7589 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
7590 * gdb/std-operator.def: Remove UNOP_KIND.
7591
6fdcd7cc
AB
75922019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7593
7594 * std-operator.def: Remove unbalanced, stray double quote
7595 character.
7596
2e62ab40
AB
75972019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7598 Chris January <chris.january@arm.com>
7599 Daniel Everett <daniel.everett@arm.com>
7600 Nick Forrington <nick.forrington@arm.com>
7601 Richard Bunt <richard.bunt@arm.com>
7602
7603 * cp-valprint.c (cp_print_value_fields): Allow an additional level
7604 of depth when printing anonymous structs or unions.
7605 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
7606 Don't print either the top-level value, or the children if the
7607 max-depth is exceeded.
7608 (ppscm_print_children): When printing the key of a map, allow one
7609 extra level of depth.
7610 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
7611 print either the top-level value, or the children if the max-depth
7612 is exceeded.
7613 (print_children): When printing the key of a map, allow one extra
7614 level of depth.
7615 * python/py-value.c (valpy_format_string): Add max_depth keyword.
7616 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
7617 (user_print_options): Initialise max_depth field.
7618 (val_print_scalar_or_string_type_p): New function.
7619 (val_print): Check to see if the max depth has been reached.
7620 (val_print_check_max_depth): Define new function.
7621 (show_print_max_depth): New function.
7622 (_initialize_valprint): Add 'print max-depth' option.
7623 * valprint.h (struct value_print_options) <max_depth>: New field.
7624 (val_print_check_max_depth): Declare new function.
7625 * NEWS: Document new feature.
7626
4be290b2
AB
76272019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7628
7629 * ada-lang.c (ada_language_defn): Initialise new field.
7630 * c-lang.c (c_is_string_type_p): New function.
7631 (c_language_defn): Initialise new field.
7632 (cplus_language_defn): Initialise new field.
7633 (asm_language_defn): Initialise new field.
7634 (minimal_language_defn): Initialise new field.
7635 * c-lang.h (c_is_string_type_p): Declare new function.
7636 * d-lang.c (d_language_defn): Initialise new field.
7637 * f-lang.c (f_is_string_type_p): New function.
7638 (f_language_defn): Initialise new field.
7639 * go-lang.c (go_is_string_type_p): New function.
7640 (go_language_defn): Initialise new field.
7641 * language.c (default_is_string_type_p): New function.
7642 (unknown_language_defn): Initialise new field.
7643 (auto_language_defn): Initialise new field.
7644 * language.h (struct language_defn) <la_is_string_type_p>: New
7645 member variable.
7646 (default_is_string_type_p): Declare new function.
7647 * m2-lang.c (m2_language_defn): Initialise new field.
7648 * objc-lang.c (objc_language_defn): Initialise new field.
7649 * opencl-lang.c (opencl_language_defn): Initialise new field.
7650 * p-lang.c (pascal_is_string_type_p): New function.
7651 (pascal_language_defn): Initialise new field.
7652 * rust-lang.c (rust_is_string_type_p): New function.
7653 (rust_language_defn): Initialise new field.
7654
721b08c6
AB
76552019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7656
7657 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
7658 New field.
7659 * ada-lang.c (ada_language_defn): Initialise new field.
7660 * c-lang.c (c_language_defn): Likewise.
7661 (cplus_language_defn): Likewise.
7662 (asm_language_defn): Likewise.
7663 (minimal_language_defn): Likewise.
7664 * d-lang.c (d_language_defn): Likewise.
7665 * f-lang.c (f_language_defn): Likewise.
7666 * go-lang.c (go_language_defn): Likewise.
7667 * language.c (unknown_language_defn): Likewise.
7668 (auto_language_defn): Likewise.
7669 * m2-lang.c (m2_language_defn): Likewise.
7670 * objc-lang.c (objc_language_defn): Likewise.
7671 * opencl-lang.c (opencl_language_defn): Likewise.
7672 * p-lang.c (pascal_language_defn): Likewise.
7673 * rust-lang.c (rust_language_defn): Likewise.
7674
fc913e53
AB
76752019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7676
7677 * ada-lang.c (ada_is_character_type): Change return type to bool.
7678 (ada_is_string_type): Likewise.
7679 * ada-lang.h (ada_is_character_type): Update declaration
7680 (ada_is_string_type): Likewise.
7681
fa731fa0
PW
76822019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7683
7684 Support style in 'frame|thread apply'
7685
7686 * gdbcmd.h (execute_command_to_string): New term_out parameter.
7687 * record.c (record_start, record_stop): Update callers of
7688 execute_command_to_string with false.
7689 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
7690 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
7691 methods.
7692 (class string_file): New constructor with term_out parameter.
7693 Override methods term_out and can_emit_style_escape. New member
7694 term_out.
7695 (class stdio_file): Override can_emit_style_escape.
7696 (class tee_file): Override term_out and can_emit_style_escape.
7697 * utils.h (can_emit_style_escape): Remove.
7698 * utils.c (can_emit_style_escape): Likewise.
7699 Update all callers of can_emit_style_escape (SOMESTREAM) to
7700 SOMESTREAM->can_emit_style_escape.
7701 * source-cache.c (source_cache::get_source_lines): Likewise.
7702 * stack.c (frame_apply_command_count): Call execute_command_to_string
7703 passing the term_out characteristic of the current gdb_stdout.
7704 * thread.c (thr_try_catch_cmd): Likewise.
7705 * top.c (execute_command_to_string): pass term_out parameter
7706 to construct the string_file for the command output.
7707 * ui-file.c (term_cli_styling): New function (most code moved
7708 from utils.c can_emit_style_escape).
7709 (string_file::string_file, string_file::can_emit_style_escape,
7710 stdio_file::can_emit_style_escape, tee_file::term_out,
7711 tee_file::can_emit_style_escape): New functions.
7712
136afab8
PW
77132019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7714
7715 * NEWS: Mention the new set|show may-call-functions.
7716 * infcall.c (may_call_functions_p): New variable.
7717 (show_may_call_functions_p): New function.
7718 (call_function_by_hand_dummy): Throws an error if not
7719 may-call-functions.
7720 (_initialize_infcall): Call add_setshow_boolean_cmd for
7721 may-call-functions.
7722
725cbb63
KS
77232019-04-25 Keith Seitz <keiths@redhat.com>
7724
7725 PR c++/24367
7726 * cp-support.c (inspect_type): Don't attempt substitutions
7727 of symbol with the same name.
7728
3d1cbb78
TT
77292019-04-25 Tom Tromey <tromey@adacore.com>
7730
7731 PR gdb/24475:
7732 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
7733 static.
7734
94aeb44b
TT
77352019-04-25 Tom Tromey <tromey@adacore.com>
7736
7737 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
7738 rvalue reference.
7739 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
7740 (gdb_xml_parser::parse): Use std::move.
7741 * python/python-internal.h (gdbpy_convert_exception): Take a const
7742 reference.
7743 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
7744 std::move.
7745 * python/py-utils.c (gdbpy_convert_exception): Take a const
7746 reference.
7747 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7748 Use std::move.
7749 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7750 Use std::move.
7751 * mi/mi-main.c (mi_print_exception): Take a const reference.
7752 * main.c (handle_command_errors): Take a const reference.
7753 * linespec.c (parse_linespec): Use std::move.
7754 * infcall.c (run_inferior_call): Use std::move.
7755 (call_function_by_hand_dummy): Use std::move.
7756 * exec.c (try_open_exec_file): Use std::move.
7757 * exceptions.h (exception_print, exception_fprintf)
7758 (exception_print_same): Update.
7759 * exceptions.c (print_exception, exception_print)
7760 (exception_fprintf, exception_print_same): Change parameters to
7761 const reference.
7762 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
7763 * common/new-op.c: Use std::move.
7764 * common/common-exceptions.h (struct gdb_exception): Add move
7765 constructor.
7766 (struct gdb_exception_error, struct gdb_exception_quit, struct
7767 gdb_quit_bad_alloc): Change constructor to move constructor.
7768 (throw_exception): Change parameter to rvalue reference.
7769 * common/common-exceptions.c (throw_exception): Take rvalue
7770 reference.
7771 * cli/cli-interp.c (safe_execute_command): Use std::move.
7772 * breakpoint.c (insert_bp_location, location_to_sals): Use
7773 std::move.
7774
680d7fd5
TT
77752019-04-25 Tom Tromey <tromey@adacore.com>
7776
7777 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
7778 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
7779 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
7780 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
7781 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
7782 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
7783 guile/scm-value.c: Use unpack.
7784 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
7785 gdbscm_gdb_exception.
7786 (gdbscm_throw_gdb_exception): Likewise.
7787 (struct gdbscm_gdb_exception): New.
7788 (unpack): New function.
7789 (gdbscm_wrap): Use unpack.
7790
c6fdd8b2
TT
77912019-04-25 Tom Tromey <tromey@adacore.com>
7792
7793 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7794 (gdb_rl_callback_handler): Use std::move.
7795 * common/common-exceptions.h (struct gdb_exception): Add move
7796 assignment operator.
7797 (throw_exception_sjlj): Change "exception" to const reference.
7798 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
7799 (throw_exception_sjlj): Change "exception" to const reference.
7800
cc06b668
TT
78012019-04-25 Tom Tromey <tromey@adacore.com>
7802
7803 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
7804 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
7805 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7806 Update.
7807 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7808 Update.
7809 * mi/mi-interp.c (mi_interp::exec): Update.
7810 * linespec.c (parse_linespec): Update.
7811 * infcall.c (run_inferior_call): Update.
7812 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
7813 * guile/scm-symbol.c (gdbscm_lookup_symbol)
7814 (gdbscm_lookup_global_symbol): Update.
7815 * guile/scm-param.c (gdbscm_parameter_value): Update.
7816 * guile/scm-frame.c (gdbscm_frame_read_register)
7817 (gdbscm_frame_read_var): Update.
7818 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7819 * exec.c (try_open_exec_file): Update.
7820 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7821 (gdb_rl_callback_handler): Update.
7822 * common/common-exceptions.h (exception_none): Don't declare.
7823 * common/common-exceptions.c (exception_none): Don't define.
7824 (struct catcher) <exception>: Update.
7825 * cli/cli-interp.c (safe_execute_command): Update.
7826 * breakpoint.c (insert_bp_location, location_to_sals): Update.
7827
cf532bd1
AT
78282019-04-25 Ali Tamur <tamur@google.com>
7829
7830 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
7831 (read_attribute_value): Likewise.
7832 (dwarf2_read_addr_index): Update comment.
7833 (read_str_index): Add DW_FORM_strx.
7834 (dwarf2_string_attr): Likewise.
7835 (dwarf2_const_value_attr): Likewise.
7836 (dump_die_shallow): Likewise.
7837 (dwarf2_fetch_constant_bytes): Likewise.
7838 (skip_form_bytes): Likewise.
7839 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
7840
82433e3e
SDJ
78412019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7842
7843 PR corefiles/11608
7844 PR corefiles/18187
7845 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
7846 OFFSET. Verify if current mapping contains an ELF header.
7847 (linux_find_memory_regions_full): Adjust call to
7848 dump_mapping_p.
7849
723adb65
SL
78502019-04-25 Sandra Loosemore <sandra@codesourcery.com>
7851 Kang Li <kanglictf@gmail.com>
7852
7853 PR gdb/21600
7854
7855 * dwarf2-frame.c (read_initial_length): Be consistent about using
7856 unsigned representation of length.
7857 (decode_frame_entry_1): Likewise. Check for wraparound of
7858 end pointer as well as buffer overflow.
7859
596179f7
SDJ
78602019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7861
7862 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
7863 "vq".
7864
a59240a4
TT
78652019-04-24 Tom Tromey <tromey@adacore.com>
7866
7867 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
7868
f872fdbb
AB
78692019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7870
7871 * s12z-tdep.c (s12z_unwind_pc): Delete.
7872 (s12z_unwind_sp): Delete.
7873 (s12z_gdbarch_init): Don't register deleted functions with
7874 gdbarch.
7875
b614e6f3
AB
78762019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7877
7878 * rl78-tdep.c (rl78_unwind_sp): Delete.
7879 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
7880
14faed38
AB
78812019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7882
7883 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
7884 (xstormy16_unwind_pc): Delete.
7885 (xstormy16_dummy_id): Delete.
7886 (xstormy16_gdbarch_init): Don't register deleted functions with
7887 gdbarch.
7888
541aad8a
AB
78892019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7890
7891 * vax-tdep.c (vax_unwind_pc): Delete.
7892 (vax_gdbarch_init): Don't register deleted function with gdbarch.
7893
29222070
AB
78942019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7895
7896 * v850-tdep.c (v850_unwind_sp): Delete.
7897 (v850_unwind_pc): Delete.
7898 (v850_dummy_id): Delete.
7899 (v850_gdbarch_init): Don't register deleted functions with
7900 gdbarch.
7901
0f534d76
AB
79022019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7903
7904 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
7905 (tilegx_unwind_pc): Delete.
7906 (tilegx_unwind_dummy_id): Delete.
7907 (tilegx_gdbarch_init): Don't register deleted functions with
7908 gdbarch.
7909
1ba7b7f9
AB
79102019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7911
7912 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
7913 (tic6x_dummy_id): Delete.
7914 (tic6x_gdbarch_init): Don't register deleted functions with
7915 gdbarch.
7916
d31f262c
AB
79172019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7918
7919 * sparc-tdep.c (sparc_unwind_pc): Delete.
7920 (sparc32_gdbarch_init): Don't register deleted function with
7921 gdbarch.
7922
6d14d64d
AB
79232019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7924
7925 * sh-tdep.c (sh_unwind_sp): Delete.
7926 (sh_unwind_pc): Delete.
7927 (sh_dummy_id): Delete.
7928 (sh_gdbarch_init): Don't register deleted functions with
7929 gdbarch.
7930
a40dde9d
AB
79312019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7932
7933 * score-tdep.c (score_unwind_sp): Delete.
7934 (score_unwind_pc): Delete.
7935 (score_dummy_id): Delete.
7936 (score_gdbarch_init): Don't register deleted functions with
7937 gdbarch.
7938
47c47d69
AB
79392019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7940
7941 * rx-tdep.c (rx_unwind_pc): Delete.
7942 (rx_unwind_sp): Delete.
7943 (rx_dummy_id): Delete.
7944 (rx_gdbarch_init): Don't register deleted functions with
7945 gdbarch. Update comment.
7946
833a4480
AB
79472019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7948
7949 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
7950 (rs6000_dummy_id): Delete.
7951 (rs6000_gdbarch_init): Don't register deleted functions with
7952 gdbarch.
7953
3f2cef49
AB
79542019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7955
7956 * or1k-tdep.c (or1k_dummy_id): Delete.
7957 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
7958
96acf884
AB
79592019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7960
7961 * nios2-tdep.c (nios2_dummy_id): Delete.
7962 (nios2_unwind_sp): Delete.
7963 (nios2_gdbarch_init): Don't register deleted functions with
7964 gdbarch.
7965
ca0ab0aa
AB
79662019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7967
7968 * nds32-tdep.c (nds32_dummy_id): Delete.
7969 (nds32_unwind_pc): Delete.
7970 (nds32_unwind_sp): Delete.
7971 (nds32_gdbarch_init): Don't register deleted functions with
7972 gdbarch.
7973
c8259044
AB
79742019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7975
7976 * msp430-tdep.c (msp430_unwind_pc): Delete.
7977 (msp430_unwind_sp): Delete.
7978 (msp430_dummy_id): Delete.
7979 (msp430_gdbarch_init): Don't register deleted functions with
7980 gdbarch.
7981
27f113c8
AB
79822019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7983
7984 * moxie-tdep.c (moxie_unwind_sp): Delete.
7985 (moxie_unwind_pc): Delete.
7986 (moxie_dummy_id): Delete.
7987 (moxie_gdbarch_init): Don't register deleted functions with
7988 gdbarch.
7989
aee6c3cd
AB
79902019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7991
7992 * mn10300-tdep.c (mn10300_dummy_id): Delete.
7993 (mn10300_unwind_pc): Delete.
7994 (mn10300_unwind_sp): Delete.
7995 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
7996 mn10300_unwind_sp.
7997 (mn10300_frame_unwind_init): Don't register deleted functions with
7998 gdbarch.
7999
8e2b5aea
AB
80002019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8001
8002 * mep-tdep.c (mep_unwind_pc): Delete.
8003 (mep_unwind_sp): Delete.
8004 (mep_dummy_id): Delete.
8005 (mep_gdbarch_init): Don't register deleted functions with
8006 gdbarch.
8007
43cf3ede
AB
80082019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8009
8010 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
8011 (m68hc11_unwind_sp): Delete.
8012 (m68hc11_gdbarch_init): Don't register deleted functions with
8013 gdbarch.
8014
5e79b7bb
AB
80152019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8016
8017 * m32r-tdep.c (m32r_unwind_sp): Delete.
8018 (m32r_unwind_pc): Delete.
8019 (m32r_dummy_id): Delete.
8020 (m32r_gdbarch_init): Don't register deleted functions with
8021 gdbarch.
8022
89b268d8
AB
80232019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8024
8025 * m32c-tdep.c (m32c_unwind_pc): Delete.
8026 (m32c_unwind_sp): Delete.
8027 (m32c_dummy_id): Delete.
8028 (m32c_gdbarch_init): Don't register deleted functions with
8029 gdbarch.
8030
946c28d2
AB
80312019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8032
8033 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
8034 (lm32_unwind_pc): Delete.
8035 (lm32_dummy_id): Delete.
8036 (lm32_gdbarch_init): Don't register deleted functions with
8037 gdbarch.
8038
bf12844a
AB
80392019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8040
8041 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
8042 (iq2000_unwind_pc): Delete.
8043 (iq2000_dummy_id): Delete.
8044 (iq2000_gdbarch_init): Don't register deleted functions with
8045 gdbarch.
8046
ecbc06d2
AB
80472019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8048
8049 * nds32-tdep.c (nds32_type_align): Delete.
8050 (nds32_push_dummy_call): Use type_align instead.
8051
030197b4
AB
80522019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8053
8054 * arm-tdep.c (arm_type_align): Only handle vector override case.
8055 (arm_push_dummy_call): Use type_align.
8056 (arm_gdbarch_init): Register arm_type_align gdbarch function.
8057
b907456c
AB
80582019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8059
8060 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
8061 case.
8062 (pass_on_stack): Use type_align.
8063 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
8064 function.
8065
9e97ba43
TT
80662019-04-23 Tom Tromey <tromey@adacore.com>
8067
8068 * dwarf2read.c (line_header::file_name_at): Remove unused
8069 overload.
8070
6892f601
TV
80712019-04-23 Tom de Vries <tdevries@suse.de>
8072
8073 PR gdb/24438
8074 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
8075 invocation.
8076
336d760d
AT
8077
80782019-03-27 Ali Tamur <tamur@google.com>
8079
8080 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
8081 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
8082 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
8083 (dwarf_expr_context::get_addr_index): Likewise
8084 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
8085 (symbol_needs_eval_context::get_addr_index): Likewise
8086 (disassemble_dwarf_expression): Add DW_OP_addrx
8087 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
8088 (read_cutu_die_from_dwo): Update comment
8089 (skip_one_die): Add DW_FORM_addrx
8090 (read_attribute_value): Likewise
8091 (var_decode_location): Add DW_OP_addrx
8092 (dwarf2_const_value_attr): Add DW_FORM_addrx
8093 (dump_die_shallow): Likewise
8094 (dwarf2_fetch_constant_bytes): Likewise
8095 (decode_locdesc): Add DW_OP_addrx
8096 (skip_form_bytes): Add DW_FORM_addrx
8097
ad9d13f8
AT
80982019-04-22 Ali Tamur <tamur@google.com>
8099
8100 * MAINTAINERS (Write After Approval): Add self.
8101
d70cc3ba
SM
81022019-04-22 Simon Marchi <simon.marchi@efficios.com>
8103
8104 * solib-svr4.c (get_svr4_info): Add pspace parameter.
8105 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
8106 (open_symbol_file_object): Likewise.
8107 (svr4_default_sos): Add info parameter.
8108 (svr4_read_so_list): Likewise.
8109 (svr4_current_sos_direct): Adjust functions calls to pass down
8110 info.
8111 (svr4_current_sos_1): Add info parameter.
8112 (svr4_current_sos): Call get_svr4_info, pass info down to
8113 svr4_current_sos_1.
8114 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
8115 get_svr4_info.
8116 (svr4_in_dynsym_resolve_code): Pass current_program_space to
8117 get_svr4_info.
8118 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
8119 to get_svr4_info.
8120 (probes_table_remove_objfile_probes): Likewise.
8121 (register_solib_event_probe): Add info parameter.
8122 (solist_update_incremental): Pass info parameter down to
8123 svr4_read_so_list.
8124 (disable_probes_interface): Add info parameter.
8125 (svr4_handle_solib_event): Pass current_program_space to
8126 get_svr4_info. Adjust disable_probes_interface cleanup.
8127 (svr4_create_probe_breakpoints): Add info parameter, pass it
8128 down to register_solib_event_probe.
8129 (svr4_create_solib_event_breakpoints): Add info parameter,
8130 pass it down to svr4_create_probe_breakpoints.
8131 (enable_break): Pass info down to
8132 svr4_create_solib_event_breakpoints.
8133 (svr4_solib_create_inferior_hook): Pass current_program_space to
8134 get_svr4_info.
8135 (svr4_clear_solib): Likewise.
8136
7905fc35
PA
81372019-04-22 Pedro Alves <palves@redhat.com>
8138
8139 * solib-svr4.c (svr4_free_objfile_observer): New.
8140 (probe_and_action::objfile): New field.
8141 (probes_table_htab_remove_objfile_probes)
8142 (probes_table_remove_objfile_probes): New functions.
8143 (register_solib_event_probe): Add 'objfile' parameter. Store it
8144 in the new probe_and_action. Don't store the probe in 'lookup'.
8145 (svr4_create_probe_breakpoints): Pass objfile to
8146 register_solib_event_probe.
8147 (_initialize_svr4_solib): Register a free_objfile observer.
8148
fb881986
TT
81492019-04-19 Tom Tromey <tom@tromey.com>
8150
8151 * common/queue.h: Remove.
8152
8732db6c
TT
81532019-04-19 Tom Tromey <tom@tromey.com>
8154
8155 * event-loop.c: Don't include "common/queue.h".
8156
97dfbadd
TT
81572019-04-19 Tom Tromey <tom@tromey.com>
8158
8159 * remote.c (remote_target): Use delete.
8160 * remote-notif.h: Include <list>, not "common/queue.h".
8161 (notif_client_p): Remove typedef.
8162 (remote_notif_state): Add constructor, destructor, initializer.
8163 <notif_queue>: Now a std::list.
8164 (remote_notif_state_xfree): Don't declare.
8165 * remote-notif.c (remote_notif_process, handle_notification)
8166 (remote_notif_state_allocate): Update.
8167 (~remote_notif_state): Rename from remote_notif_state_xfree.
8168
cf250e36
TT
81692019-04-19 Tom Tromey <tom@tromey.com>
8170
8171 * symfile.c (reread_symbols): Update.
8172 * objfiles.c (objfile_register_static_link)
8173 (objfile_lookup_static_link): Update
8174 (~objfile) Don't delete static_links.
8175 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
8176
61f4b350
TT
81772019-04-19 Tom Tromey <tom@tromey.com>
8178
8179 * type-stack.h (struct type_stack) <insert>: Constify string.
8180 * type-stack.c (type_stack::insert): Constify string.
8181 * gdbtypes.h (lookup_template_type): Update.
8182 (address_space_name_to_int): Update.
8183 * gdbtypes.c (address_space_name_to_int): Make space_identifier
8184 const.
8185 (lookup_template_type): Make name const.
8186 * c-exp.y: Update rules.
8187 (lex_one_token, classify_name, classify_inner_name)
8188 (c_print_token): Update.
8189 * p-exp.y: Update rules.
8190 (yylex): Update.
8191 * f-exp.y: Update rules.
8192 (yylex): Update.
8193 * d-exp.y: Update rules.
8194 (lex_one_token, classify_name, classify_inner_name): Update.
8195 * parse.c (write_dollar_variable, copy_name): Return std::string.
8196 * parser-defs.h (copy_name): Change return type.
8197 * m2-exp.y: Update rules.
8198 (yylex): Update.
8199 * go-exp.y (lex_one_token): Update.
8200 Update rules.
8201 (classify_unsafe_function, classify_packaged_name)
8202 (classify_name, yylex): Update.
8203
189b8c2e
ST
82042019-04-19 Sergei Trofimovich <siarheit@google.com>
8205
8206 * configure.ac: add --enable-source-highlight switch.
8207 * configure: Regenerate.
8208 * top.c (print_gdb_version): plumb --enable-source-highlight
8209 status to "show configuration".
8210
8ecb59f8
TT
82112019-04-19 Tom Tromey <tromey@adacore.com>
8212
8213 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
8214 Check ADA_TYPE_P.
8215 (empty_record, ada_template_to_fixed_record_type_1)
8216 (template_to_static_fixed_type)
8217 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
8218 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
8219 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
8220 macros.
8221
62160ec9
TT
82222019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
8223
8224 PR symtab/24423:
8225 * source.c (print_source_lines_base): Advance "iter" when a
8226 control character is seen.
8227
f2ae8bc8
PW
82282019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8229
8230 * inferior.h (struct infcall_suspend_state_deleter):
8231 Catch exception in destructor to avoid crash.
8232
d563b953
PW
82332019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8234
8235 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
8236 close to the add_com "shell".
8237
dc34c897
TT
82382019-04-18 Tom Tromey <tromey@adacore.com>
8239
8240 * process-stratum-target.h (class process_stratum_target)
8241 <stratum>: Add "final".
8242
a12e5744
TT
82432019-04-17 Tom Tromey <tromey@adacore.com>
8244
8245 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
8246 against nullptr before use.
8247
a7e559cc
AH
82482019-04-17 Alan Hayward <alan.hayward@arm.com>
8249
8250 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
8251
c01660c6
AB
82522019-04-17 Jim Wilson <jimw@sifive.com>
8253 Andrew Burgess <andrew.burgess@embecosm.com>
8254
8255 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
8256 code read might fail, assume 4-byte breakpoint in that case.
8257
4aa866af
LS
82582019-04-15 Leszek Swirski <leszeks@google.com>
8259
8260 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
8261 rather than a hand-rolled POD check when checking for forced MEMORY
8262 classification.
8263
48574d91
AH
82642019-04-15 Alan Hayward <alan.hayward@arm.com>
8265
8266 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
8267 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
8268 function.
8269 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
8270 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
8271 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
8272 declaration.
8273
4da037ef
AH
82742019-04-15 Alan Hayward <alan.hayward@arm.com>
8275
8276 * aarch64-linux-nat.c
8277 (aarch64_linux_nat_target::thread_architecture): Add override.
8278 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
8279 each VQ.
8280
ccb8d7e8
AH
82812019-04-15 Alan Hayward <alan.hayward@arm.com>
8282
8283 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
8284
35add35e
AB
82852019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
8286
8287 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
8288 target types of size 96-bits, add some additional comments, and
8289 check that the builtin type we found was the correct size.
8290
51196bbc
EZ
82912019-04-12 Eli Zaretskii <eliz@gnu.org>
8292
8293 * utils.c (prompt_for_continue): Don't restore the styling at the
8294 end, as applied_style has the wrong value. This fixes styling in
8295 long lists of file names that are interrupted by the "Continue?"
8296 prompt.
8297
62253a61
AB
82982019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
8299
8300 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
8301 * c-lang.c (c_language_defn): Likewise.
8302 (cplus_language_defn): Likewise.
8303 (asm_language_defn): Likewise.
8304 (minimal_language_defn): Likewise.
8305 * d-lang.c (d_language_defn): Likewise.
8306 * f-lang.c (f_language_defn): Likewise.
8307 * go-lang.c (go_language_defn): Likewise.
8308 * language.c (unknown_language_defn): Likewise.
8309 (auto_language_defn): Likewise.
8310 * language.h (struct language_defn): Remove la_magic field.
8311 (LANG_MAGIC): Delete.
8312 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
8313 * objc-lang.c (objc_language_defn): Likewise.
8314 * opencl-lang.c (opencl_language_defn): Likewise.
8315 * p-lang.c (pascal_language_defn): Likewise.
8316 * rust-lang.c (rust_language_defn): Likewise.
8317
a9158a86
AB
83182019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8319
8320 * riscv-tdep.c (riscv_type_align): New function.
8321 (riscv_type_alignment): Delete.
8322 (riscv_arg_location): Use 'type_align'.
8323 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
8324
41077b66
AB
83252019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8326
8327 * gdbtypes.c (type_align): A struct with no non-static fields also
8328 has alignment of 1.
8329
9f0272f8
AB
83302019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8331
8332 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
8333 component to 0.
8334 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
8335 member.
8336 (riscv_struct_info::analyse): New implementation using new
8337 analyse_inner member function.
8338 (riscv_struct_info::field_offset): New member function.
8339 (riscv_struct_info::m_offsets): New member variable.
8340 (riscv_struct_info::analyse_inner): New private member function,
8341 takes the old implementation of riscv_struct_info::analyse but
8342 extended to track field offsets.
8343 (riscv_call_arg_struct): Update the struct folding special cases
8344 to handle cases where empty C++ structs, which are non-zero
8345 length, are found.
8346 (riscv_arg_location): Initialise the length of each location, a
8347 non-zero length now indicates the location is in use.
8348 (riscv_push_dummy_call): Allow for the first location having a
8349 non-zero offset when setting up arguments.
8350 (riscv_return_value): Likewise, but for return values.
8351
02cf60c7
TT
83522019-04-11 Tom Tromey <tromey@adacore.com>
8353
8354 * utils.c (internal_vproblem): Make "msg" const.
8355
68811f8f
AH
83562019-04-11 Alan Hayward <alan.hayward@arm.com>
8357
8358 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
8359 * trad-frame.c (trad_frame_reset_saved_regs): New function.
8360 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
8361 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
8362
3f52fdbc
KB
83632019-04-10 Kevin Buettner <kevinb@redhat.com>
8364
8365 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
8366 function.
8367 (fill_gregset): Call amd64_linux_collect_native_gregset instead
8368 of amd64_collect_native_gregset.
8369 (amd64_linux_nat_target::store_registers): Likewise.
8370
e9ad22ee
TT
83712019-04-10 Tom Tromey <tom@tromey.com>
8372
8373 * symtab.c (lookup_global_symbol_from_objfile)
8374 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
8375 * objfiles.h (class separate_debug_iterator): New.
8376 (class separate_debug_range): New.
8377 (struct objfile) <separate_debug_objfiles>: New method.
8378 (objfile_separate_debug_iterate): Don't declare.
8379 * objfiles.c (separate_debug_iterator::operator++): Rename from
8380 objfile_separate_debug_iterate.
8381 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
8382 iterator.
8383 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
8384 iterator.
8385
ee371134
TT
83862019-04-10 Tom Tromey <tom@tromey.com>
8387
8388 * symfile.c (reread_symbols): Remove old comment.
8389 * objfiles.c (free_all_objfiles): Fix a typo.
8390
bf227d61
TT
83912019-04-10 Tom Tromey <tom@tromey.com>
8392
8393 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
8394 * minsyms.c (lookup_minimal_symbol): Use foreach.
8395 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8396 (lookup_minimal_symbol_solib_trampoline): Likewise.
8397 * symfile.c (reread_symbols): Use foreach.
8398
8dc433a0
TT
83992019-04-09 Ivan Begert <ivanbegert@gmail.com>
8400 Tom Tromey <tromey@adacore.com>
8401
8402 PR rust/24414:
8403 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
8404 (rust_lex_int_test): Change "value" to be LONGEST.
8405 (rust_lex_tests): Add test for long integer literal.
8406
9ab8741a
TT
84072019-04-09 Tom Tromey <tromey@adacore.com>
8408
8409 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
8410 to bool.
8411 (extended_remote_target::attach): Update.
8412 (remote_target::remote_notice_new_inferior): Update.
8413 (remote_target::add_current_inferior_and_thread): Update.
8414 * inferior.c (exit_inferior_1): Use "false".
8415 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
8416
e242fd12
SM
84172019-04-09 Simon Marchi <simon.marchi@efficios.com>
8418
9ca1957f 8419 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
8420 the "start" command.
8421
2b0c8b01
KB
84222019-04-08 Kevin Buettner <kevinb@redhat.com>
8423
8424 * python/py-inferior.c (infpy_thread_from_thread_handle):
8425 Adjust comments to reflect renaming of thread_from_thread_handle
8426 to thread_from_handle. Adjust keywords. Fix type error message.
8427 (inferior_object_methods): Add thread_from_handle. Retain
8428 thread_from_thread_handle, but mark it as deprecated.
8429
50a82723
KB
84302019-04-08 Kevin Buettner <kevinb@redhat.com>
8431
8432 * gdbthread.h (find_thread_by_handle): Revise declaration.
8433 * thread.c (find_thread_by_handle): Likewise. Adjust
8434 implementation too.
8435 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
8436 support for buffer objects as handles.
8437
cf63b016
KB
84382019-04-08 Kevin Buettner <kevinb@redhat.com>
8439
8440 * python/py-infthread.c (thpy_thread_handle): New function.
8441 (thread_object_methods): Register thpy_thread_handle.
8442
3d6c6204
KB
84432019-04-08 Kevin Buettner <kevinb@redhat.com>
8444
8445 * gdbthread.h (thread_to_thread_handle): Declare.
8446 * thread.c (gdbtypes.h): Include.
8447 (thread_to_thread_handle): New function.
8448
8449 * target.h (struct target_ops): Add thread_info_to_thread_handle.
8450 (target_thread_info_to_thread_handle): Declare.
8451 * target.c (target_thread_info_to_thread_handle): New function.
8452 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
8453 * target-delegates.c: Regenerate.
8454
8455 * linux-thread-db.c (class thread_db_target): Add method
8456 thread_info_to_thread_handle.
8457 (thread_db_target::thread_info_to_thread_handle): Define.
8458 * remote.c (class remote_target): Add new method
8459 thread_info_to_thread_handle.
8460 (remote_target::thread_info_to_thread_handle): Define.
8461
56be6ea8
PA
84622019-04-08 Pedro Alves <palves@redhat.com>
8463
8464 * common/common-exceptions.c (throw_exception): Don't create
8465 named object to throw; throw directly.
8466 (throw_it): Likewise. Don't initialize gdb_exception::message
8467 here, with new; pass FMT and AP to the ctor instead.
8468 * common/common-exceptions.h: Include <string>.
8469 (gdb_exception::gdb_exception(enum return_reason, enum errors,
8470 const char *, va_list)): New ctor. Use std::make_shared.
8471 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
8472 errors)): Delete.
8473 (gdb_exception_error::gdb_exception_error(enum errors, const char
8474 *, va_list)): New.
8475 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
8476 Add assertion.
8477 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
8478 errors)): Delete.
8479 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
8480 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
8481 Add assertion.
8482
eedc3f4f
TT
84832019-04-08 Tom Tromey <tom@tromey.com>
8484
8485 * valops.c (value_rtti_indirect_type): Replace throw_exception
8486 with throw.
8487 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
8488 with throw.
8489 * thread.c (thr_try_catch_cmd): Replace throw_exception with
8490 throw.
8491 * target.c (target_translate_tls_address): Replace throw_exception
8492 with throw.
8493 * stack.c (frame_apply_command_count): Replace throw_exception
8494 with throw.
8495 * solib-spu.c (append_ocl_sos): Replace throw_exception with
8496 throw.
8497 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
8498 with throw.
8499 * rs6000-tdep.c (rs6000_frame_cache)
8500 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
8501 * remote.c: Replace throw_exception with throw.
8502 * record-full.c (record_full_message, record_full_wait_1)
8503 (record_full_restore): Replace throw_exception with throw.
8504 * record-btrace.c:
8505 (get_thread_current_frame_id, record_btrace_start_replaying)
8506 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
8507 (cmd_record_btrace_start): Replace throw_exception with throw.
8508 * parse.c (parse_exp_in_context_1): Replace throw_exception with
8509 throw.
8510 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
8511 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
8512 * linespec.c:
8513 (find_linespec_symbols): Replace throw_exception with throw.
8514 * infrun.c (displaced_step_prepare, resume): Replace
8515 throw_exception with throw.
8516 * infcmd.c (post_create_inferior): Replace throw_exception with
8517 throw.
8518 * inf-loop.c (inferior_event_handler): Replace throw_exception
8519 with throw.
8520 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
8521 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
8522 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
8523 (get_prev_frame_always, get_frame_pc_if_available)
8524 (get_frame_address_in_block_if_available, get_frame_language):
8525 Replace throw_exception with throw.
8526 * frame-unwind.c (frame_unwind_try_unwinder): Replace
8527 throw_exception with throw.
8528 * eval.c (fetch_subexp_value, evaluate_var_value)
8529 (evaluate_funcall, evaluate_subexp_standard): Replace
8530 throw_exception with throw.
8531 * dwarf2loc.c (call_site_find_chain)
8532 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
8533 Replace throw_exception with throw.
8534 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
8535 with throw.
8536 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
8537 throw.
8538 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
8539 * completer.c (complete_line_internal): Replace throw_exception
8540 with throw.
8541 * compile/compile-object-run.c (compile_object_run): Replace
8542 throw_exception with throw.
8543 * cli/cli-script.c (process_next_line): Replace throw_exception
8544 with throw.
8545 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
8546 (btrace_enable, btrace_maint_update_pt_packets): Replace
8547 throw_exception with throw.
8548 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
8549 throw_exception with throw.
8550 * break-catch-throw.c (re_set_exception_catchpoint): Replace
8551 throw_exception with throw.
8552 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
8553 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
8554 * aarch64-tdep.c (aarch64_make_prologue_cache)
8555 (aarch64_make_stub_cache): Replace throw_exception with throw.
8556
26003a20
TT
85572019-04-08 Tom Tromey <tom@tromey.com>
8558
8559 * common/common-exceptions.c (throw_exception): Rename from
8560 throw_exception_cxx. Remove old copy. Make argument const.
8561 (throw_it): Create and throw exception objects directly.
8562 * common/common-exceptions.h (throw_exception): Make argument
8563 const.
8564 (struct gdb_exception_error): Add constructor.
8565 (struct gdb_exception_quit): Add constructor.
8566
d272eb37
TT
85672019-04-08 Tom Tromey <tom@tromey.com>
8568
8569 * common/common-exceptions.h (exception_rethrow): Don't declare.
8570 (TRY_SJLJ): Update comment.
8571 (TRY, CATCH, END_CATCH): Remove.
8572 * common/common-exceptions.c (exception_rethrow): Remove.
8573
230d2906
TT
85742019-04-08 Tom Tromey <tom@tromey.com>
8575
8576 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
8577 Remove.
8578 (gdb_exception_error): Rename from
8579 gdb_exception_RETURN_MASK_ERROR.
8580 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
8581 (gdb_quit_bad_alloc): Update.
8582 * aarch64-tdep.c: Update.
8583 * ada-lang.c: Update.
8584 * ada-typeprint.c: Update.
8585 * ada-valprint.c: Update.
8586 * amd64-tdep.c: Update.
8587 * arch-utils.c: Update.
8588 * break-catch-throw.c: Update.
8589 * breakpoint.c: Update.
8590 * btrace.c: Update.
8591 * c-varobj.c: Update.
8592 * cli/cli-cmds.c: Update.
8593 * cli/cli-interp.c: Update.
8594 * cli/cli-script.c: Update.
8595 * common/common-exceptions.c: Update.
8596 * common/new-op.c: Update.
8597 * common/selftest.c: Update.
8598 * compile/compile-c-symbols.c: Update.
8599 * compile/compile-cplus-symbols.c: Update.
8600 * compile/compile-object-load.c: Update.
8601 * compile/compile-object-run.c: Update.
8602 * completer.c: Update.
8603 * corelow.c: Update.
8604 * cp-abi.c: Update.
8605 * cp-support.c: Update.
8606 * cp-valprint.c: Update.
8607 * darwin-nat.c: Update.
8608 * disasm-selftests.c: Update.
8609 * dtrace-probe.c: Update.
8610 * dwarf-index-cache.c: Update.
8611 * dwarf-index-write.c: Update.
8612 * dwarf2-frame-tailcall.c: Update.
8613 * dwarf2-frame.c: Update.
8614 * dwarf2loc.c: Update.
8615 * dwarf2read.c: Update.
8616 * eval.c: Update.
8617 * event-loop.c: Update.
8618 * event-top.c: Update.
8619 * exec.c: Update.
8620 * f-valprint.c: Update.
8621 * fbsd-tdep.c: Update.
8622 * frame-unwind.c: Update.
8623 * frame.c: Update.
8624 * gdbtypes.c: Update.
8625 * gnu-v3-abi.c: Update.
8626 * guile/guile-internal.h: Update.
8627 * guile/scm-block.c: Update.
8628 * guile/scm-breakpoint.c: Update.
8629 * guile/scm-cmd.c: Update.
8630 * guile/scm-disasm.c: Update.
8631 * guile/scm-frame.c: Update.
8632 * guile/scm-lazy-string.c: Update.
8633 * guile/scm-math.c: Update.
8634 * guile/scm-param.c: Update.
8635 * guile/scm-ports.c: Update.
8636 * guile/scm-pretty-print.c: Update.
8637 * guile/scm-symbol.c: Update.
8638 * guile/scm-symtab.c: Update.
8639 * guile/scm-type.c: Update.
8640 * guile/scm-value.c: Update.
8641 * i386-linux-tdep.c: Update.
8642 * i386-tdep.c: Update.
8643 * inf-loop.c: Update.
8644 * infcall.c: Update.
8645 * infcmd.c: Update.
8646 * infrun.c: Update.
8647 * jit.c: Update.
8648 * language.c: Update.
8649 * linespec.c: Update.
8650 * linux-fork.c: Update.
8651 * linux-nat.c: Update.
8652 * linux-tdep.c: Update.
8653 * linux-thread-db.c: Update.
8654 * main.c: Update.
8655 * mi/mi-cmd-break.c: Update.
8656 * mi/mi-cmd-stack.c: Update.
8657 * mi/mi-interp.c: Update.
8658 * mi/mi-main.c: Update.
8659 * objc-lang.c: Update.
8660 * p-valprint.c: Update.
8661 * parse.c: Update.
8662 * ppc-linux-tdep.c: Update.
8663 * printcmd.c: Update.
8664 * python/py-arch.c: Update.
8665 * python/py-breakpoint.c: Update.
8666 * python/py-cmd.c: Update.
8667 * python/py-finishbreakpoint.c: Update.
8668 * python/py-frame.c: Update.
8669 * python/py-framefilter.c: Update.
8670 * python/py-gdb-readline.c: Update.
8671 * python/py-inferior.c: Update.
8672 * python/py-infthread.c: Update.
8673 * python/py-lazy-string.c: Update.
8674 * python/py-linetable.c: Update.
8675 * python/py-objfile.c: Update.
8676 * python/py-param.c: Update.
8677 * python/py-prettyprint.c: Update.
8678 * python/py-progspace.c: Update.
8679 * python/py-record-btrace.c: Update.
8680 * python/py-record.c: Update.
8681 * python/py-symbol.c: Update.
8682 * python/py-type.c: Update.
8683 * python/py-unwind.c: Update.
8684 * python/py-utils.c: Update.
8685 * python/py-value.c: Update.
8686 * python/python.c: Update.
8687 * record-btrace.c: Update.
8688 * record-full.c: Update.
8689 * remote-fileio.c: Update.
8690 * remote.c: Update.
8691 * riscv-tdep.c: Update.
8692 * rs6000-aix-tdep.c: Update.
8693 * rs6000-tdep.c: Update.
8694 * rust-exp.y: Update.
8695 * rust-lang.c: Update.
8696 * s390-tdep.c: Update.
8697 * selftest-arch.c: Update.
8698 * solib-dsbt.c: Update.
8699 * solib-frv.c: Update.
8700 * solib-spu.c: Update.
8701 * solib-svr4.c: Update.
8702 * solib.c: Update.
8703 * sparc64-linux-tdep.c: Update.
8704 * stack.c: Update.
8705 * symfile-mem.c: Update.
8706 * symmisc.c: Update.
8707 * target.c: Update.
8708 * thread.c: Update.
8709 * top.c: Update.
8710 * tracefile-tfile.c: Update.
8711 * tui/tui.c: Update.
8712 * typeprint.c: Update.
8713 * unittests/cli-utils-selftests.c: Update.
8714 * unittests/parse-connection-spec-selftests.c: Update.
8715 * valops.c: Update.
8716 * valprint.c: Update.
8717 * value.c: Update.
8718 * varobj.c: Update.
8719 * windows-nat.c: Update.
8720 * x86-linux-nat.c: Update.
8721 * xml-support.c: Update.
8722
a70b8144
TT
87232019-04-08 Tom Tromey <tom@tromey.com>
8724
8725 * xml-support.c: Use C++ exception handling.
8726 * x86-linux-nat.c: Use C++ exception handling.
8727 * windows-nat.c: Use C++ exception handling.
8728 * varobj.c: Use C++ exception handling.
8729 * value.c: Use C++ exception handling.
8730 * valprint.c: Use C++ exception handling.
8731 * valops.c: Use C++ exception handling.
8732 * unittests/parse-connection-spec-selftests.c: Use C++ exception
8733 handling.
8734 * unittests/cli-utils-selftests.c: Use C++ exception handling.
8735 * typeprint.c: Use C++ exception handling.
8736 * tui/tui.c: Use C++ exception handling.
8737 * tracefile-tfile.c: Use C++ exception handling.
8738 * top.c: Use C++ exception handling.
8739 * thread.c: Use C++ exception handling.
8740 * target.c: Use C++ exception handling.
8741 * symmisc.c: Use C++ exception handling.
8742 * symfile-mem.c: Use C++ exception handling.
8743 * stack.c: Use C++ exception handling.
8744 * sparc64-linux-tdep.c: Use C++ exception handling.
8745 * solib.c: Use C++ exception handling.
8746 * solib-svr4.c: Use C++ exception handling.
8747 * solib-spu.c: Use C++ exception handling.
8748 * solib-frv.c: Use C++ exception handling.
8749 * solib-dsbt.c: Use C++ exception handling.
8750 * selftest-arch.c: Use C++ exception handling.
8751 * s390-tdep.c: Use C++ exception handling.
8752 * rust-lang.c: Use C++ exception handling.
8753 * rust-exp.y: Use C++ exception handling.
8754 * rs6000-tdep.c: Use C++ exception handling.
8755 * rs6000-aix-tdep.c: Use C++ exception handling.
8756 * riscv-tdep.c: Use C++ exception handling.
8757 * remote.c: Use C++ exception handling.
8758 * remote-fileio.c: Use C++ exception handling.
8759 * record-full.c: Use C++ exception handling.
8760 * record-btrace.c: Use C++ exception handling.
8761 * python/python.c: Use C++ exception handling.
8762 * python/py-value.c: Use C++ exception handling.
8763 * python/py-utils.c: Use C++ exception handling.
8764 * python/py-unwind.c: Use C++ exception handling.
8765 * python/py-type.c: Use C++ exception handling.
8766 * python/py-symbol.c: Use C++ exception handling.
8767 * python/py-record.c: Use C++ exception handling.
8768 * python/py-record-btrace.c: Use C++ exception handling.
8769 * python/py-progspace.c: Use C++ exception handling.
8770 * python/py-prettyprint.c: Use C++ exception handling.
8771 * python/py-param.c: Use C++ exception handling.
8772 * python/py-objfile.c: Use C++ exception handling.
8773 * python/py-linetable.c: Use C++ exception handling.
8774 * python/py-lazy-string.c: Use C++ exception handling.
8775 * python/py-infthread.c: Use C++ exception handling.
8776 * python/py-inferior.c: Use C++ exception handling.
8777 * python/py-gdb-readline.c: Use C++ exception handling.
8778 * python/py-framefilter.c: Use C++ exception handling.
8779 * python/py-frame.c: Use C++ exception handling.
8780 * python/py-finishbreakpoint.c: Use C++ exception handling.
8781 * python/py-cmd.c: Use C++ exception handling.
8782 * python/py-breakpoint.c: Use C++ exception handling.
8783 * python/py-arch.c: Use C++ exception handling.
8784 * printcmd.c: Use C++ exception handling.
8785 * ppc-linux-tdep.c: Use C++ exception handling.
8786 * parse.c: Use C++ exception handling.
8787 * p-valprint.c: Use C++ exception handling.
8788 * objc-lang.c: Use C++ exception handling.
8789 * mi/mi-main.c: Use C++ exception handling.
8790 * mi/mi-interp.c: Use C++ exception handling.
8791 * mi/mi-cmd-stack.c: Use C++ exception handling.
8792 * mi/mi-cmd-break.c: Use C++ exception handling.
8793 * main.c: Use C++ exception handling.
8794 * linux-thread-db.c: Use C++ exception handling.
8795 * linux-tdep.c: Use C++ exception handling.
8796 * linux-nat.c: Use C++ exception handling.
8797 * linux-fork.c: Use C++ exception handling.
8798 * linespec.c: Use C++ exception handling.
8799 * language.c: Use C++ exception handling.
8800 * jit.c: Use C++ exception handling.
8801 * infrun.c: Use C++ exception handling.
8802 * infcmd.c: Use C++ exception handling.
8803 * infcall.c: Use C++ exception handling.
8804 * inf-loop.c: Use C++ exception handling.
8805 * i386-tdep.c: Use C++ exception handling.
8806 * i386-linux-tdep.c: Use C++ exception handling.
8807 * guile/scm-value.c: Use C++ exception handling.
8808 * guile/scm-type.c: Use C++ exception handling.
8809 * guile/scm-symtab.c: Use C++ exception handling.
8810 * guile/scm-symbol.c: Use C++ exception handling.
8811 * guile/scm-pretty-print.c: Use C++ exception handling.
8812 * guile/scm-ports.c: Use C++ exception handling.
8813 * guile/scm-param.c: Use C++ exception handling.
8814 * guile/scm-math.c: Use C++ exception handling.
8815 * guile/scm-lazy-string.c: Use C++ exception handling.
8816 * guile/scm-frame.c: Use C++ exception handling.
8817 * guile/scm-disasm.c: Use C++ exception handling.
8818 * guile/scm-cmd.c: Use C++ exception handling.
8819 * guile/scm-breakpoint.c: Use C++ exception handling.
8820 * guile/scm-block.c: Use C++ exception handling.
8821 * guile/guile-internal.h: Use C++ exception handling.
8822 * gnu-v3-abi.c: Use C++ exception handling.
8823 * gdbtypes.c: Use C++ exception handling.
8824 * frame.c: Use C++ exception handling.
8825 * frame-unwind.c: Use C++ exception handling.
8826 * fbsd-tdep.c: Use C++ exception handling.
8827 * f-valprint.c: Use C++ exception handling.
8828 * exec.c: Use C++ exception handling.
8829 * event-top.c: Use C++ exception handling.
8830 * event-loop.c: Use C++ exception handling.
8831 * eval.c: Use C++ exception handling.
8832 * dwarf2read.c: Use C++ exception handling.
8833 * dwarf2loc.c: Use C++ exception handling.
8834 * dwarf2-frame.c: Use C++ exception handling.
8835 * dwarf2-frame-tailcall.c: Use C++ exception handling.
8836 * dwarf-index-write.c: Use C++ exception handling.
8837 * dwarf-index-cache.c: Use C++ exception handling.
8838 * dtrace-probe.c: Use C++ exception handling.
8839 * disasm-selftests.c: Use C++ exception handling.
8840 * darwin-nat.c: Use C++ exception handling.
8841 * cp-valprint.c: Use C++ exception handling.
8842 * cp-support.c: Use C++ exception handling.
8843 * cp-abi.c: Use C++ exception handling.
8844 * corelow.c: Use C++ exception handling.
8845 * completer.c: Use C++ exception handling.
8846 * compile/compile-object-run.c: Use C++ exception handling.
8847 * compile/compile-object-load.c: Use C++ exception handling.
8848 * compile/compile-cplus-symbols.c: Use C++ exception handling.
8849 * compile/compile-c-symbols.c: Use C++ exception handling.
8850 * common/selftest.c: Use C++ exception handling.
8851 * common/new-op.c: Use C++ exception handling.
8852 * cli/cli-script.c: Use C++ exception handling.
8853 * cli/cli-interp.c: Use C++ exception handling.
8854 * cli/cli-cmds.c: Use C++ exception handling.
8855 * c-varobj.c: Use C++ exception handling.
8856 * btrace.c: Use C++ exception handling.
8857 * breakpoint.c: Use C++ exception handling.
8858 * break-catch-throw.c: Use C++ exception handling.
8859 * arch-utils.c: Use C++ exception handling.
8860 * amd64-tdep.c: Use C++ exception handling.
8861 * ada-valprint.c: Use C++ exception handling.
8862 * ada-typeprint.c: Use C++ exception handling.
8863 * ada-lang.c: Use C++ exception handling.
8864 * aarch64-tdep.c: Use C++ exception handling.
8865
3d6e9d23
TT
88662019-04-08 Tom Tromey <tom@tromey.com>
8867
8868 * xml-support.c (gdb_xml_parser::parse): Update.
8869 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8870 * value.c (show_convenience): Update.
8871 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
8872 (test_parse_flags_qcs): Update.
8873 * thread.c (thr_try_catch_cmd): Update.
8874 * target.c (target_translate_tls_address): Update.
8875 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
8876 (info_frame_command_core, frame_apply_command_count): Update.
8877 * rust-exp.y (rust_lex_exception_test): Update.
8878 * riscv-tdep.c (riscv_print_one_register_info): Update.
8879 * remote.c (remote_target::enable_btrace): Update.
8880 * record-btrace.c (record_btrace_enable_warn): Update.
8881 * python/py-utils.c (gdbpy_convert_exception): Update.
8882 * printcmd.c (do_one_display, print_variable_and_value): Update.
8883 * mi/mi-main.c (mi_print_exception): Update.
8884 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
8885 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
8886 * linux-nat.c (linux_nat_target::attach): Update.
8887 * linux-fork.c (class scoped_switch_fork_info): Update.
8888 * infrun.c (displaced_step_prepare): Update.
8889 * infcall.c (call_function_by_hand_dummy): Update.
8890 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
8891 * gnu-v3-abi.c (print_one_vtable): Update.
8892 * frame.c (get_prev_frame_always): Update.
8893 * f-valprint.c (info_common_command_for_block): Update.
8894 * exec.c (try_open_exec_file): Update.
8895 * exceptions.c (print_exception, exception_print)
8896 (exception_fprintf, exception_print_same): Update.
8897 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
8898 * dwarf-index-cache.c (index_cache::store)
8899 (index_cache::lookup_gdb_index): Update.
8900 * darwin-nat.c (maybe_cache_shell): Update.
8901 * cp-valprint.c (cp_print_value_fields): Update.
8902 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
8903 (gcc_cplus_symbol_address): Update.
8904 * compile/compile-c-symbols.c (gcc_convert_symbol)
8905 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
8906 * common/selftest.c: Update.
8907 * common/common-exceptions.h (struct gdb_exception) <message>: Now
8908 a std::string.
8909 (exception_try_scope_entry, exception_try_scope_exit): Don't
8910 declare.
8911 (struct exception_try_scope): Remove.
8912 (TRY): Don't use exception_try_scope.
8913 (struct gdb_exception): Add constructor, operator=.
8914 <what>: New method.
8915 (struct gdb_exception_RETURN_MASK_ALL)
8916 (struct gdb_exception_RETURN_MASK_ERROR)
8917 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
8918 (struct gdb_quit_bad_alloc): Update.
8919 * common/common-exceptions.c (exception_none): Change
8920 initializer.
8921 (struct catcher) <state, exception>: Initialize inline.
8922 <prev>: Remove member.
8923 (current_catcher): Remove.
8924 (catchers): New global.
8925 (exceptions_state_mc_init): Simplify.
8926 (catcher_pop): Remove.
8927 (exceptions_state_mc, exceptions_state_mc_catch): Update.
8928 (try_scope_depth, exception_try_scope_entry)
8929 (exception_try_scope_exit): Remove.
8930 (throw_exception_sjlj): Update.
8931 (exception_messages, exception_messages_size): Remove.
8932 (throw_it): Simplify.
8933 (gdb_exception_sliced_copy): Remove.
8934 (throw_exception_cxx): Update.
8935 * cli/cli-script.c (script_from_file): Update.
8936 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
8937 Update.
8938 * ada-valprint.c (ada_val_print): Update.
8939 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
8940 (create_excep_cond_exprs): Update.
8941
c5c10118
TT
89422019-04-08 Tom Tromey <tom@tromey.com>
8943
8944 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
8945 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
8946 (TRY, CATCH, END_CATCH): Remove some definitions.
8947 * common/common-exceptions.c: Don't use GDB_XCPT.
8948 (catcher_list_size): Remove.
8949 (throw_exception, throw_it): Simplify.
8950
4de283e4
TT
89512019-04-05 Tom Tromey <tom@tromey.com>
8952
8953 Revert the header-sorting patch.
8954 * ft32-tdep.c: Revert.
8955 * frv-tdep.c: Revert.
8956 * frv-linux-tdep.c: Revert.
8957 * frame.c: Revert.
8958 * frame-unwind.c: Revert.
8959 * frame-base.c: Revert.
8960 * fork-child.c: Revert.
8961 * findvar.c: Revert.
8962 * findcmd.c: Revert.
8963 * filesystem.c: Revert.
8964 * filename-seen-cache.h: Revert.
8965 * filename-seen-cache.c: Revert.
8966 * fbsd-tdep.c: Revert.
8967 * fbsd-nat.h: Revert.
8968 * fbsd-nat.c: Revert.
8969 * f-valprint.c: Revert.
8970 * f-typeprint.c: Revert.
8971 * f-lang.c: Revert.
8972 * extension.h: Revert.
8973 * extension.c: Revert.
8974 * extension-priv.h: Revert.
8975 * expprint.c: Revert.
8976 * exec.h: Revert.
8977 * exec.c: Revert.
8978 * exceptions.c: Revert.
8979 * event-top.c: Revert.
8980 * event-loop.c: Revert.
8981 * eval.c: Revert.
8982 * elfread.c: Revert.
8983 * dwarf2read.h: Revert.
8984 * dwarf2read.c: Revert.
8985 * dwarf2loc.c: Revert.
8986 * dwarf2expr.h: Revert.
8987 * dwarf2expr.c: Revert.
8988 * dwarf2-frame.c: Revert.
8989 * dwarf2-frame-tailcall.c: Revert.
8990 * dwarf-index-write.h: Revert.
8991 * dwarf-index-write.c: Revert.
8992 * dwarf-index-common.c: Revert.
8993 * dwarf-index-cache.h: Revert.
8994 * dwarf-index-cache.c: Revert.
8995 * dummy-frame.c: Revert.
8996 * dtrace-probe.c: Revert.
8997 * disasm.h: Revert.
8998 * disasm.c: Revert.
8999 * disasm-selftests.c: Revert.
9000 * dictionary.c: Revert.
9001 * dicos-tdep.c: Revert.
9002 * demangle.c: Revert.
9003 * dcache.h: Revert.
9004 * dcache.c: Revert.
9005 * darwin-nat.h: Revert.
9006 * darwin-nat.c: Revert.
9007 * darwin-nat-info.c: Revert.
9008 * d-valprint.c: Revert.
9009 * d-namespace.c: Revert.
9010 * d-lang.c: Revert.
9011 * ctf.c: Revert.
9012 * csky-tdep.c: Revert.
9013 * csky-linux-tdep.c: Revert.
9014 * cris-tdep.c: Revert.
9015 * cris-linux-tdep.c: Revert.
9016 * cp-valprint.c: Revert.
9017 * cp-support.c: Revert.
9018 * cp-namespace.c: Revert.
9019 * cp-abi.c: Revert.
9020 * corelow.c: Revert.
9021 * corefile.c: Revert.
9022 * continuations.c: Revert.
9023 * completer.h: Revert.
9024 * completer.c: Revert.
9025 * complaints.c: Revert.
9026 * coffread.c: Revert.
9027 * coff-pe-read.c: Revert.
9028 * cli-out.h: Revert.
9029 * cli-out.c: Revert.
9030 * charset.c: Revert.
9031 * c-varobj.c: Revert.
9032 * c-valprint.c: Revert.
9033 * c-typeprint.c: Revert.
9034 * c-lang.c: Revert.
9035 * buildsym.c: Revert.
9036 * buildsym-legacy.c: Revert.
9037 * build-id.h: Revert.
9038 * build-id.c: Revert.
9039 * btrace.c: Revert.
9040 * bsd-uthread.c: Revert.
9041 * breakpoint.h: Revert.
9042 * breakpoint.c: Revert.
9043 * break-catch-throw.c: Revert.
9044 * break-catch-syscall.c: Revert.
9045 * break-catch-sig.c: Revert.
9046 * blockframe.c: Revert.
9047 * block.c: Revert.
9048 * bfin-tdep.c: Revert.
9049 * bfin-linux-tdep.c: Revert.
9050 * bfd-target.c: Revert.
9051 * bcache.c: Revert.
9052 * ax-general.c: Revert.
9053 * ax-gdb.h: Revert.
9054 * ax-gdb.c: Revert.
9055 * avr-tdep.c: Revert.
9056 * auxv.c: Revert.
9057 * auto-load.c: Revert.
9058 * arm-wince-tdep.c: Revert.
9059 * arm-tdep.c: Revert.
9060 * arm-symbian-tdep.c: Revert.
9061 * arm-pikeos-tdep.c: Revert.
9062 * arm-obsd-tdep.c: Revert.
9063 * arm-nbsd-tdep.c: Revert.
9064 * arm-nbsd-nat.c: Revert.
9065 * arm-linux-tdep.c: Revert.
9066 * arm-linux-nat.c: Revert.
9067 * arm-fbsd-tdep.c: Revert.
9068 * arm-fbsd-nat.c: Revert.
9069 * arm-bsd-tdep.c: Revert.
9070 * arch-utils.c: Revert.
9071 * arc-tdep.c: Revert.
9072 * arc-newlib-tdep.c: Revert.
9073 * annotate.h: Revert.
9074 * annotate.c: Revert.
9075 * amd64-windows-tdep.c: Revert.
9076 * amd64-windows-nat.c: Revert.
9077 * amd64-tdep.c: Revert.
9078 * amd64-sol2-tdep.c: Revert.
9079 * amd64-obsd-tdep.c: Revert.
9080 * amd64-obsd-nat.c: Revert.
9081 * amd64-nbsd-tdep.c: Revert.
9082 * amd64-nbsd-nat.c: Revert.
9083 * amd64-nat.c: Revert.
9084 * amd64-linux-tdep.c: Revert.
9085 * amd64-linux-nat.c: Revert.
9086 * amd64-fbsd-tdep.c: Revert.
9087 * amd64-fbsd-nat.c: Revert.
9088 * amd64-dicos-tdep.c: Revert.
9089 * amd64-darwin-tdep.c: Revert.
9090 * amd64-bsd-nat.c: Revert.
9091 * alpha-tdep.c: Revert.
9092 * alpha-obsd-tdep.c: Revert.
9093 * alpha-nbsd-tdep.c: Revert.
9094 * alpha-mdebug-tdep.c: Revert.
9095 * alpha-linux-tdep.c: Revert.
9096 * alpha-linux-nat.c: Revert.
9097 * alpha-bsd-tdep.c: Revert.
9098 * alpha-bsd-nat.c: Revert.
9099 * aix-thread.c: Revert.
9100 * agent.c: Revert.
9101 * addrmap.c: Revert.
9102 * ada-varobj.c: Revert.
9103 * ada-valprint.c: Revert.
9104 * ada-typeprint.c: Revert.
9105 * ada-tasks.c: Revert.
9106 * ada-lang.c: Revert.
9107 * aarch64-tdep.c: Revert.
9108 * aarch64-ravenscar-thread.c: Revert.
9109 * aarch64-newlib-tdep.c: Revert.
9110 * aarch64-linux-tdep.c: Revert.
9111 * aarch64-linux-nat.c: Revert.
9112 * aarch64-fbsd-tdep.c: Revert.
9113 * aarch64-fbsd-nat.c: Revert.
9114 * aarch32-linux-nat.c: Revert.
9115
d55e5aa6
TT
91162019-04-05 Tom Tromey <tom@tromey.com>
9117
9118 * ft32-tdep.c: Sort headers.
9119 * frv-tdep.c: Sort headers.
9120 * frv-linux-tdep.c: Sort headers.
9121 * frame.c: Sort headers.
9122 * frame-unwind.c: Sort headers.
9123 * frame-base.c: Sort headers.
9124 * fork-child.c: Sort headers.
9125 * findvar.c: Sort headers.
9126 * findcmd.c: Sort headers.
9127 * filesystem.c: Sort headers.
9128 * filename-seen-cache.h: Sort headers.
9129 * filename-seen-cache.c: Sort headers.
9130 * fbsd-tdep.c: Sort headers.
9131 * fbsd-nat.h: Sort headers.
9132 * fbsd-nat.c: Sort headers.
9133 * f-valprint.c: Sort headers.
9134 * f-typeprint.c: Sort headers.
9135 * f-lang.c: Sort headers.
9136 * extension.h: Sort headers.
9137 * extension.c: Sort headers.
9138 * extension-priv.h: Sort headers.
9139 * expprint.c: Sort headers.
9140 * exec.h: Sort headers.
9141 * exec.c: Sort headers.
9142 * exceptions.c: Sort headers.
9143 * event-top.c: Sort headers.
9144 * event-loop.c: Sort headers.
9145 * eval.c: Sort headers.
9146 * elfread.c: Sort headers.
9147 * dwarf2read.h: Sort headers.
9148 * dwarf2read.c: Sort headers.
9149 * dwarf2loc.c: Sort headers.
9150 * dwarf2expr.h: Sort headers.
9151 * dwarf2expr.c: Sort headers.
9152 * dwarf2-frame.c: Sort headers.
9153 * dwarf2-frame-tailcall.c: Sort headers.
9154 * dwarf-index-write.h: Sort headers.
9155 * dwarf-index-write.c: Sort headers.
9156 * dwarf-index-common.c: Sort headers.
9157 * dwarf-index-cache.h: Sort headers.
9158 * dwarf-index-cache.c: Sort headers.
9159 * dummy-frame.c: Sort headers.
9160 * dtrace-probe.c: Sort headers.
9161 * disasm.h: Sort headers.
9162 * disasm.c: Sort headers.
9163 * disasm-selftests.c: Sort headers.
9164 * dictionary.c: Sort headers.
9165 * dicos-tdep.c: Sort headers.
9166 * demangle.c: Sort headers.
9167 * dcache.h: Sort headers.
9168 * dcache.c: Sort headers.
9169 * darwin-nat.h: Sort headers.
9170 * darwin-nat.c: Sort headers.
9171 * darwin-nat-info.c: Sort headers.
9172 * d-valprint.c: Sort headers.
9173 * d-namespace.c: Sort headers.
9174 * d-lang.c: Sort headers.
9175 * ctf.c: Sort headers.
9176 * csky-tdep.c: Sort headers.
9177 * csky-linux-tdep.c: Sort headers.
9178 * cris-tdep.c: Sort headers.
9179 * cris-linux-tdep.c: Sort headers.
9180 * cp-valprint.c: Sort headers.
9181 * cp-support.c: Sort headers.
9182 * cp-namespace.c: Sort headers.
9183 * cp-abi.c: Sort headers.
9184 * corelow.c: Sort headers.
9185 * corefile.c: Sort headers.
9186 * continuations.c: Sort headers.
9187 * completer.h: Sort headers.
9188 * completer.c: Sort headers.
9189 * complaints.c: Sort headers.
9190 * coffread.c: Sort headers.
9191 * coff-pe-read.c: Sort headers.
9192 * cli-out.h: Sort headers.
9193 * cli-out.c: Sort headers.
9194 * charset.c: Sort headers.
9195 * c-varobj.c: Sort headers.
9196 * c-valprint.c: Sort headers.
9197 * c-typeprint.c: Sort headers.
9198 * c-lang.c: Sort headers.
9199 * buildsym.c: Sort headers.
9200 * buildsym-legacy.c: Sort headers.
9201 * build-id.h: Sort headers.
9202 * build-id.c: Sort headers.
9203 * btrace.c: Sort headers.
9204 * bsd-uthread.c: Sort headers.
9205 * breakpoint.h: Sort headers.
9206 * breakpoint.c: Sort headers.
9207 * break-catch-throw.c: Sort headers.
9208 * break-catch-syscall.c: Sort headers.
9209 * break-catch-sig.c: Sort headers.
9210 * blockframe.c: Sort headers.
9211 * block.c: Sort headers.
9212 * bfin-tdep.c: Sort headers.
9213 * bfin-linux-tdep.c: Sort headers.
9214 * bfd-target.c: Sort headers.
9215 * bcache.c: Sort headers.
9216 * ax-general.c: Sort headers.
9217 * ax-gdb.h: Sort headers.
9218 * ax-gdb.c: Sort headers.
9219 * avr-tdep.c: Sort headers.
9220 * auxv.c: Sort headers.
9221 * auto-load.c: Sort headers.
9222 * arm-wince-tdep.c: Sort headers.
9223 * arm-tdep.c: Sort headers.
9224 * arm-symbian-tdep.c: Sort headers.
9225 * arm-pikeos-tdep.c: Sort headers.
9226 * arm-obsd-tdep.c: Sort headers.
9227 * arm-nbsd-tdep.c: Sort headers.
9228 * arm-nbsd-nat.c: Sort headers.
9229 * arm-linux-tdep.c: Sort headers.
9230 * arm-linux-nat.c: Sort headers.
9231 * arm-fbsd-tdep.c: Sort headers.
9232 * arm-fbsd-nat.c: Sort headers.
9233 * arm-bsd-tdep.c: Sort headers.
9234 * arch-utils.c: Sort headers.
9235 * arc-tdep.c: Sort headers.
9236 * arc-newlib-tdep.c: Sort headers.
9237 * annotate.h: Sort headers.
9238 * annotate.c: Sort headers.
9239 * amd64-windows-tdep.c: Sort headers.
9240 * amd64-windows-nat.c: Sort headers.
9241 * amd64-tdep.c: Sort headers.
9242 * amd64-sol2-tdep.c: Sort headers.
9243 * amd64-obsd-tdep.c: Sort headers.
9244 * amd64-obsd-nat.c: Sort headers.
9245 * amd64-nbsd-tdep.c: Sort headers.
9246 * amd64-nbsd-nat.c: Sort headers.
9247 * amd64-nat.c: Sort headers.
9248 * amd64-linux-tdep.c: Sort headers.
9249 * amd64-linux-nat.c: Sort headers.
9250 * amd64-fbsd-tdep.c: Sort headers.
9251 * amd64-fbsd-nat.c: Sort headers.
9252 * amd64-dicos-tdep.c: Sort headers.
9253 * amd64-darwin-tdep.c: Sort headers.
9254 * amd64-bsd-nat.c: Sort headers.
9255 * alpha-tdep.c: Sort headers.
9256 * alpha-obsd-tdep.c: Sort headers.
9257 * alpha-nbsd-tdep.c: Sort headers.
9258 * alpha-mdebug-tdep.c: Sort headers.
9259 * alpha-linux-tdep.c: Sort headers.
9260 * alpha-linux-nat.c: Sort headers.
9261 * alpha-bsd-tdep.c: Sort headers.
9262 * alpha-bsd-nat.c: Sort headers.
9263 * aix-thread.c: Sort headers.
9264 * agent.c: Sort headers.
9265 * addrmap.c: Sort headers.
9266 * ada-varobj.c: Sort headers.
9267 * ada-valprint.c: Sort headers.
9268 * ada-typeprint.c: Sort headers.
9269 * ada-tasks.c: Sort headers.
9270 * ada-lang.c: Sort headers.
9271 * aarch64-tdep.c: Sort headers.
9272 * aarch64-ravenscar-thread.c: Sort headers.
9273 * aarch64-newlib-tdep.c: Sort headers.
9274 * aarch64-linux-tdep.c: Sort headers.
9275 * aarch64-linux-nat.c: Sort headers.
9276 * aarch64-fbsd-tdep.c: Sort headers.
9277 * aarch64-fbsd-nat.c: Sort headers.
9278 * aarch32-linux-nat.c: Sort headers.
9279
699bd4cf
TT
92802019-04-04 Tom Tromey <tom@tromey.com>
9281
9282 * varobj.c (varobj_create): Update.
9283 * rust-exp.y (struct rust_parser) <update_innermost_block,
9284 lookup_symbol>: New methods.
9285 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
9286 Rename.
9287 (rust_parser::rust_lookup_type)
9288 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9289 * printcmd.c (display_command, do_one_display): Update.
9290 * parser-defs.h (struct parser_state) <parser_state>: Add
9291 "tracker" parameter.
9292 (block_tracker): New member.
9293 (class innermost_block_tracker) <innermost_block_tracker>: Add
9294 "types" parameter.
9295 <reset>: Remove method.
9296 (innermost_block): Don't declare.
9297 (null_post_parser): Update.
9298 * parse.c (innermost_block): Remove global.
9299 (write_dollar_variable): Update.
9300 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
9301 Remove "tracker_types" parameter.
9302 (parse_expression): Add "tracker" parameter.
9303 (parse_expression_for_completion): Update.
9304 (null_post_parser): Add "tracker" parameter.
9305 * p-exp.y: Update rules.
9306 * m2-exp.y: Update rules.
9307 * language.h (struct language_defn) <la_post_parser>: Add
9308 "tracker" parameter.
9309 * go-exp.y: Update rules.
9310 * f-exp.y: Update rules.
9311 * expression.h (parse_expression, parse_exp_1): Add "tracker"
9312 parameter.
9313 * d-exp.y: Update rules.
9314 * c-exp.y: Update rules.
9315 * breakpoint.c (set_breakpoint_condition): Create an
9316 innermost_block_tracker.
9317 (watch_command_1): Likewise.
9318 * ada-lang.c (resolve): Add "tracker" parameter.
9319 (resolve_subexp): Likewise.
9320 * ada-exp.y (write_var_from_sym): Update.
9321
dac43e32
TT
93222019-04-04 Tom Tromey <tom@tromey.com>
9323
9324 * type-stack.h: New file.
9325 * type-stack.c: New file.
9326 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
9327 type-stack.h.
9328 (insert_into_type_stack, insert_type, push_type, push_type_int)
9329 (insert_type_address_space, pop_type, pop_type_int)
9330 (pop_typelist, pop_type_stack, append_type_stack)
9331 (push_type_stack, get_type_stack, push_typelist)
9332 (follow_type_instance_flags, follow_types): Don't declare.
9333 * parse.c (type_stack): Remove global.
9334 (parse_exp_in_context): Update.
9335 (insert_into_type_stack, insert_type, push_type, push_type_int)
9336 (insert_type_address_space, pop_type, pop_type_int)
9337 (pop_typelist, pop_type_stack, append_type_stack)
9338 (push_type_stack, get_type_stack, push_typelist)
9339 (follow_type_instance_flags, follow_types): Remove (moved to
9340 type-stack.c).
9341 * f-exp.y (type_stack): New global.
9342 Update rules.
9343 (push_kind_type, f_parse): Update.
9344 * d-exp.y (type_stack): New global.
9345 Update rules.
9346 (d_parse): Update.
9347 * c-exp.y (struct c_parse_state) <type_stack>: New member.
9348 Update rules.
9349 * Makefile.in (COMMON_SFILES): Add type-stack.c.
9350 (HFILES_NO_SRCDIR): Add type-stack.h.
9351
2a612529
TT
93522019-04-04 Tom Tromey <tom@tromey.com>
9353
9354 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
9355 (rust_parser::convert_ast_to_expression, rust_parse)
9356 (rust_lex_test_completion, rust_lex_tests): Update.
9357 * parser-defs.h (struct expr_completion_state): New.
9358 (struct parser_state) <parser_state>: Add completion parameter.
9359 <mark_struct_expression, mark_completion_tag>: New methods.
9360 <parse_completion, m_completion_state>: New members.
9361 (prefixify_expression, null_post_parser): Update.
9362 (mark_struct_expression, mark_completion_tag): Don't declare.
9363 * parse.c (parse_completion, expout_last_struct)
9364 (expout_tag_completion_type, expout_completion_name): Remove
9365 globals.
9366 (parser_state::mark_struct_expression)
9367 (parser_state::mark_completion_tag): Now methods.
9368 (prefixify_expression): Add last_struct parameter.
9369 (prefixify_subexp): Likewise.
9370 (parse_exp_1): Update.
9371 (parse_exp_in_context): Add cstate parameter. Update.
9372 (parse_expression_for_completion): Create an
9373 expr_completion_state.
9374 (null_post_parser): Add "completion" parameter.
9375 * p-exp.y: Update rules.
9376 (yylex): Update.
9377 * language.h (struct language_defn) <la_post_parser>: Add
9378 "completing" parameter.
9379 * go-exp.y: Update rules.
9380 (lex_one_token): Update.
9381 * expression.h (parse_completion): Don't declare.
9382 * d-exp.y: Update rules.
9383 (lex_one_token): Update rules.
9384 * c-exp.y: Update rules.
9385 (lex_one_token): Update.
9386 * ada-lang.c (resolve): Add "parse_completion" parameter.
9387 (resolve_subexp): Likewise.
9388 (ada_resolve_function): Likewise.
9389
43476f0b
TT
93902019-04-04 Tom Tromey <tom@tromey.com>
9391
9392 * parser-defs.h (struct parser_state) <start_arglist,
9393 end_arglist>: New methods.
9394 <arglist_len, m_funcall_chain>: New members.
9395 (arglist_len, start_arglist, end_arglist): Don't declare.
9396 * parse.c (arglist_len, funcall_chain): Remove global.
9397 (start_arglist, end_arglist): Remove functions.
9398 (parse_exp_in_context): Update.
9399 * p-exp.y: Update rules.
9400 * m2-exp.y: Update rules.
9401 * go-exp.y: Update rules.
9402 * f-exp.y: Update rules.
9403 * d-exp.y: Update rules.
9404 * c-exp.y: Update rules.
9405
5776fca3
TT
94062019-04-04 Tom Tromey <tom@tromey.com>
9407
9408 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
9409 lex_operator, push_back>: New methods.
9410 Update all rules.
9411 (rust_parser::lex_hex, lex_escape): Rename and update.
9412 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
9413 (rust_parser::lex_operator): Rename and update.
9414 (rust_parser::lex_number, rustyylex, rustyyerror)
9415 (rust_lex_test_init, rust_lex_test_sequence)
9416 (rust_lex_test_push_back, rust_lex_tests): Update.
9417 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
9418 parameter.
9419 <lexptr, prev_lexptr>: New members.
9420 (lexptr, prev_lexptr): Don't declare.
9421 * parse.c (lexptr, prev_lexptr): Remove globals.
9422 (parse_exp_in_context): Update.
9423 * p-exp.y (yylex, yyerror): Update.
9424 * m2-exp.y (parse_number, yylex, yyerror): Update.
9425 * go-exp.y (lex_one_token, yyerror): Update.
9426 * f-exp.y (match_string_literal, yylex, yyerror): Update.
9427 * d-exp.y (lex_one_token, yyerror): Update.
9428 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
9429 (lex_one_token, yyerror): Update.
9430 * ada-lex.l (YY_INPUT): Update.
9431 (rewind_to_char): Update.
9432 * ada-exp.y (yyerror): Update.
9433
8621b685
TT
94342019-04-04 Tom Tromey <tom@tromey.com>
9435
9436 * rust-exp.y (rustyylex, rust_lex_tests): Update.
9437 * parser-defs.h (struct parser_state) <parser_state>: Add new
9438 parameter.
9439 <comma_terminates>: New member.
9440 (comma_terminates): Don't declare global.
9441 * parse.c (comma_terminates): Remove global.
9442 (parse_exp_in_context): Update.
9443 * p-exp.y (yylex): Update.
9444 * m2-exp.y (yylex): Update.
9445 * go-exp.y (lex_one_token): Update.
9446 * f-exp.y (yylex): Update.
9447 * d-exp.y (lex_one_token): Update.
9448 * c-exp.y (lex_one_token): Update.
9449 * ada-lex.l: Update.
9450
28aaf3fd
TT
94512019-04-04 Tom Tromey <tom@tromey.com>
9452
9453 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
9454 (rustyylex, rust_lex_test_init, rust_lex_test_one)
9455 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
9456 * parser-defs.h (paren_depth): Don't declare.
9457 * parse.c (paren_depth): Remove global.
9458 (parse_exp_in_context): Update.
9459 * p-exp.y (paren_depth): New global.
9460 (pascal_parse): Initialize it.
9461 * m2-exp.y (paren_depth): New global.
9462 (m2_parse): Initialize it.
9463 * go-exp.y (paren_depth): New global.
9464 (go_parse): Initialize it.
9465 * f-exp.y (paren_depth): New global.
9466 (f_parse): Initialize it.
9467 * d-exp.y (paren_depth): New global.
9468 (d_parse): Initialize it.
9469 * c-exp.y (paren_depth): New global.
9470 (c_parse): Initialize it.
9471 * ada-lex.l (paren_depth): New global.
9472 (lexer_init): Initialize it.
9473
1e58a4a4
TT
94742019-04-04 Tom Tromey <tom@tromey.com>
9475
9476 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
9477 (rust_parser::convert_ast_to_type)
9478 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9479 * parser-defs.h (struct parser_state) <parser_state>: Add
9480 parameters. Initialize new members.
9481 <expression_context_block, expression_context_pc>: New members.
9482 * parse.c (expression_context_block, expression_context_pc):
9483 Remove globals.
9484 (parse_exp_in_context): Update.
9485 * p-exp.y: Update all rules.
9486 (yylex): Update.
9487 * m2-exp.y: Update all rules.
9488 (yylex): Update.
9489 * go-exp.y (yylex): Update.
9490 * f-exp.y (yylex): Update.
9491 * d-exp.y: Update all rules.
9492 (yylex): Update.
9493 * c-exp.y: Update all rules.
9494 (lex_one_token, classify_name, yylex, c_parse): Update.
9495 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
9496
37eedb39
TT
94972019-04-04 Tom Tromey <tom@tromey.com>
9498
9499 * gdbarch.h, gdbarch.c: Rebuild.
9500 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
9501 * stap-probe.h:
9502 (struct stap_parse_info): Replace "parser_state" with
9503 "expr_builder".
9504 * parser-defs.h (struct expr_builder): Rename from "parser_state".
9505 (parser_state): New class.
9506 * parse.c (expr_builder): Rename.
9507 (expr_builder::release): Rename.
9508 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
9509 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
9510 (write_exp_elt_longcst, write_exp_elt_floatcst)
9511 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
9512 (write_exp_string_vector, write_exp_bitstring)
9513 (write_exp_msymbol, mark_struct_expression)
9514 (write_dollar_variable)
9515 (insert_type_address_space, increase_expout_size): Replace
9516 "parser_state" with "expr_builder".
9517 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
9518 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
9519 "parser_state" with "expr_builder".
9520
73923d7e
TT
95212019-04-04 Tom Tromey <tom@tromey.com>
9522
9523 * rust-exp.y: Replace "parse_language" with method call.
9524 * p-exp.y:
9525 (yylex): Replace "parse_language" with method call.
9526 * m2-exp.y:
9527 (yylex): Replace "parse_language" with method call.
9528 * go-exp.y (classify_name): Replace "parse_language" with method
9529 call.
9530 * f-exp.y (yylex): Replace "parse_language" with method call.
9531 * d-exp.y (lex_one_token): Replace "parse_language" with method
9532 call.
9533 * c-exp.y:
9534 (lex_one_token, classify_name, yylex): Replace "parse_language"
9535 with method call.
9536 * ada-exp.y (find_primitive_type, type_char)
9537 (type_system_address): Replace "parse_language" with method call.
9538
fa9f5be6
TT
95392019-04-04 Tom Tromey <tom@tromey.com>
9540
9541 * rust-exp.y: Replace "parse_gdbarch" with method call.
9542 * parse.c (write_dollar_variable, insert_type_address_space):
9543 Replace "parse_gdbarch" with method call.
9544 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
9545 call.
9546 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
9547 call.
9548 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
9549 "parse_gdbarch" with method call.
9550 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
9551 with method call.
9552 * f-exp.y (parse_type, parse_f_type, yylex): Replace
9553 "parse_gdbarch" with method call.
9554 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
9555 "parse_gdbarch" with method call.
9556 * c-exp.y (parse_type, parse_number, classify_name): Replace
9557 "parse_gdbarch" with method call.
9558 * ada-lex.l: Replace "parse_gdbarch" with method call.
9559 * ada-exp.y (parse_type, find_primitive_type, type_char)
9560 (type_system_address): Replace "parse_gdbarch" with method call.
9561
1201a264
TT
95622019-04-04 Tom Tromey <tom@tromey.com>
9563
9564 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
9565 * stap-probe.c (stap_parse_argument): Update.
9566 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
9567 initial_size parameter.
9568 * rust-exp.y (rust_lex_tests): Update.
9569 * parse.c (parser_state): Update.
9570 (parse_exp_in_context): Update.
9571 * parser-defs.h (struct parser_state) <parser_state>: Remove
9572 "initial_size" parameter.
9573
e3980ce2
TT
95742019-04-04 Tom Tromey <tom@tromey.com>
9575
9576 * parser-defs.h (increase_expout_size): Don't declare.
9577 * parse.c (increase_expout_size): Now static.
9578
e9f8e3f1
TS
95792019-04-04 Thomas Schwinge <thomas@codesourcery.com>
9580
9581 * gnu-nat.c (gnu_nat_target::wait): Fix
9582 target_waitstatus_to_string call.
9583
d7df6549
AB
95842019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9585
9586 * eval.c (evaluate_subexp_standard): Handle internal functions
9587 during Fortran function call handling.
9588
8bdc1658
AB
95892019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9590
9591 * NEWS: Mention new internal functions.
9592 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
9593 (read_base_type): Use dwarf2_init_complex_target_type.
9594 * value.c (creal_internal_fn): New function.
9595 (cimag_internal_fn): New function.
9596 (_initialize_values): Register new internal functions.
9597
c29705b7
PW
95982019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9599
9600 * infrun.c (stop_all_threads): If debug_infrun, always
9601 trace the wait status after wait_one, using
9602 target_waitstatus_to_string and target_pid_to_str.
9603 (handle_inferior_event): Replace various trace of
9604 wait status kind by a single trace.
9605 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
9606 wait status kind image by target_waitstatus_to_string.
9607 * target/waitstatus.c (target_waitstatus_to_string): Fix
9608 obsolete comment.
9609
05caa1d2
TT
96102019-04-01 Tom Tromey <tromey@adacore.com>
9611
9612 PR symtab/23331:
9613 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
9614
9d1447e0
SDJ
96152019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
9616 Pedro Alves <palves@redhat.com>
9617
9618 * top.c (quit_force): Call 'finalize_values'.
9619 * value.c (finalize_values): New function.
9620 * value.h (finalize_values): Declare.
9621
7734102d
EZ
96222019-03-30 Eli Zaretskii <eliz@gnu.org>
9623
9624 * NEWS: Announce $_gdb_major and $_gdb_minor.
9625
9626 * top.c (init_gdb_version_vars): New function.
9627 (gdb_init): Call init_gdb_version_vars.
9628
188e1fa9
TT
96292019-03-29 Tom Tromey <tromey@adacore.com>
9630
9631 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
9632 help text. Remove dead code.
9633
2880242d
KS
96342019-03-29 Keith Seitz <keiths@redhat.com>
9635
9636 From Siddhesh Poyarekar:
9637 * f-lang.h (f77_get_upperbound): Return LONGEST.
9638 (f77_get_lowerbound): Likewise.
9639 * f-typeprint.c (f_type_print_varspec_suffix): Expand
9640 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
9641 print them.
9642 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
9643 plongest to format print it.
9644 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
9645 (f77_get_upperbound): Likewise.
9646 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
9647 LOWER_BOUND to LONGEST.
9648 (f77_create_arrayprint_offset_tbl): Likewise.
9649
cc1defb1
KS
96502019-03-29 Keith Seitz <keiths@redhat.com>
9651
9652 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
9653 %s/pulongest for TYPE_LENGTH instead of %d in format
9654 strings.
9655 * ada-typerint.c (ada_print_type): Likewise.
9656 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
9657 * compile/compile-c-support.c (generate_register_struct): Likewise.
9658 * gdbtypes.c (recursive_dump_type): Likewise.
9659 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
9660 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
9661 instead of %d in format strings.
9662 * riscv-tdep.c (riscv_type_alignment): Cast second argument
9663 to std::min to ULONGEST.
9664 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
9665 instead of %d in format strings.
9666 * tracepoint.c (info_scope_command): Likewise.
9667 * typeprint.c (print_offset_data::update)
9668 (print_offset_data::finish): Likewise.
9669 * xtensa-tdep.c (xtensa_store_return_value)
9670 (xtensa_push_dummy_call): Likewise.
9671
e432ccf1
JT
96722019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
9673
9674 * windows-nat.c (display_selector): Fixed format specifications
9675 for 64-bit Cygwin.
9676
65d2b333
PW
96772019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9678
9679 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
9680
f489207e
SL
96812019-03-28 Sandra Loosemore <sandra@codesourcery.com>
9682
9683 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
9684 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
9685 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
9686 (nios2_linux_init_abi): Install it.
9687
bffa1015
AH
96882019-03-28 Alan Hayward <alan.hayward@arm.com>
9689
9690 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
9691
fc96163a
AH
96922019-03-28 Alan Hayward <alan.hayward@arm.com>
9693
9694 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
9695
20dc7e9b
PW
96962019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9697 Tom Tromey <tromey@adacore.com>
9698
9699 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
9700
7f5331a8
JB
97012019-03-26 Joel Brobecker <brobecker@adacore.com>
9702
9703 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
9704 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
9705 method to compute the bounds of range types. Also print "[evaluated]"
9706 if the bounds' values come from a dynamic evaluation.
9707
18c77628
AB
97082019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
9709
9710 * cp-valprint.c (cp_print_value_fields): Don't print trailing
9711 whitespace when pretty printing is on.
9712
53c973f2
AH
97132019-03-26 Alan Hayward <alan.hayward@arm.com>
9714
e79be6e5 9715 * ppc-linux-nat.c: Add include.
53c973f2 9716
d851aa71
AH
97172019-03-26 Alan Hayward <alan.hayward@arm.com>
9718
e79be6e5 9719 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 9720
2fe7bab7
AH
97212019-03-26 Alan Hayward <alan.hayward@arm.com>
9722
e79be6e5 9723 * arm-linux-nat.c: Add include.
2fe7bab7 9724
068ef30e
SM
97252019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
9726
9727 * source-cache.c (source_cache::get_source_lines): Re-read
9728 fullname after calling open_source_file.
9729
81a24d04
JB
97302019-03-25 John Baldwin <jhb@FreeBSD.org>
9731
9732 * NEWS: Mention TLS support for FreeBSD.
9733
79e7ae11
TT
97342019-03-25 Tom Tromey <tromey@adacore.com>
9735
9736 * minsyms.c (BUNCH_SIZE): Update comment.
9737 (~minimal_symbol_reader): Remove old comment.
9738 (compact_minimal_symbols): Update comment.
9739 (minimal_symbol_reader::install): Remove old comment. Update
9740 other comments.
9741
d45963c2
AH
97422019-03-25 Alan Hayward <alan.hayward@arm.com>
9743
9744 * s390-linux-nat.c: Add include.
9745
0f83012e
AH
97462019-03-25 Alan Hayward <alan.hayward@arm.com>
9747
9748 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
9749 Call linux_get_hwcap.
9750 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
9751 Likewise.
9752 (aarch64_linux_get_hwcap): Remove function.
9753 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
9754 declaration.
9755 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
9756 linux_get_hwcap.
9757 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
9758 * linux-tdep.c (linux_get_hwcap): Add function.
9759 (linux_get_hwcap2): Likewise.
9760 * linux-tdep.h (linux_get_hwcap): Add declaration.
9761 (linux_get_hwcap2): Likewise.
9762 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
9763 (ppc_linux_get_hwcap2): Likewise.
9764 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
9765 linux_get_hwcap.
9766 (ppc_linux_nat_target::insert_watchpoint): Likewise.
9767 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
9768 (ppc_linux_nat_target::read_description): Likewise.
9769 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
9770 * s390-linux-nat.c: Likewise.
9771 * s390-linux-tdep.c (s390_core_read_description): Likewise.
9772
6640a367
TT
97732019-03-24 Tom Tromey <tom@tromey.com>
9774
9775 * ada-lang.c (standard_lookup): Simplify initialization.
9776 (ada_lookup_symbol_nonlocal): Simplify return.
9777 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
9778 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
9779 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
9780 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
9781 initialization.
9782 * solib.c (solib_global_lookup): Simplify.
9783 * symtab.c (null_block_symbol): Remove.
9784 (symbol_cache_lookup): Simplify returns.
9785 (lookup_language_this): Simplify returns.
9786 (lookup_symbol_aux): Simplify return.
9787 (lookup_local_symbol): Simplify returns.
9788 (lookup_global_symbol_from_objfile): Simplify return.
9789 (lookup_symbol_in_objfile_symtabs)
9790 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
9791 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
9792 (lookup_static_symbol, lookup_global_symbol): Simplify return.
9793 * cp-namespace.c (cp_lookup_bare_symbol)
9794 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
9795 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
9796 (cp_lookup_nested_symbol): Don't use null_block_symbol.
9797 (cp_lookup_symbol_via_imports): Simplify initialization.
9798 (find_symbol_in_baseclass): Likewise.
9799 * symtab.h (null_block_symbol): Remove.
9800 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
9801 (d_lookup_nested_symbol, d_lookup_symbol_imports)
9802 (d_lookup_symbol_module): Likewise.
9803 (find_symbol_in_baseclass): Simplify initialization.
9804
a930ebcd
TT
98052019-03-24 Tom Tromey <tom@tromey.com>
9806
9807 * expression.h: Don't include symtab.h.
9808 (struct block): Forward declare.
9809
582942f4
TT
98102019-03-24 Tom Tromey <tom@tromey.com>
9811
9812 * c-exp.y (typebase): Remove casts.
9813 * gdbtypes.c (lookup_unsigned_typename, )
9814 (lookup_signed_typename): Remove cast.
9815 * eval.c (parse_to_comma_and_eval): Remove cast.
9816 * parse.c (write_dollar_variable): Remove cast.
9817 * block.h (struct block) <superblock>: Now const.
9818 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
9819 * psymtab.c (psym_map_matching_symbols): Make "block" const.
9820 (map_block): Make "block" const.
9821 * symfile.h (struct quick_symbol_functions)
9822 <map_matching_symbols>: Constify block argument to "callback".
9823 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
9824 const.
9825 (find_pc_sect_compunit_symtab): Make "b" const.
9826 (find_symbol_at_address): Likewise.
9827 (search_symbols): Likewise.
9828 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
9829 (dw2_debug_names_lookup_symbol): Likewise.
9830 (dw2_map_matching_symbols): Update.
9831 * p-valprint.c (pascal_val_print): Remove "block".
9832 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
9833 (aux_add_nonlocal_symbols): Make "block" const.
9834 (resolve_subexp): Remove cast.
9835 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
9836 const.
9837 (iterate_over_file_blocks): Likewise.
9838 * f-exp.y (%union) <bval>: Remove.
9839 * coffread.c (patch_opaque_types): Make "b" const.
9840 * spu-tdep.c (spu_catch_start): Make "block" const.
9841 * c-valprint.c (print_unpacked_pointer): Remove "block".
9842 * symmisc.c (dump_symtab_1): Make "b" const.
9843 (block_depth): Make "block" const.
9844 * d-exp.y (%union) <bval>: Remove.
9845 * cp-support.h (cp_lookup_rtti_type): Update.
9846 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
9847 * psymtab.c (psym_lookup_symbol): Make "block" const.
9848 (maintenance_check_psymtabs): Make "b" const.
9849 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
9850 (enumerate_locals, enumerate_args): Update.
9851 * python/py-symtab.c (stpy_global_block): Make "block" const.
9852 (stpy_static_block): Likewise.
9853 * inline-frame.c (block_starting_point_at): Make "new_block"
9854 const.
9855 * block.c (find_block_in_blockvector): Make return type const.
9856 (blockvector_for_pc_sect): Make "b" const.
9857 (find_block_in_blockvector): Make "b" const.
9858
7ad417dd
TT
98592019-03-23 Tom Tromey <tom@tromey.com>
9860
9861 * varobj.c (varobj_create): Update.
9862 * symfile.c (clear_symtab_users): Don't reset innermost_block.
9863 * printcmd.c (display_command, do_one_display): Don't reset
9864 innermost_block.
9865 * parser-defs.h (enum innermost_block_tracker_type): Move to
9866 expression.h.
9867 (innermost_block): Update comment.
9868 * parse.c (parse_exp_1): Add tracker_types parameter.
9869 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
9870 tracker_types parameter. Reset innermost_block.
9871 (parse_exp_in_context): Remove.
9872 (parse_expression_for_completion): Update.
9873 * objfiles.c (~objfile): Don't reset expression_context_block or
9874 innermost_block.
9875 * expression.h (enum innermost_block_tracker_type): Move from
9876 parser-defs.h.
9877 (parse_exp_1): Add tracker_types parameter.
9878 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
9879 reset innermost_block.
9880
b366c208
TT
98812019-03-23 Tom Tromey <tom@tromey.com>
9882
9883 * objfiles.h: Include bcache.h.
9884
9bb9b2f9
TT
98852019-03-23 Tom Tromey <tom@tromey.com>
9886
9887 * linespec.c (get_current_search_block): Use
9888 scoped_restore_current_language.
9889 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
9890
59c28372
AH
98912019-03-22 Alan Hayward <alan.hayward@arm.com>
9892 Jiong Wang <jiong.wang@arm.com>
9893
9894 * aarch64-linux-tdep.c
9895 (aarch64_linux_iterate_over_regset_sections): Check for pauth
9896 section.
9897 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
9898
17e116a7
AH
98992019-03-22 Alan Hayward <alan.hayward@arm.com>
9900 Jiong Wang <jiong.wang@arm.com>
9901
9902 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
9903 instructions.
9904 (aarch64_analyze_prologue_test): Add PACIASP test.
9905 (aarch64_prologue_prev_register): Unmask PC value.
9906
11e1b75f
AH
99072019-03-22 Alan Hayward <alan.hayward@arm.com>
9908 Jiong Wang <jiong.wang@arm.com>
9909
9910 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
9911 (aarch64_dwarf2_prev_register): Unmask PC value.
9912 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
9913 (aarch64_execute_dwarf_cfa_vendor_op): Check for
9914 DW_CFA_AARCH64_negate_ra_state.
9915 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
9916
34dcc7cf
AH
99172019-03-22 Alan Hayward <alan.hayward@arm.com>
9918 Jiong Wang <jiong.wang@arm.com>
9919
9920 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
9921 registers.
9922 (aarch64_pseudo_register_name): Likewise.
9923 (aarch64_pseudo_register_type): Likewise.
9924 (aarch64_pseudo_register_reggroup_p): Likewise.
9925 (aarch64_gdbarch_init): Add pauth registers.
9926 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
9927 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
9928 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
9929 (struct gdbarch_tdep): Add regnum for ra_state.
9930
1ef53e6b
AH
99312019-03-22 Alan Hayward <alan.hayward@arm.com>
9932 Jiong Wang <jiong.wang@arm.com>
9933
9934 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
9935
76bed0fd
AH
99362019-03-22 Alan Hayward <alan.hayward@arm.com>
9937 Jiong Wang <jiong.wang@arm.com>
9938
9939 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
9940 function.
9941 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
9942 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
9943 (aarch64_gdbarch_init): Add puth registers.
9944 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
9945 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
9946 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
9947
ee4fbcfa
AH
99482019-03-22 Alan Hayward <alan.hayward@arm.com>
9949 Jiong Wang <jiong.wang@arm.com>
9950
9951 * aarch64-linux-nat.c
9952 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
9953 * aarch64-linux-tdep.c
9954 (aarch64_linux_core_read_description): Likewise.
9955 (aarch64_linux_get_hwcap): New function.
9956 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
9957 (aarch64_linux_get_hwcap): New declaration.
9958
6dc0ebde
AH
99592019-03-22 Alan Hayward <alan.hayward@arm.com>
9960 Jiong Wang <jiong.wang@arm.com>
9961
9962 * aarch64-linux-nat.c
9963 (aarch64_linux_nat_target::read_description): Add pauth param.
9964 * aarch64-linux-tdep.c
9965 (aarch64_linux_core_read_description): Likewise.
9966 * aarch64-tdep.c (struct target_desc): Add in pauth.
9967 (aarch64_read_description): Add pauth param.
9968 (aarch64_gdbarch_init): Likewise.
9969 * aarch64-tdep.h (aarch64_read_description): Likewise.
9970 * arch/aarch64.c (aarch64_create_target_description): Likewise.
9971 * arch/aarch64.h (aarch64_create_target_description): Likewise.
9972 * features/Makefile: Add new files.
9973 * features/aarch64-pauth.c: New file.
9974 * features/aarch64-pauth.xml: New file.
9975
595915c1
TT
99762019-03-20 Tom Tromey <tromey@adacore.com>
9977
9978 * infrun.c (handle_inferior_event): Rename from
9979 handle_inferior_event_1. Create a scoped_value_mark.
9980 (handle_inferior_event): Remove.
9981
4c7d57e7
TT
99822019-03-19 Tom Tromey <tromey@adacore.com>
9983
9984 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
9985 * infrun.h (print_stop_event): Add "displays" parameter.
9986 * infrun.c (print_stop_event): Add "displays" parameter.
9987
cb246234
PA
99882019-03-19 Pedro Alves <palves@redhat.com>
9989
9990 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
9991 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
9992 to -1. Fix TABs vs spaces.
9993 (tui_ui_out::tui_ui_out): Don't initialize fields here.
9994 * tui/tui-out.h (tui_ui_out) Add intro comments.
9995 <m_line, m_start_of_line>: In-class initialize, and add describing
9996 comment.
9997
3a0e45b2
AH
99982019-03-18 Alan Hayward <alan.hayward@arm.com>
9999
10000 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
10001 variable names.
10002 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
10003
5371b850
PA
100042019-03-18 Pedro Alves <palves@redhat.com>
10005 Eli Zaretskii <eliz@gnu.org>
10006
10007 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
10008 m_line and m_start_of_line.
10009
b17c4cd0
EZ
100102019-03-18 Eli Zaretskii <eliz@gnu.org>
10011
10012 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
10013 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
10014 it returns a newline. This fixes a regression in TU mode, whereby
10015 the next line is output on the same screen line as the user input.
10016
4bd56d18
TT
100172019-03-18 Tom Tromey <tromey@adacore.com>
10018
10019 * minsyms.c (minimal_symbol_reader::install): Remove call to
10020 obstack_blank.
10021
55c10aca
PA
100222019-03-18 Pedro Alves <palves@redhat.com>
10023
10024 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
10025 New globals.
10026 (apply_style): New, factored out from ...
10027 (apply_ansi_escape): ... this. Handle reverse video mode.
10028 (tui_set_reverse_mode): New function.
10029 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
10030 * tui/tui-winsource.c (tui_show_source_line): Use
10031 tui_set_reverse_mode instead of setting A_STANDOUT.
10032 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
10033 New setter methods.
10034
647bb750
HD
100352019-03-18 Hannes Domani <ssbssa@yahoo.de>
10036
10037 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
10038 Handle tabs.
10039
bff8c71f
TT
100402019-03-18 Tom Tromey <tromey@adacore.com>
10041
10042 * ada-lang.c (empty_array): Add "high" parameter.
10043 (ada_evaluate_subexp): Update.
10044
58785d98
ST
100452019-03-17 Sergei Trofimovich <siarheit@google.com>
10046
10047 * unittests/string_view-selftests.c: Define
10048 _initialize_string_view_selftests unconditionally.
10049
d4cbef22
ВМ
100502019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10051
10052 PR gdb/24350
10053 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
10054
fce4c071
ВМ
100552019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10056
10057 PR gdb/24351
10058 * windows-nat.c (display_selector): Fix format specifiers.
10059
f7f0a123
EZ
100602019-03-17 Eli Zaretskii <eliz@gnu.org>
10061
10062 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
10063 tui_refill_source_window instead of tui_refresh_win, to update the
10064 current execution line. This fixes redisplay of the current line
10065 when stepping through the code with "next" or "step".
10066
ab42892f
EZ
100672019-03-16 Eli Zaretskii <eliz@gnu.org>
10068
10069 * source-cache.c (source_cache::get_source_lines): Call
10070 find_source_lines to initialize s->nlines. This fixes vertical
10071 scrolling of TUI source window when the DOWN arrow is pressed.
10072
8d8c087f
PW
100732019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10074
10075 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
10076 linux-thread-db.c (_initialize_thread_db): Likewise.
10077
798e1c30
EZ
100782019-03-16 Eli Zaretskii <eliz@gnu.org>
10079
10080 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
10081 wclrtoeol in tui_show_source_line". This reverts changes made in
10082 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
10083
eefba3da
TT
100842019-03-15 Tom Tromey <tom@tromey.com>
10085
10086 * symtab.h (struct minimal_symbol): Derive from
10087 general_symbol_info.
10088 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
10089 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10090 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10091 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10092 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
10093 (MSYMBOL_SEARCH_NAME): Update.
10094 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
10095 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
10096 * minsyms.c (minimal_symbol_reader::record_full): Update.
10097
0de2420c
TT
100982019-03-15 Tom Tromey <tom@tromey.com>
10099
10100 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
10101
042d75e4
TT
101022019-03-15 Tom Tromey <tom@tromey.com>
10103
10104 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
10105 unique_xmalloc_ptr.
10106 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
10107 Update.
10108 * minsyms.c (lookup_minimal_symbol_by_pc_section)
10109 (build_minimal_symbol_hash_tables)
10110 (minimal_symbol_reader::install): Update.
10111
db92718b
TT
101122019-03-15 Tom Tromey <tom@tromey.com>
10113
10114 * symtab.c (create_demangled_names_hash): Update.
10115 (symbol_set_names): Update.
10116 * objfiles.h (struct objfile_per_bfd_storage)
10117 <demangled_names_hash>: Now an htab_up.
10118 * objfiles.c (objfile_per_bfd_storage): Simplify.
10119
d6797f46
TT
101202019-03-15 Tom Tromey <tom@tromey.com>
10121
10122 * objfiles.h (struct objfile_per_bfd_storage): Declare
10123 destructor.
10124 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
10125 New.
10126 (get_objfile_bfd_data): Use new. Don't initialize
10127 language_of_main.
10128 (free_objfile_per_bfd_storage): Remove.
10129 (objfile_bfd_data_free, objfile::~objfile): Use delete.
10130
741d7538
TT
101312019-03-15 Tom Tromey <tom@tromey.com>
10132
10133 * symfile.c (reread_symbols): Update.
10134 * objfiles.c (objfile::objfile): Update.
10135 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
10136 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
10137 comment.
10138 (minimal_symbol_reader::install): Update.
10139 (terminate_minimal_symbol_table): Remove.
10140 * jit.c (jit_object_close_impl): Update.
10141
788c80d1
TT
101422019-03-15 Tom Tromey <tom@tromey.com>
10143
10144 * minsyms.c (minimal_symbol_reader::record_full): Remove some
10145 initializations.
10146
1b7a07cb
TT
101472019-03-15 Tom Tromey <tom@tromey.com>
10148
10149 * objfiles.h (struct objfile_per_bfd_storage)
10150 <demangled_hash_languages>: Now a bitset.
10151 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
10152 (lookup_minimal_symbol): Update.
10153
3db066bc
TT
101542019-03-15 Tom Tromey <tom@tromey.com>
10155
10156 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
10157 Don't return the symbol.
10158 * coffread.c (record_minimal_symbol): Use record_full.
10159
3fff2c37
EZ
101602019-03-14 Eli Zaretskii <eliz@gnu.org>
10161
10162 The MS-Windows port of ncurses fails to switch to a color pair if
10163 one or both of the colors are the implicit default colors. This
10164 change records the default colors when TUI is initialized, and
10165 then specifies them explicitly when a color pair uses the default
10166 colors. This allows color styling in TUI mode on MS-Windows.
10167
10168 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
10169 ncurses_norm_attr.
10170 (tui_initialize_io) [__MINGW32__]: Record the default terminal
10171 colors in ncurses_norm_attr.
10172 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
10173 "none", replace it with the default color recorded in
10174 ncurses_norm_attr.
10175
3b336828
TT
101762019-03-14 Tom Tromey <tromey@adacore.com>
10177
10178 * source-cache.h (class source_cache) <get_source_lines>: Return
10179 std::string.
10180 * source-cache.c (source_cache::extract_lines): Handle case where
10181 first_pos==npos. Return std::string.
10182 (source_cache::get_source_lines): Update.
10183
d085f989
TT
101842019-03-14 Tom Tromey <tromey@adacore.com>
10185
10186 * NEWS: Add item for "style sources" commands.
10187 * source-cache.c (source_cache::get_source_lines): Check
10188 source_styling.
10189 * cli/cli-style.c (source_styling): New global.
10190 (_initialize_cli_style): Add "style sources" commands.
10191 (show_style_sources): New function.
10192 * cli/cli-style.h (source_styling): Declare.
10193
6f11e682
TT
101942019-03-14 Pedro Alves <palves@redhat.com>
10195 Tom Tromey <tromey@adacore.com>
10196
10197 * tui/tui-winsource.h (tui_refill_source_window): Declare.
10198 * tui/tui-winsource.c (tui_refill_source_window): New function,
10199 from...
10200 (tui_horizontal_source_scroll): ... here. Move some logic.
10201 * cli/cli-style.c (set_style_enabled): Notify new observable.
10202 * tui/tui-hooks.c (tui_redisplay_source): New function.
10203 (tui_attach_detach_observers): Attach or detach
10204 tui_redisplay_source.
10205 * observable.h (source_styling_changed): New observable.
10206 * observable.c: Define source_styling_changed observable.
10207
a068643d
TT
102082019-03-13 Tom Tromey <tromey@adacore.com>
10209
10210 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
10211 (i386_gnu_nat_target::store_registers): Update.
10212 * target-debug.h (target_debug_print_std_string): New macro.
10213 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10214 * windows-tdep.c (display_one_tib): Update.
10215 * tui/tui-stack.c (tui_make_status_line): Update.
10216 * top.c (print_inferior_quit_action): Update.
10217 * thread.c (thr_try_catch_cmd): Update.
10218 (add_thread_with_info): Update.
10219 (thread_target_id_str): Update.
10220 (thr_try_catch_cmd): Update.
10221 (thread_command): Update.
10222 (thread_find_command): Update.
10223 * record-btrace.c (record_btrace_target::info_record)
10224 (record_btrace_resume_thread, record_btrace_target::resume)
10225 (record_btrace_cancel_resume, record_btrace_step_thread)
10226 (record_btrace_target::wait, record_btrace_target::wait)
10227 (record_btrace_target::wait, record_btrace_target::stop): Update.
10228 * progspace.c (print_program_space): Update.
10229 * process-stratum-target.c
10230 (process_stratum_target::thread_address_space): Update.
10231 * linux-fork.c (linux_fork_mourn_inferior)
10232 (detach_checkpoint_command, info_checkpoints_command)
10233 (linux_fork_context): Update.
10234 (linux_fork_detach): Update.
10235 (class scoped_switch_fork_info): Update.
10236 (delete_checkpoint_command): Update.
10237 * infrun.c (follow_fork_inferior): Update.
10238 (follow_fork_inferior): Update.
10239 (proceed_after_vfork_done): Update.
10240 (handle_vfork_child_exec_or_exit): Update.
10241 (follow_exec): Update.
10242 (displaced_step_prepare_throw): Update.
10243 (displaced_step_restore): Update.
10244 (start_step_over): Update.
10245 (resume_1): Update.
10246 (clear_proceed_status_thread): Update.
10247 (proceed): Update.
10248 (print_target_wait_results): Update.
10249 (do_target_wait): Update.
10250 (context_switch): Update.
10251 (stop_all_threads): Update.
10252 (restart_threads): Update.
10253 (finish_step_over): Update.
10254 (handle_signal_stop): Update.
10255 (switch_back_to_stepped_thread): Update.
10256 (keep_going_pass_signal): Update.
10257 (print_exited_reason): Update.
10258 (normal_stop): Update.
10259 * inferior.c (inferior_pid_to_str): Change return type.
10260 (print_selected_inferior): Update.
10261 (add_inferior): Update.
10262 (detach_inferior): Update.
10263 * dummy-frame.c (fprint_dummy_frames): Update.
10264 * dcache.c (dcache_info_1): Update.
10265 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
10266 (btrace_fetch, btrace_clear): Update.
10267 * linux-tdep.c (linux_core_pid_to_str): Change return type.
10268 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
10269 type.
10270 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
10271 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
10272 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
10273 * gdbarch.c, gdbarch.h: Rebuild.
10274 * gdbarch.sh (core_pid_to_str): Change return type.
10275 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
10276 return type.
10277 (windows_nat_target::pid_to_str): Change return type.
10278 (windows_delete_thread): Update.
10279 (windows_nat_target::attach): Update.
10280 (windows_nat_target::files_info): Update.
10281 * target-delegates.c: Rebuild.
10282 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
10283 return type.
10284 (sol_thread_target::pid_to_str): Change return type.
10285 * remote.c (class remote_target) <pid_to_str>: Change return
10286 type.
10287 (remote_target::pid_to_str): Change return type.
10288 (extended_remote_target::attach, remote_target::remote_stop_ns)
10289 (remote_target::remote_notif_remove_queued_reply)
10290 (remote_target::push_stop_reply, remote_target::disable_btrace):
10291 Update.
10292 (extended_remote_target::attach): Update.
10293 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
10294 type.
10295 (gdbsim_target::pid_to_str): Change return type.
10296 * ravenscar-thread.c (struct ravenscar_thread_target)
10297 <pid_to_str>: Change return type.
10298 (ravenscar_thread_target::pid_to_str): Change return type.
10299 * procfs.c (class procfs_target) <pid_to_str>: Change return
10300 type.
10301 (procfs_target::pid_to_str): Change return type.
10302 (procfs_target::attach): Update.
10303 (procfs_target::detach): Update.
10304 (procfs_target::fetch_registers): Update.
10305 (procfs_target::store_registers): Update.
10306 (procfs_target::wait): Update.
10307 (procfs_target::files_info): Update.
10308 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
10309 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
10310 return type.
10311 (nto_procfs_target::pid_to_str): Change return type.
10312 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
10313 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
10314 return type.
10315 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
10316 (exit_lwp): Update.
10317 (attach_proc_task_lwp_callback, get_detach_signal)
10318 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
10319 (linux_nat_target::resume, wait_lwp, stop_callback)
10320 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
10321 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
10322 (linux_nat_wait_1, resume_stopped_resumed_lwps)
10323 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
10324 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
10325 type.
10326 (inf_ptrace_target::attach): Update.
10327 (inf_ptrace_target::files_info): Update.
10328 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
10329 type.
10330 (go32_nat_target::pid_to_str): Change return type.
10331 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
10332 (gnu_nat_target::wait): Update.
10333 (gnu_nat_target::wait): Update.
10334 (gnu_nat_target::resume): Update.
10335 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
10336 (fbsd_nat_target::wait): Update.
10337 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
10338 type.
10339 (darwin_nat_target::attach): Update.
10340 * corelow.c (class core_target) <pid_to_str>: Change return type.
10341 (core_target::pid_to_str): Change return type.
10342 * target.c (normal_pid_to_str): Change return type.
10343 (default_pid_to_str): Likewise.
10344 (target_pid_to_str): Change return type.
10345 (target_translate_tls_address): Update.
10346 (target_announce_detach): Update.
10347 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
10348 return type.
10349 (bsd_uthread_target::pid_to_str): Change return type.
10350 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
10351 type.
10352 (bsd_kvm_target::pid_to_str): Change return type.
10353 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
10354 return type.
10355 (aix_thread_target::pid_to_str): Change return type.
10356 * target.h (struct target_ops) <pid_to_str>: Change return type.
10357 (target_pid_to_str, normal_pid_to_str): Likewise.
10358 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
10359 type.
10360 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
10361 type.
10362 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
10363 return type.
10364 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
10365 type.
10366 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
10367 type.
10368 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
10369 return type.
10370
b4be1b06
SM
103712019-03-13 Simon Marchi <simon.marchi@ericsson.com>
10372
10373 * NEWS: Mention that the new default MI version is 3. Mention
10374 changes to the output of commands and events that deal with
10375 multi-location breakpoints.
10376 * breakpoint.c: Include "mi/mi-out.h".
10377 (print_one_breakpoint): Change output syntax if using MI version
10378 >= 3.
10379 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
10380 New.
10381 (mi_multi_location_breakpoint_output_fixed): New.
10382 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
10383 (mi_cmd_fix_multi_location_breakpoint_output): New.
10384 (mi_multi_location_breakpoint_output_fixed): New.
10385 * mi/mi-cmds.c (mi_cmds): Register command
10386 -fix-multi-location-breakpoint-output.
10387 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
10388 interpreter "mi".
10389
8e5e5494
SM
103902019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10391
10392 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
10393 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
10394 instantiate mi_ui_out based on interpreter name.
10395 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
10396 * mi/mi-main.c (mi_load_progress): Likewise.
10397
197df35e
JB
103982019-03-12 John Baldwin <jhb@FreeBSD.org>
10399
10400 * NEWS: Combine separate "New targets" sections for 8.3.
10401
8399425f
JB
104022019-03-12 John Baldwin <jhb@FreeBSD.org>
10403
10404 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
10405 (ppcfbsd_init_abi): Install gdbarch
10406 "fetch_tls_load_module_address" and "get_thread_local_address"
10407 methods.
10408
b0f87ed0
JB
104092019-03-12 John Baldwin <jhb@FreeBSD.org>
10410
10411 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
10412 (riscv_fbsd_init_abi): Install gdbarch
10413 "fetch_tls_load_module_address" and "get_thread_local_address"
10414 methods.
10415
ce25aa57
JB
104162019-03-12 John Baldwin <jhb@FreeBSD.org>
10417
10418 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
10419 (i386fbsd_init_abi): Install gdbarch
10420 "fetch_tls_load_module_address" and "get_thread_local_address"
10421 methods.
10422
f5424cfa
JB
104232019-03-12 John Baldwin <jhb@FreeBSD.org>
10424
10425 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
10426 (amd64fbsd_init_abi): Install gdbarch
10427 "fetch_tls_load_module_address" and "get_thread_local_address"
10428 methods.
10429
945f3901
JB
104302019-03-12 John Baldwin <jhb@FreeBSD.org>
10431
10432 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
10433 (struct fbsd_pspace_data): New type.
10434 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
10435 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
10436 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
10437 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
10438 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
10439
ef0bd204
JB
104402019-03-12 John Baldwin <jhb@FreeBSD.org>
10441
10442 * gdbtypes.c (lookup_struct_elt): New function.
10443 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
10444 * gdbtypes.h (struct struct_elt): New type.
10445 (lookup_struct_elt): New prototype.
10446
36c53a02
JB
104472019-03-12 John Baldwin <jhb@FreeBSD.org>
10448
10449 * gdbtypes.c (lookup_struct_elt_type): Update comment and
10450 remove disabled code block.
10451
6e056c81
JB
104522019-03-12 John Baldwin <jhb@FreeBSD.org>
10453
10454 * gdbarch.sh (get_thread_local_address): New method.
10455 * gdbarch.h, gdbarch.c: Regenerate.
10456 * target.c (target_translate_tls_address): Use
10457 gdbarch_get_thread_local_address if present instead of
10458 target::get_thread_local_address.
10459
cd250a18
JB
104602019-03-12 John Baldwin <jhb@FreeBSD.org>
10461
10462 * target.h (target::get_thread_local_address): Update comment.
10463
df22c1e5
JB
104642019-03-12 John Baldwin <jhb@FreeBSD.org>
10465
10466 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
10467 objfile->separate_debug_objfile_backlink if not NULL.
10468
dd6876c9
JB
104692019-03-12 John Baldwin <jhb@FreeBSD.org>
10470
10471 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10472 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
10473 (amd64bsd_store_inferior_registers): Likewise.
10474 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10475 Enable segment base registers.
10476 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
10477 PT_GETFSBASE and PT_GETGSBASE.
10478 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
10479 PT_SETGSBASE.
10480 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
10481 segment base registers.
10482 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10483
1163a4b7
JB
104842019-03-12 John Baldwin <jhb@FreeBSD.org>
10485
10486 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10487 Update calls to i386_target_description to add 'segments'
10488 parameter.
10489 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
10490 add segment base registers.
10491 * arch/i386.c (i386_create_target_description): Add 'segments'
10492 parameter to enable segment base registers.
10493 * arch/i386.h (i386_create_target_description): Likewise.
10494 * features/i386/32bit-segments.xml: New file.
10495 * features/i386/32bit-segments.c: Generate.
10496 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
10497 call to i386_target_description to add 'segments' parameter.
10498 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10499 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
10500 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
10501 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
10502 if feature is present.
10503 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
10504 Add 'segments' parameter to call to i386_target_description.
10505 (i386_target_description): Add 'segments' parameter to enable
10506 segment base registers.
10507 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
10508 to call to i386_target_description.
10509 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
10510 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
10511 Define I386_NUM_REGS.
10512 (i386_target_description): Add 'segments' parameter to enable
10513 segment base registers.
10514
3a350822
EZ
105152019-03-12 Eli Zaretskii <eliz@gnu.org>
10516
10517 PR/24325
10518 * source-cache.c: #undef open and close, to avoid unresolved
10519 externals during linking.
10520
ffdd69cf
TT
105212019-03-12 Tom Tromey <tromey@adacore.com>
10522
10523 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
10524 const. Add initializers.
10525 (_initialize_remote): Don't initialize ptid globals.
10526
ec148c57
PA
105272019-03-12 Pedro Alves <palves@redhat.com>
10528
10529 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
10530
32764270
PA
105312019-03-12 Pedro Alves <palves@redhat.com>
10532
10533 * cp-name-parser.y (main): Remove unused 'len' variable.
10534
17547186
TT
105352019-03-12 Tom Tromey <tromey@adacore.com>
10536
10537 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
10538 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
10539
d3a70e03
TT
105402019-03-12 Tom Tromey <tromey@adacore.com>
10541
10542 * linux-nat.c (iterate_over_lwps): Update.
10543 (stop_callback): Remove parameter.
10544 (stop_wait_callback, detach_callback, resume_set_callback)
10545 (select_singlestep_lwp_callback, set_ignore_sigint)
10546 (status_callback, resumed_callback, resume_clear_callback)
10547 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
10548 data parameter.
10549 (linux_nat_target::detach, linux_nat_target::resume)
10550 (linux_stop_and_wait_all_lwps, select_event_lwp)
10551 (linux_nat_filter_event, linux_nat_wait_1)
10552 (linux_nat_target::kill, linux_nat_target::stop)
10553 (linux_nat_target::stop): Update.
10554 (linux_nat_resume_callback): Change type.
10555 (resume_stopped_resumed_lwps, count_events_callback)
10556 (select_event_lwp_callback): Likewise.
10557 (linux_stop_lwp, linux_nat_stop_lwp): Update.
10558 * arm-linux-nat.c (struct update_registers_data): Remove.
10559 (update_registers_callback): Change type.
10560 (arm_linux_insert_hw_breakpoint1): Update.
10561 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
10562 parameter.
10563 (x86_linux_dr_set_addr): Update.
10564 (x86_linux_dr_set_control): Update.
10565 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
10566 (iterate_over_lwps): Use gdb::function_view.
10567 * nat/aarch64-linux-hw-point.c (struct
10568 aarch64_dr_update_callback_param): Remove.
10569 (debug_reg_change_callback): Change type.
10570 (aarch64_notify_debug_reg_change): Update.
10571 * s390-linux-nat.c (s390_refresh_per_info): Update.
10572
82cb27ff
TT
105732019-03-11 Tom Tromey <tromey@adacore.com>
10574
10575 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
10576 redundant assignment to "this_cu".
10577
568c0683
SM
105782019-03-08 Simon Marchi <simon.marchi@efficios.com>
10579
10580 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
10581
f09ce22d
SM
105822019-03-08 Simon Marchi <simon.marchi@efficios.com>
10583
10584 * gdbtypes.c (rank_one_type_parm_set): New function extracted
10585 from...
10586 (rank_one_type): ... this.
10587
595f96a9
SM
105882019-03-08 Simon Marchi <simon.marchi@efficios.com>
10589
10590 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
10591 from...
10592 (rank_one_type): ... this.
10593
2598a94b
SM
105942019-03-08 Simon Marchi <simon.marchi@efficios.com>
10595
10596 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
10597 from...
10598 (rank_one_type): ... this.
10599
7f17b20d
SM
106002019-03-08 Simon Marchi <simon.marchi@efficios.com>
10601
10602 * gdbtypes.c (rank_one_type_parm_float): New function extracted
10603 from...
10604 (rank_one_type): ... this.
10605
2c509035
SM
106062019-03-08 Simon Marchi <simon.marchi@efficios.com>
10607
10608 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
10609 from...
10610 (rank_one_type): ... this.
10611
0dd322dc
SM
106122019-03-08 Simon Marchi <simon.marchi@efficios.com>
10613
10614 * gdbtypes.c (rank_one_type_parm_range): New function extracted
10615 from...
10616 (rank_one_type): ... this.
10617
41ea4728
SM
106182019-03-08 Simon Marchi <simon.marchi@efficios.com>
10619
10620 * gdbtypes.c (rank_one_type_parm_char): New function extracted
10621 from...
10622 (rank_one_type): ... this.
10623
793cd1d2
SM
106242019-03-08 Simon Marchi <simon.marchi@efficios.com>
10625
10626 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
10627 from...
10628 (rank_one_type): ... this.
10629
34910087
SM
106302019-03-08 Simon Marchi <simon.marchi@efficios.com>
10631
10632 * gdbtypes.c (rank_one_type_parm_int): New function extracted
10633 from...
10634 (rank_one_type): ... this.
10635
f1f832d6
SM
106362019-03-08 Simon Marchi <simon.marchi@efficios.com>
10637
10638 * gdbtypes.c (rank_one_type_parm_func): New function extracted
10639 from...
10640 (rank_one_type): ... this.
10641
b9f4512f
SM
106422019-03-08 Simon Marchi <simon.marchi@efficios.com>
10643
10644 * gdbtypes.c (rank_one_type_parm_array): New function extracted
10645 from...
10646 (rank_one_type): ... this.
10647
9293fc63
SM
106482019-03-08 Simon Marchi <simon.marchi@efficios.com>
10649
10650 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
10651 from...
10652 (rank_one_type): ... this.
10653
e3abbe7e
PW
106542019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10655
10656 * inferior.c (initialize_inferiors): Ensure 'help set/show print
10657 inferior-events' shows the example events.
10658
e4adb939
EZ
106592019-03-08 Eli Zaretskii <eliz@gnu.org>
10660
10661 Support styling on native MS-Windows console
10662
10663 PR/24315
10664 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
10665 on MS-Windows if $TERM is not defined.
10666
10667 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
10668
10669 * posix-hdep.c (gdb_console_fputs):
10670 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
10671 functions.
10672 * ui-file.h (gdb_console_fputs): Add prototype.
10673
10674 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
10675 back to fputs only if the former returns zero.
10676
25629dfd
TT
106772019-03-07 Tom Tromey <tom@tromey.com>
10678
10679 * symmisc.c (print_symbol_bcache_statistics): Update.
10680 (print_objfile_statistics): Update.
10681 * symfile.c (allocate_symtab): Update.
10682 * stabsread.c: Don't include bcache.h.
10683 * psymtab.h (struct psymbol_bcache): Don't declare.
10684 (class psymtab_storage) <psymbol_cache>: Now a bcache.
10685 (psymbol_bcache_init, psymbol_bcache_free)
10686 (psymbol_bcache_get_bcache): Don't declare.
10687 * psymtab.c (struct psymbol_bcache): Remove.
10688 (psymtab_storage::psymtab_storage): Update.
10689 (psymtab_storage::~psymtab_storage): Update.
10690 (psymbol_bcache_init, psymbol_bcache_free)
10691 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
10692 (add_psymbol_to_bcache): Update.
10693 (allocate_psymtab): Update.
10694 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10695 macro_cache>: No longer pointers.
10696 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
10697 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
10698 * macrotab.c (macro_bcache): Update.
10699 * macroexp.c: Don't include bcache.h.
10700 * gdbtypes.c (check_types_worklist): Update.
10701 (types_deeply_equal): Remove TRY/CATCH. Update.
10702 * elfread.c (elf_symtab_read): Update.
10703 * dwarf2read.c: Don't include bcache.h.
10704 * buildsym.c (buildsym_compunit::get_macro_table): Update.
10705 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
10706 (print_bcache_statistics, bcache_memory_used): Don't declare.
10707 (struct bcache): Move from bcache.c. Add constructor, destructor,
10708 methods. Rename all data members.
10709 * bcache.c (struct bcache): Move to bcache.h.
10710 (bcache::expand_hash_table): Rename from expand_hash_table.
10711 (bcache): Remove.
10712 (bcache::insert): Rename from bcache_full.
10713 (bcache::compare): Rename from bcache_compare.
10714 (bcache_xmalloc): Remove.
10715 (bcache::~bcache): Rename from bcache_xfree.
10716 (bcache::print_statistics): Rename from print_bcache_statistics.
10717 (bcache::memory_used): Rename from bcache_memory_used.
10718
fe726667
PA
107192019-03-07 Pedro Alves <palves@redhat.com>
10720
10721 * infrun.c (normal_stop): Also check for
10722 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
10723
7584bb30
AB
107242019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10725
10726 * f-lang.c (value_from_host_double): Moved to...
10727 * value.c (value_from_host_double): ...here.
10728 * value.h (value_from_host_double): Declare.
10729 * guile/scm-math.c (vlscm_convert_typed_number): Use
10730 value_from_host_double.
10731 (vlscm_convert_number): Likewise.
10732 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
10733 * python/py-value.c (convert_value_from_python): Likewise.
10734
a7b1986e
TT
107352019-03-06 Tom Tromey <tom@tromey.com>
10736
10737 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
10738
0ccf4211
TT
107392019-03-06 Tom Tromey <tom@tromey.com>
10740
10741 * utils.h (free_current_contents): Don't declare.
10742 * utils.c (free_current_contents): Remove.
10743
fe7b42e5
TT
107442019-03-06 Tom Tromey <tom@tromey.com>
10745
10746 * top.c (quit_force): Update.
10747 * main.c (captured_command_loop): Update.
10748 * common/new-op.c (operator new): Update.
10749 * common/common-exceptions.c (struct catcher)
10750 <save_cleanup_chain>: Remove member.
10751 (exceptions_state_mc_init): Update.
10752 (exception_try_scope_entry): Return nullptr.
10753 (exception_try_scope_exit, exception_rethrow)
10754 (throw_exception_sjlj, throw_exception_cxx): Update.
10755 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
10756 (all_cleanups, do_cleanups, discard_cleanups)
10757 (discard_final_cleanups, save_cleanups, save_final_cleanups)
10758 (restore_cleanups, restore_final_cleanups): Don't declare.
10759 (do_final_cleanups): Remove parameter.
10760 * common/cleanups.c (cleanup_chain, make_cleanup)
10761 (make_cleanup_dtor, all_cleanups, do_cleanups)
10762 (discard_my_cleanups, discard_cleanups)
10763 (discard_final_cleanups, save_my_cleanups, save_cleanups)
10764 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
10765 (null_cleanup): Remove.
10766 (do_final_cleanups): Remove parameter.
10767
c6321f19
TT
107682019-03-06 Tom Tromey <tom@tromey.com>
10769
10770 * remote.c (remote_target::remote_parse_stop_reply): Use
10771 unique_xmalloc_ptr.
10772
61b30099
TT
107732019-03-06 Tom Tromey <tom@tromey.com>
10774
10775 * stabsread.c (struct stabs_field_info): Rename from field_info.
10776 <list, fnlist>: Add initializers.
10777 <obstack>: New member.
10778 (read_member_functions, read_struct_fields, read_baseclasses):
10779 Allocate on obstack. Don't use cleanups.
10780 (read_one_struct_field, read_member_functions, read_struct_fields)
10781 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
10782 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
10783 (read_struct_type): Update.
10784
6cceac94
TT
107852019-03-06 Tom Tromey <tom@tromey.com>
10786
10787 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
10788 * common/filestuff.h (make_cleanup_close): Don't declare.
10789 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
10790 Remove.
10791
72412762
TT
107922019-03-06 Tom Tromey <tom@tromey.com>
10793
10794 * solib-aix.c: Use make_scope_exit.
10795
2b6ff1c0
TT
107962019-03-06 Tom Tromey <tom@tromey.com>
10797
10798 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
10799 Use make_scope_exit.
10800
d01c5877
TT
108012019-03-06 Tom Tromey <tom@tromey.com>
10802
10803 * solib-svr4.c (disable_probes_interface): Remove parameter.
10804 (svr4_handle_solib_event): Use make_scope_exit.
10805
32603266
TT
108062019-03-06 Tom Tromey <tom@tromey.com>
10807
10808 * remote.c (struct stop_reply_deleter): Remove.
10809 (stop_reply_up): Update.
10810 (struct stop_reply): Derive from notif_event. Don't typedef.
10811 <regcache>: Now a std::vector.
10812 (stop_reply_xfree): Remove.
10813 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
10814 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
10815 (remote_target::discard_pending_stop_replies): Use delete.
10816 (remote_target::remote_parse_stop_reply): Update.
10817 (remote_target::process_stop_reply): Update.
10818 * remote-notif.h (struct notif_event): Add virtual destructor.
10819 Remove "dtr" member.
10820 (struct notif_client) <alloc_event>: Return a unique_ptr.
10821 (notif_event_xfree): Don't declare.
10822 (notif_event_up): New typedef.
10823 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
10824 (notif_event_xfree, do_notif_event_xfree): Remove.
10825 (remote_notif_state_xfree): Update.
10826
9799571e
TT
108272019-03-06 Tom Tromey <tom@tromey.com>
10828
10829 * infrun.c (displaced_step_clear_cleanup): Now a
10830 forward_scope_exit type.
10831 (displaced_step_prepare_throw): Update.
10832 (displaced_step_fixup): Update.
10833
09e3c4ca
TT
108342019-03-06 Tom Tromey <tom@tromey.com>
10835
10836 * inferior.h (class inferior): Update comment.
10837 * gdbthread.h (class thread_info): Update comment.
10838
e2a03548
TT
108392019-03-06 Joel Brobecker <brobecker@adacore.com>
10840 Tom Tromey <tom@tromey.com>
10841
10842 * stabsread.h (struct stab_section_list): Remove.
10843 (coffstab_build_psymtabs): Update.
10844 * dbxread.c (symbuf_sections): Now a std::vector.
10845 (sect_idx): New global.
10846 (fill_symbuf): Update.
10847 (coffstab_build_psymtabs): Change type of stabsects parameter.
10848 Update.
10849 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
10850 std::vector.
10851 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
10852 (coff_locate_sections): Update.
10853 (coff_symfile_read): Remove cleanups. Update.
10854 (init_stringtab): Add storage parameter.
10855 (free_stringtab, free_stringtab_cleanup): Remove.
10856 (init_lineno): Add storage parameter.
10857 (free_linetab, free_linetab_cleanup): Remove.
10858
b7e60d85
PA
108592019-03-06 Pedro Alves <palves@redhat.com>
10860
10861 * linux-fork.c (fork_info::clobber_regs): Delete.
10862 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
10863 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
10864 comment. Adjust.
10865 (scoped_switch_fork_info::scoped_switch_fork_info)
10866 (checkpoint_command, linux_fork_context): Adjust
10867 fork_save_infrun_state calls.
10868
e52c971f
PA
108692019-03-06 Pedro Alves <palves@redhat.com>
10870
10871 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
10872 (inf_has_multiple_threads): Return 'bool' and rewrite using
10873 inferior_info::threads().
10874
06974e6c
PA
108752019-03-06 Pedro Alves <palves@redhat.com>
10876
10877 * linux-fork.c: Include <list>.
10878 (fork_list): Now a std::list instance.
10879 (fork_info): Add ctor, dtor, and in-class initialize all fields.
10880 (forks_exist_p, find_last_fork): Adjust.
10881 (new_fork): Delete.
10882 (one_fork_p): New.
10883 (add_fork): Adjust.
10884 (free_fork): Delete, folded into fork_info::~fork_info().
10885 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
10886 Adjust.
10887 (init_fork_list): Delete.
10888 (linux_fork_killall, linux_fork_mourn_inferior)
10889 (linux_fork_detach, info_checkpoints_command): Adjust.
10890 (_initialize_linux_fork): No longer call init_fork_list.
10891
72f31aea
PA
108922019-03-06 Pedro Alves <palves@redhat.com>
10893
10894 * linux-fork.c (new_fork): New, split out of ...
10895 (add_fork): ... this. Return void. Move "first fork" special
10896 case from here, to ...
10897 (checkpoint_command): ... here.
10898 * linux-linux.h (add_fork): Return void.
10899
efbecbc1
AB
109002019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10901
10902 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
10903
0841c79a
AB
109042019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10905 Chris January <chris.january@arm.com>
10906 David Lecomber <david.lecomber@arm.com>
10907
10908 * f-exp.y: New token, UNOP_INTRINSIC.
10909 (exp): New pattern using UNOP_INTRINSIC token.
10910 (f77_keywords): Add 'abs' keyword.
10911 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
10912 (value_from_host_double): New function.
10913 (evaluate_subexp_f): Support UNOP_ABS.
10914
4a270568
AB
109152019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10916
10917 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
10918 types.
10919
067630bd
AB
109202019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10921
10922 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
10923 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
10924 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
10925
3be47f7a
AB
109262019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10927
10928 * f-exp.y (convert_to_kind_type): Handle more type kinds.
10929
4d00f5d8
AB
109302019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10931 Chris January <chris.january@arm.com>
10932
10933 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
10934 * f-exp.y: Define 'KIND' token.
10935 (exp): New pattern for KIND expressions.
10936 (ptype): Handle types with a kind extension.
10937 (direct_abs_decl): Extend to spot kind extensions.
10938 (f77_keywords): Add 'kind' to the list.
10939 (push_kind_type): New function.
10940 (convert_to_kind_type): New function.
10941 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
10942 * parse.c (operator_length_standard): Likewise.
10943 * parser-defs.h (enum type_pieces): Add tp_kind.
10944 * std-operator.def: Add UNOP_KIND.
10945
e454224f
AB
109462019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10947
10948 * f-exp.y (f_parse): Set yydebug.
10949
9dad4a58
AB
109502019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10951
10952 * f-lang.c (evaluate_subexp_f): New function.
10953 (exp_descriptor_f): New global.
10954 (f_language_defn): Use exp_descriptor_f instead of
10955 exp_descriptor_standard.
10956
c8f91604
AB
109572019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10958
10959 * f-exp.y (struct token): Add comments.
10960 (dot_ops): Remove uppercase versions and the end marker.
10961 (f77_keywords): Likewise.
10962 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
10963 entries in the dot_ops array are case insensitive, and use
10964 strncasecmp to compare strings. Also some whitespace cleanup in
10965 this area. Similar for the f77_keywords array, except entries in
10966 this list might be case sensitive.
10967
dd9f2c76
AB
109682019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10969
10970 * f-exp.y (struct f77_boolean_val): Add comments.
10971 (boolean_values): Remove uppercase versions, and end marker.
10972 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
10973 and use strncasecmp to achieve case insensitivity. Additionally,
10974 perform whitespace cleanup around this code.
10975
67a3048c
TT
109762019-03-06 Tom Tromey <tromey@adacore.com>
10977
10978 * remote-sim.c (gdbsim_target_open): Use result of
10979 gdb_argv::release.
10980
aa3cfbda
RB
109812019-03-06 Richard Bunt <richard.bunt@arm.com>
10982 Dirk Schubert <dirk.schubert@arm.com>
10983 Chris January <chris.january@arm.com>
10984
10985 * eval.c (evaluate_subexp_standard): Call Fortran argument
10986 wrapping logic.
10987 * f-lang.c (struct value): A value which can be passed into a
10988 Fortran function call.
10989 (fortran_argument_convert): Wrap Fortran arguments in a pointer
10990 where appropriate.
10991 (struct type): Value ready for a Fortran function call.
10992 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
10993 is needed.
10994 * f-lang.h (fortran_argument_convert): Declaration.
10995 (fortran_preserve_arg_pointer): Declaration.
10996 * infcall.c (value_arg_coerce): Call Fortran argument logic.
10997
ea38e5df
TT
109982019-03-05 Tom Tromey <tromey@adacore.com>
10999
11000 * python/py-prettyprint.c (print_string_repr): Remove #if.
11001 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
11002
06b5b831
TT
110032019-03-05 Tom Tromey <tromey@adacore.com>
11004
11005 * target.c (the_dummy_target): Move later. Change type to
11006 "dummy_target".
11007 (initialize_targets): Don't initialize the_dummy_target.
11008
edbd9e45
TT
110092019-03-05 Tom Tromey <tromey@adacore.com>
11010
11011 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
11012 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
11013
c119e040
TT
110142019-03-05 Tom Tromey <tromey@adacore.com>
11015
11016 * windows-nat.c (windows_nat_target::attach)
11017 (windows_nat_target::detach): Don't call gdb_flush.
11018 * valprint.c (generic_val_print, val_print, val_print_string):
11019 Don't call gdb_flush.
11020 * utils.c (defaulted_query): Don't call gdb_flush.
11021 * typeprint.c (print_type_scalar): Don't call gdb_flush.
11022 * target.c (target_announce_detach): Don't call gdb_flush.
11023 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
11024 * remote.c (extended_remote_target::attach): Don't call
11025 gdb_flush.
11026 * procfs.c (procfs_target::detach): Don't call gdb_flush.
11027 * printcmd.c (do_examine): Don't call gdb_flush.
11028 (info_display_command): Don't call gdb_flush.
11029 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
11030 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
11031 * memattr.c (info_mem_command): Don't call gdb_flush.
11032 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
11033 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
11034 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
11035 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
11036 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
11037 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
11038 (gnu_nat_target::detach): Don't call gdb_flush.
11039 * f-valprint.c (f_val_print): Don't call gdb_flush.
11040 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
11041 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
11042 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
11043 gdb_flush.
11044 * c-valprint.c (c_val_print): Don't call gdb_flush.
11045 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
11046
895dafa6
TT
110472019-03-05 Tom Tromey <tromey@adacore.com>
11048
11049 * varobj.c (update_dynamic_varobj_children): Update.
11050 (install_default_visualizer): Use reset, not release.
11051 * value.c (set_internalvar): Update.
11052 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
11053 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
11054 ATTRIBUTE_UNUSED_RESULT.
11055
88a774b9
TT
110562019-03-05 Tom Tromey <tromey@adacore.com>
11057
11058 * remote.c (class scoped_remote_fd) <release>: Add
11059 ATTRIBUTE_UNUSED_RESULT.
11060
4e4a8b93
TT
110612019-03-05 Tom Tromey <tromey@adacore.com>
11062
11063 * macroexp.c (struct macro_buffer) <release>: Add
11064 ATTRIBUTE_UNUSED_RESULT.
11065
083eef1f
TT
110662019-03-05 Tom Tromey <tromey@adacore.com>
11067
11068 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
11069 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
11070 ATTRIBUTE_UNUSED_RESULT.
11071
3cabd438
TT
110722019-03-05 Tom Tromey <tromey@adacore.com>
11073
11074 * common/scoped_fd.h (class scoped_fd) <release>: Add
11075 ATTRIBUTE_UNUSED_RESULT.
11076
41e3300a
TT
110772019-03-05 Tom Tromey <tromey@adacore.com>
11078
11079 * parser-defs.h (struct parser_state) <release>: Add
11080 ATTRIBUTE_UNUSED_RESULT.
11081
18cb7c9f
TT
110822019-03-05 Tom Tromey <tromey@adacore.com>
11083
11084 * utils.h (class gdb_argv) <release>: Add
11085 ATTRIBUTE_UNUSED_RESULT.
11086 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
11087
41fa577f
EZ
110882019-03-02 Eli Zaretskii <eliz@gnu.org>
11089
a6a4b2c6
EZ
11090 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
11091 for-loop range, to avoid compiler warnings.
11092
11093 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
11094 avoid compiler warnings about unused variables.
11095
742a7df5
EZ
11096 * NEWS: Mention end of support for native debugging on MS-Windows
11097 before XP.
11098
41fa577f
EZ
11099 PR gdb/24292
11100 * common/netstuff.c:
11101 * gdbserver/gdbreplay.c
11102 * gdbserver/remote-utils.c:
11103 * ser-tcp.c:
11104 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
11105 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
11106 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
11107 'getaddrinfo' and 'freeaddrinfo' were not available before
11108 Windows XP, and mingw.org's MinGW headers by default define
11109 _WIN32_WINNT to 0x500.
11110
827f438f
GB
111112019-03-01 Gary Benson <gbenson@redhat.com>
11112
11113 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
11114
92137da0
RO
111152019-02-28 Brian Vandenberg <phantall@gmail.com>
11116 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11117
11118 PR gdb/8527
11119 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
11120 set_sigint_trap, clear_sigint_trap.
11121
799efbe8
PW
111222019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11123
11124 * target.c (target_detach): Clear the regcache and the
11125 frame cache.
11126
8ed25214
PA
111272019-02-27 Pedro Alves <palves@redhat.com>
11128
11129 * utils.c (set_screen_size): When we cap the height/width sizes,
11130 tweak the corresponding command variable to show "unlimited":
11131
23031e31
SJ
111322019-02-27 Saagar Jha <saagar@saagarjha.com>
11133 Pedro Alves <palves@redhat.com>
11134
11135 * utils.c (set_screen_size): Reduce "infinite" rows and columns
11136 before calling rl_set_screen_size.
11137
6c28e44a
TT
111382019-02-27 Tom Tromey <tromey@adacore.com>
11139
11140 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
11141 define.
11142 * python/py-value.c: Remove Python 2.4 workaround.
11143 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
11144 workaround.
11145 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
11146 Python 2.4 workaround.
11147 * python/python-internal.h: Remove Python 2.4 comment.
11148 (Py_ssize_t): Don't define.
11149 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
11150 (gdb_Py_DECREF): Remove Python 2.4 workaround.
11151 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
11152 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
11153 * python/python.c (do_start_initialization): Remove Python 2.4
11154 workaround.
11155 * python/py-prettyprint.c (class dummy_python_frame): Remove.
11156 (print_children): Remove Python 2.4 workaround.
11157 * python/py-inferior.c (buffer_procs): Remove Python 2.4
11158 workaround.
11159 (CHARBUFFERPROC_NAME): Remove.
11160 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
11161 Python 2.4 workaround.
11162
2c3fc25d 111632019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 11164
2c3fc25d
KB
11165 * NEWS: Note minimum Python version.
11166
6ca62222
KB
111672019-02-27 Kevin Buettner <kevinb@redhat.com>
11168
11169 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
11170 code from these functions. Remove corresponding ifdefs. Use
11171 Py_buffer_up instead of explicit calls to PyBuffer_Release.
11172 Remove gotos and target of gotos.
11173 (infpy_search_memory): Likewise.
11174
f4bc7d2c
AB
111752019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11176
11177 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
11178 (hppa_gdbarch_init): Don't register deleted functions with
11179 gdbarch.
11180
9734a586
AB
111812019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11182
11183 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
11184 (h8300_unwind_sp): Delete.
11185 (h8300_dummy_id): Delete.
11186 (h8300_gdbarch_init): Don't register deleted functions with
11187 gdbarch.
11188
68b867f3
AB
111892019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11190
11191 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
11192 (ft32_unwind_pc): Delete.
11193 (ft32_unwind_sp): Delete.
11194 (ft32_gdbarch_init): Don't register deleted functions with
11195 gdbarch.
11196
2fbe7ad0
AB
111972019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11198
11199 * gdb/frv-tdep.c (frv_dummy_id): Delete.
11200 (frv_unwind_pc): Delete.
11201 (frv_unwind_sp): Delete.
11202 (frv_gdbarch_init): Don't register deleted functions with
11203 gdbarch.
11204
76055cbe
AB
112052019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11206
11207 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
11208 (riscv_unwind_pc): Delete.
11209 (riscv_unwind_sp): Delete.
11210 (riscv_gdbarch_init): Don't register deleted functions with
11211 gdbarch.
11212
4133e5a1
AB
112132019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11214
11215 * gdb/csky-tdep.c (csky_dummy_id): Delete.
11216 (csky_unwind_pc): Delete.
11217 (csky_unwind_sp): Delete.
11218 (csky_gdbarch_init): Don't register deleted functions with
11219 gdbarch.
11220
8010f576
AB
112212019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11222
11223 * gdb/cris-tdep.c (cris_dummy_id): Delete.
11224 (cris_unwind_pc): Delete.
11225 (cris_unwind_sp): Delete.
11226 (cris_gdbarch_init): Don't register deleted functions with
11227 gdbarch.
11228
b56bf084
AB
112292019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11230
11231 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
11232 (bfin_unwind_pc): Delete.
11233 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
11234
a19a650f
AB
112352019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11236
11237 * gdb/arm-tdep.c (arm_dummy_id): Delete.
11238 (arm_unwind_pc): Delete.
11239 (arm_unwind_sp): Delete.
11240 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
11241
f8278c3c
AB
112422019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11243
11244 * gdb/arc-tdep.c (arc_dummy_id): Delete.
11245 (arc_unwind_pc): Delete.
11246 (arc_unwind_sp): Delete.
11247 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
11248
480e46cf
AB
112492019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11250
11251 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
11252 (alpha_unwind_pc): Delete.
11253 (alpha_gdbarch_init): Don't register deleted functions with
11254 gdbarch.
11255
7a995095
AB
112562019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11257
11258 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
11259 (aarch64_unwind_pc): Delete.
11260 (aarch64_unwind_sp): Delete.
11261 (aarch64_gdbarch_init): Don't register deleted functions with
11262 gdbarch.
11263
bf9a735e
AB
112642019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11265
11266 * gdbtypes.c (type_align): Don't consider static members when
11267 computing structure alignment.
11268
5561fc30
AB
112692019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11270
11271 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
11272 return 0 for other types.
11273 * arch-utils.c (default_type_align): Always return 0.
11274 * gdbarch.h: Regenerate.
11275 * gdbarch.sh (type_align): Extend comment.
11276 * gdbtypes.c (type_align): Add additional comments, always call
11277 gdbarch_type_align before applying the default rules.
11278 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
11279 generic code will then apply a suitable default.
11280 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
11281 types, return 0 for other types.
11282
9335e75a
JB
112832019-02-27 Joel Brobecker <brobecker@adacore.com>
11284
11285 * NEWS: Create a new section for the next release branch.
11286 Rename the section of the current branch, now that it has
11287 been cut.
11288
3d34d8de
JB
112892019-02-27 Joel Brobecker <brobecker@adacore.com>
11290
11291 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
11292 * version.in: Bump version to 8.3.50.DATE-git.
11293
143420fb
SM
112942019-02-26 Simon Marchi <simon.marchi@efficios.com>
11295
11296 * aix-thread.c (ptid_cmp): Remove unused variable.
11297 (get_signaled_thread): Likewise.
11298 (store_regs_user_thread): Likewise.
11299 (store_regs_kernel_thread): Likewise.
11300 (fetch_regs_kernel_thread): Remove shadowed variable.
11301
172fb711
AB
113022019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
11303
11304 * features/riscv/32bit-cpu.xml: Add register numbers.
11305 * features/riscv/32bit-fpu.c: Regenerate.
11306 * features/riscv/32bit-fpu.xml: Add register numbers.
11307 * features/riscv/64bit-cpu.xml: Add register numbers.
11308 * features/riscv/64bit-fpu.c: Regenerate.
11309 * features/riscv/64bit-fpu.xml: Add register numbers.
11310
26c89782
KB
113112019-02-26 Kevin Buettner <kevinb@redhat.com>
11312
af54ade9 11313 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
11314 * python/py-value.c (convert_buffer_and_type_to_value): New
11315 function.
11316 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
11317 Add support for handling an optional second argument. Call
11318 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
11319 * python/python-internal.h (Py_buffer_deleter): New struct.
11320 (Py_buffer_up): New typedef.
11321
0f58c9e8
JB
113222019-02-25 John Baldwin <jhb@FreeBSD.org>
11323
11324 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
11325 instead of releasing ownership.
11326
0a0f4c01
JR
113272019-02-25 Jordan Rupprecht <rupprecht@google.com>
11328
11329 * dwarf2read.c (open_and_init_dwp_file): Call
11330 elf_numsections instead of bfd_count_sections to initialize
11331 dwp_file->num_sections.
11332
cd5a152c
TT
113332019-02-25 Tom Tromey <tromey@adacore.com>
11334
11335 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
11336
8a6a8513
SDJ
113372019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
11338
11339 * gcore.in: Add '--readnever' option when invoking GDB.
11340
04dcda9c
SM
113412019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11342
11343 * MAINTAINERS: Update my email address.
11344
07bc701d
SM
113452019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11346
11347 * build-id.c (build_id_to_debug_bfd_1): New function.
11348 (build_id_to_debug_bfd): Look for separate debug file in
11349 sysroot.
11350
c6f4a5d0
AB
113512019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
11352
11353 * gdbarch.sh: Update the copyright year range that is placed into
11354 generated files.
11355
9600246d
KS
113562019-02-22 Keith Seitz <keiths@redhat.com>
11357
11358 PR symtab/23853
11359 * linespec.c (create_sals_line_offset): Search for the default
11360 symtab's filename instead of its fullname.
11361
7557a514
AH
113622019-02-21 Alan Hayward <alan.hayward@arm.com>
11363
11364 * NEWS: Update style defaults.
11365
ee2bcb0c
AH
113662019-02-21 Alan Hayward <alan.hayward@arm.com>
11367
11368 * main.c (captured_main_1): Disable styling in batch mode.
11369
0c95f9ed
TT
113702019-02-20 Tom Tromey <tom@tromey.com>
11371
11372 * symtab.c (symtab_symbol_info): Fix typos.
11373
c763b894
TT
113742019-02-20 Tom Tromey <tromey@adacore.com>
11375
11376 * findcmd.c (_initialize_mem_search): Use upper case for
11377 metasyntactic variables.
11378
0ef8a082
AH
113792019-02-20 Alan Hayward <alan.hayward@arm.com>
11380
11381 * aarch64-tdep.c (aarch64_add_reggroups): New function.
11382 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
11383
6caa91b6
SM
113842019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
11385
11386 * top.h (source_file_name): Change to std::string.
11387 * top.c (source_file_name): Likewise.
11388 (command_line_input): Adjust.
11389 * cli/cli-script.c (script_from_file): Adjust.
11390
98814c6c
TT
113912019-02-19 Tom Tromey <tromey@adacore.com>
11392
11393 * ravenscar-thread.c
11394 (ravenscar_thread_target::update_thread_list): Don't call
11395 ada_build_task_list.
11396 * ada-lang.h (ada_build_task_list): Don't declare.
11397 * ada-tasks.c (struct ada_tasks_inferior_data)
11398 <task_list_valid_p>: Now bool.
11399 (read_known_tasks, ada_task_list_changed)
11400 (ada_tasks_invalidate_inferior_data): Update.
11401 (read_known_tasks_array): Return bool.
11402 (read_known_tasks_list): Likewise.
11403 (read_known_tasks): Return void.
11404 (ada_build_task_list): Now static.
11405
70cd633e
AB
114062019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
11407
11408 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
11409 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
11410
040b3e95
PW
114112019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11412
11413 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
11414 variant for ada_tasks_pspace_data_handle and
11415 ada_tasks_inferior_data_handle.
11416 (ada_tasks_pspace_data_cleanup): New function.
11417 (ada_tasks_inferior_data_cleanup): New function.
11418
9409233b
TT
114192019-02-17 Tom Tromey <tom@tromey.com>
11420
11421 * macrotab.h (macro_source_fullname): Return a std::string.
11422 * macrotab.c (macro_include, check_for_redefinition)
11423 (macro_undef, macro_lookup_definition, foreach_macro)
11424 (foreach_macro_in_scope): Update.
11425 (macro_source_fullname): Return a std::string.
11426 * macrocmd.c (show_pp_source_pos): Update.
11427
6506371f
TT
114282019-02-17 Tom Tromey <tom@tromey.com>
11429
11430 * macrocmd.c (show_pp_source_pos): Style the file names.
11431
0c820d67
TT
114322019-02-17 Tom Tromey <tom@tromey.com>
11433
11434 PR tui/24197:
11435 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
11436
a0087920
TT
114372019-02-17 Tom Tromey <tom@tromey.com>
11438
11439 * ada-lang.c (user_select_syms): Use filtered printing.
11440 * utils.c (wrap_style): New global.
11441 (desired_style): Remove.
11442 (emit_style_escape): Add stream parameter.
11443 (set_output_style, reset_terminal_style, prompt_for_continue):
11444 Update.
11445 (flush_wrap_buffer): Only flush gdb_stdout.
11446 (wrap_here): Set wrap_style.
11447 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
11448 treat escape sequences as a character. Change when wrap buffer is
11449 flushed.
11450 (fputs_styled): Do not set the output style when the default is
11451 requested.
11452 * ui-style.h (struct ui_file_style) <is_default>: New method.
11453 * source.c (print_source_lines_base): Emit escape sequences in one
11454 piece.
11455
75ba10dc
JB
114562019-02-17 Joel Brobecker <brobecker@adacore.com>
11457
11458 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
11459 integers and enumeration types.
11460
a2cd4f14
JB
114612019-02-17 Joel Brobecker <brobecker@adacore.com>
11462
11463 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
11464 instead of lookup_symbol_in_language
11465 (do_exact_match): New function.
11466 (ada_get_symbol_name_matcher): Return do_exact_match when
11467 doing a verbatim match.
11468
485b851b
TT
114692019-02-15 Tom Tromey <tromey@adacore.com>
11470
11471 * ravenscar-thread.c (ravenscar_thread_target::resume)
11472 (ravenscar_thread_target::wait): Special case wildcard requests.
11473
0b790b1e
TT
114742019-02-15 Tom Tromey <tromey@adacore.com>
11475
11476 * ravenscar-thread.c (base_ptid): Remove.
11477 (struct ravenscar_thread_target) <close>: New method.
11478 <m_base_ptid>: New member.
11479 <update_inferior_ptid, active_task, task_is_currently_active,
11480 runtime_initialized>: Declare methods.
11481 <ravenscar_thread_target>: Add constructor.
11482 (ravenscar_thread_target::task_is_currently_active)
11483 (ravenscar_thread_target::update_inferior_ptid)
11484 (ravenscar_runtime_initialized): Rename. Now methods.
11485 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
11486 (ravenscar_thread_target::update_thread_list): Update.
11487 (ravenscar_thread_target::active_task): Now method.
11488 (ravenscar_thread_target::store_registers)
11489 (ravenscar_thread_target::prepare_to_store)
11490 (ravenscar_thread_target::prepare_to_store)
11491 (ravenscar_thread_target::mourn_inferior): Update.
11492 (ravenscar_inferior_created): Use "new" to create target.
11493 (ravenscar_thread_target::get_ada_task_ptid): Update.
11494 (_initialize_ravenscar): Don't initialize base_ptid.
11495 (ravenscar_ops): Remove global.
11496
dea57a62
TT
114972019-02-15 Tom Tromey <tromey@adacore.com>
11498
11499 * target.h (push_target): Declare new overload.
11500 * target.c (push_target): New overload, taking an rvalue reference.
11501 * remote.c (remote_target::open_1): Use push_target overload.
11502 * corelow.c (core_target_open): Use push_target overload.
11503
989f3c58
TT
115042019-02-15 Tom Tromey <tromey@adacore.com>
11505
11506 * ravenscar-thread.c (is_ravenscar_task)
11507 (ravenscar_task_is_currently_active): Return bool.
11508 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
11509 (_initialize_ravenscar): Remove "(void)".
11510 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
11511 Return bool.
11512
6cbcc006
TT
115132019-02-15 Tom Tromey <tromey@adacore.com>
11514
11515 * ravenscar-thread.c (ravenscar_runtime_initializer)
11516 (has_ravenscar_runtime, get_running_thread_id)
11517 (ravenscar_thread_target::resume): Fix indentation.
11518
7657f14d
TT
115192019-02-15 Tom Tromey <tromey@adacore.com>
11520
11521 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
11522 from ravenscar_arch_ops.
11523 (sparc_ravenscar_ops::fetch_registers)
11524 (sparc_ravenscar_ops::store_registers): Now methods.
11525 (sparc_ravenscar_prepare_to_store): Remove.
11526 (sparc_ravenscar_ops): Redefine.
11527 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
11528 methods and destructor. Remove members.
11529 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
11530 (ravenscar_thread_target::store_registers)
11531 (ravenscar_thread_target::prepare_to_store): Update.
11532 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
11533 Remove.
11534 (struct ppc_ravenscar_powerpc_ops): Derive from
11535 ravenscar_arch_ops.
11536 (ppc_ravenscar_powerpc_ops::fetch_registers)
11537 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
11538 (ppc_ravenscar_powerpc_ops): Redefine.
11539 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
11540 (ppc_ravenscar_e500_ops::fetch_registers)
11541 (ppc_ravenscar_e500_ops::store_registers): Now methods.
11542 (ppc_ravenscar_e500_ops): Redefine.
11543 * aarch64-ravenscar-thread.c
11544 (aarch64_ravenscar_generic_prepare_to_store): Remove.
11545 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
11546 (aarch64_ravenscar_fetch_registers)
11547 (aarch64_ravenscar_store_registers): Now methods.
11548 (aarch64_ravenscar_ops): Redefine.
11549
5b6ea500
TT
115502019-02-15 Tom Tromey <tromey@adacore.com>
11551
11552 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
11553 (ravenscar_thread_target::stopped_by_hw_breakpoint)
11554 (ravenscar_thread_target::stopped_by_watchpoint)
11555 (ravenscar_thread_target::stopped_data_address)
11556 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
11557
e397fd39
TT
115582019-02-15 Tom Tromey <tromey@adacore.com>
11559
11560 * ravenscar-thread.c: Fix some typos.
11561
cc12f4a8
TT
115622019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11563 Tom Tromey <tromey@adacore.com>
11564
11565 * ada-lang.c (ada_exception_sal): Change addr_string to a
11566 std::string.
11567 (create_ada_exception_catchpoint): Update.
11568
5f486660
TT
115692019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11570 Tom Tromey <tromey@adacore.com>
11571
11572 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
11573 (bp_location_ops): Remove.
11574 (base_breakpoint_allocate_location): Update.
11575 (free_bp_location): Update.
11576 * ada-lang.c (class ada_catchpoint_location)
11577 <ada_catchpoint_location>: Remove ops parameter.
11578 (ada_catchpoint_location_dtor): Remove.
11579 (ada_catchpoint_location_ops): Remove.
11580 (allocate_location_exception): Update.
11581 * breakpoint.h (struct bp_location_ops): Remove.
11582 (class bp_location) <bp_location>: Remove bp_location_ops
11583 parameter.
11584 <~bp_location>: Add destructor.
11585 <ops>: Remove.
11586
b671c7fb
TS
115872019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11588 Pedro Alves <palves@redhat.com>
11589
11590 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
11591 'PATH_MAX'.
11592
8071c5ce
DM
115932019-02-14 David Michael <fedora.dm0@gmail.com>
11594 Samuel Thibault <samuel.thibault@gnu.org>
11595 Thomas Schwinge <thomas@codesourcery.com>
11596
11597 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
11598 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
11599
b1041ae0
TS
116002019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11601
924514e1
TS
11602 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
11603 (check_empty): Use "const char *".
11604
c29ee8d4
TS
11605 * gnu-nat.c (gnu_nat_target::detach): Instead of
11606 'detach_inferior (pid)' call
11607 'detach_inferior (find_inferior_pid (pid))'.
11608
6c6ef69f
TS
11609 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
11610 'nat/fork-inferior.o'.
11611 * gnu-nat.c: #include "nat/fork-inferior.h".
11612
2d0a338c
TS
11613 * gnu-nat.c (gnu_nat_target::detach): Instead of
11614 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
11615 * gnu-nat.h: #include "inf-child.h".
11616 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
11617 'i386_gnu_nat_target::fetch_registers'.
11618 (gnu_store_registers): Rename/move to
11619 'i386_gnu_nat_target::store_registers'.
11620
cabb5f06
TS
11621 * config/i386/nm-i386gnu.h: Don't "#include" any files.
11622 * gnu-nat.h (mach_thread_info): New function.
11623 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
11624
b1041ae0
TS
11625 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
11626
2988d01e
KF
116272019-02-14 Frederic Konrad <konrad@adacore.com>
11628
11629 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
11630
c559d709
JB
116312019-02-14 Joel Brobecker <brobecker@adacore.com>
11632
11633 * windows-nat.c (windows_add_thread): Add new parameter
11634 "main_thread_p" with default value set to false. Update
11635 function documentation as well as all callers.
11636 (windows_delete_thread): Likewise.
11637 (fake_create_process): Update call to windows_add_thread.
11638 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
11639 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
11640 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
11641 call to windows_delete_thread.
11642
007024cc
SM
116432019-02-13 Simon Marchi <simon.marchi@ericsson.com>
11644
11645 * MAINTAINERS: Add Andrew Burgess as global maintainer.
11646
f62318e9
JB
116472019-02-12 John Baldwin <jhb@FreeBSD.org>
11648
11649 * symfile.c (find_separate_debug_file): Use canonical path of
11650 sysroot with child_path instead of gdb_sysroot if it is valid.
11651
cd4b7848
JB
116522019-02-12 John Baldwin <jhb@FreeBSD.org>
11653
11654 * symfile.c (find_separate_debug_file): Use child_path to
11655 determine if an object file is under a sysroot.
11656
efac4bfe
JB
116572019-02-12 John Baldwin <jhb@FreeBSD.org>
11658
11659 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11660 unittests/child-path-selftests.c.
11661 * common/pathstuff.c (child_path): New function.
11662 * common/pathstuff.h (child_path): New prototype.
11663 * unittests/child-path-selftests.c: New file.
11664
402d2bfe
JB
116652019-02-12 John Baldwin <jhb@FreeBSD.org>
11666
11667 * symfile.c (find_separate_debug_file): Look for separate debug
11668 files in debug directories under the sysroot.
11669
1ed9f74e
PW
116702019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11671
11672 * symtab.h (struct minimal_symbol data_p): New const method.
11673 (struct minimal_symbol text_p): Likewise.
11674 * symtab.c (output_source_filename): Use file name style
11675 to print file name.
11676 (print_symbol_info): Likewise.
11677 (print_msymbol_info): Use address style to print addresses.
11678 Use function name style to print executable text symbols.
11679 (expand_symtab_containing_pc): Use data_p.
11680 (find_pc_sect_compunit_symtab): Likewise.
11681
2636d81d
PW
116822019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11683
11684 * breakpoint.c (describe_other_breakpoints): Use address style
11685 to print addresses.
11686 (say_where): Likewise.
11687
ac8c53cc
PW
116882019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11689
11690 * ada-typeprint.c (print_func_type): Print function name
11691 style to print function name.
11692 * c-typeprint.c (c_print_type_1): Likewise.
11693
ea638c43
AH
116942019-02-11 Alan Hayward <alan.hayward@arm.com>
11695
11696 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
11697 for execve.
11698
ab759ca8
PW
116992019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11700
11701 * c-exp.y (direct_abs_decl): Use emplace_back to record the
11702 type_stack.
11703
aff29d1c
JB
117042019-02-10 Joel Brobecker <brobecker@adacore.com>
11705
11706 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
11707 TYPE_CODE_REF types.
11708
617126bc
JW
117092019-02-08 Jim Wilson <jimw@sifive.com>
11710
11711 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
11712 (riscv_linux_fregset): New.
11713 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
11714
46e3ed7f
TT
117152019-02-07 Tom Tromey <tom@tromey.com>
11716
11717 * thread.c (thread_cancel_execution_command): Update.
11718 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
11719 methods.
11720 (struct thread_fsm_ops): Remove.
11721 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
11722 (thread_fsm_should_stop, thread_fsm_return_value)
11723 (thread_fsm_set_finished, thread_fsm_finished_p)
11724 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
11725 Don't declare.
11726 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
11727 * infrun.c (clear_proceed_status_thread)
11728 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
11729 (print_stop_event): Update.
11730 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
11731 Add constructor.
11732 (step_command_fsm_ops): Remove.
11733 (new_step_command_fsm): Remove.
11734 (step_1): Update.
11735 (step_command_fsm::should_stop): Rename from
11736 step_command_fsm_should_stop.
11737 (step_command_fsm::clean_up): Rename from
11738 step_command_fsm_clean_up.
11739 (step_command_fsm::do_async_reply_reason): Rename from
11740 step_command_fsm_async_reply_reason.
11741 (struct until_next_fsm): Inherit from thread_fsm. Add
11742 constructor.
11743 (until_next_fsm_ops): Remove.
11744 (new_until_next_fsm): Remove.
11745 (until_next_fsm::should_stop): Rename from
11746 until_next_fsm_should_stop.
11747 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
11748 (until_next_fsm::do_async_reply_reason): Rename from
11749 until_next_fsm_async_reply_reason.
11750 (struct finish_command_fsm): Inherit from thread_fsm. Add
11751 constructor. Change type of breakpoint.
11752 (finish_command_fsm_ops): Remove.
11753 (new_finish_command_fsm): Remove.
11754 (finish_command_fsm::should_stop): Rename from
11755 finish_command_fsm_should_stop.
11756 (finish_command_fsm::clean_up): Rename from
11757 finish_command_fsm_clean_up.
11758 (finish_command_fsm::return_value): Rename from
11759 finish_command_fsm_return_value.
11760 (finish_command_fsm::do_async_reply_reason): Rename from
11761 finish_command_fsm_async_reply_reason.
11762 (finish_command): Update.
11763 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
11764 Add constructor.
11765 (call_thread_fsm_ops): Remove.
11766 (call_thread_fsm::call_thread_fsm): Rename from
11767 new_call_thread_fsm.
11768 (call_thread_fsm::should_stop): Rename from
11769 call_thread_fsm_should_stop.
11770 (call_thread_fsm::should_notify_stop): Rename from
11771 call_thread_fsm_should_notify_stop.
11772 (run_inferior_call, call_function_by_hand_dummy): Update.
11773 * cli/cli-interp.c (should_print_stop_to_console): Update.
11774 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
11775 Add constructor. Change type of location_breakpoint,
11776 caller_breakpoint.
11777 (until_break_fsm_ops): Remove.
11778 (new_until_break_fsm): Remove.
11779 (until_break_fsm::should_stop): Rename from
11780 until_break_fsm_should_stop.
11781 (until_break_fsm::clean_up): Rename from
11782 until_break_fsm_clean_up.
11783 (until_break_fsm::do_async_reply_reason): Rename from
11784 until_break_fsm_async_reply_reason.
11785 (until_break_command): Update.
11786 * thread-fsm.c: Remove.
11787 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
11788
1a5c2598
TT
117892019-02-07 Tom Tromey <tom@tromey.com>
11790
11791 * yy-remap.h: Add include guard.
11792 * xtensa-tdep.h: Add include guard.
11793 * xcoffread.h: Rename include guard.
11794 * varobj-iter.h: Add include guard.
11795 * tui/tui.h: Rename include guard.
11796 * tui/tui-winsource.h: Rename include guard.
11797 * tui/tui-wingeneral.h: Rename include guard.
11798 * tui/tui-windata.h: Rename include guard.
11799 * tui/tui-win.h: Rename include guard.
11800 * tui/tui-stack.h: Rename include guard.
11801 * tui/tui-source.h: Rename include guard.
11802 * tui/tui-regs.h: Rename include guard.
11803 * tui/tui-out.h: Rename include guard.
11804 * tui/tui-layout.h: Rename include guard.
11805 * tui/tui-io.h: Rename include guard.
11806 * tui/tui-hooks.h: Rename include guard.
11807 * tui/tui-file.h: Rename include guard.
11808 * tui/tui-disasm.h: Rename include guard.
11809 * tui/tui-data.h: Rename include guard.
11810 * tui/tui-command.h: Rename include guard.
11811 * tic6x-tdep.h: Add include guard.
11812 * target/waitstatus.h: Rename include guard.
11813 * target/wait.h: Rename include guard.
11814 * target/target.h: Rename include guard.
11815 * target/resume.h: Rename include guard.
11816 * target-float.h: Rename include guard.
11817 * stabsread.h: Add include guard.
11818 * rs6000-tdep.h: Add include guard.
11819 * riscv-fbsd-tdep.h: Add include guard.
11820 * regformats/regdef.h: Rename include guard.
11821 * record.h: Rename include guard.
11822 * python/python.h: Rename include guard.
11823 * python/python-internal.h: Rename include guard.
11824 * python/py-stopevent.h: Rename include guard.
11825 * python/py-ref.h: Rename include guard.
11826 * python/py-record.h: Rename include guard.
11827 * python/py-record-full.h: Rename include guard.
11828 * python/py-record-btrace.h: Rename include guard.
11829 * python/py-instruction.h: Rename include guard.
11830 * python/py-events.h: Rename include guard.
11831 * python/py-event.h: Rename include guard.
11832 * procfs.h: Add include guard.
11833 * proc-utils.h: Add include guard.
11834 * p-lang.h: Add include guard.
11835 * or1k-tdep.h: Rename include guard.
11836 * observable.h: Rename include guard.
11837 * nto-tdep.h: Rename include guard.
11838 * nat/x86-linux.h: Rename include guard.
11839 * nat/x86-linux-dregs.h: Rename include guard.
11840 * nat/x86-gcc-cpuid.h: Add include guard.
11841 * nat/x86-dregs.h: Rename include guard.
11842 * nat/x86-cpuid.h: Rename include guard.
11843 * nat/ppc-linux.h: Rename include guard.
11844 * nat/mips-linux-watch.h: Rename include guard.
11845 * nat/linux-waitpid.h: Rename include guard.
11846 * nat/linux-ptrace.h: Rename include guard.
11847 * nat/linux-procfs.h: Rename include guard.
11848 * nat/linux-osdata.h: Rename include guard.
11849 * nat/linux-nat.h: Rename include guard.
11850 * nat/linux-namespaces.h: Rename include guard.
11851 * nat/linux-btrace.h: Rename include guard.
11852 * nat/glibc_thread_db.h: Rename include guard.
11853 * nat/gdb_thread_db.h: Rename include guard.
11854 * nat/gdb_ptrace.h: Rename include guard.
11855 * nat/fork-inferior.h: Rename include guard.
11856 * nat/amd64-linux-siginfo.h: Rename include guard.
11857 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
11858 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
11859 * nat/aarch64-linux.h: Rename include guard.
11860 * nat/aarch64-linux-hw-point.h: Rename include guard.
11861 * mn10300-tdep.h: Add include guard.
11862 * mips-linux-tdep.h: Add include guard.
11863 * mi/mi-parse.h: Rename include guard.
11864 * mi/mi-out.h: Rename include guard.
11865 * mi/mi-main.h: Rename include guard.
11866 * mi/mi-interp.h: Rename include guard.
11867 * mi/mi-getopt.h: Rename include guard.
11868 * mi/mi-console.h: Rename include guard.
11869 * mi/mi-common.h: Rename include guard.
11870 * mi/mi-cmds.h: Rename include guard.
11871 * mi/mi-cmd-break.h: Rename include guard.
11872 * m2-lang.h: Add include guard.
11873 * location.h: Rename include guard.
11874 * linux-record.h: Rename include guard.
11875 * linux-nat.h: Add include guard.
11876 * linux-fork.h: Add include guard.
11877 * i386-darwin-tdep.h: Rename include guard.
11878 * hppa-linux-offsets.h: Add include guard.
11879 * guile/guile.h: Rename include guard.
11880 * guile/guile-internal.h: Rename include guard.
11881 * gnu-nat.h: Rename include guard.
11882 * gdb-stabs.h: Rename include guard.
11883 * frv-tdep.h: Add include guard.
11884 * f-lang.h: Add include guard.
11885 * event-loop.h: Add include guard.
11886 * darwin-nat.h: Rename include guard.
11887 * cp-abi.h: Rename include guard.
11888 * config/sparc/nm-sol2.h: Rename include guard.
11889 * config/nm-nto.h: Rename include guard.
11890 * config/nm-linux.h: Add include guard.
11891 * config/i386/nm-i386gnu.h: Rename include guard.
11892 * config/djgpp/nl_types.h: Rename include guard.
11893 * config/djgpp/langinfo.h: Rename include guard.
11894 * compile/gcc-cp-plugin.h: Add include guard.
11895 * compile/gcc-c-plugin.h: Add include guard.
11896 * compile/compile.h: Rename include guard.
11897 * compile/compile-object-run.h: Rename include guard.
11898 * compile/compile-object-load.h: Rename include guard.
11899 * compile/compile-internal.h: Rename include guard.
11900 * compile/compile-cplus.h: Rename include guard.
11901 * compile/compile-c.h: Rename include guard.
11902 * common/xml-utils.h: Rename include guard.
11903 * common/x86-xstate.h: Rename include guard.
11904 * common/version.h: Rename include guard.
11905 * common/vec.h: Rename include guard.
11906 * common/tdesc.h: Rename include guard.
11907 * common/selftest.h: Rename include guard.
11908 * common/scoped_restore.h: Rename include guard.
11909 * common/scoped_mmap.h: Rename include guard.
11910 * common/scoped_fd.h: Rename include guard.
11911 * common/safe-iterator.h: Rename include guard.
11912 * common/run-time-clock.h: Rename include guard.
11913 * common/refcounted-object.h: Rename include guard.
11914 * common/queue.h: Rename include guard.
11915 * common/ptid.h: Rename include guard.
11916 * common/print-utils.h: Rename include guard.
11917 * common/preprocessor.h: Rename include guard.
11918 * common/pathstuff.h: Rename include guard.
11919 * common/observable.h: Rename include guard.
11920 * common/netstuff.h: Rename include guard.
11921 * common/job-control.h: Rename include guard.
11922 * common/host-defs.h: Rename include guard.
11923 * common/gdb_wait.h: Rename include guard.
11924 * common/gdb_vecs.h: Rename include guard.
11925 * common/gdb_unlinker.h: Rename include guard.
11926 * common/gdb_unique_ptr.h: Rename include guard.
11927 * common/gdb_tilde_expand.h: Rename include guard.
11928 * common/gdb_sys_time.h: Rename include guard.
11929 * common/gdb_string_view.h: Rename include guard.
11930 * common/gdb_splay_tree.h: Rename include guard.
11931 * common/gdb_setjmp.h: Rename include guard.
11932 * common/gdb_ref_ptr.h: Rename include guard.
11933 * common/gdb_optional.h: Rename include guard.
11934 * common/gdb_locale.h: Rename include guard.
11935 * common/gdb_assert.h: Rename include guard.
11936 * common/filtered-iterator.h: Rename include guard.
11937 * common/filestuff.h: Rename include guard.
11938 * common/fileio.h: Rename include guard.
11939 * common/environ.h: Rename include guard.
11940 * common/common-utils.h: Rename include guard.
11941 * common/common-types.h: Rename include guard.
11942 * common/common-regcache.h: Rename include guard.
11943 * common/common-inferior.h: Rename include guard.
11944 * common/common-gdbthread.h: Rename include guard.
11945 * common/common-exceptions.h: Rename include guard.
11946 * common/common-defs.h: Rename include guard.
11947 * common/common-debug.h: Rename include guard.
11948 * common/cleanups.h: Rename include guard.
11949 * common/buffer.h: Rename include guard.
11950 * common/btrace-common.h: Rename include guard.
11951 * common/break-common.h: Rename include guard.
11952 * cli/cli-utils.h: Rename include guard.
11953 * cli/cli-style.h: Rename include guard.
11954 * cli/cli-setshow.h: Rename include guard.
11955 * cli/cli-script.h: Rename include guard.
11956 * cli/cli-interp.h: Rename include guard.
11957 * cli/cli-decode.h: Rename include guard.
11958 * cli/cli-cmds.h: Rename include guard.
11959 * charset-list.h: Add include guard.
11960 * buildsym-legacy.h: Rename include guard.
11961 * bfin-tdep.h: Add include guard.
11962 * ax.h: Rename include guard.
11963 * arm-linux-tdep.h: Add include guard.
11964 * arm-fbsd-tdep.h: Add include guard.
11965 * arch/xtensa.h: Rename include guard.
11966 * arch/tic6x.h: Add include guard.
11967 * arch/i386.h: Add include guard.
11968 * arch/arm.h: Rename include guard.
11969 * arch/arm-linux.h: Rename include guard.
11970 * arch/arm-get-next-pcs.h: Rename include guard.
11971 * arch/amd64.h: Add include guard.
11972 * arch/aarch64-insn.h: Rename include guard.
11973 * arch-utils.h: Rename include guard.
11974 * annotate.h: Add include guard.
11975 * amd64-darwin-tdep.h: Rename include guard.
11976 * aarch64-linux-tdep.h: Add include guard.
11977 * aarch64-fbsd-tdep.h: Add include guard.
11978 * aarch32-linux-nat.h: Add include guard.
11979
ab9268d2
PW
119802019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11981
11982 * macrotab.c (macro_define_internal): New function that
11983 factorizes macro_define_object_internal and macro_define_function
11984 code.
11985 (macro_define_object_internal): Use macro_define_internal.
11986 (macro_define_function): Likewise.
11987
bb0da2b4
PW
119882019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11989
11990 * macrocmd.c (extract_identifier): Return
11991 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
11992 callers.
11993
424eb552
JB
119942019-02-06 John Baldwin <jhb@FreeBSD.org>
11995
11996 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
11997
1688cb29
TT
119982019-02-05 Tom Tromey <tom@tromey.com>
11999
12000 * target.c (target_stack::unpush): Move assertion earlier.
12001
b5eba2d8
TT
120022019-01-30 Tom Tromey <tom@tromey.com>
12003
12004 PR python/23615:
12005 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
12006 (gdbpy_parse_and_eval): Likewise.
12007 * python/python-internal.h (gdbpy_allow_threads): New class.
12008
7054e2ff
JB
120092019-01-28 John Baldwin <jhb@FreeBSD.org>
12010
12011 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
12012 (aarch64_fbsd_fpregmap): Move earlier.
12013 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
12014 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12015 instead of individual calls to trad_frame_set_reg_addr.
12016 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
12017 earlier.
12018 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
12019 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12020 instead of individual calls to trad_frame_set_reg_addr.
12021
36c25ffa
AH
120222019-01-28 Alan Hayward <alan.hayward@arm.com>
12023
12024 * CONTRIBUTE: Replace contribution list with wiki link.
12025
a0707f3c
TT
120262019-01-25 Tom Tromey <tom@tromey.com>
12027
12028 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
12029
0747795c
TT
120302019-01-25 Tom Tromey <tom@tromey.com>
12031
12032 * xtensa-linux-nat.c: Fix common/ includes.
12033 * xml-support.h: Fix common/ includes.
12034 * xml-support.c: Fix common/ includes.
12035 * x86-linux-nat.c: Fix common/ includes.
12036 * windows-nat.c: Fix common/ includes.
12037 * varobj.h: Fix common/ includes.
12038 * varobj.c: Fix common/ includes.
12039 * value.c: Fix common/ includes.
12040 * valops.c: Fix common/ includes.
12041 * utils.c: Fix common/ includes.
12042 * unittests/xml-utils-selftests.c: Fix common/ includes.
12043 * unittests/utils-selftests.c: Fix common/ includes.
12044 * unittests/unpack-selftests.c: Fix common/ includes.
12045 * unittests/tracepoint-selftests.c: Fix common/ includes.
12046 * unittests/style-selftests.c: Fix common/ includes.
12047 * unittests/string_view-selftests.c: Fix common/ includes.
12048 * unittests/scoped_restore-selftests.c: Fix common/ includes.
12049 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
12050 * unittests/scoped_fd-selftests.c: Fix common/ includes.
12051 * unittests/rsp-low-selftests.c: Fix common/ includes.
12052 * unittests/parse-connection-spec-selftests.c: Fix common/
12053 includes.
12054 * unittests/optional-selftests.c: Fix common/ includes.
12055 * unittests/offset-type-selftests.c: Fix common/ includes.
12056 * unittests/observable-selftests.c: Fix common/ includes.
12057 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
12058 * unittests/memrange-selftests.c: Fix common/ includes.
12059 * unittests/memory-map-selftests.c: Fix common/ includes.
12060 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
12061 * unittests/function-view-selftests.c: Fix common/ includes.
12062 * unittests/environ-selftests.c: Fix common/ includes.
12063 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
12064 * unittests/common-utils-selftests.c: Fix common/ includes.
12065 * unittests/cli-utils-selftests.c: Fix common/ includes.
12066 * unittests/array-view-selftests.c: Fix common/ includes.
12067 * ui-file.c: Fix common/ includes.
12068 * tui/tui-io.c: Fix common/ includes.
12069 * tracepoint.h: Fix common/ includes.
12070 * tracepoint.c: Fix common/ includes.
12071 * tracefile-tfile.c: Fix common/ includes.
12072 * top.h: Fix common/ includes.
12073 * top.c: Fix common/ includes.
12074 * thread.c: Fix common/ includes.
12075 * target/waitstatus.h: Fix common/ includes.
12076 * target/waitstatus.c: Fix common/ includes.
12077 * target.h: Fix common/ includes.
12078 * target.c: Fix common/ includes.
12079 * target-memory.c: Fix common/ includes.
12080 * target-descriptions.c: Fix common/ includes.
12081 * symtab.h: Fix common/ includes.
12082 * symfile.c: Fix common/ includes.
12083 * stap-probe.c: Fix common/ includes.
12084 * spu-linux-nat.c: Fix common/ includes.
12085 * sparc-nat.c: Fix common/ includes.
12086 * source.c: Fix common/ includes.
12087 * solib.c: Fix common/ includes.
12088 * solib-target.c: Fix common/ includes.
12089 * ser-unix.c: Fix common/ includes.
12090 * ser-tcp.c: Fix common/ includes.
12091 * ser-pipe.c: Fix common/ includes.
12092 * ser-base.c: Fix common/ includes.
12093 * selftest-arch.c: Fix common/ includes.
12094 * s12z-tdep.c: Fix common/ includes.
12095 * rust-exp.y: Fix common/ includes.
12096 * rs6000-aix-tdep.c: Fix common/ includes.
12097 * riscv-tdep.c: Fix common/ includes.
12098 * remote.c: Fix common/ includes.
12099 * remote-notif.h: Fix common/ includes.
12100 * remote-fileio.h: Fix common/ includes.
12101 * remote-fileio.c: Fix common/ includes.
12102 * regcache.h: Fix common/ includes.
12103 * regcache.c: Fix common/ includes.
12104 * record-btrace.c: Fix common/ includes.
12105 * python/python.c: Fix common/ includes.
12106 * python/py-type.c: Fix common/ includes.
12107 * python/py-inferior.c: Fix common/ includes.
12108 * progspace.h: Fix common/ includes.
12109 * producer.c: Fix common/ includes.
12110 * procfs.c: Fix common/ includes.
12111 * proc-api.c: Fix common/ includes.
12112 * printcmd.c: Fix common/ includes.
12113 * ppc-linux-nat.c: Fix common/ includes.
12114 * parser-defs.h: Fix common/ includes.
12115 * osdata.c: Fix common/ includes.
12116 * obsd-nat.c: Fix common/ includes.
12117 * nat/x86-linux.c: Fix common/ includes.
12118 * nat/x86-linux-dregs.c: Fix common/ includes.
12119 * nat/x86-dregs.h: Fix common/ includes.
12120 * nat/x86-dregs.c: Fix common/ includes.
12121 * nat/ppc-linux.c: Fix common/ includes.
12122 * nat/mips-linux-watch.h: Fix common/ includes.
12123 * nat/mips-linux-watch.c: Fix common/ includes.
12124 * nat/linux-waitpid.c: Fix common/ includes.
12125 * nat/linux-ptrace.h: Fix common/ includes.
12126 * nat/linux-ptrace.c: Fix common/ includes.
12127 * nat/linux-procfs.c: Fix common/ includes.
12128 * nat/linux-personality.c: Fix common/ includes.
12129 * nat/linux-osdata.c: Fix common/ includes.
12130 * nat/linux-namespaces.c: Fix common/ includes.
12131 * nat/linux-btrace.h: Fix common/ includes.
12132 * nat/linux-btrace.c: Fix common/ includes.
12133 * nat/fork-inferior.c: Fix common/ includes.
12134 * nat/amd64-linux-siginfo.c: Fix common/ includes.
12135 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
12136 * nat/aarch64-linux.c: Fix common/ includes.
12137 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
12138 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
12139 * namespace.h: Fix common/ includes.
12140 * mips-linux-tdep.c: Fix common/ includes.
12141 * minsyms.c: Fix common/ includes.
12142 * mi/mi-parse.h: Fix common/ includes.
12143 * mi/mi-main.c: Fix common/ includes.
12144 * mi/mi-cmd-env.c: Fix common/ includes.
12145 * memrange.h: Fix common/ includes.
12146 * memattr.c: Fix common/ includes.
12147 * maint.h: Fix common/ includes.
12148 * maint.c: Fix common/ includes.
12149 * main.c: Fix common/ includes.
12150 * machoread.c: Fix common/ includes.
12151 * location.c: Fix common/ includes.
12152 * linux-thread-db.c: Fix common/ includes.
12153 * linux-nat.c: Fix common/ includes.
12154 * linux-fork.c: Fix common/ includes.
12155 * inline-frame.c: Fix common/ includes.
12156 * infrun.c: Fix common/ includes.
12157 * inflow.c: Fix common/ includes.
12158 * inferior.h: Fix common/ includes.
12159 * inferior.c: Fix common/ includes.
12160 * infcmd.c: Fix common/ includes.
12161 * inf-ptrace.c: Fix common/ includes.
12162 * inf-child.c: Fix common/ includes.
12163 * ia64-linux-nat.c: Fix common/ includes.
12164 * i387-tdep.c: Fix common/ includes.
12165 * i386-tdep.c: Fix common/ includes.
12166 * i386-linux-tdep.c: Fix common/ includes.
12167 * i386-linux-nat.c: Fix common/ includes.
12168 * i386-go32-tdep.c: Fix common/ includes.
12169 * i386-fbsd-tdep.c: Fix common/ includes.
12170 * i386-fbsd-nat.c: Fix common/ includes.
12171 * guile/scm-type.c: Fix common/ includes.
12172 * guile/guile.c: Fix common/ includes.
12173 * go32-nat.c: Fix common/ includes.
12174 * gnu-nat.c: Fix common/ includes.
12175 * gdbthread.h: Fix common/ includes.
12176 * gdbarch-selftests.c: Fix common/ includes.
12177 * gdb_usleep.c: Fix common/ includes.
12178 * gdb_select.h: Fix common/ includes.
12179 * gdb_bfd.c: Fix common/ includes.
12180 * gcore.c: Fix common/ includes.
12181 * fork-child.c: Fix common/ includes.
12182 * findvar.c: Fix common/ includes.
12183 * fbsd-nat.c: Fix common/ includes.
12184 * event-top.c: Fix common/ includes.
12185 * event-loop.c: Fix common/ includes.
12186 * dwarf2read.c: Fix common/ includes.
12187 * dwarf2loc.c: Fix common/ includes.
12188 * dwarf2-frame.c: Fix common/ includes.
12189 * dwarf-index-cache.c: Fix common/ includes.
12190 * dtrace-probe.c: Fix common/ includes.
12191 * disasm-selftests.c: Fix common/ includes.
12192 * defs.h: Fix common/ includes.
12193 * csky-tdep.c: Fix common/ includes.
12194 * cp-valprint.c: Fix common/ includes.
12195 * cp-support.h: Fix common/ includes.
12196 * cp-support.c: Fix common/ includes.
12197 * corelow.c: Fix common/ includes.
12198 * completer.h: Fix common/ includes.
12199 * completer.c: Fix common/ includes.
12200 * compile/compile.c: Fix common/ includes.
12201 * compile/compile-loc2c.c: Fix common/ includes.
12202 * compile/compile-cplus-types.c: Fix common/ includes.
12203 * compile/compile-cplus-symbols.c: Fix common/ includes.
12204 * command.h: Fix common/ includes.
12205 * cli/cli-dump.c: Fix common/ includes.
12206 * cli/cli-cmds.c: Fix common/ includes.
12207 * charset.c: Fix common/ includes.
12208 * build-id.c: Fix common/ includes.
12209 * btrace.h: Fix common/ includes.
12210 * btrace.c: Fix common/ includes.
12211 * breakpoint.h: Fix common/ includes.
12212 * breakpoint.c: Fix common/ includes.
12213 * ax.h:
12214 (enum agent_op): Fix common/ includes.
12215 * ax-general.c (struct aop_map): Fix common/ includes.
12216 * ax-gdb.c: Fix common/ includes.
12217 * auxv.c: Fix common/ includes.
12218 * auto-load.c: Fix common/ includes.
12219 * arm-tdep.c: Fix common/ includes.
12220 * arch/riscv.c: Fix common/ includes.
12221 * arch/ppc-linux-common.c: Fix common/ includes.
12222 * arch/i386.c: Fix common/ includes.
12223 * arch/arm.c: Fix common/ includes.
12224 * arch/arm-linux.c: Fix common/ includes.
12225 * arch/arm-get-next-pcs.c: Fix common/ includes.
12226 * arch/amd64.c: Fix common/ includes.
12227 * arch/aarch64.c: Fix common/ includes.
12228 * arch/aarch64-insn.c: Fix common/ includes.
12229 * arch-utils.c: Fix common/ includes.
12230 * amd64-windows-tdep.c: Fix common/ includes.
12231 * amd64-tdep.c: Fix common/ includes.
12232 * amd64-sol2-tdep.c: Fix common/ includes.
12233 * amd64-obsd-tdep.c: Fix common/ includes.
12234 * amd64-nbsd-tdep.c: Fix common/ includes.
12235 * amd64-linux-tdep.c: Fix common/ includes.
12236 * amd64-linux-nat.c: Fix common/ includes.
12237 * amd64-fbsd-tdep.c: Fix common/ includes.
12238 * amd64-fbsd-nat.c: Fix common/ includes.
12239 * amd64-dicos-tdep.c: Fix common/ includes.
12240 * amd64-darwin-tdep.c: Fix common/ includes.
12241 * agent.c: Fix common/ includes.
12242 * ada-lang.h: Fix common/ includes.
12243 * ada-lang.c: Fix common/ includes.
12244 * aarch64-tdep.c: Fix common/ includes.
12245
2f5c153e
TT
122462019-01-25 Tom Tromey <tom@tromey.com>
12247
12248 * common/create-version.sh: Use common/version.h.
12249
adc6a863
PA
122502019-01-24 Pedro Alves <palves@redhat.com>
12251
12252 * infrun.c (signal_stop, signal_print, signal_program)
12253 (signal_catch, signal_pass): Now arrays instead of pointers.
12254 (update_signals_program_target, do_target_resume)
12255 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
12256 * linux-nat.c (linux_nat_target::pass_signals)
12257 (linux_nat_target::create_inferior, linux_nat_target::attach):
12258 Adjust.
12259 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
12260 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
12261 * procfs.c (procfs_target::pass_signals): Adjust.
12262 * record-full.c (record_full_target::resume): Adjust.
12263 * remote.c (remote_target::pass_signals)
12264 (remote_target::program_signals): Adjust.
12265 * target-debug.h (target_debug_print_signals): Now takes a
12266 gdb::array_view as parameter. Adjust.
12267 * target.h (target_ops) <pass_signals, program_signals>: Replace
12268 pointer and length parameters with gdb::array_view.
12269 (target_pass_signals, target_program_signals): Likewise.
12270 * target-delegates.c: Regenerate.
12271
3046d67a
PA
122722019-01-24 Pedro Alves <palves@redhat.com>
12273
12274 * common/forward-scope-exit.h
12275 (forward_scope_exit::forward_scope_exit): Pass arguments to
12276 m_bind_function directly, instead of creating a std::bind and
12277 copying that.
12278
353229bf
AH
122792019-01-24 Alan Hayward <alan.hayward@arm.com>
12280
12281 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12282 for static members.
12283 (pass_in_v_vfp_candidate): Likewise.
12284
311dc83a
TT
122852019-01-23 Tom Tromey <tom@tromey.com>
12286 Pedro Alves <palves@redhat.com>
12287
12288 * regcache.c (class regcache_invalidator): Remove.
12289 (regcache::raw_write): Use make_scope_exit.
12290
296bd123
TT
122912019-01-23 Tom Tromey <tom@tromey.com>
12292
12293 * ui-out.h (class ui_out_emit_type): Update comment.
12294
979a0d13
TT
122952019-01-23 Tom Tromey <tom@tromey.com>
12296
12297 * infrun.c (fetch_inferior_event): Update comment.
12298
d238133d
TT
122992019-01-23 Tom Tromey <tom@tromey.com>
12300 Pedro Alves <palves@redhat.com>
12301
12302 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
12303 parameter.
12304 (fetch_inferior_event): Use SCOPE_EXIT.
12305
12306
9885e6bb
TT
123072019-01-23 Tom Tromey <tom@tromey.com>
12308 Pedro Alves <palves@redhat.com>
12309
12310 * infrun.c (disable_thread_events): Delete.
12311 (stop_all_threads): Use SCOPE_EXIT.
12312
286526c1
TT
123132019-01-23 Tom Tromey <tom@tromey.com>
12314 Pedro Alves <palves@redhat.com>
12315
12316 * symfile.c: Include forward-scope-exit.h.
12317 (clear_symtab_users_cleanup): Replace forward declaration with
12318 a FORWARD_SCOPE_EXIT.
12319 (syms_from_objfile_1): Use the forward_scope_exit and
12320 gdb::optional instead of cleanup_function.
12321 (reread_symbols): Use the forward_scope_exit instead of
12322 cleanup_function.
12323 (clear_symtab_users_cleanup): Remove function.
12324
1db93f14
TT
123252019-01-23 Tom Tromey <tom@tromey.com>
12326 Pedro Alves <palves@redhat.com>
12327
12328 * linux-nat.c: Include scope-exit.h.
12329 (cleanup_target_stop): Remove.
12330 (linux_nat_target::static_tracepoint_markers_by_strid): Use
12331 SCOPE_EXIT.
12332
2cc83d1e
TT
123332019-01-23 Tom Tromey <tom@tromey.com>
12334 Pedro Alves <palves@redhat.com>
12335
12336 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
12337 (call_function_by_hand_dummy): Use SCOPE_EXIT.
12338
694c6bf5
TT
123392019-01-23 Tom Tromey <tom@tromey.com>
12340 Andrew Burgess <andrew.burgess@embecosm.com>
12341 Pedro Alves <palves@redhat.com>
12342
12343 * infrun.c (fetch_inferior_event): Use scope_exit.
12344 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
12345 * top.c (execute_command): Use scope_exit.
12346 * breakpoint.c (bpstat_do_actions): Use scope_exit.
12347 * utils.c (do_bpstat_clear_actions_cleanup)
12348 (make_bpstat_clear_actions_cleanup): Remove.
12349
4c41382a
TT
123502019-01-23 Tom Tromey <tom@tromey.com>
12351 Pedro Alves <palves@redhat.com>
12352
12353 * infrun.c: Include "common/scope-exit.h"
12354 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
12355 (wait_for_inferior): Use SCOPE_EXIT.
12356 (fetch_inferior_event): Use scope_exit.
12357
89f8fb50
TT
123582019-01-23 Tom Tromey <tom@tromey.com>
12359 Pedro Alves <palves@redhat.com>
12360
12361 * breakpoint.c (create_breakpoint): Remove cleanup.
12362
5419bdae
TT
123632019-01-23 Tom Tromey <tom@tromey.com>
12364 Andrew Burgess <andrew.burgess@embecosm.com>
12365 Pedro Alves <palves@redhat.com>
12366
e587ef42
PA
123672019-01-23 Pedro Alves <palves@redhat.com>
12368
12369 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
12370
77f0e74c
PA
123712019-01-23 Pedro Alves <palves@redhat.com>
12372 Andrew Burgess <andrew.burgess@embecosm.com>
12373
12374 * gdbthread.h: Include "common/forward-scope-exit.h".
12375 (scoped_finish_thread_state): Redefine custom class in terms of
12376 forward_scope_exit.
12377
5b9b3e53
PA
123782019-01-23 Pedro Alves <palves@redhat.com>
12379 Andrew Burgess <andrew.burgess@embecosm.com>
12380
12381 * common/forward-scope-exit.h: New file.
12382
54b65c9b
PA
123832019-01-23 Pedro Alves <palves@redhat.com>
12384 Andrew Burgess <andrew.burgess@embecosm.com>
12385 Tom Tromey <tom@tromey.com>
12386
12387 * common/scope-exit.h: New file.
12388
cf08fb29
PA
123892019-01-23 Pedro Alves <palves@redhat.com>
12390
12391 * common/preprocessor.h (ESC): Rename to ...
12392 (ESC_PARENS): ... this.
12393 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
12394 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
12395
ae73e2e2
TT
123962019-01-23 Tom Tromey <tom@tromey.com>
12397
12398 * language.h (class scoped_switch_to_sym_language_if_auto):
12399 Initialize m_lang in both cases.
12400
6594e122
AH
124012019-01-23 Alan Hayward <alan.hayward@arm.com>
12402
12403 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
12404 with XCNEW.
12405
a7c9855d
TT
124062019-01-22 Tom Tromey <tom@tromey.com>
12407
12408 * corelow.c: Do not include sys/file.h.
12409
93cc1d53
TT
124102019-01-22 Tom Tromey <tom@tromey.com>
12411
12412 * tui/tui-wingeneral.h: Include gdb_curses.h.
12413
38561778
TT
124142019-01-22 Tom Tromey <tom@tromey.com>
12415
12416 * source-cache.h (class source_cache) <get_source_lines,
12417 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
12418
37b3ab5b
TT
124192019-01-22 Tom Tromey <tom@tromey.com>
12420
12421 * remote-fileio.h (struct remote_target): Declare.
12422
3fabc016
TT
124232019-01-22 Tom Tromey <tom@tromey.com>
12424
12425 * python/py-arch.c: Do not include py-ref.h.
12426 * python/py-bpevent.c: Do not include py-ref.h.
12427 * python/py-cmd.c: Do not include py-ref.h.
12428 * python/py-continueevent.c: Do not include py-ref.h.
12429 * python/py-event.h: Do not include py-ref.h.
12430 * python/py-evtregistry.c: Do not include py-ref.h.
12431 * python/py-finishbreakpoint.c: Do not include py-ref.h.
12432 * python/py-frame.c: Do not include py-ref.h.
12433 * python/py-framefilter.c: Do not include py-ref.h.
12434 * python/py-function.c: Do not include py-ref.h.
12435 * python/py-infevents.c: Do not include py-ref.h.
12436 * python/py-linetable.c: Do not include py-ref.h.
12437 * python/py-objfile.c: Do not include py-ref.h.
12438 * python/py-param.c: Do not include py-ref.h.
12439 * python/py-prettyprint.c: Do not include py-ref.h.
12440 * python/py-progspace.c: Do not include py-ref.h.
12441 * python/py-symbol.c: Do not include py-ref.h.
12442 * python/py-symtab.c: Do not include py-ref.h.
12443 * python/py-type.c: Do not include py-ref.h.
12444 * python/py-unwind.c: Do not include py-ref.h.
12445 * python/py-utils.c: Do not include py-ref.h.
12446 * python/py-value.c: Do not include py-ref.h.
12447 * python/py-varobj.c: Do not include py-ref.h.
12448 * python/py-xmethods.c: Do not include py-ref.h.
12449 * python/python.c: Do not include py-ref.h.
12450 * varobj.c: Do not include py-ref.h.
12451
6b4d7774
TT
124522019-01-22 Tom Tromey <tom@tromey.com>
12453
12454 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
12455 keyword for bcache.
12456
7af7e9b5
TT
124572019-01-22 Tom Tromey <tom@tromey.com>
12458
12459 * compile/compile-cplus-types.c: Remove a comment by #include.
12460
951d1049
TT
124612019-01-22 Tom Tromey <tom@tromey.com>
12462
12463 * compile/gcc-c-plugin.h: Include compile-internal.h.
12464
d65d5705
TT
124652019-01-22 Tom Tromey <tom@tromey.com>
12466
12467 * stabsread.c (EXTERN): Do not define.
12468 (symnum, next_symbol_text_func, processing_gcc_compilation)
12469 (within_function, global_sym_chain, global_stabs)
12470 (previous_stab_code, this_object_header_files)
12471 (n_this_object_header_files)
12472 (n_allocated_this_object_header_files): Define.
12473 * stabsread.h (EXTERN): Never define. Use "extern".
12474
b6fb1ee5
PW
124752019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12476
12477 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
12478 history_value.
12479
be6d4f74
TT
124802019-01-21 Tom Tromey <tom@tromey.com>
12481
12482 * ui-out.c: Fix includes.
12483 * tui/tui-source.c: Fix includes.
12484 * target.c: Fix includes.
12485 * remote.c: Fix includes.
12486 * regcache.c: Fix includes.
12487 * python/py-block.c: Fix includes.
12488 * printcmd.c: Fix includes.
12489 * or1k-tdep.c: Fix includes.
12490 * mi/mi-main.c: Fix includes.
12491 * m32r-tdep.c: Fix includes.
12492 * csky-tdep.c: Fix includes.
12493 * compile/compile-cplus-types.c: Fix includes.
12494 * cli/cli-interp.c: Fix includes.
12495
73021deb
AH
124962019-01-21 Alan Hayward <alan.hayward@arm.com>
12497
12498 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12499 for padding.
12500
7932255d
TT
125012019-01-16 Tom Tromey <tom@tromey.com>
12502
12503 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
12504 earlier.
12505 (struct objfile) <msymbols_range>: Move from top level.
12506 <msymbols>: New method.
12507 (class objfile_msymbols): Remove.
12508 * symtab.c (default_collect_symbol_completion_matches_break_on):
12509 Update.
12510 * symmisc.c (dump_msymbols): Update.
12511 * stabsread.c (scan_file_globals): Update.
12512 * objc-lang.c (info_selectors_command, info_classes_command)
12513 (find_methods): Update.
12514 * minsyms.c (find_solib_trampoline_target): Update.
12515 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
12516 * coffread.c (coff_symfile_read): Update.
12517 * ada-lang.c (ada_lookup_simple_minsym)
12518 (ada_collect_symbol_completion_matches): Update.
12519
604b1bfb
TT
125202019-01-16 Tom Tromey <tom@tromey.com>
12521
12522 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
12523 type. Remove no-argument constructor.
12524 <iterator::operator++>: Simplify.
12525 <begin>: Update.
12526 <end>: Use minimal_symbol_count.
12527
f252c6d5
TT
125282019-01-16 Tom Tromey <tom@tromey.com>
12529
12530 * objfiles.h (struct objfile) <psymtabs>: New method.
12531 (class objfile_psymtabs): Remove.
12532 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
12533 typedef.
12534 <range>: New method.
12535 (require_partial_symbols): Change return type.
12536 * psymtab.c (require_partial_symbols)
12537 (psym_expand_symtabs_matching): Update.
12538 * mdebugread.c (parse_partial_symbols): Update.
12539 * dbxread.c (dbx_end_psymtab): Update.
12540
b669c953
TT
125412019-01-15 Tom Tromey <tom@tromey.com>
12542
12543 * symtab.c (lookup_objfile_from_block)
12544 (lookup_symbol_in_objfile_symtabs)
12545 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
12546 (find_line_symtab, info_sources_command)
12547 (default_collect_symbol_completion_matches_break_on)
12548 (make_source_files_completion_list): Update.
12549 * symmisc.c (print_objfile_statistics, dump_objfile)
12550 (maintenance_print_symbols, maintenance_info_symtabs)
12551 (maintenance_check_symtabs, maintenance_info_line_tables):
12552 Update.
12553 * source.c (select_source_symtab)
12554 (forget_cached_source_info_for_objfile): Update.
12555 * objfiles.h (class objfile_compunits): Remove.
12556 (struct objfile) <compunits_range>: New typedef.
12557 (compunits): New method.
12558 * objfiles.c (objfile_relocate1): Update.
12559 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12560 * maint.c (count_symtabs_and_blocks): Update.
12561 * linespec.c (iterate_over_all_matching_symtabs): Update.
12562 * cp-support.c (add_symbol_overload_list_qualified): Update.
12563 * coffread.c (coff_symtab_read): Update.
12564 * ada-lang.c (add_nonlocal_symbols)
12565 (ada_collect_symbol_completion_matches)
12566 (ada_add_global_exceptions): Update.
12567
7e955d83
TT
125682019-01-15 Tom Tromey <tom@tromey.com>
12569
12570 * progspace.h (program_space) <objfiles_safe_range>: New
12571 typedef.
12572 <objfiles_safe>: New method.
12573 * objfiles.h (class all_objfiles_safe): Remove.
12574 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
12575 * jit.c (jit_inferior_exit_hook): Update.
12576
2030c079
TT
125772019-01-17 Tom Tromey <tom@tromey.com>
12578
12579 * progspace.h (program_space) <objfiles_range>: New typedef.
12580 <objfiles>: New method.
12581 <objfiles_head>: Rename from objfiles.
12582 (object_files): Update.
12583 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
12584 * guile/scm-pretty-print.c
12585 (ppscm_find_pretty_printer_from_objfiles): Update.
12586 * guile/scm-objfile.c (gdbscm_objfiles): Update.
12587 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
12588 Update.
12589 * python/py-progspace.c (pspy_get_objfiles): Update.
12590 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12591 Update.
12592 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12593 (objfpy_lookup_objfile_by_build_id): Update.
12594 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12595 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12596 Update.
12597 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12598 (expand_symtab_containing_pc, lookup_objfile_from_block)
12599 (lookup_static_symbol, basic_lookup_transparent_type)
12600 (find_pc_sect_compunit_symtab, find_symbol_at_address)
12601 (find_line_symtab, info_sources_command)
12602 (default_collect_symbol_completion_matches_break_on)
12603 (make_source_files_completion_list, find_main_name): Update.
12604 * symmisc.c (print_symbol_bcache_statistics)
12605 (print_objfile_statistics, maintenance_print_symbols)
12606 (maintenance_print_msymbols, maintenance_print_objfiles)
12607 (maintenance_info_symtabs, maintenance_check_symtabs)
12608 (maintenance_expand_symtabs, maintenance_info_line_tables):
12609 Update.
12610 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
12611 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
12612 (map_overlay_command, unmap_overlay_command)
12613 (simple_overlay_update, expand_symtabs_matching)
12614 (map_symbol_filenames): Update.
12615 * symfile-debug.c (set_debug_symfile): Update.
12616 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
12617 Update.
12618 * source.c (select_source_symtab, forget_cached_source_info):
12619 Update.
12620 * solib.c (solib_read_symbols): Update.
12621 * solib-spu.c (append_ocl_sos): Update.
12622 * psymtab.c (maintenance_print_psymbols)
12623 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
12624 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
12625 * printcmd.c (info_symbol_command): Update.
12626 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
12627 Update.
12628 * objfiles.h (class all_objfiles): Remove.
12629 * objfiles.c (have_partial_symbols, have_full_symbols)
12630 (have_minimal_symbols, qsort_cmp, update_section_map)
12631 (shared_objfile_contains_address_p)
12632 (default_iterate_over_objfiles_in_search_order): Update.
12633 * objc-lang.c (info_selectors_command, info_classes_command)
12634 (find_methods): Update.
12635 * minsyms.c (find_solib_trampoline_target): Update.
12636 * maint.c (maintenance_info_sections)
12637 (maintenance_translate_address, count_symtabs_and_blocks):
12638 Update.
12639 * main.c (captured_main_1): Update.
12640 * linux-thread-db.c (try_thread_db_load_from_pdir)
12641 (has_libpthread): Update.
12642 * linespec.c (iterate_over_all_matching_symtabs)
12643 (search_minsyms_for_name): Update.
12644 * jit.c (jit_find_objf_with_entry_addr): Update.
12645 * hppa-tdep.c (find_unwind_entry)
12646 (hppa_lookup_stub_minimal_symbol): Update.
12647 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
12648 Update.
12649 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12650 (elf_gnu_ifunc_resolve_by_got): Update.
12651 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
12652 * dwarf-index-write.c (save_gdb_index_command): Update.
12653 * cp-support.c (add_symbol_overload_list_qualified): Update.
12654 * breakpoint.c (create_overlay_event_breakpoint)
12655 (create_longjmp_master_breakpoint)
12656 (create_std_terminate_master_breakpoint)
12657 (create_exception_master_breakpoint): Update.
12658 * blockframe.c (find_pc_partial_function): Update.
12659 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
12660 (ada_collect_symbol_completion_matches)
12661 (ada_add_global_exceptions): Update.
12662
776489e0
TT
126632019-01-17 Tom Tromey <tom@tromey.com>
12664
12665 * solib-target.c (lm_info_target_p): Remove typedef. Don't
12666 declare VEC.
12667 (solib_target_parse_libraries): Change return type.
12668 (library_list_start_segment, library_list_start_section)
12669 (library_list_end_library, library_list_start_library); Update.
12670 (solib_target_free_library_list): Remove.
12671 (solib_target_parse_libraries): Remove cleanup. Change return
12672 type.
12673 (solib_target_current_sos): Update.
12674
6471e7d2
TT
126752019-01-17 Tom Tromey <tromey@bapiya>
12676
12677 * valprint.c: Replace "the the" with "the".
12678 * symtab.c: Replace "the the" with "the".
12679 * solib.c: Replace "the the" with "the".
12680 * solib-dsbt.c: Replace "the the" with "the".
12681 * linespec.c: Replace "the the" with "the".
12682 * dwarf2loc.h: Replace "the the" with "the".
12683 * amd64-windows-tdep.c: Replace "the the" with "the".
12684 * aarch64-tdep.c: Replace "the the" with "the".
12685
c24bdb02
KS
126862019-01-16 Keith Seitz <keiths@redhat.com>
12687
12688 PR gdb/23773
12689 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
12690 <builder>: Rename to ..
12691 <m_builder>: ... this and make private.
12692 (dwarf2_cu::get_builder): New method. Change all users of
12693 `builder' to use this method.
12694 (dwarf2_start_symtab): Move to ...
12695 (dwarf2_cu::start_symtab): ... here. Update all callers
12696 (setup_type_unit_groups): Move to ...
12697 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
12698 callers.
12699 (dwarf2_cu::reset_builder): New method.
12700 (process_full_compunit, process_full_type_unit): Use
12701 dwarf2_cu::reset_builder.
12702 (follow_die_offset): Record the ancestor CU if it is different
12703 from the followed DIE's CU.
12704 (follow_die_sig_1): Likewise.
12705
8d64371b
TT
127062019-01-15 Tom Tromey <tom@tromey.com>
12707
12708 * remote.c (class remote_state) <buf>: Now a char_vector.
12709 <buf_size>: Remove.
12710 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
12711 parameter.
12712 (remote_target::getpkt_or_notif_sane_1)
12713 (remote_target::getpkt_sane)
12714 (remote_target::getpkt_or_notif_sane): Likewise.
12715 (class remote_target) <putpkt>: New overload.
12716 (remote_target::read_frame): Change type of "buf_p". Remove
12717 sizeof_p parameter.
12718 (packet_ok): New overload.
12719 (packet_check_result): New overload.
12720 Update all uses.
12721
bb277751
TT
127222019-01-14 Tom Tromey <tom@tromey.com>
12723
12724 * remote-notif.c (handle_notification, remote_notif_ack)
12725 (remote_notif_parse): Make "buf" const.
12726 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
12727 const.
12728 (remote_notif_parse, remote_notif_ack, handle_notification):
12729 Likewise.
12730 * remote.c (remote_notif_stop_parse): Make "buf" const.
12731 (remote_target::remote_parse_stop_reply): Make "buf" const.
12732 (remote_notif_stop_ack): Make "buf" const.
12733
05be00a8
TT
127342019-01-14 Tom Tromey <tom@tromey.com>
12735
12736 * remote.c (remote_console_output): Make parameter const.
12737
491adeca
TT
127382019-01-14 Tom Tromey <tom@tromey.com>
12739
12740 * target-debug.h (target_debug_print_signals): Constify.
12741 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
12742 * procfs.c (procfs_target::pass_signals): Update.
12743 * linux-nat.c (linux_nat_target::pass_signals): Update.
12744 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
12745 * target-delegates.c: Rebuild.
12746 * remote.c (remote_target::program_signals): Update.
12747 (remote_target::pass_signals): Update.
12748 * target.c (target_pass_signals): Constify argument.
12749 (target_program_signals): Likewise.
12750 * target.h (struct target_ops) <pass_signals, program_signals>:
12751 Constify argument.
12752 (target_pass_signals, target_program_signals): Constify argument.
12753
bbd94648
TT
127542019-01-14 Tom Tromey <tom@tromey.com>
12755
12756 PR tui/28819:
12757 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
12758
6f072a10
PFC
127592019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12760
12761 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
12762 field.
12763 * rs6000-tdep.c: Include reggroups.h.
12764 (IS_V_ALIAS_PSEUDOREG): Define.
12765 (rs6000_register_name): Return names for the "vX" aliases.
12766 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
12767 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
12768 aliases. Call default_register_reggroup_p for all other
12769 pseudo-registers.
12770 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
12771 New functions.
12772 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
12773 Handle "vX" aliases.
12774 (v_alias_pseudo_register_collect): New function.
12775 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
12776 (rs6000_gdbarch_init): Initialize "vX" aliases as
12777 pseudo-registers. Restore registration of
12778 rs6000_pseudo_register_reggroup_p with
12779 set_tdesc_pseudo_register_reggroup_p.
12780
1a782351
MF
127812019-01-13 Max Filippov <jcmvbkbc@gmail.com>
12782
12783 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
12784 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
12785 set_gdbarch_num_pseudo_regs.
12786
d73cff18
PW
127872019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12788
12789 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
12790 Remove arg prefixname, add do_set and do_show.
12791 Add member functions set_list and show_list.
12792 * cli/cli-style.c (class cli_style_option): Update accordingly.
12793 (style_set_list): Move to file scope.
12794 (style_show_list): Likewise.
12795 (set_style): Call help_list.
12796 (show_style): Call cmd_show_list.
12797 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
12798 Update to use the new macro.
12799
60a90376
JB
128002019-10-12 Joel Brobecker <brobecker@adacore.com>
12801
12802 * ada-lang.c (_initialize_ada_language): Expand the help text
12803 for the "catch exception" command.
12804
9d7c67bf
PW
128052019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12806
12807 * symtab.c (matching_obj_sections): Initialize obj,
12808 declare it closer to its usage.
12809
7cf47dc4
TT
128102019-01-10 Tom Tromey <tom@tromey.com>
12811
12812 * thread-iter.h (inf_threads_iterator): Use next_iterator.
12813 (basic_inf_threads_range): Remove.
12814 (inf_threads_range, inf_non_exited_threads_range)
12815 (safe_inf_threads_range): Use next_adapter.
12816
d3cb6808
KS
128172019-01-10 Keith Seitz <keiths@redhat.com>
12818
12819 PR gdb/23712
12820 PR symtab/23010
12821 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
12822 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
12823
63a20375
KS
128242019-01-10 Keith Seitz <keiths@redhat.com>
12825
12826 PR gdb/23712
12827 PR symtab/23010
12828 * dictionary.c (pending_to_vector): Remove.
12829 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12830 Remove _1 suffix, replacing functions of the same name. Update
12831 all callers.
12832 (dict_create_hashed, dict_create_hashed_expandable)
12833 (dict_create_linear, dict_create_linear_expandable, dict_free)
12834 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
12835 Make functions static.
12836
b026f593
KS
128372019-01-10 Keith Seitz <keiths@redhat.com>
12838
12839 PR gdb/23712
12840 PR symtab/23010
12841 * dictionary.h (struct dictionary): Replace declaration with
12842 multidictionary.
12843 (dict_create_hashed, dict_create_hashed_expandable)
12844 (dict_create_linear, dict_create_linear_expandable)
12845 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
12846 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
12847 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
12848 taking multidictionary argument.
12849 [ALL_DICT_SYMBOLS]: Update for multidictionary.
12850 * block.h (struct block) <dict>: Change to multidictionary
12851 and rename `multidict'.
12852 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
12853 symmisc.c: Update all dictionary references to multidictionary.
12854
c7748ee9
KS
128552019-01-10 Keith Seitz <keiths@redhat.com>
12856
12857 PR gdb/23712
12858 PR symtab/23010
12859 * dictionary.c: Include unordered_map.
12860 (pending_to_vector): New function.
12861 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12862 Rewrite the non-"_1" functions to take vector instead
12863 of linked list.
12864 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
12865 "new" _1 versions of the same name.
12866 (multidictionary): Define.
12867 (std::hash<enum language): New definition.
12868 (collate_pending_symbols_by_language, mdict_create_hashed)
12869 (mdict_create_hashed_expandable, mdict_create_linear)
12870 (mdict_create_linear_expandable, mdict_free)
12871 (find_language_dictionary, create_new_language_dictionary)
12872 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
12873 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
12874 (mdict_size, mdict_empty): New functions.
12875 * dictionary.h (mdict_iterator): Define.
12876
67aa1f3c
PA
128772019-01-10 Pedro Alves <palves@redhat.com>
12878
12879 * breakpoint.c (read_uploaded_action)
12880 (create_tracepoint_from_upload): Adjust to use
12881 gdb::unique_xmalloc_ptr.
12882 * ctf.c (ctf_write_uploaded_tp):
12883 (SET_ARRAY_FIELD): Use emplace_back.
12884 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
12885 * tracefile-tfile.c (tfile_write_uploaded_tp):
12886 * tracepoint.c (parse_tracepoint_definition): Adjust to use
12887 gdb::unique_xmalloc_ptr.
12888 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
12889 at_string, cond_string, cmd_strings>: Replace char pointers
12890 with gdb::unique_xmalloc_ptr.
12891
2f667667
PA
128922019-01-10 Pedro Alves <palves@redhat.com>
12893
12894 * solib-target.c (library_list_start_library): Don't xstrdup name.
12895
36cb7237
PA
128962019-01-10 Pedro Alves <palves@redhat.com>
12897
12898 * mdebugread.c (parse_partial_symbols): Use
12899 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
12900
da584958
AB
129012019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12902
12903 * linux-fork.c (scoped_switch_fork_info)
12904 <~scoped_switch_fork_info>: Fix incorrect variable name.
12905
1ef8573c
AB
129062019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12907
12908 * linux-fork.c (scoped_switch_fork_info)
12909 <scoped_switch_fork_info>: Make explicit.
12910 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
12911
8d7bcccb
TT
129122019-01-10 Tom Tromey <tom@tromey.com>
12913
12914 * objfiles.h (objfile::reset_psymtabs): Update.
12915 * objfiles.c (objfile::objfile): Update.
12916 * psymtab.h (psymtab_storage::obstack): Update.
12917 (psymtab_storage::m_obstack): Use gdb::optional.
12918 (class psymtab_storage): Update comment. Remove objfile
12919 parameter.
12920 * psymtab.c (psymtab_storage::psymtab_storage): Update.
12921
b596a3c7
TT
129222019-01-10 Tom Tromey <tom@tromey.com>
12923
12924 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
12925 <free_psymtabs>: Now private.
12926 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
12927 (allocate_psymtab): Use new method.
12928
a9342b62
TT
129292019-01-10 Tom Tromey <tom@tromey.com>
12930
12931 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
12932 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
12933 * mdebugread.c (parse_partial_symbols): Use
12934 allocate_dependencies.
12935 * dwarf2read.c (dwarf2_create_include_psymtab): Use
12936 allocate_dependencies.
12937 (process_psymtab_comp_unit_reader)
12938 (build_type_psymtab_dependencies): Likewise.
12939 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
12940
5af70966
TT
129412019-01-10 Tom Tromey <tom@tromey.com>
12942
12943 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
12944 PSYMBOL_SET_LANGUAGE.
12945 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
12946
5923a04c
TT
129472019-01-10 Tom Tromey <tom@tromey.com>
12948
12949 * psymtab.h (psymtab_storage::obstack): New method.
12950 <m_obstack>: Rename from obstack; now private.
12951 * psymtab.c (psymtab_storage): Update.
12952 * dwarf2read.c (create_addrmap_from_index)
12953 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
12954 Update.
12955
6d6a12bf
TT
129562019-01-10 Tom Tromey <tom@tromey.com>
12957
12958 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
12959 * objfiles.h (objfile::reset_psymtabs): New method.
12960
d320c2b5
TT
129612019-01-10 Tom Tromey <tom@tromey.com>
12962
12963 * symmisc.c (print_symbol_bcache_statistics): Update.
12964 (print_objfile_statistics): Update.
12965 * symfile.c (reread_symbols): Update.
12966 * psymtab.h (class psymtab_storage): New.
12967 * psymtab.c (psymtab_storage): New constructor.
12968 (~psymtab_storage): New destructor.
12969 (require_partial_symbols): Update.
12970 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
12971 (find_pc_sect_psymtab, find_pc_sect_psymbol)
12972 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
12973 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
12974 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
12975 (start_psymtab_common, end_psymtab_common)
12976 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
12977 (allocate_psymtab): Update.
12978 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
12979 Update.
12980 (dump_psymtab_addrmap, maintenance_print_psymbols)
12981 (maintenance_check_psymtabs): Update.
12982 (class objfile_psymtabs): Move to objfiles.h.
12983 * psympriv.h (discard_psymtab): Now inline.
12984 (psymtab_discarder::psymtab_discarder): Update.
12985 (psymtab_discarder::~psymtab_discarder): Update.
12986 (ALL_OBJFILE_PSYMTABS): Rewrite.
12987 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
12988 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
12989 Remove fields.
12990 <partial_symtabs>: New field.
12991 (class objfile_psymtabs): Move from psymtab.h. Update.
12992 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
12993 psymbol_cache.
12994 (objfile::~objfile): Don't destroy psymbol_cache.
12995 * mdebugread.c (parse_partial_symbols): Update.
12996 * dwarf2read.c (create_addrmap_from_index)
12997 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12998 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
12999 (add_partial_subprogram, dwarf2_ranges_read): Update.
13000 * dwarf-index-write.c (write_address_map)
13001 (write_one_signatured_type, recursively_write_psymbols)
13002 (class debug_names, class debug_names, write_psymtabs_to_index):
13003 Update.
13004
1d94a5a3
TT
130052019-01-10 Tom Tromey <tom@tromey.com>
13006
13007 * symtab.h (SYMBOL_SET_NAMES): Update.
13008 (symbol_set_names): Update.
13009 (MSYMBOL_SET_NAMES): Update.
13010 * symtab.c (symbol_set_names): Change argument to be an
13011 objfile_per_bfd_storage.
13012 * psymtab.c (add_psymbol_to_bcache): Update.
13013 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
13014
0f14768a
TT
130152019-01-10 Tom Tromey <tom@tromey.com>
13016
13017 * symtab.c (create_demangled_names_hash): Change argument to be an
13018 objfile_per_bfd_storage.
13019 (symbol_set_names): Update.
13020
6eee24ce
TT
130212019-01-10 Tom Tromey <tom@tromey.com>
13022
13023 * xcoffread.c (xcoff_initial_scan): Unconditionally call
13024 init_psymbol_list.
13025 * psymtab.c (init_psymbol_list): Do nothing if already called.
13026 * psympriv.h (init_psymbol_list): Add comment.
13027 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
13028 init_psymbol_list.
13029 * dbxread.c (dbx_symfile_read): Unconditionally call
13030 init_psymbol_list.
13031
75aedd27
TT
130322019-01-10 Tom Tromey <tom@tromey.com>
13033
13034 * xcoffread.c (scan_xcoff_symtab): Update.
13035 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
13036 "where".
13037 * mdebugread.c (parse_partial_symbols)
13038 (handle_psymbol_enumerators): Update.
13039 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
13040 * dbxread.c (read_dbx_symtab): Update.
13041 * psympriv.h (psymbol_placement): New enum.
13042 (add_psymbol_to_list): Update.
13043
939652a5
TT
130442019-01-10 Tom Tromey <tom@tromey.com>
13045
13046 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
13047 static_psymbols parameters.
13048 (scan_xcoff_symtab): Update.
13049 * psymtab.c (start_psymtab_common): Remove global_psymbols and
13050 static_psymbols parameters.
13051 * psympriv.h (start_psymtab_common): Update.
13052 * mdebugread.c (parse_partial_symbols): Update.
13053 * dwarf2read.c (create_partial_symtab): Update.
13054 * dbxread.c (read_dbx_symtab): Update.
13055 (start_psymtab): Remove global_psymbols and static_psymbols
13056 parameters.
13057
baa62830
TT
130582019-01-10 Tom Tromey <tom@tromey.com>
13059
13060 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
13061 * psymtab.c (allocate_psymtab): Add comment.
13062 * psympriv.h (allocate_psymtab): Add comment.
13063 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
13064 initializations.
13065 * dbxread.c (dbx_end_psymtab): Remove some initializations.
13066
0e8f53ba
TT
130672019-01-10 Tom Tromey <tom@tromey.com>
13068
13069 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13070 Don't declare.
13071 * mipsread.c: Include mdebugread.h.
13072 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13073 Declare.
13074 * elfread.c: Include mdebugread.h.
13075
b22a7c6a
TT
130762019-01-09 Tom Tromey <tom@tromey.com>
13077
13078 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
13079 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
13080 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
13081 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
13082 (psym_lookup_symbol, psym_find_last_source_symtab)
13083 (psym_forget_cached_source_info, psym_print_stats)
13084 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
13085 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
13086 (psym_map_matching_symbols, psym_expand_symtabs_matching)
13087 (psym_find_compunit_symtab_by_address)
13088 (maintenance_print_psymbols, maintenance_info_psymtabs)
13089 (maintenance_check_psymtabs): Use ranged for.
13090 * psymtab.h (class objfile_psymtabs): New.
13091 (require_partial_symbols): Return objfile_psymtabs.
13092 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
13093
3b9d3ac2
TT
130942019-01-09 Tom Tromey <tom@tromey.com>
13095
13096 * symfile.c (overlay_invalidate_all, find_pc_overlay)
13097 (find_pc_mapped_section, list_overlays_command)
13098 (map_overlay_command, unmap_overlay_command)
13099 (simple_overlay_update): Use all_objfiles.
13100 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
13101 * printcmd.c (info_symbol_command): Use all_objfiles.
13102 * objfiles.h (ALL_OBJSECTIONS): Remove.
13103 * maint.c (maintenance_translate_address): Use all_objfiles.
13104 * gcore.c (gcore_create_callback): Use all_objfiles.
13105 (objfile_find_memory_regions): Likewise.
13106
8b31193a
TT
131072019-01-09 Tom Tromey <tom@tromey.com>
13108
13109 * symtab.c (find_line_symtab, info_sources_command)
13110 (make_source_files_completion_list): Use objfile_compunits.
13111 * source.c (select_source_symtab): Use objfile_compunits.
13112 * objfiles.h (struct objfile): Update comment.
13113 (ALL_OBJFILES): Remove.
13114 (ALL_FILETABS): Remove.
13115 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
13116 objfile_compunits.
13117
d5da8b3c
TT
131182019-01-09 Tom Tromey <tom@tromey.com>
13119
13120 * symmisc.c (print_objfile_statistics, dump_objfile)
13121 (maintenance_print_symbols): Use compunit_filetabs.
13122 * source.c (forget_cached_source_info_for_objfile): Use
13123 compunit_filetabs.
13124 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
13125 (ALL_FILETABS): Use compunit_filetabs.
13126 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
13127 * coffread.c (coff_symtab_read): Use compunit_filetabs.
13128
5accd1a0
TT
131292019-01-09 Tom Tromey <tom@tromey.com>
13130
13131 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
13132 (compunit_filetabs): New.
13133 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
13134 compunit_filetabs.
13135 (info_sources_command, make_source_files_completion_list): Remove
13136 declaration.
13137 * symmisc.c (print_objfile_statistics, dump_objfile)
13138 (maintenance_print_symbols): Remove declaration.
13139 (maintenance_info_symtabs): Use compunit_filetabs.
13140 (maintenance_info_line_tables): Likewise.
13141 * source.c (select_source_symtab): Change local variable name.
13142 (forget_cached_source_info_for_objfile): Remove declaration.
13143 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
13144 * objfiles.c (objfile_relocate1): Remove declaration.
13145 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13146 declaration.
13147 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
13148 * coffread.c (coff_symtab_read): Remove declaration.
13149 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
13150 compunit_filetabs.
13151
d8aeb77f
TT
131522019-01-09 Tom Tromey <tom@tromey.com>
13153
13154 * symtab.c (lookup_objfile_from_block)
13155 (find_pc_sect_compunit_symtab, search_symbols)
13156 (default_collect_symbol_completion_matches_break_on): Use
13157 objfile_compunits.
13158 * objfiles.h (ALL_COMPUNITS): Remove.
13159 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
13160 * cp-support.c (add_symbol_overload_list_qualified): Use
13161 objfile_compunits.
13162 * ada-lang.c (ada_collect_symbol_completion_matches)
13163 (ada_add_global_exceptions): Use objfile_compunits.
13164
592553c4
TT
131652019-01-09 Tom Tromey <tom@tromey.com>
13166
13167 * source.c (select_source_symtab)
13168 (forget_cached_source_info_for_objfile): Remove declaration.
13169 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13170 declaration.
13171 * maint.c (count_symtabs_and_blocks): Remove declaration.
13172 * cp-support.c (add_symbol_overload_list_qualified): Remove
13173 declaration.
13174 * coffread.c (coff_symtab_read): Remove declaration.
13175 * symtab.c (lookup_symbol_in_objfile_symtabs)
13176 (basic_lookup_transparent_type_1): Use objfile_compunits.
13177 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
13178 (info_sources_command, search_symbols)
13179 (default_collect_symbol_completion_matches_break_on)
13180 (make_source_files_completion_list): Remove declaration.
13181 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
13182 (ada_collect_symbol_completion_matches)
13183 (ada_add_global_exceptions): Remove declaration.
13184 * linespec.c (iterate_over_all_matching_symtabs): Use
13185 objfile_compunits.
13186 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
13187 (class objfile_compunits): New.
13188 (ALL_COMPUNITS): Use objfile_compunits.
13189 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
13190 (maintenance_check_symtabs, maintenance_info_line_tables): Use
13191 objfile_compunits.
13192 * objfiles.c (objfile_relocate1): Use objfile_compunits.
13193
5325b9bf
TT
131942019-01-09 Tom Tromey <tom@tromey.com>
13195
13196 * symtab.c (search_symbols)
13197 (default_collect_symbol_completion_matches_break_on): Use
13198 objfile_msymbols.
13199 * ada-lang.c (ada_lookup_simple_minsym)
13200 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
13201 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
13202 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
13203 objfile_msymbols.
13204 * coffread.c (coff_symfile_read): Use objfile_msymbols.
13205 * symmisc.c (dump_msymbols): Use objfile_msymbols.
13206 * objc-lang.c (find_methods): Use objfile_msymbols.
13207 (info_selectors_command, info_classes_command): Likewise.
13208 * stabsread.c (scan_file_globals): Use objfile_msymbols.
13209 * objfiles.h (class objfile_msymbols): New.
13210 (ALL_OBJFILE_MSYMBOLS): Remove.
13211 (ALL_MSYMBOLS): Remove.
13212
cac85af2
TT
132132019-01-09 Tom Tromey <tom@tromey.com>
13214
13215 * common/next-iterator.h (next_adapter): Add Iterator template
13216 parameter.
13217 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
13218 (class all_objfiles_safe): New.
13219 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
13220 * objfiles.c (put_objfile_before): Update comment.
13221 (add_separate_debug_objfile): Likewise.
13222 (free_all_objfiles): Use all_objfiles_safe.
13223 (objfile_purge_solibs): Likewise.
13224
aed57c53
TT
132252019-01-09 Tom Tromey <tom@tromey.com>
13226
13227 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13228 (expand_symtab_containing_pc, lookup_static_symbol)
13229 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
13230 (find_symbol_at_address, find_line_symtab, find_main_name): Use
13231 all_objfiles.
13232 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
13233 * breakpoint.c (create_overlay_event_breakpoint)
13234 (create_longjmp_master_breakpoint)
13235 (create_std_terminate_master_breakpoint)
13236 (create_exception_master_breakpoint): Use all_objfiles.
13237 * linux-thread-db.c (try_thread_db_load_from_pdir)
13238 (has_libpthread): Use all_objfiles.
13239 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
13240 * linespec.c (iterate_over_all_matching_symtabs)
13241 (search_minsyms_for_name): Use all_objfiles.
13242 * maint.c (maintenance_info_sections): Use all_objfiles.
13243 * main.c (captured_main_1): Use all_objfiles.
13244 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
13245 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
13246 * guile/scm-pretty-print.c
13247 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
13248 * solib-spu.c (append_ocl_sos): Use all_objfiles.
13249 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
13250 (maintenance_print_msymbols): Use all_objfiles.
13251 * source.c (select_source_symtab): Use all_objfiles.
13252 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
13253 * symfile.c (remove_symbol_file_command)
13254 (expand_symtabs_matching, map_symbol_filenames): Use
13255 all_objfiles.
13256 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
13257 all_objfiles.
13258 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
13259 * objc-lang.c (find_methods): Use all_objfiles.
13260 * objfiles.c (have_partial_symbols, have_full_symbols)
13261 (have_minimal_symbols, qsort_cmp)
13262 (default_iterate_over_objfiles_in_search_order): Use
13263 all_objfiles.
13264 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
13265 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
13266 (maintenance_check_psymtabs): Use all_objfiles.
13267 (ALL_PSYMTABS): Remove.
13268 * compile/compile-object-run.c (do_module_cleanup): Use
13269 all_objfiles.
13270 * blockframe.c (find_pc_partial_function): Use all_objfiles.
13271 * cp-support.c (add_symbol_overload_list_qualified): Use
13272 all_objfiles.
13273 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13274 Use all_objfiles.
13275 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
13276 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
13277 all_objfiles.
13278 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13279 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
13280 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13281 Uses all_objfiles.
13282 * solib.c (solib_read_symbols): Use all_objfiles
13283
99d89cde
TT
132842019-01-09 Tom Tromey <tom@tromey.com>
13285
13286 * probe.c (parse_probes_in_pspace): Use all_objfiles.
13287 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
13288 all_objfiles.
13289 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
13290 * symmisc.c (print_symbol_bcache_statistics)
13291 (print_objfile_statistics, maintenance_print_objfiles)
13292 (maintenance_info_symtabs, maintenance_check_symtabs)
13293 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
13294 all_objfiles.
13295 * source.c (forget_cached_source_info): Use all_objfiles.
13296 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
13297 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13298 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
13299 * objfiles.c (update_section_map): Use all_objfiles.
13300 (shared_objfile_contains_address_p): Likewise.
13301 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
13302 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
13303
21708325
TT
133042019-01-09 Tom Tromey <tom@tromey.com>
13305
13306 * common/next-iterator.h: New file.
13307 * objfiles.h (class all_objfiles): New.
13308 (struct objfile_iterator): New.
13309
669e09f6
PW
133102019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13311
13312 * NEWS: Move the description of the changed "frame", "select-frame",
13313 and "info frame" commands to the Changed commands section.
13314
041be526
SM
133152019-01-09 Simon Marchi <simon.marchi@ericsson.com>
13316
13317 * gdbtypes.c (check_stub_method_group): Remove handling of old
13318 mangling schemes.
13319 * linespec.c (find_methods): Likewise.
13320 * stabsread.c (read_member_functions): Likewise.
13321 * valops.c (search_struct_method): Likewise.
13322 (value_struct_elt_for_reference): Likewise.
13323 * NEWS: Mention this change.
13324
0e2a2133
AB
133252019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13326
13327 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
13328 print_source_lines.
13329 * source.c (print_source_lines_base): Update line number check.
13330 (print_source_lines): New function.
13331 (source_lines_range::source_lines_range): New function.
13332 * source.h (class source_lines_range): New class.
13333 (print_source_lines): New declaration.
13334
1055a3b4
PW
133352019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13336
13337 * linespec.c (linespec_state_destructor): Free self->canonical_names.
13338
cfeadda5
TT
133392019-01-08 Tom Tromey <tom@tromey.com>
13340 Simon Marchi <simon.marchi@ericsson.com>
13341
13342 PR gdb/24060
13343 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
13344 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
13345 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13346 * f-exp.y (DOLLAR_VARIABLE): Likewise.
13347 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
13348 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13349
583068ca
AB
133502019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13351
13352 * source.c (select_source_symtab): Move header comment to
13353 declaration in source.h.
13354 (forget_cached_source_info_for_objfile): Likewise.
13355 (forget_cached_source_info): Likewise.
13356 (identify_source_line): Likewise.
13357 * source.h (identify_source_line): Move declaration from symtab.h
13358 and add comment from source.c
13359 (print_source_lines): Likewise.
13360 (forget_cached_source_info_for_objfile): Likewise.
13361 (forget_cached_source_info): Likewise.
13362 (select_source_symtab): Likewise.
13363 (enum print_source_lines_flag): Move definition from symtab.h.
13364 * symtab.h (identify_source_line): Move declaration to source.h.
13365 (print_source_lines): Likewise.
13366 (forget_cached_source_info_for_objfile): Likewise.
13367 (forget_cached_source_info): Likewise.
13368 (select_source_symtab): Likewise.
13369 (enum print_source_lines_flag): Move definition to source.h.
13370 * tui/tui-hooks.c: Add 'source.h' include.
13371
ec98a4ad
AB
133722019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13373
13374 * source.c (print_source_lines_base): Handle requests to print
13375 reverse line number sequences, and guard against empty lines
13376 string.
13377
62ea19c1
AB
133782019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13379
13380 * source.c (print_source_lines_base): Fix skip of '\r' if next
13381 character is '\n'.
13382
9d30e1fd
TT
133832019-01-06 Tom Tromey <tom@tromey.com>
13384
13385 * c-exp.y (struct c_parse_state) <macro_original_text,
13386 expansion_obstack>: New member.
13387 (macro_original_text, expansion_obstack): Remove globals.
13388 (scan_macro_expansion, scanning_macro_expansion)
13389 (finished_macro_expansion): Update.
13390 (scan_macro_cleanup): Remove.
13391 (yylex, c_parse): Update.
13392
c65bac38
TT
133932019-01-06 Tom Tromey <tom@tromey.com>
13394
13395 * c-exp.y (struct c_parse_state) <strings>: New member.
13396 (operator_stoken): Update.
13397
02e12e38
TT
133982019-01-06 Tom Tromey <tom@tromey.com>
13399
13400 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
13401 (union type_stack_elt) <typelist_val>: Now a pointer to
13402 std::vector.
13403 (type_stack_cleanup): Don't declare.
13404 (push_typelist): Update.
13405 * parse.c (pop_typelist): Return a std::vector.
13406 (push_typelist): Take a std::vector.
13407 (follow_types): Update. Do not free args.
13408 (type_stack_cleanup): Remove.
13409 * c-exp.y (struct c_parse_state): New.
13410 (cpstate): New global.
13411 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
13412 (nonempty_typelist): Update.
13413 (func_mod): Create a new vector.
13414 (c_parse): Create a c_parse_state.
13415 (check_parameter_typelist): Do not delete params.
13416 (function_method): Update. Do not delete type_list.
13417
f097f5ad
TT
134182019-01-06 Tom Tromey <tom@tromey.com>
13419
13420 PR gdb/28155:
13421 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
13422 check_typedef.
13423 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
13424 (print_return_value): Likewise.
13425
d2adf9f1
TT
134262019-01-05 Tom Tromey <tom@tromey.com>
13427
13428 * contrib/cleanup_check.py: Remove.
13429 * contrib/gcc-with-excheck: Remove.
13430 * contrib/exsummary.py: Remove.
13431 * contrib/excheck.py: Remove.
13432
2eab46b1
JB
134332019-01-05 Joel Brobecker <brobecker@adacore.com>
13434
13435 * thread.c (delete_thread_1): Add gdb_assert that THR is not
13436 NULL. Initialize tpprev to NULL instead of assigning it
13437 to NULL on the next statement.
13438 * windows-nat.c (windows_delete_thread): Remove check for
13439 main_thread_id before printing thread exit notifications.
13440 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
13441 Remove thread ID check against main_thread_id.
13442 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
13443 windows_delete_thread.
13444 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
13445
48c5e7e2
TT
134462019-01-04 Tom Tromey <tom@tromey.com>
13447
13448 * compile/compile.c (_initialize_compile): Use upper case for
13449 metasyntactic variables.
13450 * symmisc.c (_initialize_symmisc): Use upper case for
13451 metasyntactic variables.
13452 * psymtab.c (_initialize_psymtab): Use upper case for
13453 metasyntactic variables.
13454 * demangle.c (demangle_command): Use upper case for metasyntactic
13455 variables.
13456 (_initialize_demangler): Likewise.
13457 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
13458 variables.
13459
986041cd
TT
134602019-01-03 Tom Tromey <tom@tromey.com>
13461
13462 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
13463
7c711119
TT
134642019-01-03 Tom Tromey <tom@tromey.com>
13465
13466 * python/py-symtab.c (salpy_str): Update.
13467 (struct salpy_sal_object) <symtab>: Now a PyObject.
13468 (salpy_dealloc): Update.
13469 (del_objfile_sal): Use gdbpy_ref.
13470
1b20edf0
TT
134712019-01-03 Tom Tromey <tom@tromey.com>
13472
13473 * python/py-type.c (convert_field): Use new_reference. Return
13474 gdbpy_ref.
13475 (make_fielditem): Return gdbpy_ref.
13476 (typy_fields): Update.
13477 (typy_getitem): Update.
13478 (field_name): Return gdbpy_ref. Use new_reference.
13479 (typy_iterator_iternext): Update.
13480
ea41325b
TT
134812019-01-03 Tom Tromey <tom@tromey.com>
13482
13483 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
13484
2a3c71d6
TT
134852019-01-03 Tom Tromey <tom@tromey.com>
13486
13487 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
13488 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
13489 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
13490 (pspy_set_frame_filters, pspy_set_frame_unwinders)
13491 (pspy_set_type_printers): Likewise.
13492 * python/py-function.c (fnpy_init): Use gdbpy_ref.
13493 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
13494 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
13495 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
13496 (objfpy_set_type_printers): Likewise.
13497
5c329e6a
TT
134982019-01-03 Tom Tromey <tom@tromey.com>
13499
13500 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
13501 (gdbpy_print_stack): Use gdbpy_err_fetch.
13502 * python/python-internal.h (class gdbpy_err_fetch): New class.
13503 (class gdbpy_enter) <m_error_type, m_error_value,
13504 m_error_traceback>: Remove.
13505 <m_error>: New member.
13506 (gdbpy_exception_to_string): Don't declare.
13507 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
13508 * python/py-value.c (convert_value_from_python): Use
13509 gdbpy_err_fetch.
13510 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
13511 gdbpy_exception_to_string.
13512 (gdbpy_handle_exception): Use gdbpy_err_fetch.
13513 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
13514 gdbpy_err_fetch.
13515
169bb27b
AB
135162019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13517
13518 * linux-nat.c (delete_lwp_cleanup): Delete.
13519 (struct lwp_deleter): New struct.
13520 (lwp_info_up): New typedef.
13521 (linux_nat_target::follow_fork): Delete cleanup, and make use of
13522 lwp_info_up.
13523
a07c8880
AB
135242019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13525
13526 * linux-fork.c (class scoped_switch_fork_info): New class.
13527 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
13528
26089c49
AB
135292019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13530
13531 * valops.c (find_overload_match): Remove use of null_cleanup, and
13532 calls to do_cleanups.
13533
06d3e5b0
AB
135342019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13535
13536 * compile/compile-cplus-types.c
13537 (compile_cplus_instance::decl_name): Handle changes to
13538 cp_func_name.
13539 * cp-support.c (cp_func_name): Update header comment, update
13540 return type.
13541 * cp-support.h (cp_func_name): Update return type in declaration.
13542 * valops.c (find_overload_match): Move temp_func local to top
13543 level of function and change its type. Use temp_func to hold and
13544 delete temporary string obtained from cp_func_name.
13545
66644cd3
AB
135462019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13547
13548 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
13549 gdb::char_vector, remove cleanup, and update uses of `msg`.
13550
592d8c0a
JW
135512019-01-03 Jim Wilson <jimw@sifive.com>
13552
13553 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
13554
c55d06ec
TT
135552019-01-02 Tom Tromey <tom@tromey.com>
13556
13557 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
13558 (tdesc_parse_xml): Remove cleanups.
13559 * target-descriptions.h (make_cleanup_free_target_description):
13560 Don't declare.
13561 (target_desc_deleter): New struct.
13562 (target_desc_up): New typedef.
13563 * target-descriptions.c (target_desc_deleter::operator()): Rename
13564 from free_target_description.
13565 (make_cleanup_free_target_description): Remove.
13566
3a6ae42d
TT
135672019-01-02 Tom Tromey <tom@tromey.com>
13568
13569 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
13570 constructor, destructor.
13571 (linespec_parser): Remove typedef.
13572 (~linespec_parser): Rename from linespec_parser_delete.
13573 (linespec_lex_to_end, linespec_complete_label)
13574 (linespec_complete): Update.
13575 (decode_line_full): Remove cleanups.
13576 (decode_line_1): Update.
13577
61fd3e73
TT
135782019-01-02 Tom Tromey <tom@tromey.com>
13579
13580 * python/python-internal.h (inferior_to_inferior_object): Change
13581 return type.
13582 * python/py-exitedevent.c (create_exited_event_object): Update.
13583 * python/py-inferior.c (inferior_to_inferior_object): Return
13584 gdbpy_ref.
13585 (python_new_inferior, python_inferior_deleted)
13586 (thread_to_thread_object, delete_thread_object)
13587 (build_inferior_list, gdbpy_selected_inferior): Update.
13588 * python/py-infthread.c (create_thread_object): Update. Also fail
13589 if inferior_to_inferior_object fails.
13590
d20172fc
SM
135912019-01-02 Simon Marchi <simon.marchi@ericsson.com>
13592
13593 * inferior.h (class inferior) <displaced_step_state>: New field.
13594 * infrun.h (struct displaced_step_state): Move here from
13595 infrun.c. Initialize fields, add constructor.
13596 <inf>: Remove field.
13597 <reset>: New method.
13598 * infrun.c (struct displaced_step_inferior_state): Move to
13599 infrun.h.
13600 (displaced_step_inferior_states): Remove.
13601 (get_displaced_stepping_state): Adust.
13602 (displaced_step_in_progress_any_inferior): Adjust.
13603 (displaced_step_in_progress_thread): Adjust.
13604 (displaced_step_in_progress): Adjust.
13605 (add_displaced_stepping_state): Remove.
13606 (get_displaced_step_closure_by_addr): Adjust.
13607 (remove_displaced_stepping_state): Remove.
13608 (infrun_inferior_exit): Call displaced_step_state.reset.
13609 (use_displaced_stepping): Don't check for NULL.
13610 (displaced_step_prepare_throw): Call
13611 get_displaced_stepping_state.
13612 (displaced_step_fixup): Don't check for NULL.
13613 (prepare_for_detach): Don't check for NULL.
13614
e3319240
PW
136152019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13616
13617 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
13618 in case of call that did not complete.
13619
5d36dfb9
AU
136202019-01-02 Andrey Utkin <autkin@undo.io>
13621
13622 * symfile.c (find_separate_debug_file): Fix search of debug files for
13623 remote debuggee.
13624
8833fbf0
TT
136252019-01-02 Tom Tromey <tom@tromey.com>
13626
13627 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
13628 indentation.
13629 * python/py-frame.c (frapy_older): Remove cast.
13630 (frapy_newer): Likewise.
13631 * python/py-breakpoint.c (local_setattro): Remove cast.
13632 * python/py-arch.c (archpy_name): Remove local variable.
13633 * python/py-type.c (gdbpy_lookup_type): Remove cast.
13634
4ada3dfd
JB
136352019-01-02 Joel Brobecker <brobecker@adacore.com>
13636
13637 * unittests/basic_string_view/element_access/char/empty.cc:
13638 Fix year range in copyright header.
13639
113b7b81
AB
136402019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
13641
13642 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
13643 Delete.
13644 <operator==>: Update with for removed field.
13645 <hash>: Likewise.
13646 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
13647 <isa_features>: ...this.
13648 <abi_features>: New field.
13649 (riscv_isa_flen): Update comment.
13650 (riscv_abi_xlen): New declaration.
13651 (riscv_abi_flen): New declaration.
13652 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
13653 isa_features.
13654 (riscv_abi_xlen): New function.
13655 (riscv_isa_flen): Update to get answer from isa_features.
13656 (riscv_abi_flen): New function.
13657 (riscv_has_fp_abi): Update to get answer from abi_features.
13658 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
13659 xlen and flen.
13660 (riscv_call_info) <xlen, flen>: Update comment.
13661 (riscv_call_arg_struct): Remove invalid assertions
13662 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
13663 is removed.
13664 (riscv_gdbarch_init): Gather isa features and abi features
13665 separately, ensure both match on the gdbarch when reusing an old
13666 gdbarch. Relax an error check to allow 32-bit abi float to run on
13667 a target with 64-bit float hardware.
13668
b18ca514
PW
136692019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13670
13671 * source.c (search_command_helper): Stop reverse search
13672 when line 1 has been searched.
13673
ec70d8db
PW
136742019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13675
13676 * record-full.c (record_full_base_target::close): Rewrite
13677 record_full_core_buf_list free logic.
13678
5b38f9c1
PW
136792019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13680
13681 * break-catch-syscall.c (print_one_catch_syscall): xfree
13682 the last text.
13683
66d91b39
JB
136842019-01-01 Joel Brobecker <brobecker@adacore.com>
13685
13686 * top.c (print_gdb_version): Update Copyright year in version
13687 message.
13688
42a4f53d
JB
136892019-01-01 Joel Brobecker <brobecker@adacore.com>
13690
13691 Update copyright year range in all GDB files.
13692
7e955d83 136932019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 13694
5bbd631d 13695 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 13696
5bbd631d 13697For older changes see ChangeLog-2018.
c906108c
SS
13698\f
13699Local Variables:
13700mode: change-log
13701left-margin: 8
13702fill-column: 74
13703version-control: never
57da7796 13704coding: utf-8
c906108c 13705End:
5bbd631d 13706
This page took 3.756795 seconds and 4 git commands to generate.