Remove declaration from tui-wingeneral.h
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a7798e7f
TT
12019-10-09 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
4
5c45899e
TT
52019-10-09 Tom Tromey <tom@tromey.com>
6
7 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
8 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
9
6d7fd9aa
TT
102019-10-09 Tom Tromey <tom@tromey.com>
11
12 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
13 window height directly.
14 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
15 declare.
16 * tui/tui-layout.c (tui_default_win_height): Remove.
17 (tui_default_win_viewport_height): Remove.
18
d2dd1084
TT
192019-10-09 Tom Tromey <tom@tromey.com>
20
21 * tui/tui.h: Remove comments.
22
cff32449
TV
232019-10-09 Tom de Vries <tdevries@suse.de>
24
25 * python/lib/gdb/printer/bound_registers.py: Use
26 '^builtin_type_bound128' as regexp argument for
27 add_builtin_pretty_printer.
28
6a25e8a2
CB
292019-10-09 Christian Biesinger <cbiesinger@google.com>
30
31 * guile/guile.c (guile_extension_script_ops): Remove forward
32 declaration and mark as static.
33 (guile_script_ops): Likewise.
34 (extension_language_guile): Move further down in the file so
35 it can reference the definitions for guile_{extension_,}script_ops.
36
6d9d6da4
AA
372019-10-09 Andreas Arnez <arnez@linux.ibm.com>
38
39 * s390-tdep.c (390_process_record): Handle new arch13 instructions
40 except SORTL, DFLTCC, and KDSA.
41
3abea05d
TT
422019-10-08 Tom Tromey <tromey@adacore.com>
43
44 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
45 (struct safe_symbol_file_add_args): Remove.
46
dde996e2
TT
472019-10-08 Tom Tromey <tromey@adacore.com>
48
49 * windows-nat.c: Don't include buildsym-legacy.h.
50
cd6fdaa1
TT
512019-10-08 Tom Tromey <tromey@adacore.com>
52
53 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
54
79bb1944
CB
552019-10-08 Christian Biesinger <cbiesinger@google.com>
56
57 * gdbtypes.c (overload_debug): Move comment to header.
58 * gdbtypes.h (overload_debug): Declare.
59 * valops.c: Remove declaration of overload_debug, instead
60 include gdbtypes.h.
61
34916edc
CB
622019-10-08 Christian Biesinger <cbiesinger@google.com>
63
64 * language.c (show_language_command): Pass lang_frame_mismatch_warn
65 through _().
66 (lang_frame_mismatch_warn): Make const, mark with N_(), and
67 move comment...
68 * language.h (lang_frame_mismatch_warn): ... here. Also add
69 declaration.
70 * top.c (lang_frame_mismatch_warn): Remove declaration.
71 (check_frame_language_change): Pass lang_frame_mismatch_warn
72 through _().
73
bad5c026
CB
742019-10-07 Christian Biesinger <cbiesinger@google.com>
75
76 * c-lang.h (vtbl_ptr_name): Declare.
77 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
78 it from the header.
79 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
80
51f1fdc3
CB
812019-10-07 Christian Biesinger <cbiesinger@google.com>
82
83 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
84 gdb_static_assert.
85
30d1f018
WP
862019-10-07 Weimin Pan <weimin.pan@oracle.com>
87
606813d5
WP
88 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
89 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
90 * ctfread.c: New file.
91 * ctfread.h: New file.
92 * elfread.c: Include ctfread.h.
93 (struct elfinfo text_p): New member ctfsect.
94 (elf_locate_sections): Mark CTF section.
95 (elf_symfile_read): Call elfctf_build_psymtabs.
96 * Makefile.in (LIBCTF): Add.
97 (CLIBS): Use it.
98 (CDEPS): Likewise.
99 (DIST): Add ctfread.c.
606813d5
WP
100
1012019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
102
103 * ctfread.c (struct nextfield): Renamed to ...
104 (struct ctf_nextfield): ... this.
105 (struct field_info): Renamed to ...
106 (strut ctf_field_info): ... this.
107 (attach_fields_to_type): Update for renamed structures.
108 (ctf_add_member_cb): Likewise.
109 (ctf_add_enum_member_cb): Likewise.
110 (process_struct_members): Likewise.
111 (process_enum_type): Likewise.
30d1f018 112
518fe38c
WP
1132019-10-07 Weimin Pan <weimin.pan@oracle.com>
114
115 * tracectf.h: Rename, was ctf.h.
116 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
117 * tracefile.c: Likewise.
118 * tracepoint.c: Remove unused include ctf.h.
119 * mi/mi-main.c: Likewise.
120 * Makefile.in Replace ctf.c with tracectf.c.
121
225f296a
JB
1222019-10-06 Joel Brobecker <brobecker@adacore.com>
123
124 * version.in: Change version number to "9.0.50.DATE-git".
125
77c2dba3
TT
1262019-10-03 Tom Tromey <tom@tromey.com>
127
128 PR rust/24976:
129 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
130
179aed7f
AB
1312019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
132
133 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
134 cp_search_name_hash.
135 * NEWS: Add entry about nested function support.
136
0a4b0913
AB
1372019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
138 Andrew Burgess <andrew.burgess@embecosm.com>
139
140 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
141 for nested static variables when searchin VAR_DOMAIN.
142 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
143 global scope, update comment.
144 (add_partial_subprogram): Call add_partial_subprogram recursively
145 for nested subroutines when processinng Fortran.
146 (load_partial_dies): Process the child entities of a subprogram
147 when processing Fortran.
148 (partial_die_parent_scope): Handle building scope
149 for Fortran nested functions.
150 (process_die): Record that nested functions have a scope.
151 (new_symbol): Always record Fortran subprograms on the global
152 symbol list.
153 (determine_prefix): How to build the prefix for Fortran
154 subprograms.
155
d8c06f22
AB
1562019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
157
158 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
159 have just sent the thread a SIGSTOP and are waiting for it to
160 arrive.
161
a8b3b8e9
AB
1622019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
163
164 * btrace.c (btrace_add_pc): Remove whitespace before the template
165 parameter in 'std::vector <...>'.
166 (parse_xml_btrace_block): Likewise.
167 (btrace_maint_decode_pt): Likewise.
168 (btrace_maint_update_packets): Likewise.
169 (btrace_maint_print_packets): Likewise.
170 * btrace.h (struct btrace_maint_info): Likewise.
171 * dwarf2read.c (struct type_unit_group): Likewise.
172 (build_type_psymtabs_reader): Likewise.
173 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
174 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
175 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
176
4d825eab
TV
1772019-10-03 Tom de Vries <tdevries@suse.de>
178
179 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
180 the first line of the help text for set/show style metadata.
181
80fd2826
TT
1822019-10-02 Tom Tromey <tromey@adacore.com>
183
184 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
185 * gdbsupport/common-inferior.c: New file.
186 * infcmd.c (startup_with_shell): Don't define.
187 * nat/fork-inferior.h (startup_with_shell): Don't declare.
188 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
189 * inferior.h (startup_with_shell): Don't declare.
190
70054538
CB
1912019-10-02 Christian Biesinger <cbiesinger@google.com>
192
193 * gdbsupport/gdb_assert.h: Include errors.h.
194 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
195
37f6a7f4
TT
1962019-10-02 Tom Tromey <tromey@adacore.com>
197
198 * NEWS: Add $_ada_exception entry.
199 * ada-lang.c (struct ada_catchpoint): Add constructor.
200 <m_kind>: New member.
201 (allocate_location_exception, re_set_exception): Remove
202 "ex" parameter.
203 (should_stop_exception): Compute $_ada_exception.
204 (check_status_exception, print_it_exception)
205 (print_one_exception, print_mention_exception): Remove
206 "ex" parameter.
207 (allocate_location_catch_exception, re_set_catch_exception)
208 (check_status_exception, print_it_catch_exception)
209 (print_one_catch_exception, print_mention_catch_exception)
210 (print_recreate_catch_exception)
211 (allocate_location_catch_exception_unhandled)
212 (re_set_catch_exception_unhandled)
213 (check_status_exception, print_it_catch_exception_unhandled)
214 (print_one_catch_exception_unhandled)
215 (print_mention_catch_exception_unhandled)
216 (print_recreate_catch_exception_unhandled)
217 (allocate_location_catch_assert, re_set_catch_assert)
218 (check_status_assert, print_it_catch_assert)
219 (print_one_catch_assert, print_mention_catch_assert)
220 (print_recreate_catch_assert)
221 (allocate_location_catch_handlers, re_set_catch_handlers)
222 (check_status_handlers, print_it_catch_handlers)
223 (print_one_catch_handlers, print_mention_catch_handlers)
224 (print_recreate_catch_handlers): Remove.
225 (create_ada_exception_catchpoint): Update.
226 (initialize_ada_catchpoint_ops): Update.
227
fccf9de1
TT
2282019-10-02 Tom Tromey <tromey@adacore.com>
229
230 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
231 (create_excep_cond_exprs): Simplify exception string computation.
232 (ada_exception_catchpoint_cond_string): Likewise.
233
4b610737
TT
2342019-10-02 Tom Tromey <tromey@adacore.com>
235
236 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
237 * ada-lang.c (lesseq_defined_than): Handle
238 LOC_STATIC.
239 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
240 parameter.
241 (dwarf2_has_info): Likewise.
242 (new_symbol): Set maybe_copied on symbol when
243 appropriate.
244 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
245 parameter.
246 <can_copy>: New member.
247 * elfread.c (record_minimal_symbol): Set maybe_copied
248 on symbol when appropriate.
249 (elf_symfile_read): Update call to dwarf2_has_info.
250 * minsyms.c (lookup_minimal_symbol_linkage): New
251 function.
252 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
253 * symtab.c (get_symbol_address, get_msymbol_address):
254 New functions.
255 * symtab.h (get_symbol_address, get_msymbol_address):
256 Declare.
257 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
258 maybe_copied.
259 (struct symbol, struct minimal_symbol) <maybe_copied>:
260 New member.
261
1dd58850
TT
2622019-10-02 Tom Tromey <tromey@adacore.com>
263
264 * source.c (struct current_source_location): New.
265 (current_source_key): New global.
266 (current_source_symtab, current_source_line)
267 (current_source_pspace): Remove.
268 (get_source_location): New function.
269 (get_current_source_symtab_and_line)
270 (set_default_source_symtab_and_line)
271 (set_current_source_symtab_and_line)
272 (clear_current_source_symtab_and_line, select_source_symtab)
273 (info_source_command, print_source_lines_base)
274 (info_line_command, search_command_helper, _initialize_source):
275 Update.
276
5c281dbb
TT
2772019-10-02 Tom Tromey <tromey@adacore.com>
278
279 * source.c (select_source_symtab): Don't call
280 decode_line_with_current_source.
281
d3d32391
AB
2822019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
283
284 * symtab.c (lookup_global_symbol): Search global block.
285
38583298
TT
2862019-10-02 Tom Tromey <tromey@adacore.com>
287
288 * coffread.c (process_coff_symbol): Update.
289 * dwarf2read.c (var_decode_location, new_symbol): Update.
290 * mdebugread.c (parse_symbol): Update.
291 * objfiles.c (relocate_one_symbol): Update.
292 * stabsread.c (define_symbol, fix_common_block)
293 (scan_file_globals): Update.
294 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
295 (SET_SYMBOL_VALUE_ADDRESS): New macro.
296 * xcoffread.c (process_xcoff_symbol): Update.
297
9344c18f
AA
2982019-10-02 Andreas Arnez <arnez@linux.ibm.com>
299
300 * MAINTAINERS: Update my email address.
301
df07e2c7
AB
3022019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
303
304 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
305 std::vector.
306 (build_type_psymtabs_reader): Update for std::vector.
307 (build_type_psymtab_dependencies): Likewise.
308 * dwarf2read.h: Remove use of DEF_VEC_P.
309 (typedef sig_type_ptr): Delete.
310
554ac434
AB
3112019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
312
313 * btrace.c (btrace_maint_clear): Update to handle change from VEC
314 to std::vector.
315 (btrace_maint_decode_pt): Likewise, and move allocation of the
316 vector outside of the loop.
317 (btrace_maint_update_packets): Update to handle change from VEC to
318 std::vector.
319 (btrace_maint_print_packets): Likewise.
320 (maint_info_btrace_cmd): Likewise.
321 * btrace.h: Remove use of DEF_VEC_O.
322 (typedef btrace_pt_packet_s): Delete.
323 (struct btrace_maint_info) <packets>: Change fromm VEC to
324 std::vector.
325 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
326
46f29a9a
AB
3272019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
328
329 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
330 make accesses into the vector constant references.
331 (btrace_add_pc): Update for std::vector.
332 (btrace_stitch_bts): Likewise.
333 (parse_xml_btrace_block): Likewise.
334 (btrace_maint_update_packets): Likewise.
335 (btrace_maint_print_packets): Likewise.
336 (maint_info_btrace_cmd): Likewise.
337 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
338 std::vector.
339 (btrace_data::empty): Likewise.
340 (btrace_data_append): Likewise.
341 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
342 (typedef btrace_block_s): Delete.
343 (struct btrace_block): Add constructor.
344 (struct btrace_data_bts) <blocks>: Change to std::vector.
345 * nat/linux-btrace.c (perf_event_read_bts): Update for
346 std::vector.
347 (linux_read_bts): Likewise.
348
d770d56f
TT
3492019-10-01 Tom Tromey <tom@tromey.com>
350
351 * cli/cli-logging.c (show_logging_filename): Use styled_string.
352
9d636d67
TT
3532019-10-01 Tom Tromey <tom@tromey.com>
354
355 * stack.c (print_frame, info_frame_command_core): Use
356 styled_string.
357 * linux-thread-db.c (try_thread_db_load_1)
358 (try_thread_db_load_from_pdir_1): Use styled_string.
359 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
360 (auto_load_section_scripts, info_auto_load_local_gdbinit)
361 (maybe_print_unsupported_script_warning)
362 (maybe_print_script_not_found_warning): Use styled_string.
363 * ada-lang.c (user_select_syms): Use styled_string.
364
7f6aba03
TT
3652019-10-01 Tom Tromey <tom@tromey.com>
366
367 * p-lang.c (pascal_printstr): Use metadata style.
368 * value.c (show_convenience): Use metadata style.
369 * valprint.c (valprint_check_validity, val_print_optimized_out)
370 (val_print_not_saved, val_print_unavailable)
371 (val_print_invalid_address, generic_val_print, val_print)
372 (value_check_printable, val_print_array_elements): Use metadata
373 style.
374 * ui-out.h (class ui_out) <field_fmt>: New overload.
375 <do_field_fmt>: Add style parameter.
376 * ui-out.c (ui_out::field_fmt): New overload.
377 * typeprint.c (type_print_unknown_return_type)
378 (val_print_not_allocated, val_print_not_associated): Use metadata
379 style.
380 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
381 parameter.
382 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
383 * tracepoint.c (tvariables_info_1): Use metadata style.
384 * stack.c (print_frame_arg, print_frame_info, print_frame)
385 (info_frame_command_core): Use metadata style.
386 * skip.c (info_skip_command): Use metadata style.
387 * rust-lang.c (rust_print_enum): Use metadata style.
388 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
389 metadata style.
390 * python/py-framefilter.c (py_print_single_arg): Use metadata
391 style.
392 * printcmd.c (do_one_display, print_variable_and_value): Use
393 metadata style.
394 * p-valprint.c (pascal_val_print)
395 (pascal_object_print_value_fields): Use metadata style.
396 * p-typeprint.c (pascal_type_print_base): Use metadata style.
397 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
398 parameter.
399 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
400 * m2-valprint.c (m2_print_long_set): Use metadata style.
401 * m2-typeprint.c (m2_print_type): Use metadata style.
402 * infcmd.c (print_return_value_1): Use metadata style.
403 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
404 * f-valprint.c (info_common_command_for_block): Use metadata
405 style.
406 * f-typeprint.c (f_type_print_base): Use metadata style.
407 * expprint.c (print_subexp_standard): Use metadata style.
408 * cp-valprint.c (cp_print_value_fields): Use metadata style.
409 * cli/cli-style.h (class cli_style_option): Add constructor.
410 (metadata_style): Declare.
411 * cli/cli-style.c (metadata_style): New global.
412 (_initialize_cli_style): Register metadata style.
413 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
414 parameter.
415 * cli-out.c (cli_ui_out::do_field_fmt): Update.
416 * c-typeprint.c (c_type_print_base_struct_union)
417 (c_type_print_base_1): Use metadata style.
418 * breakpoint.c (watchpoint_value_print)
419 (print_one_breakpoint_location): Use metadata style.
420 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
421 style.
422 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
423 style.
424 * ada-valprint.c (val_print_packed_array_elements, printstr)
425 (print_field_values, ada_val_print_ref, ada_val_print): Use
426 metadata style.
427 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
428 style.
429 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
430 style.
431 * ada-lang.c (user_select_syms): Use metadata style.
432
14309bb6
TT
4332019-10-01 Tom Tromey <tom@tromey.com>
434
435 * cli/cli-cmds.c (pwd_command): Style output.
436
6a831f06
PA
4372019-10-01 Pedro Alves <palves@redhat.com>
438 Tom Tromey <tom@tromey.com>
439
440 * symtab.c (print_symbol_info): Use %ps.
441 (print_msymbol_info): Use %ps.
442 * symfile.c (symbol_file_add_with_addrs): Use %ps.
443 * printcmd.c (print_variable_and_value): Use %ps.
444 * macrocmd.c (show_pp_source_pos): Use %ps.
445 * infrun.c (print_exited_reason): Use ui_out::message.
446 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
447 (describe_other_breakpoints): Use ui_out::message and new
448 formats.
449 (say_where): Use new formats.
450 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
451 and new formats.
452
2a3c1174
PA
4532019-10-01 Pedro Alves <palves@redhat.com>
454 Tom Tromey <tom@tromey.com>
455
456 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
457 (test_gdb_formats): New function.
458 (run_tests): Call it.
459 (test_format_specifier): Update.
460 * utils.h (fputs_filtered): Update comment.
461 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
462 (fputs_styled_unfiltered): Declare.
463 * utils.c (fputs_styled_unfiltered): New function.
464 (vfprintf_maybe_filtered): Add gdbfmt parameter.
465 (vfprintf_filtered): Update.
466 (vfprintf_unfiltered, vprintf_filtered): Update.
467 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
468 * ui-out.h (enum ui_out_flag) <unfiltered_output,
469 disallow_ui_out_field>: New constants.
470 (enum class field_kind): New.
471 (struct base_field_s, struct signed_field_s): New.
472 (signed_field): New function.
473 (struct string_field_s): New.
474 (string_field): New function.
475 (struct styled_string_s): New.
476 (styled_string): New function.
477 (class ui_out) <message>: Add comment.
478 <vmessage, call_do_message>: New methods.
479 <do_message>: Add style parameter.
480 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
481 methods.
482 (ui_out::message): Rewrite.
483 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
484 parameter.
485 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
486 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
487 gdb_extensions parameter.
488 (class format_piece): Add parameter to constructor.
489 (n_int_args): New field.
490 * gdbsupport/format.c (format_pieces::format_pieces): Add
491 gdb_extensions parameter. Handle '*'.
492 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
493 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
494 vfprintf_styled_no_gdbfmt.
495 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
496 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
497 unfiltered output.
498 * ui-style.h (struct ui_file_style) <ptr>: New method.
499
0dfe5bfb
TT
5002019-10-01 Tom Tromey <tom@tromey.com>
501
502 * unittests/format_pieces-selftests.c: Update. Add final format.
503 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
504 empty literal pieces.
505
e43b10e1
TT
5062019-10-01 Tom Tromey <tom@tromey.com>
507
508 * ui-out.h (enum class ui_out_style_kind): Remove.
509 (class ui_out) <field_string, field_stsream, do_field_string>:
510 Change type of "style".
511 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
512 (ui_out::field_string): Update.
513 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
514 of "style".
515 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
516 * tracepoint.c (print_one_static_tracepoint_marker): Update.
517 * stack.c (print_frame_arg, print_frame_info, print_frame):
518 Update.
519 * source.c (print_source_lines_base): Update.
520 * solib.c (info_sharedlibrary_command): Update.
521 * skip.c (info_skip_command): Update.
522 * record-btrace.c (btrace_call_history_src_line)
523 (btrace_call_history): Update.
524 * python/py-framefilter.c (py_print_frame): Update.
525 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
526 "style".
527 * mi/mi-out.c (mi_ui_out::do_table_header)
528 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
529 (mi_ui_out::do_field_string): Update.
530 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
531 Update.
532 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
533 "style".
534 * cli-out.c (cli_ui_out::do_table_header)
535 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
536 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
537 (cli_ui_out::do_field_fmt): Update.
538 * breakpoint.c (print_breakpoint_location): Update.
539 (update_static_tracepoint): Update.
540
cd7c32c3
PW
5412019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
542
543 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
544 conversion of gdb_datadir.
545 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
546 remove not needed c_str ().
547
8fe0f950
AT
5482019-09-30 Ali Tamur <tamur@google.com>
549
550 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
551 (dwarf2_string_attr): Likewise.
552
5f48f8f3
AT
5532019-09-30 Ali Tamur <tamur@google.com>
554
555 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
556 (process_full_type_unit): Likewise.
557 (dump_die_shallow): Likewise.
558 (cu_debug_loc_section): Likewise.
559
6fb08628
CB
5602019-09-28 Christian Biesinger <cbiesinger@google.com>
561
562 * minsyms.c (compare_minimal_symbols): Rename to...
563 (minimal_symbol_is_less_than): ...this, and adjust to STL
564 conventions (return bool, take arguments as references)
565 (minimal_symbol_reader::install): Call std::sort instead
566 of qsort.
567
c7ee338a
CB
5682019-09-29 Christian Biesinger <cbiesinger@google.com>
569
570 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
571 hash and why.
572 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
573 msymbol_hash, msymbol_demangled_hash>: Improve comments.
574
703a86c2
SM
5752019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
576
577 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
578 * psympriv.h (add_psymbol_to_list): Move comment here and update
579 it.
580
0df0352a
TV
5812019-09-29 Tom de Vries <tdevries@suse.de>
582
583 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
584 Use $tmpdir/$(basename "$output_file").dwz instead of
585 "${output_file}.dwz".
586
ad75efa6
SM
5872019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
588
589 PR gdb/25045
590 * hppa-linux-nat.c: Include gdbarch.h.
591
ececd218
CB
5922019-09-26 Christian Biesinger <cbiesinger@google.com>
593
594 * blockframe.c (find_pc_partial_function): Change return type to bool.
595 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
596 * minsyms.c (in_gnu_ifunc_stub): Likewise.
597 (stub_gnu_ifunc_resolve_name): Likewise.
598 * symtab.c (compare_filenames_for_search): Likewise.
599 (compare_glob_filenames_for_search): Likewise.
600 (matching_obj_sections): Likewise.
601 (symbol_matches_domain): Likewise.
602 (find_line_symtab): Change out param EXACT_MATCH to bool *.
603 (find_line_pc): Change return type to bool.
604 (find_line_pc_range): Likewise.
605 (producer_is_realview): Likewise.
606 * symtab.h (symbol_matches_domain): Likewise.
607 (find_pc_partial_function): Likewise.
608 (find_pc_line_pc_range): Likewise.
609 (in_gnu_ifunc_stub): Likewise.
610 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
611 (find_line_pc): Likewise.
612 (find_line_pc_range): Likewise.
613 (matching_obj_sections): Likewise.
614 (find_line_symtab): Change out parameter to bool.
615 (producer_is_realview): Change return type to bool.
616 (compare_filenames_for_search): Likewise.
617 (compare_glob_filenames_for_search): Likewise.
618
27a900b8
TT
6192019-09-26 Tom Tromey <tom@tromey.com>
620
621 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
622 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
623 * gdb_usleep.h: Remove.
624 * gdb_usleep.c: Remove.
625 * utils.c: Don't include gdb_usleep.h.
626
5d63b30a
TT
6272019-09-26 Tom Tromey <tromey@adacore.com>
628
629 * python/py-type.c (type_to_type_object): Call check_typedef
630 for stub types.
631
12904d37
TT
6322019-09-26 Tom Tromey <tom@tromey.com>
633
634 * utils.h (initialize_utils): Don't declare.
635 * top.c (gdb_init): Don't call initialize_utils.
636 * utils.c (initialize_utils): Remove. Move contents...
637 (_initialize_utils): ... here.
638
858f25f0
TT
6392019-09-25 Tom Tromey <tom@tromey.com>
640
641 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
642 * utils.h (make_hex_string): Don't declare.
643 * utils.c (make_hex_string): Remove.
644
3d435220
TV
6452019-09-24 Tom de Vries <tdevries@suse.de>
646
647 PR gdb/23815
648 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
649 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
650
ddd44b70
DD
6512019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
652
653 * NEWS: Mention new simulator port for PRU.
654
f945dedf
CB
6552019-09-23 Christian Biesinger <cbiesinger@google.com>
656
657 * ada-exp.y (write_object_remaining): Update.
658 * ada-lang.c (ada_decode): Return a std::string instead of a char*
659 and eliminate the static buffer.
660 (ada_decode_symbol): Update.
661 (ada_la_decode): Update.
662 (ada_sniff_from_mangled_name): Update.
663 (is_valid_name_for_wild_match): Update.
664 (ada_lookup_name_info::matches): Update and simplify.
665 (name_matches_regex): Update.
666 (ada_add_global_exceptions): Update.
667 * ada-lang.h (ada_decode): Update signature.
668 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
669 * dwarf-index-write.c (debug_names::insert): Update.
670
7ab78ccb
SM
6712019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
672
673 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
674 formatting.
675
9252448b
SM
6762019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
677
678 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
679 Change "nonzero" to "true" in documentation.
680
626ca2c0
CB
6812019-09-20 Christian Biesinger <cbiesinger@google.com>
682
683 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
684 (_initialize_darwin_solib): Don't set
685 darwin_so_ops.lookup_lib_global_symbol.
686 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
687 set_gdbarch_iterate_over_objfiles_in_search_order.
688 (elf_lookup_lib_symbol): Rename to...
689 (svr4_iterate_over_objfiles_in_search_order): this, and update
690 to iterate semantics.
691 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
692 * solib.c (solib_global_lookup): Remove.
693 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
694 (solib_global_lookup): Remove.
695 * symtab.c (lookup_global_or_static_symbol): Remove call to
696 solib_global_lookup.
697
5a3a0d63
JB
6982019-09-20 Joel Brobecker <brobecker@adacore.com>
699
700 * NEWS: Move entries about default MI version now being
701 version 3, and about the GDB/MI fix for multi-location
702 breakpoints to the "since GDB 8.3" section.
703
ffea1427
JB
7042019-09-20 Joel Brobecker <brobecker@adacore.com>
705
706 GDB 8.3.1 released.
707
abf516c6
UW
7082019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
709
710 * NEWS: Mention that Cell/B.E. debugging support was removed.
711 * MAINTAINERS: Remove spu target.
712
713 * config/djgpp/fnchange.lst: Remove entries for removed files.
714
715 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
716 spu-multiarch.o, and spu-tdep.o.
717 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
718 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
719 spu-multiarch.c, and spu-tdep.c.
720 * spu-linux-nat.c: Remove file.
721 * spu-multiarch.c: Remove file.
722 * spu-tdep.c: Remove file.
723 * spu-tdep.h: Remove file.
724 * solib-spu.c: Remove file.
725 * solib-spu.h: Remove file.
726
727 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
728 * configure.nat (spu-linux): Remove.
729 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
730 solib-multiarch.o from gdb_target_obs.
731 (spu*-*-*): Remove.
732
733 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
734 feature flag.
735 (ppc_linux_no_features): Update.
736 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
737 Cell/B.E. support.
738 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
739 (tdesc_powerpc_cell64l): Likewise.
740 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
741 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
742 Cell/B.E. support.
743 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
744 Do not include "features/rs6000/powerpc-cell32l.c" or
745 "features/rs6000/powerpc-cell64l.c".
746 (ppc_linux_spu_section): Remove.
747 (ppc_linux_core_read_description): Remove Cell/B.E. support.
748 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
749 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
750 (ppc_linux_spe_context_lookup): Remove.
751 (ppc_linux_spe_context_inferior_created): Remove.
752 (ppc_linux_spe_context_solib_loaded): Remove.
753 (ppc_linux_spe_context_solib_unloaded): Remove.
754 (ppc_linux_spe_context): Remove.
755 (struct ppu2spu_cache): Remove.
756 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
757 (struct ppu2spu_data): Remove.
758 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
759 ppu2spu_unwind): Remove.
760 (ppc_linux_init_abi): Remove Cell/B.E. support.
761 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
762
763 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
764 (rs6000/powerpc-cell64l-expedite): Likewise
765 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
766 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
767 rs6000/powerpc-cell64l.xml.
768 * features/rs6000/powerpc-cell32l.xml: Remove.
769 * features/rs6000/powerpc-cell64l.xml: Likewise.
770 * features/rs6000/powerpc-cell32l.c: Remove generated file.
771 * features/rs6000/powerpc-cell64l.c: Likewise.
772 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
773 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
774 * regformats/reg-spu.dat: Remove.
775
776 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
777 * corelow.c (struct spuid_list): Remove.
778 (add_to_spuid_list): Remove.
779 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
780 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
781 (remote_protocol_features): Remove associated entries.
782 (_initialize_remote): No longer initialize them.
783 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
784 * linux-nat.c (SPUFS_MAGIC): Remove.
785 (linux_proc_xfer_spu): Remove.
786 (spu_enumerate_spu_ids): Remove.
787 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
788 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
789 (linux_make_corefile_notes): No longer call it.
790
791 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
792 (cooked_write_test): Likewise.
793
78e8cb91
TT
7942019-09-20 Tom Tromey <tom@tromey.com>
795
796 * NEWS: Mention case-sensitivity of TUI commands.
797 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
798 (tui_set_win_height_command, parse_scrolling_args): Likewise.
799 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
800
f074b67e
TT
8012019-09-20 Tom Tromey <tom@tromey.com>
802
803 * tui/tui-source.c (tui_source_window::set_contents): Use
804 make_unique_xstrdup.
805 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
806 make_unique_xstrdup.
807
63c4bf19
TT
8082019-09-20 Tom Tromey <tom@tromey.com>
809
810 * tui/tui-data.c: Remove separator comments.
811 * tui/tui-layout.c: Remove separator comments.
812 * tui/tui-win.c: Remove separator comments.
813 * tui/tui-wingeneral.c: Remove separator comments.
814
43df9b2f
TT
8152019-09-20 Tom Tromey <tom@tromey.com>
816
817 * tui/tui.h (strcat_to_buf): Don't declare.
818 * tui/tui.c (strcat_to_buf): Remove.
819
7226433c
TT
8202019-09-20 Tom Tromey <tom@tromey.com>
821
822 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
823 from "fullname".
824 * tui/tui-source.c (tui_source_window::set_contents)
825 (tui_source_window::location_matches_p)
826 (tui_source_window::maybe_update): Update.
827
80df3337
TT
8282019-09-20 Tom Tromey <tom@tromey.com>
829
830 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
831 Update.
832 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
833 prefix.
834 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
835 (tui_data_window::line_from_reg_element_no)
836 (tui_data_window::first_reg_element_no_inline)
837 (tui_data_window::show_registers)
838 (tui_data_window::show_register_group)
839 (tui_data_window::display_registers_from)
840 (tui_data_window::display_registers_from_line)
841 (tui_data_window::first_data_item_displayed)
842 (tui_data_window::delete_data_content_windows)
843 (tui_data_window::erase_data_content)
844 (tui_data_window::do_scroll_vertical)
845 (tui_data_window::refresh_window)
846 (tui_data_window::check_register_values): Update.
847
9923f347
TT
8482019-09-20 Tom Tromey <tom@tromey.com>
849
850 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
851 (struct tui_locator_window) <full_name, proc_name>: Now
852 std::string.
853 * tui/tui-stack.c (tui_locator_window::make_status_line)
854 (tui_locator_window::set_locator_fullname)
855 (tui_locator_window::set_locator_info): Update.
856 * tui/tui-source.c (tui_source_window::set_contents)
857 (tui_source_window::showing_source_p): Update.
858
b76251ab
TT
8592019-09-20 Tom Tromey <tom@tromey.com>
860
861 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
862 Don't call tui_locator_win_info_ptr.
863
0891be08
TT
8642019-09-20 Tom Tromey <tom@tromey.com>
865
866 * tui/tui-win.c (tui_resize_all): Don't call refresh.
867
1b935acf
TT
8682019-09-20 Tom Tromey <tom@tromey.com>
869
870 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
871 height for locator.
872 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
873 * tui/tui-layout.c (show_source_disasm_command, show_data)
874 (show_source_or_disasm_and_command): Use 1 as height for locator.
875
9abd8a65
TT
8762019-09-20 Tom Tromey <tom@tromey.com>
877
878 * tui/tui.c (tui_enable): Update.
879 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
880 Update.
881 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
882 Update.
883 * tui/tui-data.c (win_resized): Now bool.
884 (tui_win_resized): Return bool.
885 (tui_set_win_resized_to): Accept a bool.
886
b5457826
TT
8872019-09-20 Tom Tromey <tom@tromey.com>
888
889 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
890 Change type of "refresh_values_only".
891 * tui/tui-regs.c (tui_data_window::show_register_group): Change
892 type of "refresh_values_only".
893
6b915f7d
TT
8942019-09-20 Tom Tromey <tom@tromey.com>
895
896 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
897 std::string.
898 (tui_disassemble): Add "pos" parameter.
899 (tui_disasm_window::set_contents): Simplify.
900
2ad52f6f
TT
9012019-09-20 Tom Tromey <tom@tromey.com>
902
903 * tui/tui-winsource.h (struct tui_source_window_base)
904 <show_source_content>: Now private.
905 * tui/tui-winsource.c
906 (tui_source_window_base::show_source_content): Don't handle empty
907 content case.
908
b3b1bde6
TT
9092019-09-20 Tom Tromey <tom@tromey.com>
910
911 * tui/tui-layout.c (show_source_disasm_command)
912 (show_source_or_disasm_and_command): Don't call
913 show_source_content.
914
71a25ed2
TT
9152019-09-20 Tom Tromey <tom@tromey.com>
916
917 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
918 Declare.
919 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
920 from tui_make_status_line.
921 (tui_locator_window::rerender): Update.
922
f8532154
TT
9232019-09-20 Tom Tromey <tom@tromey.com>
924
925 * tui/tui-stack.c (tui_make_status_line): Return std::string.
926 (tui_locator_window::rerender): Update.
927
2d81b349
TT
9282019-09-20 Tom Tromey <tom@tromey.com>
929
930 * tui/tui-winsource.h (struct tui_source_window_base)
931 <~tui_source_window_base>: Don't declare.
932 <fullname>: Remove.
933 * tui/tui-winsource.c (~tui_source_window_base): Remove.
934 * tui/tui-source.h (struct tui_source_window) <fullname>: New
935 member.
936 * tui/tui-source.c (tui_source_window::set_contents): Update.
937 (tui_source_window::location_matches_p)
938 (tui_source_window::maybe_update): Update.
939
f14bec58
TT
9402019-09-20 Tom Tromey <tom@tromey.com>
941
942 * tui/tui-winsource.h (~tui_source_element): Remove.
943 (tui_source_element): Update.
944 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
945 * tui/tui-winsource.c (tui_show_source_line): Update.
946 * tui/tui-source.c (tui_source_window::set_contents): Update.
947 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
948
78d5933a
TT
9492019-09-20 Tom Tromey <tom@tromey.com>
950
951 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
952 declare.
953 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
954 tui_clear_source_windows_detail.
955 * tui/tui-winsource.h (struct tui_source_window_base)
956 <clear_detail>: Don't declare.
957 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
958 Remove.
959 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
960
d4207696
TT
9612019-09-20 Tom Tromey <tromey@adacore.com>
962
963 PR ada/24919:
964 * block.c (contained_in): Fix final return value.
965
00f93c44
AM
9662019-09-20 Alan Modra <amodra@gmail.com>
967
968 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
969 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
970 (read_indirect_string_from_dwz): Use bfd accessor.
971 * dwarf2read.h (struct dwz_file <filename>): Likewise.
972 * machoread.c (macho_symfile_read_all_oso): Likewise.
973 * solib.c (solib_bfd_open): Likewise.
974
e4153ae6
CB
9752019-09-19 Christian Biesinger <cbiesinger@google.com>
976
977 * eval.c: Move declaration of overload_resolution to...
978 * value.h: ...here.
979
c7ae7675
CB
9802019-09-19 Christian Biesinger <cbiesinger@google.com>
981
982 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
983 * arm-linux-tdep.c: Likewise.
984 * arm-nbsd-nat.c: Likewise.
985 * arm-tdep.h: Declare arm_apcs_32.
986 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
987
e86f08d2
CB
9882019-09-19 Christian Biesinger <cbiesinger@google.com>
989
990 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
991 * dwarf2read.h: Declare dwarf_always_disassemble.
992
f64e2f40
TV
9932019-09-19 Tom de Vries <tdevries@suse.de>
994
995 PR gdb/25009
996 * source-cache.c (source_cache::ensure): Catch exception thrown during
997 construction of the highlighter.
998
fd361982
AM
9992019-09-18 Alan Modra <amodra@gmail.com>
1000
1001 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
1002 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
1003 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
1004 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
1005 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
1006 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
1007 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
1008 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
1009 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
1010 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
1011 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
1012 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
1013 * solib-spu.c, * solib-svr4.c, * solib-target.c,
1014 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
1015 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
1016 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
1017 * mi/mi-interp.c: Update throughout for bfd section macro and
1018 function changes.
1019 * gcore (gcore_create_callback): Use bfd_set_section_lma.
1020 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
1021
11061048
TT
10222019-09-18 Tom Tromey <tom@tromey.com>
1023
1024 * NEWS: Add entry.
1025 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
1026 call rl_initialize.
1027 (tui_enable): Do not call rl_initialize.
1028
7a27b85f
CG
10292019-09-18 Christian Groessler <chris@groessler.org>
1030
1031 * alpha-linux-nat.c: Include gdbarch.h.
1032
f64eea3a
SM
10332019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
1034
1035 * ui-file.c: Include cli/cli-style.h.
1036 (term_cli_styling): Remove cli_styling declaration.
1037
e6f7f6d1
AM
10382019-09-18 Alan Modra <amodra@gmail.com>
1039
1040 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
1041 to bfd_asymbol_section.
1042
1d38e9d1
AM
10432019-09-18 Alan Modra <amodra@gmail.com>
1044
1045 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
1046 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
1047 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
1048
90d92a63
AM
10492019-09-18 Alan Modra <amodra@gmail.com>
1050
1051 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
1052 * spu-linux-nat.c (spu_bfd_open): Likewise.
1053
a3d181d2
CB
10542019-09-18 Christian Biesinger <cbiesinger@google.com>
1055
1056 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
1057 to bool to match definition in dwarf2read.c.
1058
491144b5
CB
10592019-09-17 Christian Biesinger <cbiesinger@google.com>
1060
1061 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
1062 (print_signatures): Likewise.
1063 (trust_pad_over_xvs): Likewise.
1064 * arch/aarch64-insn.c (aarch64_debug): Likewise.
1065 * arch/aarch64-insn.h (aarch64_debug): Likewise.
1066 * arm-linux-nat.c (arm_apcs_32): Likewise.
1067 * arm-linux-tdep.c (arm_apcs_32): Likewise.
1068 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
1069 * arm-tdep.c (arm_debug): Likewise.
1070 (arm_apcs_32): Likewise.
1071 * auto-load.c (debug_auto_load): Likewise.
1072 (auto_load_gdb_scripts): Likewise.
1073 (global_auto_load): Likewise.
1074 (auto_load_local_gdbinit): Likewise.
1075 (auto_load_local_gdbinit_loaded): Likewise.
1076 * auto-load.h (global_auto_load): Likewise.
1077 (auto_load_local_gdbinit): Likewise.
1078 (auto_load_local_gdbinit_loaded): Likewise.
1079 * breakpoint.c (disconnected_dprintf): Likewise.
1080 (breakpoint_proceeded): Likewise.
1081 (automatic_hardware_breakpoints): Likewise.
1082 (always_inserted_mode): Likewise.
1083 (target_exact_watchpoints): Likewise.
1084 (_initialize_breakpoint): Update.
1085 * breakpoint.h (target_exact_watchpoints): Change to bool.
1086 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
1087 * cli/cli-cmds.c (trace_commands): Likewise.
1088 * cli/cli-cmds.h (trace_commands): Likewise.
1089 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
1090 to bool*.
1091 * cli/cli-logging.c (logging_overwrite): Change to bool.
1092 (logging_redirect): Likewise.
1093 (debug_redirect): Likewise.
1094 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
1095 (struct boolean_option_def) <get_var_address_cb_>: Change return type
1096 to bool.
1097 <boolean_option_def>: Update.
1098 (struct flag_option_def): Change default type of Context to bool
1099 from int.
1100 <flag_option_def>: Change return type of var_address_cb_ to bool*.
1101 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
1102 (get_setshow_command_value_string): Likewise.
1103 * cli/cli-style.c (cli_styling): Change to bool.
1104 (source_styling): Likewise.
1105 * cli/cli-style.h (source_styling): Likewise.
1106 (cli_styling): Likewise.
1107 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
1108 to bool.
1109 * command.h (var_types): Update comment.
1110 (add_setshow_boolean_cmd): Change int* var argument to bool*.
1111 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
1112 bool.
1113 (debug_compile_cplus_scopes): Likewise.
1114 * compile/compile-internal.h (compile_debug): Likewise.
1115 * compile/compile.c (compile_debug): Likewise.
1116 (struct compile_options) <raw>: Likewise.
1117 * cp-support.c (catch_demangler_crashes): Likewise.
1118 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
1119 (usr_cmd_cris_dwarf2_cfi): Likewise.
1120 * csky-tdep.c (csky_debug): Likewise.
1121 * darwin-nat.c (enable_mach_exceptions): Likewise.
1122 * dcache.c (dcache_enabled_p): Likewise.
1123 * defs.h (info_verbose): Likewise.
1124 * demangle.c (demangle): Likewise.
1125 (asm_demangle): Likewise.
1126 * dwarf-index-cache.c (debug_index_cache): Likewise.
1127 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
1128 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
1129 * dwarf2read.c (check_physname): Likewise.
1130 (use_deprecated_index_sections): Likewise.
1131 (dwarf_always_disassemble): Likewise.
1132 * eval.c (overload_resolution): Likewise.
1133 * event-top.c (set_editing_cmd_var): Likewise.
1134 (exec_done_display_p): Likewise.
1135 * event-top.h (set_editing_cmd_var): Likewise.
1136 (exec_done_display_p): Likewise.
1137 * exec.c (write_files): Likewise.
1138 * fbsd-nat.c (debug_fbsd_lwp): Likewise
1139 (debug_fbsd_nat): Likewise.
1140 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
1141 Likewise.
1142 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
1143 <backtrace_past_entry> Likewise.
1144 * gdb-demangle.h (demangle): Likewise.
1145 (asm_demangle): Likewise.
1146 * gdb_bfd.c (bfd_sharing): Likewise.
1147 * gdbcore.h (write_files): Likewise.
1148 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
1149 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
1150 * gdbthread.h (print_thread_events): Likewise.
1151 * gdbtypes.c (opaque_type_resolution): Likewise.
1152 (strict_type_checking): Likewise.
1153 * gnu-nat.c (gnu_debug_flag): Likewise.
1154 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
1155 * guile/scm-param.c (pascm_variable): Add boolval.
1156 (add_setshow_generic): Update.
1157 (pascm_param_value): Update.
1158 (pascm_set_param_value_x): Update.
1159 * hppa-tdep.c (hppa_debug): Change to bool..
1160 * infcall.c (may_call_functions_p): Likewise.
1161 (coerce_float_to_double_p): Likewise.
1162 (unwind_on_signal_p): Likewise.
1163 (unwind_on_terminating_exception_p): Likewise.
1164 * infcmd.c (startup_with_shell): Likewise.
1165 * inferior.c (print_inferior_events): Likewise.
1166 * inferior.h (startup_with_shell): Likewise.
1167 (print_inferior_events): Likewise.
1168 * infrun.c (step_stop_if_no_debug): Likewise.
1169 (detach_fork): Likewise.
1170 (debug_displaced): Likewise.
1171 (disable_randomization): Likewise.
1172 (non_stop): Likewise.
1173 (non_stop_1): Likewise.
1174 (observer_mode): Likewise.
1175 (observer_mode_1): Likewise.
1176 (set_observer_mode): Update.
1177 (sched_multi): Change to bool.
1178 * infrun.h (debug_displaced): Likewise.
1179 (sched_multi): Likewise.
1180 (step_stop_if_no_debug): Likewise.
1181 (non_stop): Likewise.
1182 (disable_randomization): Likewise.
1183 * linux-tdep.c (use_coredump_filter): Likewise.
1184 (dump_excluded_mappings): Likewise.
1185 * linux-thread-db.c (auto_load_thread_db): Likewise.
1186 (check_thread_db_on_load): Likewise.
1187 * main.c (captured_main_1): Update.
1188 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
1189 xx2_opt, boolean_opt>: Change to bool.
1190 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
1191 * maint.c (maintenance_profile_p): Likewise.
1192 (per_command_time): Likewise.
1193 (per_command_space): Likewise.
1194 (per_command_symtab): Likewise.
1195 * memattr.c (inaccessible_by_default): Likewise.
1196 * mi/mi-main.c (mi_async): Likewise.
1197 (mi_async_1): Likewise.
1198 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
1199 * nat/fork-inferior.h (startup_with_shell): Likewise.
1200 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
1201 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
1202 * nios2-tdep.c (nios2_debug): Likewise.
1203 * or1k-tdep.c (or1k_debug): Likewise.
1204 * parse.c (parser_debug): Likewise.
1205 * parser-defs.h (parser_debug): Likewise.
1206 * printcmd.c (print_symbol_filename): Likewise.
1207 * proc-api.c (procfs_trace): Likewise.
1208 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
1209 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
1210 (set_parameter_value): Update.
1211 (add_setshow_generic): Update.
1212 * python/py-value.c (copy_py_bool_obj): Change argument from int*
1213 to bool*.
1214 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
1215 int*.
1216 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
1217 * record-btrace.c (record_btrace_target::store_registers): Update.
1218 * record-full.c (record_full_memory_query): Change to bool.
1219 (record_full_stop_at_limit): Likewise.
1220 * record-full.h (record_full_memory_query): Likewise.
1221 * remote-notif.c (notif_debug): Likewise.
1222 * remote-notif.h (notif_debug): Likewise.
1223 * remote.c (use_range_stepping): Likewise.
1224 (interrupt_on_connect): Likewise.
1225 (remote_break): Likewise.
1226 * ser-tcp.c (tcp_auto_retry): Likewise.
1227 * ser-unix.c (serial_hwflow): Likewise.
1228 * skip.c (debug_skip): Likewise.
1229 * solib-aix.c (solib_aix_debug): Likewise.
1230 * spu-tdep.c (spu_stop_on_load_p): Likewise.
1231 (spu_auto_flush_cache_p): Likewise.
1232 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
1233 Likewise.
1234 (struct info_print_options) <quiet>: Likewise.
1235 * symfile-debug.c (debug_symfile): Likewise.
1236 * symfile.c (auto_solib_add): Likewise.
1237 (separate_debug_file_debug): Likewise.
1238 * symfile.h (auto_solib_add): Likewise.
1239 (separate_debug_file_debug): Likewise.
1240 * symtab.c (basenames_may_differ): Likewise.
1241 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
1242 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
1243 (struct info_types_options) <quiet>: Likewise.
1244 * symtab.h (demangle): Likewise.
1245 (basenames_may_differ): Likewise.
1246 * target-dcache.c (stack_cache_enabled_1): Likewise.
1247 (code_cache_enabled_1): Likewise.
1248 * target.c (trust_readonly): Likewise.
1249 (may_write_registers): Likewise.
1250 (may_write_memory): Likewise.
1251 (may_insert_breakpoints): Likewise.
1252 (may_insert_tracepoints): Likewise.
1253 (may_insert_fast_tracepoints): Likewise.
1254 (may_stop): Likewise.
1255 (auto_connect_native_target): Likewise.
1256 (target_stop_and_wait): Update.
1257 (target_async_permitted): Change to bool.
1258 (target_async_permitted_1): Likewise.
1259 (may_write_registers_1): Likewise.
1260 (may_write_memory_1): Likewise.
1261 (may_insert_breakpoints_1): Likewise.
1262 (may_insert_tracepoints_1): Likewise.
1263 (may_insert_fast_tracepoints_1): Likewise.
1264 (may_stop_1): Likewise.
1265 * target.h (target_async_permitted): Likewise.
1266 (may_write_registers): Likewise.
1267 (may_write_memory): Likewise.
1268 (may_insert_breakpoints): Likewise.
1269 (may_insert_tracepoints): Likewise.
1270 (may_insert_fast_tracepoints): Likewise.
1271 (may_stop): Likewise.
1272 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
1273 (make_thread_apply_all_options_def_group): Change argument from int*
1274 to bool*.
1275 (thread_apply_all_command): Update.
1276 (print_thread_events): Change to bool.
1277 * top.c (confirm): Likewise.
1278 (command_editing_p): Likewise.
1279 (history_expansion_p): Likewise.
1280 (write_history_p): Likewise.
1281 (info_verbose): Likewise.
1282 * top.h (confirm): Likewise.
1283 (history_expansion_p): Likewise.
1284 * tracepoint.c (disconnected_tracing): Likewise.
1285 (circular_trace_buffer): Likewise.
1286 * typeprint.c (print_methods): Likewise.
1287 (print_typedefs): Likewise.
1288 * utils.c (debug_timestamp): Likewise.
1289 (sevenbit_strings): Likewise.
1290 (pagination_enabled): Likewise.
1291 * utils.h (sevenbit_strings): Likewise.
1292 (pagination_enabled): Likewise.
1293 * valops.c (overload_resolution): Likewise.
1294 * valprint.h (struct value_print_options) <prettyformat_arrays,
1295 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
1296 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
1297 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
1298 Likewise.
1299 * windows-nat.c (new_console): Likewise.
1300 (cygwin_exceptions): Likewise.
1301 (new_group): Likewise.
1302 (debug_exec): Likewise.
1303 (debug_events): Likewise.
1304 (debug_memory): Likewise.
1305 (debug_exceptions): Likewise.
1306 (useshell): Likewise.
1307 * windows-tdep.c (maint_display_all_tib): Likewise.
1308 * xml-support.c (debug_xml): Likewise.
1309
f1b620e9
MG
13102019-09-17 Mike Gulick <mgulick@mathworks.com>
1311
1312 * source.c (prepare_path_for_appending): New function.
1313 (openp): Make use of new function.
1314 (find_and_open_source): Search for the compilation directory and
1315 source file as a relative path beneath the directory search path.
1316
67f3ed6a
AB
13172019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
1318
1319 * source-cache.c (source_cache::get_line_charpos): Catch
1320 exceptions and return false, this matches the behaviour documented
1321 in the header file.
1322
74332189
JB
13232019-09-17 Joel Brobecker <brobecker@adacore.com>
1324
1325 * ada-tasks.c (info_task): Remove quoting of the task's name.
1326
f2f24aa9
CB
13272019-09-16 Christian Biesinger <cbiesinger@google.com>
1328
1329 * symfile.c (auto_solib_add): Replace comment with a reference
1330 to the header file.
1331
6a062a93
CB
13322019-09-14 Christian Biesinger <cbiesinger@google.com>
1333
1334 * NEWS: Mention that gdb can now be compiled with Python 3
1335 on Windows.
1336
ec6c8338
AB
13372019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1338
1339 * maint.c (maint_print_section_data::maint_print_section_data):
1340 Force use of 'float log10 (float)' by casting the argument to
1341 float.
1342
aa17805f
AB
13432019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1344
1345 * maint.c: Add 'cmath' include.
1346 (struct maint_print_section_data): New structure.
1347 (print_section_index): New function.
1348 (print_bfd_section_info): Add header comment, small whitespace
1349 cleanup, and update to call new print_section_index function.
1350 (print_objfile_section_info): Likewise.
1351 (maint_obj_section_from_bfd_section): New function.
1352 (print_bfd_section_info_maybe_relocated): New function.
1353 (maintenance_info_sections): Add header comment, always use
1354 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
1355
3dd9bb46
AB
13562019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1357
1358 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
1359 inner scope, add check that the objfile has psymtabs before
1360 checking psymtabs_addrmap.
1361 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
1362
4993045d
PW
13632019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1364
1365 * NEWS: Announce that Ada task names are now shown at more places,
1366 and between quotes (except in info task output).
1367 * gdb/ada-tasks.c (task_to_str): New function.
1368 (display_current_task_id): Call task_to_str.
1369 (task_command_1): Likewise.
1370 (print_ada_task_info): In non-mi mode, Properly align headers and data
1371 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
1372
7a289707
RO
13732019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1374
1375 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
1376 prstatus.pr_lwp.pr_info instead of making it up.
1377
f2aec7f6
CB
13782019-09-11 Christian Biesinger <cbiesinger@google.com>
1379
1380 * auto-load.c (auto_load_expand_dir_vars): Update.
1381 * defs.h (gdb_datadir): Change to std::string.
1382 (python_libdir): Likewise.
1383 (relocate_gdb_directory): Change return type to std::string.
1384 * guile/guile.c (gdbscm_data_directory): Update.
1385 (initialize_scheme_side): Update.
1386 * jit.c (jit_reader_dir): Change to std::string.
1387 (jit_reader_load_command): Update.
1388 * main.c (gdb_datadir): Change to std::string.
1389 (python_libdir): Likewise.
1390 (set_gdb_data_directory): Update.
1391 (relocate_path): Change to return std::string.
1392 (relocate_gdb_directory): Change to return std::string.
1393 (relocate_gdbinit_path_maybe_in_datadir): Update.
1394 (captured_main_1): Update.
1395 * python/python.c (do_start_initialization): Update.
1396 * top.c (show_gdb_datadir): Update.
1397 * xml-syscall.c (xml_init_syscalls_info): Update.
1398 (init_syscalls_info): Update.
1399
9224a013
CB
14002019-09-11 Christian Biesinger <cbiesinger@google.com>
1401
1402 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
1403 out of get_init_files.
1404 (get_init_files): Update.
1405
f48cd836
CB
14062019-09-11 Christian Biesinger <cbiesinger@google.com>
1407
1408 * main.c (get_init_files): Change to use std::string.
1409 (captured_main_1): Update.
1410 (print_gdb_help): Update.
1411
9cab7ecd
AT
14122019-09-11 Ali Tamur <tamur@google.com>
1413
1414 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
1415 implementation.
1416
67547d89
CB
14172019-09-11 Christian Biesinger <cbiesinger@google.com>
1418
1419 * dbxread.c (read_dbx_symtab): Update.
1420 * dwarf2read.c (load_partial_dies): Update.
1421 * mdebugread.c (parse_partial_symbols): Update.
1422 (handle_psymbol_enumerators): Update.
1423 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
1424 * psymtab.c (add_psymbol_to_bcache): Likewise.
1425 (add_psymbol_to_list): Likewise.
1426 * symtab.c (symbol_set_names): Likewise.
1427 * symtab.h (symbol_set_names): Likewise.
1428 * xcoffread.c (scan_xcoff_symtab): Update.
1429
64b2d4a0
TT
14302019-09-11 Tom Tromey <tom@tromey.com>
1431
1432 * symfile-mem.c (symbol_file_add_from_memory): Use
1433 bfd_set_filename.
1434 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
1435 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
1436
3b00ef10
TT
14372019-09-10 Tom Tromey <tromey@adacore.com>
1438
1439 * dwarf-index-write.c (write_psymbols): Extend error message.
1440 (debug_names::insert): Add Ada code.
1441 (debug_names::write_psymbols): Remove Ada check.
1442 (debug_names) <m_string_obstack>: New member.
1443 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
1444 (gdb_index_symbol_name_matcher::matches): Remove.
1445 (mapped_index_base::find_name_components_bounds): Add "lang"
1446 parameter.
1447 (mapped_index_base::build_name_components): Also split names
1448 according to Ada syntax.
1449 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
1450 type of "match_callback".
1451 (check_match, check_find_bounds_finds)
1452 (dw2_expand_symtabs_matching): Update.
1453 (dw2_debug_names_iterator): Add new constructor.
1454 (dw2_debug_names_map_matching_symbols): New function.
1455 (dw2_debug_names_expand_symtabs_matching): Update.
1456 (dwarf2_debug_names_functions): Use
1457 dw2_debug_names_map_matching_symbols.
1458
aa391654
TT
14592019-09-10 Tom Tromey <tromey@adacore.com>
1460
1461 * dwarf2read.c (dw2_get_file_names_reader): Add the
1462 CU's file name to the results.
1463
b054970d
TT
14642019-09-10 Tom Tromey <tromey@adacore.com>
1465
1466 * ada-lang.c (add_nonlocal_symbols): Combine calls to
1467 map_matching_symbols. Update.
1468 * dwarf2read.c (dw2_map_matching_symbols): Update.
1469 * psymtab.c (match_partial_symbol): Change type; update.
1470 (psym_map_matching_symbols): Likewise.
1471 * symfile-debug.c (debug_qf_map_matching_symbols): Change
1472 type; update.
1473 * symfile.h (struct quick_symbol_functions)
1474 <map_matching_symbols>: Change "name" to be a lookup_name_info.
1475 Remove "match".
1476
6a3dbf1b
TT
14772019-09-10 Tom Tromey <tromey@adacore.com>
1478
1479 * psymtab.c (map_block): Remove.
1480 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
1481 * symtab.c (iterate_over_symbols_terminated): New function.
1482 * symtab.c (iterate_over_symbols_terminated): Declare.
1483
6969f124
TT
14842019-09-10 Tom Tromey <tromey@adacore.com>
1485
1486 * ada-lang.c (ada_iterate_over_symbols): Return bool.
1487 * language.h (struct language_defn) <la_iterate_over_symbols>:
1488 Return bool.
1489 * symtab.c (iterate_over_symbols): Return bool.
1490 * symtab.h (iterate_over_symbols): Return bool.
1491
199b4314
TT
14922019-09-10 Tom Tromey <tromey@adacore.com>
1493
1494 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
1495 (add_nonlocal_symbols): Update.
1496 * dwarf2read.c (dw2_map_matching_symbols): Change type.
1497 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
1498 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
1499 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
1500 Change type of "callback". Remove "data".
1501
a084a2a6
AT
1502
15032019-09-09 Ali Tamur <tamur@google.com>
1504
1505 * dwarf2read.c (comp_unit_head): Update comment.
1506 (dwarf2_dwo_name): New function declaration.
1507 (dwarf_unit_type_name): New function declaration.
1508 (read_comp_unit_head): Add support for new compilation units,
1509 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
1510 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
1511 (currently named as "signature") in their header. Also clarify error
1512 messages.
1513 (lookup_dwo_id): New function. Returns the dwo id of the given
1514 compile unit.
1515 (lookup_dwo_unit): Use the new lookup_dwo_id function.
1516 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
1517 functions.
1518 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
1519 (dwarf2_dwo_name): Get the dwo name if present.
1520 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
1521 purposes.
1522
25a2915e
TT
15232019-09-09 Tom Tromey <tom@tromey.com>
1524
1525 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
1526
e4df0874
PW
15272019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1528
1529 * python/python.c (do_start_initialization): Make progname_copy static,
1530 to avoid a leak report.
1531
8634b462
TT
15322019-09-08 Tom Tromey <tom@tromey.com>
1533
1534 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
1535
c7f839cb
SM
15362019-09-07 Simon Marchi <simon.marchi@efficios.com>
1537
1538 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
1539 Change type to gdb::optional<block_enum>.
1540 (dw2_symtab_iter_init): Change block_index parameter type
1541 to gdb::optional<block_enum>.
1542 (dw2_lookup_symbol): Change block_index parameter
1543 type to block_enum.c
1544 (dw2_debug_names_lookup_symbol): Likewise.
1545 * psymtab.c (psym_lookup_symbol): Likewise.
1546 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
1547 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1548 Likewise.
1549
ead0e69a
CB
15502019-09-06 Christian Biesinger <cbiesinger@google.com>
1551
1552 * defs.h (relocate_gdb_directory): Change int to bool in
1553 signature and rename flag to relocatable.
1554 * main.c (relocate_path): Likewise.
1555 (relocate_gdb_directory): Likewise.
1556
b16c44de
AM
15572019-09-06 Alan Modra <amodra@gmail.com>
1558
1559 * coffread.c (coff_symfile_read): Constify filename variable.
1560 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
1561 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
1562 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
1563 * solib.c (reload_shared_libraries_1): Likewise.
1564 * symfile.c (reread_symbols): Likewise.
1565 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
1566 * solib-darwin.c (darwin_bfd_open): Likewise.
1567 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1568
06ff036e
AB
15692019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1570
1571 * psymtab.c (print_partial_symbols): Handle missing domain_enum
1572 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
1573
4e962e74
TT
15742019-09-03 Tom Tromey <tromey@adacore.com>
1575
1576 * ada-valprint.c (ada_val_print_num): Don't recurse for range
1577 types.
1578 (has_negatives): Unbias a range type bound.
1579 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
1580 * gdbtypes.c (operator==): Handle new field.
1581 (create_range_type): Add "bias" parameter.
1582 (create_static_range_type, resolve_dynamic_range): Update.
1583 * gdbtypes.h (struct range_bounds) <bias>: New member.
1584 (create_range_type): Add bias parameter.
1585 * printcmd.c (print_scalar_formatted): Unbias range types.
1586 * value.c (unpack_long): Unbias range types.
1587 (pack_long): Bias range types.
1588
d90b8f26
AH
15892019-09-02 Alan Hayward <alan.hayward@arm.com>
1590
1591 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
1592 probe arguments.
1593
fe01123e
AH
15942019-09-02 Alan Hayward <alan.hayward@arm.com>
1595
1596 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
1597 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
1598 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
1599 (compile_probe_arg): Likewise.
1600 * probe.h (get_argument_count): Likewise.
1601 * solib-svr4.c (solib_event_probe_action): Likewise.
1602 * stap-probe.c (stap_probe::get_argument_count): Likewise.
1603
e661ef01
AH
16042019-09-02 Alan Hayward <alan.hayward@arm.com>
1605
1606 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
1607 code to here...
1608 (svr4_create_solib_event_breakpoints): ...from here.
1609
47a536d9
SDJ
16102019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
1611
1612 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
1613 suffix from warning message.
1614
d6a00eba
TT
16152019-08-30 Tom Tromey <tom@tromey.com>
1616
1617 * tui/tui-winsource.h (struct tui_source_window_base)
1618 <refresh_all>: Don't declare.
1619 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
1620 Remove.
1621 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
1622 tui_show_locator_content.
1623 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
1624 declare.
1625 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
1626 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
1627 declare.
1628
55b2657b
TT
16292019-08-30 Tom Tromey <tom@tromey.com>
1630
1631 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
1632
12a8555a
TT
16332019-08-30 Tom Tromey <tom@tromey.com>
1634
1635 * tui/tui-stack.c (_initialize_tui_stack): Move later.
1636 Remove unnecessary forward declarations.
1637
900ac242
TT
16382019-08-30 Tom Tromey <tom@tromey.com>
1639
1640 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
1641 rerender.
1642 (tui_update_locator_fullname, tui_show_frame_info): Don't call
1643 tui_show_locator_content.
1644
99ab33fb
TT
16452019-08-30 Tom Tromey <tom@tromey.com>
1646
1647 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
1648 (tui_locator_window::rerender): Rewrite using body of previous
1649 tui_show_locator_content.
1650
e594a5d1
TT
16512019-08-30 Tom Tromey <tom@tromey.com>
1652
1653 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
1654 set_locator_fullname>: New methods.
1655 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1656 Rename from tui_set_locator_fullname.
1657 (tui_locator_window::set_locator_info): Rename from
1658 tui_set_locator_info. Return bool.
1659 (tui_update_locator_fullname, tui_show_frame_info): Update.
1660
715bb467
TT
16612019-08-30 Tom Tromey <tom@tromey.com>
1662
1663 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
1664
772f3f03
TT
16652019-08-30 Tom Tromey <tom@tromey.com>
1666
1667 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
1668 call touchwin.
1669
108e13ab
TT
16702019-08-30 Tom Tromey <tom@tromey.com>
1671
1672 * tui/tui-wingeneral.c (box_win): Assume win_info and
1673 win_info->handle cannot be NULL.
1674
cdaa6eb4
TT
16752019-08-30 Tom Tromey <tom@tromey.com>
1676
1677 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
1678 refresh_window>: Declare.
1679 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
1680 resize.
1681 (tui_data_item_window::rerender): Rename from
1682 tui_display_register.
1683 (tui_data_item_window::refresh_window): New method.
1684 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
1685 no-op.
1686
89df7f90
TT
16872019-08-30 Tom Tromey <tom@tromey.com>
1688
1689 * tui/tui-regs.h (struct tui_data_window) <regs_content,
1690 regs_column_count, current_group>: Move later. Now private.
1691 <get_current_group>: New method.
1692 * tui/tui-regs.c (tui_reg_command): Update.
1693 * tui/tui-layout.c (tui_set_layout): Update.
1694
1bf2866a
TT
16952019-08-30 Tom Tromey <tom@tromey.com>
1696
1697 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1698 (tui_data_window::rerender): Don't call
1699 check_and_display_highlight_if_needed.
1700 (tui_data_window::refresh_all): Remove call to
1701 erase_data_content.
1702
0670413d
TT
17032019-08-30 Tom Tromey <tom@tromey.com>
1704
1705 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1706 (tui_data_window::display_registers_from)
1707 (tui_data_window::display_reg_element_at_line)
1708 (tui_data_window::display_registers_from_line): Remove checks of
1709 "empty".
1710
18bb55c7
TT
17112019-08-30 Tom Tromey <tom@tromey.com>
1712
1713 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
1714 Don't declare.
1715 * tui/tui-regs.c (tui_data_window::show_registers): Call
1716 rerender.
1717 (tui_data_window::rerender): Rename from display_all_data.
1718 (tui_data_window::rerender): Remove old implementation.
1719
1f6d2f10
TT
17202019-08-30 Tom Tromey <tom@tromey.com>
1721
1722 * tui/tui-regs.c (tui_data_window::display_all_data): Change
1723 text.
1724 * tui/tui-data.h (NO_DATA_STRING): Remove define.
1725
16d01f9c
BW
17262019-08-29 Bernhard Wodok <barto@gmx.net>
1727 Sergio Durigan Junior <sergiodj@redhat.com>
1728
1729 PR win32/24284
1730 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
1731
d8f27c60
AB
17322019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1733
1734 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
1735 when searching for types.
1736
1f20c35e
AB
17372019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1738
1739 * f-lang.c (f_language_defn): Use f_print_typedef.
1740 * f-lang.h (f_print_typedef): Declare.
1741 * f-typeprint.c (f_print_typedef): Define.
1742
550105b7
CB
17432019-08-27 Christian Biesinger <cbiesinger@google.com>
1744
1745 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
1746
4acfdd20
AB
17472019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
1748
1749 * cli/cli-utils.c (info_print_options_defs): Delete.
1750 (make_info_print_options_def_group): Delete.
1751 (extract_info_print_options): Delete.
1752 (info_print_command_completer): Delete.
1753 (info_print_args_help): Add extra parameter, and optionally
1754 include text about -n flag.
1755 * cli/cli-utils.h (struct info_print_options): Delete.
1756 (extract_info_print_options): Delete declaration.
1757 (info_print_command_completer): Delete declaration.
1758 (info_print_args_help): Add extra parameter, extend header
1759 comment.
1760 * python/python.c (gdbpy_rbreak): Pass additional parameter to
1761 search_symbols.
1762 * stack.c (struct info_print_options): New type.
1763 (info_print_options_defs): New file scoped variable.
1764 (make_info_print_options_def_group): New static function.
1765 (info_print_command_completer): New static function.
1766 (info_locals_command): Update to use new local functions.
1767 (info_args_command): Likewise.
1768 (_initialize_stack): Add extra parameter to calls to
1769 info_print_args_help.
1770 * symtab.c (search_symbols): Add extra parameter, use this to
1771 possibly excluse non-debug symbols.
1772 (symtab_symbol_info): Add extra parameter, which is passed on to
1773 search_symbols.
1774 (struct info_print_options): New type.
1775 (info_print_options_defs): New file scoped variable.
1776 (make_info_print_options_def_group): New static function.
1777 (info_print_command_completer): New static function.
1778 (info_variables_command): Update to use local functions, and pass
1779 extra parameter through to symtab_symbol_info.
1780 (info_functions_command): Likewise.
1781 (info_types_command): Pass additional argument through to
1782 symtab_symbol_info.
1783 (rbreak_command): Pass extra argument to search_symbols.
1784 (_initialize_symtab): Add extra arguments for calls to
1785 info_print_args_help, and update help text for 'info variables',
1786 'whereis', and 'info functions' commands.
1787 * symtab.h (search_symbols): Add extra argument to declaration.
1788 * NEWS: Mention new flags.
1789
9aa55206
CB
17902019-08-26 Christian Biesinger <cbiesinger@google.com>
1791
1792 * symtab.c (lookup_static_symbol): Call the new function (and move
1793 it down to be next to lookup_global_symbol).
1794 (struct global_sym_lookup_data): Add block_enum member and rename to...
1795 (struct global_or_static_sym_lookup_data): ...this.
1796 (lookup_symbol_global_iterator_cb): Pass block_index instead of
1797 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
1798 (lookup_symbol_global_or_static_iterator_cb): ...this.
1799 (lookup_global_or_static_symbol): New function.
1800 (lookup_global_symbol): Call new function.
1801
5c31b358
TV
18022019-08-26 Tom de Vries <tdevries@suse.de>
1803
1804 PR c++/24852
1805 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
1806 when pc_probe.prob == NULL.
1807
23c13d42
SM
18082019-08-25 Simon Marchi <simon.marchi@efficios.com>
1809
1810 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
1811 variable symbol_linkage to symbol_linkage_.
1812
beadd3e8
SM
18132019-08-25 Simon Marchi <simon.marchi@efficios.com>
1814
1815 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
1816 represent whether the symbol is static, dynamic, or we don't
1817 know.
1818
e3ec872f
YS
18192019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
1820
1821 * gdb/rx-tdep.c (rx_register_names): New.
1822 (rx_register_name): Delete.
1823 (rx_psw_type): Delete.
1824 (rx_fpsw_type): Delete.
1825 (rx_register_type): Delete.
1826 (rx_gdbarch_init): Convert target-descriptions.
1827 (_initialize_rx_tdep): Add initialize_tdesc_rx.
1828 * gdb/features/Makefile: Add rx.xml.
1829 * gdb/features/rx.xml: New.
1830 * gdb/features/rx.c: Generated.
1831 * gdb/NEWS: Mention target description support.
1832
d0509ba4
CB
18332019-08-22 Christian Biesinger <cbiesinger@google.com>
1834
1835 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
1836 *slot_ptr.
1837
2d41fa11
SDJ
18382019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1839
1840 * configure.ac: Don't check for 'dlfcn.h' (moved to
1841 gdbsupport/common.m4).
1842 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
1843 'gdbsupport/'.
1844 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
1845 * compile/compile-c-support.c: Include
1846 'gdbsupport/gdb-dlfcn.h'.
1847 * gdbsupport/common.m4: Check for 'dlfcn.h'.
1848 * gdb-dlfcn.c: Move to...
1849 * gdbsupport/gdb-dlfcn.c: ... here.
1850 * gdb-dlfcn.h: Move to...
1851 * gdbsupport/gdb-dlfcn.h: ... here.
1852
de8af808
SL
18532019-08-23 Sandra Loosemore <sandra@codesourcery.com>
1854
1855 * nios2-tdep.c (struct reg_value): Improve comments. Make
1856 the offset field signed.
1857
27204489
CB
18582019-08-22 Christian Biesinger <cbiesinger@google.com>
1859
1860 * python/lib/gdb/__init__.py (_execute_file): New function.
1861 * python/python.c (python_run_simple_file): Call gdb._execute_file
1862 on Windows.
1863
43771869
AB
18642019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
1865
1866 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
1867 all uses as this was never set to anything but a zero value.
1868
26c957f1
PA
18692019-08-21 Bogdan Harjoc <harjoc@gmail.com>
1870
1871 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
1872
c07aae6e
CB
18732019-08-21 Christian Biesinger <cbiesinger@google.com>
1874
1875 * tui/tui-data.h (tui_gen_win_info): Add an =default
1876 move constructor, required by some GCC versions.
1877
3960cb7a
JF
18782019-08-21 Jinke Fan <fanjinke51@yeah.net>
1879
1880 * go32-nat.c (go32_sysinfo): Add hygon_p.
1881
04c72a68
TT
18822019-08-20 Tom Tromey <tom@tromey.com>
1883
1884 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
1885 line_from_reg_element_no, first_reg_element_no_inline,
1886 display_all_data, delete_data_content_windows,
1887 erase_data_content>: Now private.
1888
072272ce
TT
18892019-08-20 Tom Tromey <tom@tromey.com>
1890
1891 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
1892 (tui_unhighlight_win, tui_highlight_win)
1893 (tui_win_info::make_window): Update.
1894 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
1895
973961bd
TT
18962019-08-20 Tom Tromey <tom@tromey.com>
1897
1898 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1899 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1900 (MAX_PID_WIDTH): Move to tui-stack.c.
1901 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1902 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1903 (MAX_PID_WIDTH): Move from tui-data.h.
1904
ab0e1f1a
TT
19052019-08-20 Tom Tromey <tom@tromey.com>
1906
1907 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
1908 * tui/tui-wingeneral.c (box_win): Change type of win_info.
1909 (box_win): Update.
1910 (tui_gen_win_info::make_window): Rename from tui_make_window.
1911 (tui_win_info::make_window): New method.
1912 (tui_gen_win_info::make_visible): Update.
1913 * tui/tui-source.c (tui_source_window::set_contents): Update.
1914 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1915 (tui_data_window::display_registers_from): Update.
1916 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1917 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
1918 Declare.
1919 <can_box>: Remove.
1920 <title>: Remove.
1921 (struct tui_win_info) <make_window>: Declare.
1922 <can_box>: Now virtual.
1923 <title>: New member.
1924 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
1925 * tui/tui-command.c (tui_cmd_window::resize): Update.
1926
100c2bf3
TT
19272019-08-20 Tom Tromey <tom@tromey.com>
1928
1929 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
1930 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1931 (tui_data_window::check_register_values): Update.
1932
fa4dc567
TT
19332019-08-20 Tom Tromey <tom@tromey.com>
1934
1935 * tui/tui-regs.h (struct tui_data_window): Use
1936 DISABLE_COPY_AND_ASSIGN.
1937 <regs_content>: Change type, removing unique_ptr.
1938 <tui_data_window>: Add move constructor.
1939 * tui/tui-regs.c (tui_data_window::show_registers)
1940 (tui_data_window::show_register_group)
1941 (tui_data_window::display_registers_from)
1942 (tui_data_window::display_registers_from)
1943 (tui_data_window::first_data_item_displayed)
1944 (tui_data_window::delete_data_content_windows)
1945 (tui_data_window::rerender, tui_data_window::refresh_window)
1946 (tui_data_window::check_register_values): Update.
1947
ca02d7c8
TT
19482019-08-20 Tom Tromey <tom@tromey.com>
1949
1950 * tui/tui-regs.h (struct tui_data_window) <show_registers,
1951 show_register_group>: Declare.
1952 (tui_show_register_group): Don't declare.
1953 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
1954 tui_show_registers.
1955 (tui_data_window::show_register_group): Rename from
1956 tui_show_register_group.
1957 (tui_data_window::check_register_values, tui_reg_command):
1958 Update.
1959 * tui/tui-layout.c (tui_set_layout): Update.
1960
63356bfd
TT
19612019-08-20 Tom Tromey <tom@tromey.com>
1962
1963 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
1964 Declare.
1965 (tui_check_register_values): Don't declare.
1966 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
1967 from tui_check_register_values.
1968 * tui/tui-hooks.c (tui_register_changed): Update.
1969
42cc14a7
TT
19702019-08-20 Tom Tromey <tom@tromey.com>
1971
1972 * tui/tui-regs.c (tui_reg_layout): Move later.
1973 (tui_show_registers): Don't enable TUI mode or change layout.
1974
b9ad3686
TT
19752019-08-20 Tom Tromey <tom@tromey.com>
1976
1977 * tui/tui-regs.h (struct tui_data_item_window)
1978 <~tui_data_item_window>: Remove.
1979 <content>: Now a unique_xmalloc_ptr.
1980 * tui/tui-regs.c (tui_register_format): Return a
1981 unique_xmalloc_ptr.
1982 (tui_get_register): Update.
1983 (~tui_data_item_window): Remove.
1984 (tui_data_window::display_registers_from, tui_display_register):
1985 Update.
1986 * tui/tui-io.h (tui_expand_tabs): Update.
1987 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
1988 Remove "col" parameter.
1989
8e114aab
TT
19902019-08-20 Tom Tromey <tom@tromey.com>
1991
1992 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
1993 field.
1994 * tui/tui-regs.c (~tui_data_item_window): Update.
1995
1a4f81dd
TT
19962019-08-20 Tom Tromey <tom@tromey.com>
1997
1998 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
1999 earlier.
2000
0f8d8876
TT
20012019-08-20 Tom Tromey <tom@tromey.com>
2002
2003 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
2004
605dc2c2
TT
20052019-08-20 Tom Tromey <tom@tromey.com>
2006
2007 * tui/tui-source.h (struct tui_source_window): Update.
2008 * tui/tui-regs.c (tui_show_registers): Update.
2009 * tui/tui-disasm.h (struct tui_disasm_window): Update.
2010 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
2011 (NO_REGS_STRING): Remove defines.
2012
aedbe3bb
CM
20132019-08-20 Conrad Meyer <cem@FreeBSD.org>
2014
2015 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
2016 unnecessary thread walk if remote doesn't support the packet.
2017
7ce8f214
TT
20182019-08-19 Tom Tromey <tromey@adacore.com>
2019
2020 * python/py-value.c (value_has_field): Fix indentation.
2021
f21c2bd7
TT
20222019-08-19 Tom Tromey <tromey@adacore.com>
2023
2024 * printcmd.c (do_one_display, info_display_command): Update.
2025 * block.h (contained_in): Return bool. Add allow_nested
2026 parameter.
2027 * block.c (contained_in): Return bool. Add allow_nested
2028 parameter.
2029
d806ea2d
TT
20302019-08-19 Tom Tromey <tom@tromey.com>
2031
2032 * configure: Rebuild.
2033 * configure.ac: Disallow the combination of -static-libstdc++ and
2034 source highlight.
2035 * source-cache.c (get_language_name): Handle rust.
2036 (source_cache::get_source_lines): Ignore highlighting exceptions.
2037
398fdd60
TT
20382019-08-16 Tom Tromey <tom@tromey.com>
2039
2040 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
2041 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
2042 (struct tui_source_window_base) <make_visible, refresh_window,
2043 resize>: Remove methods.
2044 <execution_info>: Remove field.
2045 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
2046 (tui_show_source_line, tui_source_window_base)
2047 (~tui_source_window_base): Update.
2048 (tui_source_window_base::resize)
2049 (tui_source_window_base::make_visible)
2050 (tui_source_window_base::refresh_window): Remove.
2051 (tui_source_window_base::update_exec_info): Update.
2052 * tui/tui-source.c (tui_source_window::set_contents): Update.
2053 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2054
e699d331
TT
20552019-08-16 Tom Tromey <tom@tromey.com>
2056
2057 * tui/tui-hooks.c (tui_remove_hooks): Don't set
2058 deprecated_query_hook.
2059
bb01dbfc
TT
20602019-08-16 Tom Tromey <tom@tromey.com>
2061
2062 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2063 (tui_update_source_windows_with_line): Update.
2064 * tui/tui-source.h (struct tui_source_window)
2065 <show_symtab_source>: Declare.
2066 (tui_show_symtab_source): Don't declare.
2067 * tui/tui-source.c (tui_show_symtab_source): Rename from
2068 tui_show_symtab_source.
2069
81c82c4b
TT
20702019-08-16 Tom Tromey <tom@tromey.com>
2071
2072 * tui/tui-winsource.h (struct tui_source_window_base)
2073 <set_contents>: Declare.
2074 * tui/tui-winsource.c
2075 (tui_source_window_base::update_source_window_as_is): Update.
2076 * tui/tui-source.h (struct tui_source_window) <set_contents>:
2077 Declare.
2078 (tui_set_source_content): Don't declare.
2079 * tui/tui-source.c (tui_source_window::set_contents): Rename from
2080 tui_set_source_content.
2081 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
2082 Declare.
2083 (tui_set_disassem_content): Don't declare.
2084 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
2085 tui_set_disassem_content.
2086
2ddaf614
TT
20872019-08-16 Tom Tromey <tom@tromey.com>
2088
2089 * tui/tui-winsource.h (struct tui_source_window_base)
2090 <update_breakpoint_info>: Declare.
2091 (tui_update_breakpoint_info): Don't declare.
2092 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
2093 (tui_update_all_breakpoint_info): Update.
2094 (tui_source_window_base::update_breakpoint_info): Rename from
2095 tui_update_breakpoint_info.
2096 (tui_source_window_base::update_exec_info): Update.
2097
017f9828
TT
20982019-08-16 Tom Tromey <tom@tromey.com>
2099
2100 * tui/tui-winsource.h (struct tui_source_window_base)
2101 <update_source_window>: Declare.
2102 (tui_update_source_window): Don't declare.
2103 * tui/tui-winsource.c
2104 (tui_source_window_base::update_source_window): Rename from
2105 tui_update_source_window.
2106 (tui_source_window_base::rerender): Update.
2107 * tui/tui-source.c (tui_source_window::maybe_update): Update.
2108 * tui/tui-disasm.c (tui_show_disassem)
2109 (tui_show_disassem_and_update_source)
2110 (tui_disasm_window::maybe_update): Update.
2111
ed8358e9
TT
21122019-08-16 Tom Tromey <tom@tromey.com>
2113
2114 * tui/tui-winsource.h (struct tui_source_window_base)
2115 <update_source_window_as_is>: Declare.
2116 (tui_update_source_window_as_is): Don't declare.
2117 * tui/tui-winsource.c (tui_update_source_window): Update
2118 (tui_source_window_base::update_source_window_as_is): Rename from
2119 tui_update_source_window_as_is.
2120 (tui_source_window_base::refill): Update.
2121 * tui/tui-source.c (tui_show_symtab_source): Update.
2122 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
2123 Update.
2124
20149b6b
TT
21252019-08-16 Tom Tromey <tom@tromey.com>
2126
2127 * tui/tui-winsource.h (tui_update_source_window)
2128 (tui_update_source_window_as_is): Remove "noerror" parameter.
2129 * tui/tui-winsource.c (tui_update_source_window)
2130 (tui_update_source_window_as_is): Remove "noerror" parameter.
2131 (tui_update_source_windows_with_addr)
2132 (tui_update_source_windows_with_line)
2133 (tui_source_window_base::rerender)
2134 (tui_source_window_base::refill): Update.
2135 * tui/tui-source.h (tui_set_source_content)
2136 (tui_show_symtab_source): Remove "noerror" parameter.
2137 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
2138 parameter.
2139 (tui_show_symtab_source): Likewise.
2140 (tui_source_window::maybe_update): Update.
2141 * tui/tui-disasm.c (tui_show_disassem)
2142 (tui_show_disassem_and_update_source)
2143 (tui_disasm_window::do_scroll_vertical)
2144 (tui_disasm_window::maybe_update): Update.
2145
2d83e710
TT
21462019-08-16 Tom Tromey <tom@tromey.com>
2147
2148 * tui/tui.c (tui_is_window_visible): Update.
2149 * tui/tui-wingeneral.c (tui_make_window)
2150 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
2151 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
2152 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
2153 (tui_set_win_height_command, parse_scrolling_args): Update.
2154 * tui/tui-source.c (tui_source_window::style_changed): Update.
2155 * tui/tui-regs.c (tui_show_registers)
2156 (tui_data_window::first_data_item_displayed)
2157 (tui_data_window::delete_data_content_windows)
2158 (tui_check_register_values, tui_reg_command): Update.
2159 * tui/tui-disasm.c (tui_show_disassem): Update.
2160 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
2161 method.
2162 <is_visible>: Remove field.
2163 * tui/tui-data.c (tui_next_win, tui_prev_win)
2164 (tui_delete_invisible_windows): Update.
2165
d4ab829a
TT
21662019-08-16 Tom Tromey <tom@tromey.com>
2167
2168 * tui/tui-winsource.h (struct tui_source_window_base)
2169 <m_has_locator>: Remove.
2170 * tui/tui-layout.c (show_source_disasm_command, show_data)
2171 (show_source_or_disasm_and_command): Update.
2172
aa7ca1bb
AH
21732019-08-16 Alan Hayward <alan.hayward@arm.com>
2174
2175 * NEWS (Other MI changes): New subsection.
2176 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
2177 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
2178 * arch-utils.c (default_get_pc_address_flags): New function.
2179 * arch-utils.h (default_get_pc_address_flags): New declaration.
2180 * gdbarch.sh: Add get_pc_address_flags.
2181 * gdbarch.c: Regenerate.
2182 * gdbarch.h: Likewise.
2183 * stack.c (print_pc): New function.
2184 (print_frame_info) (print_frame): Call print_pc.
2185
6eac171f
TV
21862019-08-16 Tom de Vries <tdevries@suse.de>
2187
2188 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
2189 print_objfile_section_info.
2190
3df505f6
TT
21912019-08-15 Tom Tromey <tom@tromey.com>
2192
2193 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
2194 calling update_cmdwin_start_line.
2195 * tui/tui-winsource.h (struct tui_source_window_base)
2196 <do_make_visible_with_new_height, set_new_height>: Don't declare.
2197 <rerender>: Declare.
2198 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
2199 Call rerender.
2200 (tui_source_window_base::set_new_height): Remove.
2201 (tui_source_window_base::rerender): Rename from
2202 do_make_visible_with_new_height.
2203 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
2204 resize method.
2205 (tui_win_info::make_invisible_and_set_new_height)
2206 (tui_win_info::make_visible_with_new_height): Remove.
2207 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
2208 Declare.
2209 * tui/tui-stack.c (tui_locator_window::rerender): New method.
2210 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
2211 do_make_visible_with_new_height>: Don't declare.
2212 <rerender>: Declare.
2213 * tui/tui-regs.c (tui_data_window::rerender): Rename from
2214 set_new_height.
2215 (tui_data_window::do_make_visible_with_new_height): Remove.
2216 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
2217 call tui_show_locator_content.
2218 (tui_gen_win_info::resize): Call rerender.
2219 (show_source_or_disasm_and_command): Don't call
2220 tui_show_locator_content.
2221 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
2222 method.
2223 (struct tui_win_info) <rerender>: Declare.
2224 <set_new_height, make_invisible_and_set_new_height,
2225 make_visible_with_new_height>: Don't declare.
2226 * tui/tui-data.c (tui_win_list::rerender): New method.
2227 * tui/tui-command.h (struct tui_cmd_window)
2228 <do_make_visible_with_new_height>: Don't declare.
2229 * tui/tui-command.c
2230 (tui_cmd_window::do_make_visible_with_new_height): Remove.
2231
272560b5
TT
22322019-08-15 Tom Tromey <tromey@adacore.com>
2233
2234 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
2235 * ada-lang.c (ada_enum_name): Likewise.
2236
08235187
CB
22372019-08-15 Christian Biesinger <cbiesinger@google.com>
2238
2239 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
2240 leading underscore.
2241 (GdbOutputErrorFile): Likewise.
2242 (global scope): Adjust constructor calls to GdbOutput{,Error}File
2243 accordingly.
2244 (execute_unwinders): Rename to have a leading underscore.
2245 (auto_load_packages): Likewise.
2246 (global scope): Adjust call to auto_load_packages accordingly.
2247 (GdbSetPythonDirectory): Likewise.
2248 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
2249 instead of execute_unwinders.
2250
db502012
TT
22512019-08-15 Tom Tromey <tom@tromey.com>
2252
2253 * tui/tui-layout.c (show_layout, show_source_disasm_command)
2254 (show_data): Don't change window visibility.
2255 (tui_gen_win_info::resize): Remove special case for command
2256 window. Use wresize, when available.
2257 (show_source_or_disasm_and_command): Don't change window
2258 visibility.
2259 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
2260 <make_visible>: New method.
2261 * tui/tui-command.c (tui_cmd_window::resize): New method.
2262
3891b65e
TT
22632019-08-15 Tom Tromey <tom@tromey.com>
2264
2265 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
2266 (struct tui_source_windows): New.
2267 * tui/tui-winsource.c (tui_display_main): Update.
2268 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2269 (new_height_ok, parse_scrolling_args): Update.
2270 * tui/tui-layout.c (show_layout, show_data): Update.
2271 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
2272 (tui_add_to_source_windows): Don't declare.
2273 * tui/tui-data.c (source_windows, tui_source_windows)
2274 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
2275
ee556432
TT
22762019-08-15 Tom Tromey <tom@tromey.com>
2277
2278 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
2279 Rename from reset.
2280 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
2281 * tui/tui-layout.c (show_source_disasm_command, show_data):
2282 Update.
2283 (tui_gen_win_info::resize): Rename.
2284 (show_source_or_disasm_and_command): Update.
2285 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
2286 reset.
2287
46f438e3
TT
22882019-08-15 Tom Tromey <tom@tromey.com>
2289
2290 * tui/tui-stack.c (tui_initialize_static_data): Remove.
2291 * tui/tui-interp.c (tui_interp::init): Don't call
2292 tui_initialize_static_data.
2293 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
2294
f4ce562c
TT
22952019-08-15 Tom Tromey <tom@tromey.com>
2296
2297 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
2298 examine tui_win_list.
2299
c398c3d0
TT
23002019-08-15 Tom Tromey <tom@tromey.com>
2301
2302 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
2303 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
2304 tui_clear_source_content.
2305 (tui_clear_source_content): Remove.
2306 (tui_source_window_base::do_erase_source_content): Hoist call to
2307 content.clear().
2308 * tui/tui-stack.c (tui_show_frame_info): Don't call
2309 tui_clear_source_content.
2310
e25d2004
TT
23112019-08-15 Tom Tromey <tom@tromey.com>
2312
2313 * tui/tui-winsource.h (struct tui_source_window_base)
2314 <do_erase_source_content>: New method.
2315 <erase_source_content>: New method.
2316 (tui_erase_source_content): Don't declare.
2317 * tui/tui-winsource.c (tui_clear_source_content): Update.
2318 (tui_source_window_base::do_erase_source_content): Rename from
2319 tui_erase_source_content.
2320 (tui_source_window_base::show_source_content): Update.
2321 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2322 * tui/tui-source.h (struct tui_source_window)
2323 <erase_source_content>: New method.
2324 * tui/tui-disasm.h (struct tui_disasm_window)
2325 <erase_source_content>: New method.
2326
002f15c2
TT
23272019-08-15 Tom Tromey <tom@tromey.com>
2328
2329 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
2330 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
2331 constructor.
2332 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
2333 * tui/tui-source.c (tui_set_source_content): Update.
2334 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2335
c9033fe8
TT
23362019-08-15 Tom Tromey <tom@tromey.com>
2337
2338 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
2339 * tui/tui-winsource.c (tui_line_is_displayed): Move to
2340 tui-source.c.
2341 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
2342 Declare.
2343 * tui/tui-source.c (tui_source_window::line_is_displayed): New
2344 method.
2345 (tui_source_window::maybe_update): Update.
2346
088f37dd
TT
23472019-08-15 Tom Tromey <tom@tromey.com>
2348
2349 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
2350 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
2351 tui-disasm.c.
2352 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
2353 Declare.
2354 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
2355 method.
2356 (tui_disasm_window::maybe_update): Update.
2357
a54700c6
TT
23582019-08-15 Tom Tromey <tom@tromey.com>
2359
2360 * tui/tui-winsource.h (struct tui_source_window_base)
2361 <maybe_update>: Declare.
2362 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
2363 method.
2364 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
2365 Declare.
2366 * tui/tui-source.c (tui_source_window::maybe_update): New method.
2367 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
2368 Declare.
2369 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
2370
e2a678a5
TT
23712019-08-15 Tom Tromey <tom@tromey.com>
2372
2373 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
2374
f2dda477
TT
23752019-08-15 Tom Tromey <tom@tromey.com>
2376
2377 * tui/tui-wingeneral.c: Include tui-stack.h.
2378 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
2379 (struct tui_locator_window): Move from tui-data.h.
2380 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
2381 (tui_initialize_static_data): Move from tui-data.c.
2382 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
2383 (struct tui_locator_window): Move to tui-stack.c.
2384 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
2385 (tui_initialize_static_data): Move to tui-stack.c.
2386
ed4a1084
TT
23872019-08-15 Tom Tromey <tom@tromey.com>
2388
2389 * tui/tui-layout.c (show_source_disasm_command)
2390 (show_source_or_disasm_and_command): Use make_visible method, not
2391 tui_make_window.
2392 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
2393 Remove.
2394
65962b20
TT
23952019-08-15 Tom Tromey <tom@tromey.com>
2396
2397 * tui/tui-wingeneral.h (tui_make_window): Update.
2398 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
2399 parameter.
2400 (tui_gen_win_info::make_visible): Update.
2401 * tui/tui-regs.c (tui_data_window::display_registers_from):
2402 Update.
2403 * tui/tui-layout.c (show_source_disasm_command)
2404 (show_source_or_disasm_and_command): Update.
2405 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
2406 (enum tui_box): Remove.
2407 (struct tui_win_info) <can_box>: New method.
2408 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
2409 method.
2410
2208ee91
TV
24112019-08-15 Tom de Vries <tdevries@suse.de>
2412
2413 * linux-nat-trad.c: Include gdbarch.h.
2414
75faf5c4
AH
24152019-08-14 Alan Hayward <alan.hayward@arm.com>
2416
2417 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
2418 register sizes.
2419
b1c896b3
TT
24202019-08-14 Tom Tromey <tromey@adacore.com>
2421
2422 * darwin-nat.c: Include gdbarch.h.
2423 * darwin-nat-info.c: Include gdbarch.h.
2424
6405cd73
TT
24252019-08-13 Tom Tromey <tom@tromey.com>
2426
2427 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
2428 Remove.
2429 * tui/tui-data.c (tui_initialize_static_data): Update.
2430
5216580d
TT
24312019-08-13 Tom Tromey <tom@tromey.com>
2432
2433 * tui/tui-winsource.h (struct tui_exec_info_window)
2434 <~tui_exec_info_window, maybe_allocate_content, get_content,
2435 m_content>: Remove.
2436 (struct tui_source_window_base) <set_exec_info_content,
2437 show_exec_info_content>: Don't declare.
2438 * tui/tui-winsource.c
2439 (tui_exec_info_window::maybe_allocate_content): Remove.
2440 (tui_source_window_base::update_exec_info): Rename from
2441 set_exec_info_content.
2442 (tui_source_window_base::show_exec_info_content)
2443 (tui_source_window_base::update_exec_info): Remove.
2444
93858ad3
TT
24452019-08-13 Tom Tromey <tom@tromey.com>
2446
2447 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
2448 declare.
2449 * tui/tui-winsource.c (tui_update_source_window_as_is)
2450 (tui_update_source_windows_with_addr, tui_erase_source_content):
2451 Update.
2452 (tui_clear_exec_info_content): Remove.
2453
e321e7ce
TT
24542019-08-13 Tom Tromey <tom@tromey.com>
2455
2456 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
2457 declare.
2458 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
2459 call tui_erase_exec_info_content.
2460 (tui_clear_exec_info_content): Rename from
2461 tui_erase_exec_info_content.
2462 (tui_clear_exec_info_content): Delete.
2463
8270ac62
TT
24642019-08-13 Tom Tromey <tom@tromey.com>
2465
2466 * tui/tui-winsource.h (struct tui_source_window_base)
2467 <show_exec_info_content>: Declare.
2468 (tui_show_exec_info_content): Don't declare.
2469 * tui/tui-winsource.c
2470 (tui_source_window_base::show_exec_info_content): Rename from
2471 tui_show_exec_info_content.
2472 (tui_source_window_base::update_exec_info): Update.
2473
7b56485d
TT
24742019-08-13 Tom Tromey <tom@tromey.com>
2475
2476 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
2477 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
2478 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
2479 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
2480 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
2481 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
2482 ... here.
2483
7ba913dc
TT
24842019-08-13 Tom Tromey <tom@tromey.com>
2485
2486 * tui/tui-winsource.h (struct tui_source_window_base)
2487 <update_exec_info>: Declare.
2488 (tui_update_exec_info): Don't declare.
2489 * tui/tui-winsource.c (tui_update_source_window_as_is)
2490 (tui_source_window_base::refresh_all)
2491 (tui_update_all_breakpoint_info): Update.
2492 (tui_source_window_base::update_exec_info): Rename from
2493 tui_update_exec_info.
2494 * tui/tui-stack.c (tui_show_frame_info): Update.
2495
37a4a131
TT
24962019-08-13 Tom Tromey <tom@tromey.com>
2497
2498 * tui/tui-winsource.h (struct tui_source_window_base)
2499 <set_exec_info_content>: Declare.
2500 (tui_set_exec_info_content): Don't declare.
2501 * tui/tui-winsource.c
2502 (tui_source_window_base::set_exec_info_content): Rename from
2503 tui_set_exec_info_content.
2504 (tui_update_exec_info): Update.
2505
0bd27e07
TT
25062019-08-13 Tom Tromey <tom@tromey.com>
2507
2508 * tui/tui-winsource.h (struct tui_source_window_base)
2509 <show_source_content>: Declare.
2510 (tui_show_source_content): Don't declare.
2511 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2512 (tui_source_window_base::show_source_content): Rename from
2513 tui_show_source_content.
2514 (tui_source_window_base::refresh_all): Update.
2515 * tui/tui-layout.c (show_source_disasm_command)
2516 (show_source_or_disasm_and_command): Update.
2517
b4ef5aeb
TT
25182019-08-13 Tom Tromey <tom@tromey.com>
2519
2520 * tui/tui-winsource.c (tui_erase_source_content)
2521 (tui_show_source_content, tui_source_window_base::refresh_all):
2522 Update.
2523 * tui/tui-wingeneral.h
2524 (tui_check_and_display_highlight_if_needed): Don't declare.
2525 * tui/tui-wingeneral.c
2526 (tui_win_info::check_and_display_highlight_if_needed): Rename from
2527 check_and_display_highlight_if_needed.
2528 * tui/tui-win.c (tui_rehighlight_all)
2529 (tui_win_info::make_visible_with_new_height): Update.
2530 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2531 (tui_data_window::erase_data_content)
2532 (tui_data_window::display_all_data): Update.
2533 * tui/tui-data.h (struct tui_win_info)
2534 <check_and_display_highlight_if_needed>: Declare.
2535
fede5273
TT
25362019-08-13 Tom Tromey <tom@tromey.com>
2537
2538 * tui/tui-win.c (tui_resize_all): Call
2539 tui_delete_invisible_windows.
2540 * tui/tui-layout.c (show_layout): Call
2541 tui_delete_invisible_windows.
2542 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
2543 * tui/tui-data.c (tui_delete_invisible_windows): New function.
2544
22c3f490
TT
25452019-08-13 Tom Tromey <tom@tromey.com>
2546
2547 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
2548 tui_add_win_to_layout.
2549
16cb7910
TT
25502019-08-13 Tom Tromey <tom@tromey.com>
2551
2552 * tui/tui-layout.h (tui_default_win_height): Don't declare.
2553 * tui/tui-layout.c (tui_default_win_height): Now static.
2554
cc0c3ffb
TT
25552019-08-13 Tom Tromey <tom@tromey.com>
2556
2557 * tui/tui-layout.c (show_layout): Unify all layout cases into a
2558 single switch.
2559 (show_source_disasm_command, show_source_or_disasm_and_command):
2560 Don't check current layout.
2561
3f3ffe54
TT
25622019-08-13 Tom Tromey <tom@tromey.com>
2563
2564 * tui/tui-wingeneral.c (make_all_visible): Remove.
2565 (tui_make_all_invisible): Simplify.
2566 * tui/tui-layout.c (tui_make_all_invisible): Move from
2567 tui-wingeneral.c; simplify.
2568 (show_layout): Hoist call to tui_make_all_invisible.
2569 (show_data): Don't call tui_make_all_invisible.
2570
69258091
TT
25712019-08-13 Tom Tromey <tom@tromey.com>
2572
2573 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
2574 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
2575
62cf57fe
TT
25762019-08-13 Tom Tromey <tom@tromey.com>
2577
2578 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
2579 tui-data.c.
2580 (show_source_disasm_command, show_data)
2581 (show_source_or_disasm_and_command): Don't use
2582 tui_set_current_layout_to.
2583 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
2584 * tui/tui-data.c (current_layout, tui_current_layout): Move to
2585 tui-layout.c.
2586 (tui_set_current_layout_to): Remove.
2587
2afade5d
TT
25882019-08-13 Tom Tromey <tom@tromey.com>
2589
2590 * tui/tui-layout.c (tui_set_layout): Update.
2591 * tui/tui-data.h (struct tui_layout_def): Remove.
2592 (tui_layout_def): Don't declare.
2593 * tui/tui-data.c (layout_def): Remove.
2594 (tui_layout_def): Remove.
2595
a3504e96
TT
25962019-08-13 Tom Tromey <tom@tromey.com>
2597
2598 * tui/tui-winsource.h (struct tui_source_window_base)
2599 <clear_detail>: No longer "override".
2600 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
2601 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
2602 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
2603 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
2604 Remove.
2605 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
2606
29c92911
TT
26072019-08-13 Tom Tromey <tromey@adacore.com>
2608
2609 * tracepoint.c: Don't include readline.h or history.h.
2610
86c6b807
TT
26112019-08-12 Tom Tromey <tom@tromey.com>
2612
2613 * configure: Rebuild.
2614 * configure.ac: Check for readline 7.
2615 * NEWS: Mention readline 7 requirement.
2616 * README: Update.
2617
5db2718c
TT
26182019-08-12 Tom Tromey <tom@tromey.com>
2619
2620 * mingw-hdep.c (gdb_select): Remove readline hack.
2621
dac36daf
PFC
26222019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2623
2624 * blockframe.c (find_pc_partial_function): Set *block to nullptr
2625 when the function fails.
2626
1022c627
AA
26272019-08-09 Andreas Arnez <arnez@linux.ibm.com>
2628
2629 * s390-tdep.c (s390_type_align): New function.
2630 (s390_gdbarch_init): Set it as type_align gdbarch method.
2631
eba4caf2
TV
26322019-08-09 Tom de Vries <tdevries@suse.de>
2633
2634 PR gdb/24591
2635 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
2636 pc_low with relocation offset.
2637
123cd851
TT
26382019-08-07 Tom Tromey <tromey@adacore.com>
2639
2640 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2641 (print_frame_args): Update.
2642 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
2643 Update.
2644 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2645 * frame.h (struct frame_arg): Add initializers.
2646 <error>: Now a unique_xmalloc_ptr.
2647
3d31bc39
AH
26482019-08-07 Alan Hayward <alan.hayward@arm.com>
2649
2650 * NEWS: Expand the Pointer Authentication entry.
2651 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
2652 (aarch64_frame_unmask_lr): ... to this.
2653 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
2654 Call aarch64_frame_unmask_lr.
2655 * frame.c (struct frame_info): Add "masked" variable.
2656 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
2657 (fprint_frame): Check for masked pc.
2658 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
2659 declarations.
2660 * python/py-framefilter.c (py_print_frame): Check for masked pc.
2661 * stack.c (print_frame): Check for masked pc.
2662
0cf9feb9
TT
26632019-08-06 Tom Tromey <tom@tromey.com>
2664
2665 * stabsread.c (patch_block_stabs, read_one_struct_field)
2666 (read_enum_type): Use obstack_strndup.
2667 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
2668 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
2669 * dwarf2read.c (guess_full_die_structure_name)
2670 (anonymous_struct_prefix): Use obstack_strndup.
2671 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
2672 * c-exp.y (yylex): Use obstack_strndup.
2673 * ada-exp.y (write_object_renaming, write_ambiguous_var)
2674 (write_var_or_type): Use obstack_strndup.
2675
efba19b0
TT
26762019-08-06 Tom Tromey <tom@tromey.com>
2677
2678 * symfile.c (reread_symbols): Use obstack_strdup.
2679 * stabsread.c (read_type): Use obstack_strdup.
2680 * gdb_obstack.h (obstack_strdup): New overload.
2681 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
2682 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
2683 (dwarf2_canonicalize_name): Use obstack_strdup.
2684 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
2685 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
2686 Use obstack_strdup.
2687
f25102f7
TT
26882019-08-06 Tom Tromey <tom@tromey.com>
2689
2690 * gdb_obstack.h (obstack_strdup): Define.
2691 * gdb_obstack.c (obstack_strdup): Don't define.
2692
021887d8
TT
26932019-08-06 Tom Tromey <tom@tromey.com>
2694
2695 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
2696 obstack_strdup.
2697 * typeprint.c (typedef_hash_table::find_global_typedef): Use
2698 obstack_strdup.
2699 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
2700 * stabsread.c (common_block_start): Use obstack_strdup.
2701 * objfiles.c (set_objfile_main_name, objfile): Use
2702 obstack_strdup.
2703 * namespace.c (add_using_directive): Use obstack_strdup.
2704 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
2705 * jit.c (finalize_symtab): Use obstack_strdup.
2706 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
2707 (guess_partial_die_structure_name, partial_die_info::fixup)
2708 (dwarf2_name): Use obstack_strdup.
2709 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
2710 obstack_strdup.
2711 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
2712 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
2713 obstack_strdup.
2714 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
2715
d2834edc
PW
27162019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2717
2718 * unittests/help-doc-selftests.c: New file.
2719 * Makefile.in: Add the new file.
2720
590042fc
PW
27212019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2722
2723 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
2724 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
2725 the full first line, except when FOR_VALUE_PREFIX. In this case,
2726 the trailing '.' is not output, and the first character is uppercased.
2727 (print_help_for_command): Update call to print_doc_line.
2728 (print_doc_of_command): Likewise.
2729 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
2730 * cli/cli-option.c (append_indented_doc): Do not append newline.
2731 (build_help_option): Append newline after first appended_indented_doc
2732 only if a second call is done.
2733 (build_help): Append 2 new lines before each option, except the first
2734 one.
2735 * compile/compile.c (_initialize_compile): Add new lines after
2736 %OPTIONS%, when not at the end of the help.
2737 Change help doc or code
2738 producing the help doc to respect the invariants.
2739 * maint-test-options.c (_initialize_maint_test_options): Likewise.
2740 Also removed the new line after 'Options:', as all other commands
2741 do not put an empty line between 'Options:' and the first option.
2742 * printcmd.c (_initialize_printcmd): Likewise.
2743 * stack.c (_initialize_stack): Likewise.
2744 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
2745 incorrectly telling COMMAND is optional.
2746 * ada-lang.c (_initialize_ada_language): Change help doc or code
2747 producing the help doc to respect the invariants.
2748 * ada-tasks.c (_initialize_ada_tasks): Likewise.
2749 * breakpoint.c (_initialize_breakpoint): Likewise.
2750 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
2751 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
2752 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
2753 * cli/cli-style.c (cli_style_option::add_setshow_commands,
2754 _initialize_cli_style): Likewise.
2755 * corelow.c (core_target_info): Likewise.
2756 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
2757 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
2758 * filesystem.c (_initialize_filesystem): Likewise.
2759 * frame.c (_initialize_frame): Likewise.
2760 * gnu-nat.c (add_task_commands): Likewise.
2761 * infcall.c (_initialize_infcall): Likewise.
2762 * infcmd.c (_initialize_infcmd): Likewise.
2763 * interps.c (_initialize_interpreter): Likewise.
2764 * language.c (_initialize_language): Likewise.
2765 * linux-fork.c (_initialize_linux_fork): Likewise.
2766 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
2767 * maint.c (_initialize_maint_cmds): Likewise.
2768 * memattr.c (_initialize_mem): Likewise.
2769 * printcmd.c (_initialize_printcmd): Likewise.
2770 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
2771 _RegEx): Likewise.
2772 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
2773 * record-btrace.c (_initialize_record_btrace): Likewise.
2774 * record-full.c (_initialize_record_full): Likewise.
2775 * record.c (_initialize_record): Likewise.
2776 * regcache-dump.c (_initialize_regcache_dump): Likewise.
2777 * regcache.c (_initialize_regcache): Likewise.
2778 * remote.c (add_packet_config_cmd, init_remote_threadtests,
2779 _initialize_remote): Likewise.
2780 * ser-tcp.c (_initialize_ser_tcp): Likewise.
2781 * serial.c (_initialize_serial): Likewise.
2782 * skip.c (_initialize_step_skip): Likewise.
2783 * source.c (_initialize_source): Likewise.
2784 * stack.c (_initialize_stack): Likewise.
2785 * symfile.c (_initialize_symfile): Likewise.
2786 * symtab.c (_initialize_symtab): Likewise.
2787 * target-descriptions.c (_initialize_target_descriptions): Likewise.
2788 * top.c (init_main): Likewise.
2789 * tracefile-tfile.c (tfile_target_info): Likewise.
2790 * tracepoint.c (_initialize_tracepoint): Likewise.
2791 * tui/tui-win.c (_initialize_tui_win): Likewise.
2792 * utils.c (add_internal_problem_command): Likewise.
2793 * valprint.c (value_print_option_defs): Likewise.
2794
404f2902
FCE
27952019-08-06 Frank Ch. Eigler <fche@redhat.com>
2796
2797 PR build/24886
2798 * configure.ac: Drop enable-libmcheck support.
2799 * configure, config.in: Rebuild.
2800 * libmcheck.m4: Remove.
2801 * acinclude.m4: Don't include it.
2802 * Makefile.in: Don't distribute it.
2803 * top.c (print_gdb_configuration): Don't mention it.
2804
046bebe1
TT
28052019-08-06 Tom Tromey <tom@tromey.com>
2806
2807 * utils.c (set_output_style): Sometimes pass stream to
2808 emit_style_escape.
2809 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
2810 * record-btrace.c (btrace_insn_history): Update.
2811 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
2812 method.
2813 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
2814 Update initializers.
2815 <m_uiout>: New field.
2816 <m_di>: Move lower.
2817 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2818 Remove "uiout" parameter.
2819 (dump_insns): Update.
2820 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
2821 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
2822
ddbcedf5
CB
28232019-08-06 Christian Biesinger <cbiesinger@google.com>
2824
2825 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
2826 (error_in_psymtab_expansion): Likewise.
2827 (lookup_symbol_via_quick_fns): Likewise.
2828 (basic_lookup_transparent_type_quick): Likewise.
2829 (basic_lookup_transparent_type_1): Likewise.
2830
b08b16c8
TT
28312019-08-06 Tom Tromey <tromey@adacore.com>
2832
2833 * source.c (last_source_error): Now bool.
2834 (print_source_lines_base): Make "noprint" bool. Only open
2835 source file when last_source_visited changes.
2836
cb44333d
TT
28372019-08-06 Tom Tromey <tromey@adacore.com>
2838
2839 * annotate.c (annotate_source_line): Use g_source_cache.
2840 * source-cache.c (source_cache::get_plain_source_lines): Change
2841 parameters. Populate m_offset_cache.
2842 (source_cache::ensure): New method.
2843 (source_cache::get_line_charpos): New method.
2844 (extract_lines): Move lower. Change parameters.
2845 (source_cache::get_source_lines): Move lower.
2846 * source-cache.h (class source_cache): Update comment.
2847 <get_line_charpos>: New method.
2848 <get_source_lines>: Update comment.
2849 <clear>: Clear m_offset_cache.
2850 <get_plain_source_lines>: Change parameters.
2851 <ensure>: New method
2852 <m_offset_cache>: New member.
2853 * source.c (forget_cached_source_info_for_objfile): Update.
2854 (info_source_command): Use g_source_cache.
2855 (find_source_lines, open_source_file_with_line_charpos): Remove.
2856 (print_source_lines_base, search_command_helper): Use g_source_cache.
2857 * source.h (open_source_file_with_line_charpos): Don't declare.
2858 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
2859 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
2860 Use g_source_cache.
2861
872dceaa
TT
28622019-08-06 Tom Tromey <tromey@adacore.com>
2863
2864 * source-cache.c (source_cache::get_plain_source_lines):
2865 Remove "first_line" and "last_line" parameters.
2866 (source_cache::get_source_lines): Cache plain text.
2867 * source-cache.h (class source_cache)
2868 <get_plain_source_lines>: Update.
2869
269249d9
TT
28702019-08-06 Tom Tromey <tromey@adacore.com>
2871
2872 * source-cache.c (extract_lines): No longer a method.
2873 Changed type of parameter. Include final newline.
2874 (selftests::extract_lines_test): New function.
2875 (_initialize_source_cache): Likewise.
2876 * source-cache.h (class source_cache)
2877 <extract_lines>: Don't declare.
2878
c0e8dcd8
TT
28792019-08-06 Tom Tromey <tromey@adacore.com>
2880
2881 * breakpoint.c (init_breakpoint_sal): Update.
2882 (breakpoint): Update.
2883 * breakpoint.h (struct breakpoint) <filter>: Now a
2884 unique_xmalloc_ptr.
2885
0b27c27d
CB
28862019-08-05 Christian Biesinger <cbiesinger@google.com>
2887
2888 * NEWS: Mention dictionary access on blocks.
2889 * python/py-block.c (blpy_getitem): New function.
2890 (block_object_as_mapping): New struct.
2891 (block_object_type): Use new struct for tp_as_mapping field.
2892
4ee94178
CB
28932019-08-05 Christian Biesinger <cbiesinger@google.com>
2894
2895 * objfiles.h (objfile): Add a comment describing partial symbols.
2896
8abfcabc
TT
28972019-08-05 Tom Tromey <tromey@adacore.com>
2898
2899 * compile/compile.c (_initialize_compile): Use _(), not N_().
2900 * thread.c (_initialize_thread): Use _(), not N_().
2901 * stack.c (_initialize_stack): Use _(), not N_().
2902 * printcmd.c (_initialize_printcmd): Use _(), not N_().
2903
2b79f376
SM
29042019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2905
2906 * dwarf2read.c (struct dw2_symtab_iterator):
2907 <want_specific_block>: Remove.
2908 <block_index>: Change type to gdb::optional.
2909 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
2910 change type of BLOCK_INDEX parameter to gdb::optional.
2911 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
2912 (dw2_lookup_symbol): Don't pass argument for
2913 WANT_SPECIFIC_BLOCK.
2914 (dw2_expand_symtabs_for_function): Don't pass argument for
2915 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
2916 (class dw2_debug_names_iterator)
2917 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
2918 parameter, change BLOCK_INDEX type to gdb::optional.
2919 <m_want_specific_block>: Remove.
2920 <m_block_index>: Change type to gdb::optional.
2921 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
2922 gdb::optional. Re-write in function of gdb::optional.
2923 (dw2_debug_names_lookup_symbol): Don't pass argument for
2924 WANT_SPECIFIC_BLOCK.
2925 (dw2_debug_names_expand_symtabs_for_function): Don't pass
2926 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
2927 BLOCK_INDEX.
2928
ae60f04e
PW
29292019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2930
2931 * NEWS: Mention changes to "info sources" command.
2932
28cd9371
PW
29332019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2934
2935 * symtab.c (filename_partial_match_opts): New struct type.
2936 (struct output_source_filename_data): New members
2937 regexp, c_regexp, partial_match.
2938 (output_source_filename): Use new members to decide to print file.
2939 (info_sources_option_defs): New variable.
2940 (make_info_sources_options_def_group, print_info_sources_header,
2941 info_sources_command_completer):
2942 New functions.
2943 (info_sources_command): Read new optional arguments.
2944 (_initialize_symtab): Update info sources help.
2945
ca683e3a
AO
29462019-08-02 Alexandre Oliva <oliva@adacore.com>
2947
2948 * ada-lang.c (exception_support_info_v0): Renamed from...
2949 (default_exception_support_info): ... this. Create new
2950 definition for v1.
2951 (ada_has_this_exception_support): Look up catch_handlers_sym.
2952 (ada_exception_support_info_sniffer): Try v0 after default.
2953
f1264162
TT
29542019-08-01 Tom Tromey <tromey@adacore.com>
2955
2956 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
2957 gdbarch.h.
2958
0a7b2485
CB
29592019-08-01 Christian Biesinger <cbiesinger@google.com>
2960
2961 * s12z-tdep.c: Fix include path for s12z-opc.h.
2962
c6bdbeb7
AH
29632019-08-01 Alan Hayward <alan.hayward@arm.com>
2964
2965 * NEWS: Require GNU make 3.82.
2966
a2bd7b82
TT
29672019-07-16 Tom Tromey <tom@tromey.com>
2968
2969 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
2970 declare.
2971
aa3b6533
TT
29722019-07-30 Tom Tromey <tromey@adacore.com>
2973
2974 * block.c (contained_in): Remove BLOCK_FUNCTION check.
2975
a1530dc7
KB
29762019-07-30 Kevin Buettner <kevinb@redhat.com>
2977
2978 * printcmd.c (print_address_symbolic): Print negative offsets.
2979 (build_address_symbolic): Force signed arithmetic when computing
2980 offset.
2981
2906593f
CB
29822019-07-30 Christian Biesinger <cbiesinger@google.com>
2983
2984 PR/24474: Add a function to lookup static variables.
2985 * NEWS: Mention this new function.
2986 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
2987 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
2988 * python/python.c (python_GdbMethods): Add new function.
2989
c620ed88
CB
29902019-07-29 Christian Biesinger <cbiesinger@google.com>
2991
2992 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
2993 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
2994 (objfpy_lookup_static_symbol): New function.
2995 (objfile_object_methods): Add new functions.
2996
bc4268a5
PW
29972019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2998
2999 * NEWS: Mention 'set|show print frame-info'. Mention new
3000 'presence' value for 'frame-arguments'. Mention new '-frame-info'
3001 backtrace argument. Mention that python frame filtering code
3002 is now consistent with what 'backtrace' command prints.
3003
4b5e8d19
PW
30042019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3005
3006 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
3007 comments.
3008 (print_frame_info_auto, print_frame_info_source_line,
3009 print_frame_info_location, print_frame_info_source_and_location,
3010 print_frame_info_location_and_address, print_frame_info_short_location):
3011 New declarations.
3012 (struct frame_print_options): New member print_frame_info.
3013 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
3014 * stack.h (get_user_print_what_frame_info): New declaration.
3015 (frame_show_address): New declaration.
3016 * stack.c (print_frame_arguments_choices): New value 'presence'.
3017 (print_frame_info_auto, print_frame_info_source_line,
3018 print_frame_info_location, print_frame_info_source_and_location,
3019 print_frame_info_location_and_address, print_frame_info_short_location,
3020 print_frame_info_choices, print_frame_info_print_what): New definitions.
3021 (print_frame_args): Only print dots for args if print frame-arguments
3022 is 'presence'.
3023 (frame_print_option_defs): New element for "frame-info".
3024 (get_user_print_what_frame_info): New function.
3025 (frame_show_address): Make non static. Move comment to stack.h.
3026 (print_frame_info_to_print_what): New function.
3027 (print_frame_info): Update comment. Use fp_opts.print_frame_info
3028 to decide what to print.
3029 (backtrace_command_1): Handle the new print_frame_arguments_presence
3030 value.
3031 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
3032 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
3033 (py_print_frame): In non-mi mode, use LOCATION as default for
3034 print_what, similarly to frame information printed directly by
3035 backtrace command. Handle frame-info user option in non MI mode.
3036
6bdfee81
KB
30372019-07-27 Kevin Buettner <kevinb@redhat.com>
3038
3039 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
3040 Add case for debugging 32-bit target on 64-bit host. Revise
3041 comment.
3042
98a617f8
KB
30432019-07-27 Kevin Buettner <kevinb@redhat.com>
3044
3045 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
3046 instead of find_function_entry_range_from_pc.
3047
567238c9
KB
30482019-07-27 Kevin Buettner <kevinb@redhat.com>
3049
3050 * stack.c (find_frame_funname): Remove code which preferred
3051 minsym over symtab sym in "certain pathological cases".
3052
2dc80cf8
KB
3053 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
3054 parameter. Change type of "do_demangle" to bool.
3055 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3056 Pass suitable "prefer_sym_over_minsym" flag to
3057 build_address_symbolic(). Don't output "+" for negative offsets.
3058 * printcmd.c (print_address_symbolic): Update invocation of
3059 build_address_symbolic to include a "prefer_sym_over_minsym"
3060 flag.
3061 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
3062 Restrict cases in which use of minimal symbol is preferred to that
3063 of a found symbol. Update comments.
3064
1aff7173
KB
3065 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
3066 for entry pc when entry pc is out of range for that FDE.
3067
89b085ac
BC
30682019-07-26 Brian Callahan <bcallah@openbsd.org>
3069
3070 PR gdb/24839:
3071 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
3072 type.
3073
f32feb4a
CB
30742019-07-25 Christian Biesinger <cbiesinger@google.com>
3075
3076 * python/py-objfile.c (add_separate_debug_file): Fix comment about
3077 this function's Python signature.
3078
3079
30802019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
3081
3082 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
3083 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3084 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3085 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
3086 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
3087
3088
c54e4253
YS
30892019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
3090
3091 * h8300-tdep.c (h8300_register_name_common): New.
3092 h8300_register_name): Use h8300_register_name_common.
3093 (h8300s_register_name): Likewise.
3094 (h8300sx_register_name): Likewise.
3095 (h8300h_register_nam): New.
3096 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
3097
3098
40eadf04
SP
30992019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3100
3101 * arm-tdep.c (arm_skip_cmse_entry): New function.
3102 (arm_is_sgstubs_section): New function.
3103 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
3104
bfa2a36d
TT
31052019-07-22 Tom Tromey <tom@tromey.com>
3106
3107 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
3108 Don't self-assign.
3109
a8e9d247
AB
31102019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3111
3112 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
3113 type_print.
3114
eb86c5e2
AB
31152019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3116
3117 * symtab.c (search_symbols): Adjust msymbol matching type arrays
3118 so that GDB doesn't match any msymbols when searching in the
3119 TYPES_DOMAIN.
3120 (print_symbol_info): Print using typedef_print or type_print based
3121 on the type of the symbol. Add updated FIXME comment moved from...
3122 (_initialize_symtab): ... move and update FIXME comment to above.
3123
a8eab7c6
AB
31242019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3125
3126 * NEWS: Mention adding -q option to "info types".
3127 * symtab.c (struct info_types_options): New struct.
3128 (info_types_options_defs): New variable.
3129 (make_info_types_options_def_group): New function.
3130 (info_types_command): Use gdb::option framework to parse options.
3131 (info_types_command_completer): New function.
3132 (_initialize_symtab): Extend the help text on "info types" and
3133 register command completer.
3134
b4603c34
CB
31352019-07-21 Christian Biesinger <cbiesinger@google.com>
3136
3137 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
3138 (lookup_symbol_in_objfile): Change int to block_enum and add a
3139 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
3140
c8cdc1e0
CB
31412019-07-20 Christian Biesinger <cbiesinger@google.com>
3142
3143 * MAINTAINERS (Write After Approval): Add self.
3144
01e175fe
AB
31452019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
3146
3147 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
3148 instruction to the dummy code region.
3149
56f79b63
TT
31502019-07-19 Tom Tromey <tromey@adacore.com>
3151
3152 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
3153 (ARGSUSED, PARAMS, __func__): Remove rules.
3154
4c5aa8e0
AH
31552019-07-19 Alan Hayward <alan.hayward@arm.com>
3156
3157 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
3158 * features/arm/arm-with-iwmmxt.c: Remove.
3159 * features/arm/arm-with-iwmmxt.xml: Remove.
3160 * features/arm/arm-with-m-fpa-layout.c: Remove.
3161 * features/arm/arm-with-m-fpa-layout.xml: Remove.
3162 * features/arm/arm-with-m-vfp-d16.c: Remove.
3163 * features/arm/arm-with-m-vfp-d16.xml: Remove.
3164 * features/arm/arm-with-m.c: Remove.
3165 * features/arm/arm-with-m.xml: Remove.
3166 * features/arm/arm-with-neon.c: Remove.
3167 * features/arm/arm-with-neon.xml: Remove.
3168 * features/arm/arm-with-vfpv2.c: Remove.
3169 * features/arm/arm-with-vfpv2.xml: Remove.
3170 * features/arm/arm-with-vfpv3.c: Remove.
3171 * features/arm/arm-with-vfpv3.xml: Remove.
3172
f42b2617
AH
31732019-07-19 Alan Hayward <alan.hayward@arm.com>
3174
3175 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
3176
f29ec966
AH
31772019-07-19 Alan Hayward <alan.hayward@arm.com>
3178
3179 * arch/aarch32.c (aarch32_create_target_description): Create
3180 target descriptions using features.
3181 * arch/arm.c (arm_create_target_description)
3182 (arm_create_mprofile_target_description): Likewise.
3183 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
3184
d105cce5
AH
31852019-07-19 Alan Hayward <alan.hayward@arm.com>
3186
3187 * Makefile.in: Add new files.
3188 * aarch32-tdep.c: New file.
3189 * aarch32-tdep.h: New file.
3190 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3191 Call aarch32_read_description.
3192 * arch/aarch32.c: New file.
3193 * arch/aarch32.h: New file.
3194 * arch/arm.c (arm_create_target_description)
3195 (arm_create_mprofile_target_description): New function.
3196 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
3197 (arm_create_target_description)
3198 (arm_create_mprofile_target_description): New declaration.
3199 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
3200 read_description functions.
3201 * arm-linux-nat.c (arm_linux_nat_target::read_description):
3202 Likewise.
3203 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3204 * arm-tdep.c (tdesc_arm_list): New variable.
3205 (arm_register_g_packet_guesses): Call create description functions.
3206 (arm_read_description) (arm_read_mprofile_description): New
3207 function.
3208 * arm-tdep.h (arm_read_description)
3209 (arm_read_mprofile_description): Add declaration.
3210 * configure.tgt: Add new files.
3211
afe09f0b
GL
32122019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
3213
3214 * top.c (new_ui_command): Open specified terminal just once.
3215
cd215b2e
TT
32162019-07-18 Tom Tromey <tromey@adacore.com>
3217
3218 * symtab.c (main_name): Constify return type.
3219 * symfile.c (set_initial_language): Update.
3220 * symtab.h (main_name): Constify return type.
3221
d8f68fcb
TT
32222019-07-17 Tom Tromey <tom@tromey.com>
3223
3224 * tui/tui-winsource.c (tui_update_source_window)
3225 (tui_update_source_window_as_is)
3226 (tui_update_source_windows_with_line): Remove return.
3227 * tui/tui-disasm.c (tui_show_disassem)
3228 (tui_show_disassem_and_update_source): Remove return.
3229 * tui/tui.c (tui_reset): Remove return.
3230 * tui/tui-wingeneral.c
3231 (tui_check_and_display_highlight_if_needed): Remove return.
3232
ca5af91e
TT
32332019-07-17 Tom Tromey <tom@tromey.com>
3234
3235 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
3236
5104fe36
TT
32372019-07-17 Tom Tromey <tom@tromey.com>
3238
3239 * tui/tui-winsource.h (struct tui_exec_info_window)
3240 (struct tui_source_window_base): Move from tui-data.h.
3241 * tui/tui-winsource.c: Move many method definitions from
3242 elsewhere. Remove "structuring" comments.
3243 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
3244 (tui_source_window_base::refresh_window): Move to
3245 tui-winsource.c.
3246 * tui/tui-win.c (tui_source_window_base::refresh_all)
3247 (tui_source_window_base::update_tab_width)
3248 (tui_source_window_base::set_new_height)
3249 (tui_source_window_base::do_make_visible_with_new_height): Move to
3250 tui-winsource.c.
3251 * tui/tui-source.h: Update.
3252 * tui/tui-source.c (tui_source_window_base::reset): Move to
3253 tui-winsource.c.
3254 * tui/tui-disasm.h: Update.
3255 * tui/tui-data.h (struct tui_exec_info_window): Move to
3256 tui-winsource.h.
3257 (struct tui_source_window_base): Likewise.
3258 * tui/tui-data.c (tui_source_window_base::clear_detail)
3259 (tui_source_window_base, ~tui_source_window_base): Move to
3260 tui-winsource.c.
3261
daa15dde
TT
32622019-07-17 Tom Tromey <tom@tromey.com>
3263
3264 * tui/tui-win.c (tui_resize_all)
3265 (tui_source_window_base::update_tab_width)
3266 (tui_adjust_win_heights): Update.
3267 (tui_win_info::make_invisible_and_set_new_height): Rename from
3268 make_invisible_and_set_new_height.
3269 * tui/tui-data.h (struct tui_win_info)
3270 <make_invisible_and_set_new_height>: New method.
3271
bfad4537
TT
32722019-07-17 Tom Tromey <tom@tromey.com>
3273
3274 * tui/tui.c: Update.
3275 * tui/tui-source.h (struct tui_source_window): Move from
3276 tui-data.h.
3277 * tui/tui-layout.c: Update.
3278 * tui/tui-disasm.c: Update.
3279 * tui/tui-data.h (struct tui_source_window): Move to
3280 tui-source.h.
3281
88f7e873
TT
32822019-07-17 Tom Tromey <tom@tromey.com>
3283
3284 * tui/tui-disasm.h (struct tui_disasm_window): Move from
3285 tui-data.h.
3286 * tui/tui-data.h (struct tui_disasm_window): Move to
3287 tui-disasm.h.
3288
96bd6233
TT
32892019-07-17 Tom Tromey <tom@tromey.com>
3290
3291 * tui/tui-regs.h (struct tui_data_item_window): Move from
3292 tui-data.h.
3293 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
3294 * tui/tui-data.h (struct tui_data_item_window): Move to
3295 tui-regs.h.
3296 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
3297
ce38393b
TT
32982019-07-17 Tom Tromey <tom@tromey.com>
3299
3300 * tui/tui.c: Update.
3301 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
3302 (tui_cmd_window::max_height): Move to tui-command.c.
3303 * tui/tui-layout.c: Update.
3304 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
3305 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
3306 tui-command.c.
3307 * tui/tui-command.h (struct tui_cmd_window): Move from
3308 tui-data.h.
3309 * tui/tui-command.c: Remove "structuring" comments.
3310 (tui_cmd_window::clear_detail)
3311 (tui_cmd_window::do_make_visible_with_new_height)
3312 (tui_cmd_window::max_height): Move from elsewhere.
3313
2d8b51cb
TT
33142019-07-17 Tom Tromey <tom@tromey.com>
3315
3316 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
3317 Now static.
3318 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
3319 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
3320
18ab23af
TT
33212019-07-17 Tom Tromey <tom@tromey.com>
3322
3323 * tui/tui.c: Update.
3324 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
3325 tui-regs.c.
3326 * tui/tui-windata.h: Remove file.
3327 * tui/tui-windata.c: Remove file.
3328 * tui/tui-win.c (tui_data_window::set_new_height)
3329 (tui_data_window::do_make_visible_with_new_height): Move to
3330 tui-regs.c.
3331 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
3332 * tui/tui-regs.c: Remove "structuring" comments.
3333 (tui_data_window::first_data_item_displayed)
3334 (tui_data_window::delete_data_content_windows)
3335 (tui_data_window::erase_data_content)
3336 (tui_data_window::display_all_data)
3337 (tui_data_window::refresh_all)
3338 (tui_data_window::do_scroll_vertical)
3339 (tui_data_window::clear_detail, tui_data_window::set_new_height)
3340 (tui_data_window::do_make_visible_with_new_height)
3341 (tui_data_window::refresh_window): Move from elsewhere.
3342 (_initialize_tui_regs): Move to end of file.
3343 * tui/tui-layout.c: Update.
3344 * tui/tui-hooks.c: Update.
3345 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
3346 * tui/tui-data.c (tui_data_window::clear_detail): Move to
3347 tui-regs.c.
3348 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
3349
88b7e7cc
TT
33502019-07-17 Tom Tromey <tom@tromey.com>
3351
3352 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
3353 seen.
3354
0fcd3711
TT
33552019-07-17 Tom Tromey <tom@tromey.com>
3356
3357 * tui/tui-win.c (tui_source_window_base::set_new_height)
3358 (tui_source_window_base::do_make_visible_with_new_height): Use
3359 m_has_locator field directly.
3360 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
3361 method.
3362 (struct tui_source_window_base) <has_locator>: Likewise.
3363
4a38112d
TT
33642019-07-17 Tom Tromey <tom@tromey.com>
3365
3366 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
3367 Don't declare.
3368 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
3369 Remove.
3370 * tui/tui-win.c (tui_source_window_base::set_new_height)
3371 (tui_source_window_base::set_new_height)
3372 (make_invisible_and_set_new_height)
3373 (tui_source_window_base::do_make_visible_with_new_height)
3374 (tui_source_window_base::do_make_visible_with_new_height):
3375 Update.
3376 * tui/tui-layout.c (show_source_disasm_command, show_data)
3377 (show_source_or_disasm_and_command): Update.
3378 * tui/tui-layout.c (show_layout): Update.
3379
09129226
TT
33802019-07-17 Tom Tromey <tom@tromey.com>
3381
3382 * tui/tui-layout.c (make_data_window): Remove.
3383 (show_data): Unify creation and re-initialization cases.
3384
4a8a5e84
TT
33852019-07-17 Tom Tromey <tom@tromey.com>
3386
3387 * tui/tui-layout.c (make_source_window, make_disasm_window):
3388 Remove.
3389 (show_data): Unify creation and re-initialization cases.
3390
76d2be8e
TT
33912019-07-17 Tom Tromey <tom@tromey.com>
3392
3393 * tui/tui-layout.c (make_command_window): Remove.
3394 (show_source_disasm_command, show_source_or_disasm_and_command):
3395 Unify creation and re-initialization cases.
3396
890b8bde
TT
33972019-07-17 Tom Tromey <tom@tromey.com>
3398
3399 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
3400 creation and re-initialization cases.
3401
2cdfa113
TT
34022019-07-17 Tom Tromey <tom@tromey.com>
3403
3404 * tui/tui-regs.c (tui_get_register): Return void.
3405
8e3cfd09
TT
34062019-07-17 Tom Tromey <tom@tromey.com>
3407
3408 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
3409 Simplify.
3410
f4e04977
TT
34112019-07-17 Tom Tromey <tom@tromey.com>
3412
3413 * tui/tui-layout.c (show_source_disasm_command): Simplify window
3414 resetting.
3415
0379b883
TT
34162019-07-17 Tom Tromey <tom@tromey.com>
3417
3418 * tui/tui.h (tui_set_layout_by_name): Don't declare.
3419 * tui/tui-regs.c (tui_reg_layout): New function.
3420 (tui_show_registers, tui_reg_command): Use it.
3421 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
3422 (tui_layout_command): Rename from tui_set_layout_by_name. Change
3423 parameters.
3424 (tui_layout_command): Remove.
3425
b7fbad91
TT
34262019-07-17 Tom Tromey <tom@tromey.com>
3427
3428 * tui/tui-layout.h (tui/tui-layout): Return void.
3429 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
3430
4e1e56b9
TT
34312019-07-17 Tom Tromey <tom@tromey.com>
3432
3433 * tui/tui-layout.c (show_source_disasm_command, show_data):
3434 Update.
3435 (reset_locator): Remove.
3436 (show_source_or_disasm_and_command): Update.
3437
1e0c09ba
TT
34382019-07-17 Tom Tromey <tom@tromey.com>
3439
3440 * tui/tui-source.c (tui_source_window_base::reset): Remove
3441 win_type parameter.
3442 * tui/tui-layout.c (make_command_window, make_source_window)
3443 (make_disasm_window, make_data_window)
3444 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
3445 (reset_locator, show_source_or_disasm_and_command): Update.
3446 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
3447 win_type parameter.
3448 (struct tui_source_window_base) <reset>: Likewise.
3449
1bf605de
TT
34502019-07-17 Tom Tromey <tom@tromey.com>
3451
3452 * tui/tui-layout.c (show_source_disasm_command): Use
3453 reset_locator.
3454 (reset_locator): New function.
3455 (init_and_make_win): Remove.
3456 (show_source_or_disasm_and_command): Use reset_locator.
3457
098f9ed4
TT
34582019-07-17 Tom Tromey <tom@tromey.com>
3459
3460 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
3461 condition.
3462 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
3463 Remove condition.
3464 * tui/tui-source.c (tui_source_window_base::reset): New method.
3465 * tui/tui-layout.c (make_command_window): Don't call
3466 init_and_make_win.
3467 (make_source_window, make_disasm_window): Don't call
3468 make_source_or_disasm_window.
3469 (make_data_window): Don't call init_and_make_win. Change calling
3470 convention.
3471 (show_source_disasm_command, show_data): Simplify.
3472 (make_source_or_disasm_window): Remove.
3473 (show_source_or_disasm_and_command): Simplify.
3474 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
3475 (struct tui_source_window_base) <reset>: Likewise.
3476 <execution_info>: Remove initializer.
3477 * tui/tui-data.c (tui_source_window_base): Initialize
3478 execution_info.
3479
80110957
TT
34802019-07-17 Tom Tromey <tom@tromey.com>
3481
3482 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
3483 variable.
3484
cf82af05
TT
34852019-07-17 Tom Tromey <tom@tromey.com>
3486
3487 * tui/tui.c (tui_rl_other_window): Update.
3488 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
3489 superclass method first. Always iterate over regs_content.
3490 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
3491 method.
3492 * tui/tui-win.c (tui_set_focus_command): Update.
3493
01aeb396
TT
34942019-07-17 Tom Tromey <tom@tromey.com>
3495
3496 * tui/tui-win.c (tui_set_focus_command): Rename from
3497 tui_set_focus. Call tui_enable.
3498 (tui_set_focus_command): Remove.
3499
fd6c75ee
TT
35002019-07-17 Tom Tromey <tom@tromey.com>
3501
3502 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
3503 refresh_window.
3504 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
3505 touchwin.
3506 (tui_data_window::refresh_window): Call refresh_window on data
3507 items. Always call superclass refresh_window.
3508 (tui_win_info::refresh): Remove.
3509 (tui_source_window_base::refresh_window): Update.
3510 (tui_refresh_all): Update.
3511 * tui/tui-layout.c (show_source_disasm_command): Remove call to
3512 refresh_window.
3513 (show_source_or_disasm_and_command): Likewise.
3514 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
3515 (struct tui_source_window_base) <refresh>: Likewise.
3516
f6cc34a9
TT
35172019-07-17 Tom Tromey <tom@tromey.com>
3518
3519 * tui/tui-winsource.c (tui_clear_source_content)
3520 (tui_show_source_content): Update.
3521 * tui/tui-source.c (tui_source_window::showing_source_p): Check
3522 whether content is empty.
3523 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
3524 Remove.
3525
f31ec9af
TT
35262019-07-17 Tom Tromey <tom@tromey.com>
3527
3528 * tui/tui-winsource.c (tui_erase_source_content): Clear the
3529 window's contents.
3530 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
3531 * tui/tui-source.c (tui_set_source_content_nil): Remove.
3532
d1b6f1e5
TT
35332019-07-17 Tom Tromey <tom@tromey.com>
3534
3535 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
3536 (struct tui_data_item_window): Update.
3537
d9743a13
TT
35382019-07-17 Tom Tromey <tom@tromey.com>
3539
3540 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
3541 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
3542 defines.
3543
caf0bc4e
TT
35442019-07-17 Tom Tromey <tom@tromey.com>
3545
3546 * tui/tui-winsource.h (tui_erase_source_content)
3547 (tui_clear_source_content): Remove "display_prompt" parameter.
3548 * tui/tui-winsource.c (tui_update_source_window_as_is)
3549 (tui_update_source_windows_with_addr): Update.
3550 (tui_clear_source_content): Remove "display_prompt" parameter.
3551 (tui_erase_source_content): Likewise. Simplify.
3552 (tui_show_source_content): Update.
3553 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3554 * tui/tui-stack.c (tui_show_frame_info): Update.
3555 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
3556 Remove defines.
3557
9d391078
TT
35582019-07-17 Tom Tromey <tom@tromey.com>
3559
3560 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3561 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
3562 parameter.
3563 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
3564 parameter.
3565
a38da35d
TT
35662019-07-17 Tom Tromey <tom@tromey.com>
3567
3568 * tui/tui-winsource.c (tui_clear_source_content)
3569 (tui_show_source_content, tui_show_exec_info_content)
3570 (tui_clear_exec_info_content): Update.
3571 * tui/tui-stack.c (tui_show_locator_content): Update.
3572 (tui_show_frame_info): Update.
3573 * tui/tui-source.h (tui_source_window): Don't declare.
3574 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
3575 from tui_source_is_displayed.
3576 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
3577 Remove field.
3578 (struct tui_source_window_base) <content_in_use>: New field. Now
3579 bool.
3580 (struct tui_source_window) <showing_source_p>: New method.
3581 (TUI_SRC_WIN): Change cast.
3582 * tui/tui-data.c (tui_initialize_static_data): Update.
3583
c2cd8994
TT
35842019-07-17 Tom Tromey <tom@tromey.com>
3585
3586 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
3587 location_matches_p.
3588 * tui/tui-source.c (tui_source_window::location_matches_p): New
3589 method.
3590 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
3591 method.
3592 * tui/tui-data.h (struct tui_source_window_base)
3593 <location_matches_p>: New method.
3594 (struct tui_source_window, struct tui_disasm_window)
3595 <location_matches_p>: Likewise.
3596
4dde7b34
TT
35972019-07-17 Tom Tromey <tom@tromey.com>
3598
3599 * tui/tui-win.c (tui_set_win_height_command): Rename from
3600 tui_set_win_height.
3601 (tui_set_win_height_command): Remove.
3602
b73dd877
TT
36032019-07-17 Tom Tromey <tom@tromey.com>
3604
3605 * tui/tui-source.c (tui_source_window): New constructor. Add
3606 observer.
3607 (~tui_source_window): New destructor.
3608 (tui_source_window::style_changed): New method.
3609 * tui/tui-hooks.c (tui_redisplay_source): Remove.
3610 (tui_attach_detach_observers): Update.
3611 * tui/tui-data.h (struct tui_source_window): Make constructor not
3612 inline. Add destructor.
3613 (struct tui_source_window) <style_changed>: New method.
3614 <m_observable>: New member.
3615
ae2b5380
TT
36162019-07-17 Tom Tromey <tom@tromey.com>
3617
3618 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
3619 * tui/tui-win.c (tui_resize_all): Fix typo.
3620
1ce3e844
TT
36212019-07-17 Tom Tromey <tom@tromey.com>
3622
3623 * tui/tui-wingeneral.h (tui_refresh_all): Update.
3624 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
3625 (tui_refresh_all): Remove "list" parameter. Use foreach.
3626 * tui/tui-win.c (window_name_completer): Use foreach.
3627 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
3628 (update_tab_width): Likewise.
3629 * tui/tui-layout.c (show_layout): Update.
3630 * tui/tui-data.h (class tui_window_iterator): New.
3631 (struct all_tui_windows): New.
3632 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
3633
fe3eaf1c
TT
36342019-07-17 Tom Tromey <tom@tromey.com>
3635
3636 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
3637 parameter. Don't reference globals.
3638 (tui_reg_command): Update.
3639
368c1354
TT
36402019-07-17 Tom Tromey <tom@tromey.com>
3641
3642 * tui/tui-regs.c (tui_show_registers): Simplify.
3643
e80cd204
TT
36442019-07-17 Tom Tromey <tom@tromey.com>
3645
3646 * tui/tui-regs.c (tui_show_registers): Update.
3647 (tui_show_register_group): Add win_info parameter.
3648
aca2dd16
TT
36492019-07-17 Tom Tromey <tom@tromey.com>
3650
3651 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
3652 Rename from tui_display_reg_element_at_line.
3653 (tui_data_window::display_registers_from_line): Update.
3654 * tui/tui-data.h (struct tui_data_window)
3655 <display_reg_element_at_line>: New method.
3656
517e9505
TT
36572019-07-17 Tom Tromey <tom@tromey.com>
3658
3659 * tui/tui-regs.h (tui_display_registers_from)
3660 (tui_display_registers_from_line): Don't declare.
3661 * tui/tui-windata.c (tui_data_window::display_all_data)
3662 (tui_data_window::refresh_all)
3663 (tui_data_window::do_scroll_vertical): Update.
3664 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
3665 from tui_display_registers_from.
3666 (tui_display_reg_element_at_line): Update.
3667 (tui_data_window::display_registers_from_line): Rename from
3668 tui_display_registers_from_line.
3669 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
3670 display_registers_from_line>: New methods.
3671
f76d8b19
TT
36722019-07-17 Tom Tromey <tom@tromey.com>
3673
3674 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
3675 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
3676 from tui_erase_data_content.
3677 (tui_data_window::display_all_data)
3678 (tui_data_window::refresh_all)
3679 (tui_data_window::do_scroll_vertical): Update.
3680 * tui/tui-regs.c (tui_show_registers): Update.
3681 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
3682 New method.
3683
b4094625
TT
36842019-07-17 Tom Tromey <tom@tromey.com>
3685
3686 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
3687 declare.
3688 * tui/tui-windata.c
3689 (tui_data_window::delete_data_content_windows): Rename from
3690 tui_delete_data_content_windows.
3691 (tui_data_window::display_all_data)
3692 (tui_data_window::do_scroll_vertical): Update.
3693 * tui/tui-data.h (struct tui_data_window)
3694 <delete_data_content_windows>: New method.
3695
c223a729
TT
36962019-07-17 Tom Tromey <tom@tromey.com>
3697
3698 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
3699 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
3700
50daf268
TT
37012019-07-17 Tom Tromey <tom@tromey.com>
3702
3703 * tui/tui-windata.h (tui_display_all_data): Don't declare.
3704 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
3705 from tui_display_all_data.
3706 * tui/tui-win.c
3707 (tui_data_window::do_make_visible_with_new_height): Update.
3708 * tui/tui-regs.c (tui_show_registers): Update.
3709 * tui/tui-layout.c (tui_set_layout): Update.
3710 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
3711 method.
3712
df5f8cab
TT
37132019-07-17 Tom Tromey <tom@tromey.com>
3714
3715 * tui/tui-windata.h (tui_display_data_from): Don't declare.
3716 * tui/tui-windata.c (tui_display_data_from): Remove.
3717 (tui_data_window::refresh_all): Update.
3718
80cb6c27
TT
37192019-07-17 Tom Tromey <tom@tromey.com>
3720
3721 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
3722 * tui/tui-windata.c (tui_display_data_from_line): Remove.
3723 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
3724 tui_display_registers_from_line.
3725 * tui/tui-regs.h (tui_display_registers_from_line): Update.
3726 * tui/tui-regs.c (tui_display_registers_from_line): Remove
3727 "force_display" parameter.
3728
baff0c28
TT
37292019-07-17 Tom Tromey <tom@tromey.com>
3730
3731 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
3732 declare.
3733 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
3734 Rename from tui_first_reg_element_no_inline.
3735 (tui_display_reg_element_at_line)
3736 (tui_display_registers_from_line): Update.
3737 * tui/tui-data.h (struct tui_data_window)
3738 <first_reg_element_no_inline>: New method.
3739
3b23c5f2
TT
37402019-07-17 Tom Tromey <tom@tromey.com>
3741
3742 * tui/tui-windata.c (tui_display_data_from)
3743 (tui_data_window::do_scroll_vertical): Update.
3744 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
3745 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
3746 Rename from tui_line_from_reg_element_no.
3747 (tui_display_registers_from_line): Update.
3748 * tui/tui-data.h (struct tui_data_window)
3749 <line_from_reg_element_no>: New method.
3750
0b5ec218
TT
37512019-07-17 Tom Tromey <tom@tromey.com>
3752
3753 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
3754 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
3755 tui_last_regs_line_no.
3756 (tui_display_reg_element_at_line)
3757 (tui_display_registers_from_line): Update.
3758 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
3759 method.
3760
0807ab7b
TT
37612019-07-17 Tom Tromey <tom@tromey.com>
3762
3763 PR tui/24722:
3764 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
3765 (tui_update_breakpoint_info): Add "being_deleted" parameter.
3766 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3767 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
3768 (tui_update_breakpoint_info): Likewise.
3769 * tui/tui-hooks.c (tui_event_create_breakpoint)
3770 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
3771 Update.
3772
9ad7fdef
TT
37732019-07-17 Tom Tromey <tom@tromey.com>
3774
3775 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
3776
5813316f
TT
37772019-07-17 Tom Tromey <tom@tromey.com>
3778
3779 * tui/tui-winsource.c (tui_update_source_window_as_is)
3780 (tui_update_source_windows_with_addr): Update.
3781 * tui/tui-source.h (tui_set_source_content)
3782 (tui_show_symtab_source): Add "win_info" parameter.
3783 * tui/tui-source.c (tui_set_source_content): Add "win_info"
3784 parameter.
3785 (tui_show_symtab_source): Likewise.
3786
00e264e7
TT
37872019-07-17 Tom Tromey <tom@tromey.com>
3788
3789 * tui/tui-wingeneral.c
3790 (tui_check_and_display_highlight_if_needed): Check can_highlight.
3791
06210ce4
TT
37922019-07-17 Tom Tromey <tom@tromey.com>
3793
3794 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
3795 (struct tui_cmd_window) <can_scroll>: New method.
3796 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
3797 method.
3798
381befee
TT
37992019-07-17 Tom Tromey <tromey@adacore.com>
3800
3801 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
3802 do_field_signed>: Rename. Change type of "value".
3803 * ui-out.c (ui_out::field_signed): Rename from field_int.
3804 Change type of "value".
3805 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
3806 type of "value".
3807 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
3808 do_field_int. Change type of "value".
3809 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
3810 do_field_int. Change type of "value".
3811 * tracepoint.c (trace_status_mi, tfind_1)
3812 (print_one_static_tracepoint_marker): Update.
3813 * thread.c (print_thread_info_1, print_selected_thread_frame):
3814 Update.
3815 * stack.c (print_frame, print_frame_info): Update.
3816 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
3817 Update.
3818 * source.c (print_source_lines_base): Update.
3819 * skip.c (info_skip_command): Update.
3820 * record-btrace.c (btrace_ui_out_decode_error)
3821 (btrace_call_history_src_line): Update.
3822 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
3823 Update.
3824 * progspace.c (print_program_space): Update.
3825 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
3826 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
3827 do_field_int. Change type of "value".
3828 * mi/mi-out.c (mi_ui_out::do_table_begin)
3829 (mi_ui_out::do_table_header): Update.
3830 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
3831 type of "value".
3832 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
3833 (mi_cmd_data_list_changed_registers, output_register)
3834 (mi_cmd_data_read_memory, mi_load_progress)
3835 (mi_cmd_trace_frame_collected): Update.
3836 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
3837 Update.
3838 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3839 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
3840 (mi_cmd_var_list_children, varobj_update_one): Update.
3841 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
3842 (mi_cmd_stack_list_args, list_arg_or_local): Update.
3843 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
3844 * inferior.c (print_inferior): Update.
3845 * gdb_bfd.c (print_one_bfd): Update.
3846 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3847 Update.
3848 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
3849 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
3850 do_field_int. Change type of "value".
3851 * cli-out.c (cli_ui_out::do_field_signed): Rename from
3852 do_field_int. Change type of "value".
3853 * breakpoint.c (watchpoint_check, print_breakpoint_location)
3854 (print_one_breakpoint_location, print_it_catch_fork)
3855 (print_one_catch_fork, print_it_catch_vfork)
3856 (print_one_catch_vfork, print_it_catch_solib)
3857 (print_it_catch_exec, print_it_ranged_breakpoint)
3858 (print_mention_watchpoint, print_mention_masked_watchpoint)
3859 (bkpt_print_it, update_static_tracepoint): Update.
3860 * break-catch-throw.c (print_it_exception_catchpoint): Update.
3861 * break-catch-syscall.c (print_it_catch_syscall): Update.
3862 * ada-tasks.c (print_ada_task_info): Update.
3863 * ada-lang.c (print_it_exception, print_mention_exception):
3864 Update.
3865
6b78c3f8
AB
38662019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3867
3868 PR breakpoints/24541
3869 * gdbarch.c: Regenerate.
3870 * gdbarch.h: Regenerate.
3871 * gdbarch.sh: Adjust return type and parameter types for
3872 'stap_adjust_register'.
3873 (i386_stap_adjust_register): Adjust signature and return new
3874 register name.
3875 * stap-probe.c (stap_parse_register_operand): Adjust use of
3876 'gdbarch_stap_adjust_register'.
3877
d72a9b85
TT
38782019-07-17 Tom Tromey <tromey@adacore.com>
3879
3880 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
3881 declare VEC.
3882 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
3883 std::vector.
3884 (struct s390_process_info): Add initializers.
3885 (s390_add_process): Use new.
3886 (s390_linux_nat_target::low_forget_process): Use delete.
3887 (s390_linux_nat_target::low_new_fork)
3888 (s390_linux_nat_target::stopped_by_watchpoint)
3889 (s390_linux_nat_target::low_prepare_to_resume)
3890 (s390_linux_nat_target::insert_watchpoint)
3891 (s390_linux_nat_target::insert_hw_breakpoint)
3892 (s390_linux_nat_target::remove_watchpoint)
3893 (s390_linux_nat_target::remove_hw_breakpoint): Update.
3894
206e6c58
JB
38952019-07-16 John Baldwin <jhb@FreeBSD.org>
3896
3897 * aarch64-fbsd-nat.c: Include regcache.h.
3898 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
3899 argument.
3900 (aarch64_fbsd_nat_target::fetch_registers)
3901 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
3902 variable.
3903 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
3904
cbde90f2
JB
39052019-07-16 John Baldwin <jhb@FreeBSD.org>
3906
3907 * fbsd-nat.c: Include gdbarch.h.
3908
07128006
TT
39092019-07-15 Tom Tromey <tromey@adacore.com>
3910
3911 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
3912
1f77b012
TT
39132019-07-15 Tom Tromey <tromey@adacore.com>
3914
3915 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
3916 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
3917 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
3918 * cli-out.c (cli_ui_out::do_field_int): New method.
3919 * ui-out.c (ui_out::field_unsigned): New method.
3920 * symfile.c (generic_load): Use field_unsigned.
3921 (print_transfer_performance): Likewise.
3922 * record-btrace.c (ui_out_field_uint): Remove.
3923 (btrace_call_history_insn_range, btrace_call_history): Use
3924 field_unsigned.
3925 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3926 field_unsigned.
3927 * ui-out.h (class ui_out) <field_unsigned>: New method.
3928 <do_field_unsigned>: Likewise.
3929
33eca680
TT
39302019-07-15 Tom Tromey <tromey@adacore.com>
3931
3932 * mi/mi-main.c (list_available_thread_groups): Use field_string.
3933 * mi/mi-interp.c (mi_memory_changed): Use field_string.
3934 * target.c (flash_erase_command): Use field_string.
3935 * infrun.c (print_signal_received_reason): Use field_string.
3936 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
3937 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
3938 field_string.
3939 * ada-tasks.c (print_ada_task_info): Use field_string.
3940
ca8d69be
TT
39412019-07-15 Tom Tromey <tromey@adacore.com>
3942
3943 * target.c (flash_erase_command): Use field_core_addr.
3944 * symfile.c (generic_load): Use field_core_addr.
3945 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3946 Use field_core_addr.
3947 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
3948 field_core_addr.
3949
0d4e84ed
AB
39502019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3951
3952 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
3953 value if its desired type is smaller than a CORE_ADDR and signed.
3954
9a49df9d
AB
39552019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3956
3957 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
3958 of changes to field names, and use new is_reference field to
3959 decide if a property is a reference or not.
3960 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
3961 field.
3962 (struct dwarf2_property_baton): Update header comment, rename
3963 'referenced_type' to 'property_type' and update comments.
3964 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
3965 default property type, store in property baton, update to take
3966 accound of renamed field.
3967 (read_func_scope): Update call to attr_to_dynamic_prop.
3968 (read_array_type): Likewise.
3969 (dwarf2_per_cu_addr_sized_int_type): New function.
3970 (read_subrange_index_type): Move type finding code to
3971 dwarf2_per_cu_addr_sized_int_type.
3972 (read_subrange_type): Update calls to attr_to_dynamic_prop.
3973 (dwarf2_per_cu_addr_type): New function.
3974 (set_die_type): Update calls to attr_to_dynamic_prop.
3975
b86352cf
AB
39762019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3977
3978 * dwarf2read.c (read_subrange_index_type): New function.
3979 (read_subrange_type): Move code into new function and call it.
3980 * gdbtypes.c (create_range_type): Add some asserts.
3981
603490bf
AB
39822019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3983
3984 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
3985 update return statements.
3986 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
3987 declaration, and update comment to match.
3988 * gdbtypes.c (resolve_dynamic_array): Update call to
3989 dwarf2_evaluate_property to match new return type.
3990
592f9d27
AB
39912019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3992
3993 * valarith.c (value_subscripted_rvalue): Change lowerbound
3994 parameter type from int to LONGEST.
3995 * value.h (value_subscripted_rvalue): Likewise in declaration.
3996
60cfcb20
AB
39972019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3998
3999 * cli/cli-utils.c (info_print_command_completer): New function.
4000 * cli/cli-utils.h: Add 'completer.h' include, and forward
4001 declaration for 'struct cmd_list_element'.
4002 (info_print_command_completer): Declare.
4003 * stack.c (_initialize_stack): Add completer for 'info locals' and
4004 'info args'.
4005 * symtab.c (_initialize_symtab): Add completer for 'info
4006 variables' and 'info functions'.
4007 * NEWS: Mention completion for additional info commands.
4008
b16507e0
AB
40092019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4010
4011 * cli/cli-utils.c (extract_info_print_args): Delete.
4012 (extract_arg_maybe_quoted): Delete.
4013 (info_print_options_defs): New variable.
4014 (make_info_print_options_def_group): New function.
4015 (extract_info_print_options): Define new function.
4016 * cli/cli-utils.h (extract_info_print_args): Delete.
4017 (struct info_print_options): New structure.
4018 (extract_info_print_options): Declare new function.
4019 * stack.c (info_locals_command): Update to use new
4020 extract_info_print_options, also add a header comment.
4021 (info_args_command): Likewise.
4022 * symtab.c (info_variables_command): Likewise.
4023 (info_functions_command): Likewise.
4024
021d8588
AB
40252019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4026
4027 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
4028 to extract string arguments.
4029 * common/common-utils.c (extract_string_maybe_quoted): New function.
4030 * common/common-utils.h (extract_string_maybe_quoted): Declare.
4031
b777eb6d
TT
40322019-07-11 Tom Tromey <tromey@adacore.com>
4033
4034 * main.c (get_init_files): Use GDBINIT, not gdbinit.
4035 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
4036 * top.h (gdbinit): Don't declare.
4037 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
4038 into...
4039 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
4040 * top.c (gdb_init): Don't call init_cli_cmds.
4041 (gdbinit): Remove.
4042 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
4043
72ee03ff
TT
40442019-07-11 Tom Tromey <tromey@adacore.com>
4045
4046 * python/py-inferior.c (add_thread_object): Don't use thread_obj
4047 after it has been moved.
4048
00db9531
SM
40492019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4050
4051 * valops.c (value_must_coerce_to_target): Change return type to
4052 bool.
4053 * value.h (value_must_coerce_to_target): Likewise.
4054
f2478a7e
SM
40552019-07-10 Simon Marchi <simon.marchi@efficios.com>
4056
4057 * breakpoint.c (is_hardware_watchpoint): Remove
4058 forward-declaration.
4059 (is_masked_watchpoint): Change return type to bool.
4060 (is_tracepoint): Likewise.
4061 (is_breakpoint): Likewise.
4062 (is_hardware_watchpoint): Likewise.
4063 (is_watchpoint): Likewise.
4064 (is_no_memory_software_watchpoint): Likewise.
4065 (is_catchpoint): Likewise.
4066 (breakpoint_1): Make FILTER parameter's return type bool.
4067 is_masked_watchpoint): Change return type to bool.
4068 (save_breakpoints): Make FILTER parameter's return type bool.
4069 * breakpoint.h (is_breakpoint): Change return type to bool.
4070 (is_watchpoint): Likewise.
4071 (is_catchpoint): Likewise.
4072 (is_tracepoint): Likewise.
4073
0d12e84c
TT
40742019-07-10 Tom Tromey <tom@tromey.com>
4075
4076 * defs.h: Don't include gdbarch.h.
4077 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
4078 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
4079 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
4080 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
4081 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
4082 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
4083 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
4084 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
4085 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
4086 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
4087 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
4088 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
4089 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
4090 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
4091 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
4092 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
4093 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
4094 record-btrace.c, record.h, regcache-dump.c, regcache.h,
4095 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
4096 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
4097 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
4098 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
4099 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
4100 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
4101 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
4102 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
4103 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
4104
f06f1252
TT
41052019-07-10 Tom Tromey <tromey@adacore.com>
4106
4107 * ada-lang.h (is_ada_exception_catchpoint): Declare.
4108 * breakpoint.c (init_ada_exception_breakpoint): Register as
4109 bp_catchpoint.
4110 (print_one_breakpoint_location, print_one_breakpoint): Use
4111 is_ada_exception_catchpoint.
4112 * ada-lang.c (class ada_catchpoint_location): Pass
4113 bp_loc_software_breakpoint to bp_location constructor.
4114 (is_ada_exception_catchpoint): New function.
4115
7a5d944b
TT
41162019-07-10 Tom Tromey <tromey@adacore.com>
4117
4118 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
4119 VEC.
4120 (struct arm_exidx_entry): New method operator<.
4121 (struct arm_exidx_data) <section_maps>: Change type.
4122 (arm_exidx_data_free): Remove.
4123 (arm_exidx_data_key): Change type. Move lower.
4124 (arm_exidx_new_objfile): Update.
4125 (arm_compare_exidx_entries): Remove.
4126 (arm_find_exidx_entry, _initialize_arm_tdep)
4127
48c66e1d
TT
41282019-07-10 Tom Tromey <tromey@adacore.com>
4129
4130 * solib-spu.c (ocl_program_data_key): Change type.
4131 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
4132 Update.
4133
a269fbf1
TT
41342019-07-10 Tom Tromey <tromey@adacore.com>
4135
4136 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
4137 (struct solib_aix_inferior_data) <library_list>: Change type.
4138 (solib_aix_inferior_data_handle): Change type.
4139 (get_solib_aix_inferior_data): Update.
4140 (solib_aix_free_library_list): Remove.
4141 (library_list_start_library): Update.
4142 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
4143 return type.
4144 (solib_aix_get_library_list)
4145 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
4146 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
4147
c294730c
TT
41482019-07-10 Tom Tromey <tromey@adacore.com>
4149
4150 * solib-dsbt.c (struct dsbt_info): Add initializers.
4151 (solib_dsbt_pspace_data): Change type.
4152 (dsbt_pspace_data_cleanup): Remove.
4153 (get_dsbt_info, _initialize_dsbt_solib): Update.
4154
9d52077d
TT
41552019-07-10 Tom Tromey <tromey@adacore.com>
4156
4157 * spu-tdep.c (spu_overlay_data): Change type.
4158 (spu_get_overlay_table, spu_overlay_new_objfile)
4159 (_initialize_spu_tdep): Update.
4160
22a20dca
TT
41612019-07-10 Tom Tromey <tromey@adacore.com>
4162
4163 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
4164 destructor.
4165 (dbx_objfile_data_key): Change type and declare later.
4166 (DBX_SYMFILE_INFO): Rewrite.
4167 * dbxread.c (dbx_objfile_data_key): Change type.
4168 (dbx_symfile_init): Update.
4169 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
4170 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4171 (stabsect_build_psymtabs, _initialize_dbxread): Update.
4172
cb60f420
TT
41732019-07-10 Tom Tromey <tromey@adacore.com>
4174
4175 * jit.c (jit_program_space_key): Change type. Move lower.
4176 (get_jit_program_space_data): Update.
4177 (jit_program_space_data_cleanup): Remove.
4178 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
4179 Update.
4180 (struct jit_program_space_data): Add initializers.
4181
51df2ae3
TT
41822019-07-10 Tom Tromey <tromey@adacore.com>
4183
4184 * solib-darwin.c (struct darwin_info): Add initializers.
4185 (solib_darwin_pspace_data): Change type.
4186 (darwin_pspace_data_cleanup): Remove.
4187 (get_darwin_info, _initialize_darwin_solib): Update.
4188
18101a35
TT
41892019-07-10 Tom Tromey <tromey@adacore.com>
4190
4191 * remote-sim.c (struct sim_inferior_data): Add initializers,
4192 constructor, and destructor.
4193 (sim_inferior_data_key): Change type. Move lower.
4194 (check_for_duplicate_sim_descriptor): Update.
4195 (get_sim_inferior_data): Use new. Update.
4196 (~sim_inferior_data_cleanup): Rename from
4197 sim_inferior_data_cleanup. Simplify.
4198 (gdbsim_close_inferior, simulator_command)
4199 (sim_command_completer, _initialize_remote_sim): Update.
4200 (next_pid, INITIAL_PID): Move earlier.
4201
05b08ac1
TT
42022019-07-10 Tom Tromey <tromey@adacore.com>
4203
4204 * python/python-internal.h (create_thread_object): Return
4205 gdbpy_ref.
4206 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
4207 * python/py-inferior.c (struct threadlist_entry): Add
4208 constructor.
4209 <thread_obj>: Now a gdbpy_ref.
4210 (thread_to_thread_object): Update.
4211 (add_thread_object): Use new.
4212 (delete_thread_object): Use delete.
4213 (infpy_threads): Update.
4214 (py_free_inferior): Update. Construct "inf_obj" after acquiring
4215 GIL.
4216
32372d80
TT
42172019-07-10 Tom Tromey <tromey@adacore.com>
4218
4219 * valops.c (value_cast): Specialize error message for Ada.
4220
5c458ae8
SM
42212019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4222
4223 * breakpoint.c (breakpoint_1): Update doc and parameter names.
4224
4c462cb0
SM
42252019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4226
4227 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
4228 bpstat_should_step): Return bool, adjust comments.
4229 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
4230 bpstat_should_step): Likewise.
4231
89abbcc2
AH
42322019-07-10 Alan Hayward <alan.hayward@arm.com>
4233
4234 * features/Makefile: Use feature target descriptions for Arm.
4235 * features/arm/arm-core.c: Generate new file.
4236 * features/arm/arm-fpa.c: Likewise.
4237 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
4238 * features/arm/arm-m-profile.c: Likewise.
4239 * features/arm/arm-vfpv2.c: Likewise.
4240 * features/arm/arm-vfpv3.c: Likewise.
4241 * features/arm/xscale-iwmmxt.c: Likewise.
4242 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
4243
166a82be
AH
42442019-07-10 Alan Hayward <alan.hayward@arm.com>
4245
4246 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
4247 ptrace earlier.
4248
9fb4c7e9
AH
42492019-07-10 Alan Hayward <alan.hayward@arm.com>
4250
4251 * features/aarch64-pauth.c: Regenerate.
4252
e2d0f980
SM
42532019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
4254
4255 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
4256 bool.
4257 (bpstat_what): Use false instead of 0.
4258
a38118e5
PA
42592019-07-09 Pedro Alves <palves@redhat.com>
4260
4261 * break-catch-throw.c (is_exception_catchpoint): New.
4262 * breakpoint.c (print_one_breakpoint_location): New parameter
4263 'raw_loc'. Handle it. Use
4264 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
4265 looking at the breakpoint's type.
4266 (print_one_breakpoint): If handling "maint info breakpoints", also
4267 print locations of exception catchpoints.
4268 * breakpoint.h (is_exception_catchpoint): Declare.
4269
cb1e4e32
PA
42702019-07-09 Pedro Alves <palves@redhat.com>
4271
4272 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
4273 "addr" field.
4274 (allocate_location_exception_catchpoint): New.
4275 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
4276 (initialize_throw_catchpoint_ops): Install
4277 allocate_location_exception_catchpoint as allocate_location
4278 method.
4279 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
4280 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
4281 bp_loc_other.
4282 (breakpoint_address_is_meaningful): Delete.
4283 (bl_address_is_meaningful): New.
4284 (breakpoint_locations_match): Adjust comment.
4285 (bp_location_from_bp_type): New, factored out of...
4286 (bp_location::bp_location(breakpoint *)): ... this.
4287 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
4288 factored out of...
4289 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
4290 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
4291 breakpoint_address_is_meaningful.
4292 (bp_locations_compare): Adjust comment.
4293 (update_global_location_list): Use bl_address_is_meaningful
4294 instead of breakpoint_address_is_meaningful.
4295 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
4296 explicit.
4297 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
4298 * python/py-breakpoint.c (bppy_get_location): No longer check
4299 whether location is null.
4300
b58a68fe
PA
43012019-07-09 Pedro Alves <palves@redhat.com>
4302
4303 PR c++/15468
4304 * breakpoint.c (print_one_breakpoint_location): Remove
4305 single-location assert.
4306
268a13a5
TT
43072019-07-09 Tom Tromey <tom@tromey.com>
4308
4309 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
4310 * configure: Rebuild.
4311 * configure.ac: Change common to gdbsupport.
4312 * gdbsupport: Rename from common.
4313 * acinclude.m4: Change common to gdbsupport.
4314 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
4315 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
4316 gdbsupport.
4317 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
4318 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
4319 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
4320 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
4321 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
4322 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
4323 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
4324 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
4325 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
4326 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
4327 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
4328 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
4329 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
4330 coff-pe-read.c, command.h, compile/compile-c-support.c,
4331 compile/compile-c.h, compile/compile-cplus-symbols.c,
4332 compile/compile-cplus-types.c, compile/compile-cplus.h,
4333 compile/compile-loc2c.c, compile/compile.c, completer.c,
4334 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
4335 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
4336 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
4337 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
4338 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
4339 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
4340 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
4341 features/aarch64-core.c, features/aarch64-fpu.c,
4342 features/aarch64-pauth.c, features/aarch64-sve.c,
4343 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
4344 features/i386/32bit-core.c, features/i386/32bit-linux.c,
4345 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
4346 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
4347 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
4348 features/i386/64bit-core.c, features/i386/64bit-linux.c,
4349 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
4350 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
4351 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
4352 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
4353 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
4354 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
4355 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
4356 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
4357 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
4358 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
4359 go32-nat.c, guile/guile.c, guile/scm-ports.c,
4360 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
4361 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
4362 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
4363 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
4364 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
4365 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
4366 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
4367 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
4368 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
4369 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
4370 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
4371 minsyms.c, mips-linux-tdep.c, namespace.h,
4372 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
4373 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
4374 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
4375 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
4376 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
4377 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
4378 nat/linux-waitpid.c, nat/mips-linux-watch.c,
4379 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
4380 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
4381 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
4382 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
4383 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
4384 procfs.c, producer.c, progspace.h, psymtab.h,
4385 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
4386 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
4387 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
4388 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
4389 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
4390 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
4391 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
4392 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
4393 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
4394 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
4395 target-memory.c, target.c, target.h, target/waitstatus.c,
4396 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
4397 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
4398 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
4399 unittests/array-view-selftests.c,
4400 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
4401 unittests/common-utils-selftests.c,
4402 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
4403 unittests/format_pieces-selftests.c,
4404 unittests/function-view-selftests.c,
4405 unittests/lookup_name_info-selftests.c,
4406 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
4407 unittests/mkdir-recursive-selftests.c,
4408 unittests/observable-selftests.c,
4409 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
4410 unittests/parse-connection-spec-selftests.c,
4411 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
4412 unittests/scoped_fd-selftests.c,
4413 unittests/scoped_mmap-selftests.c,
4414 unittests/scoped_restore-selftests.c,
4415 unittests/string_view-selftests.c, unittests/style-selftests.c,
4416 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
4417 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
4418 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
4419 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
4420 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
4421 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
4422
5b0e2db4
AB
44232019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4424
4425 * linespec.c (decode_digits_list_mode): Set explicit_line to a
4426 bool value.
4427 (decode_digits_ordinary): Set explicit_line field in sal.
4428 * symtab.c (skip_prologue_sal): Don't skip prologue for a
4429 symtab_and_line that was set on an explicit line number in
4430 assembler code. Do always update the recorded symtab and line if
4431 we do skip the prologue.
4432
0ba852ab
AB
44332019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4434
4435 * breakpoint.c (set_breakpoint_location_function): Remove
4436 explicit_loc parameter.
4437 (momentary_breakpoint_from_master): Update call to
4438 set_breakpoint_location_function.
4439 (add_location_to_breakpoint): Likewise.
4440
b3a7d171
AB
44412019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4442
4443 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
4444 required features based on default bfd type when no specific bfd
4445 is present.
4446
1f6f6e21
PW
44472019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4448
4449 * NEWS: Mention that GDB printf and eval commands can now print
4450 C-style and Ada-style convenience var strings without
4451 calling the inferior.
4452 * printcmd.c (printf_c_string): Locally print GDB internal var
4453 instead of transiting via the inferior.
4454 (printf_wide_c_string): Likewise.
4455
44562019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
4457
4458 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
4459
0598af48
TT
44602019-07-04 Tom Tromey <tom@tromey.com>
4461
4462 PR tui/24724:
4463 * tui/tui-winsource.c (tui_clear_source_content): Update.
4464 (tui_source_window_base::set_is_exec_point_at): Fix comment.
4465 (tui_update_breakpoint_info): Update.
4466 (tui_set_exec_info_content): Update.
4467 * tui/tui-source.c (tui_set_source_content_nil): Update.
4468 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
4469 has_break.
4470 * tui/tui-data.h (enum tui_bp_flag): New.
4471 (tui_bp_flags): New enum flags type.
4472 (struct tui_source_element) <break_mode>: Change type. Rename
4473 from has_break.
4474 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
4475 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
4476 constants.
4477 * tui/tui-winsource.h: Fix comment.
4478
350fab54
AH
44792019-07-04 Alan Hayward <alan.hayward@arm.com>
4480
4481 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
4482 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
4483 (store_fpregs_to_thread)
4484 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4485 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
4486 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
4487 (IWMMXT_REGS_SIZE): Add define.
4488 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
4489 (fetch_vfp_regs, store_vfp_regs)
4490 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4491 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
4492
f0452268
AH
44932019-07-04 Alan Hayward <alan.hayward@arm.com>
4494
4495 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
4496 defines.
4497 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
4498 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
4499 (ARM_INT_REGISTER_SIZE): ...to this.
4500 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
4501 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
4502 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
4503 (arm_linux_collect_gregset, supply_nwfpe_register)
4504 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
4505 defines.
4506 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
4507 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
4508 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
4509 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
4510 (arm_return_in_memory, arm_store_return_value)
4511 (arm_get_longjmp_target, arm_register_g_packet_guesses)
4512 (arm_record_ld_st_multiple): Likewise.
4513 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
4514 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
4515
e935475c
AH
45162019-07-04 Alan Hayward <alan.hayward@arm.com>
4517
4518 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
4519 AARCH64_DISPLACED_MODIFIED_INSNS.
4520 * aarch64-tdep.c (struct aarch64_displaced_step_data)
4521 (aarch64_displaced_step_copy_insn): Likewise.
4522 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4523 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
4524 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
4525 ARM_DISPLACED_MODIFIED_INSNS.
4526 * arm-tdep.c (arm_gdbarch_init): Likewise.
4527 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4528 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
4529 (struct arm_displaced_step_closure): Use
4530 ARM_DISPLACED_MODIFIED_INSNS.
4531
df0bb381
AH
45322019-07-04 Alan Hayward <alan.hayward@arm.com>
4533
4534 * features/Makefile: Remove unused xml files.
4535 * features/aarch64.xml: Remove.
4536 * features/i386/amd64-avx-avx512-linux.xml: Remove.
4537 * features/i386/amd64-avx-avx512.xml: Remove.
4538 * features/i386/amd64-avx-linux.xml: Remove.
4539 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
4540 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
4541 * features/i386/amd64-avx-mpx-linux.xml: Remove.
4542 * features/i386/amd64-avx-mpx.xml: Remove.
4543 * features/i386/amd64-avx.xml: Remove.
4544 * features/i386/amd64-linux.xml: Remove.
4545 * features/i386/amd64-mpx-linux.xml: Remove.
4546 * features/i386/amd64-mpx.xml: Remove.
4547 * features/i386/amd64.xml: Remove.
4548 * features/i386/i386-avx-avx512-linux.xml: Remove.
4549 * features/i386/i386-avx-avx512.xml: Remove.
4550 * features/i386/i386-avx-linux.xml: Remove.
4551 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
4552 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
4553 * features/i386/i386-avx-mpx-linux.xml: Remove.
4554 * features/i386/i386-avx-mpx.xml: Remove.
4555 * features/i386/i386-avx.xml: Remove.
4556 * features/i386/i386-linux.xml: Remove.
4557 * features/i386/i386-mmx-linux.xml: Remove.
4558 * features/i386/i386-mmx.xml: Remove.
4559 * features/i386/i386-mpx-linux.xml: Remove.
4560 * features/i386/i386-mpx.xml: Remove.
4561 * features/i386/i386.xml: Remove.
4562 * features/i386/x32-avx-avx512-linux.xml: Remove.
4563 * features/i386/x32-avx-linux.xml: Remove.
4564 * features/i386/x32-linux.xml: Remove.
4565
edd6266a
AH
45662019-07-04 Alan Hayward <alan.hayward@arm.com>
4567
4568 * regformats/aarch64.dat: Remove.
4569 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
4570 * regformats/i386/amd64-avx-linux.dat: Remove.
4571 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
4572 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
4573 * regformats/i386/amd64-linux.dat: Remove.
4574 * regformats/i386/amd64-mpx-linux.dat: Remove.
4575 * regformats/i386/amd64.dat: Remove.
4576 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
4577 * regformats/i386/i386-avx-linux.dat: Remove.
4578 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
4579 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
4580 * regformats/i386/i386-linux.dat: Remove.
4581 * regformats/i386/i386-mmx-linux.dat: Remove.
4582 * regformats/i386/i386-mpx-linux.dat: Remove.
4583 * regformats/i386/i386.dat: Remove.
4584 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
4585 * regformats/i386/x32-avx-linux.dat: Remove.
4586 * regformats/i386/x32-linux.dat: Remove.
4587
2b40fda7
AH
45882019-07-04 Alan Hayward <alan.hayward@arm.com>
4589
4590 * aarch64-tdep.c: Remove xml self tests.
4591 * amd64-linux-tdep.c: Likewise.
4592 * amd64-tdep.c: Likewise.
4593 * i386-linux-tdep.c: Likewise.
4594 * i386-tdep.c: Likewise.
4595
5f4ba3e7
PA
45962019-07-03 Pedro Alves <palves@redhat.com>
4597
4598 PR cli/24732
4599 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
4600 (pipe_cmd_option_defs): New.
4601 (make_pipe_cmd_options_def_group): New.
4602 (pipe_command): Use gdb::option::process_options.
4603 (pipe_command_completer): New function.
4604 (_initialize_cli_cmds): Install completer for "pipe" command.
4605
3d9be6f5
PA
46062019-07-03 Pedro Alves <palves@redhat.com>
4607
4608 * cli/cli-option.c (union option_value) <string>: New field.
4609 (struct option_def_and_value): Add ctor, move ctor, dtor and
4610 use DISABLE_COPY_AND_ASSIGN.
4611 (option_def_and_value::clear_value): New.
4612 (parse_option, save_option_value_in_ctx, get_val_type_str)
4613 (add_setshow_cmds_for_options): Handle var_string.
4614 * cli-option.h (union option_def::var_address) <string>: New
4615 field.
4616 (struct string_option_def): New.
4617 * maint-test-options.c (struct test_options_opts): Add default
4618 ctor and use DISABLE_COPY_AND_ASSIGN.
4619 <string_opt>: New field.
4620 (test_options_opts::~test_options_opts): New.
4621 (test_options_opts::dump): Also dump "-string".
4622 (test_options_option_defs): Install "string.
4623
41fc454c
PA
46242019-07-03 Pedro Alves <palves@redhat.com>
4625
4626 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
4627 option_value with a null enumeration.
4628 (complete_options): Save the option values in the context.
4629 (save_option_value_in_ctx): New, factored out from ...
4630 (process_options): ... here.
4631 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
4632 of the function.
4633 * maint-test-options.c (test_options_opts::dump): New, factored
4634 out from ...
4635 (maintenance_test_options_command_mode): ... here.
4636 (maintenance_test_options_command_completion_result): Delete.
4637 (maintenance_test_options_command_completion_text): Update
4638 comment.
4639 (maintenance_show_test_options_completion_result): Change
4640 prototype. Just print
4641 maintenance_test_options_command_completion_text.
4642 (save_completion_result): New.
4643 (maintenance_test_options_completer_mode): Pass options context to
4644 complete_options, and then save a dump.
4645 (_initialize_maint_test_options): Use add_cmd to install "maint
4646 show test-options-completion-result".
4647
fdbc9870
PA
46482019-07-03 Pedro Alves <palves@redhat.com>
4649
4650 * NEWS (New commands): Mention "with" and "maint with".
4651 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
4652 (with_command, with_command_completer): New.
4653 (pipe_command): Adjust to new repeat_previous
4654 interface.
4655 (_initialize_cli_cmds): Install the "with" command and its "w"
4656 alias.
4657 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
4658 declarations.
4659 * cli/cli-setshow.c (parse_cli_var_uinteger)
4660 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
4661 argument strings for all var_types.
4662 (get_setshow_command_value_string): New, factored out from ...
4663 (do_show_command): ... this.
4664 * cli/cli-setshow.h: Include <string>.
4665 (get_setshow_command_value_string): Declare.
4666 * command.h (repeat_previous): Now returns const char *. Adjust
4667 comment.
4668 * maint.c: Include "cli/cli-cmds.h".
4669 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
4670 (_initialize_maint_cmds): Register the "maintenance with" command.
4671 * top.c (repeat_previous): Move bits from pipe_command here:
4672 Return the saved command line, if any; error out if there's no
4673 command to relaunch.
4674
c6ac8931
PA
46752019-07-03 Pedro Alves <palves@redhat.com>
4676
4677 * NEWS (New commands): Mention "maint set/show test-settings"
4678 instead of "maint test-settings".
4679 * maint-test-settings.c (maintenance_test_settings_list): Delete.
4680 (maintenance_test_settings_set_list): Rename to ...
4681 (maintenance_set_test_settings_list): ... this.
4682 (maintenance_test_settings_show_list): Rename to ...
4683 (maintenance_show_test_settings_list): ... this.
4684 (maintenance_test_settings_cmd): Delete.
4685 (maintenance_test_settings_set_cmd): ...
4686 (maintenance_set_test_settings_cmd): ... this.
4687 (maintenance_test_settings_show_cmd): ...
4688 (maintenance_show_test_settings_cmd): ... this.
4689 (maintenance_test_settings_show_value_cmd):
4690 (maintenance_show_test_settings_value_cmd): ... this.
4691 (_initialize_maint_test_settings): No longer install the "maint
4692 test-settings" prefix command. Rename "maint test-settings set"
4693 to "maint set test-settings", and "maint test-settings show" to
4694 "maint show test-settings". Adjust all subcommands.
4695
d1fcf2fd
PA
46962019-07-03 Pedro Alves <palves@redhat.com>
4697
4698 * maint-test-settings.c: Fix file's intro comment. Replace all
4699 references to "test-options" with references to "test-settings",
4700 in comments.
4701
970f9d09
PA
47022019-07-03 Pedro Alves <palves@redhat.com>
4703
4704 * maint-test-settings.c (maintenance_test_settings_xxx)
4705 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
4706 New.
4707 (maintenance_test_settings_enums): Use them.
4708 (maintenance_test_settings_enum): Default to
4709 maintenance_test_settings_xxx.
4710 (_initialize_maint_test_settings): Initialize
4711 MAINTENANCE_TEST_SETTINGS_FILENAME.
4712
f3869b1a
SM
47132019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4714
4715 * breakpoint.h (remove_breakpoints_inf): Change return type to
4716 void, move function documentation here.
4717 * breakpoint.c (remove_breakpoints_inf): Change return type to
4718 void, move function documentation to header.
4719
54d66006
PA
47202019-07-02 Pedro Alves <palves@redhat.com>
4721
4722 * NEWS (Completion improvements): Mention "info threads".
4723 * thread.c (struct info_threads_opts, info_threads_option_defs)
4724 (make_info_threads_options_def_group): New.
4725 (info_threads_command): Use gdb::option::process_options.
4726 (info_threads_command_completer): New.
4727 (_initialize_thread): Use gdb::option::build_help to build the
4728 help text for "info threads".
4729
854f6088
SM
47302019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4731
4732 * defs.h (generic_load): Move from here...
4733 * symfile.h (generic_load): ... to here. Rename name parameter
4734 to args.
4735 * symfile.c (generic_load): Add comment.
4736
54ee4252
TT
47372019-07-01 Tom Tromey <tromey@adacore.com>
4738
4739 * dwarf2read.c
4740 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
4741 declaration of without_params. Fix formatting.
4742
65392b3e
TT
47432019-07-01 Tom Tromey <tromey@adacore.com>
4744
4745 * ada-exp.y (find_primitive_type): Update.
4746 * ada-lang.h (ada_lookup_symbol): Update.
4747 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
4748 parameter.
4749 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
4750
7d7571f0
SDJ
47512019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4752
4753 PR breakpoints/24541
4754 * gdbarch.c: Regenerate.
4755 * gdbarch.h: Regenerate.
4756 * gdbarch.sh: Add 'stap_adjust_register'.
4757 * i386-tdep.c: Include '<unordered_set>'.
4758 (i386_stap_adjust_register): New function.
4759 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
4760 * stap-probe.c (stap_parse_register_operand): Call
4761 'gdbarch_stap_adjust_register'.
4762
5af5392a
SDJ
47632019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4764
4765 PR python/24742
4766 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
4767 * python/python.c (do_start_initialization): Use 'xmalloc'
4768 instead of 'PyMem_Malloc'.
4769
10d06d82
TT
47702019-06-28 Tom Tromey <tromey@adacore.com>
4771
4772 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
4773 for Ada.
4774
1b7f24cd
TT
47752019-06-27 Tom Tromey <tromey@adacore.com>
4776
4777 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
4778 objfile_key.
4779 (arm_find_mapping_symbol, arm_record_special_symbol)
4780 (_initialize_arm_tdep): Update.
4781 (arm_objfile_data_free): Remove.
4782
3d507ff2
TT
47832019-06-27 Tom Tromey <tromey@adacore.com>
4784
4785 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
4786 to cp_print_static_field.
4787
762c164d
TT
47882019-06-26 Tom Tromey <tromey@adacore.com>
4789
4790 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
4791 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
4792 declare.
4793
aa2f9bcf
AH
47942019-06-26 Alan Hayward <alan.hayward@arm.com>
4795
4796 * features/aarch64-core.c (create_feature_aarch64_core):
4797 Regenerate.
4798 * features/aarch64-core.xml: Add cpsr flags.
4799
3426ae57
AH
48002019-06-26 Alan Hayward <alan.hayward@arm.com>
4801
4802 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
4803 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
4804
4838e44c
SM
48052019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4806
4807 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
4808 field.
4809 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
4810 use.
4811 (arm_record_special_symbol): Don't insert new symbol in sorted
4812 position, push it at the end.
4813
54cc7474
SM
48142019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4815
4816 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
4817 (arm_mapping_symbol_s): Remove.
4818 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
4819 (arm_mapping_symbol_vec): New typedef.
4820 (struct arm_per_objfile): Add constructor.
4821 <section_maps>: Change type to
4822 std::unique_ptr<arm_mapping_symbol_vec[]>.
4823 (arm_compare_mapping_symbols): Remove.
4824 (arm_find_mapping_symbol): Adjust to section_maps type change.
4825 (arm_objfile_data_free): Call delete on arm_per_objfile.
4826 (arm_record_special_symbol): Adjust to section_maps type change.
4827 Allocate arm_per_objfile with new.
4828
b65b566c
PW
48292019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4830
4831 * cli/cli-cmds.c (alias_command): Compare the alias prefix
4832 with the command prefix.
4833
c2fc64f5
TT
48342019-06-25 Tom Tromey <tom@tromey.com>
4835
4836 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
4837 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
4838
fb54fa76
TT
48392019-06-25 Tom Tromey <tom@tromey.com>
4840
4841 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
4842 type.
4843 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
4844 protected.
4845
f7952c57
TT
48462019-06-25 Tom Tromey <tom@tromey.com>
4847
4848 * tui/tui-winsource.c
4849 (tui_source_window_base::set_is_exec_point_at): Add check against
4850 LOA_ADDRESS.
4851
17568d78
TT
48522019-06-25 Tom Tromey <tom@tromey.com>
4853
4854 * tui/tui-source.c (tui_set_source_content): Don't check before
4855 xfree.
4856 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
4857
53e7cdba
TT
48582019-06-25 Tom Tromey <tom@tromey.com>
4859
4860 * tui/tui-winsource.h (tui_update_source_window_as_is)
4861 (tui_alloc_source_buffer, tui_line_is_displayed)
4862 (tui_addr_is_displayed): Change type of win_info.
4863 * tui/tui-winsource.c (tui_update_source_window_as_is)
4864 (tui_clear_source_content, tui_show_source_line)
4865 (tui_show_source_content, tui_source_window_base::refill)
4866 (tui_source_window_base::set_is_exec_point_at)
4867 (tui_source_window_base::set_is_exec_point_at)
4868 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
4869 (tui_alloc_source_buffer, tui_line_is_displayed)
4870 (tui_addr_is_displayed): Change type of win_info. Update.
4871 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4872 (tui_source_window_base::do_make_visible_with_new_height):
4873 Update.
4874 * tui/tui-source.c (tui_set_source_content)
4875 (tui_set_source_content_nil)
4876 (tui_source_window::do_scroll_vertical): Update.
4877 * tui/tui-layout.c (show_layout): Update.
4878 * tui/tui-disasm.c (tui_set_disassem_content)
4879 (tui_disasm_window::do_scroll_vertical): Update.
4880 * tui/tui-data.h (tui_win_content): Remove.
4881 (struct tui_gen_win_info) <content, content_size>: Remove.
4882 (struct tui_source_element): Add initializers and destructor.
4883 (union tui_which_element, struct tui_win_element): Remove.
4884 (struct tui_source_window_base) <content>: New field.
4885 (struct tui_data_window): Remove destructor.
4886 (tui_alloc_content, tui_free_win_content)
4887 (tui_free_all_source_wins_content): Don't declare.
4888 * tui/tui-data.c (tui_initialize_static_data): Update.
4889 (init_content_element, tui_alloc_content): Remove.
4890 (~tui_gen_win_info): Update.
4891 (~tui_data_window, tui_free_all_source_wins_content)
4892 (tui_free_win_content, free_content, free_content_elements):
4893 Remove.
4894
7908abbf
TT
48952019-06-25 Tom Tromey <tom@tromey.com>
4896
4897 * tui/tui-winsource.h (tui_clear_source_content)
4898 (tui_erase_source_content, tui_show_source_content): Change type
4899 of win_info.
4900 * tui/tui-winsource.c (tui_clear_source_content)
4901 (tui_erase_source_content, tui_show_source_content): Change type
4902 of win_info.
4903 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4904 * tui/tui-source.h (tui_set_source_content_nil): Change type of
4905 win_info.
4906 * tui/tui-source.c (tui_set_source_content_nil): Change type of
4907 win_info.
4908 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
4909
02c28df0
TT
49102019-06-25 Tom Tromey <tom@tromey.com>
4911
4912 * tui/tui-winsource.c (tui_clear_source_content)
4913 (tui_source_window_base::set_is_exec_point_at): Update.
4914 * tui/tui-source.c (tui_set_source_content_nil): Update.
4915 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
4916 a bool.
4917 * tui/tui-data.c (init_content_element): Update.
4918
6658b1bf
TT
49192019-06-25 Tom Tromey <tom@tromey.com>
4920
4921 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
4922 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
4923 * tui/tui-layout.c (init_and_make_win): Update.
4924 * tui/tui.h (enum tui_win_type): Update.
4925 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
4926 tui_win_is_auxillary.
4927 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
4928 tui_win_is_auxillary.
4929
21e1c91e
TT
49302019-06-25 Tom Tromey <tom@tromey.com>
4931
4932 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
4933 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
4934 (tui_delete_data_content_windows, tui_display_all_data)
4935 (tui_data_window::do_scroll_vertical, tui_display_data_from):
4936 Update.
4937 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
4938 * tui/tui-regs.c (tui_last_regs_line_no)
4939 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4940 (tui_show_registers): Update.
4941 (tui_show_register_group): Return void. Update.
4942 (tui_display_registers_from, tui_display_reg_element_at_line)
4943 (tui_display_registers_from_line, tui_check_register_values):
4944 Update.
4945 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
4946 member.
4947 (struct tui_data_window) <regs_content>: Now a std::vector.
4948 <regs_content_count>: Remove.
4949 (tui_add_content_elements, tui_free_data_content): Don't declare.
4950 * tui/tui-data.c (tui_data_window::clear_detail): Update.
4951 (init_content_element): Remove DATA_WIN case. Add assert.
4952 (tui_add_content_elements): Remove.
4953 (tui_data_window): Update.
4954 (tui_free_data_content): Remove.
4955 (free_content_elements): Remove DATA_WIN case.
4956
115ac53b
TT
49572019-06-25 Tom Tromey <tom@tromey.com>
4958
4959 * tui/tui-data.c (tui_data_item_window): Update.
4960 * tui/tui-windata.h (tui_check_data_values): Don't declare.
4961 * tui/tui-windata.c (tui_display_all_data)
4962 (tui_display_data_from_line): Update.
4963 (tui_check_data_values): Remove.
4964 * tui/tui-regs.c (tui_show_register_group)
4965 (tui_display_reg_element_at_line): Update.
4966 * tui/tui-hooks.c (tui_register_changed)
4967 (tui_refresh_frame_and_register_information): Call
4968 tui_check_register_values.
4969 * tui/tui-data.h (struct tui_data_window) <data_content,
4970 data_content_count, data_type>: Remove.
4971 (enum tui_data_type): Remove.
4972
4973 * tui/tui-data.c (tui_data_window::clear_detail)
4974 (~tui_data_window): Update.
4975
eaf9738b
TT
49762019-06-25 Tom Tromey <tom@tromey.com>
4977
4978 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
4979 declare.
4980 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
4981 Rename from tui_first_data_item_displayed. Update.
4982 (tui_data_window::refresh_all)
4983 (tui_data_window::do_scroll_vertical): Update.
4984 * tui/tui-data.h (struct tui_data_window)
4985 <first_data_item_displayed>: Declare new method.
4986
31ca4723
TT
49872019-06-25 Tom Tromey <tom@tromey.com>
4988
4989 * tui/tui-data.h (tui_init_generic_part): Don't declare.
4990 * tui/tui-data.c (tui_init_generic_part): Remove, moving
4991 contents...
4992 (tui_initialize_static_data): ...here.
4993
41bcff7f
TT
49942019-06-25 Tom Tromey <tom@tromey.com>
4995
4996 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4997 (tui_display_registers_from, tui_check_register_values): Update.
4998 (tui_display_register): Remove win_info parameter; update.
4999 (tui_get_register): Change type of parameters.
5000 * tui/tui-data.h (struct tui_data_element): Remove.
5001 (union tui_which_element) <data>: Remove.
5002 <data_window>: Change type.
5003 (struct tui_data_item_window): New.
5004 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
5005 case. Add assert.
5006 (~tui_data_item_window): New destructor.
5007 (free_content_elements): Remove DATA_ITEM_WIN case.
5008
d2802c33
TT
50092019-06-25 Tom Tromey <tom@tromey.com>
5010
5011 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
5012 Remove.
5013
dd835f8b
TT
50142019-06-25 Tom Tromey <tom@tromey.com>
5015
5016 * tui/tui-data.h (struct tui_command_element): Remove.
5017 (union tui_which_element) <command>: Remove.
5018 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
5019 assert.
5020 (free_content_elements): Remove CMD_WIN case.
5021
bd7db367
TT
50222019-06-25 Tom Tromey <tom@tromey.com>
5023
5024 * tui/tui-layout.c (tui_set_layout): Update.
5025 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
5026 * tui/tui-data.c (layout_def): Update.
5027
3add462f
TT
50282019-06-25 Tom Tromey <tom@tromey.com>
5029
5030 * tui/tui-wingeneral.c (tui_refresh_all): Update.
5031 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5032 (tui_source_window_base::set_new_height): Update.
5033 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
5034 Update.
5035 (tui_set_locator_fullname, tui_set_locator_info)
5036 (tui_show_frame_info): Update.
5037 * tui/tui-source.c (tui_set_source_content)
5038 (tui_source_is_displayed): Update.
5039 * tui/tui-layout.c (show_source_disasm_command, show_data)
5040 (show_source_or_disasm_and_command): Update.
5041 * tui/tui-disasm.c (tui_set_disassem_content)
5042 (tui_get_begin_asm_address): Update.
5043 * tui/tui-data.h (struct tui_locator_element): Remove.
5044 (union tui_which_element) <locator>: Remove.
5045 (struct tui_locator_window): New.
5046 (tui_locator_win_info_ptr): Change return type.
5047 * tui/tui-data.c (_locator): Change type.
5048 (tui_locator_win_info_ptr): Change return type.
5049 (init_content_element): Remove LOCATOR_WIN case. Add assert.
5050 (tui_alloc_content): Add assert.
5051
489e9d8b
TT
50522019-06-25 Tom Tromey <tom@tromey.com>
5053
5054 * tui/tui-winsource.c
5055 (tui_exec_info_window::maybe_allocate_content): New method.
5056 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
5057 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
5058 (make_source_or_disasm_window): Add cast.
5059 * tui/tui-data.h (union tui_which_element) <simple_string>:
5060 Remove.
5061 (struct tui_source_info): New.
5062 (struct tui_source_window_base) <execution_info>: Change type.
5063 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
5064 case, and add assert.
5065 (tui_alloc_content): Add assert.
5066
c3fabb7d
TT
50672019-06-25 Tom Tromey <tom@tromey.com>
5068
5069 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
5070 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
5071 * tui/tui-data.c (tui_alloc_win_info): Remove.
5072
bbc228ee
TT
50732019-06-25 Tom Tromey <tom@tromey.com>
5074
5075 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
5076 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
5077 can_highlight.
5078
5fcee43a
TT
50792019-06-25 Tom Tromey <tom@tromey.com>
5080
5081 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
5082 make_visible_with_new_height method.
5083 (tui_win_info::make_visible_with_new_height): New method.
5084 (tui_source_window_base::do_make_visible_with_new_height)
5085 (tui_data_window::do_make_visible_with_new_height)
5086 (tui_cmd_window::do_make_visible_with_new_height): New methods.
5087 (make_visible_with_new_height): Remove.
5088 (tui_resize_all, tui_adjust_win_heights): Use
5089 make_visible_with_new_height method.
5090 * tui/tui-data.h (struct tui_win_info)
5091 <do_make_visible_with_new_height, make_visible_with_new_height>:
5092 New methods.
5093 (struct tui_source_window_base, struct tui_data_window)
5094 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
5095 methods.
5096
d83f1fe6
TT
50972019-06-25 Tom Tromey <tom@tromey.com>
5098
5099 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
5100 method.
5101 (update_tab_width): Call update_tab_width method.
5102 * tui/tui-data.h (struct tui_win_info)
5103 (struct tui_source_window_base) <update_tab_width>: New methods.
5104
17374de4
TT
51052019-06-25 Tom Tromey <tom@tromey.com>
5106
5107 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
5108 parameter.
5109 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
5110 parameter.
5111 (tui_gen_win_info::make_visible): Update.
5112 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
5113 parameter.
5114 * tui/tui-data.h (enum tui_box): New enum.
5115 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
5116
f936bca2
TT
51172019-06-25 Tom Tromey <tom@tromey.com>
5118
5119 * tui/tui-layout.c (make_source_or_disasm_window): Always use
5120 init_and_make_win for EXEC_INFO_WIN.
5121 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
5122 longer inline.
5123 (struct tui_win_info) <~tui_win_info>: Inline.
5124 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5125 Don't declare.
5126 * tui/tui-data.c (source_win, disasm_win): Remove globals.
5127 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5128 Remove.
5129 (tui_initialize_static_data): Update.
5130 (~tui_gen_win_info): Handle more cleanup here.
5131 (~tui_source_window_base): Delete "execution_info".
5132 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
5133
d6ba6a11
TT
51342019-06-25 Tom Tromey <tom@tromey.com>
5135
5136 * tui/tui-layout.c (make_command_window): Don't set
5137 can_highlight.
5138 (show_source_disasm_command): Call the reset method.
5139 (show_data): Don't set can_highlight. Call the reset method.
5140 (tui_gen_win_info::reset): Rename from init_gen_win_info
5141 (init_and_make_win): Simplify. Return tui_gen_win_info.
5142 (show_source_or_disasm_and_command): Call the reset method.
5143 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
5144 (struct tui_cmd_window): Set can_highlight.
5145
48a3bd16
TT
51462019-06-25 Tom Tromey <tom@tromey.com>
5147
5148 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
5149 from make_visible.
5150 (tui_make_visible, tui_make_invisible): Rewrite.
5151 (tui_win_info::make_visible): Remove.
5152 (tui_source_window_base::make_visible): Update.
5153 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
5154 method. Moved from...
5155 (struct tui_win_info) <make_visible>: ...here.
5156
c3bd716f
TT
51572019-06-25 Tom Tromey <tom@tromey.com>
5158
5159 * tui/tui-winsource.c
5160 (tui_source_window_base::do_scroll_horizontal): Remove direction
5161 parameter.
5162 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
5163 direction parameter.
5164 * tui/tui-win.c (tui_win_info::forward_scroll)
5165 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5166 (tui_win_info::right_scroll): Update.
5167 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
5168 direction parameter.
5169 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
5170 direction parameter.
5171 * tui/tui-data.h (enum tui_scroll_direction): Remove.
5172 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
5173 Remove direction parameter.
5174 (struct tui_source_window_base, struct tui_source_window)
5175 (struct tui_disasm_window, struct tui_data_window)
5176 (struct tui_cmd_window): Update.
5177
21c32dca
TT
51782019-06-25 Tom Tromey <tom@tromey.com>
5179
5180 * tui/tui-winsource.h (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 * tui/tui-winsource.c (tui_set_exec_info_content)
5185 (tui_show_exec_info_content, tui_erase_exec_info_content)
5186 (tui_clear_exec_info_content, tui_update_exec_info): Change
5187 argument to tui_source_window_base.
5188
73fbdc65
TT
51892019-06-25 Tom Tromey <tom@tromey.com>
5190
5191 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
5192 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
5193
33325343
TT
51942019-06-25 Tom Tromey <tom@tromey.com>
5195
5196 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
5197 check.
5198
29d2c474
TT
51992019-06-25 Tom Tromey <tom@tromey.com>
5200
5201 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
5202 type to void.
5203 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
5204 type to void.
5205 * tui/tui-source.c (tui_set_source_content): Update.
5206 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5207
152f3f4b
TT
52082019-06-25 Tom Tromey <tom@tromey.com>
5209
5210 * tui/tui-win.c (window_name_completer, tui_set_focus)
5211 (tui_all_windows_info): Use name method.
5212 * tui/tui-data.h (struct tui_gen_win_info)
5213 (struct tui_source_window, struct tui_disasm_window)
5214 (struct tui_data_window, struct tui_cmd_window) <name>: New
5215 method.
5216 (tui_win_name): Don't declare.
5217 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
5218 (tui_win_name): Remove.
5219
be4da588
TT
52202019-06-25 Tom Tromey <tom@tromey.com>
5221
5222 * tui/tui-winsource.h (tui_update_source_window)
5223 (tui_update_source_window_as_is): Change parameter type.
5224 * tui/tui-winsource.c (tui_update_source_window): Change win_info
5225 to be a tui_source_window_base.
5226 (tui_update_source_window_as_is): Likewise.
5227 * tui/tui-win.c (make_visible_with_new_height): Update.
5228
5b81daba
TT
52292019-06-25 Tom Tromey <tom@tromey.com>
5230
5231 * tui/tui-winsource.c (tui_erase_source_content)
5232 (tui_show_source_content, tui_show_exec_info_content)
5233 (tui_erase_exec_info_content): Use refresh_window method.
5234 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
5235 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
5236 from tui_refresh_win.
5237 (tui_data_window::refresh_window): New method.
5238 (tui_win_info::refresh, tui_source_window_base::refresh)
5239 (tui_refresh_all): Use refresh_window method.
5240 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
5241 method.
5242 * tui/tui-regs.c (tui_display_register): Call refresh_window
5243 method.
5244 * tui/tui-layout.c (show_source_disasm_command)
5245 (show_source_or_disasm_and_command): Call refresh_window method.
5246 * tui/tui-data.h (struct tui_gen_win_info)
5247 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
5248 New method.
5249
cb2ce893
TT
52502019-06-25 Tom Tromey <tom@tromey.com>
5251
5252 * tui/tui.c (tui_rl_other_window, tui_enable)
5253 (tui_is_window_visible, tui_get_command_dimension): Update.
5254 * tui/tui-winsource.c (tui_update_source_window_as_is)
5255 (tui_clear_source_content, tui_erase_source_content)
5256 (tui_show_source_line, tui_source_window_base::refill)
5257 (tui_source_window_base::do_scroll_horizontal)
5258 (tui_source_window_base::set_is_exec_point_at)
5259 (tui_update_breakpoint_info, tui_set_exec_info_content)
5260 (tui_alloc_source_buffer, tui_line_is_displayed)
5261 (tui_addr_is_displayed): Update.
5262 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5263 (tui_check_and_display_highlight_if_needed)
5264 (tui_win_info::make_visible, tui_win_info::refresh)
5265 (tui_refresh_all): Update.
5266 * tui/tui-windata.c (tui_first_data_item_displayed)
5267 (tui_delete_data_content_windows, tui_erase_data_content)
5268 (tui_display_all_data, tui_data_window::refresh_all)
5269 (tui_check_data_values): Update.
5270 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
5271 (tui_set_win_focus_to, tui_win_info::forward_scroll)
5272 (tui_win_info::backward_scroll, tui_refresh_all_win)
5273 (tui_resize_all, tui_set_focus, tui_all_windows_info)
5274 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
5275 (tui_source_window_base::set_new_height)
5276 (tui_data_window::set_new_height)
5277 (make_invisible_and_set_new_height)
5278 (make_visible_with_new_height, new_height_ok)
5279 (parse_scrolling_args): Update.
5280 * tui/tui-stack.c (tui_show_frame_info): Update.
5281 * tui/tui-source.c (tui_set_source_content)
5282 (tui_set_source_content_nil, tui_source_is_displayed)
5283 (tui_source_window::do_scroll_vertical): Update.
5284 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5285 (tui_display_registers_from, tui_display_reg_element_at_line)
5286 (tui_check_register_values, tui_reg_command): Update.
5287 * tui/tui-layout.c (tui_default_win_height)
5288 (show_source_disasm_command, show_data, init_and_make_win)
5289 (show_source_or_disasm_and_command): Update.
5290 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
5291 (tui_redisplay_readline, tui_mld_flush)
5292 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
5293 (tui_getc): Update.
5294 * tui/tui-disasm.c (tui_set_disassem_content)
5295 (tui_disasm_window::do_scroll_vertical): Update.
5296 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
5297 Now virtual.
5298 (struct tui_win_info): Derive from tui_gen_win_info.
5299 <~tui_win_info>: Mark as override.
5300 <generic>: Remove member.
5301 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
5302 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
5303 (~tui_data_window, ~tui_win_info)
5304 (tui_free_all_source_wins_content): Update.
5305 * tui/tui-command.c (tui_refresh_cmd_win): Update.
5306
ab313b35
TT
53072019-06-25 Tom Tromey <tom@tromey.com>
5308
5309 * tui/tui-layout.c (init_and_make_win): Use new.
5310 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
5311 destructor, initializers.
5312 (tui_alloc_generic_win_info): Don't declare.
5313 * tui/tui-data.c (_locator): Add argument to constructor.
5314 (source_win, disasm_win): New globals.
5315 (exec_info): Remove.
5316 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5317 Update.
5318 (tui_alloc_generic_win_info): Remove.
5319 (init_content_element): Use new.
5320 (tui_win_info::tui_win_info): Update.
5321 (free_content_elements) <case DATA_WIN>: Use delete.
5322
dc2c33e4
TT
53232019-06-25 Tom Tromey <tom@tromey.com>
5324
5325 * tui/tui-wingeneral.c (tui_refresh_win): Update.
5326 * tui/tui-windata.c (tui_first_data_item_displayed)
5327 (tui_delete_data_content_windows): Update.
5328 * tui/tui-win.c (tui_data_window::set_new_height): Update.
5329 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5330 (tui_display_registers_from, tui_check_register_values): Update.
5331 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
5332 pointer.
5333 * tui/tui-data.c (init_content_element): Update. Allocate the new
5334 window.
5335 (tui_free_data_content): Update.
5336 (free_content_elements) <case DATA_WIN>: Free the window.
5337
214a5cbe
TT
53382019-06-25 Tom Tromey <tom@tromey.com>
5339
5340 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
5341 Update.
5342 * tui/tui-layout.c (make_command_window)
5343 (show_source_disasm_command, show_data, init_and_make_win)
5344 (show_source_or_disasm_and_command): Update.
5345 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
5346 method.
5347 <can_highight, is_highlighted>: Now bool.
5348 (tui_set_win_highlight): Don't declare.
5349 * tui/tui-data.c (tui_set_win_highlight): Remove.
5350
8e2daf15
TT
53512019-06-25 Tom Tromey <tom@tromey.com>
5352
5353 * tui/tui-wingeneral.c (make_visible): Remove check of window
5354 type.
5355
8903bd8a
TT
53562019-06-25 Tom Tromey <tom@tromey.com>
5357
5358 * tui/tui-win.c (tui_win_info::max_height)
5359 (tui_cmd_window::max_height): New methods.
5360 (new_height_ok): Call max_height.
5361 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
5362 <max_height>: New method.
5363
3f02ce1e
TT
53642019-06-25 Tom Tromey <tom@tromey.com>
5365
5366 * tui/tui-win.c (tui_source_window_base::set_new_height)
5367 (tui_data_window::set_new_height): New methods.
5368 (make_invisible_and_set_new_height): Call set_new_height method.
5369 * tui/tui-data.h (struct tui_win_info)
5370 (struct tui_source_window_base, struct tui_data_window)
5371 <set_new_height>: New method.
5372
1825f487
TT
53732019-06-25 Tom Tromey <tom@tromey.com>
5374
5375 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
5376 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
5377 tui_refresh_data_win.
5378 * tui/tui-win.c (tui_source_window_base::refresh_all): New
5379 method.
5380 (tui_refresh_all_win): Call the refresh_all method.
5381 (tui_set_focus): Likewise.
5382 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
5383 (struct tui_source_window_base, struct tui_data_window) <refresh>:
5384 Likewise.
5385
ad54d15b
TT
53862019-06-25 Tom Tromey <tom@tromey.com>
5387
5388 * tui/tui-winsource.h (tui_refill_source_window)
5389 (tui_set_is_exec_point_at): Don't declare.
5390 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5391 (tui_source_window_base::refill): Rename from
5392 tui_refill_source_window.
5393 (tui_source_window_base::do_scroll_horizontal): Update.
5394 (tui_source_window_base::set_is_exec_point_at): Rename from
5395 tui_set_is_exec_point_at.
5396 (tui_update_all_breakpoint_info): Update.
5397 * tui/tui-stack.c (tui_show_frame_info): Update.
5398 * tui/tui-layout.c (show_data): Add cast.
5399 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
5400 * tui/tui-data.h (struct tui_source_window_base) <refill,
5401 set_is_exec_point_at>: New methods.
5402 (tui_source_windows, tui_add_to_source_windows): Update types.
5403 (tui_add_to_source_windows): Remove redundant declaration.
5404 * tui/tui-data.c (source_windows): Store tui_source_window_base.
5405 (tui_source_windows): Change return type.
5406 (tui_clear_source_windows_detail): Update.
5407 (tui_add_to_source_windows): Change type of parameter.
5408 (tui_free_all_source_wins_content): Update.
5409
2042b506
TT
54102019-06-25 Tom Tromey <tom@tromey.com>
5411
5412 * tui/tui-wingeneral.c (tui_win_info::refresh)
5413 (tui_source_window_base::refresh): New methods.
5414 (tui_refresh_all): Call the refresh method.
5415 * tui/tui-data.h (struct tui_win_info)
5416 (struct tui_source_window_base) <refresh>: New method.
5417
56122977
TT
54182019-06-25 Tom Tromey <tom@tromey.com>
5419
5420 * tui/tui.h (tui_is_window_visible): Return bool.
5421 * tui/tui.c (tui_is_window_visible): Return bool.
5422 * tui/tui-wingeneral.c (tui_make_window, make_visible)
5423 (tui_make_visible, tui_make_invisible)
5424 (tui_win_info::make_visible)
5425 (tui_source_window_base::make_visible, make_all_visible)
5426 (tui_make_all_visible, tui_make_all_invisible): Update.
5427 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
5428 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
5429 bool.
5430 (struct tui_win_info, struct tui_source_window_base)
5431 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
5432 * tui/tui-data.c (tui_init_generic_part): Update.
5433
cda37efb
TT
54342019-06-25 Tom Tromey <tom@tromey.com>
5435
5436 * tui/tui-wingeneral.c (tui_win_info::make_visible)
5437 (tui_source_window_base::make_visible): New methods.
5438 (make_all_visible): Make method call.
5439 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
5440 (struct tui_source_window_base, struct tui_cmd_window): Override
5441 make_visible.
5442 (tui_win_is_source_type): Don't declare.
5443 * tui/tui-data.c (tui_win_is_source_type): Remove.
5444
6a0ee02c
TT
54452019-06-25 Tom Tromey <tom@tromey.com>
5446
5447 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
5448 NULL check.
5449
63901aec
TT
54502019-06-25 Tom Tromey <tom@tromey.com>
5451
5452 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
5453 Inline constructor. Add initializers for members.
5454 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
5455 constructors; now inline in class.
5456
ceb13a13
TT
54572019-06-25 Tom Tromey <tom@tromey.com>
5458
5459 * tui/tui-regs.c (tui_show_registers): Update.
5460 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
5461 bool.
5462 * tui/tui-data.c (tui_data_window::clear_detail)
5463 (tui_data_window): Update.
5464
238eb706
TT
54652019-06-25 Tom Tromey <tom@tromey.com>
5466
5467 * tui/tui-windata.c (tui_display_all_data)
5468 (tui_display_data_from_line, tui_display_data_from)
5469 (tui_check_data_values, tui_data_window::do_scroll_vertical):
5470 Update.
5471 * tui/tui-regs.c (tui_last_regs_line_no)
5472 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5473 (tui_show_registers, tui_show_register_group)
5474 (tui_display_registers_from, tui_display_reg_element_at_line)
5475 (tui_display_registers_from_line, tui_check_register_values)
5476 (tui_reg_next, tui_reg_prev): Update.
5477 * tui/tui-layout.c (tui_set_layout, show_data): Update.
5478 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
5479 tui_data_window.
5480 (struct tui_win_info) <detail>: Remove. Add new fields from
5481 tui_data_info.
5482 (TUI_DATA_WIN): Add cast.
5483 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
5484 (~tui_data_window): Simplify.
5485
81491aa0
TT
54862019-06-25 Tom Tromey <tom@tromey.com>
5487
5488 * tui/tui-layout.c (show_source_disasm_command)
5489 (show_source_or_disasm_and_command): Update.
5490 * tui/tui-io.c (update_cmdwin_start_line)
5491 (tui_redisplay_readline): Update.
5492 * tui/tui-data.h (struct tui_command_info): Remove.
5493 (struct tui_win_info) <detail>: Remove command_info member.
5494 (struct tui_data_window) <start_line>: New member, from
5495 tui_command_info.
5496 (TUI_CMD_WIN): Add casts.
5497
e6e41501
TT
54982019-06-25 Tom Tromey <tom@tromey.com>
5499
5500 * tui/tui-winsource.c (tui_update_source_window)
5501 (tui_refill_source_window)
5502 (tui_source_window_base::do_scroll_horizontal)
5503 (tui_update_breakpoint_info, tui_set_exec_info_content)
5504 (tui_show_exec_info_content, tui_erase_exec_info_content)
5505 (tui_clear_exec_info_content): Update.
5506 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
5507 Update.
5508 * tui/tui-win.c (make_invisible_and_set_new_height)
5509 (make_visible_with_new_height): Update.
5510 * tui/tui-source.c (tui_set_source_content)
5511 (tui_show_symtab_source): Update.
5512 * tui/tui-layout.c (extract_display_start_addr)
5513 (show_source_disasm_command, show_data)
5514 (make_source_or_disasm_window)
5515 (show_source_or_disasm_and_command): Update.
5516 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
5517 (tui_disasm_window::do_scroll_vertical): Remove shadowing
5518 "gdbarch".
5519 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
5520 to tui_source_window_base.
5521 (struct tui_win_info) <detail>: Remove source_info member.
5522 (struct tui_source_window_base) <has_locator>: Inline.
5523 Move contents from tui_source_info; rename has_locator member to
5524 m_has_locator.
5525 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
5526 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
5527 header file.
5528 (tui_source_window_base::clear_detail, ~tui_source_window_base):
5529 Simplify.
5530 (tui_free_all_source_wins_content): Cast to
5531 tui_source_window_base.
5532
44f0e208
TT
55332019-06-25 Tom Tromey <tom@tromey.com>
5534
5535 * tui/tui-win.c (make_invisible_and_set_new_height)
5536 (make_visible_with_new_height): Call has_locator method.
5537 * tui/tui-layout.c (show_source_disasm_command, show_data)
5538 (show_source_or_disasm_and_command): Update for bool change.
5539 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
5540 (tui_win_info) <has_locator>: New method.
5541 (struct tui_source_window_base) <has_locator>: New method.
5542 (tui_win_has_locator): Don't declare.
5543 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
5544 from tui_win_has_locator.
5545 (tui_source_window_base): Use false, not FALSE.
5546
7778b912
TT
55472019-06-25 Tom Tromey <tom@tromey.com>
5548
5549 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
5550 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
5551 clear_detail method directly.
5552 (tui_clear_win_detail): Remove.
5553
f83d391c
TT
55542019-06-25 Tom Tromey <tom@tromey.com>
5555
5556 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
5557 "this", not TUI_DISASM_WIN.
5558
13446e05
TT
55592019-06-25 Tom Tromey <tom@tromey.com>
5560
5561 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
5562 declare.
5563 * tui/tui-winsource.c
5564 (tui_source_window_base::do_scroll_horizontal): Rename from
5565 tui_horizontal_source_scroll.
5566 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
5567 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
5568 from tui_vertical_data_scroll.
5569 * tui/tui-win.h (tui_scroll): Don't declare.
5570 * tui/tui-win.c (tui_win_info::forward_scroll)
5571 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5572 (tui_win_info::right_scroll): Rename and update.
5573 (tui_scroll_forward_command, tui_scroll_backward_command)
5574 (tui_scroll_left_command, tui_scroll_right_command): Update.
5575 (tui_scroll): Remove.
5576 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
5577 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
5578 from tui_vertical_source_scroll.
5579 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
5580 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
5581 from tui_vertical_disassem_scroll.
5582 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
5583 do_scroll_horizontal>: New methods.
5584 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
5585 Likewise.
5586 (struct tui_source_window_base): Add do_scroll_horizontal.
5587 (struct tui_source_window, struct tui_disasm_window): Add
5588 do_scroll_vertical.
5589 (struct tui_data_window, struct tui_cmd_window): Add
5590 do_scroll_horizontal and do_scroll_vertical.
5591 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
5592
5cf82909
TT
55932019-06-25 Tom Tromey <tom@tromey.com>
5594
5595 * tui/tui-data.h (struct tui_source_window_base): New struct.
5596 (struct tui_source_window): Derive from tui_source_window_base.
5597 (struct tui_disasm_window): New struct.
5598 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
5599 from tui_source_window::clear_detail.
5600 (tui_source_window_base): Rename from tui_source_window.
5601 (~tui_source_window_base): Rename from ~tui_source_window.
5602 (tui_alloc_win_info): Create a tui_disasm_window.
5603
ee1d42d6
TT
56042019-06-25 Tom Tromey <tom@tromey.com>
5605
5606 * tui/tui-data.h (struct tui_source_window)
5607 (struct tui_data_window): Declare destructors.
5608 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
5609 destructors.
5610 (tui_win_info): Simplify.
5611
b4eb2452
TT
56122019-06-25 Tom Tromey <tom@tromey.com>
5613
5614 * tui/tui-winsource.c (tui_display_main)
5615 (tui_update_source_windows_with_addr)
5616 (tui_update_all_breakpoint_info): Update.
5617 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5618 (new_height_ok, parse_scrolling_args): Update.
5619 * tui/tui-stack.c (tui_show_frame_info): Update.
5620 * tui/tui-data.h (struct tui_list): Remove.
5621 (tui_source_windows): Return a reference to a std::vector.
5622 * tui/tui-data.c (source_windows): Now a std::vector.
5623 (tui_source_windows): Change return type.
5624 (tui_clear_source_windows): Rewrite.
5625 (tui_clear_source_windows_detail, tui_add_to_source_windows)
5626 (tui_free_all_source_wins_content): Rewrite.
5627
8761a91b
TT
56282019-06-25 Tom Tromey <tom@tromey.com>
5629
5630 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
5631 (struct tui_data_window, struct tui_cmd_window): Declare
5632 clear_detail method.
5633 * tui/tui-data.c (tui_source_window::clear_detail)
5634 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
5635 methods.
5636 (tui_clear_win_detail): Simplify.
5637
0ed69eda
TT
56382019-06-25 Tom Tromey <tom@tromey.com>
5639
5640 * tui/tui-layout.c (make_source_window, make_disasm_window)
5641 (make_source_or_disasm_window): Remove win_info_ptr parameter.
5642 Return the new window.
5643 (show_source_disasm_command, show_data)
5644 (show_source_or_disasm_and_command): Update.
5645
82432e10
TT
56462019-06-25 Tom Tromey <tom@tromey.com>
5647
5648 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
5649 parameter. Return the new window.
5650 (show_source_disasm_command): Update and remove NULL check.
5651 (show_source_or_disasm_and_command): Update.
5652
ec328aa5
TT
56532019-06-25 Tom Tromey <tom@tromey.com>
5654
5655 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
5656
33b906ab
TT
56572019-06-25 Tom Tromey <tom@tromey.com>
5658
5659 * tui/tui-data.h (struct tui_win_info): Make constructor
5660 protected. Make destructor virtual. Add initializers.
5661 (tui_source_window, tui_data_window, tui_cmd_window): New
5662 classes.
5663 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
5664 constructor. Add "type" parameter.
5665 (tui_source_window, tui_data_window, tui_cmd_window): New
5666 constructors.
5667 (tui_alloc_win_info): Instantiate the appropriate subclass.
5668
e7e11af4
TT
56692019-06-25 Tom Tromey <tom@tromey.com>
5670
5671 * tui/tui-win.c (tui_resize_all): Use delete.
5672 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
5673 destructor.
5674 (tui_free_window): Don't declare.
5675 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
5676 Update.
5677
6792b55e
TT
56782019-06-25 Tom Tromey <tom@tromey.com>
5679
5680 * tui/tui-data.h (struct tui_win_info): Add constructor.
5681 * tui/tui-data.c (tui_alloc_win_info): Use new.
5682 (tui_free_window): Use delete.
5683
f95675e1
TT
56842019-06-22 Tom Tromey <tom@tromey.com>
5685
5686 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
5687 declare.
5688 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
5689
5bff081c
TT
56902019-06-22 Tom Tromey <tom@tromey.com>
5691
5692 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
5693 declare.
5694 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
5695
47e3f474
TV
56962019-06-22 Tom de Vries <tdevries@suse.de>
5697
5698 * dwarf2read.c (create_addrmap_from_aranges)
5699 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
5700 instead of '%zu'.
5701
fd5866f6
SM
57022019-06-21 Simon Marchi <simon.marchi@efficios.com>
5703
5704 * dwarf2read.h (dwarf2_section_info_def): Remove.
5705 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
5706 * dwarf2read.c (struct dwo_sections) <types>: Change type to
5707 std::vector<dwarf2_section_info>.
5708 (struct dwo_file) <~dwo_file>: Remove.
5709 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
5710 types field.
5711 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
5712 (dwarf2_read_debug_names): Likewise.
5713 (create_debug_types_hash_table): Change parameter type to
5714 array_view, adjust code accordingly.
5715 (dwarf2_locate_dwo_sections): Adjust to std::vector.
5716 (partial_die_info::fixup): Likewise.
5717 (determine_prefix): Likewise.
5718 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
5719
fb1eb2f9
SM
57202019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5721
5722 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
5723 gdb_bfd_ref_ptr.
5724 <~dwo_file>: Remove call to gdb_bfd_unref.
5725 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
5726 gdb_bfd_ref_ptr::get.
5727
51ac9db5
SM
57282019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5729
5730 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
5731 type to htab_up.
5732 * dwarf2read.c (struct dwo_file): Initialize fields.
5733 <~dwo_file>: New.
5734 (free_dwo_file): Remove, move content to ~dwo_file.
5735 (struct dwo_file_deleter): Remove.
5736 (dwo_file_up>: Remove custom deleter.
5737 (free_dwo_files): Remove.
5738 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
5739 dwo_files.
5740 (process_skeletonless_type_units): Call unique_ptr::get.
5741 (allocate_dwo_file_hash_table): Add deleter to created hash
5742 table. Change return type to htab_up.
5743 (lookup_dwo_file_slot): Don't memset dwo_file, call
5744 unique_ptr::get.
5745 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
5746 (create_dwo_unit_in_dwp_v2): Likewise.
5747 (open_and_init_dwo_file): Likewise.
5748 (free_dwo_file_from_slot): Remove.
5749
dc4ccb6f
SM
57502019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5751
5752 * dwarf2read.h (struct dwarf2_section_info) <readin,
5753 is_virtual>: Change type to bool.
5754 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
5755 true instead of 1.
5756
e6a1c5cb
TT
57572019-06-19 Tom Tromey <tom@tromey.com>
5758
5759 * tui/tui-data.h (tui_init_content_element): Don't declare.
5760
6f6ffbeb
TT
57612019-06-19 Tom Tromey <tom@tromey.com>
5762
5763 * tui/tui-data.h (tui_init_win_info): Don't declare.
5764
f23f598e
TV
57652019-06-19 Tom de Vries <tdevries@suse.de>
5766
5767 * dwarf2read.h (abstract_to_concrete): Change type to
5768 std::unordered_map<sect_offset, std::vector<sect_offset>,
5769 gdb::hash_enum<sect_offset>>.
5770
680e1bee
TT
57712019-06-19 Tom Tromey <tromey@adacore.com>
5772
5773 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
5774 EVAL_AVOID_SIDE_EFFECTS specially.
5775
dcf37923
TT
57762019-06-19 Tom Tromey <tromey@adacore.com>
5777
5778 * source-cache.c (highlighter): New global.
5779 (source_cache::get_source_lines): Create a highlighter on demand.
5780
494986d5
AB
57812019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
5782
5783 * defs.h (deprecated_interactive_hook): Delete declaration.
5784 * interps.c (clear_interpreter_hooks): Remove use of
5785 deprecated_interactive_hook.
5786 * top.c (deprecated_interactive_hook): Delete definition.
5787 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
5788
3360b6e7
TV
57892019-06-18 Tom de Vries <tdevries@suse.de>
5790
5791 PR gdb/24515
5792 * dwarf2read.h (abstract_to_concrete): Change type from
5793 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
5794 std::unordered_map<sect_offset, std::vector<sect_offset>>.
5795 * dwarf2read.c (read_variable): Update.
5796 (dwarf2_fetch_die_loc_sect_off): Update.
5797
310b3441
TV
57982019-06-17 Tom de Vries <tdevries@suse.de>
5799
5800 PR gdb/24617
5801 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
5802 accessing parent[parent_len - 1].
5803
ba9777be
PP
58042019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
5805
5806 PR gdb/24364
5807 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
5808 call dtrace_process_dof with NULL dof.
5809
2b9f6e89
TV
58102019-06-16 Tom de Vries <tdevries@suse.de>
5811
5812 PR gdb/24445
5813 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
5814
431b3ead
TT
58152019-06-16 Tom Tromey <tom@tromey.com>
5816
5817 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5818 (make_all_visible): Use address of member.
5819
d04b44a1
TT
58202019-06-16 Tom Tromey <tom@tromey.com>
5821
5822 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
5823 (tui_free_window, free_content, free_content_elements): Remove
5824 unnecessary cast.
5825 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
5826 cast.
5827 * tui/tui-regs.c (tui_show_register_group)
5828 (tui_display_registers_from, tui_display_reg_element_at_line):
5829 Remove unnecessary cast.
5830
bf5142e7
AB
58312019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5832
5833 * linux-nat.c (normal_mask): Delete.
5834 (_initialize_linux_nat): Don't initialise normal_mask.
5835
c4973306
SM
58362019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
5837
5838 PR gdb/24445
5839 * dwarf-index-write.h (write_psymtabs_to_index): Add
5840 dwz_basename parameter.
5841 * dwarf-index-write.c (write_gdbindex): Move file writing to
5842 write_gdbindex_1. Change return type void.
5843 (assert_file_size): Move up, remove filename parameter.
5844 (write_gdbindex_1): New function.
5845 (write_debug_names): Change return type to void, call
5846 assert_file_size.
5847 (struct index_wip_file): New struct.
5848 (write_psymtabs_to_index): Add dwz_basename parameter. Move
5849 file logic to index_wip_file. Write index for dwz file if
5850 needed.
5851 (save_gdb_index_command): Pass basename of dwz file, if present.
5852 * dwarf-index-cache.c (index_cache::store): Obtain and pass
5853 build-id of dwz file, if present.
5854 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
5855 (dwarf2_get_dwz_file): Likewise.
5856 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
5857 (dwarf2_get_dwz_file): Likewise.
5858
395f9c91
TT
58592019-06-16 Tom Tromey <tom@tromey.com>
5860
5861 * coffread.c (process_coff_symbol): Use xstrdup.
5862 * value.c (create_internalvar): Use xstrdup.
5863
cafb3438
TT
58642019-06-16 Tom Tromey <tom@tromey.com>
5865
5866 * valops.c (value_cast, value_slice): Remove unnecessary cast.
5867 * breakpoint.c (stopin_command, stopat_command)
5868 (until_break_command, decode_location_default): Remove unnecessary
5869 cast.
5870 * utils.c (subset_compare): Remove unnecessary cast.
5871 * ada-lang.c (ada_update_initial_language): Remove unnecessary
5872 cast.
5873 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
5874 cast.
5875 * infcmd.c (path_command): Remove unnecessary cast.
5876 * coffread.c (decode_type): Remove unnecessary cast.
5877 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
5878 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
5879 * tui/tui-stack.c (tui_show_locator_content)
5880 (tui_show_frame_info): Remove unnecessary cast.
5881 * tui/tui-win.c (tui_scroll_forward_command)
5882 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
5883 (parse_scrolling_args): Remove unnecessary cast.
5884 * tui/tui-data.c (init_win_info, tui_del_window)
5885 (tui_free_window, tui_del_data_windows, tui_free_data_content)
5886 (free_content_elements): Remove unnecessary cast.
5887 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
5888 unnecessary cast.
5889 * tui/tui-source.c (tui_set_source_content)
5890 (tui_vertical_source_scroll): Remove unnecessary cast.
5891 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
5892 cast.
5893 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
5894 * tui/tui-regs.c (tui_display_registers_from)
5895 (tui_display_register): Remove unnecessary cast.
5896 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
5897 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
5898 (make_visible): Remove unnecessary cast.
5899 * tui/tui-winsource.c (tui_erase_source_content)
5900 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
5901 unnecessary cast.
5902 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
5903 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
5904 * stabsread.c (read_type, read_array_type, read_range_type):
5905 Remove unnecessary cast.
5906 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
5907 (parse_symbol, parse_type, upgrade_type, parse_external)
5908 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
5909 unnecessary cast.
5910 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
5911
730ead81
TT
59122019-06-16 Tom Tromey <tom@tromey.com>
5913
5914 * tui/tui-data.c (tui_alloc_generic_win_info)
5915 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
5916 checks.
5917
584a927c
AB
59182019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
5919 Andrew Burgess <andrew.burgess@embecosm.com>
5920
5921 * f-typeprint.c (f_print_type): Don't return early for not
5922 associated or not allocated types.
5923 (f_type_print_varspec_suffix): Add print_rank parameter and print
5924 ranks of array types in case they dangling.
5925 (f_type_print_base): Add print_rank parameter.
5926
30056ea0
AB
59272019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5928
5929 * NEWS: Mention new MI commands.
5930 * break-catch-throw.c (enum exception_event_kind): Move to
5931 breakpoint.h.
5932 (print_mention_exception_catchpoint): Output text as a single
5933 message.
5934 (catch_exception_command_1): Rename to...
5935 (catch_exception_event): ...this, make non-static, update header
5936 command, and change some parameter types.
5937 (catch_catch_command): Update for changes to
5938 catch_exception_command_1.
5939 (catch_throw_command): Likewise.
5940 (catch_rethrow_command): Likewise.
5941 * breakpoint.c (enum exception_event_kind): Delete.
5942 * breakpoint.h (enum exception_event_kind): Moved here from
5943 break-catch-throw.c.
5944 (catch_exception_event): Declare.
5945 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
5946 (mi_cmd_catch_throw): New function.
5947 (mi_cmd_catch_rethrow): New function.
5948 (mi_cmd_catch_catch): New function.
5949 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
5950 'catch-catch' entries.
5951 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
5952 (mi_cmd_catch_rethrow): Declare.
5953 (mi_cmd_catch_catch): Declare.
5954
ec8e2b6d
AB
59552019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5956
5957 * annotate.c (annotate_source_line): Change return type to void,
5958 update implementation to match.
5959 * annotate.h (annotate_source_line): Change return type to void,
5960 update header comment.
5961 * stack.c (print_frame_info): Don't change what frame information
5962 is printed based on whether annotations are on or not.
5963
0d3abd8c
AB
59642019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5965
5966 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
5967 (annotate_source): Make static.
5968 (annotate_source_line): Moved from source.c and renamed from
5969 identify_source_line. Update the return type.
5970 * annotate.h (annotate_source): Delete declaration.
5971 (annotate_source_line): Declaration moved from source.h, and
5972 renamed from identify_source_line. Return type updated.
5973 * source.c (identify_source_line): Moved to annotate.c and renamed
5974 to annotate_source_line.
5975 (info_line_command): Remove check of annotation_level.
5976 * source.h (identify_source_line): Move declaration to annotate.h
5977 and rename to annotate_source_line.
5978 * stack.c: Add 'annotate.h' include.
5979 (print_frame_info): Remove check of annotation_level before
5980 calling annotate_source_line.
5981
00df30ae
AB
59822019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5983
5984 * source-cache.c (source_cache::get_plain_source_lines): Use
5985 open_source_file_with_line_charpos instead of just
5986 open_source_file, remove call to find_source_lines.
5987 (source_cache::get_source_lines): Likewise.
5988 * source.c (find_source_lines): Make static.
5989 (get_filename_and_charpos): Renamed into...
5990 (open_source_file_with_line_charpos): ..this along with changes to
5991 return a scoped_fd, and some other minor clean ups.
5992 (identify_source_line): Use open_source_file_with_line_charpos.
5993 (search_command_helper): Use open_source_file_with_line_charpos
5994 instead of just open_source_file, remove call to
5995 find_source_lines.
5996 * source.h (open_source_file_with_line_charpos): Declare new
5997 function.
5998 (find_source_lines): Delete declaration.
5999
afda45a2
AB
60002019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6001
6002 * source.c (get_filename_and_charpos): Remove fullname
6003 parameter.
6004 (identify_source_line): Update call to get_filename_and_charpos.
6005
0735b091
TT
60062019-06-14 Tom Tromey <tromey@adacore.com>
6007
6008 PR gdb/24502:
6009 * ui-style.h (skip_ansi_escape): Update comment.
6010 * ui-file.h (class no_terminal_escape_file): New class.
6011 * ui-file.c (no_terminal_escape_file::write)
6012 (no_terminal_escape_file::puts): New methods.
6013 * cli/cli-logging.c (handle_redirections): Use
6014 no_terminal_escape_file.
6015
52ce35e2
TT
60162019-06-14 Tom Tromey <tromey@adacore.com>
6017
6018 * NEWS: Move convenience variable news above Python news.
6019
73cc7272
TT
60202019-06-14 Tom Tromey <tom@tromey.com>
6021
6022 * gnulib: Move directory to top-level.
6023 * configure.ac: Don't configure gnulib.
6024 * configure: Rebuild.
6025 * common/common-defs.h: Use new path to gnulib.
6026 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
6027 (GNULIB_H): Remove.
6028 (INCGNU): Look in new gnulib location.
6029 (HFILES_NO_SRCDIR): Remove gnulib files.
6030 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
6031 (generated_files): Remove GNULIB_H.
6032 ($(LIBGNU), all-lib): Remove targets.
6033 (distclean): Don't mention GNULIB_BUILDDIR.
6034 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
6035
f5686554
TT
60362019-06-14 Tom Tromey <tromey@adacore.com>
6037
6038 * symfile.c (add_symbol_file_command): Remove obsolete comment.
6039 Warn if symbol file does not provide any symbols.
6040
a0c1ffed
TT
60412019-06-14 Tom Tromey <tromey@adacore.com>
6042
6043 * source.c (find_and_open_source): Respect basenames_may_differ.
6044
7c39e397
AB
60452019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
6046
6047 * annotate.c (annotate_breakpoints_invalid): Make use of
6048 scoped_restore_terminal_state.
6049 (annotate_frames_invalid): Likewise.
6050
f411722c
TT
60512019-06-14 Tom Tromey <tromey@adacore.com>
6052
6053 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
6054 allow assignment to an internalvar.
6055
4268ec18
TT
60562019-06-14 Tom Tromey <tromey@adacore.com>
6057
6058 * ada-lex.l: Allow "_" in attribute names.
6059
abdb711e
TT
60602019-06-14 Tom Tromey <tromey@adacore.com>
6061
6062 PR gdb/24653:
6063 * regcache.c (registers_changed): Don't call alloca.
6064 * top.c (execute_command): Don't call alloca.
6065
4c048731
PA
60662019-06-13 Pedro Alves <palves@redhat.com>
6067
6068 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
6069 'expression'. When parsing an expression, error out if there's
6070 junk after "unlimited".
6071 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6072 (do_set_command): Adjust calls to is_unlimited_literal.
6073
66eb1ed3
PA
60742019-06-13 Pedro Alves <palves@redhat.com>
6075
6076 * compile/compile.c (make_compile_options_def_group): Add braces
6077 around array_view initializer.
6078 * thread.c (make_thread_apply_all_options_def_group)
6079 (make_thread_apply_all_options_def_group): Likewise.
6080
3345721a
PA
60812019-06-13 Pedro Alves <palves@redhat.com>
6082
6083 * NEWS (New commands): Mention "maint test-options
6084 require-delimiter", "maint test-options unknown-is-error", "maint
6085 test-options unknown-is-operand" and "maint show
6086 test-options-completion-result".
6087 (New command options, command completion): New section.
6088 (Completion improvements): New section.
6089 Mention that you can abbreviate "unlimited".
6090
6206060d
PA
60912019-06-13 Pedro Alves <palves@redhat.com>
6092
6093 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
6094 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
6095 * unittests/cli-utils-selftests.c (test_parse_flags)
6096 (test_parse_flags_qcs): Delete.
6097 (test_cli_utils): Don't call deleted functions.
6098
6665660a
PA
60992019-06-13 Pedro Alves <palves@redhat.com>
6100
6101 * thread.c: Include "cli/cli-option.h".
6102 (tp_array_compar_ascending): Global.
6103 (tp_array_compar): Delete function.
6104 (tp_array_compar_ascending, tp_array_compar_descending): New
6105 functions.
6106 (ascending_option_def, qcs_flag_option_def)
6107 (thr_qcs_flags_option_defs)
6108 (make_thread_apply_all_options_def_group)
6109 (make_thread_apply_options_def_group): New.
6110 (thread_apply_all_command): Use gdb::option::process_options.
6111 (thread_apply_command_completer)
6112 (thread_apply_all_command_completer): New.
6113 (thread_apply_command): Use gdb::option::process_options.
6114 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
6115 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
6116 to generate help text of "thread apply". Adjust "taas"'s help.
6117 * tid-parse.c (tid_range_parser::in_thread_range): New method.
6118 * tid-parse.h (tid_range_parser::in_thread_range): New method.
6119
f7e13587
PA
61202019-06-13 Pedro Alves <palves@redhat.com>
6121
6122 * thread.c (thread_apply_command): Check for invalid TID with
6123 isdigit instead of !isalpha.
6124
5d707134
PA
61252019-06-13 Pedro Alves <palves@redhat.com>
6126
6127 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
6128 (validate_flags_qcs): New.
6129 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
6130 (validate_flags_qcs): Declare.
6131 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
6132 (make_frame_apply_options_def_group): New.
6133 (frame_apply_command_count): Process options with
6134 gdb::option::process_options.
6135 (frame_apply_completer): New.
6136 (frame_apply_level_completer, frame_apply_all_completer)
6137 (frame_apply_completer): New.
6138 (_initialize_stack): Update help of "frame apply", "frame apply
6139 level", "frame apply all" and "faas" to mention supported options
6140 and install command completers.
6141 * stack.h (frame_apply_all_completer): Declare.
6142 * thread.c: Include "stack.h".
6143 (tfaas_command): Add "--".
6144 (_initialize_thread): Update help "tfaas" to mention supported
6145 options and install command completer.
6146
272d4594
PA
61472019-06-13 Pedro Alves <palves@redhat.com>
6148
6149 * completer.c (complete_nested_command_line): New.
6150 (gdb_completion_word_break_characters_throw): Add assertion.
6151 * completer.h (complete_nested_command_line): Declare.
6152
90a1ef87
PA
61532019-06-13 Pedro Alves <palves@redhat.com>
6154
6155 * stack.c (parse_backtrace_qualifiers): New.
6156 (backtrace_command): Use it.
6157 (backtrace_command_completer): Complete on qualifiers.
6158
d4c16835
PA
61592019-06-13 Pedro Alves <palves@redhat.com>
6160
6161 * frame.c: Include "cli/cli-option.h.
6162 (user_set_backtrace_options): New.
6163 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
6164 Delete.
6165 (get_prev_frame): Adjust.
6166 (boolean_option_def, uinteger_option_def)
6167 (set_backtrace_option_defs): New.
6168 (_initialize_frame): Adjust and use
6169 gdb::option::add_setshow_cmds_for_options to install "set
6170 backtrace past-main" and "set backtrace past-entry".
6171 * frame.h: Include "cli/cli-option.h".
6172 (struct frame_print_options): Forward declare.
6173 (print_frame_arguments_all, print_frame_arguments_scalars)
6174 (print_frame_arguments_none): Declare.
6175 (print_entry_values): Delete declaration.
6176 (struct frame_print_options, user_frame_print_options): New.
6177 (struct set_backtrace_options): New.
6178 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
6179 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
6180 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
6181 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
6182 (list_args_or_locals): Add frame_print_options parameter.
6183 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6184 * python/py-framefilter.c (enumerate_args): Pass down
6185 USER_FRAME_PRINT_OPTIONS.
6186 * stack.c: Include "cli/cli-option.h".
6187 (print_frame_arguments_all, print_frame_arguments_scalars)
6188 (print_frame_arguments_none): Declare.
6189 (print_raw_frame_arguments, print_entry_values): Delete.
6190 (user_frame_print_options): New.
6191 (boolean_option_def, enum_option_def, frame_print_option_defs):
6192 New.
6193 (struct backtrace_cmd_options): New.
6194 (bt_flag_option_def): New.
6195 (backtrace_command_option_defs): New.
6196 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6197 (print_frame_arg, read_frame_arg, print_frame_args)
6198 (print_frame_info, print_frame): Add frame_print_options parameter
6199 and use it.
6200 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
6201 (backtrace_command_1): Add frame_print_options and
6202 backtrace_cmd_options parameters and use them.
6203 (make_backtrace_options_def_group): New.
6204 (backtrace_command): Process command options with
6205 gdb::option::process_options.
6206 (backtrace_command_completer): New.
6207 (_initialize_stack): Extend "backtrace"'s help to mention
6208 supported options. Install completer for "backtrace".
6209 Install some settings commands with add_setshow_cmds_for_options.
6210
2daf894e
PA
62112019-06-13 Pedro Alves <palves@redhat.com>
6212
6213 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
6214 and that "set/show print raw frame-arguments" are now deprecated.
6215
6216 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
6217 command.
6218 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
6219 * stack.c (_initialize_stack): Install "set/show print
6220 raw-frame-arguments", and deprecate "set/show print raw
6221 frame-arguments".
6222 * valprint.c (_initialize_valprint): Deprecate "set/show print
6223 raw".
6224
e6ed716c
PA
62252019-06-13 Pedro Alves <palves@redhat.com>
6226
6227 * compile/compile.c (struct compile_options): New.
6228 (compile_flag_option_def, compile_command_option_defs)
6229 (make_compile_options_def_group): New.
6230 (compile_file_command): Handle options with
6231 gdb::option::process_options.
6232 (compile_file_command_completer): New function.
6233 (compile_code_command): Handle options with
6234 gdb::option::process_options.
6235 (compile_code_command_completer): New function.
6236 (_initialize_compiler): Install completers for "compile code" and
6237 "compile file". Mention available options in "compile code" and
6238 "compile code"'s help.
6239 * completer.c (advance_to_completion_word): New, factored out from
6240 ...
6241 (advance_to_expression_complete_word_point): ... this.
6242 (advance_to_filename_complete_word_point): New.
6243 * completer.h (advance_to_filename_complete_word_point): New
6244 declaration.
6245
7d8062de
PA
62462019-06-13 Pedro Alves <palves@redhat.com>
6247
6248 * compile/compile.c: Include "cli/cli-option.h".
6249 (compile_print_value): Scope data pointer is now a
6250 value_print_options pointer; adjust.
6251 (compile_print_command): Process options. Scope data pointer is
6252 now a value_print_options pointer; adjust.
6253 (_initialize_compile): Update "compile print"'s help to include
6254 supported options. Install a completer for "compile print".
6255 * cp-valprint.c (show_vtblprint, show_objectprint)
6256 (show_static_field_print): Delete.
6257 (_initialize_cp_valprint): Don't install "set print
6258 static-members", "set print vtbl", "set print object" here.
6259 * printcmd.c: Include "cli/cli-option.h" and
6260 "common/gdb_optional.h".
6261 (print_command_parse_format): Rework to fill in a
6262 value_print_options instead of a format_data.
6263 (print_value): Change parameter type from format_data pointer to
6264 value_print_options reference. Adjust.
6265 (print_command_1): Process options. Adjust to pass down a
6266 value_print_options.
6267 (print_command_completer): New.
6268 (_initialize_printcmd): Install print_command_completer as
6269 handle_brkchars completer for the "print" command. Update
6270 "print"'s help to include supported options.
6271 * valprint.c: Include "cli/cli-option.h".
6272 (show_vtblprint, show_objectprint, show_static_field_print): Moved
6273 here from cp-valprint.c.
6274 (boolean_option_def, uinteger_option_def)
6275 (value_print_option_defs, make_value_print_options_def_group):
6276 New. Use gdb::option::add_setshow_cmds_for_options to install
6277 "set print elements", "set print null-stop", "set print repeats",
6278 "set print pretty", "set print union", "set print array", "set
6279 print address", "set print symbol", "set print array-indexes".
6280 * valprint.h: Include <string> and "cli/cli-option.h".
6281 (make_value_print_options_def_group): Declare.
6282 (print_value): Change parameter type from format_data pointer to
6283 value_print_options reference.
6284 (print_command_completer): Declare.
6285
9d0faba9
PA
62862019-06-13 Pedro Alves <palves@redhat.com>
6287
6288 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
6289 (COMMON_SFILES): Add maint-test-settings.c.
6290 * cli/cli-decode.c (boolean_enums): New global, factored out from
6291 ...
6292 (add_setshow_boolean_cmd): ... here.
6293 * cli/cli-decode.h (boolean_enums): Declare.
6294 * cli/cli-option.c: New file.
6295 * cli/cli-option.h: New file.
6296 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
6297 factored out from ...
6298 (parse_cli_boolean_value(const char *)): ... this.
6299 (is_unlimited_literal): Change parameter type to pointer to
6300 pointer. Adjust and advance ARG pointer.
6301 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6302 (parse_cli_var_enum): New, factored out from ...
6303 (do_set_command): ... this. Adjust.
6304 * cli/cli-setshow.h (parse_cli_boolean_value)
6305 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6306 (parse_cli_var_enum): Declare.
6307 * cli/cli-utils.c: Include "cli/cli-option.h".
6308 (get_ulongest): New.
6309 * cli/cli-utils.h (get_ulongest): Declare.
6310 (check_for_argument): New overloads.
6311 * maint-test-options.c: New file.
6312
2c722807
PA
63132019-06-13 Pedro Alves <palves@redhat.com>
6314
6315 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
6316 parse a range if "-" is at the end of the string.
6317
dee7b4c8
PA
63182019-06-13 Pedro Alves <palves@redhat.com>
6319
6320 * cli/cli-setshow.c (parse_auto_binary_operation)
6321 (parse_cli_boolean_value): Don't allow "o".
6322
dca0f6c0
PA
63232019-06-13 Pedro Alves <palves@redhat.com>
6324
6325 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
6326 * NEWS: Mention maint test-settings KIND.
6327 * maint-test-settings.c: New file.
6328
597bf39d
PA
63292019-06-13 Pedro Alves <palves@redhat.com>
6330
6331 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
6332 completer.
6333 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
6334 "set" completers.
6335
48c410fb
PA
63362019-06-13 Pedro Alves <palves@redhat.com>
6337
6338 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
6339 after item.
6340
93bcb043
PA
63412019-06-13 Pedro Alves <palves@redhat.com>
6342
6343 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
6344
cbba3ecd
PA
63452019-06-13 Pedro Alves <palves@redhat.com>
6346
6347 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
6348 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
6349 call.
6350 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
6351 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
6352 calls.
6353 (check_for_argument): Skip spaces after argument.
6354
b9a3f842
PA
63552019-06-13 Pedro Alves <palves@redhat.com>
6356
6357 * thread.c (thread_apply_command): Adjust TID parsing.
6358 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
6359 detected before end of string.
6360 (tid_is_in_list): Error out if LIST is invalid.
6361
3844e605
PA
63622019-06-13 Pedro Alves <palves@redhat.com>
6363
6364 * completer.c (complete_line_internal_1): Rewind completion word
6365 point.
6366 (completion_tracker::advance_custom_word_point_by): Change
6367 parameter type to int.
6368 * completer.h (completion_tracker::advance_custom_word_point_by):
6369 Likewise.
6370
00b56dbe
PA
63712019-06-13 Pedro Alves <palves@redhat.com>
6372
6373 * completer.c (advance_to_completion_word): Handle delimiters.
6374
d106773e
PA
63752019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
6376
6377 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
6378
08f10e02
TT
63792019-06-11 Tom Tromey <tom@tromey.com>
6380
6381 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
6382 (xmalloc_failed): Move to alloc.c.
6383 * alloc.c: New file.
6384 * Makefile.in (COMMON_SFILES): Add alloc.c.
6385
1c7fe951
TT
63862019-06-11 Tom Tromey <tom@tromey.com>
6387
6388 * nat/linux-waitpid.c: Don't include server.h.
6389 (linux_debug): Remove.
6390 (my_waitpid): Update.
6391
89549d7f
TT
63922019-06-11 Tom Tromey <tromey@adacore.com>
6393
6394 * infcall.c (_initialize_infcall): Remove trailing newline from
6395 help.
6396 * user-regs.c (_initialize_user_regs): Remove trailing newline
6397 from help.
6398 * typeprint.c (_initialize_typeprint): Remove trailing newline
6399 from help.
6400 * reverse.c (_initialize_reverse): Remove trailing newlines from
6401 help.
6402 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
6403 from help.
6404 * language.c (add_set_language_command): Remove trailing newline
6405 from help.
6406 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
6407 help.
6408 * disasm.c (_initialize_disasm): Remove trailing newline from
6409 help.
6410 * top.c (init_main): Remove trailing newline from help.
6411 * interps.c (_initialize_interpreter): Remove trailing newline
6412 from help.
6413 * btrace.c (_initialize_btrace): Remove trailing newlines from
6414 help.
6415 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
6416 from help.
6417 * python/python.c (_initialize_python): Remove trailing newline
6418 from help.
6419 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
6420 help.
6421 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
6422 from help. Reformat some text.
6423 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
6424 from help.
6425 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
6426 newline from help.
6427
86108c13
TT
64282019-06-11 Tom Tromey <tromey@adacore.com>
6429
6430 * darwin-nat.c (darwin_decode_exception_message)
6431 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
6432
a7067863
AB
64332019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
6434
6435 * valops.c (value_slice): Check for not allocated or not
6436 associated values.
6437
9ab08412
TV
64382019-06-10 Tom de Vries <tdevries@suse.de>
6439
6440 PR gdb/24618
6441 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
6442 sure an empty slot (defined by a 32-bit zero pair) is recognized as
6443 invalid.
6444
f19e22e9
TV
64452019-06-10 Tom de Vries <tdevries@suse.de>
6446
6447 PR gdb/24611
6448 * linespec.c (linespec_lexer_lex_string): Remove incorrect
6449 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
6450
e99f9db0
TV
64512019-06-10 Tom de Vries <tdevries@suse.de>
6452
6453 PR symtab/24545
6454 * symtab.c (struct demangled_name_entry): Add language field.
6455 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
6456 static minimal symbol". Set and use language field.
6457
9bf7038b
TT
64582019-06-10 Tom Tromey <tromey@adacore.com>
6459
6460 * ada-lang.c (_initialize_ada_language): Update help text.
6461
422186a9
TT
64622019-06-10 Tom Tromey <tromey@adacore.com>
6463
6464 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
6465 with a newline.
6466 * guile/guile.c (handle_boot_error): Don't end warning with a
6467 newline.
6468 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
6469 warning with a newline.
6470 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
6471 newline.
6472 (s12z_frame_cache): Likewise.
6473 * dwarf-index-cache.c (index_cache::store): Don't end warning with
6474 a newline.
6475 * solib-svr4.c (disable_probes_interface): Don't end warning with
6476 a newline.
6477 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
6478 newline.
6479 * python/python.c (do_finish_initialization): Don't end warning
6480 with a newline.
6481
25ce02ee
TT
64822019-06-10 Tom Tromey <tom@tromey.com>
6483
6484 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6485 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
6486 gdbpy_enter.
6487
caa429d8
TT
64882019-06-10 Tom Tromey <tromey@adacore.com>
6489
6490 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
6491 data.
6492 (elf_new_init): Don't call stabsread_new_init.
6493 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
6494 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
6495 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
6496
81873cc8
TV
64972019-06-10 Tom de Vries <tdevries@suse.de>
6498
6499 PR symtab/16264
6500 PR symtab/24517
6501 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
6502
4fa0265e
РИ
65032019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
6504
6505 * source.c (find_and_open_source): Also rewrite relative file
6506 names.
6507
1a3da2cd
AB
65082019-04-26 Amos Bird <amosbird@gmail.com>
6509
6510 * annotate.c (annotate_thread_exited): Add "thread-exited"
6511 annotation.
6512
3847a7bf
TT
65132019-06-06 Tom Tromey <tromey@adacore.com>
6514
6515 * maint.h (class scoped_command_stats): Use
6516 DISABLE_COPY_AND_ASSIGN.
6517 <print_time>: New method.
6518 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
6519 print_time.
6520 (scoped_command_stats::print_time): New method.
6521
312617a3
AB
65222019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6523
6524 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
6525 instructions of lengths 6 or 8 bytes.
6526
b02f78f9
PA
65272019-06-04 Pedro Alves <palves@redhat.com>
6528
6529 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
6530
6531 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
6532 * breakpoint.c (condition_completer): Likewise.
6533 * cli/cli-dump.c (scan_expression): Likewise.
6534 * common/filestuff.c (mkdir_recursive): Likewise.
6535 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
6536 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
6537 (gdb_abspath): Likewise.
6538 * compile/compile-cplus-types.c
6539 (compile_cplus_instance::decl_name): Likewise.
6540 * completer.c (complete_explicit_location):
6541 (signal_completer, reg_or_group_completer_1): Likewise.
6542 * cp-support.c (cp_remove_params_if_any): Likewise.
6543 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
6544 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
6545 * infcmd.c (strip_bg_char): Likewise.
6546 * linespec.c (copy_token_string): Likewise.
6547 * mi/mi-main.c (output_cores): Likewise.
6548 * psymtab.c (psymtab_search_name):
6549 * symfile.c (test_set_ext_lang_command): Likewise.
6550 * target.c (target_fileio_read_stralloc): Likewise.
6551 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
6552 * value.c (complete_internalvar): Likewise.
6553
e1f2e1a2
CB
65542019-06-04 Christian Biesinger <cbiesinger@google.com>
6555
6556 Add objfile property to gdb.Type.
d3238f7d
PA
6557 * NEWS: Mention Python API addition.
6558 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 6559
e664d728
PW
65602019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6561
6562 * NEWS: Mention the new set|show style [title|highlight].
6563 Mention changes to "show style", "help" and "apropos".
6564
66d8c862
PW
65652019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6566
6567 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
6568 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
6569 instead of print_help_for_command.
6570 (print_doc_of_command): New function.
6571 (help_list): Add 'apropos -v word' suggestion.
6572 (print_help_for_command): Style the command name using title style.
6573 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
6574 (_initialize_cli_cmds): Describe -v in apropos_command help.
6575
9303eb2f
PW
65762019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6577
6578 * cli/cli-style.h (cli_style_option): Add name in constructor,
6579 add m_name class member, add constructor with intensity,
6580 add name class function.
6581 (cli_style_option::add_setshow_commands): Remove name argument.
6582 (highlight_style, title_style): New styles.
6583 * cli/cli-style.c (do_show): New function that shows a style
6584 characteristic styling the style name with itself.
6585 (set_style_name): New function.
6586 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
6587 Update all callers according to the changes in cli/cli-style.h.
6588 * utils.h (fputs_highlighted): New function.
6589 * utils.c (fputs_highlighted): Likewise.
6590
e2c52041
PW
65912019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6592
6593 * NEWS: Mention new pipe command and new convenience variables.
6594
947d3946
PW
65952019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6596
6597 * cli/cli-cmds.c (pipe_command): New function.
6598 (_initialize_cli_cmds): Call add_com for pipe_command.
6599 Define | as an alias for pipe.
6600 (exit_status_set_internal_vars): New function.
6601 (shell_escape): Call exit_status_set_internal_vars.
6602 cli/cli-decode.c (find_command_name_length): Recognize | as
6603 a single character command.
6604
b8fd0918
PW
66052019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6606
6607 * gdbcmd.h (execute_command_to_ui_file): New declaration.
6608 top.c (execute_command_to_ui_file): New function, mostly a copy
6609 of execute_command_to_string.
6610 (execute_command_to_string): Implement by calling
6611 execute_command_to_ui_file.
6612
68bb5386
PW
66132019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6614
6615 * top.h (saved_command_line): Remove declaration.
6616 * top.c (previous_saved_command_line, previous_repeat_arguments):
6617 New variables.
6618 (saved_command_line): Make static, define together with other
6619 'repeat variables'.
6620 (dont_repeat): Clear repeat_arguments.
6621 (repeat_previous, get_saved_command_line, save_command_line):
6622 New functions.
6623 (gdb_init): Initialize saved_command_line
6624 and previous_saved_command_line.
6625 * main.c (captured_main_1): Remove saved_command_line initialization.
6626 * event-top.c (handle_line_of_input): Update to use
6627 the new 'repeat' related functions instead of direct access to
6628 saved_command_line.
6629 * command.h (repeat_previous, get_saved_command_line,
6630 save_command_line): New declarations.
6631 (dont_repeat): Add comment.
6632
bfcdb852
TT
66332019-05-30 Tom Tromey <tromey@adacore.com>
6634
6635 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
6636 Fix comment.
6637 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
6638
0ef209f2
JV
66392019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
6640
6641 PR cli/24587
6642 * completer.c (complete): Initialize variable word.
6643
955b06fa
SDJ
66442019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
6645
6646 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6647 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
6648 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
6649 'body' is NULL to the outter 'if', protecting the '!is_define'
6650 situation as well.
6651
fa9c3fa0
TT
66522019-05-29 Tom Tromey <tromey@adacore.com>
6653
6654 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
6655 (dwarf_unknown): New function.
6656 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
6657 (dwarf_type_encoding_name): Use dwarf_unknown.
6658
4330d61d
TT
66592019-05-29 Tom Tromey <tromey@adacore.com>
6660
6661 PR c++/20020:
6662 * cp-valprint.c (cp_print_value_fields): Call
6663 cp_print_static_field inside "try".
6664
33a6bc35
TT
66652019-05-29 Tom Tromey <tromey@adacore.com>
6666
6667 * inflow.c (struct terminal_info): Add default operator=.
6668 * configure: Rebuild.
6669 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
6670 -Wdeprecated-copy-dtor, -Wredundant-move.
6671
000439d5
TT
66722019-05-29 Tom Tromey <tromey@adacore.com>
6673
6674 * NEWS: Add entry.
6675 * infcmd.c (print_return_value_1): Handle finish_print
6676 option.
6677 (show_print_finish): New function.
6678 (_initialize_infcmd): Add "set/show print finish" commands.
6679 * valprint.c (user_print_options): Initialize new member.
6680 * valprint.h (struct value_print_options) <finish_print>: New
6681 member.
6682
c0e70c62
TT
66832019-05-28 Tom Tromey <tromey@adacore.com>
6684
6685 * ada-lang.c (ada_remove_Xbn_suffix)
6686 (find_old_style_renaming_symbol)
6687 (parse_old_style_renaming): Remove.
6688 (ada_find_renaming_symbol): Don't call
6689 find_old_style_renaming_symbol.
6690 (ada_is_renaming_symbol): Rename from
6691 ada_find_renaming_symbol. Remove "block" parameter. Return
6692 bool. Now static.
6693 (ada_read_var_value): Update and simplify.
6694 * ada-exp.y (write_var_or_type): Remove old code.
6695
766f8836
AH
66962019-05-28 Alan Hayward <alan.hayward@arm.com>
6697
6698 * event-top.c: Remove include comment.
6699 * inflow.c (class scoped_ignore_sigttou): Move from here...
6700 * inflow.h (class scoped_ignore_sigttou): ...to here.
6701 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
6702 * top.c: Remove include comment.
6703
eb41253a
TT
67042019-05-27 Tom Tromey <tom@tromey.com>
6705
6706 * NEWS: Fix typo.
6707
4ca51187
TT
67082019-05-22 Tom Tromey <tromey@adacore.com>
6709
6710 * target.c (target_follow_exec): Constify parameter.
6711 * target-delegates.c: Rebuild.
6712 * remote.c (remote_target::follow_exec): Constify parameter.
6713 * infrun.c (follow_exec): Constify parameter.
6714 * target.h (struct target_ops) <follow_exec>: Constify parameter.
6715 (target_follow_exec): Likewise.
6716
8fca4da0
AH
67172019-05-22 Alan Hayward <alan.hayward@arm.com>
6718
6719 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
6720 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
6721
b7060614
AH
67222019-05-22 Alan Hayward <alan.hayward@arm.com>
6723
6724 * NEWS: Add debugredirect and testsuite sections.
6725
0a5954bd
SC
67262019-05-22 Simon Cook <simon.cook@embecosm.com>
6727
6728 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
6729 target descriptions using exclusively floating point register name
6730 aliases.
6731
dc42e902
AB
67322019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
6733
6734 PR gdb/18644:
6735 * f-lang.c (build_fortran_types): Handle the case where
6736 gdbarch_floatformat_for_type returns a nullptr.
6737
fb7806c7
TV
67382019-05-21 Tom de Vries <tdevries@suse.de>
6739
6740 PR cli/24587
6741 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
6742
34d11c68
AB
67432019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6744
6745 PR gdb/18644:
6746 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
6747 16-byte floats.
6748 * i386-tdep.c (i386_floatformat_for_type): Use
6749 floatformats_ia64_quad for the 16-byte floating point component
6750 within a fortran 32-byte complex number.
6751
122cf0f2
AB
67522019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6753
6754 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
6755 delete default constructor.
6756 (find_partial_die): Update to return const struct.
6757 (partial_die_parent_scope): Move variable declaration into scope
6758 of its use and change its type to auto.
6759 (guess_partial_die_structure_name): Likewise.
6760 (partial_die_info::fixup): Likewise.
6761
33d0e35a
TT
67622019-05-17 Tom Tromey <tromey@adacore.com>
6763
6764 * source.c (find_and_open_source): Remove cast.
6765
a45575b0
TT
67662019-05-17 Tom Tromey <tromey@adacore.com>
6767
6768 * annotate.c (annotate_source): Make "filename" const.
6769 * annotate.h (annotate_source): Use const.
6770
81f47ac2
AH
67712019-05-17 Alan Hayward <alan.hayward@arm.com>
6772
6773 * disasm.c (set_disassembler_options): Send errors to stderr.
6774
ca1285d1
AH
67752019-05-17 Alan Hayward <alan.hayward@arm.com>
6776
6777 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
6778 (cli_interp_base::set_logging): Check debug_redirect.
6779 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
6780 * cli/cli-logging.c (debug_redirect): Add static variable.
6781 (pop_output_files): Add default param.
6782 (handle_redirections): Print debug setting.
6783 (show_logging_command): Likewise.
6784 (_initialize_cli_logging): Add debugredirect command.
6785 * interps.c (current_interp_set_logging): Add debug_redirect
6786 parameter.
6787 * interps.h (set_logging): Add debug_redirect parameter.
6788 (current_interp_set_logging): Likewise.
6789 * mi/mi-common.h: Likewise.
6790 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
6791
67922019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
6793 Tom Tromey <tromey@adacore.com>
6794
6795 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
6796 directly.
6797 * cli/cli-interp.h (make_logging_output): Remove declaration.
6798 * cli/cli-logging.c (make_logging_output): Remove function.
6799 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
6800 directly.
6801 * ui-file.c (tee_file::tee_file): Remove bools.
6802 (tee_file::~tee_file): Remove deletes.
6803 * ui-file.h (tee_file): Remove bools.
6804
26648588
JV
68052019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
6806
6807 * mi/mi-cmds.h (mi_cmd_complete): New function.
6808 * mi/mi-main.c (mi_cmd_complete): Likewise.
6809 * mi/mi-cmds.c: Define new MI command -complete.
6810 * NEWS: Mention new -complete command.
6811
6e035501
JV
68122019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
6813
6814 * completer.h (complete): New function.
6815 * completer.c (complete): Likewise.
6816 * cli/cli-cmds.c: (complete_command): Update to use new complete()
6817 function defined in completer.h.
6818
7d0e2ece
JV
68192019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
6820
e79be6e5 6821 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 6822
fb816e8b
TV
68232019-05-17 Tom de Vries <tdevries@suse.de>
6824
6825 PR gdb/24094
6826 * dwarf2read.c (struct cu_partial_die_info): New struct.
6827 (find_partial_die): Return cu_partial_die_info.
6828 (partial_die_parent_scope, guess_partial_die_structure_name)
6829 (partial_die_info::fixup): Handle new return type of find_partial_die.
6830
677052f2
SDJ
68312019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6832
a1726c38 6833 PR breakpoints/24541
677052f2
SDJ
6834 * stap-probe.c (stap_parse_register_operand): Make "regname" an
6835 "std::string", simplifying the algorithm.
6836
f3da9116
SDJ
68372019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6838
6839 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
6840 (stap_static_probe_ops::get_probes): Likewise.
6841
f1bb75ab
SDJ
68422019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6843
6844 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
6845 '-')" and "else if".
6846 (stap_parse_single_operand): Join checks for
6847 "gdbarch_stap_parse_special_token_p" and
6848 "gdbarch_stap_parse_special_token" in the same "if" statement.
6849 Invert check when verifying for operation on register
6850 displacement.
6851
3ca58cde
SDJ
68522019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6853
6854 * stap-probe.c (stap_get_opcode): Update comment.
6855 (stap_get_expected_argument_type): Likewise.
6856 (handle_stap_probe): Likewise.
6857
af2d9bee
SDJ
68582019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6859
6860 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
6861 return type to 'bool'. Adjust comment. Use 'bool' when
6862 appropriate.
6863 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6864 * stap-probe.c (stap_parse_argument_1): Likewise.
6865 (stap_is_operator): Likewise.
6866 (stap_is_generic_prefix): Likewise.
6867 (stap_is_register_prefix): Likewise.
6868 (stap_is_register_indirection_prefix): Likewise.
6869 (stap_is_integer_prefix): Likewise.
6870 (stap_generic_check_suffix): Likewise.
6871 (stap_check_integer_suffix): Likewise.
6872 (stap_check_register_suffix): Likewise.
6873 (stap_check_register_indirection_suffix): Likewise.
6874 (stap_parse_register_operand): Likewise.
6875 (stap_parse_single_operand): Likewise.
6876 (stap_parse_argument_1): Likewise.
6877 (stap_probe::get_argument_count): Likewise.
6878 (stap_is_operator): Likewise.
6879
61c9c421
TT
68802019-05-16 Tom Tromey <tromey@adacore.com>
6881
6882 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
6883 keyword to foreach.
6884
9ddc1af1
SM
68852019-05-15 Simon Marchi <simon.marchi@efficios.com>
6886
6887 * linux-thread-db.c (try_thread_db_load_1): Change return type
6888 to bool.
6889 (try_thread_db_load): Likewise.
6890 (try_thread_db_load_from_pdir_1): Likewise.
6891 (try_thread_db_load_from_pdir): Likewise.
6892 (try_thread_db_load_from_sdir): Likewise.
6893 (try_thread_db_load_from_dir): Likewise.
6894 (thread_db_load_search): Likewise.
6895 (has_libpthread): Likewise.
6896 (thread_db_load): Likewise.
6897
7bede828
SDJ
68982019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
6899
6900 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6901 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
6902 NULL, and complain/return if that's the case.
6903
c5358db4
JD
69042019-05-15 John Darrington <john@darrington.wattle.id.au>
6905
6906 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
6907 (advance, posn, abstract_read_memory): New functions.
6908 [struct mem_read_abstraction]: New struct.
6909 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
6910
c408a94f
TT
69112019-05-14 Tom Tromey <tromey@adacore.com>
6912
6913 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
6914 value is not lval_memory.
6915
e7bd7fba
TT
69162019-05-14 Tom Tromey <tromey@adacore.com>
6917
6918 * solib.c (info_sharedlibrary_command): Style the file name.
6919
a6d0f249
AH
69202019-05-14 Alan Hayward <alan.hayward@arm.com>
6921
6922 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
6923 (aarch64_vnv_type): Likewise.
6924 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
6925 * common/tdesc.c: Likewise.
6926 * common/tdesc.h (enum tdesc_type_kind): Likewise.
6927 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
6928 * features/aarch64-fpu.xml: Add ieee half view.
6929 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
6930 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
6931 * gdbtypes.h (struct builtin_type): Likewise.
6932 (struct objfile_type): Likewise.
6933
66b8bb74
SM
69342019-05-12 Paul Naert <paul.naert@polymtl.ca>
6935
6936 * language.c (language_sniff_from_mangled_name): Fix "langauge"
6937 typo.
6938 * location.h (string_to_event_location): Likewise.
6939
21c219fd
JB
69402019-05-11 Joel Brobecker <brobecker@adacore.com>
6941
6942 GDB 8.3 released.
6943
13674803
SM
69442019-05-10 Simon Marchi <simon.marchi@efficios.com>
6945
6946 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
6947 New variable declaration.
6948 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
6949 New variable.
6950 (print_one_breakpoint): Use ui_out::test_flags and new global
6951 variable to compute use_fixed_output.
6952 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
6953 Remove.
6954 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
6955 (mi_multi_location_breakpoint_output_fixed): Remove.
6956 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
6957 new variable.
6958 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
6959 fix_multi_location_breakpoint_output flag if version >= 3.
6960 * ui-out.h (enum ui_out_flag)
6961 <fix_multi_location_breakpoint_output>: New enumerator.
6962
a9eac7f9
SM
69632019-05-10 Simon Marchi <simon.marchi@efficios.com>
6964
6965 * contrib/cc-with-tweaks.sh: Validate dwz's work.
6966
71bed2db
TT
69672019-05-10 Tom Tromey <tromey@adacore.com>
6968
6969 * ada-lang.c (catch_ada_completer): New function.
6970 (_initialize_ada_language): Use it.
6971
24c54127
TT
69722019-05-10 Tom Tromey <tromey@adacore.com>
6973
6974 * thread.c (print_thread_info): Make "requested_threads" const.
6975 * gdbthread.h (print_thread_info): Make "requested_threads"
6976 const.
6977 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
6978 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
6979
7a102139
TT
69802019-05-08 Tom Tromey <tom@tromey.com>
6981
6982 * gdbtypes.c (objfile_type_data): Change type.
6983 (objfile_type, _initialize_gdbtypes): Update.
6984
924d79e2
TT
69852019-05-08 Tom Tromey <tom@tromey.com>
6986
6987 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
6988 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
6989 (_initialize_dwarf2_frame): Update.
6990
4c58e337
TT
69912019-05-08 Tom Tromey <tom@tromey.com>
6992
6993 * objc-lang.c (objc_objfile_data): Change type.
6994 (find_methods): Update.
6995 (_initialize_objc_lang): Remove.
6996
d772d2ab
TT
69972019-05-08 Tom Tromey <tom@tromey.com>
6998
6999 * stabsread.c (rs6000_builtin_type_data): Change type.
7000 (rs6000_builtin_type, _initialize_stabsread): Update.
7001
d11d83f4
TT
70022019-05-08 Tom Tromey <tom@tromey.com>
7003
7004 * mips-tdep.c (mips_pdr_data): Remove.
7005 (_initialize_mips_tdep): Update.
7006
9a73f0ad
TT
70072019-05-08 Tom Tromey <tom@tromey.com>
7008
7009 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
7010 (hppa_init_objfile_priv_data, read_unwind_info)
7011 (find_unwind_entry, _initialize_hppa_tdep): Update.
7012
8127a2fa
TT
70132019-05-08 Tom Tromey <tom@tromey.com>
7014
7015 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
7016 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
7017 on obstack.
7018 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
7019
91d3055d
TT
70202019-05-08 Tom Tromey <tom@tromey.com>
7021
7022 * mdebugread.c (basic_type_data): Change type.
7023 (basic_type, _initialize_mdebugread): Update.
7024
31930bd3
TT
70252019-05-08 Tom Tromey <tom@tromey.com>
7026
7027 * common/gdb_unique_ptr.h (struct noop_deleter): New.
7028
bdb3ed9e
TT
70292019-05-08 Tom Tromey <tom@tromey.com>
7030
7031 * nto-tdep.c (nto_inferior_data_reg): Change type.
7032 (nto_inferior_data): Update.
7033 (nto_inferior_data_cleanup, nto_new_inferior_data)
7034 (_initialize_nto_tdep): Remove.
7035 * nto-tdep.h (struct nto_inferior_data): Add initializers.
7036
f37b313d
TT
70372019-05-08 Tom Tromey <tom@tromey.com>
7038
7039 * ada-lang.c (struct ada_inferior_data): Add initializers.
7040 (ada_inferior_data): Change type.
7041 (ada_inferior_data_cleanup): Remove.
7042 (get_ada_inferior_data, ada_inferior_exit)
7043 (struct ada_pspace_data): Add initializers, destructor.
7044 (ada_pspace_data_handle): Change type.
7045 (get_ada_pspace_data): Update.
7046 (ada_pspace_data_cleanup): Remove.
7047
24699405
TT
70482019-05-08 Tom Tromey <tom@tromey.com>
7049
7050 * coffread.c (struct coff_symfile_info): Add initializers.
7051 (coff_objfile_data_key): Move lower. Change type.
7052 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
7053 Update.
7054 (coff_free_info): Remove.
7055
d4e05d2f
TT
70562019-05-08 Tom Tromey <tom@tromey.com>
7057
7058 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
7059 (fbsd_pspace_data_handle): Move lower. Change type.
7060 (get_fbsd_pspace_data): Update.
7061 (fbsd_pspace_data_cleanup): Remove.
7062 (_initialize_fbsd_tdep): Update.
7063
14ef6690
TT
70642019-05-08 Tom Tromey <tom@tromey.com>
7065
7066 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
7067 (get_ada_tasks_pspace_data): Update.
7068 (ada_tasks_pspace_data_cleanup): Remove.
7069 (_initialize_tasks): Update.
7070 (ada_tasks_inferior_data_handle): Change type.
7071 (get_ada_tasks_inferior_data): Update.
7072 (ada_tasks_inferior_data_cleanup): Remove.
7073 (struct ada_tasks_pspace_data): Add initializers.
7074
814cf43a
TT
70752019-05-08 Tom Tromey <tom@tromey.com>
7076
7077 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
7078 * symfile-debug.c (debug_sym_get_probes): Change type.
7079 * stap-probe.c (handle_stap_probe):
7080 (stap_static_probe_ops::get_probes): Change type.
7081 * probe.h (class static_probe_ops) <get_probes>: Change type.
7082 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
7083 (parse_probes_in_pspace): Update.
7084 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
7085 Update.
7086 (any_static_probe_ops::get_probes): Change type.
7087 * elfread.c (elfread_data): New typedef.
7088 (probe_key): Change type.
7089 (elf_get_probes): Likewise. Update.
7090 (probe_key_free): Remove.
7091 (_initialize_elfread): Update.
7092 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
7093 Change type.
7094 (dtrace_process_dof_probe, dtrace_process_dof)
7095 (dtrace_static_probe_ops::get_probe): Change type.
7096
02dc647e
TT
70972019-05-08 Tom Tromey <tom@tromey.com>
7098
7099 * xcoffread.c (struct xcoff_symfile_info): Rename from
7100 coff_symfile_info. Add initializers.
7101 (xcoff_objfile_data_key): Move lower. Change type.
7102 (XCOFF_DATA): Rewrite.
7103 (xcoff_free_info): Remove.
7104 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
7105 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
7106 (xcoff_initial_scan): Update.
7107
09232438
TT
71082019-05-08 Tom Tromey <tom@tromey.com>
7109
7110 * solib-svr4.c (struct svr4_info): Add initializers and
7111 destructor.
7112 <probes_table>: Now an htab_up.
7113 (solib_svr4_pspace_data): Change type.
7114 (free_probes_table): Simplify.
7115 (~svr4_info): Rename from svr4_pspace_data_cleanup.
7116 (get_svr4_info, probes_table_htab_remove_objfile_probes)
7117 (probes_table_remove_objfile_probes, register_solib_event_probe)
7118 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
7119 (_initialize_svr4_solib): Update.
7120
7b4a314f
TT
71212019-05-08 Tom Tromey <tom@tromey.com>
7122
7123 * remote.c (remote_pspace_data): Change type.
7124 (remote_pspace_data_cleanup): Remove.
7125 (get_remote_exec_file, set_pspace_remote_exec_file)
7126 (_initialize_remote): Update.
7127
51d3063a
TT
71282019-05-08 Tom Tromey <tom@tromey.com>
7129
7130 * breakpoint.c (breakpoint_objfile_key): Change type.
7131 (get_breakpoint_objfile_data): Update.
7132 (free_breakpoint_objfile_data): Remove.
7133 (_initialize_breakpoint): Update.
7134
89fb8848
TT
71352019-05-08 Tom Tromey <tom@tromey.com>
7136
7137 * linux-tdep.c (struct linux_info): Add initializers.
7138 (linux_inferior_data): Move. Change type.
7139 (invalidate_linux_cache_inf): Update.
7140 (linux_inferior_data_cleanup): Remove.
7141 (get_linux_inferior_data, _initialize_linux_tdep): Update.
7142
e9b89e2d
TT
71432019-05-08 Tom Tromey <tom@tromey.com>
7144
7145 * auxv.c (auxv_inferior_data): Move. Change type.
7146 (auxv_inferior_data_cleanup): Remove.
7147 (invalidate_auxv_cache_inf): Rewrite.
7148 (get_auxv_inferior_data, _initialize_auxv): Update.
7149
8c42777c
TT
71502019-05-08 Tom Tromey <tom@tromey.com>
7151
7152 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
7153 (symfile_debug_objfile_data_key): Change type.
7154 (symfile_debug_installed, debug_qf_has_symbols)
7155 (debug_qf_find_last_source_symtab)
7156 (debug_qf_forget_cached_source_info)
7157 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
7158 (debug_qf_print_stats, debug_qf_dump)
7159 (debug_qf_expand_symtabs_for_function)
7160 (debug_qf_expand_all_symtabs)
7161 (debug_qf_expand_symtabs_with_fullname)
7162 (debug_qf_map_matching_symbols)
7163 (debug_qf_expand_symtabs_matching)
7164 (debug_qf_find_pc_sect_compunit_symtab)
7165 (debug_qf_map_symbol_filenames)
7166 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
7167 (debug_sym_new_init, debug_sym_init, debug_sym_read)
7168 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
7169 (debug_sym_read_linetable, debug_sym_relocate): Update.
7170 (symfile_debug_free_objfile): Remove.
7171 (install_symfile_debug_logging, _initialize_symfile_debug):
7172 Update.
7173
5bfd760d
TT
71742019-05-08 Tom Tromey <tom@tromey.com>
7175
7176 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
7177 allocate_on_obstack.
7178 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
7179 (get_dwarf2_per_objfile): Update.
7180 (set_dwarf2_per_objfile): Remove.
7181 (dwarf2_has_info, dwarf2_get_section_info): Update.
7182 (dwarf2_free_objfile): Remove.
7183 (_initialize_dwarf2_read): Update.
7184
e85e19b4
TT
71852019-05-08 Tom Tromey <tom@tromey.com>
7186
7187 * auto-load.c (struct auto_load_pspace_info): Add destructor and
7188 initializers.
7189 <unsupported_script_warning_printed,
7190 script_not_found_warning_printed>: Now bool.
7191 (auto_load_pspace_data): Change type.
7192 (~auto_load_pspace_info): Rename from
7193 auto_load_pspace_data_cleanup.
7194 (get_auto_load_pspace_data, init_loaded_scripts_info)
7195 (clear_section_scripts, maybe_print_unsupported_script_warning)
7196 (maybe_print_script_not_found_warning, _initialize_auto_load):
7197 Update.
7198
f6aa7436
TT
71992019-05-08 Tom Tromey <tom@tromey.com>
7200
7201 * objfiles.c (objfile_pspace_info): Add destructor and
7202 initializers.
7203 (objfiles_pspace_data): Change type.
7204 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
7205 (get_objfile_pspace_data): Update.
7206 (objfiles_bfd_data): Change type.
7207 (get_objfile_bfd_data): Update.
7208 (objfile_bfd_data_free, _initialize_objfiles): Remove.
7209
6ae614f6
TT
72102019-05-08 Tom Tromey <tom@tromey.com>
7211
7212 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
7213 Change type.
7214 (get_catch_syscall_inferior_data): Update.
7215 (catch_syscall_inferior_data_cleanup): Remove.
7216 (_initialize_break_catch_syscall): Update.
7217
6509b8eb
TT
72182019-05-08 Tom Tromey <tom@tromey.com>
7219
7220 * inflow.c (struct terminal_info): Add destructor and
7221 initializers.
7222 (inflow_inferior_data): Change type.
7223 (~terminal_info): Rename from inflow_inferior_data_cleanup.
7224 (get_inflow_inferior_data, inflow_inferior_exit)
7225 (swap_terminal_info, _initialize_inflow): Update.
7226
35632941
TT
72272019-05-08 Tom Tromey <tom@tromey.com>
7228
7229 * target-dcache.c (target_dcache_cleanup): Remove.
7230 (target_dcache_aspace_key): Change type.
7231 (target_dcache_init_p, target_dcache_invalidate)
7232 (target_dcache_get, target_dcache_get_or_init)
7233 (_initialize_target_dcache): Update.
7234 * dcache.h (struct dcache_deleter): New.
7235
3017b94d
TT
72362019-05-08 Tom Tromey <tom@tromey.com>
7237
7238 * symtab.c (struct symbol_cache): Add destructor and
7239 initializers.
7240 (symbol_cache_key): Move. Change type.
7241 (make_symbol_cache, free_symbol_cache): Remove.
7242 (get_symbol_cache): Update.
7243 (symbol_cache_cleanup): Remove.
7244 (ALL_PSPACES, symbol_cache_flush)
7245 (maintenance_print_symbol_cache)
7246 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
7247 Update.
7248
a32ad8c5
TT
72492019-05-08 Tom Tromey <tom@tromey.com>
7250
7251 * symtab.c (struct main_info): Add destructor and initializers.
7252 (main_progspace_key): Move. Change type.
7253 (get_main_info): Update.
7254 (main_info_cleanup): Remove.
7255 (_initialize_symtab): Update.
7256
5f6e90a0
TT
72572019-05-08 Tom Tromey <tom@tromey.com>
7258
7259 * registry.h (DECLARE_REGISTRY): Define the _key class.
7260
1bd0c6e4
AB
72612019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7262
7263 * NEWS: Merge two 'New commands' sections.
7264
2228ef77
XR
72652019-05-08 Joel Brobecker <brobecker@adacore.com>
7266
7267 * ada-valprint.c (ada_val_print_gnat_array): Remove language
7268 parameter and use Ada language definition instead.
7269 (ada_val_print_ptr): Remove unused language parameter.
7270 (ada_val_print_num): Remove language parameter and use Ada language
7271 definition instead.
7272 (ada_val_print_enum, ada_val_print_flt): Remove unused language
7273 parameter.
7274 (ada_val_print_struct_union, ada_val_print_ref): Remove language
7275 parameter and use Ada language definition instead.
7276 (ada_val_print_1): Update all ada_val_print_xxx calls.
7277 Remove language parameter.
7278 (ada_val_print): Update ada_val_print_1 call.
7279
60fcc1c3
TT
72802019-05-08 Tom Tromey <tromey@adacore.com>
7281
7282 * remote.c (remote_hw_watchpoint_limit)
7283 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
7284 Now static.
7285
ed2b7c17
TT
72862019-05-08 Tom Tromey <tromey@adacore.com>
7287
7288 * maint.c (_initialize_maint_cmds): Move initialization code to
7289 remote.c.
7290 (watchdog, show_watchdog): Move to remote.c.
7291 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
7292 "watchdog" static.
7293 (_initialize_remote): Move initialization code from maint.c.
7294 * defs.h (watchdog): Don't declare.
7295
b0be6c91
TT
72962019-05-08 Tom Tromey <tromey@adacore.com>
7297
7298 * tui/tui-interp.c: Include main.h.
7299 * interps.c: Include main.h.
7300 * main.h (interpreter_p): Declare.
7301 * defs.h (interpreter_p): Don't declare.
7302
587ee17b
TT
73032019-05-08 Tom Tromey <tromey@adacore.com>
7304
7305 * dwarf2loc.c: Include dwarf2read.h.
7306 * defs.h (read_unsigned_leb128): Don't declare.
7307 * dwarf2read.h (read_unsigned_leb128): Declare.
7308
ca1df239
TT
73092019-05-08 Tom Tromey <tromey@adacore.com>
7310
7311 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
7312 method.
7313
99f20f08
TT
73142019-05-08 Tom Tromey <tromey@adacore.com>
7315
7316 * utils.c (fputs_maybe_filtered): Reset style after paging, even
7317 when no wrap column is set.
7318
80e55b13
TT
73192019-05-08 Tom Tromey <tromey@adacore.com>
7320
7321 * c-lang.c (c_get_string): Handle non-C-style arrays.
7322
9d3421af
TT
73232019-05-08 Tom Tromey <tromey@adacore.com>
7324
7325 * typeprint.c (print_offset_data::update): Print the bit offset,
7326 not the number of bits remaining.
7327
844333e2
TT
73282019-05-08 Tom Tromey <tromey@adacore.com>
7329
7330 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
7331 padding at end of comment.
7332
988915ee
TT
73332019-05-08 Tom Tromey <tromey@adacore.com>
7334
7335 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
7336 Compare main types.
7337
26bfd823
TT
73382019-05-06 Tom Tromey <tom@tromey.com>
7339
7340 * common/scoped_mmap.c: Include common-defs.h.
7341 * common/scoped_mmap.h: Don't include config.h.
7342
89055eaa
TT
73432019-05-04 Tom Tromey <tom@tromey.com>
7344
7345 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
7346 (struct aarch64_call_info): Add initializers.
7347 <si>: Now a std::vector.
7348 (pass_on_stack, aarch64_push_dummy_call): Update.
7349
5da01df5
TT
73502019-05-04 Simon Marchi <simon.marchi@efficios.com>
7351 Tom Tromey <tom@tromey.com>
7352
7353 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
7354 (ppc_threads): Now a std::vector. Now static.
7355 (hwdebug_find_thread_points_by_tid)
7356 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
7357 Update.
7358
fbdf05a1
TT
73592019-05-04 Tom Tromey <tom@tromey.com>
7360
7361 * arc-tdep.c (arc_tdesc_init): Return bool.
7362
06d16ec9
TT
73632019-05-04 Tom Tromey <tom@tromey.com>
7364
7365 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
7366 Use gdb_assert_not_reached.
7367
9c056022
TT
73682019-05-04 Tom Tromey <tom@tromey.com>
7369
7370 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
7371 "false".
7372
fa9c2a59
TT
73732019-05-04 Tom Tromey <tom@tromey.com>
7374
7375 * arc-tdep.c (arc_tdesc_init): Use bool.
7376
e2eb806a
TT
73772019-05-04 Tom Tromey <tom@tromey.com>
7378
7379 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
7380
6fe87677
TT
73812019-05-04 Tom Tromey <tom@tromey.com>
7382
7383 * cli/cli-cmds.c (valid_command_p): Return bool.
7384
7f008c9e
TT
73852019-05-04 Tom Tromey <tom@tromey.com>
7386
7387 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
7388 * command.h (valid_user_defined_cmd_name_p): Channge return type.
7389
b6484282
RT
73902019-05-04 Raul Tambre <raul@tambre.ee>
7391
7392 * python/lib/gdb/prompt.py (_ExtendedPrompt)
7393 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
7394 operator for comparison.
7395
af97b416
TT
73962019-05-04 Tom Tromey <tom@tromey.com>
7397
7398 * psymtab.c (psymbol_name_matches, match_partial_symbol)
7399 (lookup_partial_symbol, print_partial_symbols)
7400 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
7401 (psymbol_compare): Update.
7402 (add_psymbol_to_bcache): Clear the entire psymbol.
7403 (maintenance_check_psymtabs): Update.
7404 * psympriv.h (struct partial_symbol): Don't derive from
7405 general_symbol_info.
7406 <obj_section, unrelocated_address, address,
7407 set_unrelocated_address>: Update.
7408 <ginfo>: New member.
7409 * dwarf-index-write.c (write_psymbols, debug_names::insert)
7410 (debug_names::write_psymbols): Update.
7411
9d6d4be8
TV
74122019-05-04 Tom de Vries <tdevries@suse.de>
7413
7414 * contrib/cc-with-tweaks.sh: Support -n arg.
7415
66452beb
PW
74162019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7417
7418 * corelow.c (core_target::detach): Ensure frame cache and
7419 register caches are cleared.
7420 inferior.c (exit_inferior_1): Likewise.
7421
bde09ab7
TT
74222019-05-03 Sandra Loosemore <sandra@codesourcery.com>
7423 Tom Tromey <tom@tromey.com>
7424
7425 * dictionary.c (collate_pending_symbols_by_language): Remove
7426 "struct" from foreach.
7427 * symtab.c (lookup_global_symbol_from_objfile)
7428 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
7429 foreach.
7430 * ser-tcp.c (net_open): Remove "struct" from foreach.
7431 * objfiles.c (objfile_relocate, objfile_rebase)
7432 (objfile_has_symbols): Remove "struct" from foreach.
7433 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
7434 from foreach.
7435 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
7436 foreach.
7437 * darwin-nat.c (thread_info_from_private_thread_info): Remove
7438 "struct" from foreach.
7439 * ada-lang.c (create_excep_cond_exprs)
7440 (ada_exception_catchpoint_cond_string): Remove "struct" from
7441 foreach.
7442
222a8d25
TT
74432019-05-03 Tom Tromey <tromey@adacore.com>
7444
7445 * ada-exp.y (convert_char_literal): Check suffix of each
7446 enumerator.
7447
fcd60b84
DP
74482019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
7449
7450 PR ada/21406:
7451 * ada-exp.y (yywrap): Don't define.
7452 * ada-lex.l (%option): Add noyywrap
7453 (yywrap): Remove.
7454
5f2459c2
EZ
74552019-05-03 Eli Zaretskii <eliz@gnu.org>
7456
353ea2d1
EZ
7457 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
7458 _WIN32_WINNT to the XP level, unless already defined to a higher
7459 level.
7460
7461 * unittests/parse-connection-spec-selftests.c:
7462 * ser-tcp.c:
7463 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
7464 override.
7465
5f2459c2
EZ
7466 * symfile.c (find_separate_debug_file): Remove colon from the
7467 drive spec of DOS/Windows file names of the target, so that the
7468 file name produced from DEBUGDIR and the target's directory will
7469 be valid on DOS/Windows systems.
7470
80062eb9
AB
74712019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
7472
7473 * rust-lang.c (val_print_struct): Handle printing structures
7474 containing strings.
7475
b8c05e85
TT
74762019-05-02 Tom Tromey <tromey@adacore.com>
7477
7478 * valarith.c (_initialize_valarith): Remove.
7479
4504bbde
TT
74802019-05-01 Tom Tromey <tromey@adacore.com>
7481
7482 * ada-lang.c (ada_value_primitive_field): Treat more fields as
7483 bitfields.
7484
d48e62f4
TT
74852019-05-01 Tom Tromey <tromey@adacore.com>
7486
7487 * ada-lang.c (ada_value_assign): Correctly compute starting offset
7488 for big-endian copies.
7489
15f18d14
AT
74902019-04-30 Ali Tamur <tamur@google.com>
7491 * gdb/dwarf2read.c (read_3_bytes): New declaration.
7492 (read_attribute_value): Added DW_FORM_strx1-4 cases.
7493 (read_3_bytes): New function.
7494
ab4ee614
JB
74952019-04-30 Joel Brobecker <brobecker@adacore.com>
7496
7497 * windows-nat.c (main_thread_id): Delete.
7498 (handle_output_debug_string): Replace main_thread_id by
7499 current_event.dwThreadId.
7500 (fake_create_process): Likewise.
7501 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
7502 Do not set main_thread_id.
7503 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
7504 current_event.dwThreadId.
7505 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
7506
8ed5b76e
JB
75072019-04-30 Joel Brobecker <brobecker@adacore.com>
7508
7509 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
7510 Use current_event.dwThreadId instead of main_thread_id.
7511
2ff0a947
TT
75122019-04-30 Tom Tromey <tromey@adacore.com>
7513
7514 * ada-lang.c (ada_lookup_simple_minsyms): New function.
7515 (create_excep_cond_exprs): Iterate over program spaces.
7516 (ada_exception_catchpoint_cond_string): Examine all minimal
7517 symbols for exception types.
7518
a776957c
TT
75192019-04-30 Tom Tromey <tromey@adacore.com>
7520
7521 PR c++/24470:
7522 * dwarf2read.c (process_structure_scope): Handle case where type
7523 has template parameters but no symbol was created.
7524
bc68014d
AB
75252019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7526 Chris January <chris.january@arm.com>
7527
7528 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
7529 qualifier.
7530 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
7531
f1fdc960
AB
75322019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7533
7534 * f-typeprint.c (f_print_type): Update rules for printing
7535 whitespace.
7536 (f_type_print_varspec_suffix): Likewise.
7537
bf7a4de1
AB
75382019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7539 Chris January <chris.january@arm.com>
7540
7541 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
7542 function arguments.
7543
bbe75b9d
AB
75442019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7545
7546 * f-lang.c (build_fortran_types): Change name of void type to
7547 lower case.
7548 * f-typeprint.c (f_type_print_base): Print the name of the void
7549 type, rather than a fixed string.
7550 * f-valprint.c (f_decorations): Use lower case void string.
7551
1db455a7
AB
75522019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7553 Chris January <chris.january@arm.com>
7554
7555 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
7556 types for Fortran.
7557
b6d03bb2
AB
75582019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7559 Chris January <chris.january@arm.com>
7560 David Lecomber <david.lecomber@arm.com>
7561
7562 * f-exp.y (BINOP_INTRINSIC): New token.
7563 (exp): New parser rule handling BINOP_INTRINSIC.
7564 (f77_keywords): Add new builtin procedures.
7565 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
7566 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7567 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
7568 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7569 (print_unop_subexp_f): New function.
7570 (print_binop_subexp_f): New function.
7571 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7572 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7573 (dump_subexp_body_f): Likewise.
7574 (operator_check_f): Likewise.
7575 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7576 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
7577
83228e93
AB
75782019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7579
7580 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
7581 UNOP_KIND.
7582 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
7583 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
7584 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
7585 (operator_length_f): New fuction.
7586 (print_subexp_f): New function.
7587 (op_name_f): New function.
7588 (dump_subexp_body_f): New function.
7589 (operator_check_f): New function.
7590 (exp_descriptor_f): Replace standard expression handling functions
7591 with new functions.
7592 * gdb/fortran-operator.def: New file.
7593 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
7594 * gdb/std-operator.def: Remove UNOP_KIND.
7595
6fdcd7cc
AB
75962019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7597
7598 * std-operator.def: Remove unbalanced, stray double quote
7599 character.
7600
2e62ab40
AB
76012019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7602 Chris January <chris.january@arm.com>
7603 Daniel Everett <daniel.everett@arm.com>
7604 Nick Forrington <nick.forrington@arm.com>
7605 Richard Bunt <richard.bunt@arm.com>
7606
7607 * cp-valprint.c (cp_print_value_fields): Allow an additional level
7608 of depth when printing anonymous structs or unions.
7609 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
7610 Don't print either the top-level value, or the children if the
7611 max-depth is exceeded.
7612 (ppscm_print_children): When printing the key of a map, allow one
7613 extra level of depth.
7614 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
7615 print either the top-level value, or the children if the max-depth
7616 is exceeded.
7617 (print_children): When printing the key of a map, allow one extra
7618 level of depth.
7619 * python/py-value.c (valpy_format_string): Add max_depth keyword.
7620 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
7621 (user_print_options): Initialise max_depth field.
7622 (val_print_scalar_or_string_type_p): New function.
7623 (val_print): Check to see if the max depth has been reached.
7624 (val_print_check_max_depth): Define new function.
7625 (show_print_max_depth): New function.
7626 (_initialize_valprint): Add 'print max-depth' option.
7627 * valprint.h (struct value_print_options) <max_depth>: New field.
7628 (val_print_check_max_depth): Declare new function.
7629 * NEWS: Document new feature.
7630
4be290b2
AB
76312019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7632
7633 * ada-lang.c (ada_language_defn): Initialise new field.
7634 * c-lang.c (c_is_string_type_p): New function.
7635 (c_language_defn): Initialise new field.
7636 (cplus_language_defn): Initialise new field.
7637 (asm_language_defn): Initialise new field.
7638 (minimal_language_defn): Initialise new field.
7639 * c-lang.h (c_is_string_type_p): Declare new function.
7640 * d-lang.c (d_language_defn): Initialise new field.
7641 * f-lang.c (f_is_string_type_p): New function.
7642 (f_language_defn): Initialise new field.
7643 * go-lang.c (go_is_string_type_p): New function.
7644 (go_language_defn): Initialise new field.
7645 * language.c (default_is_string_type_p): New function.
7646 (unknown_language_defn): Initialise new field.
7647 (auto_language_defn): Initialise new field.
7648 * language.h (struct language_defn) <la_is_string_type_p>: New
7649 member variable.
7650 (default_is_string_type_p): Declare new function.
7651 * m2-lang.c (m2_language_defn): Initialise new field.
7652 * objc-lang.c (objc_language_defn): Initialise new field.
7653 * opencl-lang.c (opencl_language_defn): Initialise new field.
7654 * p-lang.c (pascal_is_string_type_p): New function.
7655 (pascal_language_defn): Initialise new field.
7656 * rust-lang.c (rust_is_string_type_p): New function.
7657 (rust_language_defn): Initialise new field.
7658
721b08c6
AB
76592019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7660
7661 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
7662 New field.
7663 * ada-lang.c (ada_language_defn): Initialise new field.
7664 * c-lang.c (c_language_defn): Likewise.
7665 (cplus_language_defn): Likewise.
7666 (asm_language_defn): Likewise.
7667 (minimal_language_defn): Likewise.
7668 * d-lang.c (d_language_defn): Likewise.
7669 * f-lang.c (f_language_defn): Likewise.
7670 * go-lang.c (go_language_defn): Likewise.
7671 * language.c (unknown_language_defn): Likewise.
7672 (auto_language_defn): Likewise.
7673 * m2-lang.c (m2_language_defn): Likewise.
7674 * objc-lang.c (objc_language_defn): Likewise.
7675 * opencl-lang.c (opencl_language_defn): Likewise.
7676 * p-lang.c (pascal_language_defn): Likewise.
7677 * rust-lang.c (rust_language_defn): Likewise.
7678
fc913e53
AB
76792019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7680
7681 * ada-lang.c (ada_is_character_type): Change return type to bool.
7682 (ada_is_string_type): Likewise.
7683 * ada-lang.h (ada_is_character_type): Update declaration
7684 (ada_is_string_type): Likewise.
7685
fa731fa0
PW
76862019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7687
7688 Support style in 'frame|thread apply'
7689
7690 * gdbcmd.h (execute_command_to_string): New term_out parameter.
7691 * record.c (record_start, record_stop): Update callers of
7692 execute_command_to_string with false.
7693 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
7694 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
7695 methods.
7696 (class string_file): New constructor with term_out parameter.
7697 Override methods term_out and can_emit_style_escape. New member
7698 term_out.
7699 (class stdio_file): Override can_emit_style_escape.
7700 (class tee_file): Override term_out and can_emit_style_escape.
7701 * utils.h (can_emit_style_escape): Remove.
7702 * utils.c (can_emit_style_escape): Likewise.
7703 Update all callers of can_emit_style_escape (SOMESTREAM) to
7704 SOMESTREAM->can_emit_style_escape.
7705 * source-cache.c (source_cache::get_source_lines): Likewise.
7706 * stack.c (frame_apply_command_count): Call execute_command_to_string
7707 passing the term_out characteristic of the current gdb_stdout.
7708 * thread.c (thr_try_catch_cmd): Likewise.
7709 * top.c (execute_command_to_string): pass term_out parameter
7710 to construct the string_file for the command output.
7711 * ui-file.c (term_cli_styling): New function (most code moved
7712 from utils.c can_emit_style_escape).
7713 (string_file::string_file, string_file::can_emit_style_escape,
7714 stdio_file::can_emit_style_escape, tee_file::term_out,
7715 tee_file::can_emit_style_escape): New functions.
7716
136afab8
PW
77172019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7718
7719 * NEWS: Mention the new set|show may-call-functions.
7720 * infcall.c (may_call_functions_p): New variable.
7721 (show_may_call_functions_p): New function.
7722 (call_function_by_hand_dummy): Throws an error if not
7723 may-call-functions.
7724 (_initialize_infcall): Call add_setshow_boolean_cmd for
7725 may-call-functions.
7726
725cbb63
KS
77272019-04-25 Keith Seitz <keiths@redhat.com>
7728
7729 PR c++/24367
7730 * cp-support.c (inspect_type): Don't attempt substitutions
7731 of symbol with the same name.
7732
3d1cbb78
TT
77332019-04-25 Tom Tromey <tromey@adacore.com>
7734
7735 PR gdb/24475:
7736 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
7737 static.
7738
94aeb44b
TT
77392019-04-25 Tom Tromey <tromey@adacore.com>
7740
7741 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
7742 rvalue reference.
7743 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
7744 (gdb_xml_parser::parse): Use std::move.
7745 * python/python-internal.h (gdbpy_convert_exception): Take a const
7746 reference.
7747 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
7748 std::move.
7749 * python/py-utils.c (gdbpy_convert_exception): Take a const
7750 reference.
7751 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7752 Use std::move.
7753 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7754 Use std::move.
7755 * mi/mi-main.c (mi_print_exception): Take a const reference.
7756 * main.c (handle_command_errors): Take a const reference.
7757 * linespec.c (parse_linespec): Use std::move.
7758 * infcall.c (run_inferior_call): Use std::move.
7759 (call_function_by_hand_dummy): Use std::move.
7760 * exec.c (try_open_exec_file): Use std::move.
7761 * exceptions.h (exception_print, exception_fprintf)
7762 (exception_print_same): Update.
7763 * exceptions.c (print_exception, exception_print)
7764 (exception_fprintf, exception_print_same): Change parameters to
7765 const reference.
7766 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
7767 * common/new-op.c: Use std::move.
7768 * common/common-exceptions.h (struct gdb_exception): Add move
7769 constructor.
7770 (struct gdb_exception_error, struct gdb_exception_quit, struct
7771 gdb_quit_bad_alloc): Change constructor to move constructor.
7772 (throw_exception): Change parameter to rvalue reference.
7773 * common/common-exceptions.c (throw_exception): Take rvalue
7774 reference.
7775 * cli/cli-interp.c (safe_execute_command): Use std::move.
7776 * breakpoint.c (insert_bp_location, location_to_sals): Use
7777 std::move.
7778
680d7fd5
TT
77792019-04-25 Tom Tromey <tromey@adacore.com>
7780
7781 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
7782 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
7783 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
7784 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
7785 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
7786 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
7787 guile/scm-value.c: Use unpack.
7788 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
7789 gdbscm_gdb_exception.
7790 (gdbscm_throw_gdb_exception): Likewise.
7791 (struct gdbscm_gdb_exception): New.
7792 (unpack): New function.
7793 (gdbscm_wrap): Use unpack.
7794
c6fdd8b2
TT
77952019-04-25 Tom Tromey <tromey@adacore.com>
7796
7797 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7798 (gdb_rl_callback_handler): Use std::move.
7799 * common/common-exceptions.h (struct gdb_exception): Add move
7800 assignment operator.
7801 (throw_exception_sjlj): Change "exception" to const reference.
7802 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
7803 (throw_exception_sjlj): Change "exception" to const reference.
7804
cc06b668
TT
78052019-04-25 Tom Tromey <tromey@adacore.com>
7806
7807 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
7808 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
7809 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7810 Update.
7811 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7812 Update.
7813 * mi/mi-interp.c (mi_interp::exec): Update.
7814 * linespec.c (parse_linespec): Update.
7815 * infcall.c (run_inferior_call): Update.
7816 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
7817 * guile/scm-symbol.c (gdbscm_lookup_symbol)
7818 (gdbscm_lookup_global_symbol): Update.
7819 * guile/scm-param.c (gdbscm_parameter_value): Update.
7820 * guile/scm-frame.c (gdbscm_frame_read_register)
7821 (gdbscm_frame_read_var): Update.
7822 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7823 * exec.c (try_open_exec_file): Update.
7824 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7825 (gdb_rl_callback_handler): Update.
7826 * common/common-exceptions.h (exception_none): Don't declare.
7827 * common/common-exceptions.c (exception_none): Don't define.
7828 (struct catcher) <exception>: Update.
7829 * cli/cli-interp.c (safe_execute_command): Update.
7830 * breakpoint.c (insert_bp_location, location_to_sals): Update.
7831
cf532bd1
AT
78322019-04-25 Ali Tamur <tamur@google.com>
7833
7834 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
7835 (read_attribute_value): Likewise.
7836 (dwarf2_read_addr_index): Update comment.
7837 (read_str_index): Add DW_FORM_strx.
7838 (dwarf2_string_attr): Likewise.
7839 (dwarf2_const_value_attr): Likewise.
7840 (dump_die_shallow): Likewise.
7841 (dwarf2_fetch_constant_bytes): Likewise.
7842 (skip_form_bytes): Likewise.
7843 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
7844
82433e3e
SDJ
78452019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7846
7847 PR corefiles/11608
7848 PR corefiles/18187
7849 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
7850 OFFSET. Verify if current mapping contains an ELF header.
7851 (linux_find_memory_regions_full): Adjust call to
7852 dump_mapping_p.
7853
723adb65
SL
78542019-04-25 Sandra Loosemore <sandra@codesourcery.com>
7855 Kang Li <kanglictf@gmail.com>
7856
7857 PR gdb/21600
7858
7859 * dwarf2-frame.c (read_initial_length): Be consistent about using
7860 unsigned representation of length.
7861 (decode_frame_entry_1): Likewise. Check for wraparound of
7862 end pointer as well as buffer overflow.
7863
596179f7
SDJ
78642019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7865
7866 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
7867 "vq".
7868
a59240a4
TT
78692019-04-24 Tom Tromey <tromey@adacore.com>
7870
7871 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
7872
f872fdbb
AB
78732019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7874
7875 * s12z-tdep.c (s12z_unwind_pc): Delete.
7876 (s12z_unwind_sp): Delete.
7877 (s12z_gdbarch_init): Don't register deleted functions with
7878 gdbarch.
7879
b614e6f3
AB
78802019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7881
7882 * rl78-tdep.c (rl78_unwind_sp): Delete.
7883 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
7884
14faed38
AB
78852019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7886
7887 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
7888 (xstormy16_unwind_pc): Delete.
7889 (xstormy16_dummy_id): Delete.
7890 (xstormy16_gdbarch_init): Don't register deleted functions with
7891 gdbarch.
7892
541aad8a
AB
78932019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7894
7895 * vax-tdep.c (vax_unwind_pc): Delete.
7896 (vax_gdbarch_init): Don't register deleted function with gdbarch.
7897
29222070
AB
78982019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7899
7900 * v850-tdep.c (v850_unwind_sp): Delete.
7901 (v850_unwind_pc): Delete.
7902 (v850_dummy_id): Delete.
7903 (v850_gdbarch_init): Don't register deleted functions with
7904 gdbarch.
7905
0f534d76
AB
79062019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7907
7908 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
7909 (tilegx_unwind_pc): Delete.
7910 (tilegx_unwind_dummy_id): Delete.
7911 (tilegx_gdbarch_init): Don't register deleted functions with
7912 gdbarch.
7913
1ba7b7f9
AB
79142019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7915
7916 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
7917 (tic6x_dummy_id): Delete.
7918 (tic6x_gdbarch_init): Don't register deleted functions with
7919 gdbarch.
7920
d31f262c
AB
79212019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7922
7923 * sparc-tdep.c (sparc_unwind_pc): Delete.
7924 (sparc32_gdbarch_init): Don't register deleted function with
7925 gdbarch.
7926
6d14d64d
AB
79272019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7928
7929 * sh-tdep.c (sh_unwind_sp): Delete.
7930 (sh_unwind_pc): Delete.
7931 (sh_dummy_id): Delete.
7932 (sh_gdbarch_init): Don't register deleted functions with
7933 gdbarch.
7934
a40dde9d
AB
79352019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7936
7937 * score-tdep.c (score_unwind_sp): Delete.
7938 (score_unwind_pc): Delete.
7939 (score_dummy_id): Delete.
7940 (score_gdbarch_init): Don't register deleted functions with
7941 gdbarch.
7942
47c47d69
AB
79432019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7944
7945 * rx-tdep.c (rx_unwind_pc): Delete.
7946 (rx_unwind_sp): Delete.
7947 (rx_dummy_id): Delete.
7948 (rx_gdbarch_init): Don't register deleted functions with
7949 gdbarch. Update comment.
7950
833a4480
AB
79512019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7952
7953 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
7954 (rs6000_dummy_id): Delete.
7955 (rs6000_gdbarch_init): Don't register deleted functions with
7956 gdbarch.
7957
3f2cef49
AB
79582019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7959
7960 * or1k-tdep.c (or1k_dummy_id): Delete.
7961 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
7962
96acf884
AB
79632019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7964
7965 * nios2-tdep.c (nios2_dummy_id): Delete.
7966 (nios2_unwind_sp): Delete.
7967 (nios2_gdbarch_init): Don't register deleted functions with
7968 gdbarch.
7969
ca0ab0aa
AB
79702019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7971
7972 * nds32-tdep.c (nds32_dummy_id): Delete.
7973 (nds32_unwind_pc): Delete.
7974 (nds32_unwind_sp): Delete.
7975 (nds32_gdbarch_init): Don't register deleted functions with
7976 gdbarch.
7977
c8259044
AB
79782019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7979
7980 * msp430-tdep.c (msp430_unwind_pc): Delete.
7981 (msp430_unwind_sp): Delete.
7982 (msp430_dummy_id): Delete.
7983 (msp430_gdbarch_init): Don't register deleted functions with
7984 gdbarch.
7985
27f113c8
AB
79862019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7987
7988 * moxie-tdep.c (moxie_unwind_sp): Delete.
7989 (moxie_unwind_pc): Delete.
7990 (moxie_dummy_id): Delete.
7991 (moxie_gdbarch_init): Don't register deleted functions with
7992 gdbarch.
7993
aee6c3cd
AB
79942019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7995
7996 * mn10300-tdep.c (mn10300_dummy_id): Delete.
7997 (mn10300_unwind_pc): Delete.
7998 (mn10300_unwind_sp): Delete.
7999 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
8000 mn10300_unwind_sp.
8001 (mn10300_frame_unwind_init): Don't register deleted functions with
8002 gdbarch.
8003
8e2b5aea
AB
80042019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8005
8006 * mep-tdep.c (mep_unwind_pc): Delete.
8007 (mep_unwind_sp): Delete.
8008 (mep_dummy_id): Delete.
8009 (mep_gdbarch_init): Don't register deleted functions with
8010 gdbarch.
8011
43cf3ede
AB
80122019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8013
8014 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
8015 (m68hc11_unwind_sp): Delete.
8016 (m68hc11_gdbarch_init): Don't register deleted functions with
8017 gdbarch.
8018
5e79b7bb
AB
80192019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8020
8021 * m32r-tdep.c (m32r_unwind_sp): Delete.
8022 (m32r_unwind_pc): Delete.
8023 (m32r_dummy_id): Delete.
8024 (m32r_gdbarch_init): Don't register deleted functions with
8025 gdbarch.
8026
89b268d8
AB
80272019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8028
8029 * m32c-tdep.c (m32c_unwind_pc): Delete.
8030 (m32c_unwind_sp): Delete.
8031 (m32c_dummy_id): Delete.
8032 (m32c_gdbarch_init): Don't register deleted functions with
8033 gdbarch.
8034
946c28d2
AB
80352019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8036
8037 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
8038 (lm32_unwind_pc): Delete.
8039 (lm32_dummy_id): Delete.
8040 (lm32_gdbarch_init): Don't register deleted functions with
8041 gdbarch.
8042
bf12844a
AB
80432019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8044
8045 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
8046 (iq2000_unwind_pc): Delete.
8047 (iq2000_dummy_id): Delete.
8048 (iq2000_gdbarch_init): Don't register deleted functions with
8049 gdbarch.
8050
ecbc06d2
AB
80512019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8052
8053 * nds32-tdep.c (nds32_type_align): Delete.
8054 (nds32_push_dummy_call): Use type_align instead.
8055
030197b4
AB
80562019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8057
8058 * arm-tdep.c (arm_type_align): Only handle vector override case.
8059 (arm_push_dummy_call): Use type_align.
8060 (arm_gdbarch_init): Register arm_type_align gdbarch function.
8061
b907456c
AB
80622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8063
8064 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
8065 case.
8066 (pass_on_stack): Use type_align.
8067 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
8068 function.
8069
9e97ba43
TT
80702019-04-23 Tom Tromey <tromey@adacore.com>
8071
8072 * dwarf2read.c (line_header::file_name_at): Remove unused
8073 overload.
8074
6892f601
TV
80752019-04-23 Tom de Vries <tdevries@suse.de>
8076
8077 PR gdb/24438
8078 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
8079 invocation.
8080
336d760d
AT
8081
80822019-03-27 Ali Tamur <tamur@google.com>
8083
8084 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
8085 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
8086 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
8087 (dwarf_expr_context::get_addr_index): Likewise
8088 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
8089 (symbol_needs_eval_context::get_addr_index): Likewise
8090 (disassemble_dwarf_expression): Add DW_OP_addrx
8091 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
8092 (read_cutu_die_from_dwo): Update comment
8093 (skip_one_die): Add DW_FORM_addrx
8094 (read_attribute_value): Likewise
8095 (var_decode_location): Add DW_OP_addrx
8096 (dwarf2_const_value_attr): Add DW_FORM_addrx
8097 (dump_die_shallow): Likewise
8098 (dwarf2_fetch_constant_bytes): Likewise
8099 (decode_locdesc): Add DW_OP_addrx
8100 (skip_form_bytes): Add DW_FORM_addrx
8101
ad9d13f8
AT
81022019-04-22 Ali Tamur <tamur@google.com>
8103
8104 * MAINTAINERS (Write After Approval): Add self.
8105
d70cc3ba
SM
81062019-04-22 Simon Marchi <simon.marchi@efficios.com>
8107
8108 * solib-svr4.c (get_svr4_info): Add pspace parameter.
8109 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
8110 (open_symbol_file_object): Likewise.
8111 (svr4_default_sos): Add info parameter.
8112 (svr4_read_so_list): Likewise.
8113 (svr4_current_sos_direct): Adjust functions calls to pass down
8114 info.
8115 (svr4_current_sos_1): Add info parameter.
8116 (svr4_current_sos): Call get_svr4_info, pass info down to
8117 svr4_current_sos_1.
8118 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
8119 get_svr4_info.
8120 (svr4_in_dynsym_resolve_code): Pass current_program_space to
8121 get_svr4_info.
8122 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
8123 to get_svr4_info.
8124 (probes_table_remove_objfile_probes): Likewise.
8125 (register_solib_event_probe): Add info parameter.
8126 (solist_update_incremental): Pass info parameter down to
8127 svr4_read_so_list.
8128 (disable_probes_interface): Add info parameter.
8129 (svr4_handle_solib_event): Pass current_program_space to
8130 get_svr4_info. Adjust disable_probes_interface cleanup.
8131 (svr4_create_probe_breakpoints): Add info parameter, pass it
8132 down to register_solib_event_probe.
8133 (svr4_create_solib_event_breakpoints): Add info parameter,
8134 pass it down to svr4_create_probe_breakpoints.
8135 (enable_break): Pass info down to
8136 svr4_create_solib_event_breakpoints.
8137 (svr4_solib_create_inferior_hook): Pass current_program_space to
8138 get_svr4_info.
8139 (svr4_clear_solib): Likewise.
8140
7905fc35
PA
81412019-04-22 Pedro Alves <palves@redhat.com>
8142
8143 * solib-svr4.c (svr4_free_objfile_observer): New.
8144 (probe_and_action::objfile): New field.
8145 (probes_table_htab_remove_objfile_probes)
8146 (probes_table_remove_objfile_probes): New functions.
8147 (register_solib_event_probe): Add 'objfile' parameter. Store it
8148 in the new probe_and_action. Don't store the probe in 'lookup'.
8149 (svr4_create_probe_breakpoints): Pass objfile to
8150 register_solib_event_probe.
8151 (_initialize_svr4_solib): Register a free_objfile observer.
8152
fb881986
TT
81532019-04-19 Tom Tromey <tom@tromey.com>
8154
8155 * common/queue.h: Remove.
8156
8732db6c
TT
81572019-04-19 Tom Tromey <tom@tromey.com>
8158
8159 * event-loop.c: Don't include "common/queue.h".
8160
97dfbadd
TT
81612019-04-19 Tom Tromey <tom@tromey.com>
8162
8163 * remote.c (remote_target): Use delete.
8164 * remote-notif.h: Include <list>, not "common/queue.h".
8165 (notif_client_p): Remove typedef.
8166 (remote_notif_state): Add constructor, destructor, initializer.
8167 <notif_queue>: Now a std::list.
8168 (remote_notif_state_xfree): Don't declare.
8169 * remote-notif.c (remote_notif_process, handle_notification)
8170 (remote_notif_state_allocate): Update.
8171 (~remote_notif_state): Rename from remote_notif_state_xfree.
8172
cf250e36
TT
81732019-04-19 Tom Tromey <tom@tromey.com>
8174
8175 * symfile.c (reread_symbols): Update.
8176 * objfiles.c (objfile_register_static_link)
8177 (objfile_lookup_static_link): Update
8178 (~objfile) Don't delete static_links.
8179 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
8180
61f4b350
TT
81812019-04-19 Tom Tromey <tom@tromey.com>
8182
8183 * type-stack.h (struct type_stack) <insert>: Constify string.
8184 * type-stack.c (type_stack::insert): Constify string.
8185 * gdbtypes.h (lookup_template_type): Update.
8186 (address_space_name_to_int): Update.
8187 * gdbtypes.c (address_space_name_to_int): Make space_identifier
8188 const.
8189 (lookup_template_type): Make name const.
8190 * c-exp.y: Update rules.
8191 (lex_one_token, classify_name, classify_inner_name)
8192 (c_print_token): Update.
8193 * p-exp.y: Update rules.
8194 (yylex): Update.
8195 * f-exp.y: Update rules.
8196 (yylex): Update.
8197 * d-exp.y: Update rules.
8198 (lex_one_token, classify_name, classify_inner_name): Update.
8199 * parse.c (write_dollar_variable, copy_name): Return std::string.
8200 * parser-defs.h (copy_name): Change return type.
8201 * m2-exp.y: Update rules.
8202 (yylex): Update.
8203 * go-exp.y (lex_one_token): Update.
8204 Update rules.
8205 (classify_unsafe_function, classify_packaged_name)
8206 (classify_name, yylex): Update.
8207
189b8c2e
ST
82082019-04-19 Sergei Trofimovich <siarheit@google.com>
8209
8210 * configure.ac: add --enable-source-highlight switch.
8211 * configure: Regenerate.
8212 * top.c (print_gdb_version): plumb --enable-source-highlight
8213 status to "show configuration".
8214
8ecb59f8
TT
82152019-04-19 Tom Tromey <tromey@adacore.com>
8216
8217 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
8218 Check ADA_TYPE_P.
8219 (empty_record, ada_template_to_fixed_record_type_1)
8220 (template_to_static_fixed_type)
8221 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
8222 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
8223 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
8224 macros.
8225
62160ec9
TT
82262019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
8227
8228 PR symtab/24423:
8229 * source.c (print_source_lines_base): Advance "iter" when a
8230 control character is seen.
8231
f2ae8bc8
PW
82322019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8233
8234 * inferior.h (struct infcall_suspend_state_deleter):
8235 Catch exception in destructor to avoid crash.
8236
d563b953
PW
82372019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8238
8239 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
8240 close to the add_com "shell".
8241
dc34c897
TT
82422019-04-18 Tom Tromey <tromey@adacore.com>
8243
8244 * process-stratum-target.h (class process_stratum_target)
8245 <stratum>: Add "final".
8246
a12e5744
TT
82472019-04-17 Tom Tromey <tromey@adacore.com>
8248
8249 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
8250 against nullptr before use.
8251
a7e559cc
AH
82522019-04-17 Alan Hayward <alan.hayward@arm.com>
8253
8254 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
8255
c01660c6
AB
82562019-04-17 Jim Wilson <jimw@sifive.com>
8257 Andrew Burgess <andrew.burgess@embecosm.com>
8258
8259 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
8260 code read might fail, assume 4-byte breakpoint in that case.
8261
4aa866af
LS
82622019-04-15 Leszek Swirski <leszeks@google.com>
8263
8264 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
8265 rather than a hand-rolled POD check when checking for forced MEMORY
8266 classification.
8267
48574d91
AH
82682019-04-15 Alan Hayward <alan.hayward@arm.com>
8269
8270 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
8271 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
8272 function.
8273 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
8274 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
8275 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
8276 declaration.
8277
4da037ef
AH
82782019-04-15 Alan Hayward <alan.hayward@arm.com>
8279
8280 * aarch64-linux-nat.c
8281 (aarch64_linux_nat_target::thread_architecture): Add override.
8282 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
8283 each VQ.
8284
ccb8d7e8
AH
82852019-04-15 Alan Hayward <alan.hayward@arm.com>
8286
8287 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
8288
35add35e
AB
82892019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
8290
8291 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
8292 target types of size 96-bits, add some additional comments, and
8293 check that the builtin type we found was the correct size.
8294
51196bbc
EZ
82952019-04-12 Eli Zaretskii <eliz@gnu.org>
8296
8297 * utils.c (prompt_for_continue): Don't restore the styling at the
8298 end, as applied_style has the wrong value. This fixes styling in
8299 long lists of file names that are interrupted by the "Continue?"
8300 prompt.
8301
62253a61
AB
83022019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
8303
8304 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
8305 * c-lang.c (c_language_defn): Likewise.
8306 (cplus_language_defn): Likewise.
8307 (asm_language_defn): Likewise.
8308 (minimal_language_defn): Likewise.
8309 * d-lang.c (d_language_defn): Likewise.
8310 * f-lang.c (f_language_defn): Likewise.
8311 * go-lang.c (go_language_defn): Likewise.
8312 * language.c (unknown_language_defn): Likewise.
8313 (auto_language_defn): Likewise.
8314 * language.h (struct language_defn): Remove la_magic field.
8315 (LANG_MAGIC): Delete.
8316 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
8317 * objc-lang.c (objc_language_defn): Likewise.
8318 * opencl-lang.c (opencl_language_defn): Likewise.
8319 * p-lang.c (pascal_language_defn): Likewise.
8320 * rust-lang.c (rust_language_defn): Likewise.
8321
a9158a86
AB
83222019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8323
8324 * riscv-tdep.c (riscv_type_align): New function.
8325 (riscv_type_alignment): Delete.
8326 (riscv_arg_location): Use 'type_align'.
8327 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
8328
41077b66
AB
83292019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8330
8331 * gdbtypes.c (type_align): A struct with no non-static fields also
8332 has alignment of 1.
8333
9f0272f8
AB
83342019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8335
8336 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
8337 component to 0.
8338 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
8339 member.
8340 (riscv_struct_info::analyse): New implementation using new
8341 analyse_inner member function.
8342 (riscv_struct_info::field_offset): New member function.
8343 (riscv_struct_info::m_offsets): New member variable.
8344 (riscv_struct_info::analyse_inner): New private member function,
8345 takes the old implementation of riscv_struct_info::analyse but
8346 extended to track field offsets.
8347 (riscv_call_arg_struct): Update the struct folding special cases
8348 to handle cases where empty C++ structs, which are non-zero
8349 length, are found.
8350 (riscv_arg_location): Initialise the length of each location, a
8351 non-zero length now indicates the location is in use.
8352 (riscv_push_dummy_call): Allow for the first location having a
8353 non-zero offset when setting up arguments.
8354 (riscv_return_value): Likewise, but for return values.
8355
02cf60c7
TT
83562019-04-11 Tom Tromey <tromey@adacore.com>
8357
8358 * utils.c (internal_vproblem): Make "msg" const.
8359
68811f8f
AH
83602019-04-11 Alan Hayward <alan.hayward@arm.com>
8361
8362 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
8363 * trad-frame.c (trad_frame_reset_saved_regs): New function.
8364 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
8365 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
8366
3f52fdbc
KB
83672019-04-10 Kevin Buettner <kevinb@redhat.com>
8368
8369 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
8370 function.
8371 (fill_gregset): Call amd64_linux_collect_native_gregset instead
8372 of amd64_collect_native_gregset.
8373 (amd64_linux_nat_target::store_registers): Likewise.
8374
e9ad22ee
TT
83752019-04-10 Tom Tromey <tom@tromey.com>
8376
8377 * symtab.c (lookup_global_symbol_from_objfile)
8378 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
8379 * objfiles.h (class separate_debug_iterator): New.
8380 (class separate_debug_range): New.
8381 (struct objfile) <separate_debug_objfiles>: New method.
8382 (objfile_separate_debug_iterate): Don't declare.
8383 * objfiles.c (separate_debug_iterator::operator++): Rename from
8384 objfile_separate_debug_iterate.
8385 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
8386 iterator.
8387 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
8388 iterator.
8389
ee371134
TT
83902019-04-10 Tom Tromey <tom@tromey.com>
8391
8392 * symfile.c (reread_symbols): Remove old comment.
8393 * objfiles.c (free_all_objfiles): Fix a typo.
8394
bf227d61
TT
83952019-04-10 Tom Tromey <tom@tromey.com>
8396
8397 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
8398 * minsyms.c (lookup_minimal_symbol): Use foreach.
8399 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8400 (lookup_minimal_symbol_solib_trampoline): Likewise.
8401 * symfile.c (reread_symbols): Use foreach.
8402
8dc433a0
TT
84032019-04-09 Ivan Begert <ivanbegert@gmail.com>
8404 Tom Tromey <tromey@adacore.com>
8405
8406 PR rust/24414:
8407 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
8408 (rust_lex_int_test): Change "value" to be LONGEST.
8409 (rust_lex_tests): Add test for long integer literal.
8410
9ab8741a
TT
84112019-04-09 Tom Tromey <tromey@adacore.com>
8412
8413 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
8414 to bool.
8415 (extended_remote_target::attach): Update.
8416 (remote_target::remote_notice_new_inferior): Update.
8417 (remote_target::add_current_inferior_and_thread): Update.
8418 * inferior.c (exit_inferior_1): Use "false".
8419 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
8420
e242fd12
SM
84212019-04-09 Simon Marchi <simon.marchi@efficios.com>
8422
9ca1957f 8423 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
8424 the "start" command.
8425
2b0c8b01
KB
84262019-04-08 Kevin Buettner <kevinb@redhat.com>
8427
8428 * python/py-inferior.c (infpy_thread_from_thread_handle):
8429 Adjust comments to reflect renaming of thread_from_thread_handle
8430 to thread_from_handle. Adjust keywords. Fix type error message.
8431 (inferior_object_methods): Add thread_from_handle. Retain
8432 thread_from_thread_handle, but mark it as deprecated.
8433
50a82723
KB
84342019-04-08 Kevin Buettner <kevinb@redhat.com>
8435
8436 * gdbthread.h (find_thread_by_handle): Revise declaration.
8437 * thread.c (find_thread_by_handle): Likewise. Adjust
8438 implementation too.
8439 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
8440 support for buffer objects as handles.
8441
cf63b016
KB
84422019-04-08 Kevin Buettner <kevinb@redhat.com>
8443
8444 * python/py-infthread.c (thpy_thread_handle): New function.
8445 (thread_object_methods): Register thpy_thread_handle.
8446
3d6c6204
KB
84472019-04-08 Kevin Buettner <kevinb@redhat.com>
8448
8449 * gdbthread.h (thread_to_thread_handle): Declare.
8450 * thread.c (gdbtypes.h): Include.
8451 (thread_to_thread_handle): New function.
8452
8453 * target.h (struct target_ops): Add thread_info_to_thread_handle.
8454 (target_thread_info_to_thread_handle): Declare.
8455 * target.c (target_thread_info_to_thread_handle): New function.
8456 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
8457 * target-delegates.c: Regenerate.
8458
8459 * linux-thread-db.c (class thread_db_target): Add method
8460 thread_info_to_thread_handle.
8461 (thread_db_target::thread_info_to_thread_handle): Define.
8462 * remote.c (class remote_target): Add new method
8463 thread_info_to_thread_handle.
8464 (remote_target::thread_info_to_thread_handle): Define.
8465
56be6ea8
PA
84662019-04-08 Pedro Alves <palves@redhat.com>
8467
8468 * common/common-exceptions.c (throw_exception): Don't create
8469 named object to throw; throw directly.
8470 (throw_it): Likewise. Don't initialize gdb_exception::message
8471 here, with new; pass FMT and AP to the ctor instead.
8472 * common/common-exceptions.h: Include <string>.
8473 (gdb_exception::gdb_exception(enum return_reason, enum errors,
8474 const char *, va_list)): New ctor. Use std::make_shared.
8475 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
8476 errors)): Delete.
8477 (gdb_exception_error::gdb_exception_error(enum errors, const char
8478 *, va_list)): New.
8479 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
8480 Add assertion.
8481 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
8482 errors)): Delete.
8483 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
8484 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
8485 Add assertion.
8486
eedc3f4f
TT
84872019-04-08 Tom Tromey <tom@tromey.com>
8488
8489 * valops.c (value_rtti_indirect_type): Replace throw_exception
8490 with throw.
8491 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
8492 with throw.
8493 * thread.c (thr_try_catch_cmd): Replace throw_exception with
8494 throw.
8495 * target.c (target_translate_tls_address): Replace throw_exception
8496 with throw.
8497 * stack.c (frame_apply_command_count): Replace throw_exception
8498 with throw.
8499 * solib-spu.c (append_ocl_sos): Replace throw_exception with
8500 throw.
8501 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
8502 with throw.
8503 * rs6000-tdep.c (rs6000_frame_cache)
8504 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
8505 * remote.c: Replace throw_exception with throw.
8506 * record-full.c (record_full_message, record_full_wait_1)
8507 (record_full_restore): Replace throw_exception with throw.
8508 * record-btrace.c:
8509 (get_thread_current_frame_id, record_btrace_start_replaying)
8510 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
8511 (cmd_record_btrace_start): Replace throw_exception with throw.
8512 * parse.c (parse_exp_in_context_1): Replace throw_exception with
8513 throw.
8514 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
8515 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
8516 * linespec.c:
8517 (find_linespec_symbols): Replace throw_exception with throw.
8518 * infrun.c (displaced_step_prepare, resume): Replace
8519 throw_exception with throw.
8520 * infcmd.c (post_create_inferior): Replace throw_exception with
8521 throw.
8522 * inf-loop.c (inferior_event_handler): Replace throw_exception
8523 with throw.
8524 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
8525 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
8526 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
8527 (get_prev_frame_always, get_frame_pc_if_available)
8528 (get_frame_address_in_block_if_available, get_frame_language):
8529 Replace throw_exception with throw.
8530 * frame-unwind.c (frame_unwind_try_unwinder): Replace
8531 throw_exception with throw.
8532 * eval.c (fetch_subexp_value, evaluate_var_value)
8533 (evaluate_funcall, evaluate_subexp_standard): Replace
8534 throw_exception with throw.
8535 * dwarf2loc.c (call_site_find_chain)
8536 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
8537 Replace throw_exception with throw.
8538 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
8539 with throw.
8540 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
8541 throw.
8542 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
8543 * completer.c (complete_line_internal): Replace throw_exception
8544 with throw.
8545 * compile/compile-object-run.c (compile_object_run): Replace
8546 throw_exception with throw.
8547 * cli/cli-script.c (process_next_line): Replace throw_exception
8548 with throw.
8549 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
8550 (btrace_enable, btrace_maint_update_pt_packets): Replace
8551 throw_exception with throw.
8552 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
8553 throw_exception with throw.
8554 * break-catch-throw.c (re_set_exception_catchpoint): Replace
8555 throw_exception with throw.
8556 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
8557 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
8558 * aarch64-tdep.c (aarch64_make_prologue_cache)
8559 (aarch64_make_stub_cache): Replace throw_exception with throw.
8560
26003a20
TT
85612019-04-08 Tom Tromey <tom@tromey.com>
8562
8563 * common/common-exceptions.c (throw_exception): Rename from
8564 throw_exception_cxx. Remove old copy. Make argument const.
8565 (throw_it): Create and throw exception objects directly.
8566 * common/common-exceptions.h (throw_exception): Make argument
8567 const.
8568 (struct gdb_exception_error): Add constructor.
8569 (struct gdb_exception_quit): Add constructor.
8570
d272eb37
TT
85712019-04-08 Tom Tromey <tom@tromey.com>
8572
8573 * common/common-exceptions.h (exception_rethrow): Don't declare.
8574 (TRY_SJLJ): Update comment.
8575 (TRY, CATCH, END_CATCH): Remove.
8576 * common/common-exceptions.c (exception_rethrow): Remove.
8577
230d2906
TT
85782019-04-08 Tom Tromey <tom@tromey.com>
8579
8580 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
8581 Remove.
8582 (gdb_exception_error): Rename from
8583 gdb_exception_RETURN_MASK_ERROR.
8584 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
8585 (gdb_quit_bad_alloc): Update.
8586 * aarch64-tdep.c: Update.
8587 * ada-lang.c: Update.
8588 * ada-typeprint.c: Update.
8589 * ada-valprint.c: Update.
8590 * amd64-tdep.c: Update.
8591 * arch-utils.c: Update.
8592 * break-catch-throw.c: Update.
8593 * breakpoint.c: Update.
8594 * btrace.c: Update.
8595 * c-varobj.c: Update.
8596 * cli/cli-cmds.c: Update.
8597 * cli/cli-interp.c: Update.
8598 * cli/cli-script.c: Update.
8599 * common/common-exceptions.c: Update.
8600 * common/new-op.c: Update.
8601 * common/selftest.c: Update.
8602 * compile/compile-c-symbols.c: Update.
8603 * compile/compile-cplus-symbols.c: Update.
8604 * compile/compile-object-load.c: Update.
8605 * compile/compile-object-run.c: Update.
8606 * completer.c: Update.
8607 * corelow.c: Update.
8608 * cp-abi.c: Update.
8609 * cp-support.c: Update.
8610 * cp-valprint.c: Update.
8611 * darwin-nat.c: Update.
8612 * disasm-selftests.c: Update.
8613 * dtrace-probe.c: Update.
8614 * dwarf-index-cache.c: Update.
8615 * dwarf-index-write.c: Update.
8616 * dwarf2-frame-tailcall.c: Update.
8617 * dwarf2-frame.c: Update.
8618 * dwarf2loc.c: Update.
8619 * dwarf2read.c: Update.
8620 * eval.c: Update.
8621 * event-loop.c: Update.
8622 * event-top.c: Update.
8623 * exec.c: Update.
8624 * f-valprint.c: Update.
8625 * fbsd-tdep.c: Update.
8626 * frame-unwind.c: Update.
8627 * frame.c: Update.
8628 * gdbtypes.c: Update.
8629 * gnu-v3-abi.c: Update.
8630 * guile/guile-internal.h: Update.
8631 * guile/scm-block.c: Update.
8632 * guile/scm-breakpoint.c: Update.
8633 * guile/scm-cmd.c: Update.
8634 * guile/scm-disasm.c: Update.
8635 * guile/scm-frame.c: Update.
8636 * guile/scm-lazy-string.c: Update.
8637 * guile/scm-math.c: Update.
8638 * guile/scm-param.c: Update.
8639 * guile/scm-ports.c: Update.
8640 * guile/scm-pretty-print.c: Update.
8641 * guile/scm-symbol.c: Update.
8642 * guile/scm-symtab.c: Update.
8643 * guile/scm-type.c: Update.
8644 * guile/scm-value.c: Update.
8645 * i386-linux-tdep.c: Update.
8646 * i386-tdep.c: Update.
8647 * inf-loop.c: Update.
8648 * infcall.c: Update.
8649 * infcmd.c: Update.
8650 * infrun.c: Update.
8651 * jit.c: Update.
8652 * language.c: Update.
8653 * linespec.c: Update.
8654 * linux-fork.c: Update.
8655 * linux-nat.c: Update.
8656 * linux-tdep.c: Update.
8657 * linux-thread-db.c: Update.
8658 * main.c: Update.
8659 * mi/mi-cmd-break.c: Update.
8660 * mi/mi-cmd-stack.c: Update.
8661 * mi/mi-interp.c: Update.
8662 * mi/mi-main.c: Update.
8663 * objc-lang.c: Update.
8664 * p-valprint.c: Update.
8665 * parse.c: Update.
8666 * ppc-linux-tdep.c: Update.
8667 * printcmd.c: Update.
8668 * python/py-arch.c: Update.
8669 * python/py-breakpoint.c: Update.
8670 * python/py-cmd.c: Update.
8671 * python/py-finishbreakpoint.c: Update.
8672 * python/py-frame.c: Update.
8673 * python/py-framefilter.c: Update.
8674 * python/py-gdb-readline.c: Update.
8675 * python/py-inferior.c: Update.
8676 * python/py-infthread.c: Update.
8677 * python/py-lazy-string.c: Update.
8678 * python/py-linetable.c: Update.
8679 * python/py-objfile.c: Update.
8680 * python/py-param.c: Update.
8681 * python/py-prettyprint.c: Update.
8682 * python/py-progspace.c: Update.
8683 * python/py-record-btrace.c: Update.
8684 * python/py-record.c: Update.
8685 * python/py-symbol.c: Update.
8686 * python/py-type.c: Update.
8687 * python/py-unwind.c: Update.
8688 * python/py-utils.c: Update.
8689 * python/py-value.c: Update.
8690 * python/python.c: Update.
8691 * record-btrace.c: Update.
8692 * record-full.c: Update.
8693 * remote-fileio.c: Update.
8694 * remote.c: Update.
8695 * riscv-tdep.c: Update.
8696 * rs6000-aix-tdep.c: Update.
8697 * rs6000-tdep.c: Update.
8698 * rust-exp.y: Update.
8699 * rust-lang.c: Update.
8700 * s390-tdep.c: Update.
8701 * selftest-arch.c: Update.
8702 * solib-dsbt.c: Update.
8703 * solib-frv.c: Update.
8704 * solib-spu.c: Update.
8705 * solib-svr4.c: Update.
8706 * solib.c: Update.
8707 * sparc64-linux-tdep.c: Update.
8708 * stack.c: Update.
8709 * symfile-mem.c: Update.
8710 * symmisc.c: Update.
8711 * target.c: Update.
8712 * thread.c: Update.
8713 * top.c: Update.
8714 * tracefile-tfile.c: Update.
8715 * tui/tui.c: Update.
8716 * typeprint.c: Update.
8717 * unittests/cli-utils-selftests.c: Update.
8718 * unittests/parse-connection-spec-selftests.c: Update.
8719 * valops.c: Update.
8720 * valprint.c: Update.
8721 * value.c: Update.
8722 * varobj.c: Update.
8723 * windows-nat.c: Update.
8724 * x86-linux-nat.c: Update.
8725 * xml-support.c: Update.
8726
a70b8144
TT
87272019-04-08 Tom Tromey <tom@tromey.com>
8728
8729 * xml-support.c: Use C++ exception handling.
8730 * x86-linux-nat.c: Use C++ exception handling.
8731 * windows-nat.c: Use C++ exception handling.
8732 * varobj.c: Use C++ exception handling.
8733 * value.c: Use C++ exception handling.
8734 * valprint.c: Use C++ exception handling.
8735 * valops.c: Use C++ exception handling.
8736 * unittests/parse-connection-spec-selftests.c: Use C++ exception
8737 handling.
8738 * unittests/cli-utils-selftests.c: Use C++ exception handling.
8739 * typeprint.c: Use C++ exception handling.
8740 * tui/tui.c: Use C++ exception handling.
8741 * tracefile-tfile.c: Use C++ exception handling.
8742 * top.c: Use C++ exception handling.
8743 * thread.c: Use C++ exception handling.
8744 * target.c: Use C++ exception handling.
8745 * symmisc.c: Use C++ exception handling.
8746 * symfile-mem.c: Use C++ exception handling.
8747 * stack.c: Use C++ exception handling.
8748 * sparc64-linux-tdep.c: Use C++ exception handling.
8749 * solib.c: Use C++ exception handling.
8750 * solib-svr4.c: Use C++ exception handling.
8751 * solib-spu.c: Use C++ exception handling.
8752 * solib-frv.c: Use C++ exception handling.
8753 * solib-dsbt.c: Use C++ exception handling.
8754 * selftest-arch.c: Use C++ exception handling.
8755 * s390-tdep.c: Use C++ exception handling.
8756 * rust-lang.c: Use C++ exception handling.
8757 * rust-exp.y: Use C++ exception handling.
8758 * rs6000-tdep.c: Use C++ exception handling.
8759 * rs6000-aix-tdep.c: Use C++ exception handling.
8760 * riscv-tdep.c: Use C++ exception handling.
8761 * remote.c: Use C++ exception handling.
8762 * remote-fileio.c: Use C++ exception handling.
8763 * record-full.c: Use C++ exception handling.
8764 * record-btrace.c: Use C++ exception handling.
8765 * python/python.c: Use C++ exception handling.
8766 * python/py-value.c: Use C++ exception handling.
8767 * python/py-utils.c: Use C++ exception handling.
8768 * python/py-unwind.c: Use C++ exception handling.
8769 * python/py-type.c: Use C++ exception handling.
8770 * python/py-symbol.c: Use C++ exception handling.
8771 * python/py-record.c: Use C++ exception handling.
8772 * python/py-record-btrace.c: Use C++ exception handling.
8773 * python/py-progspace.c: Use C++ exception handling.
8774 * python/py-prettyprint.c: Use C++ exception handling.
8775 * python/py-param.c: Use C++ exception handling.
8776 * python/py-objfile.c: Use C++ exception handling.
8777 * python/py-linetable.c: Use C++ exception handling.
8778 * python/py-lazy-string.c: Use C++ exception handling.
8779 * python/py-infthread.c: Use C++ exception handling.
8780 * python/py-inferior.c: Use C++ exception handling.
8781 * python/py-gdb-readline.c: Use C++ exception handling.
8782 * python/py-framefilter.c: Use C++ exception handling.
8783 * python/py-frame.c: Use C++ exception handling.
8784 * python/py-finishbreakpoint.c: Use C++ exception handling.
8785 * python/py-cmd.c: Use C++ exception handling.
8786 * python/py-breakpoint.c: Use C++ exception handling.
8787 * python/py-arch.c: Use C++ exception handling.
8788 * printcmd.c: Use C++ exception handling.
8789 * ppc-linux-tdep.c: Use C++ exception handling.
8790 * parse.c: Use C++ exception handling.
8791 * p-valprint.c: Use C++ exception handling.
8792 * objc-lang.c: Use C++ exception handling.
8793 * mi/mi-main.c: Use C++ exception handling.
8794 * mi/mi-interp.c: Use C++ exception handling.
8795 * mi/mi-cmd-stack.c: Use C++ exception handling.
8796 * mi/mi-cmd-break.c: Use C++ exception handling.
8797 * main.c: Use C++ exception handling.
8798 * linux-thread-db.c: Use C++ exception handling.
8799 * linux-tdep.c: Use C++ exception handling.
8800 * linux-nat.c: Use C++ exception handling.
8801 * linux-fork.c: Use C++ exception handling.
8802 * linespec.c: Use C++ exception handling.
8803 * language.c: Use C++ exception handling.
8804 * jit.c: Use C++ exception handling.
8805 * infrun.c: Use C++ exception handling.
8806 * infcmd.c: Use C++ exception handling.
8807 * infcall.c: Use C++ exception handling.
8808 * inf-loop.c: Use C++ exception handling.
8809 * i386-tdep.c: Use C++ exception handling.
8810 * i386-linux-tdep.c: Use C++ exception handling.
8811 * guile/scm-value.c: Use C++ exception handling.
8812 * guile/scm-type.c: Use C++ exception handling.
8813 * guile/scm-symtab.c: Use C++ exception handling.
8814 * guile/scm-symbol.c: Use C++ exception handling.
8815 * guile/scm-pretty-print.c: Use C++ exception handling.
8816 * guile/scm-ports.c: Use C++ exception handling.
8817 * guile/scm-param.c: Use C++ exception handling.
8818 * guile/scm-math.c: Use C++ exception handling.
8819 * guile/scm-lazy-string.c: Use C++ exception handling.
8820 * guile/scm-frame.c: Use C++ exception handling.
8821 * guile/scm-disasm.c: Use C++ exception handling.
8822 * guile/scm-cmd.c: Use C++ exception handling.
8823 * guile/scm-breakpoint.c: Use C++ exception handling.
8824 * guile/scm-block.c: Use C++ exception handling.
8825 * guile/guile-internal.h: Use C++ exception handling.
8826 * gnu-v3-abi.c: Use C++ exception handling.
8827 * gdbtypes.c: Use C++ exception handling.
8828 * frame.c: Use C++ exception handling.
8829 * frame-unwind.c: Use C++ exception handling.
8830 * fbsd-tdep.c: Use C++ exception handling.
8831 * f-valprint.c: Use C++ exception handling.
8832 * exec.c: Use C++ exception handling.
8833 * event-top.c: Use C++ exception handling.
8834 * event-loop.c: Use C++ exception handling.
8835 * eval.c: Use C++ exception handling.
8836 * dwarf2read.c: Use C++ exception handling.
8837 * dwarf2loc.c: Use C++ exception handling.
8838 * dwarf2-frame.c: Use C++ exception handling.
8839 * dwarf2-frame-tailcall.c: Use C++ exception handling.
8840 * dwarf-index-write.c: Use C++ exception handling.
8841 * dwarf-index-cache.c: Use C++ exception handling.
8842 * dtrace-probe.c: Use C++ exception handling.
8843 * disasm-selftests.c: Use C++ exception handling.
8844 * darwin-nat.c: Use C++ exception handling.
8845 * cp-valprint.c: Use C++ exception handling.
8846 * cp-support.c: Use C++ exception handling.
8847 * cp-abi.c: Use C++ exception handling.
8848 * corelow.c: Use C++ exception handling.
8849 * completer.c: Use C++ exception handling.
8850 * compile/compile-object-run.c: Use C++ exception handling.
8851 * compile/compile-object-load.c: Use C++ exception handling.
8852 * compile/compile-cplus-symbols.c: Use C++ exception handling.
8853 * compile/compile-c-symbols.c: Use C++ exception handling.
8854 * common/selftest.c: Use C++ exception handling.
8855 * common/new-op.c: Use C++ exception handling.
8856 * cli/cli-script.c: Use C++ exception handling.
8857 * cli/cli-interp.c: Use C++ exception handling.
8858 * cli/cli-cmds.c: Use C++ exception handling.
8859 * c-varobj.c: Use C++ exception handling.
8860 * btrace.c: Use C++ exception handling.
8861 * breakpoint.c: Use C++ exception handling.
8862 * break-catch-throw.c: Use C++ exception handling.
8863 * arch-utils.c: Use C++ exception handling.
8864 * amd64-tdep.c: Use C++ exception handling.
8865 * ada-valprint.c: Use C++ exception handling.
8866 * ada-typeprint.c: Use C++ exception handling.
8867 * ada-lang.c: Use C++ exception handling.
8868 * aarch64-tdep.c: Use C++ exception handling.
8869
3d6e9d23
TT
88702019-04-08 Tom Tromey <tom@tromey.com>
8871
8872 * xml-support.c (gdb_xml_parser::parse): Update.
8873 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8874 * value.c (show_convenience): Update.
8875 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
8876 (test_parse_flags_qcs): Update.
8877 * thread.c (thr_try_catch_cmd): Update.
8878 * target.c (target_translate_tls_address): Update.
8879 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
8880 (info_frame_command_core, frame_apply_command_count): Update.
8881 * rust-exp.y (rust_lex_exception_test): Update.
8882 * riscv-tdep.c (riscv_print_one_register_info): Update.
8883 * remote.c (remote_target::enable_btrace): Update.
8884 * record-btrace.c (record_btrace_enable_warn): Update.
8885 * python/py-utils.c (gdbpy_convert_exception): Update.
8886 * printcmd.c (do_one_display, print_variable_and_value): Update.
8887 * mi/mi-main.c (mi_print_exception): Update.
8888 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
8889 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
8890 * linux-nat.c (linux_nat_target::attach): Update.
8891 * linux-fork.c (class scoped_switch_fork_info): Update.
8892 * infrun.c (displaced_step_prepare): Update.
8893 * infcall.c (call_function_by_hand_dummy): Update.
8894 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
8895 * gnu-v3-abi.c (print_one_vtable): Update.
8896 * frame.c (get_prev_frame_always): Update.
8897 * f-valprint.c (info_common_command_for_block): Update.
8898 * exec.c (try_open_exec_file): Update.
8899 * exceptions.c (print_exception, exception_print)
8900 (exception_fprintf, exception_print_same): Update.
8901 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
8902 * dwarf-index-cache.c (index_cache::store)
8903 (index_cache::lookup_gdb_index): Update.
8904 * darwin-nat.c (maybe_cache_shell): Update.
8905 * cp-valprint.c (cp_print_value_fields): Update.
8906 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
8907 (gcc_cplus_symbol_address): Update.
8908 * compile/compile-c-symbols.c (gcc_convert_symbol)
8909 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
8910 * common/selftest.c: Update.
8911 * common/common-exceptions.h (struct gdb_exception) <message>: Now
8912 a std::string.
8913 (exception_try_scope_entry, exception_try_scope_exit): Don't
8914 declare.
8915 (struct exception_try_scope): Remove.
8916 (TRY): Don't use exception_try_scope.
8917 (struct gdb_exception): Add constructor, operator=.
8918 <what>: New method.
8919 (struct gdb_exception_RETURN_MASK_ALL)
8920 (struct gdb_exception_RETURN_MASK_ERROR)
8921 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
8922 (struct gdb_quit_bad_alloc): Update.
8923 * common/common-exceptions.c (exception_none): Change
8924 initializer.
8925 (struct catcher) <state, exception>: Initialize inline.
8926 <prev>: Remove member.
8927 (current_catcher): Remove.
8928 (catchers): New global.
8929 (exceptions_state_mc_init): Simplify.
8930 (catcher_pop): Remove.
8931 (exceptions_state_mc, exceptions_state_mc_catch): Update.
8932 (try_scope_depth, exception_try_scope_entry)
8933 (exception_try_scope_exit): Remove.
8934 (throw_exception_sjlj): Update.
8935 (exception_messages, exception_messages_size): Remove.
8936 (throw_it): Simplify.
8937 (gdb_exception_sliced_copy): Remove.
8938 (throw_exception_cxx): Update.
8939 * cli/cli-script.c (script_from_file): Update.
8940 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
8941 Update.
8942 * ada-valprint.c (ada_val_print): Update.
8943 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
8944 (create_excep_cond_exprs): Update.
8945
c5c10118
TT
89462019-04-08 Tom Tromey <tom@tromey.com>
8947
8948 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
8949 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
8950 (TRY, CATCH, END_CATCH): Remove some definitions.
8951 * common/common-exceptions.c: Don't use GDB_XCPT.
8952 (catcher_list_size): Remove.
8953 (throw_exception, throw_it): Simplify.
8954
4de283e4
TT
89552019-04-05 Tom Tromey <tom@tromey.com>
8956
8957 Revert the header-sorting patch.
8958 * ft32-tdep.c: Revert.
8959 * frv-tdep.c: Revert.
8960 * frv-linux-tdep.c: Revert.
8961 * frame.c: Revert.
8962 * frame-unwind.c: Revert.
8963 * frame-base.c: Revert.
8964 * fork-child.c: Revert.
8965 * findvar.c: Revert.
8966 * findcmd.c: Revert.
8967 * filesystem.c: Revert.
8968 * filename-seen-cache.h: Revert.
8969 * filename-seen-cache.c: Revert.
8970 * fbsd-tdep.c: Revert.
8971 * fbsd-nat.h: Revert.
8972 * fbsd-nat.c: Revert.
8973 * f-valprint.c: Revert.
8974 * f-typeprint.c: Revert.
8975 * f-lang.c: Revert.
8976 * extension.h: Revert.
8977 * extension.c: Revert.
8978 * extension-priv.h: Revert.
8979 * expprint.c: Revert.
8980 * exec.h: Revert.
8981 * exec.c: Revert.
8982 * exceptions.c: Revert.
8983 * event-top.c: Revert.
8984 * event-loop.c: Revert.
8985 * eval.c: Revert.
8986 * elfread.c: Revert.
8987 * dwarf2read.h: Revert.
8988 * dwarf2read.c: Revert.
8989 * dwarf2loc.c: Revert.
8990 * dwarf2expr.h: Revert.
8991 * dwarf2expr.c: Revert.
8992 * dwarf2-frame.c: Revert.
8993 * dwarf2-frame-tailcall.c: Revert.
8994 * dwarf-index-write.h: Revert.
8995 * dwarf-index-write.c: Revert.
8996 * dwarf-index-common.c: Revert.
8997 * dwarf-index-cache.h: Revert.
8998 * dwarf-index-cache.c: Revert.
8999 * dummy-frame.c: Revert.
9000 * dtrace-probe.c: Revert.
9001 * disasm.h: Revert.
9002 * disasm.c: Revert.
9003 * disasm-selftests.c: Revert.
9004 * dictionary.c: Revert.
9005 * dicos-tdep.c: Revert.
9006 * demangle.c: Revert.
9007 * dcache.h: Revert.
9008 * dcache.c: Revert.
9009 * darwin-nat.h: Revert.
9010 * darwin-nat.c: Revert.
9011 * darwin-nat-info.c: Revert.
9012 * d-valprint.c: Revert.
9013 * d-namespace.c: Revert.
9014 * d-lang.c: Revert.
9015 * ctf.c: Revert.
9016 * csky-tdep.c: Revert.
9017 * csky-linux-tdep.c: Revert.
9018 * cris-tdep.c: Revert.
9019 * cris-linux-tdep.c: Revert.
9020 * cp-valprint.c: Revert.
9021 * cp-support.c: Revert.
9022 * cp-namespace.c: Revert.
9023 * cp-abi.c: Revert.
9024 * corelow.c: Revert.
9025 * corefile.c: Revert.
9026 * continuations.c: Revert.
9027 * completer.h: Revert.
9028 * completer.c: Revert.
9029 * complaints.c: Revert.
9030 * coffread.c: Revert.
9031 * coff-pe-read.c: Revert.
9032 * cli-out.h: Revert.
9033 * cli-out.c: Revert.
9034 * charset.c: Revert.
9035 * c-varobj.c: Revert.
9036 * c-valprint.c: Revert.
9037 * c-typeprint.c: Revert.
9038 * c-lang.c: Revert.
9039 * buildsym.c: Revert.
9040 * buildsym-legacy.c: Revert.
9041 * build-id.h: Revert.
9042 * build-id.c: Revert.
9043 * btrace.c: Revert.
9044 * bsd-uthread.c: Revert.
9045 * breakpoint.h: Revert.
9046 * breakpoint.c: Revert.
9047 * break-catch-throw.c: Revert.
9048 * break-catch-syscall.c: Revert.
9049 * break-catch-sig.c: Revert.
9050 * blockframe.c: Revert.
9051 * block.c: Revert.
9052 * bfin-tdep.c: Revert.
9053 * bfin-linux-tdep.c: Revert.
9054 * bfd-target.c: Revert.
9055 * bcache.c: Revert.
9056 * ax-general.c: Revert.
9057 * ax-gdb.h: Revert.
9058 * ax-gdb.c: Revert.
9059 * avr-tdep.c: Revert.
9060 * auxv.c: Revert.
9061 * auto-load.c: Revert.
9062 * arm-wince-tdep.c: Revert.
9063 * arm-tdep.c: Revert.
9064 * arm-symbian-tdep.c: Revert.
9065 * arm-pikeos-tdep.c: Revert.
9066 * arm-obsd-tdep.c: Revert.
9067 * arm-nbsd-tdep.c: Revert.
9068 * arm-nbsd-nat.c: Revert.
9069 * arm-linux-tdep.c: Revert.
9070 * arm-linux-nat.c: Revert.
9071 * arm-fbsd-tdep.c: Revert.
9072 * arm-fbsd-nat.c: Revert.
9073 * arm-bsd-tdep.c: Revert.
9074 * arch-utils.c: Revert.
9075 * arc-tdep.c: Revert.
9076 * arc-newlib-tdep.c: Revert.
9077 * annotate.h: Revert.
9078 * annotate.c: Revert.
9079 * amd64-windows-tdep.c: Revert.
9080 * amd64-windows-nat.c: Revert.
9081 * amd64-tdep.c: Revert.
9082 * amd64-sol2-tdep.c: Revert.
9083 * amd64-obsd-tdep.c: Revert.
9084 * amd64-obsd-nat.c: Revert.
9085 * amd64-nbsd-tdep.c: Revert.
9086 * amd64-nbsd-nat.c: Revert.
9087 * amd64-nat.c: Revert.
9088 * amd64-linux-tdep.c: Revert.
9089 * amd64-linux-nat.c: Revert.
9090 * amd64-fbsd-tdep.c: Revert.
9091 * amd64-fbsd-nat.c: Revert.
9092 * amd64-dicos-tdep.c: Revert.
9093 * amd64-darwin-tdep.c: Revert.
9094 * amd64-bsd-nat.c: Revert.
9095 * alpha-tdep.c: Revert.
9096 * alpha-obsd-tdep.c: Revert.
9097 * alpha-nbsd-tdep.c: Revert.
9098 * alpha-mdebug-tdep.c: Revert.
9099 * alpha-linux-tdep.c: Revert.
9100 * alpha-linux-nat.c: Revert.
9101 * alpha-bsd-tdep.c: Revert.
9102 * alpha-bsd-nat.c: Revert.
9103 * aix-thread.c: Revert.
9104 * agent.c: Revert.
9105 * addrmap.c: Revert.
9106 * ada-varobj.c: Revert.
9107 * ada-valprint.c: Revert.
9108 * ada-typeprint.c: Revert.
9109 * ada-tasks.c: Revert.
9110 * ada-lang.c: Revert.
9111 * aarch64-tdep.c: Revert.
9112 * aarch64-ravenscar-thread.c: Revert.
9113 * aarch64-newlib-tdep.c: Revert.
9114 * aarch64-linux-tdep.c: Revert.
9115 * aarch64-linux-nat.c: Revert.
9116 * aarch64-fbsd-tdep.c: Revert.
9117 * aarch64-fbsd-nat.c: Revert.
9118 * aarch32-linux-nat.c: Revert.
9119
d55e5aa6
TT
91202019-04-05 Tom Tromey <tom@tromey.com>
9121
9122 * ft32-tdep.c: Sort headers.
9123 * frv-tdep.c: Sort headers.
9124 * frv-linux-tdep.c: Sort headers.
9125 * frame.c: Sort headers.
9126 * frame-unwind.c: Sort headers.
9127 * frame-base.c: Sort headers.
9128 * fork-child.c: Sort headers.
9129 * findvar.c: Sort headers.
9130 * findcmd.c: Sort headers.
9131 * filesystem.c: Sort headers.
9132 * filename-seen-cache.h: Sort headers.
9133 * filename-seen-cache.c: Sort headers.
9134 * fbsd-tdep.c: Sort headers.
9135 * fbsd-nat.h: Sort headers.
9136 * fbsd-nat.c: Sort headers.
9137 * f-valprint.c: Sort headers.
9138 * f-typeprint.c: Sort headers.
9139 * f-lang.c: Sort headers.
9140 * extension.h: Sort headers.
9141 * extension.c: Sort headers.
9142 * extension-priv.h: Sort headers.
9143 * expprint.c: Sort headers.
9144 * exec.h: Sort headers.
9145 * exec.c: Sort headers.
9146 * exceptions.c: Sort headers.
9147 * event-top.c: Sort headers.
9148 * event-loop.c: Sort headers.
9149 * eval.c: Sort headers.
9150 * elfread.c: Sort headers.
9151 * dwarf2read.h: Sort headers.
9152 * dwarf2read.c: Sort headers.
9153 * dwarf2loc.c: Sort headers.
9154 * dwarf2expr.h: Sort headers.
9155 * dwarf2expr.c: Sort headers.
9156 * dwarf2-frame.c: Sort headers.
9157 * dwarf2-frame-tailcall.c: Sort headers.
9158 * dwarf-index-write.h: Sort headers.
9159 * dwarf-index-write.c: Sort headers.
9160 * dwarf-index-common.c: Sort headers.
9161 * dwarf-index-cache.h: Sort headers.
9162 * dwarf-index-cache.c: Sort headers.
9163 * dummy-frame.c: Sort headers.
9164 * dtrace-probe.c: Sort headers.
9165 * disasm.h: Sort headers.
9166 * disasm.c: Sort headers.
9167 * disasm-selftests.c: Sort headers.
9168 * dictionary.c: Sort headers.
9169 * dicos-tdep.c: Sort headers.
9170 * demangle.c: Sort headers.
9171 * dcache.h: Sort headers.
9172 * dcache.c: Sort headers.
9173 * darwin-nat.h: Sort headers.
9174 * darwin-nat.c: Sort headers.
9175 * darwin-nat-info.c: Sort headers.
9176 * d-valprint.c: Sort headers.
9177 * d-namespace.c: Sort headers.
9178 * d-lang.c: Sort headers.
9179 * ctf.c: Sort headers.
9180 * csky-tdep.c: Sort headers.
9181 * csky-linux-tdep.c: Sort headers.
9182 * cris-tdep.c: Sort headers.
9183 * cris-linux-tdep.c: Sort headers.
9184 * cp-valprint.c: Sort headers.
9185 * cp-support.c: Sort headers.
9186 * cp-namespace.c: Sort headers.
9187 * cp-abi.c: Sort headers.
9188 * corelow.c: Sort headers.
9189 * corefile.c: Sort headers.
9190 * continuations.c: Sort headers.
9191 * completer.h: Sort headers.
9192 * completer.c: Sort headers.
9193 * complaints.c: Sort headers.
9194 * coffread.c: Sort headers.
9195 * coff-pe-read.c: Sort headers.
9196 * cli-out.h: Sort headers.
9197 * cli-out.c: Sort headers.
9198 * charset.c: Sort headers.
9199 * c-varobj.c: Sort headers.
9200 * c-valprint.c: Sort headers.
9201 * c-typeprint.c: Sort headers.
9202 * c-lang.c: Sort headers.
9203 * buildsym.c: Sort headers.
9204 * buildsym-legacy.c: Sort headers.
9205 * build-id.h: Sort headers.
9206 * build-id.c: Sort headers.
9207 * btrace.c: Sort headers.
9208 * bsd-uthread.c: Sort headers.
9209 * breakpoint.h: Sort headers.
9210 * breakpoint.c: Sort headers.
9211 * break-catch-throw.c: Sort headers.
9212 * break-catch-syscall.c: Sort headers.
9213 * break-catch-sig.c: Sort headers.
9214 * blockframe.c: Sort headers.
9215 * block.c: Sort headers.
9216 * bfin-tdep.c: Sort headers.
9217 * bfin-linux-tdep.c: Sort headers.
9218 * bfd-target.c: Sort headers.
9219 * bcache.c: Sort headers.
9220 * ax-general.c: Sort headers.
9221 * ax-gdb.h: Sort headers.
9222 * ax-gdb.c: Sort headers.
9223 * avr-tdep.c: Sort headers.
9224 * auxv.c: Sort headers.
9225 * auto-load.c: Sort headers.
9226 * arm-wince-tdep.c: Sort headers.
9227 * arm-tdep.c: Sort headers.
9228 * arm-symbian-tdep.c: Sort headers.
9229 * arm-pikeos-tdep.c: Sort headers.
9230 * arm-obsd-tdep.c: Sort headers.
9231 * arm-nbsd-tdep.c: Sort headers.
9232 * arm-nbsd-nat.c: Sort headers.
9233 * arm-linux-tdep.c: Sort headers.
9234 * arm-linux-nat.c: Sort headers.
9235 * arm-fbsd-tdep.c: Sort headers.
9236 * arm-fbsd-nat.c: Sort headers.
9237 * arm-bsd-tdep.c: Sort headers.
9238 * arch-utils.c: Sort headers.
9239 * arc-tdep.c: Sort headers.
9240 * arc-newlib-tdep.c: Sort headers.
9241 * annotate.h: Sort headers.
9242 * annotate.c: Sort headers.
9243 * amd64-windows-tdep.c: Sort headers.
9244 * amd64-windows-nat.c: Sort headers.
9245 * amd64-tdep.c: Sort headers.
9246 * amd64-sol2-tdep.c: Sort headers.
9247 * amd64-obsd-tdep.c: Sort headers.
9248 * amd64-obsd-nat.c: Sort headers.
9249 * amd64-nbsd-tdep.c: Sort headers.
9250 * amd64-nbsd-nat.c: Sort headers.
9251 * amd64-nat.c: Sort headers.
9252 * amd64-linux-tdep.c: Sort headers.
9253 * amd64-linux-nat.c: Sort headers.
9254 * amd64-fbsd-tdep.c: Sort headers.
9255 * amd64-fbsd-nat.c: Sort headers.
9256 * amd64-dicos-tdep.c: Sort headers.
9257 * amd64-darwin-tdep.c: Sort headers.
9258 * amd64-bsd-nat.c: Sort headers.
9259 * alpha-tdep.c: Sort headers.
9260 * alpha-obsd-tdep.c: Sort headers.
9261 * alpha-nbsd-tdep.c: Sort headers.
9262 * alpha-mdebug-tdep.c: Sort headers.
9263 * alpha-linux-tdep.c: Sort headers.
9264 * alpha-linux-nat.c: Sort headers.
9265 * alpha-bsd-tdep.c: Sort headers.
9266 * alpha-bsd-nat.c: Sort headers.
9267 * aix-thread.c: Sort headers.
9268 * agent.c: Sort headers.
9269 * addrmap.c: Sort headers.
9270 * ada-varobj.c: Sort headers.
9271 * ada-valprint.c: Sort headers.
9272 * ada-typeprint.c: Sort headers.
9273 * ada-tasks.c: Sort headers.
9274 * ada-lang.c: Sort headers.
9275 * aarch64-tdep.c: Sort headers.
9276 * aarch64-ravenscar-thread.c: Sort headers.
9277 * aarch64-newlib-tdep.c: Sort headers.
9278 * aarch64-linux-tdep.c: Sort headers.
9279 * aarch64-linux-nat.c: Sort headers.
9280 * aarch64-fbsd-tdep.c: Sort headers.
9281 * aarch64-fbsd-nat.c: Sort headers.
9282 * aarch32-linux-nat.c: Sort headers.
9283
699bd4cf
TT
92842019-04-04 Tom Tromey <tom@tromey.com>
9285
9286 * varobj.c (varobj_create): Update.
9287 * rust-exp.y (struct rust_parser) <update_innermost_block,
9288 lookup_symbol>: New methods.
9289 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
9290 Rename.
9291 (rust_parser::rust_lookup_type)
9292 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9293 * printcmd.c (display_command, do_one_display): Update.
9294 * parser-defs.h (struct parser_state) <parser_state>: Add
9295 "tracker" parameter.
9296 (block_tracker): New member.
9297 (class innermost_block_tracker) <innermost_block_tracker>: Add
9298 "types" parameter.
9299 <reset>: Remove method.
9300 (innermost_block): Don't declare.
9301 (null_post_parser): Update.
9302 * parse.c (innermost_block): Remove global.
9303 (write_dollar_variable): Update.
9304 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
9305 Remove "tracker_types" parameter.
9306 (parse_expression): Add "tracker" parameter.
9307 (parse_expression_for_completion): Update.
9308 (null_post_parser): Add "tracker" parameter.
9309 * p-exp.y: Update rules.
9310 * m2-exp.y: Update rules.
9311 * language.h (struct language_defn) <la_post_parser>: Add
9312 "tracker" parameter.
9313 * go-exp.y: Update rules.
9314 * f-exp.y: Update rules.
9315 * expression.h (parse_expression, parse_exp_1): Add "tracker"
9316 parameter.
9317 * d-exp.y: Update rules.
9318 * c-exp.y: Update rules.
9319 * breakpoint.c (set_breakpoint_condition): Create an
9320 innermost_block_tracker.
9321 (watch_command_1): Likewise.
9322 * ada-lang.c (resolve): Add "tracker" parameter.
9323 (resolve_subexp): Likewise.
9324 * ada-exp.y (write_var_from_sym): Update.
9325
dac43e32
TT
93262019-04-04 Tom Tromey <tom@tromey.com>
9327
9328 * type-stack.h: New file.
9329 * type-stack.c: New file.
9330 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
9331 type-stack.h.
9332 (insert_into_type_stack, insert_type, push_type, push_type_int)
9333 (insert_type_address_space, pop_type, pop_type_int)
9334 (pop_typelist, pop_type_stack, append_type_stack)
9335 (push_type_stack, get_type_stack, push_typelist)
9336 (follow_type_instance_flags, follow_types): Don't declare.
9337 * parse.c (type_stack): Remove global.
9338 (parse_exp_in_context): Update.
9339 (insert_into_type_stack, insert_type, push_type, push_type_int)
9340 (insert_type_address_space, pop_type, pop_type_int)
9341 (pop_typelist, pop_type_stack, append_type_stack)
9342 (push_type_stack, get_type_stack, push_typelist)
9343 (follow_type_instance_flags, follow_types): Remove (moved to
9344 type-stack.c).
9345 * f-exp.y (type_stack): New global.
9346 Update rules.
9347 (push_kind_type, f_parse): Update.
9348 * d-exp.y (type_stack): New global.
9349 Update rules.
9350 (d_parse): Update.
9351 * c-exp.y (struct c_parse_state) <type_stack>: New member.
9352 Update rules.
9353 * Makefile.in (COMMON_SFILES): Add type-stack.c.
9354 (HFILES_NO_SRCDIR): Add type-stack.h.
9355
2a612529
TT
93562019-04-04 Tom Tromey <tom@tromey.com>
9357
9358 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
9359 (rust_parser::convert_ast_to_expression, rust_parse)
9360 (rust_lex_test_completion, rust_lex_tests): Update.
9361 * parser-defs.h (struct expr_completion_state): New.
9362 (struct parser_state) <parser_state>: Add completion parameter.
9363 <mark_struct_expression, mark_completion_tag>: New methods.
9364 <parse_completion, m_completion_state>: New members.
9365 (prefixify_expression, null_post_parser): Update.
9366 (mark_struct_expression, mark_completion_tag): Don't declare.
9367 * parse.c (parse_completion, expout_last_struct)
9368 (expout_tag_completion_type, expout_completion_name): Remove
9369 globals.
9370 (parser_state::mark_struct_expression)
9371 (parser_state::mark_completion_tag): Now methods.
9372 (prefixify_expression): Add last_struct parameter.
9373 (prefixify_subexp): Likewise.
9374 (parse_exp_1): Update.
9375 (parse_exp_in_context): Add cstate parameter. Update.
9376 (parse_expression_for_completion): Create an
9377 expr_completion_state.
9378 (null_post_parser): Add "completion" parameter.
9379 * p-exp.y: Update rules.
9380 (yylex): Update.
9381 * language.h (struct language_defn) <la_post_parser>: Add
9382 "completing" parameter.
9383 * go-exp.y: Update rules.
9384 (lex_one_token): Update.
9385 * expression.h (parse_completion): Don't declare.
9386 * d-exp.y: Update rules.
9387 (lex_one_token): Update rules.
9388 * c-exp.y: Update rules.
9389 (lex_one_token): Update.
9390 * ada-lang.c (resolve): Add "parse_completion" parameter.
9391 (resolve_subexp): Likewise.
9392 (ada_resolve_function): Likewise.
9393
43476f0b
TT
93942019-04-04 Tom Tromey <tom@tromey.com>
9395
9396 * parser-defs.h (struct parser_state) <start_arglist,
9397 end_arglist>: New methods.
9398 <arglist_len, m_funcall_chain>: New members.
9399 (arglist_len, start_arglist, end_arglist): Don't declare.
9400 * parse.c (arglist_len, funcall_chain): Remove global.
9401 (start_arglist, end_arglist): Remove functions.
9402 (parse_exp_in_context): Update.
9403 * p-exp.y: Update rules.
9404 * m2-exp.y: Update rules.
9405 * go-exp.y: Update rules.
9406 * f-exp.y: Update rules.
9407 * d-exp.y: Update rules.
9408 * c-exp.y: Update rules.
9409
5776fca3
TT
94102019-04-04 Tom Tromey <tom@tromey.com>
9411
9412 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
9413 lex_operator, push_back>: New methods.
9414 Update all rules.
9415 (rust_parser::lex_hex, lex_escape): Rename and update.
9416 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
9417 (rust_parser::lex_operator): Rename and update.
9418 (rust_parser::lex_number, rustyylex, rustyyerror)
9419 (rust_lex_test_init, rust_lex_test_sequence)
9420 (rust_lex_test_push_back, rust_lex_tests): Update.
9421 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
9422 parameter.
9423 <lexptr, prev_lexptr>: New members.
9424 (lexptr, prev_lexptr): Don't declare.
9425 * parse.c (lexptr, prev_lexptr): Remove globals.
9426 (parse_exp_in_context): Update.
9427 * p-exp.y (yylex, yyerror): Update.
9428 * m2-exp.y (parse_number, yylex, yyerror): Update.
9429 * go-exp.y (lex_one_token, yyerror): Update.
9430 * f-exp.y (match_string_literal, yylex, yyerror): Update.
9431 * d-exp.y (lex_one_token, yyerror): Update.
9432 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
9433 (lex_one_token, yyerror): Update.
9434 * ada-lex.l (YY_INPUT): Update.
9435 (rewind_to_char): Update.
9436 * ada-exp.y (yyerror): Update.
9437
8621b685
TT
94382019-04-04 Tom Tromey <tom@tromey.com>
9439
9440 * rust-exp.y (rustyylex, rust_lex_tests): Update.
9441 * parser-defs.h (struct parser_state) <parser_state>: Add new
9442 parameter.
9443 <comma_terminates>: New member.
9444 (comma_terminates): Don't declare global.
9445 * parse.c (comma_terminates): Remove global.
9446 (parse_exp_in_context): Update.
9447 * p-exp.y (yylex): Update.
9448 * m2-exp.y (yylex): Update.
9449 * go-exp.y (lex_one_token): Update.
9450 * f-exp.y (yylex): Update.
9451 * d-exp.y (lex_one_token): Update.
9452 * c-exp.y (lex_one_token): Update.
9453 * ada-lex.l: Update.
9454
28aaf3fd
TT
94552019-04-04 Tom Tromey <tom@tromey.com>
9456
9457 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
9458 (rustyylex, rust_lex_test_init, rust_lex_test_one)
9459 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
9460 * parser-defs.h (paren_depth): Don't declare.
9461 * parse.c (paren_depth): Remove global.
9462 (parse_exp_in_context): Update.
9463 * p-exp.y (paren_depth): New global.
9464 (pascal_parse): Initialize it.
9465 * m2-exp.y (paren_depth): New global.
9466 (m2_parse): Initialize it.
9467 * go-exp.y (paren_depth): New global.
9468 (go_parse): Initialize it.
9469 * f-exp.y (paren_depth): New global.
9470 (f_parse): Initialize it.
9471 * d-exp.y (paren_depth): New global.
9472 (d_parse): Initialize it.
9473 * c-exp.y (paren_depth): New global.
9474 (c_parse): Initialize it.
9475 * ada-lex.l (paren_depth): New global.
9476 (lexer_init): Initialize it.
9477
1e58a4a4
TT
94782019-04-04 Tom Tromey <tom@tromey.com>
9479
9480 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
9481 (rust_parser::convert_ast_to_type)
9482 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9483 * parser-defs.h (struct parser_state) <parser_state>: Add
9484 parameters. Initialize new members.
9485 <expression_context_block, expression_context_pc>: New members.
9486 * parse.c (expression_context_block, expression_context_pc):
9487 Remove globals.
9488 (parse_exp_in_context): Update.
9489 * p-exp.y: Update all rules.
9490 (yylex): Update.
9491 * m2-exp.y: Update all rules.
9492 (yylex): Update.
9493 * go-exp.y (yylex): Update.
9494 * f-exp.y (yylex): Update.
9495 * d-exp.y: Update all rules.
9496 (yylex): Update.
9497 * c-exp.y: Update all rules.
9498 (lex_one_token, classify_name, yylex, c_parse): Update.
9499 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
9500
37eedb39
TT
95012019-04-04 Tom Tromey <tom@tromey.com>
9502
9503 * gdbarch.h, gdbarch.c: Rebuild.
9504 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
9505 * stap-probe.h:
9506 (struct stap_parse_info): Replace "parser_state" with
9507 "expr_builder".
9508 * parser-defs.h (struct expr_builder): Rename from "parser_state".
9509 (parser_state): New class.
9510 * parse.c (expr_builder): Rename.
9511 (expr_builder::release): Rename.
9512 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
9513 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
9514 (write_exp_elt_longcst, write_exp_elt_floatcst)
9515 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
9516 (write_exp_string_vector, write_exp_bitstring)
9517 (write_exp_msymbol, mark_struct_expression)
9518 (write_dollar_variable)
9519 (insert_type_address_space, increase_expout_size): Replace
9520 "parser_state" with "expr_builder".
9521 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
9522 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
9523 "parser_state" with "expr_builder".
9524
73923d7e
TT
95252019-04-04 Tom Tromey <tom@tromey.com>
9526
9527 * rust-exp.y: Replace "parse_language" with method call.
9528 * p-exp.y:
9529 (yylex): Replace "parse_language" with method call.
9530 * m2-exp.y:
9531 (yylex): Replace "parse_language" with method call.
9532 * go-exp.y (classify_name): Replace "parse_language" with method
9533 call.
9534 * f-exp.y (yylex): Replace "parse_language" with method call.
9535 * d-exp.y (lex_one_token): Replace "parse_language" with method
9536 call.
9537 * c-exp.y:
9538 (lex_one_token, classify_name, yylex): Replace "parse_language"
9539 with method call.
9540 * ada-exp.y (find_primitive_type, type_char)
9541 (type_system_address): Replace "parse_language" with method call.
9542
fa9f5be6
TT
95432019-04-04 Tom Tromey <tom@tromey.com>
9544
9545 * rust-exp.y: Replace "parse_gdbarch" with method call.
9546 * parse.c (write_dollar_variable, insert_type_address_space):
9547 Replace "parse_gdbarch" with method call.
9548 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
9549 call.
9550 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
9551 call.
9552 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
9553 "parse_gdbarch" with method call.
9554 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
9555 with method call.
9556 * f-exp.y (parse_type, parse_f_type, yylex): Replace
9557 "parse_gdbarch" with method call.
9558 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
9559 "parse_gdbarch" with method call.
9560 * c-exp.y (parse_type, parse_number, classify_name): Replace
9561 "parse_gdbarch" with method call.
9562 * ada-lex.l: Replace "parse_gdbarch" with method call.
9563 * ada-exp.y (parse_type, find_primitive_type, type_char)
9564 (type_system_address): Replace "parse_gdbarch" with method call.
9565
1201a264
TT
95662019-04-04 Tom Tromey <tom@tromey.com>
9567
9568 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
9569 * stap-probe.c (stap_parse_argument): Update.
9570 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
9571 initial_size parameter.
9572 * rust-exp.y (rust_lex_tests): Update.
9573 * parse.c (parser_state): Update.
9574 (parse_exp_in_context): Update.
9575 * parser-defs.h (struct parser_state) <parser_state>: Remove
9576 "initial_size" parameter.
9577
e3980ce2
TT
95782019-04-04 Tom Tromey <tom@tromey.com>
9579
9580 * parser-defs.h (increase_expout_size): Don't declare.
9581 * parse.c (increase_expout_size): Now static.
9582
e9f8e3f1
TS
95832019-04-04 Thomas Schwinge <thomas@codesourcery.com>
9584
9585 * gnu-nat.c (gnu_nat_target::wait): Fix
9586 target_waitstatus_to_string call.
9587
d7df6549
AB
95882019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9589
9590 * eval.c (evaluate_subexp_standard): Handle internal functions
9591 during Fortran function call handling.
9592
8bdc1658
AB
95932019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9594
9595 * NEWS: Mention new internal functions.
9596 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
9597 (read_base_type): Use dwarf2_init_complex_target_type.
9598 * value.c (creal_internal_fn): New function.
9599 (cimag_internal_fn): New function.
9600 (_initialize_values): Register new internal functions.
9601
c29705b7
PW
96022019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9603
9604 * infrun.c (stop_all_threads): If debug_infrun, always
9605 trace the wait status after wait_one, using
9606 target_waitstatus_to_string and target_pid_to_str.
9607 (handle_inferior_event): Replace various trace of
9608 wait status kind by a single trace.
9609 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
9610 wait status kind image by target_waitstatus_to_string.
9611 * target/waitstatus.c (target_waitstatus_to_string): Fix
9612 obsolete comment.
9613
05caa1d2
TT
96142019-04-01 Tom Tromey <tromey@adacore.com>
9615
9616 PR symtab/23331:
9617 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
9618
9d1447e0
SDJ
96192019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
9620 Pedro Alves <palves@redhat.com>
9621
9622 * top.c (quit_force): Call 'finalize_values'.
9623 * value.c (finalize_values): New function.
9624 * value.h (finalize_values): Declare.
9625
7734102d
EZ
96262019-03-30 Eli Zaretskii <eliz@gnu.org>
9627
9628 * NEWS: Announce $_gdb_major and $_gdb_minor.
9629
9630 * top.c (init_gdb_version_vars): New function.
9631 (gdb_init): Call init_gdb_version_vars.
9632
188e1fa9
TT
96332019-03-29 Tom Tromey <tromey@adacore.com>
9634
9635 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
9636 help text. Remove dead code.
9637
2880242d
KS
96382019-03-29 Keith Seitz <keiths@redhat.com>
9639
9640 From Siddhesh Poyarekar:
9641 * f-lang.h (f77_get_upperbound): Return LONGEST.
9642 (f77_get_lowerbound): Likewise.
9643 * f-typeprint.c (f_type_print_varspec_suffix): Expand
9644 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
9645 print them.
9646 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
9647 plongest to format print it.
9648 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
9649 (f77_get_upperbound): Likewise.
9650 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
9651 LOWER_BOUND to LONGEST.
9652 (f77_create_arrayprint_offset_tbl): Likewise.
9653
cc1defb1
KS
96542019-03-29 Keith Seitz <keiths@redhat.com>
9655
9656 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
9657 %s/pulongest for TYPE_LENGTH instead of %d in format
9658 strings.
9659 * ada-typerint.c (ada_print_type): Likewise.
9660 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
9661 * compile/compile-c-support.c (generate_register_struct): Likewise.
9662 * gdbtypes.c (recursive_dump_type): Likewise.
9663 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
9664 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
9665 instead of %d in format strings.
9666 * riscv-tdep.c (riscv_type_alignment): Cast second argument
9667 to std::min to ULONGEST.
9668 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
9669 instead of %d in format strings.
9670 * tracepoint.c (info_scope_command): Likewise.
9671 * typeprint.c (print_offset_data::update)
9672 (print_offset_data::finish): Likewise.
9673 * xtensa-tdep.c (xtensa_store_return_value)
9674 (xtensa_push_dummy_call): Likewise.
9675
e432ccf1
JT
96762019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
9677
9678 * windows-nat.c (display_selector): Fixed format specifications
9679 for 64-bit Cygwin.
9680
65d2b333
PW
96812019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9682
9683 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
9684
f489207e
SL
96852019-03-28 Sandra Loosemore <sandra@codesourcery.com>
9686
9687 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
9688 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
9689 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
9690 (nios2_linux_init_abi): Install it.
9691
bffa1015
AH
96922019-03-28 Alan Hayward <alan.hayward@arm.com>
9693
9694 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
9695
fc96163a
AH
96962019-03-28 Alan Hayward <alan.hayward@arm.com>
9697
9698 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
9699
20dc7e9b
PW
97002019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9701 Tom Tromey <tromey@adacore.com>
9702
9703 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
9704
7f5331a8
JB
97052019-03-26 Joel Brobecker <brobecker@adacore.com>
9706
9707 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
9708 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
9709 method to compute the bounds of range types. Also print "[evaluated]"
9710 if the bounds' values come from a dynamic evaluation.
9711
18c77628
AB
97122019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
9713
9714 * cp-valprint.c (cp_print_value_fields): Don't print trailing
9715 whitespace when pretty printing is on.
9716
53c973f2
AH
97172019-03-26 Alan Hayward <alan.hayward@arm.com>
9718
e79be6e5 9719 * ppc-linux-nat.c: Add include.
53c973f2 9720
d851aa71
AH
97212019-03-26 Alan Hayward <alan.hayward@arm.com>
9722
e79be6e5 9723 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 9724
2fe7bab7
AH
97252019-03-26 Alan Hayward <alan.hayward@arm.com>
9726
e79be6e5 9727 * arm-linux-nat.c: Add include.
2fe7bab7 9728
068ef30e
SM
97292019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
9730
9731 * source-cache.c (source_cache::get_source_lines): Re-read
9732 fullname after calling open_source_file.
9733
81a24d04
JB
97342019-03-25 John Baldwin <jhb@FreeBSD.org>
9735
9736 * NEWS: Mention TLS support for FreeBSD.
9737
79e7ae11
TT
97382019-03-25 Tom Tromey <tromey@adacore.com>
9739
9740 * minsyms.c (BUNCH_SIZE): Update comment.
9741 (~minimal_symbol_reader): Remove old comment.
9742 (compact_minimal_symbols): Update comment.
9743 (minimal_symbol_reader::install): Remove old comment. Update
9744 other comments.
9745
d45963c2
AH
97462019-03-25 Alan Hayward <alan.hayward@arm.com>
9747
9748 * s390-linux-nat.c: Add include.
9749
0f83012e
AH
97502019-03-25 Alan Hayward <alan.hayward@arm.com>
9751
9752 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
9753 Call linux_get_hwcap.
9754 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
9755 Likewise.
9756 (aarch64_linux_get_hwcap): Remove function.
9757 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
9758 declaration.
9759 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
9760 linux_get_hwcap.
9761 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
9762 * linux-tdep.c (linux_get_hwcap): Add function.
9763 (linux_get_hwcap2): Likewise.
9764 * linux-tdep.h (linux_get_hwcap): Add declaration.
9765 (linux_get_hwcap2): Likewise.
9766 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
9767 (ppc_linux_get_hwcap2): Likewise.
9768 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
9769 linux_get_hwcap.
9770 (ppc_linux_nat_target::insert_watchpoint): Likewise.
9771 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
9772 (ppc_linux_nat_target::read_description): Likewise.
9773 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
9774 * s390-linux-nat.c: Likewise.
9775 * s390-linux-tdep.c (s390_core_read_description): Likewise.
9776
6640a367
TT
97772019-03-24 Tom Tromey <tom@tromey.com>
9778
9779 * ada-lang.c (standard_lookup): Simplify initialization.
9780 (ada_lookup_symbol_nonlocal): Simplify return.
9781 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
9782 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
9783 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
9784 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
9785 initialization.
9786 * solib.c (solib_global_lookup): Simplify.
9787 * symtab.c (null_block_symbol): Remove.
9788 (symbol_cache_lookup): Simplify returns.
9789 (lookup_language_this): Simplify returns.
9790 (lookup_symbol_aux): Simplify return.
9791 (lookup_local_symbol): Simplify returns.
9792 (lookup_global_symbol_from_objfile): Simplify return.
9793 (lookup_symbol_in_objfile_symtabs)
9794 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
9795 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
9796 (lookup_static_symbol, lookup_global_symbol): Simplify return.
9797 * cp-namespace.c (cp_lookup_bare_symbol)
9798 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
9799 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
9800 (cp_lookup_nested_symbol): Don't use null_block_symbol.
9801 (cp_lookup_symbol_via_imports): Simplify initialization.
9802 (find_symbol_in_baseclass): Likewise.
9803 * symtab.h (null_block_symbol): Remove.
9804 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
9805 (d_lookup_nested_symbol, d_lookup_symbol_imports)
9806 (d_lookup_symbol_module): Likewise.
9807 (find_symbol_in_baseclass): Simplify initialization.
9808
a930ebcd
TT
98092019-03-24 Tom Tromey <tom@tromey.com>
9810
9811 * expression.h: Don't include symtab.h.
9812 (struct block): Forward declare.
9813
582942f4
TT
98142019-03-24 Tom Tromey <tom@tromey.com>
9815
9816 * c-exp.y (typebase): Remove casts.
9817 * gdbtypes.c (lookup_unsigned_typename, )
9818 (lookup_signed_typename): Remove cast.
9819 * eval.c (parse_to_comma_and_eval): Remove cast.
9820 * parse.c (write_dollar_variable): Remove cast.
9821 * block.h (struct block) <superblock>: Now const.
9822 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
9823 * psymtab.c (psym_map_matching_symbols): Make "block" const.
9824 (map_block): Make "block" const.
9825 * symfile.h (struct quick_symbol_functions)
9826 <map_matching_symbols>: Constify block argument to "callback".
9827 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
9828 const.
9829 (find_pc_sect_compunit_symtab): Make "b" const.
9830 (find_symbol_at_address): Likewise.
9831 (search_symbols): Likewise.
9832 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
9833 (dw2_debug_names_lookup_symbol): Likewise.
9834 (dw2_map_matching_symbols): Update.
9835 * p-valprint.c (pascal_val_print): Remove "block".
9836 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
9837 (aux_add_nonlocal_symbols): Make "block" const.
9838 (resolve_subexp): Remove cast.
9839 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
9840 const.
9841 (iterate_over_file_blocks): Likewise.
9842 * f-exp.y (%union) <bval>: Remove.
9843 * coffread.c (patch_opaque_types): Make "b" const.
9844 * spu-tdep.c (spu_catch_start): Make "block" const.
9845 * c-valprint.c (print_unpacked_pointer): Remove "block".
9846 * symmisc.c (dump_symtab_1): Make "b" const.
9847 (block_depth): Make "block" const.
9848 * d-exp.y (%union) <bval>: Remove.
9849 * cp-support.h (cp_lookup_rtti_type): Update.
9850 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
9851 * psymtab.c (psym_lookup_symbol): Make "block" const.
9852 (maintenance_check_psymtabs): Make "b" const.
9853 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
9854 (enumerate_locals, enumerate_args): Update.
9855 * python/py-symtab.c (stpy_global_block): Make "block" const.
9856 (stpy_static_block): Likewise.
9857 * inline-frame.c (block_starting_point_at): Make "new_block"
9858 const.
9859 * block.c (find_block_in_blockvector): Make return type const.
9860 (blockvector_for_pc_sect): Make "b" const.
9861 (find_block_in_blockvector): Make "b" const.
9862
7ad417dd
TT
98632019-03-23 Tom Tromey <tom@tromey.com>
9864
9865 * varobj.c (varobj_create): Update.
9866 * symfile.c (clear_symtab_users): Don't reset innermost_block.
9867 * printcmd.c (display_command, do_one_display): Don't reset
9868 innermost_block.
9869 * parser-defs.h (enum innermost_block_tracker_type): Move to
9870 expression.h.
9871 (innermost_block): Update comment.
9872 * parse.c (parse_exp_1): Add tracker_types parameter.
9873 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
9874 tracker_types parameter. Reset innermost_block.
9875 (parse_exp_in_context): Remove.
9876 (parse_expression_for_completion): Update.
9877 * objfiles.c (~objfile): Don't reset expression_context_block or
9878 innermost_block.
9879 * expression.h (enum innermost_block_tracker_type): Move from
9880 parser-defs.h.
9881 (parse_exp_1): Add tracker_types parameter.
9882 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
9883 reset innermost_block.
9884
b366c208
TT
98852019-03-23 Tom Tromey <tom@tromey.com>
9886
9887 * objfiles.h: Include bcache.h.
9888
9bb9b2f9
TT
98892019-03-23 Tom Tromey <tom@tromey.com>
9890
9891 * linespec.c (get_current_search_block): Use
9892 scoped_restore_current_language.
9893 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
9894
59c28372
AH
98952019-03-22 Alan Hayward <alan.hayward@arm.com>
9896 Jiong Wang <jiong.wang@arm.com>
9897
9898 * aarch64-linux-tdep.c
9899 (aarch64_linux_iterate_over_regset_sections): Check for pauth
9900 section.
9901 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
9902
17e116a7
AH
99032019-03-22 Alan Hayward <alan.hayward@arm.com>
9904 Jiong Wang <jiong.wang@arm.com>
9905
9906 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
9907 instructions.
9908 (aarch64_analyze_prologue_test): Add PACIASP test.
9909 (aarch64_prologue_prev_register): Unmask PC value.
9910
11e1b75f
AH
99112019-03-22 Alan Hayward <alan.hayward@arm.com>
9912 Jiong Wang <jiong.wang@arm.com>
9913
9914 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
9915 (aarch64_dwarf2_prev_register): Unmask PC value.
9916 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
9917 (aarch64_execute_dwarf_cfa_vendor_op): Check for
9918 DW_CFA_AARCH64_negate_ra_state.
9919 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
9920
34dcc7cf
AH
99212019-03-22 Alan Hayward <alan.hayward@arm.com>
9922 Jiong Wang <jiong.wang@arm.com>
9923
9924 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
9925 registers.
9926 (aarch64_pseudo_register_name): Likewise.
9927 (aarch64_pseudo_register_type): Likewise.
9928 (aarch64_pseudo_register_reggroup_p): Likewise.
9929 (aarch64_gdbarch_init): Add pauth registers.
9930 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
9931 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
9932 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
9933 (struct gdbarch_tdep): Add regnum for ra_state.
9934
1ef53e6b
AH
99352019-03-22 Alan Hayward <alan.hayward@arm.com>
9936 Jiong Wang <jiong.wang@arm.com>
9937
9938 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
9939
76bed0fd
AH
99402019-03-22 Alan Hayward <alan.hayward@arm.com>
9941 Jiong Wang <jiong.wang@arm.com>
9942
9943 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
9944 function.
9945 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
9946 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
9947 (aarch64_gdbarch_init): Add puth registers.
9948 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
9949 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
9950 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
9951
ee4fbcfa
AH
99522019-03-22 Alan Hayward <alan.hayward@arm.com>
9953 Jiong Wang <jiong.wang@arm.com>
9954
9955 * aarch64-linux-nat.c
9956 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
9957 * aarch64-linux-tdep.c
9958 (aarch64_linux_core_read_description): Likewise.
9959 (aarch64_linux_get_hwcap): New function.
9960 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
9961 (aarch64_linux_get_hwcap): New declaration.
9962
6dc0ebde
AH
99632019-03-22 Alan Hayward <alan.hayward@arm.com>
9964 Jiong Wang <jiong.wang@arm.com>
9965
9966 * aarch64-linux-nat.c
9967 (aarch64_linux_nat_target::read_description): Add pauth param.
9968 * aarch64-linux-tdep.c
9969 (aarch64_linux_core_read_description): Likewise.
9970 * aarch64-tdep.c (struct target_desc): Add in pauth.
9971 (aarch64_read_description): Add pauth param.
9972 (aarch64_gdbarch_init): Likewise.
9973 * aarch64-tdep.h (aarch64_read_description): Likewise.
9974 * arch/aarch64.c (aarch64_create_target_description): Likewise.
9975 * arch/aarch64.h (aarch64_create_target_description): Likewise.
9976 * features/Makefile: Add new files.
9977 * features/aarch64-pauth.c: New file.
9978 * features/aarch64-pauth.xml: New file.
9979
595915c1
TT
99802019-03-20 Tom Tromey <tromey@adacore.com>
9981
9982 * infrun.c (handle_inferior_event): Rename from
9983 handle_inferior_event_1. Create a scoped_value_mark.
9984 (handle_inferior_event): Remove.
9985
4c7d57e7
TT
99862019-03-19 Tom Tromey <tromey@adacore.com>
9987
9988 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
9989 * infrun.h (print_stop_event): Add "displays" parameter.
9990 * infrun.c (print_stop_event): Add "displays" parameter.
9991
cb246234
PA
99922019-03-19 Pedro Alves <palves@redhat.com>
9993
9994 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
9995 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
9996 to -1. Fix TABs vs spaces.
9997 (tui_ui_out::tui_ui_out): Don't initialize fields here.
9998 * tui/tui-out.h (tui_ui_out) Add intro comments.
9999 <m_line, m_start_of_line>: In-class initialize, and add describing
10000 comment.
10001
3a0e45b2
AH
100022019-03-18 Alan Hayward <alan.hayward@arm.com>
10003
10004 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
10005 variable names.
10006 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
10007
5371b850
PA
100082019-03-18 Pedro Alves <palves@redhat.com>
10009 Eli Zaretskii <eliz@gnu.org>
10010
10011 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
10012 m_line and m_start_of_line.
10013
b17c4cd0
EZ
100142019-03-18 Eli Zaretskii <eliz@gnu.org>
10015
10016 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
10017 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
10018 it returns a newline. This fixes a regression in TU mode, whereby
10019 the next line is output on the same screen line as the user input.
10020
4bd56d18
TT
100212019-03-18 Tom Tromey <tromey@adacore.com>
10022
10023 * minsyms.c (minimal_symbol_reader::install): Remove call to
10024 obstack_blank.
10025
55c10aca
PA
100262019-03-18 Pedro Alves <palves@redhat.com>
10027
10028 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
10029 New globals.
10030 (apply_style): New, factored out from ...
10031 (apply_ansi_escape): ... this. Handle reverse video mode.
10032 (tui_set_reverse_mode): New function.
10033 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
10034 * tui/tui-winsource.c (tui_show_source_line): Use
10035 tui_set_reverse_mode instead of setting A_STANDOUT.
10036 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
10037 New setter methods.
10038
647bb750
HD
100392019-03-18 Hannes Domani <ssbssa@yahoo.de>
10040
10041 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
10042 Handle tabs.
10043
bff8c71f
TT
100442019-03-18 Tom Tromey <tromey@adacore.com>
10045
10046 * ada-lang.c (empty_array): Add "high" parameter.
10047 (ada_evaluate_subexp): Update.
10048
58785d98
ST
100492019-03-17 Sergei Trofimovich <siarheit@google.com>
10050
10051 * unittests/string_view-selftests.c: Define
10052 _initialize_string_view_selftests unconditionally.
10053
d4cbef22
ВМ
100542019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10055
10056 PR gdb/24350
10057 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
10058
fce4c071
ВМ
100592019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10060
10061 PR gdb/24351
10062 * windows-nat.c (display_selector): Fix format specifiers.
10063
f7f0a123
EZ
100642019-03-17 Eli Zaretskii <eliz@gnu.org>
10065
10066 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
10067 tui_refill_source_window instead of tui_refresh_win, to update the
10068 current execution line. This fixes redisplay of the current line
10069 when stepping through the code with "next" or "step".
10070
ab42892f
EZ
100712019-03-16 Eli Zaretskii <eliz@gnu.org>
10072
10073 * source-cache.c (source_cache::get_source_lines): Call
10074 find_source_lines to initialize s->nlines. This fixes vertical
10075 scrolling of TUI source window when the DOWN arrow is pressed.
10076
8d8c087f
PW
100772019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10078
10079 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
10080 linux-thread-db.c (_initialize_thread_db): Likewise.
10081
798e1c30
EZ
100822019-03-16 Eli Zaretskii <eliz@gnu.org>
10083
10084 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
10085 wclrtoeol in tui_show_source_line". This reverts changes made in
10086 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
10087
eefba3da
TT
100882019-03-15 Tom Tromey <tom@tromey.com>
10089
10090 * symtab.h (struct minimal_symbol): Derive from
10091 general_symbol_info.
10092 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
10093 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10094 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10095 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10096 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
10097 (MSYMBOL_SEARCH_NAME): Update.
10098 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
10099 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
10100 * minsyms.c (minimal_symbol_reader::record_full): Update.
10101
0de2420c
TT
101022019-03-15 Tom Tromey <tom@tromey.com>
10103
10104 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
10105
042d75e4
TT
101062019-03-15 Tom Tromey <tom@tromey.com>
10107
10108 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
10109 unique_xmalloc_ptr.
10110 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
10111 Update.
10112 * minsyms.c (lookup_minimal_symbol_by_pc_section)
10113 (build_minimal_symbol_hash_tables)
10114 (minimal_symbol_reader::install): Update.
10115
db92718b
TT
101162019-03-15 Tom Tromey <tom@tromey.com>
10117
10118 * symtab.c (create_demangled_names_hash): Update.
10119 (symbol_set_names): Update.
10120 * objfiles.h (struct objfile_per_bfd_storage)
10121 <demangled_names_hash>: Now an htab_up.
10122 * objfiles.c (objfile_per_bfd_storage): Simplify.
10123
d6797f46
TT
101242019-03-15 Tom Tromey <tom@tromey.com>
10125
10126 * objfiles.h (struct objfile_per_bfd_storage): Declare
10127 destructor.
10128 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
10129 New.
10130 (get_objfile_bfd_data): Use new. Don't initialize
10131 language_of_main.
10132 (free_objfile_per_bfd_storage): Remove.
10133 (objfile_bfd_data_free, objfile::~objfile): Use delete.
10134
741d7538
TT
101352019-03-15 Tom Tromey <tom@tromey.com>
10136
10137 * symfile.c (reread_symbols): Update.
10138 * objfiles.c (objfile::objfile): Update.
10139 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
10140 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
10141 comment.
10142 (minimal_symbol_reader::install): Update.
10143 (terminate_minimal_symbol_table): Remove.
10144 * jit.c (jit_object_close_impl): Update.
10145
788c80d1
TT
101462019-03-15 Tom Tromey <tom@tromey.com>
10147
10148 * minsyms.c (minimal_symbol_reader::record_full): Remove some
10149 initializations.
10150
1b7a07cb
TT
101512019-03-15 Tom Tromey <tom@tromey.com>
10152
10153 * objfiles.h (struct objfile_per_bfd_storage)
10154 <demangled_hash_languages>: Now a bitset.
10155 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
10156 (lookup_minimal_symbol): Update.
10157
3db066bc
TT
101582019-03-15 Tom Tromey <tom@tromey.com>
10159
10160 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
10161 Don't return the symbol.
10162 * coffread.c (record_minimal_symbol): Use record_full.
10163
3fff2c37
EZ
101642019-03-14 Eli Zaretskii <eliz@gnu.org>
10165
10166 The MS-Windows port of ncurses fails to switch to a color pair if
10167 one or both of the colors are the implicit default colors. This
10168 change records the default colors when TUI is initialized, and
10169 then specifies them explicitly when a color pair uses the default
10170 colors. This allows color styling in TUI mode on MS-Windows.
10171
10172 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
10173 ncurses_norm_attr.
10174 (tui_initialize_io) [__MINGW32__]: Record the default terminal
10175 colors in ncurses_norm_attr.
10176 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
10177 "none", replace it with the default color recorded in
10178 ncurses_norm_attr.
10179
3b336828
TT
101802019-03-14 Tom Tromey <tromey@adacore.com>
10181
10182 * source-cache.h (class source_cache) <get_source_lines>: Return
10183 std::string.
10184 * source-cache.c (source_cache::extract_lines): Handle case where
10185 first_pos==npos. Return std::string.
10186 (source_cache::get_source_lines): Update.
10187
d085f989
TT
101882019-03-14 Tom Tromey <tromey@adacore.com>
10189
10190 * NEWS: Add item for "style sources" commands.
10191 * source-cache.c (source_cache::get_source_lines): Check
10192 source_styling.
10193 * cli/cli-style.c (source_styling): New global.
10194 (_initialize_cli_style): Add "style sources" commands.
10195 (show_style_sources): New function.
10196 * cli/cli-style.h (source_styling): Declare.
10197
6f11e682
TT
101982019-03-14 Pedro Alves <palves@redhat.com>
10199 Tom Tromey <tromey@adacore.com>
10200
10201 * tui/tui-winsource.h (tui_refill_source_window): Declare.
10202 * tui/tui-winsource.c (tui_refill_source_window): New function,
10203 from...
10204 (tui_horizontal_source_scroll): ... here. Move some logic.
10205 * cli/cli-style.c (set_style_enabled): Notify new observable.
10206 * tui/tui-hooks.c (tui_redisplay_source): New function.
10207 (tui_attach_detach_observers): Attach or detach
10208 tui_redisplay_source.
10209 * observable.h (source_styling_changed): New observable.
10210 * observable.c: Define source_styling_changed observable.
10211
a068643d
TT
102122019-03-13 Tom Tromey <tromey@adacore.com>
10213
10214 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
10215 (i386_gnu_nat_target::store_registers): Update.
10216 * target-debug.h (target_debug_print_std_string): New macro.
10217 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10218 * windows-tdep.c (display_one_tib): Update.
10219 * tui/tui-stack.c (tui_make_status_line): Update.
10220 * top.c (print_inferior_quit_action): Update.
10221 * thread.c (thr_try_catch_cmd): Update.
10222 (add_thread_with_info): Update.
10223 (thread_target_id_str): Update.
10224 (thr_try_catch_cmd): Update.
10225 (thread_command): Update.
10226 (thread_find_command): Update.
10227 * record-btrace.c (record_btrace_target::info_record)
10228 (record_btrace_resume_thread, record_btrace_target::resume)
10229 (record_btrace_cancel_resume, record_btrace_step_thread)
10230 (record_btrace_target::wait, record_btrace_target::wait)
10231 (record_btrace_target::wait, record_btrace_target::stop): Update.
10232 * progspace.c (print_program_space): Update.
10233 * process-stratum-target.c
10234 (process_stratum_target::thread_address_space): Update.
10235 * linux-fork.c (linux_fork_mourn_inferior)
10236 (detach_checkpoint_command, info_checkpoints_command)
10237 (linux_fork_context): Update.
10238 (linux_fork_detach): Update.
10239 (class scoped_switch_fork_info): Update.
10240 (delete_checkpoint_command): Update.
10241 * infrun.c (follow_fork_inferior): Update.
10242 (follow_fork_inferior): Update.
10243 (proceed_after_vfork_done): Update.
10244 (handle_vfork_child_exec_or_exit): Update.
10245 (follow_exec): Update.
10246 (displaced_step_prepare_throw): Update.
10247 (displaced_step_restore): Update.
10248 (start_step_over): Update.
10249 (resume_1): Update.
10250 (clear_proceed_status_thread): Update.
10251 (proceed): Update.
10252 (print_target_wait_results): Update.
10253 (do_target_wait): Update.
10254 (context_switch): Update.
10255 (stop_all_threads): Update.
10256 (restart_threads): Update.
10257 (finish_step_over): Update.
10258 (handle_signal_stop): Update.
10259 (switch_back_to_stepped_thread): Update.
10260 (keep_going_pass_signal): Update.
10261 (print_exited_reason): Update.
10262 (normal_stop): Update.
10263 * inferior.c (inferior_pid_to_str): Change return type.
10264 (print_selected_inferior): Update.
10265 (add_inferior): Update.
10266 (detach_inferior): Update.
10267 * dummy-frame.c (fprint_dummy_frames): Update.
10268 * dcache.c (dcache_info_1): Update.
10269 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
10270 (btrace_fetch, btrace_clear): Update.
10271 * linux-tdep.c (linux_core_pid_to_str): Change return type.
10272 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
10273 type.
10274 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
10275 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
10276 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
10277 * gdbarch.c, gdbarch.h: Rebuild.
10278 * gdbarch.sh (core_pid_to_str): Change return type.
10279 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
10280 return type.
10281 (windows_nat_target::pid_to_str): Change return type.
10282 (windows_delete_thread): Update.
10283 (windows_nat_target::attach): Update.
10284 (windows_nat_target::files_info): Update.
10285 * target-delegates.c: Rebuild.
10286 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
10287 return type.
10288 (sol_thread_target::pid_to_str): Change return type.
10289 * remote.c (class remote_target) <pid_to_str>: Change return
10290 type.
10291 (remote_target::pid_to_str): Change return type.
10292 (extended_remote_target::attach, remote_target::remote_stop_ns)
10293 (remote_target::remote_notif_remove_queued_reply)
10294 (remote_target::push_stop_reply, remote_target::disable_btrace):
10295 Update.
10296 (extended_remote_target::attach): Update.
10297 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
10298 type.
10299 (gdbsim_target::pid_to_str): Change return type.
10300 * ravenscar-thread.c (struct ravenscar_thread_target)
10301 <pid_to_str>: Change return type.
10302 (ravenscar_thread_target::pid_to_str): Change return type.
10303 * procfs.c (class procfs_target) <pid_to_str>: Change return
10304 type.
10305 (procfs_target::pid_to_str): Change return type.
10306 (procfs_target::attach): Update.
10307 (procfs_target::detach): Update.
10308 (procfs_target::fetch_registers): Update.
10309 (procfs_target::store_registers): Update.
10310 (procfs_target::wait): Update.
10311 (procfs_target::files_info): Update.
10312 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
10313 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
10314 return type.
10315 (nto_procfs_target::pid_to_str): Change return type.
10316 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
10317 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
10318 return type.
10319 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
10320 (exit_lwp): Update.
10321 (attach_proc_task_lwp_callback, get_detach_signal)
10322 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
10323 (linux_nat_target::resume, wait_lwp, stop_callback)
10324 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
10325 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
10326 (linux_nat_wait_1, resume_stopped_resumed_lwps)
10327 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
10328 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
10329 type.
10330 (inf_ptrace_target::attach): Update.
10331 (inf_ptrace_target::files_info): Update.
10332 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
10333 type.
10334 (go32_nat_target::pid_to_str): Change return type.
10335 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
10336 (gnu_nat_target::wait): Update.
10337 (gnu_nat_target::wait): Update.
10338 (gnu_nat_target::resume): Update.
10339 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
10340 (fbsd_nat_target::wait): Update.
10341 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
10342 type.
10343 (darwin_nat_target::attach): Update.
10344 * corelow.c (class core_target) <pid_to_str>: Change return type.
10345 (core_target::pid_to_str): Change return type.
10346 * target.c (normal_pid_to_str): Change return type.
10347 (default_pid_to_str): Likewise.
10348 (target_pid_to_str): Change return type.
10349 (target_translate_tls_address): Update.
10350 (target_announce_detach): Update.
10351 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
10352 return type.
10353 (bsd_uthread_target::pid_to_str): Change return type.
10354 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
10355 type.
10356 (bsd_kvm_target::pid_to_str): Change return type.
10357 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
10358 return type.
10359 (aix_thread_target::pid_to_str): Change return type.
10360 * target.h (struct target_ops) <pid_to_str>: Change return type.
10361 (target_pid_to_str, normal_pid_to_str): Likewise.
10362 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
10363 type.
10364 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
10365 type.
10366 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
10367 return type.
10368 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
10369 type.
10370 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
10371 type.
10372 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
10373 return type.
10374
b4be1b06
SM
103752019-03-13 Simon Marchi <simon.marchi@ericsson.com>
10376
10377 * NEWS: Mention that the new default MI version is 3. Mention
10378 changes to the output of commands and events that deal with
10379 multi-location breakpoints.
10380 * breakpoint.c: Include "mi/mi-out.h".
10381 (print_one_breakpoint): Change output syntax if using MI version
10382 >= 3.
10383 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
10384 New.
10385 (mi_multi_location_breakpoint_output_fixed): New.
10386 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
10387 (mi_cmd_fix_multi_location_breakpoint_output): New.
10388 (mi_multi_location_breakpoint_output_fixed): New.
10389 * mi/mi-cmds.c (mi_cmds): Register command
10390 -fix-multi-location-breakpoint-output.
10391 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
10392 interpreter "mi".
10393
8e5e5494
SM
103942019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10395
10396 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
10397 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
10398 instantiate mi_ui_out based on interpreter name.
10399 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
10400 * mi/mi-main.c (mi_load_progress): Likewise.
10401
197df35e
JB
104022019-03-12 John Baldwin <jhb@FreeBSD.org>
10403
10404 * NEWS: Combine separate "New targets" sections for 8.3.
10405
8399425f
JB
104062019-03-12 John Baldwin <jhb@FreeBSD.org>
10407
10408 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
10409 (ppcfbsd_init_abi): Install gdbarch
10410 "fetch_tls_load_module_address" and "get_thread_local_address"
10411 methods.
10412
b0f87ed0
JB
104132019-03-12 John Baldwin <jhb@FreeBSD.org>
10414
10415 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
10416 (riscv_fbsd_init_abi): Install gdbarch
10417 "fetch_tls_load_module_address" and "get_thread_local_address"
10418 methods.
10419
ce25aa57
JB
104202019-03-12 John Baldwin <jhb@FreeBSD.org>
10421
10422 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
10423 (i386fbsd_init_abi): Install gdbarch
10424 "fetch_tls_load_module_address" and "get_thread_local_address"
10425 methods.
10426
f5424cfa
JB
104272019-03-12 John Baldwin <jhb@FreeBSD.org>
10428
10429 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
10430 (amd64fbsd_init_abi): Install gdbarch
10431 "fetch_tls_load_module_address" and "get_thread_local_address"
10432 methods.
10433
945f3901
JB
104342019-03-12 John Baldwin <jhb@FreeBSD.org>
10435
10436 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
10437 (struct fbsd_pspace_data): New type.
10438 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
10439 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
10440 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
10441 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
10442 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
10443
ef0bd204
JB
104442019-03-12 John Baldwin <jhb@FreeBSD.org>
10445
10446 * gdbtypes.c (lookup_struct_elt): New function.
10447 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
10448 * gdbtypes.h (struct struct_elt): New type.
10449 (lookup_struct_elt): New prototype.
10450
36c53a02
JB
104512019-03-12 John Baldwin <jhb@FreeBSD.org>
10452
10453 * gdbtypes.c (lookup_struct_elt_type): Update comment and
10454 remove disabled code block.
10455
6e056c81
JB
104562019-03-12 John Baldwin <jhb@FreeBSD.org>
10457
10458 * gdbarch.sh (get_thread_local_address): New method.
10459 * gdbarch.h, gdbarch.c: Regenerate.
10460 * target.c (target_translate_tls_address): Use
10461 gdbarch_get_thread_local_address if present instead of
10462 target::get_thread_local_address.
10463
cd250a18
JB
104642019-03-12 John Baldwin <jhb@FreeBSD.org>
10465
10466 * target.h (target::get_thread_local_address): Update comment.
10467
df22c1e5
JB
104682019-03-12 John Baldwin <jhb@FreeBSD.org>
10469
10470 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
10471 objfile->separate_debug_objfile_backlink if not NULL.
10472
dd6876c9
JB
104732019-03-12 John Baldwin <jhb@FreeBSD.org>
10474
10475 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10476 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
10477 (amd64bsd_store_inferior_registers): Likewise.
10478 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10479 Enable segment base registers.
10480 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
10481 PT_GETFSBASE and PT_GETGSBASE.
10482 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
10483 PT_SETGSBASE.
10484 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
10485 segment base registers.
10486 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10487
1163a4b7
JB
104882019-03-12 John Baldwin <jhb@FreeBSD.org>
10489
10490 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10491 Update calls to i386_target_description to add 'segments'
10492 parameter.
10493 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
10494 add segment base registers.
10495 * arch/i386.c (i386_create_target_description): Add 'segments'
10496 parameter to enable segment base registers.
10497 * arch/i386.h (i386_create_target_description): Likewise.
10498 * features/i386/32bit-segments.xml: New file.
10499 * features/i386/32bit-segments.c: Generate.
10500 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
10501 call to i386_target_description to add 'segments' parameter.
10502 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10503 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
10504 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
10505 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
10506 if feature is present.
10507 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
10508 Add 'segments' parameter to call to i386_target_description.
10509 (i386_target_description): Add 'segments' parameter to enable
10510 segment base registers.
10511 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
10512 to call to i386_target_description.
10513 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
10514 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
10515 Define I386_NUM_REGS.
10516 (i386_target_description): Add 'segments' parameter to enable
10517 segment base registers.
10518
3a350822
EZ
105192019-03-12 Eli Zaretskii <eliz@gnu.org>
10520
10521 PR/24325
10522 * source-cache.c: #undef open and close, to avoid unresolved
10523 externals during linking.
10524
ffdd69cf
TT
105252019-03-12 Tom Tromey <tromey@adacore.com>
10526
10527 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
10528 const. Add initializers.
10529 (_initialize_remote): Don't initialize ptid globals.
10530
ec148c57
PA
105312019-03-12 Pedro Alves <palves@redhat.com>
10532
10533 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
10534
32764270
PA
105352019-03-12 Pedro Alves <palves@redhat.com>
10536
10537 * cp-name-parser.y (main): Remove unused 'len' variable.
10538
17547186
TT
105392019-03-12 Tom Tromey <tromey@adacore.com>
10540
10541 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
10542 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
10543
d3a70e03
TT
105442019-03-12 Tom Tromey <tromey@adacore.com>
10545
10546 * linux-nat.c (iterate_over_lwps): Update.
10547 (stop_callback): Remove parameter.
10548 (stop_wait_callback, detach_callback, resume_set_callback)
10549 (select_singlestep_lwp_callback, set_ignore_sigint)
10550 (status_callback, resumed_callback, resume_clear_callback)
10551 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
10552 data parameter.
10553 (linux_nat_target::detach, linux_nat_target::resume)
10554 (linux_stop_and_wait_all_lwps, select_event_lwp)
10555 (linux_nat_filter_event, linux_nat_wait_1)
10556 (linux_nat_target::kill, linux_nat_target::stop)
10557 (linux_nat_target::stop): Update.
10558 (linux_nat_resume_callback): Change type.
10559 (resume_stopped_resumed_lwps, count_events_callback)
10560 (select_event_lwp_callback): Likewise.
10561 (linux_stop_lwp, linux_nat_stop_lwp): Update.
10562 * arm-linux-nat.c (struct update_registers_data): Remove.
10563 (update_registers_callback): Change type.
10564 (arm_linux_insert_hw_breakpoint1): Update.
10565 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
10566 parameter.
10567 (x86_linux_dr_set_addr): Update.
10568 (x86_linux_dr_set_control): Update.
10569 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
10570 (iterate_over_lwps): Use gdb::function_view.
10571 * nat/aarch64-linux-hw-point.c (struct
10572 aarch64_dr_update_callback_param): Remove.
10573 (debug_reg_change_callback): Change type.
10574 (aarch64_notify_debug_reg_change): Update.
10575 * s390-linux-nat.c (s390_refresh_per_info): Update.
10576
82cb27ff
TT
105772019-03-11 Tom Tromey <tromey@adacore.com>
10578
10579 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
10580 redundant assignment to "this_cu".
10581
568c0683
SM
105822019-03-08 Simon Marchi <simon.marchi@efficios.com>
10583
10584 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
10585
f09ce22d
SM
105862019-03-08 Simon Marchi <simon.marchi@efficios.com>
10587
10588 * gdbtypes.c (rank_one_type_parm_set): New function extracted
10589 from...
10590 (rank_one_type): ... this.
10591
595f96a9
SM
105922019-03-08 Simon Marchi <simon.marchi@efficios.com>
10593
10594 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
10595 from...
10596 (rank_one_type): ... this.
10597
2598a94b
SM
105982019-03-08 Simon Marchi <simon.marchi@efficios.com>
10599
10600 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
10601 from...
10602 (rank_one_type): ... this.
10603
7f17b20d
SM
106042019-03-08 Simon Marchi <simon.marchi@efficios.com>
10605
10606 * gdbtypes.c (rank_one_type_parm_float): New function extracted
10607 from...
10608 (rank_one_type): ... this.
10609
2c509035
SM
106102019-03-08 Simon Marchi <simon.marchi@efficios.com>
10611
10612 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
10613 from...
10614 (rank_one_type): ... this.
10615
0dd322dc
SM
106162019-03-08 Simon Marchi <simon.marchi@efficios.com>
10617
10618 * gdbtypes.c (rank_one_type_parm_range): New function extracted
10619 from...
10620 (rank_one_type): ... this.
10621
41ea4728
SM
106222019-03-08 Simon Marchi <simon.marchi@efficios.com>
10623
10624 * gdbtypes.c (rank_one_type_parm_char): New function extracted
10625 from...
10626 (rank_one_type): ... this.
10627
793cd1d2
SM
106282019-03-08 Simon Marchi <simon.marchi@efficios.com>
10629
10630 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
10631 from...
10632 (rank_one_type): ... this.
10633
34910087
SM
106342019-03-08 Simon Marchi <simon.marchi@efficios.com>
10635
10636 * gdbtypes.c (rank_one_type_parm_int): New function extracted
10637 from...
10638 (rank_one_type): ... this.
10639
f1f832d6
SM
106402019-03-08 Simon Marchi <simon.marchi@efficios.com>
10641
10642 * gdbtypes.c (rank_one_type_parm_func): New function extracted
10643 from...
10644 (rank_one_type): ... this.
10645
b9f4512f
SM
106462019-03-08 Simon Marchi <simon.marchi@efficios.com>
10647
10648 * gdbtypes.c (rank_one_type_parm_array): New function extracted
10649 from...
10650 (rank_one_type): ... this.
10651
9293fc63
SM
106522019-03-08 Simon Marchi <simon.marchi@efficios.com>
10653
10654 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
10655 from...
10656 (rank_one_type): ... this.
10657
e3abbe7e
PW
106582019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10659
10660 * inferior.c (initialize_inferiors): Ensure 'help set/show print
10661 inferior-events' shows the example events.
10662
e4adb939
EZ
106632019-03-08 Eli Zaretskii <eliz@gnu.org>
10664
10665 Support styling on native MS-Windows console
10666
10667 PR/24315
10668 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
10669 on MS-Windows if $TERM is not defined.
10670
10671 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
10672
10673 * posix-hdep.c (gdb_console_fputs):
10674 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
10675 functions.
10676 * ui-file.h (gdb_console_fputs): Add prototype.
10677
10678 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
10679 back to fputs only if the former returns zero.
10680
25629dfd
TT
106812019-03-07 Tom Tromey <tom@tromey.com>
10682
10683 * symmisc.c (print_symbol_bcache_statistics): Update.
10684 (print_objfile_statistics): Update.
10685 * symfile.c (allocate_symtab): Update.
10686 * stabsread.c: Don't include bcache.h.
10687 * psymtab.h (struct psymbol_bcache): Don't declare.
10688 (class psymtab_storage) <psymbol_cache>: Now a bcache.
10689 (psymbol_bcache_init, psymbol_bcache_free)
10690 (psymbol_bcache_get_bcache): Don't declare.
10691 * psymtab.c (struct psymbol_bcache): Remove.
10692 (psymtab_storage::psymtab_storage): Update.
10693 (psymtab_storage::~psymtab_storage): Update.
10694 (psymbol_bcache_init, psymbol_bcache_free)
10695 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
10696 (add_psymbol_to_bcache): Update.
10697 (allocate_psymtab): Update.
10698 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10699 macro_cache>: No longer pointers.
10700 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
10701 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
10702 * macrotab.c (macro_bcache): Update.
10703 * macroexp.c: Don't include bcache.h.
10704 * gdbtypes.c (check_types_worklist): Update.
10705 (types_deeply_equal): Remove TRY/CATCH. Update.
10706 * elfread.c (elf_symtab_read): Update.
10707 * dwarf2read.c: Don't include bcache.h.
10708 * buildsym.c (buildsym_compunit::get_macro_table): Update.
10709 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
10710 (print_bcache_statistics, bcache_memory_used): Don't declare.
10711 (struct bcache): Move from bcache.c. Add constructor, destructor,
10712 methods. Rename all data members.
10713 * bcache.c (struct bcache): Move to bcache.h.
10714 (bcache::expand_hash_table): Rename from expand_hash_table.
10715 (bcache): Remove.
10716 (bcache::insert): Rename from bcache_full.
10717 (bcache::compare): Rename from bcache_compare.
10718 (bcache_xmalloc): Remove.
10719 (bcache::~bcache): Rename from bcache_xfree.
10720 (bcache::print_statistics): Rename from print_bcache_statistics.
10721 (bcache::memory_used): Rename from bcache_memory_used.
10722
fe726667
PA
107232019-03-07 Pedro Alves <palves@redhat.com>
10724
10725 * infrun.c (normal_stop): Also check for
10726 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
10727
7584bb30
AB
107282019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10729
10730 * f-lang.c (value_from_host_double): Moved to...
10731 * value.c (value_from_host_double): ...here.
10732 * value.h (value_from_host_double): Declare.
10733 * guile/scm-math.c (vlscm_convert_typed_number): Use
10734 value_from_host_double.
10735 (vlscm_convert_number): Likewise.
10736 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
10737 * python/py-value.c (convert_value_from_python): Likewise.
10738
a7b1986e
TT
107392019-03-06 Tom Tromey <tom@tromey.com>
10740
10741 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
10742
0ccf4211
TT
107432019-03-06 Tom Tromey <tom@tromey.com>
10744
10745 * utils.h (free_current_contents): Don't declare.
10746 * utils.c (free_current_contents): Remove.
10747
fe7b42e5
TT
107482019-03-06 Tom Tromey <tom@tromey.com>
10749
10750 * top.c (quit_force): Update.
10751 * main.c (captured_command_loop): Update.
10752 * common/new-op.c (operator new): Update.
10753 * common/common-exceptions.c (struct catcher)
10754 <save_cleanup_chain>: Remove member.
10755 (exceptions_state_mc_init): Update.
10756 (exception_try_scope_entry): Return nullptr.
10757 (exception_try_scope_exit, exception_rethrow)
10758 (throw_exception_sjlj, throw_exception_cxx): Update.
10759 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
10760 (all_cleanups, do_cleanups, discard_cleanups)
10761 (discard_final_cleanups, save_cleanups, save_final_cleanups)
10762 (restore_cleanups, restore_final_cleanups): Don't declare.
10763 (do_final_cleanups): Remove parameter.
10764 * common/cleanups.c (cleanup_chain, make_cleanup)
10765 (make_cleanup_dtor, all_cleanups, do_cleanups)
10766 (discard_my_cleanups, discard_cleanups)
10767 (discard_final_cleanups, save_my_cleanups, save_cleanups)
10768 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
10769 (null_cleanup): Remove.
10770 (do_final_cleanups): Remove parameter.
10771
c6321f19
TT
107722019-03-06 Tom Tromey <tom@tromey.com>
10773
10774 * remote.c (remote_target::remote_parse_stop_reply): Use
10775 unique_xmalloc_ptr.
10776
61b30099
TT
107772019-03-06 Tom Tromey <tom@tromey.com>
10778
10779 * stabsread.c (struct stabs_field_info): Rename from field_info.
10780 <list, fnlist>: Add initializers.
10781 <obstack>: New member.
10782 (read_member_functions, read_struct_fields, read_baseclasses):
10783 Allocate on obstack. Don't use cleanups.
10784 (read_one_struct_field, read_member_functions, read_struct_fields)
10785 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
10786 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
10787 (read_struct_type): Update.
10788
6cceac94
TT
107892019-03-06 Tom Tromey <tom@tromey.com>
10790
10791 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
10792 * common/filestuff.h (make_cleanup_close): Don't declare.
10793 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
10794 Remove.
10795
72412762
TT
107962019-03-06 Tom Tromey <tom@tromey.com>
10797
10798 * solib-aix.c: Use make_scope_exit.
10799
2b6ff1c0
TT
108002019-03-06 Tom Tromey <tom@tromey.com>
10801
10802 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
10803 Use make_scope_exit.
10804
d01c5877
TT
108052019-03-06 Tom Tromey <tom@tromey.com>
10806
10807 * solib-svr4.c (disable_probes_interface): Remove parameter.
10808 (svr4_handle_solib_event): Use make_scope_exit.
10809
32603266
TT
108102019-03-06 Tom Tromey <tom@tromey.com>
10811
10812 * remote.c (struct stop_reply_deleter): Remove.
10813 (stop_reply_up): Update.
10814 (struct stop_reply): Derive from notif_event. Don't typedef.
10815 <regcache>: Now a std::vector.
10816 (stop_reply_xfree): Remove.
10817 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
10818 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
10819 (remote_target::discard_pending_stop_replies): Use delete.
10820 (remote_target::remote_parse_stop_reply): Update.
10821 (remote_target::process_stop_reply): Update.
10822 * remote-notif.h (struct notif_event): Add virtual destructor.
10823 Remove "dtr" member.
10824 (struct notif_client) <alloc_event>: Return a unique_ptr.
10825 (notif_event_xfree): Don't declare.
10826 (notif_event_up): New typedef.
10827 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
10828 (notif_event_xfree, do_notif_event_xfree): Remove.
10829 (remote_notif_state_xfree): Update.
10830
9799571e
TT
108312019-03-06 Tom Tromey <tom@tromey.com>
10832
10833 * infrun.c (displaced_step_clear_cleanup): Now a
10834 forward_scope_exit type.
10835 (displaced_step_prepare_throw): Update.
10836 (displaced_step_fixup): Update.
10837
09e3c4ca
TT
108382019-03-06 Tom Tromey <tom@tromey.com>
10839
10840 * inferior.h (class inferior): Update comment.
10841 * gdbthread.h (class thread_info): Update comment.
10842
e2a03548
TT
108432019-03-06 Joel Brobecker <brobecker@adacore.com>
10844 Tom Tromey <tom@tromey.com>
10845
10846 * stabsread.h (struct stab_section_list): Remove.
10847 (coffstab_build_psymtabs): Update.
10848 * dbxread.c (symbuf_sections): Now a std::vector.
10849 (sect_idx): New global.
10850 (fill_symbuf): Update.
10851 (coffstab_build_psymtabs): Change type of stabsects parameter.
10852 Update.
10853 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
10854 std::vector.
10855 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
10856 (coff_locate_sections): Update.
10857 (coff_symfile_read): Remove cleanups. Update.
10858 (init_stringtab): Add storage parameter.
10859 (free_stringtab, free_stringtab_cleanup): Remove.
10860 (init_lineno): Add storage parameter.
10861 (free_linetab, free_linetab_cleanup): Remove.
10862
b7e60d85
PA
108632019-03-06 Pedro Alves <palves@redhat.com>
10864
10865 * linux-fork.c (fork_info::clobber_regs): Delete.
10866 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
10867 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
10868 comment. Adjust.
10869 (scoped_switch_fork_info::scoped_switch_fork_info)
10870 (checkpoint_command, linux_fork_context): Adjust
10871 fork_save_infrun_state calls.
10872
e52c971f
PA
108732019-03-06 Pedro Alves <palves@redhat.com>
10874
10875 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
10876 (inf_has_multiple_threads): Return 'bool' and rewrite using
10877 inferior_info::threads().
10878
06974e6c
PA
108792019-03-06 Pedro Alves <palves@redhat.com>
10880
10881 * linux-fork.c: Include <list>.
10882 (fork_list): Now a std::list instance.
10883 (fork_info): Add ctor, dtor, and in-class initialize all fields.
10884 (forks_exist_p, find_last_fork): Adjust.
10885 (new_fork): Delete.
10886 (one_fork_p): New.
10887 (add_fork): Adjust.
10888 (free_fork): Delete, folded into fork_info::~fork_info().
10889 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
10890 Adjust.
10891 (init_fork_list): Delete.
10892 (linux_fork_killall, linux_fork_mourn_inferior)
10893 (linux_fork_detach, info_checkpoints_command): Adjust.
10894 (_initialize_linux_fork): No longer call init_fork_list.
10895
72f31aea
PA
108962019-03-06 Pedro Alves <palves@redhat.com>
10897
10898 * linux-fork.c (new_fork): New, split out of ...
10899 (add_fork): ... this. Return void. Move "first fork" special
10900 case from here, to ...
10901 (checkpoint_command): ... here.
10902 * linux-linux.h (add_fork): Return void.
10903
efbecbc1
AB
109042019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10905
10906 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
10907
0841c79a
AB
109082019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10909 Chris January <chris.january@arm.com>
10910 David Lecomber <david.lecomber@arm.com>
10911
10912 * f-exp.y: New token, UNOP_INTRINSIC.
10913 (exp): New pattern using UNOP_INTRINSIC token.
10914 (f77_keywords): Add 'abs' keyword.
10915 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
10916 (value_from_host_double): New function.
10917 (evaluate_subexp_f): Support UNOP_ABS.
10918
4a270568
AB
109192019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10920
10921 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
10922 types.
10923
067630bd
AB
109242019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10925
10926 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
10927 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
10928 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
10929
3be47f7a
AB
109302019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10931
10932 * f-exp.y (convert_to_kind_type): Handle more type kinds.
10933
4d00f5d8
AB
109342019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10935 Chris January <chris.january@arm.com>
10936
10937 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
10938 * f-exp.y: Define 'KIND' token.
10939 (exp): New pattern for KIND expressions.
10940 (ptype): Handle types with a kind extension.
10941 (direct_abs_decl): Extend to spot kind extensions.
10942 (f77_keywords): Add 'kind' to the list.
10943 (push_kind_type): New function.
10944 (convert_to_kind_type): New function.
10945 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
10946 * parse.c (operator_length_standard): Likewise.
10947 * parser-defs.h (enum type_pieces): Add tp_kind.
10948 * std-operator.def: Add UNOP_KIND.
10949
e454224f
AB
109502019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10951
10952 * f-exp.y (f_parse): Set yydebug.
10953
9dad4a58
AB
109542019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10955
10956 * f-lang.c (evaluate_subexp_f): New function.
10957 (exp_descriptor_f): New global.
10958 (f_language_defn): Use exp_descriptor_f instead of
10959 exp_descriptor_standard.
10960
c8f91604
AB
109612019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10962
10963 * f-exp.y (struct token): Add comments.
10964 (dot_ops): Remove uppercase versions and the end marker.
10965 (f77_keywords): Likewise.
10966 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
10967 entries in the dot_ops array are case insensitive, and use
10968 strncasecmp to compare strings. Also some whitespace cleanup in
10969 this area. Similar for the f77_keywords array, except entries in
10970 this list might be case sensitive.
10971
dd9f2c76
AB
109722019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10973
10974 * f-exp.y (struct f77_boolean_val): Add comments.
10975 (boolean_values): Remove uppercase versions, and end marker.
10976 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
10977 and use strncasecmp to achieve case insensitivity. Additionally,
10978 perform whitespace cleanup around this code.
10979
67a3048c
TT
109802019-03-06 Tom Tromey <tromey@adacore.com>
10981
10982 * remote-sim.c (gdbsim_target_open): Use result of
10983 gdb_argv::release.
10984
aa3cfbda
RB
109852019-03-06 Richard Bunt <richard.bunt@arm.com>
10986 Dirk Schubert <dirk.schubert@arm.com>
10987 Chris January <chris.january@arm.com>
10988
10989 * eval.c (evaluate_subexp_standard): Call Fortran argument
10990 wrapping logic.
10991 * f-lang.c (struct value): A value which can be passed into a
10992 Fortran function call.
10993 (fortran_argument_convert): Wrap Fortran arguments in a pointer
10994 where appropriate.
10995 (struct type): Value ready for a Fortran function call.
10996 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
10997 is needed.
10998 * f-lang.h (fortran_argument_convert): Declaration.
10999 (fortran_preserve_arg_pointer): Declaration.
11000 * infcall.c (value_arg_coerce): Call Fortran argument logic.
11001
ea38e5df
TT
110022019-03-05 Tom Tromey <tromey@adacore.com>
11003
11004 * python/py-prettyprint.c (print_string_repr): Remove #if.
11005 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
11006
06b5b831
TT
110072019-03-05 Tom Tromey <tromey@adacore.com>
11008
11009 * target.c (the_dummy_target): Move later. Change type to
11010 "dummy_target".
11011 (initialize_targets): Don't initialize the_dummy_target.
11012
edbd9e45
TT
110132019-03-05 Tom Tromey <tromey@adacore.com>
11014
11015 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
11016 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
11017
c119e040
TT
110182019-03-05 Tom Tromey <tromey@adacore.com>
11019
11020 * windows-nat.c (windows_nat_target::attach)
11021 (windows_nat_target::detach): Don't call gdb_flush.
11022 * valprint.c (generic_val_print, val_print, val_print_string):
11023 Don't call gdb_flush.
11024 * utils.c (defaulted_query): Don't call gdb_flush.
11025 * typeprint.c (print_type_scalar): Don't call gdb_flush.
11026 * target.c (target_announce_detach): Don't call gdb_flush.
11027 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
11028 * remote.c (extended_remote_target::attach): Don't call
11029 gdb_flush.
11030 * procfs.c (procfs_target::detach): Don't call gdb_flush.
11031 * printcmd.c (do_examine): Don't call gdb_flush.
11032 (info_display_command): Don't call gdb_flush.
11033 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
11034 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
11035 * memattr.c (info_mem_command): Don't call gdb_flush.
11036 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
11037 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
11038 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
11039 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
11040 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
11041 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
11042 (gnu_nat_target::detach): Don't call gdb_flush.
11043 * f-valprint.c (f_val_print): Don't call gdb_flush.
11044 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
11045 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
11046 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
11047 gdb_flush.
11048 * c-valprint.c (c_val_print): Don't call gdb_flush.
11049 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
11050
895dafa6
TT
110512019-03-05 Tom Tromey <tromey@adacore.com>
11052
11053 * varobj.c (update_dynamic_varobj_children): Update.
11054 (install_default_visualizer): Use reset, not release.
11055 * value.c (set_internalvar): Update.
11056 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
11057 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
11058 ATTRIBUTE_UNUSED_RESULT.
11059
88a774b9
TT
110602019-03-05 Tom Tromey <tromey@adacore.com>
11061
11062 * remote.c (class scoped_remote_fd) <release>: Add
11063 ATTRIBUTE_UNUSED_RESULT.
11064
4e4a8b93
TT
110652019-03-05 Tom Tromey <tromey@adacore.com>
11066
11067 * macroexp.c (struct macro_buffer) <release>: Add
11068 ATTRIBUTE_UNUSED_RESULT.
11069
083eef1f
TT
110702019-03-05 Tom Tromey <tromey@adacore.com>
11071
11072 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
11073 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
11074 ATTRIBUTE_UNUSED_RESULT.
11075
3cabd438
TT
110762019-03-05 Tom Tromey <tromey@adacore.com>
11077
11078 * common/scoped_fd.h (class scoped_fd) <release>: Add
11079 ATTRIBUTE_UNUSED_RESULT.
11080
41e3300a
TT
110812019-03-05 Tom Tromey <tromey@adacore.com>
11082
11083 * parser-defs.h (struct parser_state) <release>: Add
11084 ATTRIBUTE_UNUSED_RESULT.
11085
18cb7c9f
TT
110862019-03-05 Tom Tromey <tromey@adacore.com>
11087
11088 * utils.h (class gdb_argv) <release>: Add
11089 ATTRIBUTE_UNUSED_RESULT.
11090 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
11091
41fa577f
EZ
110922019-03-02 Eli Zaretskii <eliz@gnu.org>
11093
a6a4b2c6
EZ
11094 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
11095 for-loop range, to avoid compiler warnings.
11096
11097 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
11098 avoid compiler warnings about unused variables.
11099
742a7df5
EZ
11100 * NEWS: Mention end of support for native debugging on MS-Windows
11101 before XP.
11102
41fa577f
EZ
11103 PR gdb/24292
11104 * common/netstuff.c:
11105 * gdbserver/gdbreplay.c
11106 * gdbserver/remote-utils.c:
11107 * ser-tcp.c:
11108 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
11109 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
11110 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
11111 'getaddrinfo' and 'freeaddrinfo' were not available before
11112 Windows XP, and mingw.org's MinGW headers by default define
11113 _WIN32_WINNT to 0x500.
11114
827f438f
GB
111152019-03-01 Gary Benson <gbenson@redhat.com>
11116
11117 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
11118
92137da0
RO
111192019-02-28 Brian Vandenberg <phantall@gmail.com>
11120 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11121
11122 PR gdb/8527
11123 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
11124 set_sigint_trap, clear_sigint_trap.
11125
799efbe8
PW
111262019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11127
11128 * target.c (target_detach): Clear the regcache and the
11129 frame cache.
11130
8ed25214
PA
111312019-02-27 Pedro Alves <palves@redhat.com>
11132
11133 * utils.c (set_screen_size): When we cap the height/width sizes,
11134 tweak the corresponding command variable to show "unlimited":
11135
23031e31
SJ
111362019-02-27 Saagar Jha <saagar@saagarjha.com>
11137 Pedro Alves <palves@redhat.com>
11138
11139 * utils.c (set_screen_size): Reduce "infinite" rows and columns
11140 before calling rl_set_screen_size.
11141
6c28e44a
TT
111422019-02-27 Tom Tromey <tromey@adacore.com>
11143
11144 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
11145 define.
11146 * python/py-value.c: Remove Python 2.4 workaround.
11147 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
11148 workaround.
11149 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
11150 Python 2.4 workaround.
11151 * python/python-internal.h: Remove Python 2.4 comment.
11152 (Py_ssize_t): Don't define.
11153 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
11154 (gdb_Py_DECREF): Remove Python 2.4 workaround.
11155 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
11156 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
11157 * python/python.c (do_start_initialization): Remove Python 2.4
11158 workaround.
11159 * python/py-prettyprint.c (class dummy_python_frame): Remove.
11160 (print_children): Remove Python 2.4 workaround.
11161 * python/py-inferior.c (buffer_procs): Remove Python 2.4
11162 workaround.
11163 (CHARBUFFERPROC_NAME): Remove.
11164 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
11165 Python 2.4 workaround.
11166
2c3fc25d 111672019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 11168
2c3fc25d
KB
11169 * NEWS: Note minimum Python version.
11170
6ca62222
KB
111712019-02-27 Kevin Buettner <kevinb@redhat.com>
11172
11173 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
11174 code from these functions. Remove corresponding ifdefs. Use
11175 Py_buffer_up instead of explicit calls to PyBuffer_Release.
11176 Remove gotos and target of gotos.
11177 (infpy_search_memory): Likewise.
11178
f4bc7d2c
AB
111792019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11180
11181 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
11182 (hppa_gdbarch_init): Don't register deleted functions with
11183 gdbarch.
11184
9734a586
AB
111852019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11186
11187 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
11188 (h8300_unwind_sp): Delete.
11189 (h8300_dummy_id): Delete.
11190 (h8300_gdbarch_init): Don't register deleted functions with
11191 gdbarch.
11192
68b867f3
AB
111932019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11194
11195 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
11196 (ft32_unwind_pc): Delete.
11197 (ft32_unwind_sp): Delete.
11198 (ft32_gdbarch_init): Don't register deleted functions with
11199 gdbarch.
11200
2fbe7ad0
AB
112012019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11202
11203 * gdb/frv-tdep.c (frv_dummy_id): Delete.
11204 (frv_unwind_pc): Delete.
11205 (frv_unwind_sp): Delete.
11206 (frv_gdbarch_init): Don't register deleted functions with
11207 gdbarch.
11208
76055cbe
AB
112092019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11210
11211 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
11212 (riscv_unwind_pc): Delete.
11213 (riscv_unwind_sp): Delete.
11214 (riscv_gdbarch_init): Don't register deleted functions with
11215 gdbarch.
11216
4133e5a1
AB
112172019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11218
11219 * gdb/csky-tdep.c (csky_dummy_id): Delete.
11220 (csky_unwind_pc): Delete.
11221 (csky_unwind_sp): Delete.
11222 (csky_gdbarch_init): Don't register deleted functions with
11223 gdbarch.
11224
8010f576
AB
112252019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11226
11227 * gdb/cris-tdep.c (cris_dummy_id): Delete.
11228 (cris_unwind_pc): Delete.
11229 (cris_unwind_sp): Delete.
11230 (cris_gdbarch_init): Don't register deleted functions with
11231 gdbarch.
11232
b56bf084
AB
112332019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11234
11235 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
11236 (bfin_unwind_pc): Delete.
11237 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
11238
a19a650f
AB
112392019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11240
11241 * gdb/arm-tdep.c (arm_dummy_id): Delete.
11242 (arm_unwind_pc): Delete.
11243 (arm_unwind_sp): Delete.
11244 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
11245
f8278c3c
AB
112462019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11247
11248 * gdb/arc-tdep.c (arc_dummy_id): Delete.
11249 (arc_unwind_pc): Delete.
11250 (arc_unwind_sp): Delete.
11251 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
11252
480e46cf
AB
112532019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11254
11255 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
11256 (alpha_unwind_pc): Delete.
11257 (alpha_gdbarch_init): Don't register deleted functions with
11258 gdbarch.
11259
7a995095
AB
112602019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11261
11262 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
11263 (aarch64_unwind_pc): Delete.
11264 (aarch64_unwind_sp): Delete.
11265 (aarch64_gdbarch_init): Don't register deleted functions with
11266 gdbarch.
11267
bf9a735e
AB
112682019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11269
11270 * gdbtypes.c (type_align): Don't consider static members when
11271 computing structure alignment.
11272
5561fc30
AB
112732019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11274
11275 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
11276 return 0 for other types.
11277 * arch-utils.c (default_type_align): Always return 0.
11278 * gdbarch.h: Regenerate.
11279 * gdbarch.sh (type_align): Extend comment.
11280 * gdbtypes.c (type_align): Add additional comments, always call
11281 gdbarch_type_align before applying the default rules.
11282 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
11283 generic code will then apply a suitable default.
11284 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
11285 types, return 0 for other types.
11286
9335e75a
JB
112872019-02-27 Joel Brobecker <brobecker@adacore.com>
11288
11289 * NEWS: Create a new section for the next release branch.
11290 Rename the section of the current branch, now that it has
11291 been cut.
11292
3d34d8de
JB
112932019-02-27 Joel Brobecker <brobecker@adacore.com>
11294
11295 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
11296 * version.in: Bump version to 8.3.50.DATE-git.
11297
143420fb
SM
112982019-02-26 Simon Marchi <simon.marchi@efficios.com>
11299
11300 * aix-thread.c (ptid_cmp): Remove unused variable.
11301 (get_signaled_thread): Likewise.
11302 (store_regs_user_thread): Likewise.
11303 (store_regs_kernel_thread): Likewise.
11304 (fetch_regs_kernel_thread): Remove shadowed variable.
11305
172fb711
AB
113062019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
11307
11308 * features/riscv/32bit-cpu.xml: Add register numbers.
11309 * features/riscv/32bit-fpu.c: Regenerate.
11310 * features/riscv/32bit-fpu.xml: Add register numbers.
11311 * features/riscv/64bit-cpu.xml: Add register numbers.
11312 * features/riscv/64bit-fpu.c: Regenerate.
11313 * features/riscv/64bit-fpu.xml: Add register numbers.
11314
26c89782
KB
113152019-02-26 Kevin Buettner <kevinb@redhat.com>
11316
af54ade9 11317 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
11318 * python/py-value.c (convert_buffer_and_type_to_value): New
11319 function.
11320 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
11321 Add support for handling an optional second argument. Call
11322 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
11323 * python/python-internal.h (Py_buffer_deleter): New struct.
11324 (Py_buffer_up): New typedef.
11325
0f58c9e8
JB
113262019-02-25 John Baldwin <jhb@FreeBSD.org>
11327
11328 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
11329 instead of releasing ownership.
11330
0a0f4c01
JR
113312019-02-25 Jordan Rupprecht <rupprecht@google.com>
11332
11333 * dwarf2read.c (open_and_init_dwp_file): Call
11334 elf_numsections instead of bfd_count_sections to initialize
11335 dwp_file->num_sections.
11336
cd5a152c
TT
113372019-02-25 Tom Tromey <tromey@adacore.com>
11338
11339 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
11340
8a6a8513
SDJ
113412019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
11342
11343 * gcore.in: Add '--readnever' option when invoking GDB.
11344
04dcda9c
SM
113452019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11346
11347 * MAINTAINERS: Update my email address.
11348
07bc701d
SM
113492019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11350
11351 * build-id.c (build_id_to_debug_bfd_1): New function.
11352 (build_id_to_debug_bfd): Look for separate debug file in
11353 sysroot.
11354
c6f4a5d0
AB
113552019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
11356
11357 * gdbarch.sh: Update the copyright year range that is placed into
11358 generated files.
11359
9600246d
KS
113602019-02-22 Keith Seitz <keiths@redhat.com>
11361
11362 PR symtab/23853
11363 * linespec.c (create_sals_line_offset): Search for the default
11364 symtab's filename instead of its fullname.
11365
7557a514
AH
113662019-02-21 Alan Hayward <alan.hayward@arm.com>
11367
11368 * NEWS: Update style defaults.
11369
ee2bcb0c
AH
113702019-02-21 Alan Hayward <alan.hayward@arm.com>
11371
11372 * main.c (captured_main_1): Disable styling in batch mode.
11373
0c95f9ed
TT
113742019-02-20 Tom Tromey <tom@tromey.com>
11375
11376 * symtab.c (symtab_symbol_info): Fix typos.
11377
c763b894
TT
113782019-02-20 Tom Tromey <tromey@adacore.com>
11379
11380 * findcmd.c (_initialize_mem_search): Use upper case for
11381 metasyntactic variables.
11382
0ef8a082
AH
113832019-02-20 Alan Hayward <alan.hayward@arm.com>
11384
11385 * aarch64-tdep.c (aarch64_add_reggroups): New function.
11386 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
11387
6caa91b6
SM
113882019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
11389
11390 * top.h (source_file_name): Change to std::string.
11391 * top.c (source_file_name): Likewise.
11392 (command_line_input): Adjust.
11393 * cli/cli-script.c (script_from_file): Adjust.
11394
98814c6c
TT
113952019-02-19 Tom Tromey <tromey@adacore.com>
11396
11397 * ravenscar-thread.c
11398 (ravenscar_thread_target::update_thread_list): Don't call
11399 ada_build_task_list.
11400 * ada-lang.h (ada_build_task_list): Don't declare.
11401 * ada-tasks.c (struct ada_tasks_inferior_data)
11402 <task_list_valid_p>: Now bool.
11403 (read_known_tasks, ada_task_list_changed)
11404 (ada_tasks_invalidate_inferior_data): Update.
11405 (read_known_tasks_array): Return bool.
11406 (read_known_tasks_list): Likewise.
11407 (read_known_tasks): Return void.
11408 (ada_build_task_list): Now static.
11409
70cd633e
AB
114102019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
11411
11412 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
11413 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
11414
040b3e95
PW
114152019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11416
11417 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
11418 variant for ada_tasks_pspace_data_handle and
11419 ada_tasks_inferior_data_handle.
11420 (ada_tasks_pspace_data_cleanup): New function.
11421 (ada_tasks_inferior_data_cleanup): New function.
11422
9409233b
TT
114232019-02-17 Tom Tromey <tom@tromey.com>
11424
11425 * macrotab.h (macro_source_fullname): Return a std::string.
11426 * macrotab.c (macro_include, check_for_redefinition)
11427 (macro_undef, macro_lookup_definition, foreach_macro)
11428 (foreach_macro_in_scope): Update.
11429 (macro_source_fullname): Return a std::string.
11430 * macrocmd.c (show_pp_source_pos): Update.
11431
6506371f
TT
114322019-02-17 Tom Tromey <tom@tromey.com>
11433
11434 * macrocmd.c (show_pp_source_pos): Style the file names.
11435
0c820d67
TT
114362019-02-17 Tom Tromey <tom@tromey.com>
11437
11438 PR tui/24197:
11439 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
11440
a0087920
TT
114412019-02-17 Tom Tromey <tom@tromey.com>
11442
11443 * ada-lang.c (user_select_syms): Use filtered printing.
11444 * utils.c (wrap_style): New global.
11445 (desired_style): Remove.
11446 (emit_style_escape): Add stream parameter.
11447 (set_output_style, reset_terminal_style, prompt_for_continue):
11448 Update.
11449 (flush_wrap_buffer): Only flush gdb_stdout.
11450 (wrap_here): Set wrap_style.
11451 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
11452 treat escape sequences as a character. Change when wrap buffer is
11453 flushed.
11454 (fputs_styled): Do not set the output style when the default is
11455 requested.
11456 * ui-style.h (struct ui_file_style) <is_default>: New method.
11457 * source.c (print_source_lines_base): Emit escape sequences in one
11458 piece.
11459
75ba10dc
JB
114602019-02-17 Joel Brobecker <brobecker@adacore.com>
11461
11462 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
11463 integers and enumeration types.
11464
a2cd4f14
JB
114652019-02-17 Joel Brobecker <brobecker@adacore.com>
11466
11467 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
11468 instead of lookup_symbol_in_language
11469 (do_exact_match): New function.
11470 (ada_get_symbol_name_matcher): Return do_exact_match when
11471 doing a verbatim match.
11472
485b851b
TT
114732019-02-15 Tom Tromey <tromey@adacore.com>
11474
11475 * ravenscar-thread.c (ravenscar_thread_target::resume)
11476 (ravenscar_thread_target::wait): Special case wildcard requests.
11477
0b790b1e
TT
114782019-02-15 Tom Tromey <tromey@adacore.com>
11479
11480 * ravenscar-thread.c (base_ptid): Remove.
11481 (struct ravenscar_thread_target) <close>: New method.
11482 <m_base_ptid>: New member.
11483 <update_inferior_ptid, active_task, task_is_currently_active,
11484 runtime_initialized>: Declare methods.
11485 <ravenscar_thread_target>: Add constructor.
11486 (ravenscar_thread_target::task_is_currently_active)
11487 (ravenscar_thread_target::update_inferior_ptid)
11488 (ravenscar_runtime_initialized): Rename. Now methods.
11489 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
11490 (ravenscar_thread_target::update_thread_list): Update.
11491 (ravenscar_thread_target::active_task): Now method.
11492 (ravenscar_thread_target::store_registers)
11493 (ravenscar_thread_target::prepare_to_store)
11494 (ravenscar_thread_target::prepare_to_store)
11495 (ravenscar_thread_target::mourn_inferior): Update.
11496 (ravenscar_inferior_created): Use "new" to create target.
11497 (ravenscar_thread_target::get_ada_task_ptid): Update.
11498 (_initialize_ravenscar): Don't initialize base_ptid.
11499 (ravenscar_ops): Remove global.
11500
dea57a62
TT
115012019-02-15 Tom Tromey <tromey@adacore.com>
11502
11503 * target.h (push_target): Declare new overload.
11504 * target.c (push_target): New overload, taking an rvalue reference.
11505 * remote.c (remote_target::open_1): Use push_target overload.
11506 * corelow.c (core_target_open): Use push_target overload.
11507
989f3c58
TT
115082019-02-15 Tom Tromey <tromey@adacore.com>
11509
11510 * ravenscar-thread.c (is_ravenscar_task)
11511 (ravenscar_task_is_currently_active): Return bool.
11512 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
11513 (_initialize_ravenscar): Remove "(void)".
11514 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
11515 Return bool.
11516
6cbcc006
TT
115172019-02-15 Tom Tromey <tromey@adacore.com>
11518
11519 * ravenscar-thread.c (ravenscar_runtime_initializer)
11520 (has_ravenscar_runtime, get_running_thread_id)
11521 (ravenscar_thread_target::resume): Fix indentation.
11522
7657f14d
TT
115232019-02-15 Tom Tromey <tromey@adacore.com>
11524
11525 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
11526 from ravenscar_arch_ops.
11527 (sparc_ravenscar_ops::fetch_registers)
11528 (sparc_ravenscar_ops::store_registers): Now methods.
11529 (sparc_ravenscar_prepare_to_store): Remove.
11530 (sparc_ravenscar_ops): Redefine.
11531 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
11532 methods and destructor. Remove members.
11533 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
11534 (ravenscar_thread_target::store_registers)
11535 (ravenscar_thread_target::prepare_to_store): Update.
11536 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
11537 Remove.
11538 (struct ppc_ravenscar_powerpc_ops): Derive from
11539 ravenscar_arch_ops.
11540 (ppc_ravenscar_powerpc_ops::fetch_registers)
11541 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
11542 (ppc_ravenscar_powerpc_ops): Redefine.
11543 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
11544 (ppc_ravenscar_e500_ops::fetch_registers)
11545 (ppc_ravenscar_e500_ops::store_registers): Now methods.
11546 (ppc_ravenscar_e500_ops): Redefine.
11547 * aarch64-ravenscar-thread.c
11548 (aarch64_ravenscar_generic_prepare_to_store): Remove.
11549 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
11550 (aarch64_ravenscar_fetch_registers)
11551 (aarch64_ravenscar_store_registers): Now methods.
11552 (aarch64_ravenscar_ops): Redefine.
11553
5b6ea500
TT
115542019-02-15 Tom Tromey <tromey@adacore.com>
11555
11556 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
11557 (ravenscar_thread_target::stopped_by_hw_breakpoint)
11558 (ravenscar_thread_target::stopped_by_watchpoint)
11559 (ravenscar_thread_target::stopped_data_address)
11560 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
11561
e397fd39
TT
115622019-02-15 Tom Tromey <tromey@adacore.com>
11563
11564 * ravenscar-thread.c: Fix some typos.
11565
cc12f4a8
TT
115662019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11567 Tom Tromey <tromey@adacore.com>
11568
11569 * ada-lang.c (ada_exception_sal): Change addr_string to a
11570 std::string.
11571 (create_ada_exception_catchpoint): Update.
11572
5f486660
TT
115732019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11574 Tom Tromey <tromey@adacore.com>
11575
11576 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
11577 (bp_location_ops): Remove.
11578 (base_breakpoint_allocate_location): Update.
11579 (free_bp_location): Update.
11580 * ada-lang.c (class ada_catchpoint_location)
11581 <ada_catchpoint_location>: Remove ops parameter.
11582 (ada_catchpoint_location_dtor): Remove.
11583 (ada_catchpoint_location_ops): Remove.
11584 (allocate_location_exception): Update.
11585 * breakpoint.h (struct bp_location_ops): Remove.
11586 (class bp_location) <bp_location>: Remove bp_location_ops
11587 parameter.
11588 <~bp_location>: Add destructor.
11589 <ops>: Remove.
11590
b671c7fb
TS
115912019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11592 Pedro Alves <palves@redhat.com>
11593
11594 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
11595 'PATH_MAX'.
11596
8071c5ce
DM
115972019-02-14 David Michael <fedora.dm0@gmail.com>
11598 Samuel Thibault <samuel.thibault@gnu.org>
11599 Thomas Schwinge <thomas@codesourcery.com>
11600
11601 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
11602 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
11603
b1041ae0
TS
116042019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11605
924514e1
TS
11606 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
11607 (check_empty): Use "const char *".
11608
c29ee8d4
TS
11609 * gnu-nat.c (gnu_nat_target::detach): Instead of
11610 'detach_inferior (pid)' call
11611 'detach_inferior (find_inferior_pid (pid))'.
11612
6c6ef69f
TS
11613 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
11614 'nat/fork-inferior.o'.
11615 * gnu-nat.c: #include "nat/fork-inferior.h".
11616
2d0a338c
TS
11617 * gnu-nat.c (gnu_nat_target::detach): Instead of
11618 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
11619 * gnu-nat.h: #include "inf-child.h".
11620 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
11621 'i386_gnu_nat_target::fetch_registers'.
11622 (gnu_store_registers): Rename/move to
11623 'i386_gnu_nat_target::store_registers'.
11624
cabb5f06
TS
11625 * config/i386/nm-i386gnu.h: Don't "#include" any files.
11626 * gnu-nat.h (mach_thread_info): New function.
11627 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
11628
b1041ae0
TS
11629 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
11630
2988d01e
KF
116312019-02-14 Frederic Konrad <konrad@adacore.com>
11632
11633 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
11634
c559d709
JB
116352019-02-14 Joel Brobecker <brobecker@adacore.com>
11636
11637 * windows-nat.c (windows_add_thread): Add new parameter
11638 "main_thread_p" with default value set to false. Update
11639 function documentation as well as all callers.
11640 (windows_delete_thread): Likewise.
11641 (fake_create_process): Update call to windows_add_thread.
11642 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
11643 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
11644 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
11645 call to windows_delete_thread.
11646
007024cc
SM
116472019-02-13 Simon Marchi <simon.marchi@ericsson.com>
11648
11649 * MAINTAINERS: Add Andrew Burgess as global maintainer.
11650
f62318e9
JB
116512019-02-12 John Baldwin <jhb@FreeBSD.org>
11652
11653 * symfile.c (find_separate_debug_file): Use canonical path of
11654 sysroot with child_path instead of gdb_sysroot if it is valid.
11655
cd4b7848
JB
116562019-02-12 John Baldwin <jhb@FreeBSD.org>
11657
11658 * symfile.c (find_separate_debug_file): Use child_path to
11659 determine if an object file is under a sysroot.
11660
efac4bfe
JB
116612019-02-12 John Baldwin <jhb@FreeBSD.org>
11662
11663 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11664 unittests/child-path-selftests.c.
11665 * common/pathstuff.c (child_path): New function.
11666 * common/pathstuff.h (child_path): New prototype.
11667 * unittests/child-path-selftests.c: New file.
11668
402d2bfe
JB
116692019-02-12 John Baldwin <jhb@FreeBSD.org>
11670
11671 * symfile.c (find_separate_debug_file): Look for separate debug
11672 files in debug directories under the sysroot.
11673
1ed9f74e
PW
116742019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11675
11676 * symtab.h (struct minimal_symbol data_p): New const method.
11677 (struct minimal_symbol text_p): Likewise.
11678 * symtab.c (output_source_filename): Use file name style
11679 to print file name.
11680 (print_symbol_info): Likewise.
11681 (print_msymbol_info): Use address style to print addresses.
11682 Use function name style to print executable text symbols.
11683 (expand_symtab_containing_pc): Use data_p.
11684 (find_pc_sect_compunit_symtab): Likewise.
11685
2636d81d
PW
116862019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11687
11688 * breakpoint.c (describe_other_breakpoints): Use address style
11689 to print addresses.
11690 (say_where): Likewise.
11691
ac8c53cc
PW
116922019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11693
11694 * ada-typeprint.c (print_func_type): Print function name
11695 style to print function name.
11696 * c-typeprint.c (c_print_type_1): Likewise.
11697
ea638c43
AH
116982019-02-11 Alan Hayward <alan.hayward@arm.com>
11699
11700 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
11701 for execve.
11702
ab759ca8
PW
117032019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11704
11705 * c-exp.y (direct_abs_decl): Use emplace_back to record the
11706 type_stack.
11707
aff29d1c
JB
117082019-02-10 Joel Brobecker <brobecker@adacore.com>
11709
11710 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
11711 TYPE_CODE_REF types.
11712
617126bc
JW
117132019-02-08 Jim Wilson <jimw@sifive.com>
11714
11715 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
11716 (riscv_linux_fregset): New.
11717 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
11718
46e3ed7f
TT
117192019-02-07 Tom Tromey <tom@tromey.com>
11720
11721 * thread.c (thread_cancel_execution_command): Update.
11722 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
11723 methods.
11724 (struct thread_fsm_ops): Remove.
11725 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
11726 (thread_fsm_should_stop, thread_fsm_return_value)
11727 (thread_fsm_set_finished, thread_fsm_finished_p)
11728 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
11729 Don't declare.
11730 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
11731 * infrun.c (clear_proceed_status_thread)
11732 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
11733 (print_stop_event): Update.
11734 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
11735 Add constructor.
11736 (step_command_fsm_ops): Remove.
11737 (new_step_command_fsm): Remove.
11738 (step_1): Update.
11739 (step_command_fsm::should_stop): Rename from
11740 step_command_fsm_should_stop.
11741 (step_command_fsm::clean_up): Rename from
11742 step_command_fsm_clean_up.
11743 (step_command_fsm::do_async_reply_reason): Rename from
11744 step_command_fsm_async_reply_reason.
11745 (struct until_next_fsm): Inherit from thread_fsm. Add
11746 constructor.
11747 (until_next_fsm_ops): Remove.
11748 (new_until_next_fsm): Remove.
11749 (until_next_fsm::should_stop): Rename from
11750 until_next_fsm_should_stop.
11751 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
11752 (until_next_fsm::do_async_reply_reason): Rename from
11753 until_next_fsm_async_reply_reason.
11754 (struct finish_command_fsm): Inherit from thread_fsm. Add
11755 constructor. Change type of breakpoint.
11756 (finish_command_fsm_ops): Remove.
11757 (new_finish_command_fsm): Remove.
11758 (finish_command_fsm::should_stop): Rename from
11759 finish_command_fsm_should_stop.
11760 (finish_command_fsm::clean_up): Rename from
11761 finish_command_fsm_clean_up.
11762 (finish_command_fsm::return_value): Rename from
11763 finish_command_fsm_return_value.
11764 (finish_command_fsm::do_async_reply_reason): Rename from
11765 finish_command_fsm_async_reply_reason.
11766 (finish_command): Update.
11767 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
11768 Add constructor.
11769 (call_thread_fsm_ops): Remove.
11770 (call_thread_fsm::call_thread_fsm): Rename from
11771 new_call_thread_fsm.
11772 (call_thread_fsm::should_stop): Rename from
11773 call_thread_fsm_should_stop.
11774 (call_thread_fsm::should_notify_stop): Rename from
11775 call_thread_fsm_should_notify_stop.
11776 (run_inferior_call, call_function_by_hand_dummy): Update.
11777 * cli/cli-interp.c (should_print_stop_to_console): Update.
11778 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
11779 Add constructor. Change type of location_breakpoint,
11780 caller_breakpoint.
11781 (until_break_fsm_ops): Remove.
11782 (new_until_break_fsm): Remove.
11783 (until_break_fsm::should_stop): Rename from
11784 until_break_fsm_should_stop.
11785 (until_break_fsm::clean_up): Rename from
11786 until_break_fsm_clean_up.
11787 (until_break_fsm::do_async_reply_reason): Rename from
11788 until_break_fsm_async_reply_reason.
11789 (until_break_command): Update.
11790 * thread-fsm.c: Remove.
11791 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
11792
1a5c2598
TT
117932019-02-07 Tom Tromey <tom@tromey.com>
11794
11795 * yy-remap.h: Add include guard.
11796 * xtensa-tdep.h: Add include guard.
11797 * xcoffread.h: Rename include guard.
11798 * varobj-iter.h: Add include guard.
11799 * tui/tui.h: Rename include guard.
11800 * tui/tui-winsource.h: Rename include guard.
11801 * tui/tui-wingeneral.h: Rename include guard.
11802 * tui/tui-windata.h: Rename include guard.
11803 * tui/tui-win.h: Rename include guard.
11804 * tui/tui-stack.h: Rename include guard.
11805 * tui/tui-source.h: Rename include guard.
11806 * tui/tui-regs.h: Rename include guard.
11807 * tui/tui-out.h: Rename include guard.
11808 * tui/tui-layout.h: Rename include guard.
11809 * tui/tui-io.h: Rename include guard.
11810 * tui/tui-hooks.h: Rename include guard.
11811 * tui/tui-file.h: Rename include guard.
11812 * tui/tui-disasm.h: Rename include guard.
11813 * tui/tui-data.h: Rename include guard.
11814 * tui/tui-command.h: Rename include guard.
11815 * tic6x-tdep.h: Add include guard.
11816 * target/waitstatus.h: Rename include guard.
11817 * target/wait.h: Rename include guard.
11818 * target/target.h: Rename include guard.
11819 * target/resume.h: Rename include guard.
11820 * target-float.h: Rename include guard.
11821 * stabsread.h: Add include guard.
11822 * rs6000-tdep.h: Add include guard.
11823 * riscv-fbsd-tdep.h: Add include guard.
11824 * regformats/regdef.h: Rename include guard.
11825 * record.h: Rename include guard.
11826 * python/python.h: Rename include guard.
11827 * python/python-internal.h: Rename include guard.
11828 * python/py-stopevent.h: Rename include guard.
11829 * python/py-ref.h: Rename include guard.
11830 * python/py-record.h: Rename include guard.
11831 * python/py-record-full.h: Rename include guard.
11832 * python/py-record-btrace.h: Rename include guard.
11833 * python/py-instruction.h: Rename include guard.
11834 * python/py-events.h: Rename include guard.
11835 * python/py-event.h: Rename include guard.
11836 * procfs.h: Add include guard.
11837 * proc-utils.h: Add include guard.
11838 * p-lang.h: Add include guard.
11839 * or1k-tdep.h: Rename include guard.
11840 * observable.h: Rename include guard.
11841 * nto-tdep.h: Rename include guard.
11842 * nat/x86-linux.h: Rename include guard.
11843 * nat/x86-linux-dregs.h: Rename include guard.
11844 * nat/x86-gcc-cpuid.h: Add include guard.
11845 * nat/x86-dregs.h: Rename include guard.
11846 * nat/x86-cpuid.h: Rename include guard.
11847 * nat/ppc-linux.h: Rename include guard.
11848 * nat/mips-linux-watch.h: Rename include guard.
11849 * nat/linux-waitpid.h: Rename include guard.
11850 * nat/linux-ptrace.h: Rename include guard.
11851 * nat/linux-procfs.h: Rename include guard.
11852 * nat/linux-osdata.h: Rename include guard.
11853 * nat/linux-nat.h: Rename include guard.
11854 * nat/linux-namespaces.h: Rename include guard.
11855 * nat/linux-btrace.h: Rename include guard.
11856 * nat/glibc_thread_db.h: Rename include guard.
11857 * nat/gdb_thread_db.h: Rename include guard.
11858 * nat/gdb_ptrace.h: Rename include guard.
11859 * nat/fork-inferior.h: Rename include guard.
11860 * nat/amd64-linux-siginfo.h: Rename include guard.
11861 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
11862 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
11863 * nat/aarch64-linux.h: Rename include guard.
11864 * nat/aarch64-linux-hw-point.h: Rename include guard.
11865 * mn10300-tdep.h: Add include guard.
11866 * mips-linux-tdep.h: Add include guard.
11867 * mi/mi-parse.h: Rename include guard.
11868 * mi/mi-out.h: Rename include guard.
11869 * mi/mi-main.h: Rename include guard.
11870 * mi/mi-interp.h: Rename include guard.
11871 * mi/mi-getopt.h: Rename include guard.
11872 * mi/mi-console.h: Rename include guard.
11873 * mi/mi-common.h: Rename include guard.
11874 * mi/mi-cmds.h: Rename include guard.
11875 * mi/mi-cmd-break.h: Rename include guard.
11876 * m2-lang.h: Add include guard.
11877 * location.h: Rename include guard.
11878 * linux-record.h: Rename include guard.
11879 * linux-nat.h: Add include guard.
11880 * linux-fork.h: Add include guard.
11881 * i386-darwin-tdep.h: Rename include guard.
11882 * hppa-linux-offsets.h: Add include guard.
11883 * guile/guile.h: Rename include guard.
11884 * guile/guile-internal.h: Rename include guard.
11885 * gnu-nat.h: Rename include guard.
11886 * gdb-stabs.h: Rename include guard.
11887 * frv-tdep.h: Add include guard.
11888 * f-lang.h: Add include guard.
11889 * event-loop.h: Add include guard.
11890 * darwin-nat.h: Rename include guard.
11891 * cp-abi.h: Rename include guard.
11892 * config/sparc/nm-sol2.h: Rename include guard.
11893 * config/nm-nto.h: Rename include guard.
11894 * config/nm-linux.h: Add include guard.
11895 * config/i386/nm-i386gnu.h: Rename include guard.
11896 * config/djgpp/nl_types.h: Rename include guard.
11897 * config/djgpp/langinfo.h: Rename include guard.
11898 * compile/gcc-cp-plugin.h: Add include guard.
11899 * compile/gcc-c-plugin.h: Add include guard.
11900 * compile/compile.h: Rename include guard.
11901 * compile/compile-object-run.h: Rename include guard.
11902 * compile/compile-object-load.h: Rename include guard.
11903 * compile/compile-internal.h: Rename include guard.
11904 * compile/compile-cplus.h: Rename include guard.
11905 * compile/compile-c.h: Rename include guard.
11906 * common/xml-utils.h: Rename include guard.
11907 * common/x86-xstate.h: Rename include guard.
11908 * common/version.h: Rename include guard.
11909 * common/vec.h: Rename include guard.
11910 * common/tdesc.h: Rename include guard.
11911 * common/selftest.h: Rename include guard.
11912 * common/scoped_restore.h: Rename include guard.
11913 * common/scoped_mmap.h: Rename include guard.
11914 * common/scoped_fd.h: Rename include guard.
11915 * common/safe-iterator.h: Rename include guard.
11916 * common/run-time-clock.h: Rename include guard.
11917 * common/refcounted-object.h: Rename include guard.
11918 * common/queue.h: Rename include guard.
11919 * common/ptid.h: Rename include guard.
11920 * common/print-utils.h: Rename include guard.
11921 * common/preprocessor.h: Rename include guard.
11922 * common/pathstuff.h: Rename include guard.
11923 * common/observable.h: Rename include guard.
11924 * common/netstuff.h: Rename include guard.
11925 * common/job-control.h: Rename include guard.
11926 * common/host-defs.h: Rename include guard.
11927 * common/gdb_wait.h: Rename include guard.
11928 * common/gdb_vecs.h: Rename include guard.
11929 * common/gdb_unlinker.h: Rename include guard.
11930 * common/gdb_unique_ptr.h: Rename include guard.
11931 * common/gdb_tilde_expand.h: Rename include guard.
11932 * common/gdb_sys_time.h: Rename include guard.
11933 * common/gdb_string_view.h: Rename include guard.
11934 * common/gdb_splay_tree.h: Rename include guard.
11935 * common/gdb_setjmp.h: Rename include guard.
11936 * common/gdb_ref_ptr.h: Rename include guard.
11937 * common/gdb_optional.h: Rename include guard.
11938 * common/gdb_locale.h: Rename include guard.
11939 * common/gdb_assert.h: Rename include guard.
11940 * common/filtered-iterator.h: Rename include guard.
11941 * common/filestuff.h: Rename include guard.
11942 * common/fileio.h: Rename include guard.
11943 * common/environ.h: Rename include guard.
11944 * common/common-utils.h: Rename include guard.
11945 * common/common-types.h: Rename include guard.
11946 * common/common-regcache.h: Rename include guard.
11947 * common/common-inferior.h: Rename include guard.
11948 * common/common-gdbthread.h: Rename include guard.
11949 * common/common-exceptions.h: Rename include guard.
11950 * common/common-defs.h: Rename include guard.
11951 * common/common-debug.h: Rename include guard.
11952 * common/cleanups.h: Rename include guard.
11953 * common/buffer.h: Rename include guard.
11954 * common/btrace-common.h: Rename include guard.
11955 * common/break-common.h: Rename include guard.
11956 * cli/cli-utils.h: Rename include guard.
11957 * cli/cli-style.h: Rename include guard.
11958 * cli/cli-setshow.h: Rename include guard.
11959 * cli/cli-script.h: Rename include guard.
11960 * cli/cli-interp.h: Rename include guard.
11961 * cli/cli-decode.h: Rename include guard.
11962 * cli/cli-cmds.h: Rename include guard.
11963 * charset-list.h: Add include guard.
11964 * buildsym-legacy.h: Rename include guard.
11965 * bfin-tdep.h: Add include guard.
11966 * ax.h: Rename include guard.
11967 * arm-linux-tdep.h: Add include guard.
11968 * arm-fbsd-tdep.h: Add include guard.
11969 * arch/xtensa.h: Rename include guard.
11970 * arch/tic6x.h: Add include guard.
11971 * arch/i386.h: Add include guard.
11972 * arch/arm.h: Rename include guard.
11973 * arch/arm-linux.h: Rename include guard.
11974 * arch/arm-get-next-pcs.h: Rename include guard.
11975 * arch/amd64.h: Add include guard.
11976 * arch/aarch64-insn.h: Rename include guard.
11977 * arch-utils.h: Rename include guard.
11978 * annotate.h: Add include guard.
11979 * amd64-darwin-tdep.h: Rename include guard.
11980 * aarch64-linux-tdep.h: Add include guard.
11981 * aarch64-fbsd-tdep.h: Add include guard.
11982 * aarch32-linux-nat.h: Add include guard.
11983
ab9268d2
PW
119842019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11985
11986 * macrotab.c (macro_define_internal): New function that
11987 factorizes macro_define_object_internal and macro_define_function
11988 code.
11989 (macro_define_object_internal): Use macro_define_internal.
11990 (macro_define_function): Likewise.
11991
bb0da2b4
PW
119922019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11993
11994 * macrocmd.c (extract_identifier): Return
11995 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
11996 callers.
11997
424eb552
JB
119982019-02-06 John Baldwin <jhb@FreeBSD.org>
11999
12000 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
12001
1688cb29
TT
120022019-02-05 Tom Tromey <tom@tromey.com>
12003
12004 * target.c (target_stack::unpush): Move assertion earlier.
12005
b5eba2d8
TT
120062019-01-30 Tom Tromey <tom@tromey.com>
12007
12008 PR python/23615:
12009 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
12010 (gdbpy_parse_and_eval): Likewise.
12011 * python/python-internal.h (gdbpy_allow_threads): New class.
12012
7054e2ff
JB
120132019-01-28 John Baldwin <jhb@FreeBSD.org>
12014
12015 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
12016 (aarch64_fbsd_fpregmap): Move earlier.
12017 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
12018 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12019 instead of individual calls to trad_frame_set_reg_addr.
12020 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
12021 earlier.
12022 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
12023 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12024 instead of individual calls to trad_frame_set_reg_addr.
12025
36c25ffa
AH
120262019-01-28 Alan Hayward <alan.hayward@arm.com>
12027
12028 * CONTRIBUTE: Replace contribution list with wiki link.
12029
a0707f3c
TT
120302019-01-25 Tom Tromey <tom@tromey.com>
12031
12032 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
12033
0747795c
TT
120342019-01-25 Tom Tromey <tom@tromey.com>
12035
12036 * xtensa-linux-nat.c: Fix common/ includes.
12037 * xml-support.h: Fix common/ includes.
12038 * xml-support.c: Fix common/ includes.
12039 * x86-linux-nat.c: Fix common/ includes.
12040 * windows-nat.c: Fix common/ includes.
12041 * varobj.h: Fix common/ includes.
12042 * varobj.c: Fix common/ includes.
12043 * value.c: Fix common/ includes.
12044 * valops.c: Fix common/ includes.
12045 * utils.c: Fix common/ includes.
12046 * unittests/xml-utils-selftests.c: Fix common/ includes.
12047 * unittests/utils-selftests.c: Fix common/ includes.
12048 * unittests/unpack-selftests.c: Fix common/ includes.
12049 * unittests/tracepoint-selftests.c: Fix common/ includes.
12050 * unittests/style-selftests.c: Fix common/ includes.
12051 * unittests/string_view-selftests.c: Fix common/ includes.
12052 * unittests/scoped_restore-selftests.c: Fix common/ includes.
12053 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
12054 * unittests/scoped_fd-selftests.c: Fix common/ includes.
12055 * unittests/rsp-low-selftests.c: Fix common/ includes.
12056 * unittests/parse-connection-spec-selftests.c: Fix common/
12057 includes.
12058 * unittests/optional-selftests.c: Fix common/ includes.
12059 * unittests/offset-type-selftests.c: Fix common/ includes.
12060 * unittests/observable-selftests.c: Fix common/ includes.
12061 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
12062 * unittests/memrange-selftests.c: Fix common/ includes.
12063 * unittests/memory-map-selftests.c: Fix common/ includes.
12064 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
12065 * unittests/function-view-selftests.c: Fix common/ includes.
12066 * unittests/environ-selftests.c: Fix common/ includes.
12067 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
12068 * unittests/common-utils-selftests.c: Fix common/ includes.
12069 * unittests/cli-utils-selftests.c: Fix common/ includes.
12070 * unittests/array-view-selftests.c: Fix common/ includes.
12071 * ui-file.c: Fix common/ includes.
12072 * tui/tui-io.c: Fix common/ includes.
12073 * tracepoint.h: Fix common/ includes.
12074 * tracepoint.c: Fix common/ includes.
12075 * tracefile-tfile.c: Fix common/ includes.
12076 * top.h: Fix common/ includes.
12077 * top.c: Fix common/ includes.
12078 * thread.c: Fix common/ includes.
12079 * target/waitstatus.h: Fix common/ includes.
12080 * target/waitstatus.c: Fix common/ includes.
12081 * target.h: Fix common/ includes.
12082 * target.c: Fix common/ includes.
12083 * target-memory.c: Fix common/ includes.
12084 * target-descriptions.c: Fix common/ includes.
12085 * symtab.h: Fix common/ includes.
12086 * symfile.c: Fix common/ includes.
12087 * stap-probe.c: Fix common/ includes.
12088 * spu-linux-nat.c: Fix common/ includes.
12089 * sparc-nat.c: Fix common/ includes.
12090 * source.c: Fix common/ includes.
12091 * solib.c: Fix common/ includes.
12092 * solib-target.c: Fix common/ includes.
12093 * ser-unix.c: Fix common/ includes.
12094 * ser-tcp.c: Fix common/ includes.
12095 * ser-pipe.c: Fix common/ includes.
12096 * ser-base.c: Fix common/ includes.
12097 * selftest-arch.c: Fix common/ includes.
12098 * s12z-tdep.c: Fix common/ includes.
12099 * rust-exp.y: Fix common/ includes.
12100 * rs6000-aix-tdep.c: Fix common/ includes.
12101 * riscv-tdep.c: Fix common/ includes.
12102 * remote.c: Fix common/ includes.
12103 * remote-notif.h: Fix common/ includes.
12104 * remote-fileio.h: Fix common/ includes.
12105 * remote-fileio.c: Fix common/ includes.
12106 * regcache.h: Fix common/ includes.
12107 * regcache.c: Fix common/ includes.
12108 * record-btrace.c: Fix common/ includes.
12109 * python/python.c: Fix common/ includes.
12110 * python/py-type.c: Fix common/ includes.
12111 * python/py-inferior.c: Fix common/ includes.
12112 * progspace.h: Fix common/ includes.
12113 * producer.c: Fix common/ includes.
12114 * procfs.c: Fix common/ includes.
12115 * proc-api.c: Fix common/ includes.
12116 * printcmd.c: Fix common/ includes.
12117 * ppc-linux-nat.c: Fix common/ includes.
12118 * parser-defs.h: Fix common/ includes.
12119 * osdata.c: Fix common/ includes.
12120 * obsd-nat.c: Fix common/ includes.
12121 * nat/x86-linux.c: Fix common/ includes.
12122 * nat/x86-linux-dregs.c: Fix common/ includes.
12123 * nat/x86-dregs.h: Fix common/ includes.
12124 * nat/x86-dregs.c: Fix common/ includes.
12125 * nat/ppc-linux.c: Fix common/ includes.
12126 * nat/mips-linux-watch.h: Fix common/ includes.
12127 * nat/mips-linux-watch.c: Fix common/ includes.
12128 * nat/linux-waitpid.c: Fix common/ includes.
12129 * nat/linux-ptrace.h: Fix common/ includes.
12130 * nat/linux-ptrace.c: Fix common/ includes.
12131 * nat/linux-procfs.c: Fix common/ includes.
12132 * nat/linux-personality.c: Fix common/ includes.
12133 * nat/linux-osdata.c: Fix common/ includes.
12134 * nat/linux-namespaces.c: Fix common/ includes.
12135 * nat/linux-btrace.h: Fix common/ includes.
12136 * nat/linux-btrace.c: Fix common/ includes.
12137 * nat/fork-inferior.c: Fix common/ includes.
12138 * nat/amd64-linux-siginfo.c: Fix common/ includes.
12139 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
12140 * nat/aarch64-linux.c: Fix common/ includes.
12141 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
12142 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
12143 * namespace.h: Fix common/ includes.
12144 * mips-linux-tdep.c: Fix common/ includes.
12145 * minsyms.c: Fix common/ includes.
12146 * mi/mi-parse.h: Fix common/ includes.
12147 * mi/mi-main.c: Fix common/ includes.
12148 * mi/mi-cmd-env.c: Fix common/ includes.
12149 * memrange.h: Fix common/ includes.
12150 * memattr.c: Fix common/ includes.
12151 * maint.h: Fix common/ includes.
12152 * maint.c: Fix common/ includes.
12153 * main.c: Fix common/ includes.
12154 * machoread.c: Fix common/ includes.
12155 * location.c: Fix common/ includes.
12156 * linux-thread-db.c: Fix common/ includes.
12157 * linux-nat.c: Fix common/ includes.
12158 * linux-fork.c: Fix common/ includes.
12159 * inline-frame.c: Fix common/ includes.
12160 * infrun.c: Fix common/ includes.
12161 * inflow.c: Fix common/ includes.
12162 * inferior.h: Fix common/ includes.
12163 * inferior.c: Fix common/ includes.
12164 * infcmd.c: Fix common/ includes.
12165 * inf-ptrace.c: Fix common/ includes.
12166 * inf-child.c: Fix common/ includes.
12167 * ia64-linux-nat.c: Fix common/ includes.
12168 * i387-tdep.c: Fix common/ includes.
12169 * i386-tdep.c: Fix common/ includes.
12170 * i386-linux-tdep.c: Fix common/ includes.
12171 * i386-linux-nat.c: Fix common/ includes.
12172 * i386-go32-tdep.c: Fix common/ includes.
12173 * i386-fbsd-tdep.c: Fix common/ includes.
12174 * i386-fbsd-nat.c: Fix common/ includes.
12175 * guile/scm-type.c: Fix common/ includes.
12176 * guile/guile.c: Fix common/ includes.
12177 * go32-nat.c: Fix common/ includes.
12178 * gnu-nat.c: Fix common/ includes.
12179 * gdbthread.h: Fix common/ includes.
12180 * gdbarch-selftests.c: Fix common/ includes.
12181 * gdb_usleep.c: Fix common/ includes.
12182 * gdb_select.h: Fix common/ includes.
12183 * gdb_bfd.c: Fix common/ includes.
12184 * gcore.c: Fix common/ includes.
12185 * fork-child.c: Fix common/ includes.
12186 * findvar.c: Fix common/ includes.
12187 * fbsd-nat.c: Fix common/ includes.
12188 * event-top.c: Fix common/ includes.
12189 * event-loop.c: Fix common/ includes.
12190 * dwarf2read.c: Fix common/ includes.
12191 * dwarf2loc.c: Fix common/ includes.
12192 * dwarf2-frame.c: Fix common/ includes.
12193 * dwarf-index-cache.c: Fix common/ includes.
12194 * dtrace-probe.c: Fix common/ includes.
12195 * disasm-selftests.c: Fix common/ includes.
12196 * defs.h: Fix common/ includes.
12197 * csky-tdep.c: Fix common/ includes.
12198 * cp-valprint.c: Fix common/ includes.
12199 * cp-support.h: Fix common/ includes.
12200 * cp-support.c: Fix common/ includes.
12201 * corelow.c: Fix common/ includes.
12202 * completer.h: Fix common/ includes.
12203 * completer.c: Fix common/ includes.
12204 * compile/compile.c: Fix common/ includes.
12205 * compile/compile-loc2c.c: Fix common/ includes.
12206 * compile/compile-cplus-types.c: Fix common/ includes.
12207 * compile/compile-cplus-symbols.c: Fix common/ includes.
12208 * command.h: Fix common/ includes.
12209 * cli/cli-dump.c: Fix common/ includes.
12210 * cli/cli-cmds.c: Fix common/ includes.
12211 * charset.c: Fix common/ includes.
12212 * build-id.c: Fix common/ includes.
12213 * btrace.h: Fix common/ includes.
12214 * btrace.c: Fix common/ includes.
12215 * breakpoint.h: Fix common/ includes.
12216 * breakpoint.c: Fix common/ includes.
12217 * ax.h:
12218 (enum agent_op): Fix common/ includes.
12219 * ax-general.c (struct aop_map): Fix common/ includes.
12220 * ax-gdb.c: Fix common/ includes.
12221 * auxv.c: Fix common/ includes.
12222 * auto-load.c: Fix common/ includes.
12223 * arm-tdep.c: Fix common/ includes.
12224 * arch/riscv.c: Fix common/ includes.
12225 * arch/ppc-linux-common.c: Fix common/ includes.
12226 * arch/i386.c: Fix common/ includes.
12227 * arch/arm.c: Fix common/ includes.
12228 * arch/arm-linux.c: Fix common/ includes.
12229 * arch/arm-get-next-pcs.c: Fix common/ includes.
12230 * arch/amd64.c: Fix common/ includes.
12231 * arch/aarch64.c: Fix common/ includes.
12232 * arch/aarch64-insn.c: Fix common/ includes.
12233 * arch-utils.c: Fix common/ includes.
12234 * amd64-windows-tdep.c: Fix common/ includes.
12235 * amd64-tdep.c: Fix common/ includes.
12236 * amd64-sol2-tdep.c: Fix common/ includes.
12237 * amd64-obsd-tdep.c: Fix common/ includes.
12238 * amd64-nbsd-tdep.c: Fix common/ includes.
12239 * amd64-linux-tdep.c: Fix common/ includes.
12240 * amd64-linux-nat.c: Fix common/ includes.
12241 * amd64-fbsd-tdep.c: Fix common/ includes.
12242 * amd64-fbsd-nat.c: Fix common/ includes.
12243 * amd64-dicos-tdep.c: Fix common/ includes.
12244 * amd64-darwin-tdep.c: Fix common/ includes.
12245 * agent.c: Fix common/ includes.
12246 * ada-lang.h: Fix common/ includes.
12247 * ada-lang.c: Fix common/ includes.
12248 * aarch64-tdep.c: Fix common/ includes.
12249
2f5c153e
TT
122502019-01-25 Tom Tromey <tom@tromey.com>
12251
12252 * common/create-version.sh: Use common/version.h.
12253
adc6a863
PA
122542019-01-24 Pedro Alves <palves@redhat.com>
12255
12256 * infrun.c (signal_stop, signal_print, signal_program)
12257 (signal_catch, signal_pass): Now arrays instead of pointers.
12258 (update_signals_program_target, do_target_resume)
12259 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
12260 * linux-nat.c (linux_nat_target::pass_signals)
12261 (linux_nat_target::create_inferior, linux_nat_target::attach):
12262 Adjust.
12263 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
12264 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
12265 * procfs.c (procfs_target::pass_signals): Adjust.
12266 * record-full.c (record_full_target::resume): Adjust.
12267 * remote.c (remote_target::pass_signals)
12268 (remote_target::program_signals): Adjust.
12269 * target-debug.h (target_debug_print_signals): Now takes a
12270 gdb::array_view as parameter. Adjust.
12271 * target.h (target_ops) <pass_signals, program_signals>: Replace
12272 pointer and length parameters with gdb::array_view.
12273 (target_pass_signals, target_program_signals): Likewise.
12274 * target-delegates.c: Regenerate.
12275
3046d67a
PA
122762019-01-24 Pedro Alves <palves@redhat.com>
12277
12278 * common/forward-scope-exit.h
12279 (forward_scope_exit::forward_scope_exit): Pass arguments to
12280 m_bind_function directly, instead of creating a std::bind and
12281 copying that.
12282
353229bf
AH
122832019-01-24 Alan Hayward <alan.hayward@arm.com>
12284
12285 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12286 for static members.
12287 (pass_in_v_vfp_candidate): Likewise.
12288
311dc83a
TT
122892019-01-23 Tom Tromey <tom@tromey.com>
12290 Pedro Alves <palves@redhat.com>
12291
12292 * regcache.c (class regcache_invalidator): Remove.
12293 (regcache::raw_write): Use make_scope_exit.
12294
296bd123
TT
122952019-01-23 Tom Tromey <tom@tromey.com>
12296
12297 * ui-out.h (class ui_out_emit_type): Update comment.
12298
979a0d13
TT
122992019-01-23 Tom Tromey <tom@tromey.com>
12300
12301 * infrun.c (fetch_inferior_event): Update comment.
12302
d238133d
TT
123032019-01-23 Tom Tromey <tom@tromey.com>
12304 Pedro Alves <palves@redhat.com>
12305
12306 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
12307 parameter.
12308 (fetch_inferior_event): Use SCOPE_EXIT.
12309
12310
9885e6bb
TT
123112019-01-23 Tom Tromey <tom@tromey.com>
12312 Pedro Alves <palves@redhat.com>
12313
12314 * infrun.c (disable_thread_events): Delete.
12315 (stop_all_threads): Use SCOPE_EXIT.
12316
286526c1
TT
123172019-01-23 Tom Tromey <tom@tromey.com>
12318 Pedro Alves <palves@redhat.com>
12319
12320 * symfile.c: Include forward-scope-exit.h.
12321 (clear_symtab_users_cleanup): Replace forward declaration with
12322 a FORWARD_SCOPE_EXIT.
12323 (syms_from_objfile_1): Use the forward_scope_exit and
12324 gdb::optional instead of cleanup_function.
12325 (reread_symbols): Use the forward_scope_exit instead of
12326 cleanup_function.
12327 (clear_symtab_users_cleanup): Remove function.
12328
1db93f14
TT
123292019-01-23 Tom Tromey <tom@tromey.com>
12330 Pedro Alves <palves@redhat.com>
12331
12332 * linux-nat.c: Include scope-exit.h.
12333 (cleanup_target_stop): Remove.
12334 (linux_nat_target::static_tracepoint_markers_by_strid): Use
12335 SCOPE_EXIT.
12336
2cc83d1e
TT
123372019-01-23 Tom Tromey <tom@tromey.com>
12338 Pedro Alves <palves@redhat.com>
12339
12340 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
12341 (call_function_by_hand_dummy): Use SCOPE_EXIT.
12342
694c6bf5
TT
123432019-01-23 Tom Tromey <tom@tromey.com>
12344 Andrew Burgess <andrew.burgess@embecosm.com>
12345 Pedro Alves <palves@redhat.com>
12346
12347 * infrun.c (fetch_inferior_event): Use scope_exit.
12348 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
12349 * top.c (execute_command): Use scope_exit.
12350 * breakpoint.c (bpstat_do_actions): Use scope_exit.
12351 * utils.c (do_bpstat_clear_actions_cleanup)
12352 (make_bpstat_clear_actions_cleanup): Remove.
12353
4c41382a
TT
123542019-01-23 Tom Tromey <tom@tromey.com>
12355 Pedro Alves <palves@redhat.com>
12356
12357 * infrun.c: Include "common/scope-exit.h"
12358 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
12359 (wait_for_inferior): Use SCOPE_EXIT.
12360 (fetch_inferior_event): Use scope_exit.
12361
89f8fb50
TT
123622019-01-23 Tom Tromey <tom@tromey.com>
12363 Pedro Alves <palves@redhat.com>
12364
12365 * breakpoint.c (create_breakpoint): Remove cleanup.
12366
5419bdae
TT
123672019-01-23 Tom Tromey <tom@tromey.com>
12368 Andrew Burgess <andrew.burgess@embecosm.com>
12369 Pedro Alves <palves@redhat.com>
12370
e587ef42
PA
123712019-01-23 Pedro Alves <palves@redhat.com>
12372
12373 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
12374
77f0e74c
PA
123752019-01-23 Pedro Alves <palves@redhat.com>
12376 Andrew Burgess <andrew.burgess@embecosm.com>
12377
12378 * gdbthread.h: Include "common/forward-scope-exit.h".
12379 (scoped_finish_thread_state): Redefine custom class in terms of
12380 forward_scope_exit.
12381
5b9b3e53
PA
123822019-01-23 Pedro Alves <palves@redhat.com>
12383 Andrew Burgess <andrew.burgess@embecosm.com>
12384
12385 * common/forward-scope-exit.h: New file.
12386
54b65c9b
PA
123872019-01-23 Pedro Alves <palves@redhat.com>
12388 Andrew Burgess <andrew.burgess@embecosm.com>
12389 Tom Tromey <tom@tromey.com>
12390
12391 * common/scope-exit.h: New file.
12392
cf08fb29
PA
123932019-01-23 Pedro Alves <palves@redhat.com>
12394
12395 * common/preprocessor.h (ESC): Rename to ...
12396 (ESC_PARENS): ... this.
12397 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
12398 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
12399
ae73e2e2
TT
124002019-01-23 Tom Tromey <tom@tromey.com>
12401
12402 * language.h (class scoped_switch_to_sym_language_if_auto):
12403 Initialize m_lang in both cases.
12404
6594e122
AH
124052019-01-23 Alan Hayward <alan.hayward@arm.com>
12406
12407 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
12408 with XCNEW.
12409
a7c9855d
TT
124102019-01-22 Tom Tromey <tom@tromey.com>
12411
12412 * corelow.c: Do not include sys/file.h.
12413
93cc1d53
TT
124142019-01-22 Tom Tromey <tom@tromey.com>
12415
12416 * tui/tui-wingeneral.h: Include gdb_curses.h.
12417
38561778
TT
124182019-01-22 Tom Tromey <tom@tromey.com>
12419
12420 * source-cache.h (class source_cache) <get_source_lines,
12421 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
12422
37b3ab5b
TT
124232019-01-22 Tom Tromey <tom@tromey.com>
12424
12425 * remote-fileio.h (struct remote_target): Declare.
12426
3fabc016
TT
124272019-01-22 Tom Tromey <tom@tromey.com>
12428
12429 * python/py-arch.c: Do not include py-ref.h.
12430 * python/py-bpevent.c: Do not include py-ref.h.
12431 * python/py-cmd.c: Do not include py-ref.h.
12432 * python/py-continueevent.c: Do not include py-ref.h.
12433 * python/py-event.h: Do not include py-ref.h.
12434 * python/py-evtregistry.c: Do not include py-ref.h.
12435 * python/py-finishbreakpoint.c: Do not include py-ref.h.
12436 * python/py-frame.c: Do not include py-ref.h.
12437 * python/py-framefilter.c: Do not include py-ref.h.
12438 * python/py-function.c: Do not include py-ref.h.
12439 * python/py-infevents.c: Do not include py-ref.h.
12440 * python/py-linetable.c: Do not include py-ref.h.
12441 * python/py-objfile.c: Do not include py-ref.h.
12442 * python/py-param.c: Do not include py-ref.h.
12443 * python/py-prettyprint.c: Do not include py-ref.h.
12444 * python/py-progspace.c: Do not include py-ref.h.
12445 * python/py-symbol.c: Do not include py-ref.h.
12446 * python/py-symtab.c: Do not include py-ref.h.
12447 * python/py-type.c: Do not include py-ref.h.
12448 * python/py-unwind.c: Do not include py-ref.h.
12449 * python/py-utils.c: Do not include py-ref.h.
12450 * python/py-value.c: Do not include py-ref.h.
12451 * python/py-varobj.c: Do not include py-ref.h.
12452 * python/py-xmethods.c: Do not include py-ref.h.
12453 * python/python.c: Do not include py-ref.h.
12454 * varobj.c: Do not include py-ref.h.
12455
6b4d7774
TT
124562019-01-22 Tom Tromey <tom@tromey.com>
12457
12458 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
12459 keyword for bcache.
12460
7af7e9b5
TT
124612019-01-22 Tom Tromey <tom@tromey.com>
12462
12463 * compile/compile-cplus-types.c: Remove a comment by #include.
12464
951d1049
TT
124652019-01-22 Tom Tromey <tom@tromey.com>
12466
12467 * compile/gcc-c-plugin.h: Include compile-internal.h.
12468
d65d5705
TT
124692019-01-22 Tom Tromey <tom@tromey.com>
12470
12471 * stabsread.c (EXTERN): Do not define.
12472 (symnum, next_symbol_text_func, processing_gcc_compilation)
12473 (within_function, global_sym_chain, global_stabs)
12474 (previous_stab_code, this_object_header_files)
12475 (n_this_object_header_files)
12476 (n_allocated_this_object_header_files): Define.
12477 * stabsread.h (EXTERN): Never define. Use "extern".
12478
b6fb1ee5
PW
124792019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12480
12481 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
12482 history_value.
12483
be6d4f74
TT
124842019-01-21 Tom Tromey <tom@tromey.com>
12485
12486 * ui-out.c: Fix includes.
12487 * tui/tui-source.c: Fix includes.
12488 * target.c: Fix includes.
12489 * remote.c: Fix includes.
12490 * regcache.c: Fix includes.
12491 * python/py-block.c: Fix includes.
12492 * printcmd.c: Fix includes.
12493 * or1k-tdep.c: Fix includes.
12494 * mi/mi-main.c: Fix includes.
12495 * m32r-tdep.c: Fix includes.
12496 * csky-tdep.c: Fix includes.
12497 * compile/compile-cplus-types.c: Fix includes.
12498 * cli/cli-interp.c: Fix includes.
12499
73021deb
AH
125002019-01-21 Alan Hayward <alan.hayward@arm.com>
12501
12502 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12503 for padding.
12504
7932255d
TT
125052019-01-16 Tom Tromey <tom@tromey.com>
12506
12507 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
12508 earlier.
12509 (struct objfile) <msymbols_range>: Move from top level.
12510 <msymbols>: New method.
12511 (class objfile_msymbols): Remove.
12512 * symtab.c (default_collect_symbol_completion_matches_break_on):
12513 Update.
12514 * symmisc.c (dump_msymbols): Update.
12515 * stabsread.c (scan_file_globals): Update.
12516 * objc-lang.c (info_selectors_command, info_classes_command)
12517 (find_methods): Update.
12518 * minsyms.c (find_solib_trampoline_target): Update.
12519 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
12520 * coffread.c (coff_symfile_read): Update.
12521 * ada-lang.c (ada_lookup_simple_minsym)
12522 (ada_collect_symbol_completion_matches): Update.
12523
604b1bfb
TT
125242019-01-16 Tom Tromey <tom@tromey.com>
12525
12526 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
12527 type. Remove no-argument constructor.
12528 <iterator::operator++>: Simplify.
12529 <begin>: Update.
12530 <end>: Use minimal_symbol_count.
12531
f252c6d5
TT
125322019-01-16 Tom Tromey <tom@tromey.com>
12533
12534 * objfiles.h (struct objfile) <psymtabs>: New method.
12535 (class objfile_psymtabs): Remove.
12536 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
12537 typedef.
12538 <range>: New method.
12539 (require_partial_symbols): Change return type.
12540 * psymtab.c (require_partial_symbols)
12541 (psym_expand_symtabs_matching): Update.
12542 * mdebugread.c (parse_partial_symbols): Update.
12543 * dbxread.c (dbx_end_psymtab): Update.
12544
b669c953
TT
125452019-01-15 Tom Tromey <tom@tromey.com>
12546
12547 * symtab.c (lookup_objfile_from_block)
12548 (lookup_symbol_in_objfile_symtabs)
12549 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
12550 (find_line_symtab, info_sources_command)
12551 (default_collect_symbol_completion_matches_break_on)
12552 (make_source_files_completion_list): Update.
12553 * symmisc.c (print_objfile_statistics, dump_objfile)
12554 (maintenance_print_symbols, maintenance_info_symtabs)
12555 (maintenance_check_symtabs, maintenance_info_line_tables):
12556 Update.
12557 * source.c (select_source_symtab)
12558 (forget_cached_source_info_for_objfile): Update.
12559 * objfiles.h (class objfile_compunits): Remove.
12560 (struct objfile) <compunits_range>: New typedef.
12561 (compunits): New method.
12562 * objfiles.c (objfile_relocate1): Update.
12563 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12564 * maint.c (count_symtabs_and_blocks): Update.
12565 * linespec.c (iterate_over_all_matching_symtabs): Update.
12566 * cp-support.c (add_symbol_overload_list_qualified): Update.
12567 * coffread.c (coff_symtab_read): Update.
12568 * ada-lang.c (add_nonlocal_symbols)
12569 (ada_collect_symbol_completion_matches)
12570 (ada_add_global_exceptions): Update.
12571
7e955d83
TT
125722019-01-15 Tom Tromey <tom@tromey.com>
12573
12574 * progspace.h (program_space) <objfiles_safe_range>: New
12575 typedef.
12576 <objfiles_safe>: New method.
12577 * objfiles.h (class all_objfiles_safe): Remove.
12578 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
12579 * jit.c (jit_inferior_exit_hook): Update.
12580
2030c079
TT
125812019-01-17 Tom Tromey <tom@tromey.com>
12582
12583 * progspace.h (program_space) <objfiles_range>: New typedef.
12584 <objfiles>: New method.
12585 <objfiles_head>: Rename from objfiles.
12586 (object_files): Update.
12587 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
12588 * guile/scm-pretty-print.c
12589 (ppscm_find_pretty_printer_from_objfiles): Update.
12590 * guile/scm-objfile.c (gdbscm_objfiles): Update.
12591 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
12592 Update.
12593 * python/py-progspace.c (pspy_get_objfiles): Update.
12594 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12595 Update.
12596 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12597 (objfpy_lookup_objfile_by_build_id): Update.
12598 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12599 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12600 Update.
12601 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12602 (expand_symtab_containing_pc, lookup_objfile_from_block)
12603 (lookup_static_symbol, basic_lookup_transparent_type)
12604 (find_pc_sect_compunit_symtab, find_symbol_at_address)
12605 (find_line_symtab, info_sources_command)
12606 (default_collect_symbol_completion_matches_break_on)
12607 (make_source_files_completion_list, find_main_name): Update.
12608 * symmisc.c (print_symbol_bcache_statistics)
12609 (print_objfile_statistics, maintenance_print_symbols)
12610 (maintenance_print_msymbols, maintenance_print_objfiles)
12611 (maintenance_info_symtabs, maintenance_check_symtabs)
12612 (maintenance_expand_symtabs, maintenance_info_line_tables):
12613 Update.
12614 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
12615 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
12616 (map_overlay_command, unmap_overlay_command)
12617 (simple_overlay_update, expand_symtabs_matching)
12618 (map_symbol_filenames): Update.
12619 * symfile-debug.c (set_debug_symfile): Update.
12620 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
12621 Update.
12622 * source.c (select_source_symtab, forget_cached_source_info):
12623 Update.
12624 * solib.c (solib_read_symbols): Update.
12625 * solib-spu.c (append_ocl_sos): Update.
12626 * psymtab.c (maintenance_print_psymbols)
12627 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
12628 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
12629 * printcmd.c (info_symbol_command): Update.
12630 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
12631 Update.
12632 * objfiles.h (class all_objfiles): Remove.
12633 * objfiles.c (have_partial_symbols, have_full_symbols)
12634 (have_minimal_symbols, qsort_cmp, update_section_map)
12635 (shared_objfile_contains_address_p)
12636 (default_iterate_over_objfiles_in_search_order): Update.
12637 * objc-lang.c (info_selectors_command, info_classes_command)
12638 (find_methods): Update.
12639 * minsyms.c (find_solib_trampoline_target): Update.
12640 * maint.c (maintenance_info_sections)
12641 (maintenance_translate_address, count_symtabs_and_blocks):
12642 Update.
12643 * main.c (captured_main_1): Update.
12644 * linux-thread-db.c (try_thread_db_load_from_pdir)
12645 (has_libpthread): Update.
12646 * linespec.c (iterate_over_all_matching_symtabs)
12647 (search_minsyms_for_name): Update.
12648 * jit.c (jit_find_objf_with_entry_addr): Update.
12649 * hppa-tdep.c (find_unwind_entry)
12650 (hppa_lookup_stub_minimal_symbol): Update.
12651 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
12652 Update.
12653 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12654 (elf_gnu_ifunc_resolve_by_got): Update.
12655 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
12656 * dwarf-index-write.c (save_gdb_index_command): Update.
12657 * cp-support.c (add_symbol_overload_list_qualified): Update.
12658 * breakpoint.c (create_overlay_event_breakpoint)
12659 (create_longjmp_master_breakpoint)
12660 (create_std_terminate_master_breakpoint)
12661 (create_exception_master_breakpoint): Update.
12662 * blockframe.c (find_pc_partial_function): Update.
12663 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
12664 (ada_collect_symbol_completion_matches)
12665 (ada_add_global_exceptions): Update.
12666
776489e0
TT
126672019-01-17 Tom Tromey <tom@tromey.com>
12668
12669 * solib-target.c (lm_info_target_p): Remove typedef. Don't
12670 declare VEC.
12671 (solib_target_parse_libraries): Change return type.
12672 (library_list_start_segment, library_list_start_section)
12673 (library_list_end_library, library_list_start_library); Update.
12674 (solib_target_free_library_list): Remove.
12675 (solib_target_parse_libraries): Remove cleanup. Change return
12676 type.
12677 (solib_target_current_sos): Update.
12678
6471e7d2
TT
126792019-01-17 Tom Tromey <tromey@bapiya>
12680
12681 * valprint.c: Replace "the the" with "the".
12682 * symtab.c: Replace "the the" with "the".
12683 * solib.c: Replace "the the" with "the".
12684 * solib-dsbt.c: Replace "the the" with "the".
12685 * linespec.c: Replace "the the" with "the".
12686 * dwarf2loc.h: Replace "the the" with "the".
12687 * amd64-windows-tdep.c: Replace "the the" with "the".
12688 * aarch64-tdep.c: Replace "the the" with "the".
12689
c24bdb02
KS
126902019-01-16 Keith Seitz <keiths@redhat.com>
12691
12692 PR gdb/23773
12693 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
12694 <builder>: Rename to ..
12695 <m_builder>: ... this and make private.
12696 (dwarf2_cu::get_builder): New method. Change all users of
12697 `builder' to use this method.
12698 (dwarf2_start_symtab): Move to ...
12699 (dwarf2_cu::start_symtab): ... here. Update all callers
12700 (setup_type_unit_groups): Move to ...
12701 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
12702 callers.
12703 (dwarf2_cu::reset_builder): New method.
12704 (process_full_compunit, process_full_type_unit): Use
12705 dwarf2_cu::reset_builder.
12706 (follow_die_offset): Record the ancestor CU if it is different
12707 from the followed DIE's CU.
12708 (follow_die_sig_1): Likewise.
12709
8d64371b
TT
127102019-01-15 Tom Tromey <tom@tromey.com>
12711
12712 * remote.c (class remote_state) <buf>: Now a char_vector.
12713 <buf_size>: Remove.
12714 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
12715 parameter.
12716 (remote_target::getpkt_or_notif_sane_1)
12717 (remote_target::getpkt_sane)
12718 (remote_target::getpkt_or_notif_sane): Likewise.
12719 (class remote_target) <putpkt>: New overload.
12720 (remote_target::read_frame): Change type of "buf_p". Remove
12721 sizeof_p parameter.
12722 (packet_ok): New overload.
12723 (packet_check_result): New overload.
12724 Update all uses.
12725
bb277751
TT
127262019-01-14 Tom Tromey <tom@tromey.com>
12727
12728 * remote-notif.c (handle_notification, remote_notif_ack)
12729 (remote_notif_parse): Make "buf" const.
12730 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
12731 const.
12732 (remote_notif_parse, remote_notif_ack, handle_notification):
12733 Likewise.
12734 * remote.c (remote_notif_stop_parse): Make "buf" const.
12735 (remote_target::remote_parse_stop_reply): Make "buf" const.
12736 (remote_notif_stop_ack): Make "buf" const.
12737
05be00a8
TT
127382019-01-14 Tom Tromey <tom@tromey.com>
12739
12740 * remote.c (remote_console_output): Make parameter const.
12741
491adeca
TT
127422019-01-14 Tom Tromey <tom@tromey.com>
12743
12744 * target-debug.h (target_debug_print_signals): Constify.
12745 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
12746 * procfs.c (procfs_target::pass_signals): Update.
12747 * linux-nat.c (linux_nat_target::pass_signals): Update.
12748 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
12749 * target-delegates.c: Rebuild.
12750 * remote.c (remote_target::program_signals): Update.
12751 (remote_target::pass_signals): Update.
12752 * target.c (target_pass_signals): Constify argument.
12753 (target_program_signals): Likewise.
12754 * target.h (struct target_ops) <pass_signals, program_signals>:
12755 Constify argument.
12756 (target_pass_signals, target_program_signals): Constify argument.
12757
bbd94648
TT
127582019-01-14 Tom Tromey <tom@tromey.com>
12759
12760 PR tui/28819:
12761 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
12762
6f072a10
PFC
127632019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12764
12765 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
12766 field.
12767 * rs6000-tdep.c: Include reggroups.h.
12768 (IS_V_ALIAS_PSEUDOREG): Define.
12769 (rs6000_register_name): Return names for the "vX" aliases.
12770 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
12771 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
12772 aliases. Call default_register_reggroup_p for all other
12773 pseudo-registers.
12774 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
12775 New functions.
12776 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
12777 Handle "vX" aliases.
12778 (v_alias_pseudo_register_collect): New function.
12779 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
12780 (rs6000_gdbarch_init): Initialize "vX" aliases as
12781 pseudo-registers. Restore registration of
12782 rs6000_pseudo_register_reggroup_p with
12783 set_tdesc_pseudo_register_reggroup_p.
12784
1a782351
MF
127852019-01-13 Max Filippov <jcmvbkbc@gmail.com>
12786
12787 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
12788 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
12789 set_gdbarch_num_pseudo_regs.
12790
d73cff18
PW
127912019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12792
12793 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
12794 Remove arg prefixname, add do_set and do_show.
12795 Add member functions set_list and show_list.
12796 * cli/cli-style.c (class cli_style_option): Update accordingly.
12797 (style_set_list): Move to file scope.
12798 (style_show_list): Likewise.
12799 (set_style): Call help_list.
12800 (show_style): Call cmd_show_list.
12801 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
12802 Update to use the new macro.
12803
60a90376
JB
128042019-10-12 Joel Brobecker <brobecker@adacore.com>
12805
12806 * ada-lang.c (_initialize_ada_language): Expand the help text
12807 for the "catch exception" command.
12808
9d7c67bf
PW
128092019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12810
12811 * symtab.c (matching_obj_sections): Initialize obj,
12812 declare it closer to its usage.
12813
7cf47dc4
TT
128142019-01-10 Tom Tromey <tom@tromey.com>
12815
12816 * thread-iter.h (inf_threads_iterator): Use next_iterator.
12817 (basic_inf_threads_range): Remove.
12818 (inf_threads_range, inf_non_exited_threads_range)
12819 (safe_inf_threads_range): Use next_adapter.
12820
d3cb6808
KS
128212019-01-10 Keith Seitz <keiths@redhat.com>
12822
12823 PR gdb/23712
12824 PR symtab/23010
12825 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
12826 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
12827
63a20375
KS
128282019-01-10 Keith Seitz <keiths@redhat.com>
12829
12830 PR gdb/23712
12831 PR symtab/23010
12832 * dictionary.c (pending_to_vector): Remove.
12833 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12834 Remove _1 suffix, replacing functions of the same name. Update
12835 all callers.
12836 (dict_create_hashed, dict_create_hashed_expandable)
12837 (dict_create_linear, dict_create_linear_expandable, dict_free)
12838 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
12839 Make functions static.
12840
b026f593
KS
128412019-01-10 Keith Seitz <keiths@redhat.com>
12842
12843 PR gdb/23712
12844 PR symtab/23010
12845 * dictionary.h (struct dictionary): Replace declaration with
12846 multidictionary.
12847 (dict_create_hashed, dict_create_hashed_expandable)
12848 (dict_create_linear, dict_create_linear_expandable)
12849 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
12850 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
12851 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
12852 taking multidictionary argument.
12853 [ALL_DICT_SYMBOLS]: Update for multidictionary.
12854 * block.h (struct block) <dict>: Change to multidictionary
12855 and rename `multidict'.
12856 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
12857 symmisc.c: Update all dictionary references to multidictionary.
12858
c7748ee9
KS
128592019-01-10 Keith Seitz <keiths@redhat.com>
12860
12861 PR gdb/23712
12862 PR symtab/23010
12863 * dictionary.c: Include unordered_map.
12864 (pending_to_vector): New function.
12865 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12866 Rewrite the non-"_1" functions to take vector instead
12867 of linked list.
12868 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
12869 "new" _1 versions of the same name.
12870 (multidictionary): Define.
12871 (std::hash<enum language): New definition.
12872 (collate_pending_symbols_by_language, mdict_create_hashed)
12873 (mdict_create_hashed_expandable, mdict_create_linear)
12874 (mdict_create_linear_expandable, mdict_free)
12875 (find_language_dictionary, create_new_language_dictionary)
12876 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
12877 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
12878 (mdict_size, mdict_empty): New functions.
12879 * dictionary.h (mdict_iterator): Define.
12880
67aa1f3c
PA
128812019-01-10 Pedro Alves <palves@redhat.com>
12882
12883 * breakpoint.c (read_uploaded_action)
12884 (create_tracepoint_from_upload): Adjust to use
12885 gdb::unique_xmalloc_ptr.
12886 * ctf.c (ctf_write_uploaded_tp):
12887 (SET_ARRAY_FIELD): Use emplace_back.
12888 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
12889 * tracefile-tfile.c (tfile_write_uploaded_tp):
12890 * tracepoint.c (parse_tracepoint_definition): Adjust to use
12891 gdb::unique_xmalloc_ptr.
12892 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
12893 at_string, cond_string, cmd_strings>: Replace char pointers
12894 with gdb::unique_xmalloc_ptr.
12895
2f667667
PA
128962019-01-10 Pedro Alves <palves@redhat.com>
12897
12898 * solib-target.c (library_list_start_library): Don't xstrdup name.
12899
36cb7237
PA
129002019-01-10 Pedro Alves <palves@redhat.com>
12901
12902 * mdebugread.c (parse_partial_symbols): Use
12903 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
12904
da584958
AB
129052019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12906
12907 * linux-fork.c (scoped_switch_fork_info)
12908 <~scoped_switch_fork_info>: Fix incorrect variable name.
12909
1ef8573c
AB
129102019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12911
12912 * linux-fork.c (scoped_switch_fork_info)
12913 <scoped_switch_fork_info>: Make explicit.
12914 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
12915
8d7bcccb
TT
129162019-01-10 Tom Tromey <tom@tromey.com>
12917
12918 * objfiles.h (objfile::reset_psymtabs): Update.
12919 * objfiles.c (objfile::objfile): Update.
12920 * psymtab.h (psymtab_storage::obstack): Update.
12921 (psymtab_storage::m_obstack): Use gdb::optional.
12922 (class psymtab_storage): Update comment. Remove objfile
12923 parameter.
12924 * psymtab.c (psymtab_storage::psymtab_storage): Update.
12925
b596a3c7
TT
129262019-01-10 Tom Tromey <tom@tromey.com>
12927
12928 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
12929 <free_psymtabs>: Now private.
12930 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
12931 (allocate_psymtab): Use new method.
12932
a9342b62
TT
129332019-01-10 Tom Tromey <tom@tromey.com>
12934
12935 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
12936 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
12937 * mdebugread.c (parse_partial_symbols): Use
12938 allocate_dependencies.
12939 * dwarf2read.c (dwarf2_create_include_psymtab): Use
12940 allocate_dependencies.
12941 (process_psymtab_comp_unit_reader)
12942 (build_type_psymtab_dependencies): Likewise.
12943 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
12944
5af70966
TT
129452019-01-10 Tom Tromey <tom@tromey.com>
12946
12947 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
12948 PSYMBOL_SET_LANGUAGE.
12949 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
12950
5923a04c
TT
129512019-01-10 Tom Tromey <tom@tromey.com>
12952
12953 * psymtab.h (psymtab_storage::obstack): New method.
12954 <m_obstack>: Rename from obstack; now private.
12955 * psymtab.c (psymtab_storage): Update.
12956 * dwarf2read.c (create_addrmap_from_index)
12957 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
12958 Update.
12959
6d6a12bf
TT
129602019-01-10 Tom Tromey <tom@tromey.com>
12961
12962 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
12963 * objfiles.h (objfile::reset_psymtabs): New method.
12964
d320c2b5
TT
129652019-01-10 Tom Tromey <tom@tromey.com>
12966
12967 * symmisc.c (print_symbol_bcache_statistics): Update.
12968 (print_objfile_statistics): Update.
12969 * symfile.c (reread_symbols): Update.
12970 * psymtab.h (class psymtab_storage): New.
12971 * psymtab.c (psymtab_storage): New constructor.
12972 (~psymtab_storage): New destructor.
12973 (require_partial_symbols): Update.
12974 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
12975 (find_pc_sect_psymtab, find_pc_sect_psymbol)
12976 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
12977 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
12978 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
12979 (start_psymtab_common, end_psymtab_common)
12980 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
12981 (allocate_psymtab): Update.
12982 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
12983 Update.
12984 (dump_psymtab_addrmap, maintenance_print_psymbols)
12985 (maintenance_check_psymtabs): Update.
12986 (class objfile_psymtabs): Move to objfiles.h.
12987 * psympriv.h (discard_psymtab): Now inline.
12988 (psymtab_discarder::psymtab_discarder): Update.
12989 (psymtab_discarder::~psymtab_discarder): Update.
12990 (ALL_OBJFILE_PSYMTABS): Rewrite.
12991 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
12992 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
12993 Remove fields.
12994 <partial_symtabs>: New field.
12995 (class objfile_psymtabs): Move from psymtab.h. Update.
12996 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
12997 psymbol_cache.
12998 (objfile::~objfile): Don't destroy psymbol_cache.
12999 * mdebugread.c (parse_partial_symbols): Update.
13000 * dwarf2read.c (create_addrmap_from_index)
13001 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13002 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
13003 (add_partial_subprogram, dwarf2_ranges_read): Update.
13004 * dwarf-index-write.c (write_address_map)
13005 (write_one_signatured_type, recursively_write_psymbols)
13006 (class debug_names, class debug_names, write_psymtabs_to_index):
13007 Update.
13008
1d94a5a3
TT
130092019-01-10 Tom Tromey <tom@tromey.com>
13010
13011 * symtab.h (SYMBOL_SET_NAMES): Update.
13012 (symbol_set_names): Update.
13013 (MSYMBOL_SET_NAMES): Update.
13014 * symtab.c (symbol_set_names): Change argument to be an
13015 objfile_per_bfd_storage.
13016 * psymtab.c (add_psymbol_to_bcache): Update.
13017 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
13018
0f14768a
TT
130192019-01-10 Tom Tromey <tom@tromey.com>
13020
13021 * symtab.c (create_demangled_names_hash): Change argument to be an
13022 objfile_per_bfd_storage.
13023 (symbol_set_names): Update.
13024
6eee24ce
TT
130252019-01-10 Tom Tromey <tom@tromey.com>
13026
13027 * xcoffread.c (xcoff_initial_scan): Unconditionally call
13028 init_psymbol_list.
13029 * psymtab.c (init_psymbol_list): Do nothing if already called.
13030 * psympriv.h (init_psymbol_list): Add comment.
13031 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
13032 init_psymbol_list.
13033 * dbxread.c (dbx_symfile_read): Unconditionally call
13034 init_psymbol_list.
13035
75aedd27
TT
130362019-01-10 Tom Tromey <tom@tromey.com>
13037
13038 * xcoffread.c (scan_xcoff_symtab): Update.
13039 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
13040 "where".
13041 * mdebugread.c (parse_partial_symbols)
13042 (handle_psymbol_enumerators): Update.
13043 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
13044 * dbxread.c (read_dbx_symtab): Update.
13045 * psympriv.h (psymbol_placement): New enum.
13046 (add_psymbol_to_list): Update.
13047
939652a5
TT
130482019-01-10 Tom Tromey <tom@tromey.com>
13049
13050 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
13051 static_psymbols parameters.
13052 (scan_xcoff_symtab): Update.
13053 * psymtab.c (start_psymtab_common): Remove global_psymbols and
13054 static_psymbols parameters.
13055 * psympriv.h (start_psymtab_common): Update.
13056 * mdebugread.c (parse_partial_symbols): Update.
13057 * dwarf2read.c (create_partial_symtab): Update.
13058 * dbxread.c (read_dbx_symtab): Update.
13059 (start_psymtab): Remove global_psymbols and static_psymbols
13060 parameters.
13061
baa62830
TT
130622019-01-10 Tom Tromey <tom@tromey.com>
13063
13064 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
13065 * psymtab.c (allocate_psymtab): Add comment.
13066 * psympriv.h (allocate_psymtab): Add comment.
13067 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
13068 initializations.
13069 * dbxread.c (dbx_end_psymtab): Remove some initializations.
13070
0e8f53ba
TT
130712019-01-10 Tom Tromey <tom@tromey.com>
13072
13073 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13074 Don't declare.
13075 * mipsread.c: Include mdebugread.h.
13076 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13077 Declare.
13078 * elfread.c: Include mdebugread.h.
13079
b22a7c6a
TT
130802019-01-09 Tom Tromey <tom@tromey.com>
13081
13082 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
13083 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
13084 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
13085 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
13086 (psym_lookup_symbol, psym_find_last_source_symtab)
13087 (psym_forget_cached_source_info, psym_print_stats)
13088 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
13089 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
13090 (psym_map_matching_symbols, psym_expand_symtabs_matching)
13091 (psym_find_compunit_symtab_by_address)
13092 (maintenance_print_psymbols, maintenance_info_psymtabs)
13093 (maintenance_check_psymtabs): Use ranged for.
13094 * psymtab.h (class objfile_psymtabs): New.
13095 (require_partial_symbols): Return objfile_psymtabs.
13096 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
13097
3b9d3ac2
TT
130982019-01-09 Tom Tromey <tom@tromey.com>
13099
13100 * symfile.c (overlay_invalidate_all, find_pc_overlay)
13101 (find_pc_mapped_section, list_overlays_command)
13102 (map_overlay_command, unmap_overlay_command)
13103 (simple_overlay_update): Use all_objfiles.
13104 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
13105 * printcmd.c (info_symbol_command): Use all_objfiles.
13106 * objfiles.h (ALL_OBJSECTIONS): Remove.
13107 * maint.c (maintenance_translate_address): Use all_objfiles.
13108 * gcore.c (gcore_create_callback): Use all_objfiles.
13109 (objfile_find_memory_regions): Likewise.
13110
8b31193a
TT
131112019-01-09 Tom Tromey <tom@tromey.com>
13112
13113 * symtab.c (find_line_symtab, info_sources_command)
13114 (make_source_files_completion_list): Use objfile_compunits.
13115 * source.c (select_source_symtab): Use objfile_compunits.
13116 * objfiles.h (struct objfile): Update comment.
13117 (ALL_OBJFILES): Remove.
13118 (ALL_FILETABS): Remove.
13119 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
13120 objfile_compunits.
13121
d5da8b3c
TT
131222019-01-09 Tom Tromey <tom@tromey.com>
13123
13124 * symmisc.c (print_objfile_statistics, dump_objfile)
13125 (maintenance_print_symbols): Use compunit_filetabs.
13126 * source.c (forget_cached_source_info_for_objfile): Use
13127 compunit_filetabs.
13128 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
13129 (ALL_FILETABS): Use compunit_filetabs.
13130 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
13131 * coffread.c (coff_symtab_read): Use compunit_filetabs.
13132
5accd1a0
TT
131332019-01-09 Tom Tromey <tom@tromey.com>
13134
13135 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
13136 (compunit_filetabs): New.
13137 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
13138 compunit_filetabs.
13139 (info_sources_command, make_source_files_completion_list): Remove
13140 declaration.
13141 * symmisc.c (print_objfile_statistics, dump_objfile)
13142 (maintenance_print_symbols): Remove declaration.
13143 (maintenance_info_symtabs): Use compunit_filetabs.
13144 (maintenance_info_line_tables): Likewise.
13145 * source.c (select_source_symtab): Change local variable name.
13146 (forget_cached_source_info_for_objfile): Remove declaration.
13147 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
13148 * objfiles.c (objfile_relocate1): Remove declaration.
13149 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13150 declaration.
13151 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
13152 * coffread.c (coff_symtab_read): Remove declaration.
13153 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
13154 compunit_filetabs.
13155
d8aeb77f
TT
131562019-01-09 Tom Tromey <tom@tromey.com>
13157
13158 * symtab.c (lookup_objfile_from_block)
13159 (find_pc_sect_compunit_symtab, search_symbols)
13160 (default_collect_symbol_completion_matches_break_on): Use
13161 objfile_compunits.
13162 * objfiles.h (ALL_COMPUNITS): Remove.
13163 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
13164 * cp-support.c (add_symbol_overload_list_qualified): Use
13165 objfile_compunits.
13166 * ada-lang.c (ada_collect_symbol_completion_matches)
13167 (ada_add_global_exceptions): Use objfile_compunits.
13168
592553c4
TT
131692019-01-09 Tom Tromey <tom@tromey.com>
13170
13171 * source.c (select_source_symtab)
13172 (forget_cached_source_info_for_objfile): Remove declaration.
13173 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13174 declaration.
13175 * maint.c (count_symtabs_and_blocks): Remove declaration.
13176 * cp-support.c (add_symbol_overload_list_qualified): Remove
13177 declaration.
13178 * coffread.c (coff_symtab_read): Remove declaration.
13179 * symtab.c (lookup_symbol_in_objfile_symtabs)
13180 (basic_lookup_transparent_type_1): Use objfile_compunits.
13181 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
13182 (info_sources_command, search_symbols)
13183 (default_collect_symbol_completion_matches_break_on)
13184 (make_source_files_completion_list): Remove declaration.
13185 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
13186 (ada_collect_symbol_completion_matches)
13187 (ada_add_global_exceptions): Remove declaration.
13188 * linespec.c (iterate_over_all_matching_symtabs): Use
13189 objfile_compunits.
13190 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
13191 (class objfile_compunits): New.
13192 (ALL_COMPUNITS): Use objfile_compunits.
13193 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
13194 (maintenance_check_symtabs, maintenance_info_line_tables): Use
13195 objfile_compunits.
13196 * objfiles.c (objfile_relocate1): Use objfile_compunits.
13197
5325b9bf
TT
131982019-01-09 Tom Tromey <tom@tromey.com>
13199
13200 * symtab.c (search_symbols)
13201 (default_collect_symbol_completion_matches_break_on): Use
13202 objfile_msymbols.
13203 * ada-lang.c (ada_lookup_simple_minsym)
13204 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
13205 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
13206 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
13207 objfile_msymbols.
13208 * coffread.c (coff_symfile_read): Use objfile_msymbols.
13209 * symmisc.c (dump_msymbols): Use objfile_msymbols.
13210 * objc-lang.c (find_methods): Use objfile_msymbols.
13211 (info_selectors_command, info_classes_command): Likewise.
13212 * stabsread.c (scan_file_globals): Use objfile_msymbols.
13213 * objfiles.h (class objfile_msymbols): New.
13214 (ALL_OBJFILE_MSYMBOLS): Remove.
13215 (ALL_MSYMBOLS): Remove.
13216
cac85af2
TT
132172019-01-09 Tom Tromey <tom@tromey.com>
13218
13219 * common/next-iterator.h (next_adapter): Add Iterator template
13220 parameter.
13221 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
13222 (class all_objfiles_safe): New.
13223 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
13224 * objfiles.c (put_objfile_before): Update comment.
13225 (add_separate_debug_objfile): Likewise.
13226 (free_all_objfiles): Use all_objfiles_safe.
13227 (objfile_purge_solibs): Likewise.
13228
aed57c53
TT
132292019-01-09 Tom Tromey <tom@tromey.com>
13230
13231 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13232 (expand_symtab_containing_pc, lookup_static_symbol)
13233 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
13234 (find_symbol_at_address, find_line_symtab, find_main_name): Use
13235 all_objfiles.
13236 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
13237 * breakpoint.c (create_overlay_event_breakpoint)
13238 (create_longjmp_master_breakpoint)
13239 (create_std_terminate_master_breakpoint)
13240 (create_exception_master_breakpoint): Use all_objfiles.
13241 * linux-thread-db.c (try_thread_db_load_from_pdir)
13242 (has_libpthread): Use all_objfiles.
13243 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
13244 * linespec.c (iterate_over_all_matching_symtabs)
13245 (search_minsyms_for_name): Use all_objfiles.
13246 * maint.c (maintenance_info_sections): Use all_objfiles.
13247 * main.c (captured_main_1): Use all_objfiles.
13248 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
13249 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
13250 * guile/scm-pretty-print.c
13251 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
13252 * solib-spu.c (append_ocl_sos): Use all_objfiles.
13253 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
13254 (maintenance_print_msymbols): Use all_objfiles.
13255 * source.c (select_source_symtab): Use all_objfiles.
13256 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
13257 * symfile.c (remove_symbol_file_command)
13258 (expand_symtabs_matching, map_symbol_filenames): Use
13259 all_objfiles.
13260 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
13261 all_objfiles.
13262 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
13263 * objc-lang.c (find_methods): Use all_objfiles.
13264 * objfiles.c (have_partial_symbols, have_full_symbols)
13265 (have_minimal_symbols, qsort_cmp)
13266 (default_iterate_over_objfiles_in_search_order): Use
13267 all_objfiles.
13268 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
13269 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
13270 (maintenance_check_psymtabs): Use all_objfiles.
13271 (ALL_PSYMTABS): Remove.
13272 * compile/compile-object-run.c (do_module_cleanup): Use
13273 all_objfiles.
13274 * blockframe.c (find_pc_partial_function): Use all_objfiles.
13275 * cp-support.c (add_symbol_overload_list_qualified): Use
13276 all_objfiles.
13277 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13278 Use all_objfiles.
13279 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
13280 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
13281 all_objfiles.
13282 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13283 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
13284 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13285 Uses all_objfiles.
13286 * solib.c (solib_read_symbols): Use all_objfiles
13287
99d89cde
TT
132882019-01-09 Tom Tromey <tom@tromey.com>
13289
13290 * probe.c (parse_probes_in_pspace): Use all_objfiles.
13291 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
13292 all_objfiles.
13293 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
13294 * symmisc.c (print_symbol_bcache_statistics)
13295 (print_objfile_statistics, maintenance_print_objfiles)
13296 (maintenance_info_symtabs, maintenance_check_symtabs)
13297 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
13298 all_objfiles.
13299 * source.c (forget_cached_source_info): Use all_objfiles.
13300 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
13301 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13302 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
13303 * objfiles.c (update_section_map): Use all_objfiles.
13304 (shared_objfile_contains_address_p): Likewise.
13305 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
13306 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
13307
21708325
TT
133082019-01-09 Tom Tromey <tom@tromey.com>
13309
13310 * common/next-iterator.h: New file.
13311 * objfiles.h (class all_objfiles): New.
13312 (struct objfile_iterator): New.
13313
669e09f6
PW
133142019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13315
13316 * NEWS: Move the description of the changed "frame", "select-frame",
13317 and "info frame" commands to the Changed commands section.
13318
041be526
SM
133192019-01-09 Simon Marchi <simon.marchi@ericsson.com>
13320
13321 * gdbtypes.c (check_stub_method_group): Remove handling of old
13322 mangling schemes.
13323 * linespec.c (find_methods): Likewise.
13324 * stabsread.c (read_member_functions): Likewise.
13325 * valops.c (search_struct_method): Likewise.
13326 (value_struct_elt_for_reference): Likewise.
13327 * NEWS: Mention this change.
13328
0e2a2133
AB
133292019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13330
13331 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
13332 print_source_lines.
13333 * source.c (print_source_lines_base): Update line number check.
13334 (print_source_lines): New function.
13335 (source_lines_range::source_lines_range): New function.
13336 * source.h (class source_lines_range): New class.
13337 (print_source_lines): New declaration.
13338
1055a3b4
PW
133392019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13340
13341 * linespec.c (linespec_state_destructor): Free self->canonical_names.
13342
cfeadda5
TT
133432019-01-08 Tom Tromey <tom@tromey.com>
13344 Simon Marchi <simon.marchi@ericsson.com>
13345
13346 PR gdb/24060
13347 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
13348 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
13349 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13350 * f-exp.y (DOLLAR_VARIABLE): Likewise.
13351 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
13352 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13353
583068ca
AB
133542019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13355
13356 * source.c (select_source_symtab): Move header comment to
13357 declaration in source.h.
13358 (forget_cached_source_info_for_objfile): Likewise.
13359 (forget_cached_source_info): Likewise.
13360 (identify_source_line): Likewise.
13361 * source.h (identify_source_line): Move declaration from symtab.h
13362 and add comment from source.c
13363 (print_source_lines): Likewise.
13364 (forget_cached_source_info_for_objfile): Likewise.
13365 (forget_cached_source_info): Likewise.
13366 (select_source_symtab): Likewise.
13367 (enum print_source_lines_flag): Move definition from symtab.h.
13368 * symtab.h (identify_source_line): Move declaration to source.h.
13369 (print_source_lines): Likewise.
13370 (forget_cached_source_info_for_objfile): Likewise.
13371 (forget_cached_source_info): Likewise.
13372 (select_source_symtab): Likewise.
13373 (enum print_source_lines_flag): Move definition to source.h.
13374 * tui/tui-hooks.c: Add 'source.h' include.
13375
ec98a4ad
AB
133762019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13377
13378 * source.c (print_source_lines_base): Handle requests to print
13379 reverse line number sequences, and guard against empty lines
13380 string.
13381
62ea19c1
AB
133822019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13383
13384 * source.c (print_source_lines_base): Fix skip of '\r' if next
13385 character is '\n'.
13386
9d30e1fd
TT
133872019-01-06 Tom Tromey <tom@tromey.com>
13388
13389 * c-exp.y (struct c_parse_state) <macro_original_text,
13390 expansion_obstack>: New member.
13391 (macro_original_text, expansion_obstack): Remove globals.
13392 (scan_macro_expansion, scanning_macro_expansion)
13393 (finished_macro_expansion): Update.
13394 (scan_macro_cleanup): Remove.
13395 (yylex, c_parse): Update.
13396
c65bac38
TT
133972019-01-06 Tom Tromey <tom@tromey.com>
13398
13399 * c-exp.y (struct c_parse_state) <strings>: New member.
13400 (operator_stoken): Update.
13401
02e12e38
TT
134022019-01-06 Tom Tromey <tom@tromey.com>
13403
13404 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
13405 (union type_stack_elt) <typelist_val>: Now a pointer to
13406 std::vector.
13407 (type_stack_cleanup): Don't declare.
13408 (push_typelist): Update.
13409 * parse.c (pop_typelist): Return a std::vector.
13410 (push_typelist): Take a std::vector.
13411 (follow_types): Update. Do not free args.
13412 (type_stack_cleanup): Remove.
13413 * c-exp.y (struct c_parse_state): New.
13414 (cpstate): New global.
13415 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
13416 (nonempty_typelist): Update.
13417 (func_mod): Create a new vector.
13418 (c_parse): Create a c_parse_state.
13419 (check_parameter_typelist): Do not delete params.
13420 (function_method): Update. Do not delete type_list.
13421
f097f5ad
TT
134222019-01-06 Tom Tromey <tom@tromey.com>
13423
13424 PR gdb/28155:
13425 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
13426 check_typedef.
13427 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
13428 (print_return_value): Likewise.
13429
d2adf9f1
TT
134302019-01-05 Tom Tromey <tom@tromey.com>
13431
13432 * contrib/cleanup_check.py: Remove.
13433 * contrib/gcc-with-excheck: Remove.
13434 * contrib/exsummary.py: Remove.
13435 * contrib/excheck.py: Remove.
13436
2eab46b1
JB
134372019-01-05 Joel Brobecker <brobecker@adacore.com>
13438
13439 * thread.c (delete_thread_1): Add gdb_assert that THR is not
13440 NULL. Initialize tpprev to NULL instead of assigning it
13441 to NULL on the next statement.
13442 * windows-nat.c (windows_delete_thread): Remove check for
13443 main_thread_id before printing thread exit notifications.
13444 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
13445 Remove thread ID check against main_thread_id.
13446 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
13447 windows_delete_thread.
13448 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
13449
48c5e7e2
TT
134502019-01-04 Tom Tromey <tom@tromey.com>
13451
13452 * compile/compile.c (_initialize_compile): Use upper case for
13453 metasyntactic variables.
13454 * symmisc.c (_initialize_symmisc): Use upper case for
13455 metasyntactic variables.
13456 * psymtab.c (_initialize_psymtab): Use upper case for
13457 metasyntactic variables.
13458 * demangle.c (demangle_command): Use upper case for metasyntactic
13459 variables.
13460 (_initialize_demangler): Likewise.
13461 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
13462 variables.
13463
986041cd
TT
134642019-01-03 Tom Tromey <tom@tromey.com>
13465
13466 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
13467
7c711119
TT
134682019-01-03 Tom Tromey <tom@tromey.com>
13469
13470 * python/py-symtab.c (salpy_str): Update.
13471 (struct salpy_sal_object) <symtab>: Now a PyObject.
13472 (salpy_dealloc): Update.
13473 (del_objfile_sal): Use gdbpy_ref.
13474
1b20edf0
TT
134752019-01-03 Tom Tromey <tom@tromey.com>
13476
13477 * python/py-type.c (convert_field): Use new_reference. Return
13478 gdbpy_ref.
13479 (make_fielditem): Return gdbpy_ref.
13480 (typy_fields): Update.
13481 (typy_getitem): Update.
13482 (field_name): Return gdbpy_ref. Use new_reference.
13483 (typy_iterator_iternext): Update.
13484
ea41325b
TT
134852019-01-03 Tom Tromey <tom@tromey.com>
13486
13487 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
13488
2a3c71d6
TT
134892019-01-03 Tom Tromey <tom@tromey.com>
13490
13491 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
13492 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
13493 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
13494 (pspy_set_frame_filters, pspy_set_frame_unwinders)
13495 (pspy_set_type_printers): Likewise.
13496 * python/py-function.c (fnpy_init): Use gdbpy_ref.
13497 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
13498 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
13499 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
13500 (objfpy_set_type_printers): Likewise.
13501
5c329e6a
TT
135022019-01-03 Tom Tromey <tom@tromey.com>
13503
13504 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
13505 (gdbpy_print_stack): Use gdbpy_err_fetch.
13506 * python/python-internal.h (class gdbpy_err_fetch): New class.
13507 (class gdbpy_enter) <m_error_type, m_error_value,
13508 m_error_traceback>: Remove.
13509 <m_error>: New member.
13510 (gdbpy_exception_to_string): Don't declare.
13511 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
13512 * python/py-value.c (convert_value_from_python): Use
13513 gdbpy_err_fetch.
13514 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
13515 gdbpy_exception_to_string.
13516 (gdbpy_handle_exception): Use gdbpy_err_fetch.
13517 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
13518 gdbpy_err_fetch.
13519
169bb27b
AB
135202019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13521
13522 * linux-nat.c (delete_lwp_cleanup): Delete.
13523 (struct lwp_deleter): New struct.
13524 (lwp_info_up): New typedef.
13525 (linux_nat_target::follow_fork): Delete cleanup, and make use of
13526 lwp_info_up.
13527
a07c8880
AB
135282019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13529
13530 * linux-fork.c (class scoped_switch_fork_info): New class.
13531 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
13532
26089c49
AB
135332019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13534
13535 * valops.c (find_overload_match): Remove use of null_cleanup, and
13536 calls to do_cleanups.
13537
06d3e5b0
AB
135382019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13539
13540 * compile/compile-cplus-types.c
13541 (compile_cplus_instance::decl_name): Handle changes to
13542 cp_func_name.
13543 * cp-support.c (cp_func_name): Update header comment, update
13544 return type.
13545 * cp-support.h (cp_func_name): Update return type in declaration.
13546 * valops.c (find_overload_match): Move temp_func local to top
13547 level of function and change its type. Use temp_func to hold and
13548 delete temporary string obtained from cp_func_name.
13549
66644cd3
AB
135502019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13551
13552 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
13553 gdb::char_vector, remove cleanup, and update uses of `msg`.
13554
592d8c0a
JW
135552019-01-03 Jim Wilson <jimw@sifive.com>
13556
13557 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
13558
c55d06ec
TT
135592019-01-02 Tom Tromey <tom@tromey.com>
13560
13561 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
13562 (tdesc_parse_xml): Remove cleanups.
13563 * target-descriptions.h (make_cleanup_free_target_description):
13564 Don't declare.
13565 (target_desc_deleter): New struct.
13566 (target_desc_up): New typedef.
13567 * target-descriptions.c (target_desc_deleter::operator()): Rename
13568 from free_target_description.
13569 (make_cleanup_free_target_description): Remove.
13570
3a6ae42d
TT
135712019-01-02 Tom Tromey <tom@tromey.com>
13572
13573 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
13574 constructor, destructor.
13575 (linespec_parser): Remove typedef.
13576 (~linespec_parser): Rename from linespec_parser_delete.
13577 (linespec_lex_to_end, linespec_complete_label)
13578 (linespec_complete): Update.
13579 (decode_line_full): Remove cleanups.
13580 (decode_line_1): Update.
13581
61fd3e73
TT
135822019-01-02 Tom Tromey <tom@tromey.com>
13583
13584 * python/python-internal.h (inferior_to_inferior_object): Change
13585 return type.
13586 * python/py-exitedevent.c (create_exited_event_object): Update.
13587 * python/py-inferior.c (inferior_to_inferior_object): Return
13588 gdbpy_ref.
13589 (python_new_inferior, python_inferior_deleted)
13590 (thread_to_thread_object, delete_thread_object)
13591 (build_inferior_list, gdbpy_selected_inferior): Update.
13592 * python/py-infthread.c (create_thread_object): Update. Also fail
13593 if inferior_to_inferior_object fails.
13594
d20172fc
SM
135952019-01-02 Simon Marchi <simon.marchi@ericsson.com>
13596
13597 * inferior.h (class inferior) <displaced_step_state>: New field.
13598 * infrun.h (struct displaced_step_state): Move here from
13599 infrun.c. Initialize fields, add constructor.
13600 <inf>: Remove field.
13601 <reset>: New method.
13602 * infrun.c (struct displaced_step_inferior_state): Move to
13603 infrun.h.
13604 (displaced_step_inferior_states): Remove.
13605 (get_displaced_stepping_state): Adust.
13606 (displaced_step_in_progress_any_inferior): Adjust.
13607 (displaced_step_in_progress_thread): Adjust.
13608 (displaced_step_in_progress): Adjust.
13609 (add_displaced_stepping_state): Remove.
13610 (get_displaced_step_closure_by_addr): Adjust.
13611 (remove_displaced_stepping_state): Remove.
13612 (infrun_inferior_exit): Call displaced_step_state.reset.
13613 (use_displaced_stepping): Don't check for NULL.
13614 (displaced_step_prepare_throw): Call
13615 get_displaced_stepping_state.
13616 (displaced_step_fixup): Don't check for NULL.
13617 (prepare_for_detach): Don't check for NULL.
13618
e3319240
PW
136192019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13620
13621 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
13622 in case of call that did not complete.
13623
5d36dfb9
AU
136242019-01-02 Andrey Utkin <autkin@undo.io>
13625
13626 * symfile.c (find_separate_debug_file): Fix search of debug files for
13627 remote debuggee.
13628
8833fbf0
TT
136292019-01-02 Tom Tromey <tom@tromey.com>
13630
13631 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
13632 indentation.
13633 * python/py-frame.c (frapy_older): Remove cast.
13634 (frapy_newer): Likewise.
13635 * python/py-breakpoint.c (local_setattro): Remove cast.
13636 * python/py-arch.c (archpy_name): Remove local variable.
13637 * python/py-type.c (gdbpy_lookup_type): Remove cast.
13638
4ada3dfd
JB
136392019-01-02 Joel Brobecker <brobecker@adacore.com>
13640
13641 * unittests/basic_string_view/element_access/char/empty.cc:
13642 Fix year range in copyright header.
13643
113b7b81
AB
136442019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
13645
13646 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
13647 Delete.
13648 <operator==>: Update with for removed field.
13649 <hash>: Likewise.
13650 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
13651 <isa_features>: ...this.
13652 <abi_features>: New field.
13653 (riscv_isa_flen): Update comment.
13654 (riscv_abi_xlen): New declaration.
13655 (riscv_abi_flen): New declaration.
13656 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
13657 isa_features.
13658 (riscv_abi_xlen): New function.
13659 (riscv_isa_flen): Update to get answer from isa_features.
13660 (riscv_abi_flen): New function.
13661 (riscv_has_fp_abi): Update to get answer from abi_features.
13662 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
13663 xlen and flen.
13664 (riscv_call_info) <xlen, flen>: Update comment.
13665 (riscv_call_arg_struct): Remove invalid assertions
13666 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
13667 is removed.
13668 (riscv_gdbarch_init): Gather isa features and abi features
13669 separately, ensure both match on the gdbarch when reusing an old
13670 gdbarch. Relax an error check to allow 32-bit abi float to run on
13671 a target with 64-bit float hardware.
13672
b18ca514
PW
136732019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13674
13675 * source.c (search_command_helper): Stop reverse search
13676 when line 1 has been searched.
13677
ec70d8db
PW
136782019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13679
13680 * record-full.c (record_full_base_target::close): Rewrite
13681 record_full_core_buf_list free logic.
13682
5b38f9c1
PW
136832019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13684
13685 * break-catch-syscall.c (print_one_catch_syscall): xfree
13686 the last text.
13687
66d91b39
JB
136882019-01-01 Joel Brobecker <brobecker@adacore.com>
13689
13690 * top.c (print_gdb_version): Update Copyright year in version
13691 message.
13692
42a4f53d
JB
136932019-01-01 Joel Brobecker <brobecker@adacore.com>
13694
13695 Update copyright year range in all GDB files.
13696
7e955d83 136972019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 13698
5bbd631d 13699 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 13700
5bbd631d 13701For older changes see ChangeLog-2018.
c906108c
SS
13702\f
13703Local Variables:
13704mode: change-log
13705left-margin: 8
13706fill-column: 74
13707version-control: never
57da7796 13708coding: utf-8
c906108c 13709End:
5bbd631d 13710
This page took 3.32064 seconds and 4 git commands to generate.