Remove tui_default_win_viewport_height
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6d7fd9aa
TT
12019-10-09 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
4 window height directly.
5 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
6 declare.
7 * tui/tui-layout.c (tui_default_win_height): Remove.
8 (tui_default_win_viewport_height): Remove.
9
d2dd1084
TT
102019-10-09 Tom Tromey <tom@tromey.com>
11
12 * tui/tui.h: Remove comments.
13
cff32449
TV
142019-10-09 Tom de Vries <tdevries@suse.de>
15
16 * python/lib/gdb/printer/bound_registers.py: Use
17 '^builtin_type_bound128' as regexp argument for
18 add_builtin_pretty_printer.
19
6a25e8a2
CB
202019-10-09 Christian Biesinger <cbiesinger@google.com>
21
22 * guile/guile.c (guile_extension_script_ops): Remove forward
23 declaration and mark as static.
24 (guile_script_ops): Likewise.
25 (extension_language_guile): Move further down in the file so
26 it can reference the definitions for guile_{extension_,}script_ops.
27
6d9d6da4
AA
282019-10-09 Andreas Arnez <arnez@linux.ibm.com>
29
30 * s390-tdep.c (390_process_record): Handle new arch13 instructions
31 except SORTL, DFLTCC, and KDSA.
32
3abea05d
TT
332019-10-08 Tom Tromey <tromey@adacore.com>
34
35 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
36 (struct safe_symbol_file_add_args): Remove.
37
dde996e2
TT
382019-10-08 Tom Tromey <tromey@adacore.com>
39
40 * windows-nat.c: Don't include buildsym-legacy.h.
41
cd6fdaa1
TT
422019-10-08 Tom Tromey <tromey@adacore.com>
43
44 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
45
79bb1944
CB
462019-10-08 Christian Biesinger <cbiesinger@google.com>
47
48 * gdbtypes.c (overload_debug): Move comment to header.
49 * gdbtypes.h (overload_debug): Declare.
50 * valops.c: Remove declaration of overload_debug, instead
51 include gdbtypes.h.
52
34916edc
CB
532019-10-08 Christian Biesinger <cbiesinger@google.com>
54
55 * language.c (show_language_command): Pass lang_frame_mismatch_warn
56 through _().
57 (lang_frame_mismatch_warn): Make const, mark with N_(), and
58 move comment...
59 * language.h (lang_frame_mismatch_warn): ... here. Also add
60 declaration.
61 * top.c (lang_frame_mismatch_warn): Remove declaration.
62 (check_frame_language_change): Pass lang_frame_mismatch_warn
63 through _().
64
bad5c026
CB
652019-10-07 Christian Biesinger <cbiesinger@google.com>
66
67 * c-lang.h (vtbl_ptr_name): Declare.
68 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
69 it from the header.
70 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
71
51f1fdc3
CB
722019-10-07 Christian Biesinger <cbiesinger@google.com>
73
74 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
75 gdb_static_assert.
76
30d1f018
WP
772019-10-07 Weimin Pan <weimin.pan@oracle.com>
78
606813d5
WP
79 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
80 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
81 * ctfread.c: New file.
82 * ctfread.h: New file.
83 * elfread.c: Include ctfread.h.
84 (struct elfinfo text_p): New member ctfsect.
85 (elf_locate_sections): Mark CTF section.
86 (elf_symfile_read): Call elfctf_build_psymtabs.
87 * Makefile.in (LIBCTF): Add.
88 (CLIBS): Use it.
89 (CDEPS): Likewise.
90 (DIST): Add ctfread.c.
606813d5
WP
91
922019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
93
94 * ctfread.c (struct nextfield): Renamed to ...
95 (struct ctf_nextfield): ... this.
96 (struct field_info): Renamed to ...
97 (strut ctf_field_info): ... this.
98 (attach_fields_to_type): Update for renamed structures.
99 (ctf_add_member_cb): Likewise.
100 (ctf_add_enum_member_cb): Likewise.
101 (process_struct_members): Likewise.
102 (process_enum_type): Likewise.
30d1f018 103
518fe38c
WP
1042019-10-07 Weimin Pan <weimin.pan@oracle.com>
105
106 * tracectf.h: Rename, was ctf.h.
107 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
108 * tracefile.c: Likewise.
109 * tracepoint.c: Remove unused include ctf.h.
110 * mi/mi-main.c: Likewise.
111 * Makefile.in Replace ctf.c with tracectf.c.
112
225f296a
JB
1132019-10-06 Joel Brobecker <brobecker@adacore.com>
114
115 * version.in: Change version number to "9.0.50.DATE-git".
116
77c2dba3
TT
1172019-10-03 Tom Tromey <tom@tromey.com>
118
119 PR rust/24976:
120 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
121
179aed7f
AB
1222019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
123
124 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
125 cp_search_name_hash.
126 * NEWS: Add entry about nested function support.
127
0a4b0913
AB
1282019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
129 Andrew Burgess <andrew.burgess@embecosm.com>
130
131 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
132 for nested static variables when searchin VAR_DOMAIN.
133 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
134 global scope, update comment.
135 (add_partial_subprogram): Call add_partial_subprogram recursively
136 for nested subroutines when processinng Fortran.
137 (load_partial_dies): Process the child entities of a subprogram
138 when processing Fortran.
139 (partial_die_parent_scope): Handle building scope
140 for Fortran nested functions.
141 (process_die): Record that nested functions have a scope.
142 (new_symbol): Always record Fortran subprograms on the global
143 symbol list.
144 (determine_prefix): How to build the prefix for Fortran
145 subprograms.
146
d8c06f22
AB
1472019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
148
149 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
150 have just sent the thread a SIGSTOP and are waiting for it to
151 arrive.
152
a8b3b8e9
AB
1532019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
154
155 * btrace.c (btrace_add_pc): Remove whitespace before the template
156 parameter in 'std::vector <...>'.
157 (parse_xml_btrace_block): Likewise.
158 (btrace_maint_decode_pt): Likewise.
159 (btrace_maint_update_packets): Likewise.
160 (btrace_maint_print_packets): Likewise.
161 * btrace.h (struct btrace_maint_info): Likewise.
162 * dwarf2read.c (struct type_unit_group): Likewise.
163 (build_type_psymtabs_reader): Likewise.
164 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
165 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
166 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
167
4d825eab
TV
1682019-10-03 Tom de Vries <tdevries@suse.de>
169
170 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
171 the first line of the help text for set/show style metadata.
172
80fd2826
TT
1732019-10-02 Tom Tromey <tromey@adacore.com>
174
175 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
176 * gdbsupport/common-inferior.c: New file.
177 * infcmd.c (startup_with_shell): Don't define.
178 * nat/fork-inferior.h (startup_with_shell): Don't declare.
179 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
180 * inferior.h (startup_with_shell): Don't declare.
181
70054538
CB
1822019-10-02 Christian Biesinger <cbiesinger@google.com>
183
184 * gdbsupport/gdb_assert.h: Include errors.h.
185 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
186
37f6a7f4
TT
1872019-10-02 Tom Tromey <tromey@adacore.com>
188
189 * NEWS: Add $_ada_exception entry.
190 * ada-lang.c (struct ada_catchpoint): Add constructor.
191 <m_kind>: New member.
192 (allocate_location_exception, re_set_exception): Remove
193 "ex" parameter.
194 (should_stop_exception): Compute $_ada_exception.
195 (check_status_exception, print_it_exception)
196 (print_one_exception, print_mention_exception): Remove
197 "ex" parameter.
198 (allocate_location_catch_exception, re_set_catch_exception)
199 (check_status_exception, print_it_catch_exception)
200 (print_one_catch_exception, print_mention_catch_exception)
201 (print_recreate_catch_exception)
202 (allocate_location_catch_exception_unhandled)
203 (re_set_catch_exception_unhandled)
204 (check_status_exception, print_it_catch_exception_unhandled)
205 (print_one_catch_exception_unhandled)
206 (print_mention_catch_exception_unhandled)
207 (print_recreate_catch_exception_unhandled)
208 (allocate_location_catch_assert, re_set_catch_assert)
209 (check_status_assert, print_it_catch_assert)
210 (print_one_catch_assert, print_mention_catch_assert)
211 (print_recreate_catch_assert)
212 (allocate_location_catch_handlers, re_set_catch_handlers)
213 (check_status_handlers, print_it_catch_handlers)
214 (print_one_catch_handlers, print_mention_catch_handlers)
215 (print_recreate_catch_handlers): Remove.
216 (create_ada_exception_catchpoint): Update.
217 (initialize_ada_catchpoint_ops): Update.
218
fccf9de1
TT
2192019-10-02 Tom Tromey <tromey@adacore.com>
220
221 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
222 (create_excep_cond_exprs): Simplify exception string computation.
223 (ada_exception_catchpoint_cond_string): Likewise.
224
4b610737
TT
2252019-10-02 Tom Tromey <tromey@adacore.com>
226
227 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
228 * ada-lang.c (lesseq_defined_than): Handle
229 LOC_STATIC.
230 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
231 parameter.
232 (dwarf2_has_info): Likewise.
233 (new_symbol): Set maybe_copied on symbol when
234 appropriate.
235 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
236 parameter.
237 <can_copy>: New member.
238 * elfread.c (record_minimal_symbol): Set maybe_copied
239 on symbol when appropriate.
240 (elf_symfile_read): Update call to dwarf2_has_info.
241 * minsyms.c (lookup_minimal_symbol_linkage): New
242 function.
243 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
244 * symtab.c (get_symbol_address, get_msymbol_address):
245 New functions.
246 * symtab.h (get_symbol_address, get_msymbol_address):
247 Declare.
248 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
249 maybe_copied.
250 (struct symbol, struct minimal_symbol) <maybe_copied>:
251 New member.
252
1dd58850
TT
2532019-10-02 Tom Tromey <tromey@adacore.com>
254
255 * source.c (struct current_source_location): New.
256 (current_source_key): New global.
257 (current_source_symtab, current_source_line)
258 (current_source_pspace): Remove.
259 (get_source_location): New function.
260 (get_current_source_symtab_and_line)
261 (set_default_source_symtab_and_line)
262 (set_current_source_symtab_and_line)
263 (clear_current_source_symtab_and_line, select_source_symtab)
264 (info_source_command, print_source_lines_base)
265 (info_line_command, search_command_helper, _initialize_source):
266 Update.
267
5c281dbb
TT
2682019-10-02 Tom Tromey <tromey@adacore.com>
269
270 * source.c (select_source_symtab): Don't call
271 decode_line_with_current_source.
272
d3d32391
AB
2732019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
274
275 * symtab.c (lookup_global_symbol): Search global block.
276
38583298
TT
2772019-10-02 Tom Tromey <tromey@adacore.com>
278
279 * coffread.c (process_coff_symbol): Update.
280 * dwarf2read.c (var_decode_location, new_symbol): Update.
281 * mdebugread.c (parse_symbol): Update.
282 * objfiles.c (relocate_one_symbol): Update.
283 * stabsread.c (define_symbol, fix_common_block)
284 (scan_file_globals): Update.
285 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
286 (SET_SYMBOL_VALUE_ADDRESS): New macro.
287 * xcoffread.c (process_xcoff_symbol): Update.
288
9344c18f
AA
2892019-10-02 Andreas Arnez <arnez@linux.ibm.com>
290
291 * MAINTAINERS: Update my email address.
292
df07e2c7
AB
2932019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
294
295 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
296 std::vector.
297 (build_type_psymtabs_reader): Update for std::vector.
298 (build_type_psymtab_dependencies): Likewise.
299 * dwarf2read.h: Remove use of DEF_VEC_P.
300 (typedef sig_type_ptr): Delete.
301
554ac434
AB
3022019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
303
304 * btrace.c (btrace_maint_clear): Update to handle change from VEC
305 to std::vector.
306 (btrace_maint_decode_pt): Likewise, and move allocation of the
307 vector outside of the loop.
308 (btrace_maint_update_packets): Update to handle change from VEC to
309 std::vector.
310 (btrace_maint_print_packets): Likewise.
311 (maint_info_btrace_cmd): Likewise.
312 * btrace.h: Remove use of DEF_VEC_O.
313 (typedef btrace_pt_packet_s): Delete.
314 (struct btrace_maint_info) <packets>: Change fromm VEC to
315 std::vector.
316 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
317
46f29a9a
AB
3182019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
319
320 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
321 make accesses into the vector constant references.
322 (btrace_add_pc): Update for std::vector.
323 (btrace_stitch_bts): Likewise.
324 (parse_xml_btrace_block): Likewise.
325 (btrace_maint_update_packets): Likewise.
326 (btrace_maint_print_packets): Likewise.
327 (maint_info_btrace_cmd): Likewise.
328 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
329 std::vector.
330 (btrace_data::empty): Likewise.
331 (btrace_data_append): Likewise.
332 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
333 (typedef btrace_block_s): Delete.
334 (struct btrace_block): Add constructor.
335 (struct btrace_data_bts) <blocks>: Change to std::vector.
336 * nat/linux-btrace.c (perf_event_read_bts): Update for
337 std::vector.
338 (linux_read_bts): Likewise.
339
d770d56f
TT
3402019-10-01 Tom Tromey <tom@tromey.com>
341
342 * cli/cli-logging.c (show_logging_filename): Use styled_string.
343
9d636d67
TT
3442019-10-01 Tom Tromey <tom@tromey.com>
345
346 * stack.c (print_frame, info_frame_command_core): Use
347 styled_string.
348 * linux-thread-db.c (try_thread_db_load_1)
349 (try_thread_db_load_from_pdir_1): Use styled_string.
350 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
351 (auto_load_section_scripts, info_auto_load_local_gdbinit)
352 (maybe_print_unsupported_script_warning)
353 (maybe_print_script_not_found_warning): Use styled_string.
354 * ada-lang.c (user_select_syms): Use styled_string.
355
7f6aba03
TT
3562019-10-01 Tom Tromey <tom@tromey.com>
357
358 * p-lang.c (pascal_printstr): Use metadata style.
359 * value.c (show_convenience): Use metadata style.
360 * valprint.c (valprint_check_validity, val_print_optimized_out)
361 (val_print_not_saved, val_print_unavailable)
362 (val_print_invalid_address, generic_val_print, val_print)
363 (value_check_printable, val_print_array_elements): Use metadata
364 style.
365 * ui-out.h (class ui_out) <field_fmt>: New overload.
366 <do_field_fmt>: Add style parameter.
367 * ui-out.c (ui_out::field_fmt): New overload.
368 * typeprint.c (type_print_unknown_return_type)
369 (val_print_not_allocated, val_print_not_associated): Use metadata
370 style.
371 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
372 parameter.
373 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
374 * tracepoint.c (tvariables_info_1): Use metadata style.
375 * stack.c (print_frame_arg, print_frame_info, print_frame)
376 (info_frame_command_core): Use metadata style.
377 * skip.c (info_skip_command): Use metadata style.
378 * rust-lang.c (rust_print_enum): Use metadata style.
379 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
380 metadata style.
381 * python/py-framefilter.c (py_print_single_arg): Use metadata
382 style.
383 * printcmd.c (do_one_display, print_variable_and_value): Use
384 metadata style.
385 * p-valprint.c (pascal_val_print)
386 (pascal_object_print_value_fields): Use metadata style.
387 * p-typeprint.c (pascal_type_print_base): Use metadata style.
388 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
389 parameter.
390 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
391 * m2-valprint.c (m2_print_long_set): Use metadata style.
392 * m2-typeprint.c (m2_print_type): Use metadata style.
393 * infcmd.c (print_return_value_1): Use metadata style.
394 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
395 * f-valprint.c (info_common_command_for_block): Use metadata
396 style.
397 * f-typeprint.c (f_type_print_base): Use metadata style.
398 * expprint.c (print_subexp_standard): Use metadata style.
399 * cp-valprint.c (cp_print_value_fields): Use metadata style.
400 * cli/cli-style.h (class cli_style_option): Add constructor.
401 (metadata_style): Declare.
402 * cli/cli-style.c (metadata_style): New global.
403 (_initialize_cli_style): Register metadata style.
404 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
405 parameter.
406 * cli-out.c (cli_ui_out::do_field_fmt): Update.
407 * c-typeprint.c (c_type_print_base_struct_union)
408 (c_type_print_base_1): Use metadata style.
409 * breakpoint.c (watchpoint_value_print)
410 (print_one_breakpoint_location): Use metadata style.
411 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
412 style.
413 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
414 style.
415 * ada-valprint.c (val_print_packed_array_elements, printstr)
416 (print_field_values, ada_val_print_ref, ada_val_print): Use
417 metadata style.
418 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
419 style.
420 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
421 style.
422 * ada-lang.c (user_select_syms): Use metadata style.
423
14309bb6
TT
4242019-10-01 Tom Tromey <tom@tromey.com>
425
426 * cli/cli-cmds.c (pwd_command): Style output.
427
6a831f06
PA
4282019-10-01 Pedro Alves <palves@redhat.com>
429 Tom Tromey <tom@tromey.com>
430
431 * symtab.c (print_symbol_info): Use %ps.
432 (print_msymbol_info): Use %ps.
433 * symfile.c (symbol_file_add_with_addrs): Use %ps.
434 * printcmd.c (print_variable_and_value): Use %ps.
435 * macrocmd.c (show_pp_source_pos): Use %ps.
436 * infrun.c (print_exited_reason): Use ui_out::message.
437 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
438 (describe_other_breakpoints): Use ui_out::message and new
439 formats.
440 (say_where): Use new formats.
441 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
442 and new formats.
443
2a3c1174
PA
4442019-10-01 Pedro Alves <palves@redhat.com>
445 Tom Tromey <tom@tromey.com>
446
447 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
448 (test_gdb_formats): New function.
449 (run_tests): Call it.
450 (test_format_specifier): Update.
451 * utils.h (fputs_filtered): Update comment.
452 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
453 (fputs_styled_unfiltered): Declare.
454 * utils.c (fputs_styled_unfiltered): New function.
455 (vfprintf_maybe_filtered): Add gdbfmt parameter.
456 (vfprintf_filtered): Update.
457 (vfprintf_unfiltered, vprintf_filtered): Update.
458 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
459 * ui-out.h (enum ui_out_flag) <unfiltered_output,
460 disallow_ui_out_field>: New constants.
461 (enum class field_kind): New.
462 (struct base_field_s, struct signed_field_s): New.
463 (signed_field): New function.
464 (struct string_field_s): New.
465 (string_field): New function.
466 (struct styled_string_s): New.
467 (styled_string): New function.
468 (class ui_out) <message>: Add comment.
469 <vmessage, call_do_message>: New methods.
470 <do_message>: Add style parameter.
471 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
472 methods.
473 (ui_out::message): Rewrite.
474 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
475 parameter.
476 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
477 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
478 gdb_extensions parameter.
479 (class format_piece): Add parameter to constructor.
480 (n_int_args): New field.
481 * gdbsupport/format.c (format_pieces::format_pieces): Add
482 gdb_extensions parameter. Handle '*'.
483 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
484 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
485 vfprintf_styled_no_gdbfmt.
486 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
487 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
488 unfiltered output.
489 * ui-style.h (struct ui_file_style) <ptr>: New method.
490
0dfe5bfb
TT
4912019-10-01 Tom Tromey <tom@tromey.com>
492
493 * unittests/format_pieces-selftests.c: Update. Add final format.
494 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
495 empty literal pieces.
496
e43b10e1
TT
4972019-10-01 Tom Tromey <tom@tromey.com>
498
499 * ui-out.h (enum class ui_out_style_kind): Remove.
500 (class ui_out) <field_string, field_stsream, do_field_string>:
501 Change type of "style".
502 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
503 (ui_out::field_string): Update.
504 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
505 of "style".
506 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
507 * tracepoint.c (print_one_static_tracepoint_marker): Update.
508 * stack.c (print_frame_arg, print_frame_info, print_frame):
509 Update.
510 * source.c (print_source_lines_base): Update.
511 * solib.c (info_sharedlibrary_command): Update.
512 * skip.c (info_skip_command): Update.
513 * record-btrace.c (btrace_call_history_src_line)
514 (btrace_call_history): Update.
515 * python/py-framefilter.c (py_print_frame): Update.
516 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
517 "style".
518 * mi/mi-out.c (mi_ui_out::do_table_header)
519 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
520 (mi_ui_out::do_field_string): Update.
521 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
522 Update.
523 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
524 "style".
525 * cli-out.c (cli_ui_out::do_table_header)
526 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
527 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
528 (cli_ui_out::do_field_fmt): Update.
529 * breakpoint.c (print_breakpoint_location): Update.
530 (update_static_tracepoint): Update.
531
cd7c32c3
PW
5322019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
533
534 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
535 conversion of gdb_datadir.
536 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
537 remove not needed c_str ().
538
8fe0f950
AT
5392019-09-30 Ali Tamur <tamur@google.com>
540
541 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
542 (dwarf2_string_attr): Likewise.
543
5f48f8f3
AT
5442019-09-30 Ali Tamur <tamur@google.com>
545
546 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
547 (process_full_type_unit): Likewise.
548 (dump_die_shallow): Likewise.
549 (cu_debug_loc_section): Likewise.
550
6fb08628
CB
5512019-09-28 Christian Biesinger <cbiesinger@google.com>
552
553 * minsyms.c (compare_minimal_symbols): Rename to...
554 (minimal_symbol_is_less_than): ...this, and adjust to STL
555 conventions (return bool, take arguments as references)
556 (minimal_symbol_reader::install): Call std::sort instead
557 of qsort.
558
c7ee338a
CB
5592019-09-29 Christian Biesinger <cbiesinger@google.com>
560
561 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
562 hash and why.
563 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
564 msymbol_hash, msymbol_demangled_hash>: Improve comments.
565
703a86c2
SM
5662019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
567
568 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
569 * psympriv.h (add_psymbol_to_list): Move comment here and update
570 it.
571
0df0352a
TV
5722019-09-29 Tom de Vries <tdevries@suse.de>
573
574 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
575 Use $tmpdir/$(basename "$output_file").dwz instead of
576 "${output_file}.dwz".
577
ad75efa6
SM
5782019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
579
580 PR gdb/25045
581 * hppa-linux-nat.c: Include gdbarch.h.
582
ececd218
CB
5832019-09-26 Christian Biesinger <cbiesinger@google.com>
584
585 * blockframe.c (find_pc_partial_function): Change return type to bool.
586 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
587 * minsyms.c (in_gnu_ifunc_stub): Likewise.
588 (stub_gnu_ifunc_resolve_name): Likewise.
589 * symtab.c (compare_filenames_for_search): Likewise.
590 (compare_glob_filenames_for_search): Likewise.
591 (matching_obj_sections): Likewise.
592 (symbol_matches_domain): Likewise.
593 (find_line_symtab): Change out param EXACT_MATCH to bool *.
594 (find_line_pc): Change return type to bool.
595 (find_line_pc_range): Likewise.
596 (producer_is_realview): Likewise.
597 * symtab.h (symbol_matches_domain): Likewise.
598 (find_pc_partial_function): Likewise.
599 (find_pc_line_pc_range): Likewise.
600 (in_gnu_ifunc_stub): Likewise.
601 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
602 (find_line_pc): Likewise.
603 (find_line_pc_range): Likewise.
604 (matching_obj_sections): Likewise.
605 (find_line_symtab): Change out parameter to bool.
606 (producer_is_realview): Change return type to bool.
607 (compare_filenames_for_search): Likewise.
608 (compare_glob_filenames_for_search): Likewise.
609
27a900b8
TT
6102019-09-26 Tom Tromey <tom@tromey.com>
611
612 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
613 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
614 * gdb_usleep.h: Remove.
615 * gdb_usleep.c: Remove.
616 * utils.c: Don't include gdb_usleep.h.
617
5d63b30a
TT
6182019-09-26 Tom Tromey <tromey@adacore.com>
619
620 * python/py-type.c (type_to_type_object): Call check_typedef
621 for stub types.
622
12904d37
TT
6232019-09-26 Tom Tromey <tom@tromey.com>
624
625 * utils.h (initialize_utils): Don't declare.
626 * top.c (gdb_init): Don't call initialize_utils.
627 * utils.c (initialize_utils): Remove. Move contents...
628 (_initialize_utils): ... here.
629
858f25f0
TT
6302019-09-25 Tom Tromey <tom@tromey.com>
631
632 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
633 * utils.h (make_hex_string): Don't declare.
634 * utils.c (make_hex_string): Remove.
635
3d435220
TV
6362019-09-24 Tom de Vries <tdevries@suse.de>
637
638 PR gdb/23815
639 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
640 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
641
ddd44b70
DD
6422019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
643
644 * NEWS: Mention new simulator port for PRU.
645
f945dedf
CB
6462019-09-23 Christian Biesinger <cbiesinger@google.com>
647
648 * ada-exp.y (write_object_remaining): Update.
649 * ada-lang.c (ada_decode): Return a std::string instead of a char*
650 and eliminate the static buffer.
651 (ada_decode_symbol): Update.
652 (ada_la_decode): Update.
653 (ada_sniff_from_mangled_name): Update.
654 (is_valid_name_for_wild_match): Update.
655 (ada_lookup_name_info::matches): Update and simplify.
656 (name_matches_regex): Update.
657 (ada_add_global_exceptions): Update.
658 * ada-lang.h (ada_decode): Update signature.
659 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
660 * dwarf-index-write.c (debug_names::insert): Update.
661
7ab78ccb
SM
6622019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
663
664 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
665 formatting.
666
9252448b
SM
6672019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
668
669 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
670 Change "nonzero" to "true" in documentation.
671
626ca2c0
CB
6722019-09-20 Christian Biesinger <cbiesinger@google.com>
673
674 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
675 (_initialize_darwin_solib): Don't set
676 darwin_so_ops.lookup_lib_global_symbol.
677 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
678 set_gdbarch_iterate_over_objfiles_in_search_order.
679 (elf_lookup_lib_symbol): Rename to...
680 (svr4_iterate_over_objfiles_in_search_order): this, and update
681 to iterate semantics.
682 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
683 * solib.c (solib_global_lookup): Remove.
684 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
685 (solib_global_lookup): Remove.
686 * symtab.c (lookup_global_or_static_symbol): Remove call to
687 solib_global_lookup.
688
5a3a0d63
JB
6892019-09-20 Joel Brobecker <brobecker@adacore.com>
690
691 * NEWS: Move entries about default MI version now being
692 version 3, and about the GDB/MI fix for multi-location
693 breakpoints to the "since GDB 8.3" section.
694
ffea1427
JB
6952019-09-20 Joel Brobecker <brobecker@adacore.com>
696
697 GDB 8.3.1 released.
698
abf516c6
UW
6992019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
700
701 * NEWS: Mention that Cell/B.E. debugging support was removed.
702 * MAINTAINERS: Remove spu target.
703
704 * config/djgpp/fnchange.lst: Remove entries for removed files.
705
706 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
707 spu-multiarch.o, and spu-tdep.o.
708 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
709 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
710 spu-multiarch.c, and spu-tdep.c.
711 * spu-linux-nat.c: Remove file.
712 * spu-multiarch.c: Remove file.
713 * spu-tdep.c: Remove file.
714 * spu-tdep.h: Remove file.
715 * solib-spu.c: Remove file.
716 * solib-spu.h: Remove file.
717
718 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
719 * configure.nat (spu-linux): Remove.
720 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
721 solib-multiarch.o from gdb_target_obs.
722 (spu*-*-*): Remove.
723
724 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
725 feature flag.
726 (ppc_linux_no_features): Update.
727 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
728 Cell/B.E. support.
729 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
730 (tdesc_powerpc_cell64l): Likewise.
731 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
732 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
733 Cell/B.E. support.
734 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
735 Do not include "features/rs6000/powerpc-cell32l.c" or
736 "features/rs6000/powerpc-cell64l.c".
737 (ppc_linux_spu_section): Remove.
738 (ppc_linux_core_read_description): Remove Cell/B.E. support.
739 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
740 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
741 (ppc_linux_spe_context_lookup): Remove.
742 (ppc_linux_spe_context_inferior_created): Remove.
743 (ppc_linux_spe_context_solib_loaded): Remove.
744 (ppc_linux_spe_context_solib_unloaded): Remove.
745 (ppc_linux_spe_context): Remove.
746 (struct ppu2spu_cache): Remove.
747 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
748 (struct ppu2spu_data): Remove.
749 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
750 ppu2spu_unwind): Remove.
751 (ppc_linux_init_abi): Remove Cell/B.E. support.
752 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
753
754 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
755 (rs6000/powerpc-cell64l-expedite): Likewise
756 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
757 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
758 rs6000/powerpc-cell64l.xml.
759 * features/rs6000/powerpc-cell32l.xml: Remove.
760 * features/rs6000/powerpc-cell64l.xml: Likewise.
761 * features/rs6000/powerpc-cell32l.c: Remove generated file.
762 * features/rs6000/powerpc-cell64l.c: Likewise.
763 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
764 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
765 * regformats/reg-spu.dat: Remove.
766
767 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
768 * corelow.c (struct spuid_list): Remove.
769 (add_to_spuid_list): Remove.
770 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
771 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
772 (remote_protocol_features): Remove associated entries.
773 (_initialize_remote): No longer initialize them.
774 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
775 * linux-nat.c (SPUFS_MAGIC): Remove.
776 (linux_proc_xfer_spu): Remove.
777 (spu_enumerate_spu_ids): Remove.
778 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
779 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
780 (linux_make_corefile_notes): No longer call it.
781
782 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
783 (cooked_write_test): Likewise.
784
78e8cb91
TT
7852019-09-20 Tom Tromey <tom@tromey.com>
786
787 * NEWS: Mention case-sensitivity of TUI commands.
788 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
789 (tui_set_win_height_command, parse_scrolling_args): Likewise.
790 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
791
f074b67e
TT
7922019-09-20 Tom Tromey <tom@tromey.com>
793
794 * tui/tui-source.c (tui_source_window::set_contents): Use
795 make_unique_xstrdup.
796 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
797 make_unique_xstrdup.
798
63c4bf19
TT
7992019-09-20 Tom Tromey <tom@tromey.com>
800
801 * tui/tui-data.c: Remove separator comments.
802 * tui/tui-layout.c: Remove separator comments.
803 * tui/tui-win.c: Remove separator comments.
804 * tui/tui-wingeneral.c: Remove separator comments.
805
43df9b2f
TT
8062019-09-20 Tom Tromey <tom@tromey.com>
807
808 * tui/tui.h (strcat_to_buf): Don't declare.
809 * tui/tui.c (strcat_to_buf): Remove.
810
7226433c
TT
8112019-09-20 Tom Tromey <tom@tromey.com>
812
813 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
814 from "fullname".
815 * tui/tui-source.c (tui_source_window::set_contents)
816 (tui_source_window::location_matches_p)
817 (tui_source_window::maybe_update): Update.
818
80df3337
TT
8192019-09-20 Tom Tromey <tom@tromey.com>
820
821 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
822 Update.
823 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
824 prefix.
825 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
826 (tui_data_window::line_from_reg_element_no)
827 (tui_data_window::first_reg_element_no_inline)
828 (tui_data_window::show_registers)
829 (tui_data_window::show_register_group)
830 (tui_data_window::display_registers_from)
831 (tui_data_window::display_registers_from_line)
832 (tui_data_window::first_data_item_displayed)
833 (tui_data_window::delete_data_content_windows)
834 (tui_data_window::erase_data_content)
835 (tui_data_window::do_scroll_vertical)
836 (tui_data_window::refresh_window)
837 (tui_data_window::check_register_values): Update.
838
9923f347
TT
8392019-09-20 Tom Tromey <tom@tromey.com>
840
841 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
842 (struct tui_locator_window) <full_name, proc_name>: Now
843 std::string.
844 * tui/tui-stack.c (tui_locator_window::make_status_line)
845 (tui_locator_window::set_locator_fullname)
846 (tui_locator_window::set_locator_info): Update.
847 * tui/tui-source.c (tui_source_window::set_contents)
848 (tui_source_window::showing_source_p): Update.
849
b76251ab
TT
8502019-09-20 Tom Tromey <tom@tromey.com>
851
852 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
853 Don't call tui_locator_win_info_ptr.
854
0891be08
TT
8552019-09-20 Tom Tromey <tom@tromey.com>
856
857 * tui/tui-win.c (tui_resize_all): Don't call refresh.
858
1b935acf
TT
8592019-09-20 Tom Tromey <tom@tromey.com>
860
861 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
862 height for locator.
863 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
864 * tui/tui-layout.c (show_source_disasm_command, show_data)
865 (show_source_or_disasm_and_command): Use 1 as height for locator.
866
9abd8a65
TT
8672019-09-20 Tom Tromey <tom@tromey.com>
868
869 * tui/tui.c (tui_enable): Update.
870 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
871 Update.
872 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
873 Update.
874 * tui/tui-data.c (win_resized): Now bool.
875 (tui_win_resized): Return bool.
876 (tui_set_win_resized_to): Accept a bool.
877
b5457826
TT
8782019-09-20 Tom Tromey <tom@tromey.com>
879
880 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
881 Change type of "refresh_values_only".
882 * tui/tui-regs.c (tui_data_window::show_register_group): Change
883 type of "refresh_values_only".
884
6b915f7d
TT
8852019-09-20 Tom Tromey <tom@tromey.com>
886
887 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
888 std::string.
889 (tui_disassemble): Add "pos" parameter.
890 (tui_disasm_window::set_contents): Simplify.
891
2ad52f6f
TT
8922019-09-20 Tom Tromey <tom@tromey.com>
893
894 * tui/tui-winsource.h (struct tui_source_window_base)
895 <show_source_content>: Now private.
896 * tui/tui-winsource.c
897 (tui_source_window_base::show_source_content): Don't handle empty
898 content case.
899
b3b1bde6
TT
9002019-09-20 Tom Tromey <tom@tromey.com>
901
902 * tui/tui-layout.c (show_source_disasm_command)
903 (show_source_or_disasm_and_command): Don't call
904 show_source_content.
905
71a25ed2
TT
9062019-09-20 Tom Tromey <tom@tromey.com>
907
908 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
909 Declare.
910 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
911 from tui_make_status_line.
912 (tui_locator_window::rerender): Update.
913
f8532154
TT
9142019-09-20 Tom Tromey <tom@tromey.com>
915
916 * tui/tui-stack.c (tui_make_status_line): Return std::string.
917 (tui_locator_window::rerender): Update.
918
2d81b349
TT
9192019-09-20 Tom Tromey <tom@tromey.com>
920
921 * tui/tui-winsource.h (struct tui_source_window_base)
922 <~tui_source_window_base>: Don't declare.
923 <fullname>: Remove.
924 * tui/tui-winsource.c (~tui_source_window_base): Remove.
925 * tui/tui-source.h (struct tui_source_window) <fullname>: New
926 member.
927 * tui/tui-source.c (tui_source_window::set_contents): Update.
928 (tui_source_window::location_matches_p)
929 (tui_source_window::maybe_update): Update.
930
f14bec58
TT
9312019-09-20 Tom Tromey <tom@tromey.com>
932
933 * tui/tui-winsource.h (~tui_source_element): Remove.
934 (tui_source_element): Update.
935 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
936 * tui/tui-winsource.c (tui_show_source_line): Update.
937 * tui/tui-source.c (tui_source_window::set_contents): Update.
938 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
939
78d5933a
TT
9402019-09-20 Tom Tromey <tom@tromey.com>
941
942 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
943 declare.
944 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
945 tui_clear_source_windows_detail.
946 * tui/tui-winsource.h (struct tui_source_window_base)
947 <clear_detail>: Don't declare.
948 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
949 Remove.
950 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
951
d4207696
TT
9522019-09-20 Tom Tromey <tromey@adacore.com>
953
954 PR ada/24919:
955 * block.c (contained_in): Fix final return value.
956
00f93c44
AM
9572019-09-20 Alan Modra <amodra@gmail.com>
958
959 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
960 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
961 (read_indirect_string_from_dwz): Use bfd accessor.
962 * dwarf2read.h (struct dwz_file <filename>): Likewise.
963 * machoread.c (macho_symfile_read_all_oso): Likewise.
964 * solib.c (solib_bfd_open): Likewise.
965
e4153ae6
CB
9662019-09-19 Christian Biesinger <cbiesinger@google.com>
967
968 * eval.c: Move declaration of overload_resolution to...
969 * value.h: ...here.
970
c7ae7675
CB
9712019-09-19 Christian Biesinger <cbiesinger@google.com>
972
973 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
974 * arm-linux-tdep.c: Likewise.
975 * arm-nbsd-nat.c: Likewise.
976 * arm-tdep.h: Declare arm_apcs_32.
977 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
978
e86f08d2
CB
9792019-09-19 Christian Biesinger <cbiesinger@google.com>
980
981 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
982 * dwarf2read.h: Declare dwarf_always_disassemble.
983
f64e2f40
TV
9842019-09-19 Tom de Vries <tdevries@suse.de>
985
986 PR gdb/25009
987 * source-cache.c (source_cache::ensure): Catch exception thrown during
988 construction of the highlighter.
989
fd361982
AM
9902019-09-18 Alan Modra <amodra@gmail.com>
991
992 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
993 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
994 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
995 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
996 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
997 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
998 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
999 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
1000 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
1001 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
1002 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
1003 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
1004 * solib-spu.c, * solib-svr4.c, * solib-target.c,
1005 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
1006 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
1007 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
1008 * mi/mi-interp.c: Update throughout for bfd section macro and
1009 function changes.
1010 * gcore (gcore_create_callback): Use bfd_set_section_lma.
1011 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
1012
11061048
TT
10132019-09-18 Tom Tromey <tom@tromey.com>
1014
1015 * NEWS: Add entry.
1016 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
1017 call rl_initialize.
1018 (tui_enable): Do not call rl_initialize.
1019
7a27b85f
CG
10202019-09-18 Christian Groessler <chris@groessler.org>
1021
1022 * alpha-linux-nat.c: Include gdbarch.h.
1023
f64eea3a
SM
10242019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
1025
1026 * ui-file.c: Include cli/cli-style.h.
1027 (term_cli_styling): Remove cli_styling declaration.
1028
e6f7f6d1
AM
10292019-09-18 Alan Modra <amodra@gmail.com>
1030
1031 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
1032 to bfd_asymbol_section.
1033
1d38e9d1
AM
10342019-09-18 Alan Modra <amodra@gmail.com>
1035
1036 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
1037 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
1038 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
1039
90d92a63
AM
10402019-09-18 Alan Modra <amodra@gmail.com>
1041
1042 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
1043 * spu-linux-nat.c (spu_bfd_open): Likewise.
1044
a3d181d2
CB
10452019-09-18 Christian Biesinger <cbiesinger@google.com>
1046
1047 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
1048 to bool to match definition in dwarf2read.c.
1049
491144b5
CB
10502019-09-17 Christian Biesinger <cbiesinger@google.com>
1051
1052 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
1053 (print_signatures): Likewise.
1054 (trust_pad_over_xvs): Likewise.
1055 * arch/aarch64-insn.c (aarch64_debug): Likewise.
1056 * arch/aarch64-insn.h (aarch64_debug): Likewise.
1057 * arm-linux-nat.c (arm_apcs_32): Likewise.
1058 * arm-linux-tdep.c (arm_apcs_32): Likewise.
1059 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
1060 * arm-tdep.c (arm_debug): Likewise.
1061 (arm_apcs_32): Likewise.
1062 * auto-load.c (debug_auto_load): Likewise.
1063 (auto_load_gdb_scripts): Likewise.
1064 (global_auto_load): Likewise.
1065 (auto_load_local_gdbinit): Likewise.
1066 (auto_load_local_gdbinit_loaded): Likewise.
1067 * auto-load.h (global_auto_load): Likewise.
1068 (auto_load_local_gdbinit): Likewise.
1069 (auto_load_local_gdbinit_loaded): Likewise.
1070 * breakpoint.c (disconnected_dprintf): Likewise.
1071 (breakpoint_proceeded): Likewise.
1072 (automatic_hardware_breakpoints): Likewise.
1073 (always_inserted_mode): Likewise.
1074 (target_exact_watchpoints): Likewise.
1075 (_initialize_breakpoint): Update.
1076 * breakpoint.h (target_exact_watchpoints): Change to bool.
1077 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
1078 * cli/cli-cmds.c (trace_commands): Likewise.
1079 * cli/cli-cmds.h (trace_commands): Likewise.
1080 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
1081 to bool*.
1082 * cli/cli-logging.c (logging_overwrite): Change to bool.
1083 (logging_redirect): Likewise.
1084 (debug_redirect): Likewise.
1085 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
1086 (struct boolean_option_def) <get_var_address_cb_>: Change return type
1087 to bool.
1088 <boolean_option_def>: Update.
1089 (struct flag_option_def): Change default type of Context to bool
1090 from int.
1091 <flag_option_def>: Change return type of var_address_cb_ to bool*.
1092 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
1093 (get_setshow_command_value_string): Likewise.
1094 * cli/cli-style.c (cli_styling): Change to bool.
1095 (source_styling): Likewise.
1096 * cli/cli-style.h (source_styling): Likewise.
1097 (cli_styling): Likewise.
1098 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
1099 to bool.
1100 * command.h (var_types): Update comment.
1101 (add_setshow_boolean_cmd): Change int* var argument to bool*.
1102 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
1103 bool.
1104 (debug_compile_cplus_scopes): Likewise.
1105 * compile/compile-internal.h (compile_debug): Likewise.
1106 * compile/compile.c (compile_debug): Likewise.
1107 (struct compile_options) <raw>: Likewise.
1108 * cp-support.c (catch_demangler_crashes): Likewise.
1109 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
1110 (usr_cmd_cris_dwarf2_cfi): Likewise.
1111 * csky-tdep.c (csky_debug): Likewise.
1112 * darwin-nat.c (enable_mach_exceptions): Likewise.
1113 * dcache.c (dcache_enabled_p): Likewise.
1114 * defs.h (info_verbose): Likewise.
1115 * demangle.c (demangle): Likewise.
1116 (asm_demangle): Likewise.
1117 * dwarf-index-cache.c (debug_index_cache): Likewise.
1118 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
1119 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
1120 * dwarf2read.c (check_physname): Likewise.
1121 (use_deprecated_index_sections): Likewise.
1122 (dwarf_always_disassemble): Likewise.
1123 * eval.c (overload_resolution): Likewise.
1124 * event-top.c (set_editing_cmd_var): Likewise.
1125 (exec_done_display_p): Likewise.
1126 * event-top.h (set_editing_cmd_var): Likewise.
1127 (exec_done_display_p): Likewise.
1128 * exec.c (write_files): Likewise.
1129 * fbsd-nat.c (debug_fbsd_lwp): Likewise
1130 (debug_fbsd_nat): Likewise.
1131 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
1132 Likewise.
1133 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
1134 <backtrace_past_entry> Likewise.
1135 * gdb-demangle.h (demangle): Likewise.
1136 (asm_demangle): Likewise.
1137 * gdb_bfd.c (bfd_sharing): Likewise.
1138 * gdbcore.h (write_files): Likewise.
1139 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
1140 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
1141 * gdbthread.h (print_thread_events): Likewise.
1142 * gdbtypes.c (opaque_type_resolution): Likewise.
1143 (strict_type_checking): Likewise.
1144 * gnu-nat.c (gnu_debug_flag): Likewise.
1145 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
1146 * guile/scm-param.c (pascm_variable): Add boolval.
1147 (add_setshow_generic): Update.
1148 (pascm_param_value): Update.
1149 (pascm_set_param_value_x): Update.
1150 * hppa-tdep.c (hppa_debug): Change to bool..
1151 * infcall.c (may_call_functions_p): Likewise.
1152 (coerce_float_to_double_p): Likewise.
1153 (unwind_on_signal_p): Likewise.
1154 (unwind_on_terminating_exception_p): Likewise.
1155 * infcmd.c (startup_with_shell): Likewise.
1156 * inferior.c (print_inferior_events): Likewise.
1157 * inferior.h (startup_with_shell): Likewise.
1158 (print_inferior_events): Likewise.
1159 * infrun.c (step_stop_if_no_debug): Likewise.
1160 (detach_fork): Likewise.
1161 (debug_displaced): Likewise.
1162 (disable_randomization): Likewise.
1163 (non_stop): Likewise.
1164 (non_stop_1): Likewise.
1165 (observer_mode): Likewise.
1166 (observer_mode_1): Likewise.
1167 (set_observer_mode): Update.
1168 (sched_multi): Change to bool.
1169 * infrun.h (debug_displaced): Likewise.
1170 (sched_multi): Likewise.
1171 (step_stop_if_no_debug): Likewise.
1172 (non_stop): Likewise.
1173 (disable_randomization): Likewise.
1174 * linux-tdep.c (use_coredump_filter): Likewise.
1175 (dump_excluded_mappings): Likewise.
1176 * linux-thread-db.c (auto_load_thread_db): Likewise.
1177 (check_thread_db_on_load): Likewise.
1178 * main.c (captured_main_1): Update.
1179 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
1180 xx2_opt, boolean_opt>: Change to bool.
1181 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
1182 * maint.c (maintenance_profile_p): Likewise.
1183 (per_command_time): Likewise.
1184 (per_command_space): Likewise.
1185 (per_command_symtab): Likewise.
1186 * memattr.c (inaccessible_by_default): Likewise.
1187 * mi/mi-main.c (mi_async): Likewise.
1188 (mi_async_1): Likewise.
1189 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
1190 * nat/fork-inferior.h (startup_with_shell): Likewise.
1191 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
1192 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
1193 * nios2-tdep.c (nios2_debug): Likewise.
1194 * or1k-tdep.c (or1k_debug): Likewise.
1195 * parse.c (parser_debug): Likewise.
1196 * parser-defs.h (parser_debug): Likewise.
1197 * printcmd.c (print_symbol_filename): Likewise.
1198 * proc-api.c (procfs_trace): Likewise.
1199 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
1200 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
1201 (set_parameter_value): Update.
1202 (add_setshow_generic): Update.
1203 * python/py-value.c (copy_py_bool_obj): Change argument from int*
1204 to bool*.
1205 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
1206 int*.
1207 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
1208 * record-btrace.c (record_btrace_target::store_registers): Update.
1209 * record-full.c (record_full_memory_query): Change to bool.
1210 (record_full_stop_at_limit): Likewise.
1211 * record-full.h (record_full_memory_query): Likewise.
1212 * remote-notif.c (notif_debug): Likewise.
1213 * remote-notif.h (notif_debug): Likewise.
1214 * remote.c (use_range_stepping): Likewise.
1215 (interrupt_on_connect): Likewise.
1216 (remote_break): Likewise.
1217 * ser-tcp.c (tcp_auto_retry): Likewise.
1218 * ser-unix.c (serial_hwflow): Likewise.
1219 * skip.c (debug_skip): Likewise.
1220 * solib-aix.c (solib_aix_debug): Likewise.
1221 * spu-tdep.c (spu_stop_on_load_p): Likewise.
1222 (spu_auto_flush_cache_p): Likewise.
1223 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
1224 Likewise.
1225 (struct info_print_options) <quiet>: Likewise.
1226 * symfile-debug.c (debug_symfile): Likewise.
1227 * symfile.c (auto_solib_add): Likewise.
1228 (separate_debug_file_debug): Likewise.
1229 * symfile.h (auto_solib_add): Likewise.
1230 (separate_debug_file_debug): Likewise.
1231 * symtab.c (basenames_may_differ): Likewise.
1232 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
1233 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
1234 (struct info_types_options) <quiet>: Likewise.
1235 * symtab.h (demangle): Likewise.
1236 (basenames_may_differ): Likewise.
1237 * target-dcache.c (stack_cache_enabled_1): Likewise.
1238 (code_cache_enabled_1): Likewise.
1239 * target.c (trust_readonly): Likewise.
1240 (may_write_registers): Likewise.
1241 (may_write_memory): Likewise.
1242 (may_insert_breakpoints): Likewise.
1243 (may_insert_tracepoints): Likewise.
1244 (may_insert_fast_tracepoints): Likewise.
1245 (may_stop): Likewise.
1246 (auto_connect_native_target): Likewise.
1247 (target_stop_and_wait): Update.
1248 (target_async_permitted): Change to bool.
1249 (target_async_permitted_1): Likewise.
1250 (may_write_registers_1): Likewise.
1251 (may_write_memory_1): Likewise.
1252 (may_insert_breakpoints_1): Likewise.
1253 (may_insert_tracepoints_1): Likewise.
1254 (may_insert_fast_tracepoints_1): Likewise.
1255 (may_stop_1): Likewise.
1256 * target.h (target_async_permitted): Likewise.
1257 (may_write_registers): Likewise.
1258 (may_write_memory): Likewise.
1259 (may_insert_breakpoints): Likewise.
1260 (may_insert_tracepoints): Likewise.
1261 (may_insert_fast_tracepoints): Likewise.
1262 (may_stop): Likewise.
1263 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
1264 (make_thread_apply_all_options_def_group): Change argument from int*
1265 to bool*.
1266 (thread_apply_all_command): Update.
1267 (print_thread_events): Change to bool.
1268 * top.c (confirm): Likewise.
1269 (command_editing_p): Likewise.
1270 (history_expansion_p): Likewise.
1271 (write_history_p): Likewise.
1272 (info_verbose): Likewise.
1273 * top.h (confirm): Likewise.
1274 (history_expansion_p): Likewise.
1275 * tracepoint.c (disconnected_tracing): Likewise.
1276 (circular_trace_buffer): Likewise.
1277 * typeprint.c (print_methods): Likewise.
1278 (print_typedefs): Likewise.
1279 * utils.c (debug_timestamp): Likewise.
1280 (sevenbit_strings): Likewise.
1281 (pagination_enabled): Likewise.
1282 * utils.h (sevenbit_strings): Likewise.
1283 (pagination_enabled): Likewise.
1284 * valops.c (overload_resolution): Likewise.
1285 * valprint.h (struct value_print_options) <prettyformat_arrays,
1286 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
1287 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
1288 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
1289 Likewise.
1290 * windows-nat.c (new_console): Likewise.
1291 (cygwin_exceptions): Likewise.
1292 (new_group): Likewise.
1293 (debug_exec): Likewise.
1294 (debug_events): Likewise.
1295 (debug_memory): Likewise.
1296 (debug_exceptions): Likewise.
1297 (useshell): Likewise.
1298 * windows-tdep.c (maint_display_all_tib): Likewise.
1299 * xml-support.c (debug_xml): Likewise.
1300
f1b620e9
MG
13012019-09-17 Mike Gulick <mgulick@mathworks.com>
1302
1303 * source.c (prepare_path_for_appending): New function.
1304 (openp): Make use of new function.
1305 (find_and_open_source): Search for the compilation directory and
1306 source file as a relative path beneath the directory search path.
1307
67f3ed6a
AB
13082019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
1309
1310 * source-cache.c (source_cache::get_line_charpos): Catch
1311 exceptions and return false, this matches the behaviour documented
1312 in the header file.
1313
74332189
JB
13142019-09-17 Joel Brobecker <brobecker@adacore.com>
1315
1316 * ada-tasks.c (info_task): Remove quoting of the task's name.
1317
f2f24aa9
CB
13182019-09-16 Christian Biesinger <cbiesinger@google.com>
1319
1320 * symfile.c (auto_solib_add): Replace comment with a reference
1321 to the header file.
1322
6a062a93
CB
13232019-09-14 Christian Biesinger <cbiesinger@google.com>
1324
1325 * NEWS: Mention that gdb can now be compiled with Python 3
1326 on Windows.
1327
ec6c8338
AB
13282019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1329
1330 * maint.c (maint_print_section_data::maint_print_section_data):
1331 Force use of 'float log10 (float)' by casting the argument to
1332 float.
1333
aa17805f
AB
13342019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1335
1336 * maint.c: Add 'cmath' include.
1337 (struct maint_print_section_data): New structure.
1338 (print_section_index): New function.
1339 (print_bfd_section_info): Add header comment, small whitespace
1340 cleanup, and update to call new print_section_index function.
1341 (print_objfile_section_info): Likewise.
1342 (maint_obj_section_from_bfd_section): New function.
1343 (print_bfd_section_info_maybe_relocated): New function.
1344 (maintenance_info_sections): Add header comment, always use
1345 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
1346
3dd9bb46
AB
13472019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1348
1349 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
1350 inner scope, add check that the objfile has psymtabs before
1351 checking psymtabs_addrmap.
1352 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
1353
4993045d
PW
13542019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1355
1356 * NEWS: Announce that Ada task names are now shown at more places,
1357 and between quotes (except in info task output).
1358 * gdb/ada-tasks.c (task_to_str): New function.
1359 (display_current_task_id): Call task_to_str.
1360 (task_command_1): Likewise.
1361 (print_ada_task_info): In non-mi mode, Properly align headers and data
1362 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
1363
7a289707
RO
13642019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1365
1366 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
1367 prstatus.pr_lwp.pr_info instead of making it up.
1368
f2aec7f6
CB
13692019-09-11 Christian Biesinger <cbiesinger@google.com>
1370
1371 * auto-load.c (auto_load_expand_dir_vars): Update.
1372 * defs.h (gdb_datadir): Change to std::string.
1373 (python_libdir): Likewise.
1374 (relocate_gdb_directory): Change return type to std::string.
1375 * guile/guile.c (gdbscm_data_directory): Update.
1376 (initialize_scheme_side): Update.
1377 * jit.c (jit_reader_dir): Change to std::string.
1378 (jit_reader_load_command): Update.
1379 * main.c (gdb_datadir): Change to std::string.
1380 (python_libdir): Likewise.
1381 (set_gdb_data_directory): Update.
1382 (relocate_path): Change to return std::string.
1383 (relocate_gdb_directory): Change to return std::string.
1384 (relocate_gdbinit_path_maybe_in_datadir): Update.
1385 (captured_main_1): Update.
1386 * python/python.c (do_start_initialization): Update.
1387 * top.c (show_gdb_datadir): Update.
1388 * xml-syscall.c (xml_init_syscalls_info): Update.
1389 (init_syscalls_info): Update.
1390
9224a013
CB
13912019-09-11 Christian Biesinger <cbiesinger@google.com>
1392
1393 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
1394 out of get_init_files.
1395 (get_init_files): Update.
1396
f48cd836
CB
13972019-09-11 Christian Biesinger <cbiesinger@google.com>
1398
1399 * main.c (get_init_files): Change to use std::string.
1400 (captured_main_1): Update.
1401 (print_gdb_help): Update.
1402
9cab7ecd
AT
14032019-09-11 Ali Tamur <tamur@google.com>
1404
1405 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
1406 implementation.
1407
67547d89
CB
14082019-09-11 Christian Biesinger <cbiesinger@google.com>
1409
1410 * dbxread.c (read_dbx_symtab): Update.
1411 * dwarf2read.c (load_partial_dies): Update.
1412 * mdebugread.c (parse_partial_symbols): Update.
1413 (handle_psymbol_enumerators): Update.
1414 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
1415 * psymtab.c (add_psymbol_to_bcache): Likewise.
1416 (add_psymbol_to_list): Likewise.
1417 * symtab.c (symbol_set_names): Likewise.
1418 * symtab.h (symbol_set_names): Likewise.
1419 * xcoffread.c (scan_xcoff_symtab): Update.
1420
64b2d4a0
TT
14212019-09-11 Tom Tromey <tom@tromey.com>
1422
1423 * symfile-mem.c (symbol_file_add_from_memory): Use
1424 bfd_set_filename.
1425 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
1426 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
1427
3b00ef10
TT
14282019-09-10 Tom Tromey <tromey@adacore.com>
1429
1430 * dwarf-index-write.c (write_psymbols): Extend error message.
1431 (debug_names::insert): Add Ada code.
1432 (debug_names::write_psymbols): Remove Ada check.
1433 (debug_names) <m_string_obstack>: New member.
1434 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
1435 (gdb_index_symbol_name_matcher::matches): Remove.
1436 (mapped_index_base::find_name_components_bounds): Add "lang"
1437 parameter.
1438 (mapped_index_base::build_name_components): Also split names
1439 according to Ada syntax.
1440 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
1441 type of "match_callback".
1442 (check_match, check_find_bounds_finds)
1443 (dw2_expand_symtabs_matching): Update.
1444 (dw2_debug_names_iterator): Add new constructor.
1445 (dw2_debug_names_map_matching_symbols): New function.
1446 (dw2_debug_names_expand_symtabs_matching): Update.
1447 (dwarf2_debug_names_functions): Use
1448 dw2_debug_names_map_matching_symbols.
1449
aa391654
TT
14502019-09-10 Tom Tromey <tromey@adacore.com>
1451
1452 * dwarf2read.c (dw2_get_file_names_reader): Add the
1453 CU's file name to the results.
1454
b054970d
TT
14552019-09-10 Tom Tromey <tromey@adacore.com>
1456
1457 * ada-lang.c (add_nonlocal_symbols): Combine calls to
1458 map_matching_symbols. Update.
1459 * dwarf2read.c (dw2_map_matching_symbols): Update.
1460 * psymtab.c (match_partial_symbol): Change type; update.
1461 (psym_map_matching_symbols): Likewise.
1462 * symfile-debug.c (debug_qf_map_matching_symbols): Change
1463 type; update.
1464 * symfile.h (struct quick_symbol_functions)
1465 <map_matching_symbols>: Change "name" to be a lookup_name_info.
1466 Remove "match".
1467
6a3dbf1b
TT
14682019-09-10 Tom Tromey <tromey@adacore.com>
1469
1470 * psymtab.c (map_block): Remove.
1471 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
1472 * symtab.c (iterate_over_symbols_terminated): New function.
1473 * symtab.c (iterate_over_symbols_terminated): Declare.
1474
6969f124
TT
14752019-09-10 Tom Tromey <tromey@adacore.com>
1476
1477 * ada-lang.c (ada_iterate_over_symbols): Return bool.
1478 * language.h (struct language_defn) <la_iterate_over_symbols>:
1479 Return bool.
1480 * symtab.c (iterate_over_symbols): Return bool.
1481 * symtab.h (iterate_over_symbols): Return bool.
1482
199b4314
TT
14832019-09-10 Tom Tromey <tromey@adacore.com>
1484
1485 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
1486 (add_nonlocal_symbols): Update.
1487 * dwarf2read.c (dw2_map_matching_symbols): Change type.
1488 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
1489 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
1490 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
1491 Change type of "callback". Remove "data".
1492
a084a2a6
AT
1493
14942019-09-09 Ali Tamur <tamur@google.com>
1495
1496 * dwarf2read.c (comp_unit_head): Update comment.
1497 (dwarf2_dwo_name): New function declaration.
1498 (dwarf_unit_type_name): New function declaration.
1499 (read_comp_unit_head): Add support for new compilation units,
1500 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
1501 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
1502 (currently named as "signature") in their header. Also clarify error
1503 messages.
1504 (lookup_dwo_id): New function. Returns the dwo id of the given
1505 compile unit.
1506 (lookup_dwo_unit): Use the new lookup_dwo_id function.
1507 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
1508 functions.
1509 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
1510 (dwarf2_dwo_name): Get the dwo name if present.
1511 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
1512 purposes.
1513
25a2915e
TT
15142019-09-09 Tom Tromey <tom@tromey.com>
1515
1516 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
1517
e4df0874
PW
15182019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1519
1520 * python/python.c (do_start_initialization): Make progname_copy static,
1521 to avoid a leak report.
1522
8634b462
TT
15232019-09-08 Tom Tromey <tom@tromey.com>
1524
1525 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
1526
c7f839cb
SM
15272019-09-07 Simon Marchi <simon.marchi@efficios.com>
1528
1529 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
1530 Change type to gdb::optional<block_enum>.
1531 (dw2_symtab_iter_init): Change block_index parameter type
1532 to gdb::optional<block_enum>.
1533 (dw2_lookup_symbol): Change block_index parameter
1534 type to block_enum.c
1535 (dw2_debug_names_lookup_symbol): Likewise.
1536 * psymtab.c (psym_lookup_symbol): Likewise.
1537 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
1538 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1539 Likewise.
1540
ead0e69a
CB
15412019-09-06 Christian Biesinger <cbiesinger@google.com>
1542
1543 * defs.h (relocate_gdb_directory): Change int to bool in
1544 signature and rename flag to relocatable.
1545 * main.c (relocate_path): Likewise.
1546 (relocate_gdb_directory): Likewise.
1547
b16c44de
AM
15482019-09-06 Alan Modra <amodra@gmail.com>
1549
1550 * coffread.c (coff_symfile_read): Constify filename variable.
1551 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
1552 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
1553 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
1554 * solib.c (reload_shared_libraries_1): Likewise.
1555 * symfile.c (reread_symbols): Likewise.
1556 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
1557 * solib-darwin.c (darwin_bfd_open): Likewise.
1558 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1559
06ff036e
AB
15602019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1561
1562 * psymtab.c (print_partial_symbols): Handle missing domain_enum
1563 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
1564
4e962e74
TT
15652019-09-03 Tom Tromey <tromey@adacore.com>
1566
1567 * ada-valprint.c (ada_val_print_num): Don't recurse for range
1568 types.
1569 (has_negatives): Unbias a range type bound.
1570 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
1571 * gdbtypes.c (operator==): Handle new field.
1572 (create_range_type): Add "bias" parameter.
1573 (create_static_range_type, resolve_dynamic_range): Update.
1574 * gdbtypes.h (struct range_bounds) <bias>: New member.
1575 (create_range_type): Add bias parameter.
1576 * printcmd.c (print_scalar_formatted): Unbias range types.
1577 * value.c (unpack_long): Unbias range types.
1578 (pack_long): Bias range types.
1579
d90b8f26
AH
15802019-09-02 Alan Hayward <alan.hayward@arm.com>
1581
1582 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
1583 probe arguments.
1584
fe01123e
AH
15852019-09-02 Alan Hayward <alan.hayward@arm.com>
1586
1587 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
1588 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
1589 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
1590 (compile_probe_arg): Likewise.
1591 * probe.h (get_argument_count): Likewise.
1592 * solib-svr4.c (solib_event_probe_action): Likewise.
1593 * stap-probe.c (stap_probe::get_argument_count): Likewise.
1594
e661ef01
AH
15952019-09-02 Alan Hayward <alan.hayward@arm.com>
1596
1597 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
1598 code to here...
1599 (svr4_create_solib_event_breakpoints): ...from here.
1600
47a536d9
SDJ
16012019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
1602
1603 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
1604 suffix from warning message.
1605
d6a00eba
TT
16062019-08-30 Tom Tromey <tom@tromey.com>
1607
1608 * tui/tui-winsource.h (struct tui_source_window_base)
1609 <refresh_all>: Don't declare.
1610 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
1611 Remove.
1612 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
1613 tui_show_locator_content.
1614 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
1615 declare.
1616 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
1617 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
1618 declare.
1619
55b2657b
TT
16202019-08-30 Tom Tromey <tom@tromey.com>
1621
1622 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
1623
12a8555a
TT
16242019-08-30 Tom Tromey <tom@tromey.com>
1625
1626 * tui/tui-stack.c (_initialize_tui_stack): Move later.
1627 Remove unnecessary forward declarations.
1628
900ac242
TT
16292019-08-30 Tom Tromey <tom@tromey.com>
1630
1631 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
1632 rerender.
1633 (tui_update_locator_fullname, tui_show_frame_info): Don't call
1634 tui_show_locator_content.
1635
99ab33fb
TT
16362019-08-30 Tom Tromey <tom@tromey.com>
1637
1638 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
1639 (tui_locator_window::rerender): Rewrite using body of previous
1640 tui_show_locator_content.
1641
e594a5d1
TT
16422019-08-30 Tom Tromey <tom@tromey.com>
1643
1644 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
1645 set_locator_fullname>: New methods.
1646 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1647 Rename from tui_set_locator_fullname.
1648 (tui_locator_window::set_locator_info): Rename from
1649 tui_set_locator_info. Return bool.
1650 (tui_update_locator_fullname, tui_show_frame_info): Update.
1651
715bb467
TT
16522019-08-30 Tom Tromey <tom@tromey.com>
1653
1654 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
1655
772f3f03
TT
16562019-08-30 Tom Tromey <tom@tromey.com>
1657
1658 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
1659 call touchwin.
1660
108e13ab
TT
16612019-08-30 Tom Tromey <tom@tromey.com>
1662
1663 * tui/tui-wingeneral.c (box_win): Assume win_info and
1664 win_info->handle cannot be NULL.
1665
cdaa6eb4
TT
16662019-08-30 Tom Tromey <tom@tromey.com>
1667
1668 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
1669 refresh_window>: Declare.
1670 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
1671 resize.
1672 (tui_data_item_window::rerender): Rename from
1673 tui_display_register.
1674 (tui_data_item_window::refresh_window): New method.
1675 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
1676 no-op.
1677
89df7f90
TT
16782019-08-30 Tom Tromey <tom@tromey.com>
1679
1680 * tui/tui-regs.h (struct tui_data_window) <regs_content,
1681 regs_column_count, current_group>: Move later. Now private.
1682 <get_current_group>: New method.
1683 * tui/tui-regs.c (tui_reg_command): Update.
1684 * tui/tui-layout.c (tui_set_layout): Update.
1685
1bf2866a
TT
16862019-08-30 Tom Tromey <tom@tromey.com>
1687
1688 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1689 (tui_data_window::rerender): Don't call
1690 check_and_display_highlight_if_needed.
1691 (tui_data_window::refresh_all): Remove call to
1692 erase_data_content.
1693
0670413d
TT
16942019-08-30 Tom Tromey <tom@tromey.com>
1695
1696 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1697 (tui_data_window::display_registers_from)
1698 (tui_data_window::display_reg_element_at_line)
1699 (tui_data_window::display_registers_from_line): Remove checks of
1700 "empty".
1701
18bb55c7
TT
17022019-08-30 Tom Tromey <tom@tromey.com>
1703
1704 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
1705 Don't declare.
1706 * tui/tui-regs.c (tui_data_window::show_registers): Call
1707 rerender.
1708 (tui_data_window::rerender): Rename from display_all_data.
1709 (tui_data_window::rerender): Remove old implementation.
1710
1f6d2f10
TT
17112019-08-30 Tom Tromey <tom@tromey.com>
1712
1713 * tui/tui-regs.c (tui_data_window::display_all_data): Change
1714 text.
1715 * tui/tui-data.h (NO_DATA_STRING): Remove define.
1716
16d01f9c
BW
17172019-08-29 Bernhard Wodok <barto@gmx.net>
1718 Sergio Durigan Junior <sergiodj@redhat.com>
1719
1720 PR win32/24284
1721 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
1722
d8f27c60
AB
17232019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1724
1725 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
1726 when searching for types.
1727
1f20c35e
AB
17282019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1729
1730 * f-lang.c (f_language_defn): Use f_print_typedef.
1731 * f-lang.h (f_print_typedef): Declare.
1732 * f-typeprint.c (f_print_typedef): Define.
1733
550105b7
CB
17342019-08-27 Christian Biesinger <cbiesinger@google.com>
1735
1736 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
1737
4acfdd20
AB
17382019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
1739
1740 * cli/cli-utils.c (info_print_options_defs): Delete.
1741 (make_info_print_options_def_group): Delete.
1742 (extract_info_print_options): Delete.
1743 (info_print_command_completer): Delete.
1744 (info_print_args_help): Add extra parameter, and optionally
1745 include text about -n flag.
1746 * cli/cli-utils.h (struct info_print_options): Delete.
1747 (extract_info_print_options): Delete declaration.
1748 (info_print_command_completer): Delete declaration.
1749 (info_print_args_help): Add extra parameter, extend header
1750 comment.
1751 * python/python.c (gdbpy_rbreak): Pass additional parameter to
1752 search_symbols.
1753 * stack.c (struct info_print_options): New type.
1754 (info_print_options_defs): New file scoped variable.
1755 (make_info_print_options_def_group): New static function.
1756 (info_print_command_completer): New static function.
1757 (info_locals_command): Update to use new local functions.
1758 (info_args_command): Likewise.
1759 (_initialize_stack): Add extra parameter to calls to
1760 info_print_args_help.
1761 * symtab.c (search_symbols): Add extra parameter, use this to
1762 possibly excluse non-debug symbols.
1763 (symtab_symbol_info): Add extra parameter, which is passed on to
1764 search_symbols.
1765 (struct info_print_options): New type.
1766 (info_print_options_defs): New file scoped variable.
1767 (make_info_print_options_def_group): New static function.
1768 (info_print_command_completer): New static function.
1769 (info_variables_command): Update to use local functions, and pass
1770 extra parameter through to symtab_symbol_info.
1771 (info_functions_command): Likewise.
1772 (info_types_command): Pass additional argument through to
1773 symtab_symbol_info.
1774 (rbreak_command): Pass extra argument to search_symbols.
1775 (_initialize_symtab): Add extra arguments for calls to
1776 info_print_args_help, and update help text for 'info variables',
1777 'whereis', and 'info functions' commands.
1778 * symtab.h (search_symbols): Add extra argument to declaration.
1779 * NEWS: Mention new flags.
1780
9aa55206
CB
17812019-08-26 Christian Biesinger <cbiesinger@google.com>
1782
1783 * symtab.c (lookup_static_symbol): Call the new function (and move
1784 it down to be next to lookup_global_symbol).
1785 (struct global_sym_lookup_data): Add block_enum member and rename to...
1786 (struct global_or_static_sym_lookup_data): ...this.
1787 (lookup_symbol_global_iterator_cb): Pass block_index instead of
1788 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
1789 (lookup_symbol_global_or_static_iterator_cb): ...this.
1790 (lookup_global_or_static_symbol): New function.
1791 (lookup_global_symbol): Call new function.
1792
5c31b358
TV
17932019-08-26 Tom de Vries <tdevries@suse.de>
1794
1795 PR c++/24852
1796 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
1797 when pc_probe.prob == NULL.
1798
23c13d42
SM
17992019-08-25 Simon Marchi <simon.marchi@efficios.com>
1800
1801 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
1802 variable symbol_linkage to symbol_linkage_.
1803
beadd3e8
SM
18042019-08-25 Simon Marchi <simon.marchi@efficios.com>
1805
1806 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
1807 represent whether the symbol is static, dynamic, or we don't
1808 know.
1809
e3ec872f
YS
18102019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
1811
1812 * gdb/rx-tdep.c (rx_register_names): New.
1813 (rx_register_name): Delete.
1814 (rx_psw_type): Delete.
1815 (rx_fpsw_type): Delete.
1816 (rx_register_type): Delete.
1817 (rx_gdbarch_init): Convert target-descriptions.
1818 (_initialize_rx_tdep): Add initialize_tdesc_rx.
1819 * gdb/features/Makefile: Add rx.xml.
1820 * gdb/features/rx.xml: New.
1821 * gdb/features/rx.c: Generated.
1822 * gdb/NEWS: Mention target description support.
1823
d0509ba4
CB
18242019-08-22 Christian Biesinger <cbiesinger@google.com>
1825
1826 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
1827 *slot_ptr.
1828
2d41fa11
SDJ
18292019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1830
1831 * configure.ac: Don't check for 'dlfcn.h' (moved to
1832 gdbsupport/common.m4).
1833 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
1834 'gdbsupport/'.
1835 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
1836 * compile/compile-c-support.c: Include
1837 'gdbsupport/gdb-dlfcn.h'.
1838 * gdbsupport/common.m4: Check for 'dlfcn.h'.
1839 * gdb-dlfcn.c: Move to...
1840 * gdbsupport/gdb-dlfcn.c: ... here.
1841 * gdb-dlfcn.h: Move to...
1842 * gdbsupport/gdb-dlfcn.h: ... here.
1843
de8af808
SL
18442019-08-23 Sandra Loosemore <sandra@codesourcery.com>
1845
1846 * nios2-tdep.c (struct reg_value): Improve comments. Make
1847 the offset field signed.
1848
27204489
CB
18492019-08-22 Christian Biesinger <cbiesinger@google.com>
1850
1851 * python/lib/gdb/__init__.py (_execute_file): New function.
1852 * python/python.c (python_run_simple_file): Call gdb._execute_file
1853 on Windows.
1854
43771869
AB
18552019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
1856
1857 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
1858 all uses as this was never set to anything but a zero value.
1859
26c957f1
PA
18602019-08-21 Bogdan Harjoc <harjoc@gmail.com>
1861
1862 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
1863
c07aae6e
CB
18642019-08-21 Christian Biesinger <cbiesinger@google.com>
1865
1866 * tui/tui-data.h (tui_gen_win_info): Add an =default
1867 move constructor, required by some GCC versions.
1868
3960cb7a
JF
18692019-08-21 Jinke Fan <fanjinke51@yeah.net>
1870
1871 * go32-nat.c (go32_sysinfo): Add hygon_p.
1872
04c72a68
TT
18732019-08-20 Tom Tromey <tom@tromey.com>
1874
1875 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
1876 line_from_reg_element_no, first_reg_element_no_inline,
1877 display_all_data, delete_data_content_windows,
1878 erase_data_content>: Now private.
1879
072272ce
TT
18802019-08-20 Tom Tromey <tom@tromey.com>
1881
1882 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
1883 (tui_unhighlight_win, tui_highlight_win)
1884 (tui_win_info::make_window): Update.
1885 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
1886
973961bd
TT
18872019-08-20 Tom Tromey <tom@tromey.com>
1888
1889 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1890 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1891 (MAX_PID_WIDTH): Move to tui-stack.c.
1892 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1893 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1894 (MAX_PID_WIDTH): Move from tui-data.h.
1895
ab0e1f1a
TT
18962019-08-20 Tom Tromey <tom@tromey.com>
1897
1898 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
1899 * tui/tui-wingeneral.c (box_win): Change type of win_info.
1900 (box_win): Update.
1901 (tui_gen_win_info::make_window): Rename from tui_make_window.
1902 (tui_win_info::make_window): New method.
1903 (tui_gen_win_info::make_visible): Update.
1904 * tui/tui-source.c (tui_source_window::set_contents): Update.
1905 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1906 (tui_data_window::display_registers_from): Update.
1907 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1908 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
1909 Declare.
1910 <can_box>: Remove.
1911 <title>: Remove.
1912 (struct tui_win_info) <make_window>: Declare.
1913 <can_box>: Now virtual.
1914 <title>: New member.
1915 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
1916 * tui/tui-command.c (tui_cmd_window::resize): Update.
1917
100c2bf3
TT
19182019-08-20 Tom Tromey <tom@tromey.com>
1919
1920 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
1921 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1922 (tui_data_window::check_register_values): Update.
1923
fa4dc567
TT
19242019-08-20 Tom Tromey <tom@tromey.com>
1925
1926 * tui/tui-regs.h (struct tui_data_window): Use
1927 DISABLE_COPY_AND_ASSIGN.
1928 <regs_content>: Change type, removing unique_ptr.
1929 <tui_data_window>: Add move constructor.
1930 * tui/tui-regs.c (tui_data_window::show_registers)
1931 (tui_data_window::show_register_group)
1932 (tui_data_window::display_registers_from)
1933 (tui_data_window::display_registers_from)
1934 (tui_data_window::first_data_item_displayed)
1935 (tui_data_window::delete_data_content_windows)
1936 (tui_data_window::rerender, tui_data_window::refresh_window)
1937 (tui_data_window::check_register_values): Update.
1938
ca02d7c8
TT
19392019-08-20 Tom Tromey <tom@tromey.com>
1940
1941 * tui/tui-regs.h (struct tui_data_window) <show_registers,
1942 show_register_group>: Declare.
1943 (tui_show_register_group): Don't declare.
1944 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
1945 tui_show_registers.
1946 (tui_data_window::show_register_group): Rename from
1947 tui_show_register_group.
1948 (tui_data_window::check_register_values, tui_reg_command):
1949 Update.
1950 * tui/tui-layout.c (tui_set_layout): Update.
1951
63356bfd
TT
19522019-08-20 Tom Tromey <tom@tromey.com>
1953
1954 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
1955 Declare.
1956 (tui_check_register_values): Don't declare.
1957 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
1958 from tui_check_register_values.
1959 * tui/tui-hooks.c (tui_register_changed): Update.
1960
42cc14a7
TT
19612019-08-20 Tom Tromey <tom@tromey.com>
1962
1963 * tui/tui-regs.c (tui_reg_layout): Move later.
1964 (tui_show_registers): Don't enable TUI mode or change layout.
1965
b9ad3686
TT
19662019-08-20 Tom Tromey <tom@tromey.com>
1967
1968 * tui/tui-regs.h (struct tui_data_item_window)
1969 <~tui_data_item_window>: Remove.
1970 <content>: Now a unique_xmalloc_ptr.
1971 * tui/tui-regs.c (tui_register_format): Return a
1972 unique_xmalloc_ptr.
1973 (tui_get_register): Update.
1974 (~tui_data_item_window): Remove.
1975 (tui_data_window::display_registers_from, tui_display_register):
1976 Update.
1977 * tui/tui-io.h (tui_expand_tabs): Update.
1978 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
1979 Remove "col" parameter.
1980
8e114aab
TT
19812019-08-20 Tom Tromey <tom@tromey.com>
1982
1983 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
1984 field.
1985 * tui/tui-regs.c (~tui_data_item_window): Update.
1986
1a4f81dd
TT
19872019-08-20 Tom Tromey <tom@tromey.com>
1988
1989 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
1990 earlier.
1991
0f8d8876
TT
19922019-08-20 Tom Tromey <tom@tromey.com>
1993
1994 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
1995
605dc2c2
TT
19962019-08-20 Tom Tromey <tom@tromey.com>
1997
1998 * tui/tui-source.h (struct tui_source_window): Update.
1999 * tui/tui-regs.c (tui_show_registers): Update.
2000 * tui/tui-disasm.h (struct tui_disasm_window): Update.
2001 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
2002 (NO_REGS_STRING): Remove defines.
2003
aedbe3bb
CM
20042019-08-20 Conrad Meyer <cem@FreeBSD.org>
2005
2006 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
2007 unnecessary thread walk if remote doesn't support the packet.
2008
7ce8f214
TT
20092019-08-19 Tom Tromey <tromey@adacore.com>
2010
2011 * python/py-value.c (value_has_field): Fix indentation.
2012
f21c2bd7
TT
20132019-08-19 Tom Tromey <tromey@adacore.com>
2014
2015 * printcmd.c (do_one_display, info_display_command): Update.
2016 * block.h (contained_in): Return bool. Add allow_nested
2017 parameter.
2018 * block.c (contained_in): Return bool. Add allow_nested
2019 parameter.
2020
d806ea2d
TT
20212019-08-19 Tom Tromey <tom@tromey.com>
2022
2023 * configure: Rebuild.
2024 * configure.ac: Disallow the combination of -static-libstdc++ and
2025 source highlight.
2026 * source-cache.c (get_language_name): Handle rust.
2027 (source_cache::get_source_lines): Ignore highlighting exceptions.
2028
398fdd60
TT
20292019-08-16 Tom Tromey <tom@tromey.com>
2030
2031 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
2032 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
2033 (struct tui_source_window_base) <make_visible, refresh_window,
2034 resize>: Remove methods.
2035 <execution_info>: Remove field.
2036 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
2037 (tui_show_source_line, tui_source_window_base)
2038 (~tui_source_window_base): Update.
2039 (tui_source_window_base::resize)
2040 (tui_source_window_base::make_visible)
2041 (tui_source_window_base::refresh_window): Remove.
2042 (tui_source_window_base::update_exec_info): Update.
2043 * tui/tui-source.c (tui_source_window::set_contents): Update.
2044 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2045
e699d331
TT
20462019-08-16 Tom Tromey <tom@tromey.com>
2047
2048 * tui/tui-hooks.c (tui_remove_hooks): Don't set
2049 deprecated_query_hook.
2050
bb01dbfc
TT
20512019-08-16 Tom Tromey <tom@tromey.com>
2052
2053 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2054 (tui_update_source_windows_with_line): Update.
2055 * tui/tui-source.h (struct tui_source_window)
2056 <show_symtab_source>: Declare.
2057 (tui_show_symtab_source): Don't declare.
2058 * tui/tui-source.c (tui_show_symtab_source): Rename from
2059 tui_show_symtab_source.
2060
81c82c4b
TT
20612019-08-16 Tom Tromey <tom@tromey.com>
2062
2063 * tui/tui-winsource.h (struct tui_source_window_base)
2064 <set_contents>: Declare.
2065 * tui/tui-winsource.c
2066 (tui_source_window_base::update_source_window_as_is): Update.
2067 * tui/tui-source.h (struct tui_source_window) <set_contents>:
2068 Declare.
2069 (tui_set_source_content): Don't declare.
2070 * tui/tui-source.c (tui_source_window::set_contents): Rename from
2071 tui_set_source_content.
2072 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
2073 Declare.
2074 (tui_set_disassem_content): Don't declare.
2075 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
2076 tui_set_disassem_content.
2077
2ddaf614
TT
20782019-08-16 Tom Tromey <tom@tromey.com>
2079
2080 * tui/tui-winsource.h (struct tui_source_window_base)
2081 <update_breakpoint_info>: Declare.
2082 (tui_update_breakpoint_info): Don't declare.
2083 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
2084 (tui_update_all_breakpoint_info): Update.
2085 (tui_source_window_base::update_breakpoint_info): Rename from
2086 tui_update_breakpoint_info.
2087 (tui_source_window_base::update_exec_info): Update.
2088
017f9828
TT
20892019-08-16 Tom Tromey <tom@tromey.com>
2090
2091 * tui/tui-winsource.h (struct tui_source_window_base)
2092 <update_source_window>: Declare.
2093 (tui_update_source_window): Don't declare.
2094 * tui/tui-winsource.c
2095 (tui_source_window_base::update_source_window): Rename from
2096 tui_update_source_window.
2097 (tui_source_window_base::rerender): Update.
2098 * tui/tui-source.c (tui_source_window::maybe_update): Update.
2099 * tui/tui-disasm.c (tui_show_disassem)
2100 (tui_show_disassem_and_update_source)
2101 (tui_disasm_window::maybe_update): Update.
2102
ed8358e9
TT
21032019-08-16 Tom Tromey <tom@tromey.com>
2104
2105 * tui/tui-winsource.h (struct tui_source_window_base)
2106 <update_source_window_as_is>: Declare.
2107 (tui_update_source_window_as_is): Don't declare.
2108 * tui/tui-winsource.c (tui_update_source_window): Update
2109 (tui_source_window_base::update_source_window_as_is): Rename from
2110 tui_update_source_window_as_is.
2111 (tui_source_window_base::refill): Update.
2112 * tui/tui-source.c (tui_show_symtab_source): Update.
2113 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
2114 Update.
2115
20149b6b
TT
21162019-08-16 Tom Tromey <tom@tromey.com>
2117
2118 * tui/tui-winsource.h (tui_update_source_window)
2119 (tui_update_source_window_as_is): Remove "noerror" parameter.
2120 * tui/tui-winsource.c (tui_update_source_window)
2121 (tui_update_source_window_as_is): Remove "noerror" parameter.
2122 (tui_update_source_windows_with_addr)
2123 (tui_update_source_windows_with_line)
2124 (tui_source_window_base::rerender)
2125 (tui_source_window_base::refill): Update.
2126 * tui/tui-source.h (tui_set_source_content)
2127 (tui_show_symtab_source): Remove "noerror" parameter.
2128 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
2129 parameter.
2130 (tui_show_symtab_source): Likewise.
2131 (tui_source_window::maybe_update): Update.
2132 * tui/tui-disasm.c (tui_show_disassem)
2133 (tui_show_disassem_and_update_source)
2134 (tui_disasm_window::do_scroll_vertical)
2135 (tui_disasm_window::maybe_update): Update.
2136
2d83e710
TT
21372019-08-16 Tom Tromey <tom@tromey.com>
2138
2139 * tui/tui.c (tui_is_window_visible): Update.
2140 * tui/tui-wingeneral.c (tui_make_window)
2141 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
2142 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
2143 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
2144 (tui_set_win_height_command, parse_scrolling_args): Update.
2145 * tui/tui-source.c (tui_source_window::style_changed): Update.
2146 * tui/tui-regs.c (tui_show_registers)
2147 (tui_data_window::first_data_item_displayed)
2148 (tui_data_window::delete_data_content_windows)
2149 (tui_check_register_values, tui_reg_command): Update.
2150 * tui/tui-disasm.c (tui_show_disassem): Update.
2151 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
2152 method.
2153 <is_visible>: Remove field.
2154 * tui/tui-data.c (tui_next_win, tui_prev_win)
2155 (tui_delete_invisible_windows): Update.
2156
d4ab829a
TT
21572019-08-16 Tom Tromey <tom@tromey.com>
2158
2159 * tui/tui-winsource.h (struct tui_source_window_base)
2160 <m_has_locator>: Remove.
2161 * tui/tui-layout.c (show_source_disasm_command, show_data)
2162 (show_source_or_disasm_and_command): Update.
2163
aa7ca1bb
AH
21642019-08-16 Alan Hayward <alan.hayward@arm.com>
2165
2166 * NEWS (Other MI changes): New subsection.
2167 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
2168 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
2169 * arch-utils.c (default_get_pc_address_flags): New function.
2170 * arch-utils.h (default_get_pc_address_flags): New declaration.
2171 * gdbarch.sh: Add get_pc_address_flags.
2172 * gdbarch.c: Regenerate.
2173 * gdbarch.h: Likewise.
2174 * stack.c (print_pc): New function.
2175 (print_frame_info) (print_frame): Call print_pc.
2176
6eac171f
TV
21772019-08-16 Tom de Vries <tdevries@suse.de>
2178
2179 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
2180 print_objfile_section_info.
2181
3df505f6
TT
21822019-08-15 Tom Tromey <tom@tromey.com>
2183
2184 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
2185 calling update_cmdwin_start_line.
2186 * tui/tui-winsource.h (struct tui_source_window_base)
2187 <do_make_visible_with_new_height, set_new_height>: Don't declare.
2188 <rerender>: Declare.
2189 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
2190 Call rerender.
2191 (tui_source_window_base::set_new_height): Remove.
2192 (tui_source_window_base::rerender): Rename from
2193 do_make_visible_with_new_height.
2194 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
2195 resize method.
2196 (tui_win_info::make_invisible_and_set_new_height)
2197 (tui_win_info::make_visible_with_new_height): Remove.
2198 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
2199 Declare.
2200 * tui/tui-stack.c (tui_locator_window::rerender): New method.
2201 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
2202 do_make_visible_with_new_height>: Don't declare.
2203 <rerender>: Declare.
2204 * tui/tui-regs.c (tui_data_window::rerender): Rename from
2205 set_new_height.
2206 (tui_data_window::do_make_visible_with_new_height): Remove.
2207 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
2208 call tui_show_locator_content.
2209 (tui_gen_win_info::resize): Call rerender.
2210 (show_source_or_disasm_and_command): Don't call
2211 tui_show_locator_content.
2212 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
2213 method.
2214 (struct tui_win_info) <rerender>: Declare.
2215 <set_new_height, make_invisible_and_set_new_height,
2216 make_visible_with_new_height>: Don't declare.
2217 * tui/tui-data.c (tui_win_list::rerender): New method.
2218 * tui/tui-command.h (struct tui_cmd_window)
2219 <do_make_visible_with_new_height>: Don't declare.
2220 * tui/tui-command.c
2221 (tui_cmd_window::do_make_visible_with_new_height): Remove.
2222
272560b5
TT
22232019-08-15 Tom Tromey <tromey@adacore.com>
2224
2225 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
2226 * ada-lang.c (ada_enum_name): Likewise.
2227
08235187
CB
22282019-08-15 Christian Biesinger <cbiesinger@google.com>
2229
2230 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
2231 leading underscore.
2232 (GdbOutputErrorFile): Likewise.
2233 (global scope): Adjust constructor calls to GdbOutput{,Error}File
2234 accordingly.
2235 (execute_unwinders): Rename to have a leading underscore.
2236 (auto_load_packages): Likewise.
2237 (global scope): Adjust call to auto_load_packages accordingly.
2238 (GdbSetPythonDirectory): Likewise.
2239 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
2240 instead of execute_unwinders.
2241
db502012
TT
22422019-08-15 Tom Tromey <tom@tromey.com>
2243
2244 * tui/tui-layout.c (show_layout, show_source_disasm_command)
2245 (show_data): Don't change window visibility.
2246 (tui_gen_win_info::resize): Remove special case for command
2247 window. Use wresize, when available.
2248 (show_source_or_disasm_and_command): Don't change window
2249 visibility.
2250 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
2251 <make_visible>: New method.
2252 * tui/tui-command.c (tui_cmd_window::resize): New method.
2253
3891b65e
TT
22542019-08-15 Tom Tromey <tom@tromey.com>
2255
2256 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
2257 (struct tui_source_windows): New.
2258 * tui/tui-winsource.c (tui_display_main): Update.
2259 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2260 (new_height_ok, parse_scrolling_args): Update.
2261 * tui/tui-layout.c (show_layout, show_data): Update.
2262 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
2263 (tui_add_to_source_windows): Don't declare.
2264 * tui/tui-data.c (source_windows, tui_source_windows)
2265 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
2266
ee556432
TT
22672019-08-15 Tom Tromey <tom@tromey.com>
2268
2269 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
2270 Rename from reset.
2271 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
2272 * tui/tui-layout.c (show_source_disasm_command, show_data):
2273 Update.
2274 (tui_gen_win_info::resize): Rename.
2275 (show_source_or_disasm_and_command): Update.
2276 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
2277 reset.
2278
46f438e3
TT
22792019-08-15 Tom Tromey <tom@tromey.com>
2280
2281 * tui/tui-stack.c (tui_initialize_static_data): Remove.
2282 * tui/tui-interp.c (tui_interp::init): Don't call
2283 tui_initialize_static_data.
2284 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
2285
f4ce562c
TT
22862019-08-15 Tom Tromey <tom@tromey.com>
2287
2288 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
2289 examine tui_win_list.
2290
c398c3d0
TT
22912019-08-15 Tom Tromey <tom@tromey.com>
2292
2293 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
2294 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
2295 tui_clear_source_content.
2296 (tui_clear_source_content): Remove.
2297 (tui_source_window_base::do_erase_source_content): Hoist call to
2298 content.clear().
2299 * tui/tui-stack.c (tui_show_frame_info): Don't call
2300 tui_clear_source_content.
2301
e25d2004
TT
23022019-08-15 Tom Tromey <tom@tromey.com>
2303
2304 * tui/tui-winsource.h (struct tui_source_window_base)
2305 <do_erase_source_content>: New method.
2306 <erase_source_content>: New method.
2307 (tui_erase_source_content): Don't declare.
2308 * tui/tui-winsource.c (tui_clear_source_content): Update.
2309 (tui_source_window_base::do_erase_source_content): Rename from
2310 tui_erase_source_content.
2311 (tui_source_window_base::show_source_content): Update.
2312 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2313 * tui/tui-source.h (struct tui_source_window)
2314 <erase_source_content>: New method.
2315 * tui/tui-disasm.h (struct tui_disasm_window)
2316 <erase_source_content>: New method.
2317
002f15c2
TT
23182019-08-15 Tom Tromey <tom@tromey.com>
2319
2320 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
2321 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
2322 constructor.
2323 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
2324 * tui/tui-source.c (tui_set_source_content): Update.
2325 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2326
c9033fe8
TT
23272019-08-15 Tom Tromey <tom@tromey.com>
2328
2329 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
2330 * tui/tui-winsource.c (tui_line_is_displayed): Move to
2331 tui-source.c.
2332 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
2333 Declare.
2334 * tui/tui-source.c (tui_source_window::line_is_displayed): New
2335 method.
2336 (tui_source_window::maybe_update): Update.
2337
088f37dd
TT
23382019-08-15 Tom Tromey <tom@tromey.com>
2339
2340 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
2341 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
2342 tui-disasm.c.
2343 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
2344 Declare.
2345 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
2346 method.
2347 (tui_disasm_window::maybe_update): Update.
2348
a54700c6
TT
23492019-08-15 Tom Tromey <tom@tromey.com>
2350
2351 * tui/tui-winsource.h (struct tui_source_window_base)
2352 <maybe_update>: Declare.
2353 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
2354 method.
2355 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
2356 Declare.
2357 * tui/tui-source.c (tui_source_window::maybe_update): New method.
2358 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
2359 Declare.
2360 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
2361
e2a678a5
TT
23622019-08-15 Tom Tromey <tom@tromey.com>
2363
2364 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
2365
f2dda477
TT
23662019-08-15 Tom Tromey <tom@tromey.com>
2367
2368 * tui/tui-wingeneral.c: Include tui-stack.h.
2369 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
2370 (struct tui_locator_window): Move from tui-data.h.
2371 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
2372 (tui_initialize_static_data): Move from tui-data.c.
2373 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
2374 (struct tui_locator_window): Move to tui-stack.c.
2375 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
2376 (tui_initialize_static_data): Move to tui-stack.c.
2377
ed4a1084
TT
23782019-08-15 Tom Tromey <tom@tromey.com>
2379
2380 * tui/tui-layout.c (show_source_disasm_command)
2381 (show_source_or_disasm_and_command): Use make_visible method, not
2382 tui_make_window.
2383 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
2384 Remove.
2385
65962b20
TT
23862019-08-15 Tom Tromey <tom@tromey.com>
2387
2388 * tui/tui-wingeneral.h (tui_make_window): Update.
2389 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
2390 parameter.
2391 (tui_gen_win_info::make_visible): Update.
2392 * tui/tui-regs.c (tui_data_window::display_registers_from):
2393 Update.
2394 * tui/tui-layout.c (show_source_disasm_command)
2395 (show_source_or_disasm_and_command): Update.
2396 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
2397 (enum tui_box): Remove.
2398 (struct tui_win_info) <can_box>: New method.
2399 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
2400 method.
2401
2208ee91
TV
24022019-08-15 Tom de Vries <tdevries@suse.de>
2403
2404 * linux-nat-trad.c: Include gdbarch.h.
2405
75faf5c4
AH
24062019-08-14 Alan Hayward <alan.hayward@arm.com>
2407
2408 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
2409 register sizes.
2410
b1c896b3
TT
24112019-08-14 Tom Tromey <tromey@adacore.com>
2412
2413 * darwin-nat.c: Include gdbarch.h.
2414 * darwin-nat-info.c: Include gdbarch.h.
2415
6405cd73
TT
24162019-08-13 Tom Tromey <tom@tromey.com>
2417
2418 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
2419 Remove.
2420 * tui/tui-data.c (tui_initialize_static_data): Update.
2421
5216580d
TT
24222019-08-13 Tom Tromey <tom@tromey.com>
2423
2424 * tui/tui-winsource.h (struct tui_exec_info_window)
2425 <~tui_exec_info_window, maybe_allocate_content, get_content,
2426 m_content>: Remove.
2427 (struct tui_source_window_base) <set_exec_info_content,
2428 show_exec_info_content>: Don't declare.
2429 * tui/tui-winsource.c
2430 (tui_exec_info_window::maybe_allocate_content): Remove.
2431 (tui_source_window_base::update_exec_info): Rename from
2432 set_exec_info_content.
2433 (tui_source_window_base::show_exec_info_content)
2434 (tui_source_window_base::update_exec_info): Remove.
2435
93858ad3
TT
24362019-08-13 Tom Tromey <tom@tromey.com>
2437
2438 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
2439 declare.
2440 * tui/tui-winsource.c (tui_update_source_window_as_is)
2441 (tui_update_source_windows_with_addr, tui_erase_source_content):
2442 Update.
2443 (tui_clear_exec_info_content): Remove.
2444
e321e7ce
TT
24452019-08-13 Tom Tromey <tom@tromey.com>
2446
2447 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
2448 declare.
2449 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
2450 call tui_erase_exec_info_content.
2451 (tui_clear_exec_info_content): Rename from
2452 tui_erase_exec_info_content.
2453 (tui_clear_exec_info_content): Delete.
2454
8270ac62
TT
24552019-08-13 Tom Tromey <tom@tromey.com>
2456
2457 * tui/tui-winsource.h (struct tui_source_window_base)
2458 <show_exec_info_content>: Declare.
2459 (tui_show_exec_info_content): Don't declare.
2460 * tui/tui-winsource.c
2461 (tui_source_window_base::show_exec_info_content): Rename from
2462 tui_show_exec_info_content.
2463 (tui_source_window_base::update_exec_info): Update.
2464
7b56485d
TT
24652019-08-13 Tom Tromey <tom@tromey.com>
2466
2467 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
2468 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
2469 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
2470 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
2471 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
2472 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
2473 ... here.
2474
7ba913dc
TT
24752019-08-13 Tom Tromey <tom@tromey.com>
2476
2477 * tui/tui-winsource.h (struct tui_source_window_base)
2478 <update_exec_info>: Declare.
2479 (tui_update_exec_info): Don't declare.
2480 * tui/tui-winsource.c (tui_update_source_window_as_is)
2481 (tui_source_window_base::refresh_all)
2482 (tui_update_all_breakpoint_info): Update.
2483 (tui_source_window_base::update_exec_info): Rename from
2484 tui_update_exec_info.
2485 * tui/tui-stack.c (tui_show_frame_info): Update.
2486
37a4a131
TT
24872019-08-13 Tom Tromey <tom@tromey.com>
2488
2489 * tui/tui-winsource.h (struct tui_source_window_base)
2490 <set_exec_info_content>: Declare.
2491 (tui_set_exec_info_content): Don't declare.
2492 * tui/tui-winsource.c
2493 (tui_source_window_base::set_exec_info_content): Rename from
2494 tui_set_exec_info_content.
2495 (tui_update_exec_info): Update.
2496
0bd27e07
TT
24972019-08-13 Tom Tromey <tom@tromey.com>
2498
2499 * tui/tui-winsource.h (struct tui_source_window_base)
2500 <show_source_content>: Declare.
2501 (tui_show_source_content): Don't declare.
2502 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2503 (tui_source_window_base::show_source_content): Rename from
2504 tui_show_source_content.
2505 (tui_source_window_base::refresh_all): Update.
2506 * tui/tui-layout.c (show_source_disasm_command)
2507 (show_source_or_disasm_and_command): Update.
2508
b4ef5aeb
TT
25092019-08-13 Tom Tromey <tom@tromey.com>
2510
2511 * tui/tui-winsource.c (tui_erase_source_content)
2512 (tui_show_source_content, tui_source_window_base::refresh_all):
2513 Update.
2514 * tui/tui-wingeneral.h
2515 (tui_check_and_display_highlight_if_needed): Don't declare.
2516 * tui/tui-wingeneral.c
2517 (tui_win_info::check_and_display_highlight_if_needed): Rename from
2518 check_and_display_highlight_if_needed.
2519 * tui/tui-win.c (tui_rehighlight_all)
2520 (tui_win_info::make_visible_with_new_height): Update.
2521 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2522 (tui_data_window::erase_data_content)
2523 (tui_data_window::display_all_data): Update.
2524 * tui/tui-data.h (struct tui_win_info)
2525 <check_and_display_highlight_if_needed>: Declare.
2526
fede5273
TT
25272019-08-13 Tom Tromey <tom@tromey.com>
2528
2529 * tui/tui-win.c (tui_resize_all): Call
2530 tui_delete_invisible_windows.
2531 * tui/tui-layout.c (show_layout): Call
2532 tui_delete_invisible_windows.
2533 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
2534 * tui/tui-data.c (tui_delete_invisible_windows): New function.
2535
22c3f490
TT
25362019-08-13 Tom Tromey <tom@tromey.com>
2537
2538 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
2539 tui_add_win_to_layout.
2540
16cb7910
TT
25412019-08-13 Tom Tromey <tom@tromey.com>
2542
2543 * tui/tui-layout.h (tui_default_win_height): Don't declare.
2544 * tui/tui-layout.c (tui_default_win_height): Now static.
2545
cc0c3ffb
TT
25462019-08-13 Tom Tromey <tom@tromey.com>
2547
2548 * tui/tui-layout.c (show_layout): Unify all layout cases into a
2549 single switch.
2550 (show_source_disasm_command, show_source_or_disasm_and_command):
2551 Don't check current layout.
2552
3f3ffe54
TT
25532019-08-13 Tom Tromey <tom@tromey.com>
2554
2555 * tui/tui-wingeneral.c (make_all_visible): Remove.
2556 (tui_make_all_invisible): Simplify.
2557 * tui/tui-layout.c (tui_make_all_invisible): Move from
2558 tui-wingeneral.c; simplify.
2559 (show_layout): Hoist call to tui_make_all_invisible.
2560 (show_data): Don't call tui_make_all_invisible.
2561
69258091
TT
25622019-08-13 Tom Tromey <tom@tromey.com>
2563
2564 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
2565 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
2566
62cf57fe
TT
25672019-08-13 Tom Tromey <tom@tromey.com>
2568
2569 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
2570 tui-data.c.
2571 (show_source_disasm_command, show_data)
2572 (show_source_or_disasm_and_command): Don't use
2573 tui_set_current_layout_to.
2574 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
2575 * tui/tui-data.c (current_layout, tui_current_layout): Move to
2576 tui-layout.c.
2577 (tui_set_current_layout_to): Remove.
2578
2afade5d
TT
25792019-08-13 Tom Tromey <tom@tromey.com>
2580
2581 * tui/tui-layout.c (tui_set_layout): Update.
2582 * tui/tui-data.h (struct tui_layout_def): Remove.
2583 (tui_layout_def): Don't declare.
2584 * tui/tui-data.c (layout_def): Remove.
2585 (tui_layout_def): Remove.
2586
a3504e96
TT
25872019-08-13 Tom Tromey <tom@tromey.com>
2588
2589 * tui/tui-winsource.h (struct tui_source_window_base)
2590 <clear_detail>: No longer "override".
2591 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
2592 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
2593 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
2594 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
2595 Remove.
2596 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
2597
29c92911
TT
25982019-08-13 Tom Tromey <tromey@adacore.com>
2599
2600 * tracepoint.c: Don't include readline.h or history.h.
2601
86c6b807
TT
26022019-08-12 Tom Tromey <tom@tromey.com>
2603
2604 * configure: Rebuild.
2605 * configure.ac: Check for readline 7.
2606 * NEWS: Mention readline 7 requirement.
2607 * README: Update.
2608
5db2718c
TT
26092019-08-12 Tom Tromey <tom@tromey.com>
2610
2611 * mingw-hdep.c (gdb_select): Remove readline hack.
2612
dac36daf
PFC
26132019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2614
2615 * blockframe.c (find_pc_partial_function): Set *block to nullptr
2616 when the function fails.
2617
1022c627
AA
26182019-08-09 Andreas Arnez <arnez@linux.ibm.com>
2619
2620 * s390-tdep.c (s390_type_align): New function.
2621 (s390_gdbarch_init): Set it as type_align gdbarch method.
2622
eba4caf2
TV
26232019-08-09 Tom de Vries <tdevries@suse.de>
2624
2625 PR gdb/24591
2626 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
2627 pc_low with relocation offset.
2628
123cd851
TT
26292019-08-07 Tom Tromey <tromey@adacore.com>
2630
2631 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2632 (print_frame_args): Update.
2633 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
2634 Update.
2635 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2636 * frame.h (struct frame_arg): Add initializers.
2637 <error>: Now a unique_xmalloc_ptr.
2638
3d31bc39
AH
26392019-08-07 Alan Hayward <alan.hayward@arm.com>
2640
2641 * NEWS: Expand the Pointer Authentication entry.
2642 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
2643 (aarch64_frame_unmask_lr): ... to this.
2644 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
2645 Call aarch64_frame_unmask_lr.
2646 * frame.c (struct frame_info): Add "masked" variable.
2647 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
2648 (fprint_frame): Check for masked pc.
2649 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
2650 declarations.
2651 * python/py-framefilter.c (py_print_frame): Check for masked pc.
2652 * stack.c (print_frame): Check for masked pc.
2653
0cf9feb9
TT
26542019-08-06 Tom Tromey <tom@tromey.com>
2655
2656 * stabsread.c (patch_block_stabs, read_one_struct_field)
2657 (read_enum_type): Use obstack_strndup.
2658 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
2659 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
2660 * dwarf2read.c (guess_full_die_structure_name)
2661 (anonymous_struct_prefix): Use obstack_strndup.
2662 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
2663 * c-exp.y (yylex): Use obstack_strndup.
2664 * ada-exp.y (write_object_renaming, write_ambiguous_var)
2665 (write_var_or_type): Use obstack_strndup.
2666
efba19b0
TT
26672019-08-06 Tom Tromey <tom@tromey.com>
2668
2669 * symfile.c (reread_symbols): Use obstack_strdup.
2670 * stabsread.c (read_type): Use obstack_strdup.
2671 * gdb_obstack.h (obstack_strdup): New overload.
2672 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
2673 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
2674 (dwarf2_canonicalize_name): Use obstack_strdup.
2675 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
2676 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
2677 Use obstack_strdup.
2678
f25102f7
TT
26792019-08-06 Tom Tromey <tom@tromey.com>
2680
2681 * gdb_obstack.h (obstack_strdup): Define.
2682 * gdb_obstack.c (obstack_strdup): Don't define.
2683
021887d8
TT
26842019-08-06 Tom Tromey <tom@tromey.com>
2685
2686 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
2687 obstack_strdup.
2688 * typeprint.c (typedef_hash_table::find_global_typedef): Use
2689 obstack_strdup.
2690 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
2691 * stabsread.c (common_block_start): Use obstack_strdup.
2692 * objfiles.c (set_objfile_main_name, objfile): Use
2693 obstack_strdup.
2694 * namespace.c (add_using_directive): Use obstack_strdup.
2695 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
2696 * jit.c (finalize_symtab): Use obstack_strdup.
2697 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
2698 (guess_partial_die_structure_name, partial_die_info::fixup)
2699 (dwarf2_name): Use obstack_strdup.
2700 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
2701 obstack_strdup.
2702 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
2703 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
2704 obstack_strdup.
2705 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
2706
d2834edc
PW
27072019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2708
2709 * unittests/help-doc-selftests.c: New file.
2710 * Makefile.in: Add the new file.
2711
590042fc
PW
27122019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2713
2714 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
2715 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
2716 the full first line, except when FOR_VALUE_PREFIX. In this case,
2717 the trailing '.' is not output, and the first character is uppercased.
2718 (print_help_for_command): Update call to print_doc_line.
2719 (print_doc_of_command): Likewise.
2720 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
2721 * cli/cli-option.c (append_indented_doc): Do not append newline.
2722 (build_help_option): Append newline after first appended_indented_doc
2723 only if a second call is done.
2724 (build_help): Append 2 new lines before each option, except the first
2725 one.
2726 * compile/compile.c (_initialize_compile): Add new lines after
2727 %OPTIONS%, when not at the end of the help.
2728 Change help doc or code
2729 producing the help doc to respect the invariants.
2730 * maint-test-options.c (_initialize_maint_test_options): Likewise.
2731 Also removed the new line after 'Options:', as all other commands
2732 do not put an empty line between 'Options:' and the first option.
2733 * printcmd.c (_initialize_printcmd): Likewise.
2734 * stack.c (_initialize_stack): Likewise.
2735 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
2736 incorrectly telling COMMAND is optional.
2737 * ada-lang.c (_initialize_ada_language): Change help doc or code
2738 producing the help doc to respect the invariants.
2739 * ada-tasks.c (_initialize_ada_tasks): Likewise.
2740 * breakpoint.c (_initialize_breakpoint): Likewise.
2741 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
2742 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
2743 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
2744 * cli/cli-style.c (cli_style_option::add_setshow_commands,
2745 _initialize_cli_style): Likewise.
2746 * corelow.c (core_target_info): Likewise.
2747 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
2748 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
2749 * filesystem.c (_initialize_filesystem): Likewise.
2750 * frame.c (_initialize_frame): Likewise.
2751 * gnu-nat.c (add_task_commands): Likewise.
2752 * infcall.c (_initialize_infcall): Likewise.
2753 * infcmd.c (_initialize_infcmd): Likewise.
2754 * interps.c (_initialize_interpreter): Likewise.
2755 * language.c (_initialize_language): Likewise.
2756 * linux-fork.c (_initialize_linux_fork): Likewise.
2757 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
2758 * maint.c (_initialize_maint_cmds): Likewise.
2759 * memattr.c (_initialize_mem): Likewise.
2760 * printcmd.c (_initialize_printcmd): Likewise.
2761 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
2762 _RegEx): Likewise.
2763 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
2764 * record-btrace.c (_initialize_record_btrace): Likewise.
2765 * record-full.c (_initialize_record_full): Likewise.
2766 * record.c (_initialize_record): Likewise.
2767 * regcache-dump.c (_initialize_regcache_dump): Likewise.
2768 * regcache.c (_initialize_regcache): Likewise.
2769 * remote.c (add_packet_config_cmd, init_remote_threadtests,
2770 _initialize_remote): Likewise.
2771 * ser-tcp.c (_initialize_ser_tcp): Likewise.
2772 * serial.c (_initialize_serial): Likewise.
2773 * skip.c (_initialize_step_skip): Likewise.
2774 * source.c (_initialize_source): Likewise.
2775 * stack.c (_initialize_stack): Likewise.
2776 * symfile.c (_initialize_symfile): Likewise.
2777 * symtab.c (_initialize_symtab): Likewise.
2778 * target-descriptions.c (_initialize_target_descriptions): Likewise.
2779 * top.c (init_main): Likewise.
2780 * tracefile-tfile.c (tfile_target_info): Likewise.
2781 * tracepoint.c (_initialize_tracepoint): Likewise.
2782 * tui/tui-win.c (_initialize_tui_win): Likewise.
2783 * utils.c (add_internal_problem_command): Likewise.
2784 * valprint.c (value_print_option_defs): Likewise.
2785
404f2902
FCE
27862019-08-06 Frank Ch. Eigler <fche@redhat.com>
2787
2788 PR build/24886
2789 * configure.ac: Drop enable-libmcheck support.
2790 * configure, config.in: Rebuild.
2791 * libmcheck.m4: Remove.
2792 * acinclude.m4: Don't include it.
2793 * Makefile.in: Don't distribute it.
2794 * top.c (print_gdb_configuration): Don't mention it.
2795
046bebe1
TT
27962019-08-06 Tom Tromey <tom@tromey.com>
2797
2798 * utils.c (set_output_style): Sometimes pass stream to
2799 emit_style_escape.
2800 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
2801 * record-btrace.c (btrace_insn_history): Update.
2802 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
2803 method.
2804 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
2805 Update initializers.
2806 <m_uiout>: New field.
2807 <m_di>: Move lower.
2808 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2809 Remove "uiout" parameter.
2810 (dump_insns): Update.
2811 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
2812 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
2813
ddbcedf5
CB
28142019-08-06 Christian Biesinger <cbiesinger@google.com>
2815
2816 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
2817 (error_in_psymtab_expansion): Likewise.
2818 (lookup_symbol_via_quick_fns): Likewise.
2819 (basic_lookup_transparent_type_quick): Likewise.
2820 (basic_lookup_transparent_type_1): Likewise.
2821
b08b16c8
TT
28222019-08-06 Tom Tromey <tromey@adacore.com>
2823
2824 * source.c (last_source_error): Now bool.
2825 (print_source_lines_base): Make "noprint" bool. Only open
2826 source file when last_source_visited changes.
2827
cb44333d
TT
28282019-08-06 Tom Tromey <tromey@adacore.com>
2829
2830 * annotate.c (annotate_source_line): Use g_source_cache.
2831 * source-cache.c (source_cache::get_plain_source_lines): Change
2832 parameters. Populate m_offset_cache.
2833 (source_cache::ensure): New method.
2834 (source_cache::get_line_charpos): New method.
2835 (extract_lines): Move lower. Change parameters.
2836 (source_cache::get_source_lines): Move lower.
2837 * source-cache.h (class source_cache): Update comment.
2838 <get_line_charpos>: New method.
2839 <get_source_lines>: Update comment.
2840 <clear>: Clear m_offset_cache.
2841 <get_plain_source_lines>: Change parameters.
2842 <ensure>: New method
2843 <m_offset_cache>: New member.
2844 * source.c (forget_cached_source_info_for_objfile): Update.
2845 (info_source_command): Use g_source_cache.
2846 (find_source_lines, open_source_file_with_line_charpos): Remove.
2847 (print_source_lines_base, search_command_helper): Use g_source_cache.
2848 * source.h (open_source_file_with_line_charpos): Don't declare.
2849 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
2850 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
2851 Use g_source_cache.
2852
872dceaa
TT
28532019-08-06 Tom Tromey <tromey@adacore.com>
2854
2855 * source-cache.c (source_cache::get_plain_source_lines):
2856 Remove "first_line" and "last_line" parameters.
2857 (source_cache::get_source_lines): Cache plain text.
2858 * source-cache.h (class source_cache)
2859 <get_plain_source_lines>: Update.
2860
269249d9
TT
28612019-08-06 Tom Tromey <tromey@adacore.com>
2862
2863 * source-cache.c (extract_lines): No longer a method.
2864 Changed type of parameter. Include final newline.
2865 (selftests::extract_lines_test): New function.
2866 (_initialize_source_cache): Likewise.
2867 * source-cache.h (class source_cache)
2868 <extract_lines>: Don't declare.
2869
c0e8dcd8
TT
28702019-08-06 Tom Tromey <tromey@adacore.com>
2871
2872 * breakpoint.c (init_breakpoint_sal): Update.
2873 (breakpoint): Update.
2874 * breakpoint.h (struct breakpoint) <filter>: Now a
2875 unique_xmalloc_ptr.
2876
0b27c27d
CB
28772019-08-05 Christian Biesinger <cbiesinger@google.com>
2878
2879 * NEWS: Mention dictionary access on blocks.
2880 * python/py-block.c (blpy_getitem): New function.
2881 (block_object_as_mapping): New struct.
2882 (block_object_type): Use new struct for tp_as_mapping field.
2883
4ee94178
CB
28842019-08-05 Christian Biesinger <cbiesinger@google.com>
2885
2886 * objfiles.h (objfile): Add a comment describing partial symbols.
2887
8abfcabc
TT
28882019-08-05 Tom Tromey <tromey@adacore.com>
2889
2890 * compile/compile.c (_initialize_compile): Use _(), not N_().
2891 * thread.c (_initialize_thread): Use _(), not N_().
2892 * stack.c (_initialize_stack): Use _(), not N_().
2893 * printcmd.c (_initialize_printcmd): Use _(), not N_().
2894
2b79f376
SM
28952019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2896
2897 * dwarf2read.c (struct dw2_symtab_iterator):
2898 <want_specific_block>: Remove.
2899 <block_index>: Change type to gdb::optional.
2900 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
2901 change type of BLOCK_INDEX parameter to gdb::optional.
2902 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
2903 (dw2_lookup_symbol): Don't pass argument for
2904 WANT_SPECIFIC_BLOCK.
2905 (dw2_expand_symtabs_for_function): Don't pass argument for
2906 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
2907 (class dw2_debug_names_iterator)
2908 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
2909 parameter, change BLOCK_INDEX type to gdb::optional.
2910 <m_want_specific_block>: Remove.
2911 <m_block_index>: Change type to gdb::optional.
2912 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
2913 gdb::optional. Re-write in function of gdb::optional.
2914 (dw2_debug_names_lookup_symbol): Don't pass argument for
2915 WANT_SPECIFIC_BLOCK.
2916 (dw2_debug_names_expand_symtabs_for_function): Don't pass
2917 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
2918 BLOCK_INDEX.
2919
ae60f04e
PW
29202019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2921
2922 * NEWS: Mention changes to "info sources" command.
2923
28cd9371
PW
29242019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2925
2926 * symtab.c (filename_partial_match_opts): New struct type.
2927 (struct output_source_filename_data): New members
2928 regexp, c_regexp, partial_match.
2929 (output_source_filename): Use new members to decide to print file.
2930 (info_sources_option_defs): New variable.
2931 (make_info_sources_options_def_group, print_info_sources_header,
2932 info_sources_command_completer):
2933 New functions.
2934 (info_sources_command): Read new optional arguments.
2935 (_initialize_symtab): Update info sources help.
2936
ca683e3a
AO
29372019-08-02 Alexandre Oliva <oliva@adacore.com>
2938
2939 * ada-lang.c (exception_support_info_v0): Renamed from...
2940 (default_exception_support_info): ... this. Create new
2941 definition for v1.
2942 (ada_has_this_exception_support): Look up catch_handlers_sym.
2943 (ada_exception_support_info_sniffer): Try v0 after default.
2944
f1264162
TT
29452019-08-01 Tom Tromey <tromey@adacore.com>
2946
2947 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
2948 gdbarch.h.
2949
0a7b2485
CB
29502019-08-01 Christian Biesinger <cbiesinger@google.com>
2951
2952 * s12z-tdep.c: Fix include path for s12z-opc.h.
2953
c6bdbeb7
AH
29542019-08-01 Alan Hayward <alan.hayward@arm.com>
2955
2956 * NEWS: Require GNU make 3.82.
2957
a2bd7b82
TT
29582019-07-16 Tom Tromey <tom@tromey.com>
2959
2960 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
2961 declare.
2962
aa3b6533
TT
29632019-07-30 Tom Tromey <tromey@adacore.com>
2964
2965 * block.c (contained_in): Remove BLOCK_FUNCTION check.
2966
a1530dc7
KB
29672019-07-30 Kevin Buettner <kevinb@redhat.com>
2968
2969 * printcmd.c (print_address_symbolic): Print negative offsets.
2970 (build_address_symbolic): Force signed arithmetic when computing
2971 offset.
2972
2906593f
CB
29732019-07-30 Christian Biesinger <cbiesinger@google.com>
2974
2975 PR/24474: Add a function to lookup static variables.
2976 * NEWS: Mention this new function.
2977 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
2978 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
2979 * python/python.c (python_GdbMethods): Add new function.
2980
c620ed88
CB
29812019-07-29 Christian Biesinger <cbiesinger@google.com>
2982
2983 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
2984 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
2985 (objfpy_lookup_static_symbol): New function.
2986 (objfile_object_methods): Add new functions.
2987
bc4268a5
PW
29882019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2989
2990 * NEWS: Mention 'set|show print frame-info'. Mention new
2991 'presence' value for 'frame-arguments'. Mention new '-frame-info'
2992 backtrace argument. Mention that python frame filtering code
2993 is now consistent with what 'backtrace' command prints.
2994
4b5e8d19
PW
29952019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2996
2997 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
2998 comments.
2999 (print_frame_info_auto, print_frame_info_source_line,
3000 print_frame_info_location, print_frame_info_source_and_location,
3001 print_frame_info_location_and_address, print_frame_info_short_location):
3002 New declarations.
3003 (struct frame_print_options): New member print_frame_info.
3004 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
3005 * stack.h (get_user_print_what_frame_info): New declaration.
3006 (frame_show_address): New declaration.
3007 * stack.c (print_frame_arguments_choices): New value 'presence'.
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 print_frame_info_choices, print_frame_info_print_what): New definitions.
3012 (print_frame_args): Only print dots for args if print frame-arguments
3013 is 'presence'.
3014 (frame_print_option_defs): New element for "frame-info".
3015 (get_user_print_what_frame_info): New function.
3016 (frame_show_address): Make non static. Move comment to stack.h.
3017 (print_frame_info_to_print_what): New function.
3018 (print_frame_info): Update comment. Use fp_opts.print_frame_info
3019 to decide what to print.
3020 (backtrace_command_1): Handle the new print_frame_arguments_presence
3021 value.
3022 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
3023 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
3024 (py_print_frame): In non-mi mode, use LOCATION as default for
3025 print_what, similarly to frame information printed directly by
3026 backtrace command. Handle frame-info user option in non MI mode.
3027
6bdfee81
KB
30282019-07-27 Kevin Buettner <kevinb@redhat.com>
3029
3030 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
3031 Add case for debugging 32-bit target on 64-bit host. Revise
3032 comment.
3033
98a617f8
KB
30342019-07-27 Kevin Buettner <kevinb@redhat.com>
3035
3036 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
3037 instead of find_function_entry_range_from_pc.
3038
567238c9
KB
30392019-07-27 Kevin Buettner <kevinb@redhat.com>
3040
3041 * stack.c (find_frame_funname): Remove code which preferred
3042 minsym over symtab sym in "certain pathological cases".
3043
2dc80cf8
KB
3044 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
3045 parameter. Change type of "do_demangle" to bool.
3046 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3047 Pass suitable "prefer_sym_over_minsym" flag to
3048 build_address_symbolic(). Don't output "+" for negative offsets.
3049 * printcmd.c (print_address_symbolic): Update invocation of
3050 build_address_symbolic to include a "prefer_sym_over_minsym"
3051 flag.
3052 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
3053 Restrict cases in which use of minimal symbol is preferred to that
3054 of a found symbol. Update comments.
3055
1aff7173
KB
3056 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
3057 for entry pc when entry pc is out of range for that FDE.
3058
89b085ac
BC
30592019-07-26 Brian Callahan <bcallah@openbsd.org>
3060
3061 PR gdb/24839:
3062 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
3063 type.
3064
f32feb4a
CB
30652019-07-25 Christian Biesinger <cbiesinger@google.com>
3066
3067 * python/py-objfile.c (add_separate_debug_file): Fix comment about
3068 this function's Python signature.
3069
3070
30712019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
3072
3073 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
3074 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3075 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3076 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
3077 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
3078
3079
c54e4253
YS
30802019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
3081
3082 * h8300-tdep.c (h8300_register_name_common): New.
3083 h8300_register_name): Use h8300_register_name_common.
3084 (h8300s_register_name): Likewise.
3085 (h8300sx_register_name): Likewise.
3086 (h8300h_register_nam): New.
3087 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
3088
3089
40eadf04
SP
30902019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3091
3092 * arm-tdep.c (arm_skip_cmse_entry): New function.
3093 (arm_is_sgstubs_section): New function.
3094 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
3095
bfa2a36d
TT
30962019-07-22 Tom Tromey <tom@tromey.com>
3097
3098 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
3099 Don't self-assign.
3100
a8e9d247
AB
31012019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3102
3103 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
3104 type_print.
3105
eb86c5e2
AB
31062019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3107
3108 * symtab.c (search_symbols): Adjust msymbol matching type arrays
3109 so that GDB doesn't match any msymbols when searching in the
3110 TYPES_DOMAIN.
3111 (print_symbol_info): Print using typedef_print or type_print based
3112 on the type of the symbol. Add updated FIXME comment moved from...
3113 (_initialize_symtab): ... move and update FIXME comment to above.
3114
a8eab7c6
AB
31152019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3116
3117 * NEWS: Mention adding -q option to "info types".
3118 * symtab.c (struct info_types_options): New struct.
3119 (info_types_options_defs): New variable.
3120 (make_info_types_options_def_group): New function.
3121 (info_types_command): Use gdb::option framework to parse options.
3122 (info_types_command_completer): New function.
3123 (_initialize_symtab): Extend the help text on "info types" and
3124 register command completer.
3125
b4603c34
CB
31262019-07-21 Christian Biesinger <cbiesinger@google.com>
3127
3128 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
3129 (lookup_symbol_in_objfile): Change int to block_enum and add a
3130 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
3131
c8cdc1e0
CB
31322019-07-20 Christian Biesinger <cbiesinger@google.com>
3133
3134 * MAINTAINERS (Write After Approval): Add self.
3135
01e175fe
AB
31362019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
3137
3138 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
3139 instruction to the dummy code region.
3140
56f79b63
TT
31412019-07-19 Tom Tromey <tromey@adacore.com>
3142
3143 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
3144 (ARGSUSED, PARAMS, __func__): Remove rules.
3145
4c5aa8e0
AH
31462019-07-19 Alan Hayward <alan.hayward@arm.com>
3147
3148 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
3149 * features/arm/arm-with-iwmmxt.c: Remove.
3150 * features/arm/arm-with-iwmmxt.xml: Remove.
3151 * features/arm/arm-with-m-fpa-layout.c: Remove.
3152 * features/arm/arm-with-m-fpa-layout.xml: Remove.
3153 * features/arm/arm-with-m-vfp-d16.c: Remove.
3154 * features/arm/arm-with-m-vfp-d16.xml: Remove.
3155 * features/arm/arm-with-m.c: Remove.
3156 * features/arm/arm-with-m.xml: Remove.
3157 * features/arm/arm-with-neon.c: Remove.
3158 * features/arm/arm-with-neon.xml: Remove.
3159 * features/arm/arm-with-vfpv2.c: Remove.
3160 * features/arm/arm-with-vfpv2.xml: Remove.
3161 * features/arm/arm-with-vfpv3.c: Remove.
3162 * features/arm/arm-with-vfpv3.xml: Remove.
3163
f42b2617
AH
31642019-07-19 Alan Hayward <alan.hayward@arm.com>
3165
3166 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
3167
f29ec966
AH
31682019-07-19 Alan Hayward <alan.hayward@arm.com>
3169
3170 * arch/aarch32.c (aarch32_create_target_description): Create
3171 target descriptions using features.
3172 * arch/arm.c (arm_create_target_description)
3173 (arm_create_mprofile_target_description): Likewise.
3174 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
3175
d105cce5
AH
31762019-07-19 Alan Hayward <alan.hayward@arm.com>
3177
3178 * Makefile.in: Add new files.
3179 * aarch32-tdep.c: New file.
3180 * aarch32-tdep.h: New file.
3181 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3182 Call aarch32_read_description.
3183 * arch/aarch32.c: New file.
3184 * arch/aarch32.h: New file.
3185 * arch/arm.c (arm_create_target_description)
3186 (arm_create_mprofile_target_description): New function.
3187 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
3188 (arm_create_target_description)
3189 (arm_create_mprofile_target_description): New declaration.
3190 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
3191 read_description functions.
3192 * arm-linux-nat.c (arm_linux_nat_target::read_description):
3193 Likewise.
3194 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3195 * arm-tdep.c (tdesc_arm_list): New variable.
3196 (arm_register_g_packet_guesses): Call create description functions.
3197 (arm_read_description) (arm_read_mprofile_description): New
3198 function.
3199 * arm-tdep.h (arm_read_description)
3200 (arm_read_mprofile_description): Add declaration.
3201 * configure.tgt: Add new files.
3202
afe09f0b
GL
32032019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
3204
3205 * top.c (new_ui_command): Open specified terminal just once.
3206
cd215b2e
TT
32072019-07-18 Tom Tromey <tromey@adacore.com>
3208
3209 * symtab.c (main_name): Constify return type.
3210 * symfile.c (set_initial_language): Update.
3211 * symtab.h (main_name): Constify return type.
3212
d8f68fcb
TT
32132019-07-17 Tom Tromey <tom@tromey.com>
3214
3215 * tui/tui-winsource.c (tui_update_source_window)
3216 (tui_update_source_window_as_is)
3217 (tui_update_source_windows_with_line): Remove return.
3218 * tui/tui-disasm.c (tui_show_disassem)
3219 (tui_show_disassem_and_update_source): Remove return.
3220 * tui/tui.c (tui_reset): Remove return.
3221 * tui/tui-wingeneral.c
3222 (tui_check_and_display_highlight_if_needed): Remove return.
3223
ca5af91e
TT
32242019-07-17 Tom Tromey <tom@tromey.com>
3225
3226 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
3227
5104fe36
TT
32282019-07-17 Tom Tromey <tom@tromey.com>
3229
3230 * tui/tui-winsource.h (struct tui_exec_info_window)
3231 (struct tui_source_window_base): Move from tui-data.h.
3232 * tui/tui-winsource.c: Move many method definitions from
3233 elsewhere. Remove "structuring" comments.
3234 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
3235 (tui_source_window_base::refresh_window): Move to
3236 tui-winsource.c.
3237 * tui/tui-win.c (tui_source_window_base::refresh_all)
3238 (tui_source_window_base::update_tab_width)
3239 (tui_source_window_base::set_new_height)
3240 (tui_source_window_base::do_make_visible_with_new_height): Move to
3241 tui-winsource.c.
3242 * tui/tui-source.h: Update.
3243 * tui/tui-source.c (tui_source_window_base::reset): Move to
3244 tui-winsource.c.
3245 * tui/tui-disasm.h: Update.
3246 * tui/tui-data.h (struct tui_exec_info_window): Move to
3247 tui-winsource.h.
3248 (struct tui_source_window_base): Likewise.
3249 * tui/tui-data.c (tui_source_window_base::clear_detail)
3250 (tui_source_window_base, ~tui_source_window_base): Move to
3251 tui-winsource.c.
3252
daa15dde
TT
32532019-07-17 Tom Tromey <tom@tromey.com>
3254
3255 * tui/tui-win.c (tui_resize_all)
3256 (tui_source_window_base::update_tab_width)
3257 (tui_adjust_win_heights): Update.
3258 (tui_win_info::make_invisible_and_set_new_height): Rename from
3259 make_invisible_and_set_new_height.
3260 * tui/tui-data.h (struct tui_win_info)
3261 <make_invisible_and_set_new_height>: New method.
3262
bfad4537
TT
32632019-07-17 Tom Tromey <tom@tromey.com>
3264
3265 * tui/tui.c: Update.
3266 * tui/tui-source.h (struct tui_source_window): Move from
3267 tui-data.h.
3268 * tui/tui-layout.c: Update.
3269 * tui/tui-disasm.c: Update.
3270 * tui/tui-data.h (struct tui_source_window): Move to
3271 tui-source.h.
3272
88f7e873
TT
32732019-07-17 Tom Tromey <tom@tromey.com>
3274
3275 * tui/tui-disasm.h (struct tui_disasm_window): Move from
3276 tui-data.h.
3277 * tui/tui-data.h (struct tui_disasm_window): Move to
3278 tui-disasm.h.
3279
96bd6233
TT
32802019-07-17 Tom Tromey <tom@tromey.com>
3281
3282 * tui/tui-regs.h (struct tui_data_item_window): Move from
3283 tui-data.h.
3284 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
3285 * tui/tui-data.h (struct tui_data_item_window): Move to
3286 tui-regs.h.
3287 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
3288
ce38393b
TT
32892019-07-17 Tom Tromey <tom@tromey.com>
3290
3291 * tui/tui.c: Update.
3292 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
3293 (tui_cmd_window::max_height): Move to tui-command.c.
3294 * tui/tui-layout.c: Update.
3295 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
3296 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
3297 tui-command.c.
3298 * tui/tui-command.h (struct tui_cmd_window): Move from
3299 tui-data.h.
3300 * tui/tui-command.c: Remove "structuring" comments.
3301 (tui_cmd_window::clear_detail)
3302 (tui_cmd_window::do_make_visible_with_new_height)
3303 (tui_cmd_window::max_height): Move from elsewhere.
3304
2d8b51cb
TT
33052019-07-17 Tom Tromey <tom@tromey.com>
3306
3307 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
3308 Now static.
3309 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
3310 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
3311
18ab23af
TT
33122019-07-17 Tom Tromey <tom@tromey.com>
3313
3314 * tui/tui.c: Update.
3315 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
3316 tui-regs.c.
3317 * tui/tui-windata.h: Remove file.
3318 * tui/tui-windata.c: Remove file.
3319 * tui/tui-win.c (tui_data_window::set_new_height)
3320 (tui_data_window::do_make_visible_with_new_height): Move to
3321 tui-regs.c.
3322 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
3323 * tui/tui-regs.c: Remove "structuring" comments.
3324 (tui_data_window::first_data_item_displayed)
3325 (tui_data_window::delete_data_content_windows)
3326 (tui_data_window::erase_data_content)
3327 (tui_data_window::display_all_data)
3328 (tui_data_window::refresh_all)
3329 (tui_data_window::do_scroll_vertical)
3330 (tui_data_window::clear_detail, tui_data_window::set_new_height)
3331 (tui_data_window::do_make_visible_with_new_height)
3332 (tui_data_window::refresh_window): Move from elsewhere.
3333 (_initialize_tui_regs): Move to end of file.
3334 * tui/tui-layout.c: Update.
3335 * tui/tui-hooks.c: Update.
3336 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
3337 * tui/tui-data.c (tui_data_window::clear_detail): Move to
3338 tui-regs.c.
3339 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
3340
88b7e7cc
TT
33412019-07-17 Tom Tromey <tom@tromey.com>
3342
3343 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
3344 seen.
3345
0fcd3711
TT
33462019-07-17 Tom Tromey <tom@tromey.com>
3347
3348 * tui/tui-win.c (tui_source_window_base::set_new_height)
3349 (tui_source_window_base::do_make_visible_with_new_height): Use
3350 m_has_locator field directly.
3351 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
3352 method.
3353 (struct tui_source_window_base) <has_locator>: Likewise.
3354
4a38112d
TT
33552019-07-17 Tom Tromey <tom@tromey.com>
3356
3357 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
3358 Don't declare.
3359 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
3360 Remove.
3361 * tui/tui-win.c (tui_source_window_base::set_new_height)
3362 (tui_source_window_base::set_new_height)
3363 (make_invisible_and_set_new_height)
3364 (tui_source_window_base::do_make_visible_with_new_height)
3365 (tui_source_window_base::do_make_visible_with_new_height):
3366 Update.
3367 * tui/tui-layout.c (show_source_disasm_command, show_data)
3368 (show_source_or_disasm_and_command): Update.
3369 * tui/tui-layout.c (show_layout): Update.
3370
09129226
TT
33712019-07-17 Tom Tromey <tom@tromey.com>
3372
3373 * tui/tui-layout.c (make_data_window): Remove.
3374 (show_data): Unify creation and re-initialization cases.
3375
4a8a5e84
TT
33762019-07-17 Tom Tromey <tom@tromey.com>
3377
3378 * tui/tui-layout.c (make_source_window, make_disasm_window):
3379 Remove.
3380 (show_data): Unify creation and re-initialization cases.
3381
76d2be8e
TT
33822019-07-17 Tom Tromey <tom@tromey.com>
3383
3384 * tui/tui-layout.c (make_command_window): Remove.
3385 (show_source_disasm_command, show_source_or_disasm_and_command):
3386 Unify creation and re-initialization cases.
3387
890b8bde
TT
33882019-07-17 Tom Tromey <tom@tromey.com>
3389
3390 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
3391 creation and re-initialization cases.
3392
2cdfa113
TT
33932019-07-17 Tom Tromey <tom@tromey.com>
3394
3395 * tui/tui-regs.c (tui_get_register): Return void.
3396
8e3cfd09
TT
33972019-07-17 Tom Tromey <tom@tromey.com>
3398
3399 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
3400 Simplify.
3401
f4e04977
TT
34022019-07-17 Tom Tromey <tom@tromey.com>
3403
3404 * tui/tui-layout.c (show_source_disasm_command): Simplify window
3405 resetting.
3406
0379b883
TT
34072019-07-17 Tom Tromey <tom@tromey.com>
3408
3409 * tui/tui.h (tui_set_layout_by_name): Don't declare.
3410 * tui/tui-regs.c (tui_reg_layout): New function.
3411 (tui_show_registers, tui_reg_command): Use it.
3412 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
3413 (tui_layout_command): Rename from tui_set_layout_by_name. Change
3414 parameters.
3415 (tui_layout_command): Remove.
3416
b7fbad91
TT
34172019-07-17 Tom Tromey <tom@tromey.com>
3418
3419 * tui/tui-layout.h (tui/tui-layout): Return void.
3420 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
3421
4e1e56b9
TT
34222019-07-17 Tom Tromey <tom@tromey.com>
3423
3424 * tui/tui-layout.c (show_source_disasm_command, show_data):
3425 Update.
3426 (reset_locator): Remove.
3427 (show_source_or_disasm_and_command): Update.
3428
1e0c09ba
TT
34292019-07-17 Tom Tromey <tom@tromey.com>
3430
3431 * tui/tui-source.c (tui_source_window_base::reset): Remove
3432 win_type parameter.
3433 * tui/tui-layout.c (make_command_window, make_source_window)
3434 (make_disasm_window, make_data_window)
3435 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
3436 (reset_locator, show_source_or_disasm_and_command): Update.
3437 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
3438 win_type parameter.
3439 (struct tui_source_window_base) <reset>: Likewise.
3440
1bf605de
TT
34412019-07-17 Tom Tromey <tom@tromey.com>
3442
3443 * tui/tui-layout.c (show_source_disasm_command): Use
3444 reset_locator.
3445 (reset_locator): New function.
3446 (init_and_make_win): Remove.
3447 (show_source_or_disasm_and_command): Use reset_locator.
3448
098f9ed4
TT
34492019-07-17 Tom Tromey <tom@tromey.com>
3450
3451 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
3452 condition.
3453 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
3454 Remove condition.
3455 * tui/tui-source.c (tui_source_window_base::reset): New method.
3456 * tui/tui-layout.c (make_command_window): Don't call
3457 init_and_make_win.
3458 (make_source_window, make_disasm_window): Don't call
3459 make_source_or_disasm_window.
3460 (make_data_window): Don't call init_and_make_win. Change calling
3461 convention.
3462 (show_source_disasm_command, show_data): Simplify.
3463 (make_source_or_disasm_window): Remove.
3464 (show_source_or_disasm_and_command): Simplify.
3465 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
3466 (struct tui_source_window_base) <reset>: Likewise.
3467 <execution_info>: Remove initializer.
3468 * tui/tui-data.c (tui_source_window_base): Initialize
3469 execution_info.
3470
80110957
TT
34712019-07-17 Tom Tromey <tom@tromey.com>
3472
3473 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
3474 variable.
3475
cf82af05
TT
34762019-07-17 Tom Tromey <tom@tromey.com>
3477
3478 * tui/tui.c (tui_rl_other_window): Update.
3479 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
3480 superclass method first. Always iterate over regs_content.
3481 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
3482 method.
3483 * tui/tui-win.c (tui_set_focus_command): Update.
3484
01aeb396
TT
34852019-07-17 Tom Tromey <tom@tromey.com>
3486
3487 * tui/tui-win.c (tui_set_focus_command): Rename from
3488 tui_set_focus. Call tui_enable.
3489 (tui_set_focus_command): Remove.
3490
fd6c75ee
TT
34912019-07-17 Tom Tromey <tom@tromey.com>
3492
3493 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
3494 refresh_window.
3495 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
3496 touchwin.
3497 (tui_data_window::refresh_window): Call refresh_window on data
3498 items. Always call superclass refresh_window.
3499 (tui_win_info::refresh): Remove.
3500 (tui_source_window_base::refresh_window): Update.
3501 (tui_refresh_all): Update.
3502 * tui/tui-layout.c (show_source_disasm_command): Remove call to
3503 refresh_window.
3504 (show_source_or_disasm_and_command): Likewise.
3505 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
3506 (struct tui_source_window_base) <refresh>: Likewise.
3507
f6cc34a9
TT
35082019-07-17 Tom Tromey <tom@tromey.com>
3509
3510 * tui/tui-winsource.c (tui_clear_source_content)
3511 (tui_show_source_content): Update.
3512 * tui/tui-source.c (tui_source_window::showing_source_p): Check
3513 whether content is empty.
3514 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
3515 Remove.
3516
f31ec9af
TT
35172019-07-17 Tom Tromey <tom@tromey.com>
3518
3519 * tui/tui-winsource.c (tui_erase_source_content): Clear the
3520 window's contents.
3521 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
3522 * tui/tui-source.c (tui_set_source_content_nil): Remove.
3523
d1b6f1e5
TT
35242019-07-17 Tom Tromey <tom@tromey.com>
3525
3526 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
3527 (struct tui_data_item_window): Update.
3528
d9743a13
TT
35292019-07-17 Tom Tromey <tom@tromey.com>
3530
3531 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
3532 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
3533 defines.
3534
caf0bc4e
TT
35352019-07-17 Tom Tromey <tom@tromey.com>
3536
3537 * tui/tui-winsource.h (tui_erase_source_content)
3538 (tui_clear_source_content): Remove "display_prompt" parameter.
3539 * tui/tui-winsource.c (tui_update_source_window_as_is)
3540 (tui_update_source_windows_with_addr): Update.
3541 (tui_clear_source_content): Remove "display_prompt" parameter.
3542 (tui_erase_source_content): Likewise. Simplify.
3543 (tui_show_source_content): Update.
3544 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3545 * tui/tui-stack.c (tui_show_frame_info): Update.
3546 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
3547 Remove defines.
3548
9d391078
TT
35492019-07-17 Tom Tromey <tom@tromey.com>
3550
3551 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3552 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
3553 parameter.
3554 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
3555 parameter.
3556
a38da35d
TT
35572019-07-17 Tom Tromey <tom@tromey.com>
3558
3559 * tui/tui-winsource.c (tui_clear_source_content)
3560 (tui_show_source_content, tui_show_exec_info_content)
3561 (tui_clear_exec_info_content): Update.
3562 * tui/tui-stack.c (tui_show_locator_content): Update.
3563 (tui_show_frame_info): Update.
3564 * tui/tui-source.h (tui_source_window): Don't declare.
3565 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
3566 from tui_source_is_displayed.
3567 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
3568 Remove field.
3569 (struct tui_source_window_base) <content_in_use>: New field. Now
3570 bool.
3571 (struct tui_source_window) <showing_source_p>: New method.
3572 (TUI_SRC_WIN): Change cast.
3573 * tui/tui-data.c (tui_initialize_static_data): Update.
3574
c2cd8994
TT
35752019-07-17 Tom Tromey <tom@tromey.com>
3576
3577 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
3578 location_matches_p.
3579 * tui/tui-source.c (tui_source_window::location_matches_p): New
3580 method.
3581 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
3582 method.
3583 * tui/tui-data.h (struct tui_source_window_base)
3584 <location_matches_p>: New method.
3585 (struct tui_source_window, struct tui_disasm_window)
3586 <location_matches_p>: Likewise.
3587
4dde7b34
TT
35882019-07-17 Tom Tromey <tom@tromey.com>
3589
3590 * tui/tui-win.c (tui_set_win_height_command): Rename from
3591 tui_set_win_height.
3592 (tui_set_win_height_command): Remove.
3593
b73dd877
TT
35942019-07-17 Tom Tromey <tom@tromey.com>
3595
3596 * tui/tui-source.c (tui_source_window): New constructor. Add
3597 observer.
3598 (~tui_source_window): New destructor.
3599 (tui_source_window::style_changed): New method.
3600 * tui/tui-hooks.c (tui_redisplay_source): Remove.
3601 (tui_attach_detach_observers): Update.
3602 * tui/tui-data.h (struct tui_source_window): Make constructor not
3603 inline. Add destructor.
3604 (struct tui_source_window) <style_changed>: New method.
3605 <m_observable>: New member.
3606
ae2b5380
TT
36072019-07-17 Tom Tromey <tom@tromey.com>
3608
3609 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
3610 * tui/tui-win.c (tui_resize_all): Fix typo.
3611
1ce3e844
TT
36122019-07-17 Tom Tromey <tom@tromey.com>
3613
3614 * tui/tui-wingeneral.h (tui_refresh_all): Update.
3615 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
3616 (tui_refresh_all): Remove "list" parameter. Use foreach.
3617 * tui/tui-win.c (window_name_completer): Use foreach.
3618 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
3619 (update_tab_width): Likewise.
3620 * tui/tui-layout.c (show_layout): Update.
3621 * tui/tui-data.h (class tui_window_iterator): New.
3622 (struct all_tui_windows): New.
3623 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
3624
fe3eaf1c
TT
36252019-07-17 Tom Tromey <tom@tromey.com>
3626
3627 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
3628 parameter. Don't reference globals.
3629 (tui_reg_command): Update.
3630
368c1354
TT
36312019-07-17 Tom Tromey <tom@tromey.com>
3632
3633 * tui/tui-regs.c (tui_show_registers): Simplify.
3634
e80cd204
TT
36352019-07-17 Tom Tromey <tom@tromey.com>
3636
3637 * tui/tui-regs.c (tui_show_registers): Update.
3638 (tui_show_register_group): Add win_info parameter.
3639
aca2dd16
TT
36402019-07-17 Tom Tromey <tom@tromey.com>
3641
3642 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
3643 Rename from tui_display_reg_element_at_line.
3644 (tui_data_window::display_registers_from_line): Update.
3645 * tui/tui-data.h (struct tui_data_window)
3646 <display_reg_element_at_line>: New method.
3647
517e9505
TT
36482019-07-17 Tom Tromey <tom@tromey.com>
3649
3650 * tui/tui-regs.h (tui_display_registers_from)
3651 (tui_display_registers_from_line): Don't declare.
3652 * tui/tui-windata.c (tui_data_window::display_all_data)
3653 (tui_data_window::refresh_all)
3654 (tui_data_window::do_scroll_vertical): Update.
3655 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
3656 from tui_display_registers_from.
3657 (tui_display_reg_element_at_line): Update.
3658 (tui_data_window::display_registers_from_line): Rename from
3659 tui_display_registers_from_line.
3660 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
3661 display_registers_from_line>: New methods.
3662
f76d8b19
TT
36632019-07-17 Tom Tromey <tom@tromey.com>
3664
3665 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
3666 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
3667 from tui_erase_data_content.
3668 (tui_data_window::display_all_data)
3669 (tui_data_window::refresh_all)
3670 (tui_data_window::do_scroll_vertical): Update.
3671 * tui/tui-regs.c (tui_show_registers): Update.
3672 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
3673 New method.
3674
b4094625
TT
36752019-07-17 Tom Tromey <tom@tromey.com>
3676
3677 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
3678 declare.
3679 * tui/tui-windata.c
3680 (tui_data_window::delete_data_content_windows): Rename from
3681 tui_delete_data_content_windows.
3682 (tui_data_window::display_all_data)
3683 (tui_data_window::do_scroll_vertical): Update.
3684 * tui/tui-data.h (struct tui_data_window)
3685 <delete_data_content_windows>: New method.
3686
c223a729
TT
36872019-07-17 Tom Tromey <tom@tromey.com>
3688
3689 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
3690 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
3691
50daf268
TT
36922019-07-17 Tom Tromey <tom@tromey.com>
3693
3694 * tui/tui-windata.h (tui_display_all_data): Don't declare.
3695 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
3696 from tui_display_all_data.
3697 * tui/tui-win.c
3698 (tui_data_window::do_make_visible_with_new_height): Update.
3699 * tui/tui-regs.c (tui_show_registers): Update.
3700 * tui/tui-layout.c (tui_set_layout): Update.
3701 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
3702 method.
3703
df5f8cab
TT
37042019-07-17 Tom Tromey <tom@tromey.com>
3705
3706 * tui/tui-windata.h (tui_display_data_from): Don't declare.
3707 * tui/tui-windata.c (tui_display_data_from): Remove.
3708 (tui_data_window::refresh_all): Update.
3709
80cb6c27
TT
37102019-07-17 Tom Tromey <tom@tromey.com>
3711
3712 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
3713 * tui/tui-windata.c (tui_display_data_from_line): Remove.
3714 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
3715 tui_display_registers_from_line.
3716 * tui/tui-regs.h (tui_display_registers_from_line): Update.
3717 * tui/tui-regs.c (tui_display_registers_from_line): Remove
3718 "force_display" parameter.
3719
baff0c28
TT
37202019-07-17 Tom Tromey <tom@tromey.com>
3721
3722 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
3723 declare.
3724 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
3725 Rename from tui_first_reg_element_no_inline.
3726 (tui_display_reg_element_at_line)
3727 (tui_display_registers_from_line): Update.
3728 * tui/tui-data.h (struct tui_data_window)
3729 <first_reg_element_no_inline>: New method.
3730
3b23c5f2
TT
37312019-07-17 Tom Tromey <tom@tromey.com>
3732
3733 * tui/tui-windata.c (tui_display_data_from)
3734 (tui_data_window::do_scroll_vertical): Update.
3735 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
3736 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
3737 Rename from tui_line_from_reg_element_no.
3738 (tui_display_registers_from_line): Update.
3739 * tui/tui-data.h (struct tui_data_window)
3740 <line_from_reg_element_no>: New method.
3741
0b5ec218
TT
37422019-07-17 Tom Tromey <tom@tromey.com>
3743
3744 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
3745 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
3746 tui_last_regs_line_no.
3747 (tui_display_reg_element_at_line)
3748 (tui_display_registers_from_line): Update.
3749 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
3750 method.
3751
0807ab7b
TT
37522019-07-17 Tom Tromey <tom@tromey.com>
3753
3754 PR tui/24722:
3755 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
3756 (tui_update_breakpoint_info): Add "being_deleted" parameter.
3757 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3758 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
3759 (tui_update_breakpoint_info): Likewise.
3760 * tui/tui-hooks.c (tui_event_create_breakpoint)
3761 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
3762 Update.
3763
9ad7fdef
TT
37642019-07-17 Tom Tromey <tom@tromey.com>
3765
3766 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
3767
5813316f
TT
37682019-07-17 Tom Tromey <tom@tromey.com>
3769
3770 * tui/tui-winsource.c (tui_update_source_window_as_is)
3771 (tui_update_source_windows_with_addr): Update.
3772 * tui/tui-source.h (tui_set_source_content)
3773 (tui_show_symtab_source): Add "win_info" parameter.
3774 * tui/tui-source.c (tui_set_source_content): Add "win_info"
3775 parameter.
3776 (tui_show_symtab_source): Likewise.
3777
00e264e7
TT
37782019-07-17 Tom Tromey <tom@tromey.com>
3779
3780 * tui/tui-wingeneral.c
3781 (tui_check_and_display_highlight_if_needed): Check can_highlight.
3782
06210ce4
TT
37832019-07-17 Tom Tromey <tom@tromey.com>
3784
3785 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
3786 (struct tui_cmd_window) <can_scroll>: New method.
3787 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
3788 method.
3789
381befee
TT
37902019-07-17 Tom Tromey <tromey@adacore.com>
3791
3792 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
3793 do_field_signed>: Rename. Change type of "value".
3794 * ui-out.c (ui_out::field_signed): Rename from field_int.
3795 Change type of "value".
3796 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
3797 type of "value".
3798 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
3799 do_field_int. Change type of "value".
3800 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
3801 do_field_int. Change type of "value".
3802 * tracepoint.c (trace_status_mi, tfind_1)
3803 (print_one_static_tracepoint_marker): Update.
3804 * thread.c (print_thread_info_1, print_selected_thread_frame):
3805 Update.
3806 * stack.c (print_frame, print_frame_info): Update.
3807 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
3808 Update.
3809 * source.c (print_source_lines_base): Update.
3810 * skip.c (info_skip_command): Update.
3811 * record-btrace.c (btrace_ui_out_decode_error)
3812 (btrace_call_history_src_line): Update.
3813 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
3814 Update.
3815 * progspace.c (print_program_space): Update.
3816 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
3817 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
3818 do_field_int. Change type of "value".
3819 * mi/mi-out.c (mi_ui_out::do_table_begin)
3820 (mi_ui_out::do_table_header): Update.
3821 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
3822 type of "value".
3823 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
3824 (mi_cmd_data_list_changed_registers, output_register)
3825 (mi_cmd_data_read_memory, mi_load_progress)
3826 (mi_cmd_trace_frame_collected): Update.
3827 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
3828 Update.
3829 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3830 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
3831 (mi_cmd_var_list_children, varobj_update_one): Update.
3832 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
3833 (mi_cmd_stack_list_args, list_arg_or_local): Update.
3834 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
3835 * inferior.c (print_inferior): Update.
3836 * gdb_bfd.c (print_one_bfd): Update.
3837 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3838 Update.
3839 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
3840 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
3841 do_field_int. Change type of "value".
3842 * cli-out.c (cli_ui_out::do_field_signed): Rename from
3843 do_field_int. Change type of "value".
3844 * breakpoint.c (watchpoint_check, print_breakpoint_location)
3845 (print_one_breakpoint_location, print_it_catch_fork)
3846 (print_one_catch_fork, print_it_catch_vfork)
3847 (print_one_catch_vfork, print_it_catch_solib)
3848 (print_it_catch_exec, print_it_ranged_breakpoint)
3849 (print_mention_watchpoint, print_mention_masked_watchpoint)
3850 (bkpt_print_it, update_static_tracepoint): Update.
3851 * break-catch-throw.c (print_it_exception_catchpoint): Update.
3852 * break-catch-syscall.c (print_it_catch_syscall): Update.
3853 * ada-tasks.c (print_ada_task_info): Update.
3854 * ada-lang.c (print_it_exception, print_mention_exception):
3855 Update.
3856
6b78c3f8
AB
38572019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3858
3859 PR breakpoints/24541
3860 * gdbarch.c: Regenerate.
3861 * gdbarch.h: Regenerate.
3862 * gdbarch.sh: Adjust return type and parameter types for
3863 'stap_adjust_register'.
3864 (i386_stap_adjust_register): Adjust signature and return new
3865 register name.
3866 * stap-probe.c (stap_parse_register_operand): Adjust use of
3867 'gdbarch_stap_adjust_register'.
3868
d72a9b85
TT
38692019-07-17 Tom Tromey <tromey@adacore.com>
3870
3871 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
3872 declare VEC.
3873 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
3874 std::vector.
3875 (struct s390_process_info): Add initializers.
3876 (s390_add_process): Use new.
3877 (s390_linux_nat_target::low_forget_process): Use delete.
3878 (s390_linux_nat_target::low_new_fork)
3879 (s390_linux_nat_target::stopped_by_watchpoint)
3880 (s390_linux_nat_target::low_prepare_to_resume)
3881 (s390_linux_nat_target::insert_watchpoint)
3882 (s390_linux_nat_target::insert_hw_breakpoint)
3883 (s390_linux_nat_target::remove_watchpoint)
3884 (s390_linux_nat_target::remove_hw_breakpoint): Update.
3885
206e6c58
JB
38862019-07-16 John Baldwin <jhb@FreeBSD.org>
3887
3888 * aarch64-fbsd-nat.c: Include regcache.h.
3889 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
3890 argument.
3891 (aarch64_fbsd_nat_target::fetch_registers)
3892 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
3893 variable.
3894 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
3895
cbde90f2
JB
38962019-07-16 John Baldwin <jhb@FreeBSD.org>
3897
3898 * fbsd-nat.c: Include gdbarch.h.
3899
07128006
TT
39002019-07-15 Tom Tromey <tromey@adacore.com>
3901
3902 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
3903
1f77b012
TT
39042019-07-15 Tom Tromey <tromey@adacore.com>
3905
3906 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
3907 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
3908 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
3909 * cli-out.c (cli_ui_out::do_field_int): New method.
3910 * ui-out.c (ui_out::field_unsigned): New method.
3911 * symfile.c (generic_load): Use field_unsigned.
3912 (print_transfer_performance): Likewise.
3913 * record-btrace.c (ui_out_field_uint): Remove.
3914 (btrace_call_history_insn_range, btrace_call_history): Use
3915 field_unsigned.
3916 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3917 field_unsigned.
3918 * ui-out.h (class ui_out) <field_unsigned>: New method.
3919 <do_field_unsigned>: Likewise.
3920
33eca680
TT
39212019-07-15 Tom Tromey <tromey@adacore.com>
3922
3923 * mi/mi-main.c (list_available_thread_groups): Use field_string.
3924 * mi/mi-interp.c (mi_memory_changed): Use field_string.
3925 * target.c (flash_erase_command): Use field_string.
3926 * infrun.c (print_signal_received_reason): Use field_string.
3927 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
3928 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
3929 field_string.
3930 * ada-tasks.c (print_ada_task_info): Use field_string.
3931
ca8d69be
TT
39322019-07-15 Tom Tromey <tromey@adacore.com>
3933
3934 * target.c (flash_erase_command): Use field_core_addr.
3935 * symfile.c (generic_load): Use field_core_addr.
3936 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3937 Use field_core_addr.
3938 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
3939 field_core_addr.
3940
0d4e84ed
AB
39412019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3942
3943 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
3944 value if its desired type is smaller than a CORE_ADDR and signed.
3945
9a49df9d
AB
39462019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3947
3948 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
3949 of changes to field names, and use new is_reference field to
3950 decide if a property is a reference or not.
3951 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
3952 field.
3953 (struct dwarf2_property_baton): Update header comment, rename
3954 'referenced_type' to 'property_type' and update comments.
3955 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
3956 default property type, store in property baton, update to take
3957 accound of renamed field.
3958 (read_func_scope): Update call to attr_to_dynamic_prop.
3959 (read_array_type): Likewise.
3960 (dwarf2_per_cu_addr_sized_int_type): New function.
3961 (read_subrange_index_type): Move type finding code to
3962 dwarf2_per_cu_addr_sized_int_type.
3963 (read_subrange_type): Update calls to attr_to_dynamic_prop.
3964 (dwarf2_per_cu_addr_type): New function.
3965 (set_die_type): Update calls to attr_to_dynamic_prop.
3966
b86352cf
AB
39672019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3968
3969 * dwarf2read.c (read_subrange_index_type): New function.
3970 (read_subrange_type): Move code into new function and call it.
3971 * gdbtypes.c (create_range_type): Add some asserts.
3972
603490bf
AB
39732019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3974
3975 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
3976 update return statements.
3977 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
3978 declaration, and update comment to match.
3979 * gdbtypes.c (resolve_dynamic_array): Update call to
3980 dwarf2_evaluate_property to match new return type.
3981
592f9d27
AB
39822019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3983
3984 * valarith.c (value_subscripted_rvalue): Change lowerbound
3985 parameter type from int to LONGEST.
3986 * value.h (value_subscripted_rvalue): Likewise in declaration.
3987
60cfcb20
AB
39882019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3989
3990 * cli/cli-utils.c (info_print_command_completer): New function.
3991 * cli/cli-utils.h: Add 'completer.h' include, and forward
3992 declaration for 'struct cmd_list_element'.
3993 (info_print_command_completer): Declare.
3994 * stack.c (_initialize_stack): Add completer for 'info locals' and
3995 'info args'.
3996 * symtab.c (_initialize_symtab): Add completer for 'info
3997 variables' and 'info functions'.
3998 * NEWS: Mention completion for additional info commands.
3999
b16507e0
AB
40002019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4001
4002 * cli/cli-utils.c (extract_info_print_args): Delete.
4003 (extract_arg_maybe_quoted): Delete.
4004 (info_print_options_defs): New variable.
4005 (make_info_print_options_def_group): New function.
4006 (extract_info_print_options): Define new function.
4007 * cli/cli-utils.h (extract_info_print_args): Delete.
4008 (struct info_print_options): New structure.
4009 (extract_info_print_options): Declare new function.
4010 * stack.c (info_locals_command): Update to use new
4011 extract_info_print_options, also add a header comment.
4012 (info_args_command): Likewise.
4013 * symtab.c (info_variables_command): Likewise.
4014 (info_functions_command): Likewise.
4015
021d8588
AB
40162019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4017
4018 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
4019 to extract string arguments.
4020 * common/common-utils.c (extract_string_maybe_quoted): New function.
4021 * common/common-utils.h (extract_string_maybe_quoted): Declare.
4022
b777eb6d
TT
40232019-07-11 Tom Tromey <tromey@adacore.com>
4024
4025 * main.c (get_init_files): Use GDBINIT, not gdbinit.
4026 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
4027 * top.h (gdbinit): Don't declare.
4028 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
4029 into...
4030 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
4031 * top.c (gdb_init): Don't call init_cli_cmds.
4032 (gdbinit): Remove.
4033 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
4034
72ee03ff
TT
40352019-07-11 Tom Tromey <tromey@adacore.com>
4036
4037 * python/py-inferior.c (add_thread_object): Don't use thread_obj
4038 after it has been moved.
4039
00db9531
SM
40402019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4041
4042 * valops.c (value_must_coerce_to_target): Change return type to
4043 bool.
4044 * value.h (value_must_coerce_to_target): Likewise.
4045
f2478a7e
SM
40462019-07-10 Simon Marchi <simon.marchi@efficios.com>
4047
4048 * breakpoint.c (is_hardware_watchpoint): Remove
4049 forward-declaration.
4050 (is_masked_watchpoint): Change return type to bool.
4051 (is_tracepoint): Likewise.
4052 (is_breakpoint): Likewise.
4053 (is_hardware_watchpoint): Likewise.
4054 (is_watchpoint): Likewise.
4055 (is_no_memory_software_watchpoint): Likewise.
4056 (is_catchpoint): Likewise.
4057 (breakpoint_1): Make FILTER parameter's return type bool.
4058 is_masked_watchpoint): Change return type to bool.
4059 (save_breakpoints): Make FILTER parameter's return type bool.
4060 * breakpoint.h (is_breakpoint): Change return type to bool.
4061 (is_watchpoint): Likewise.
4062 (is_catchpoint): Likewise.
4063 (is_tracepoint): Likewise.
4064
0d12e84c
TT
40652019-07-10 Tom Tromey <tom@tromey.com>
4066
4067 * defs.h: Don't include gdbarch.h.
4068 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
4069 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
4070 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
4071 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
4072 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
4073 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
4074 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
4075 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
4076 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
4077 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
4078 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
4079 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
4080 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
4081 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
4082 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
4083 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
4084 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
4085 record-btrace.c, record.h, regcache-dump.c, regcache.h,
4086 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
4087 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
4088 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
4089 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
4090 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
4091 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
4092 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
4093 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
4094 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
4095
f06f1252
TT
40962019-07-10 Tom Tromey <tromey@adacore.com>
4097
4098 * ada-lang.h (is_ada_exception_catchpoint): Declare.
4099 * breakpoint.c (init_ada_exception_breakpoint): Register as
4100 bp_catchpoint.
4101 (print_one_breakpoint_location, print_one_breakpoint): Use
4102 is_ada_exception_catchpoint.
4103 * ada-lang.c (class ada_catchpoint_location): Pass
4104 bp_loc_software_breakpoint to bp_location constructor.
4105 (is_ada_exception_catchpoint): New function.
4106
7a5d944b
TT
41072019-07-10 Tom Tromey <tromey@adacore.com>
4108
4109 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
4110 VEC.
4111 (struct arm_exidx_entry): New method operator<.
4112 (struct arm_exidx_data) <section_maps>: Change type.
4113 (arm_exidx_data_free): Remove.
4114 (arm_exidx_data_key): Change type. Move lower.
4115 (arm_exidx_new_objfile): Update.
4116 (arm_compare_exidx_entries): Remove.
4117 (arm_find_exidx_entry, _initialize_arm_tdep)
4118
48c66e1d
TT
41192019-07-10 Tom Tromey <tromey@adacore.com>
4120
4121 * solib-spu.c (ocl_program_data_key): Change type.
4122 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
4123 Update.
4124
a269fbf1
TT
41252019-07-10 Tom Tromey <tromey@adacore.com>
4126
4127 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
4128 (struct solib_aix_inferior_data) <library_list>: Change type.
4129 (solib_aix_inferior_data_handle): Change type.
4130 (get_solib_aix_inferior_data): Update.
4131 (solib_aix_free_library_list): Remove.
4132 (library_list_start_library): Update.
4133 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
4134 return type.
4135 (solib_aix_get_library_list)
4136 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
4137 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
4138
c294730c
TT
41392019-07-10 Tom Tromey <tromey@adacore.com>
4140
4141 * solib-dsbt.c (struct dsbt_info): Add initializers.
4142 (solib_dsbt_pspace_data): Change type.
4143 (dsbt_pspace_data_cleanup): Remove.
4144 (get_dsbt_info, _initialize_dsbt_solib): Update.
4145
9d52077d
TT
41462019-07-10 Tom Tromey <tromey@adacore.com>
4147
4148 * spu-tdep.c (spu_overlay_data): Change type.
4149 (spu_get_overlay_table, spu_overlay_new_objfile)
4150 (_initialize_spu_tdep): Update.
4151
22a20dca
TT
41522019-07-10 Tom Tromey <tromey@adacore.com>
4153
4154 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
4155 destructor.
4156 (dbx_objfile_data_key): Change type and declare later.
4157 (DBX_SYMFILE_INFO): Rewrite.
4158 * dbxread.c (dbx_objfile_data_key): Change type.
4159 (dbx_symfile_init): Update.
4160 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
4161 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4162 (stabsect_build_psymtabs, _initialize_dbxread): Update.
4163
cb60f420
TT
41642019-07-10 Tom Tromey <tromey@adacore.com>
4165
4166 * jit.c (jit_program_space_key): Change type. Move lower.
4167 (get_jit_program_space_data): Update.
4168 (jit_program_space_data_cleanup): Remove.
4169 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
4170 Update.
4171 (struct jit_program_space_data): Add initializers.
4172
51df2ae3
TT
41732019-07-10 Tom Tromey <tromey@adacore.com>
4174
4175 * solib-darwin.c (struct darwin_info): Add initializers.
4176 (solib_darwin_pspace_data): Change type.
4177 (darwin_pspace_data_cleanup): Remove.
4178 (get_darwin_info, _initialize_darwin_solib): Update.
4179
18101a35
TT
41802019-07-10 Tom Tromey <tromey@adacore.com>
4181
4182 * remote-sim.c (struct sim_inferior_data): Add initializers,
4183 constructor, and destructor.
4184 (sim_inferior_data_key): Change type. Move lower.
4185 (check_for_duplicate_sim_descriptor): Update.
4186 (get_sim_inferior_data): Use new. Update.
4187 (~sim_inferior_data_cleanup): Rename from
4188 sim_inferior_data_cleanup. Simplify.
4189 (gdbsim_close_inferior, simulator_command)
4190 (sim_command_completer, _initialize_remote_sim): Update.
4191 (next_pid, INITIAL_PID): Move earlier.
4192
05b08ac1
TT
41932019-07-10 Tom Tromey <tromey@adacore.com>
4194
4195 * python/python-internal.h (create_thread_object): Return
4196 gdbpy_ref.
4197 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
4198 * python/py-inferior.c (struct threadlist_entry): Add
4199 constructor.
4200 <thread_obj>: Now a gdbpy_ref.
4201 (thread_to_thread_object): Update.
4202 (add_thread_object): Use new.
4203 (delete_thread_object): Use delete.
4204 (infpy_threads): Update.
4205 (py_free_inferior): Update. Construct "inf_obj" after acquiring
4206 GIL.
4207
32372d80
TT
42082019-07-10 Tom Tromey <tromey@adacore.com>
4209
4210 * valops.c (value_cast): Specialize error message for Ada.
4211
5c458ae8
SM
42122019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4213
4214 * breakpoint.c (breakpoint_1): Update doc and parameter names.
4215
4c462cb0
SM
42162019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4217
4218 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
4219 bpstat_should_step): Return bool, adjust comments.
4220 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
4221 bpstat_should_step): Likewise.
4222
89abbcc2
AH
42232019-07-10 Alan Hayward <alan.hayward@arm.com>
4224
4225 * features/Makefile: Use feature target descriptions for Arm.
4226 * features/arm/arm-core.c: Generate new file.
4227 * features/arm/arm-fpa.c: Likewise.
4228 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
4229 * features/arm/arm-m-profile.c: Likewise.
4230 * features/arm/arm-vfpv2.c: Likewise.
4231 * features/arm/arm-vfpv3.c: Likewise.
4232 * features/arm/xscale-iwmmxt.c: Likewise.
4233 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
4234
166a82be
AH
42352019-07-10 Alan Hayward <alan.hayward@arm.com>
4236
4237 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
4238 ptrace earlier.
4239
9fb4c7e9
AH
42402019-07-10 Alan Hayward <alan.hayward@arm.com>
4241
4242 * features/aarch64-pauth.c: Regenerate.
4243
e2d0f980
SM
42442019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
4245
4246 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
4247 bool.
4248 (bpstat_what): Use false instead of 0.
4249
a38118e5
PA
42502019-07-09 Pedro Alves <palves@redhat.com>
4251
4252 * break-catch-throw.c (is_exception_catchpoint): New.
4253 * breakpoint.c (print_one_breakpoint_location): New parameter
4254 'raw_loc'. Handle it. Use
4255 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
4256 looking at the breakpoint's type.
4257 (print_one_breakpoint): If handling "maint info breakpoints", also
4258 print locations of exception catchpoints.
4259 * breakpoint.h (is_exception_catchpoint): Declare.
4260
cb1e4e32
PA
42612019-07-09 Pedro Alves <palves@redhat.com>
4262
4263 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
4264 "addr" field.
4265 (allocate_location_exception_catchpoint): New.
4266 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
4267 (initialize_throw_catchpoint_ops): Install
4268 allocate_location_exception_catchpoint as allocate_location
4269 method.
4270 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
4271 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
4272 bp_loc_other.
4273 (breakpoint_address_is_meaningful): Delete.
4274 (bl_address_is_meaningful): New.
4275 (breakpoint_locations_match): Adjust comment.
4276 (bp_location_from_bp_type): New, factored out of...
4277 (bp_location::bp_location(breakpoint *)): ... this.
4278 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
4279 factored out of...
4280 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
4281 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
4282 breakpoint_address_is_meaningful.
4283 (bp_locations_compare): Adjust comment.
4284 (update_global_location_list): Use bl_address_is_meaningful
4285 instead of breakpoint_address_is_meaningful.
4286 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
4287 explicit.
4288 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
4289 * python/py-breakpoint.c (bppy_get_location): No longer check
4290 whether location is null.
4291
b58a68fe
PA
42922019-07-09 Pedro Alves <palves@redhat.com>
4293
4294 PR c++/15468
4295 * breakpoint.c (print_one_breakpoint_location): Remove
4296 single-location assert.
4297
268a13a5
TT
42982019-07-09 Tom Tromey <tom@tromey.com>
4299
4300 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
4301 * configure: Rebuild.
4302 * configure.ac: Change common to gdbsupport.
4303 * gdbsupport: Rename from common.
4304 * acinclude.m4: Change common to gdbsupport.
4305 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
4306 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
4307 gdbsupport.
4308 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
4309 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
4310 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
4311 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
4312 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
4313 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
4314 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
4315 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
4316 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
4317 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
4318 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
4319 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
4320 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
4321 coff-pe-read.c, command.h, compile/compile-c-support.c,
4322 compile/compile-c.h, compile/compile-cplus-symbols.c,
4323 compile/compile-cplus-types.c, compile/compile-cplus.h,
4324 compile/compile-loc2c.c, compile/compile.c, completer.c,
4325 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
4326 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
4327 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
4328 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
4329 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
4330 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
4331 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
4332 features/aarch64-core.c, features/aarch64-fpu.c,
4333 features/aarch64-pauth.c, features/aarch64-sve.c,
4334 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
4335 features/i386/32bit-core.c, features/i386/32bit-linux.c,
4336 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
4337 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
4338 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
4339 features/i386/64bit-core.c, features/i386/64bit-linux.c,
4340 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
4341 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
4342 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
4343 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
4344 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
4345 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
4346 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
4347 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
4348 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
4349 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
4350 go32-nat.c, guile/guile.c, guile/scm-ports.c,
4351 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
4352 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
4353 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
4354 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
4355 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
4356 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
4357 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
4358 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
4359 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
4360 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
4361 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
4362 minsyms.c, mips-linux-tdep.c, namespace.h,
4363 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
4364 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
4365 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
4366 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
4367 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
4368 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
4369 nat/linux-waitpid.c, nat/mips-linux-watch.c,
4370 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
4371 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
4372 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
4373 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
4374 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
4375 procfs.c, producer.c, progspace.h, psymtab.h,
4376 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
4377 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
4378 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
4379 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
4380 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
4381 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
4382 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
4383 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
4384 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
4385 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
4386 target-memory.c, target.c, target.h, target/waitstatus.c,
4387 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
4388 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
4389 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
4390 unittests/array-view-selftests.c,
4391 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
4392 unittests/common-utils-selftests.c,
4393 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
4394 unittests/format_pieces-selftests.c,
4395 unittests/function-view-selftests.c,
4396 unittests/lookup_name_info-selftests.c,
4397 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
4398 unittests/mkdir-recursive-selftests.c,
4399 unittests/observable-selftests.c,
4400 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
4401 unittests/parse-connection-spec-selftests.c,
4402 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
4403 unittests/scoped_fd-selftests.c,
4404 unittests/scoped_mmap-selftests.c,
4405 unittests/scoped_restore-selftests.c,
4406 unittests/string_view-selftests.c, unittests/style-selftests.c,
4407 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
4408 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
4409 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
4410 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
4411 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
4412 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
4413
5b0e2db4
AB
44142019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4415
4416 * linespec.c (decode_digits_list_mode): Set explicit_line to a
4417 bool value.
4418 (decode_digits_ordinary): Set explicit_line field in sal.
4419 * symtab.c (skip_prologue_sal): Don't skip prologue for a
4420 symtab_and_line that was set on an explicit line number in
4421 assembler code. Do always update the recorded symtab and line if
4422 we do skip the prologue.
4423
0ba852ab
AB
44242019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4425
4426 * breakpoint.c (set_breakpoint_location_function): Remove
4427 explicit_loc parameter.
4428 (momentary_breakpoint_from_master): Update call to
4429 set_breakpoint_location_function.
4430 (add_location_to_breakpoint): Likewise.
4431
b3a7d171
AB
44322019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4433
4434 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
4435 required features based on default bfd type when no specific bfd
4436 is present.
4437
1f6f6e21
PW
44382019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4439
4440 * NEWS: Mention that GDB printf and eval commands can now print
4441 C-style and Ada-style convenience var strings without
4442 calling the inferior.
4443 * printcmd.c (printf_c_string): Locally print GDB internal var
4444 instead of transiting via the inferior.
4445 (printf_wide_c_string): Likewise.
4446
44472019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
4448
4449 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
4450
0598af48
TT
44512019-07-04 Tom Tromey <tom@tromey.com>
4452
4453 PR tui/24724:
4454 * tui/tui-winsource.c (tui_clear_source_content): Update.
4455 (tui_source_window_base::set_is_exec_point_at): Fix comment.
4456 (tui_update_breakpoint_info): Update.
4457 (tui_set_exec_info_content): Update.
4458 * tui/tui-source.c (tui_set_source_content_nil): Update.
4459 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
4460 has_break.
4461 * tui/tui-data.h (enum tui_bp_flag): New.
4462 (tui_bp_flags): New enum flags type.
4463 (struct tui_source_element) <break_mode>: Change type. Rename
4464 from has_break.
4465 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
4466 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
4467 constants.
4468 * tui/tui-winsource.h: Fix comment.
4469
350fab54
AH
44702019-07-04 Alan Hayward <alan.hayward@arm.com>
4471
4472 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
4473 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
4474 (store_fpregs_to_thread)
4475 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4476 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
4477 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
4478 (IWMMXT_REGS_SIZE): Add define.
4479 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
4480 (fetch_vfp_regs, store_vfp_regs)
4481 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4482 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
4483
f0452268
AH
44842019-07-04 Alan Hayward <alan.hayward@arm.com>
4485
4486 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
4487 defines.
4488 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
4489 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
4490 (ARM_INT_REGISTER_SIZE): ...to this.
4491 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
4492 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
4493 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
4494 (arm_linux_collect_gregset, supply_nwfpe_register)
4495 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
4496 defines.
4497 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
4498 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
4499 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
4500 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
4501 (arm_return_in_memory, arm_store_return_value)
4502 (arm_get_longjmp_target, arm_register_g_packet_guesses)
4503 (arm_record_ld_st_multiple): Likewise.
4504 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
4505 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
4506
e935475c
AH
45072019-07-04 Alan Hayward <alan.hayward@arm.com>
4508
4509 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
4510 AARCH64_DISPLACED_MODIFIED_INSNS.
4511 * aarch64-tdep.c (struct aarch64_displaced_step_data)
4512 (aarch64_displaced_step_copy_insn): Likewise.
4513 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4514 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
4515 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
4516 ARM_DISPLACED_MODIFIED_INSNS.
4517 * arm-tdep.c (arm_gdbarch_init): Likewise.
4518 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4519 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
4520 (struct arm_displaced_step_closure): Use
4521 ARM_DISPLACED_MODIFIED_INSNS.
4522
df0bb381
AH
45232019-07-04 Alan Hayward <alan.hayward@arm.com>
4524
4525 * features/Makefile: Remove unused xml files.
4526 * features/aarch64.xml: Remove.
4527 * features/i386/amd64-avx-avx512-linux.xml: Remove.
4528 * features/i386/amd64-avx-avx512.xml: Remove.
4529 * features/i386/amd64-avx-linux.xml: Remove.
4530 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
4531 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
4532 * features/i386/amd64-avx-mpx-linux.xml: Remove.
4533 * features/i386/amd64-avx-mpx.xml: Remove.
4534 * features/i386/amd64-avx.xml: Remove.
4535 * features/i386/amd64-linux.xml: Remove.
4536 * features/i386/amd64-mpx-linux.xml: Remove.
4537 * features/i386/amd64-mpx.xml: Remove.
4538 * features/i386/amd64.xml: Remove.
4539 * features/i386/i386-avx-avx512-linux.xml: Remove.
4540 * features/i386/i386-avx-avx512.xml: Remove.
4541 * features/i386/i386-avx-linux.xml: Remove.
4542 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
4543 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
4544 * features/i386/i386-avx-mpx-linux.xml: Remove.
4545 * features/i386/i386-avx-mpx.xml: Remove.
4546 * features/i386/i386-avx.xml: Remove.
4547 * features/i386/i386-linux.xml: Remove.
4548 * features/i386/i386-mmx-linux.xml: Remove.
4549 * features/i386/i386-mmx.xml: Remove.
4550 * features/i386/i386-mpx-linux.xml: Remove.
4551 * features/i386/i386-mpx.xml: Remove.
4552 * features/i386/i386.xml: Remove.
4553 * features/i386/x32-avx-avx512-linux.xml: Remove.
4554 * features/i386/x32-avx-linux.xml: Remove.
4555 * features/i386/x32-linux.xml: Remove.
4556
edd6266a
AH
45572019-07-04 Alan Hayward <alan.hayward@arm.com>
4558
4559 * regformats/aarch64.dat: Remove.
4560 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
4561 * regformats/i386/amd64-avx-linux.dat: Remove.
4562 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
4563 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
4564 * regformats/i386/amd64-linux.dat: Remove.
4565 * regformats/i386/amd64-mpx-linux.dat: Remove.
4566 * regformats/i386/amd64.dat: Remove.
4567 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
4568 * regformats/i386/i386-avx-linux.dat: Remove.
4569 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
4570 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
4571 * regformats/i386/i386-linux.dat: Remove.
4572 * regformats/i386/i386-mmx-linux.dat: Remove.
4573 * regformats/i386/i386-mpx-linux.dat: Remove.
4574 * regformats/i386/i386.dat: Remove.
4575 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
4576 * regformats/i386/x32-avx-linux.dat: Remove.
4577 * regformats/i386/x32-linux.dat: Remove.
4578
2b40fda7
AH
45792019-07-04 Alan Hayward <alan.hayward@arm.com>
4580
4581 * aarch64-tdep.c: Remove xml self tests.
4582 * amd64-linux-tdep.c: Likewise.
4583 * amd64-tdep.c: Likewise.
4584 * i386-linux-tdep.c: Likewise.
4585 * i386-tdep.c: Likewise.
4586
5f4ba3e7
PA
45872019-07-03 Pedro Alves <palves@redhat.com>
4588
4589 PR cli/24732
4590 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
4591 (pipe_cmd_option_defs): New.
4592 (make_pipe_cmd_options_def_group): New.
4593 (pipe_command): Use gdb::option::process_options.
4594 (pipe_command_completer): New function.
4595 (_initialize_cli_cmds): Install completer for "pipe" command.
4596
3d9be6f5
PA
45972019-07-03 Pedro Alves <palves@redhat.com>
4598
4599 * cli/cli-option.c (union option_value) <string>: New field.
4600 (struct option_def_and_value): Add ctor, move ctor, dtor and
4601 use DISABLE_COPY_AND_ASSIGN.
4602 (option_def_and_value::clear_value): New.
4603 (parse_option, save_option_value_in_ctx, get_val_type_str)
4604 (add_setshow_cmds_for_options): Handle var_string.
4605 * cli-option.h (union option_def::var_address) <string>: New
4606 field.
4607 (struct string_option_def): New.
4608 * maint-test-options.c (struct test_options_opts): Add default
4609 ctor and use DISABLE_COPY_AND_ASSIGN.
4610 <string_opt>: New field.
4611 (test_options_opts::~test_options_opts): New.
4612 (test_options_opts::dump): Also dump "-string".
4613 (test_options_option_defs): Install "string.
4614
41fc454c
PA
46152019-07-03 Pedro Alves <palves@redhat.com>
4616
4617 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
4618 option_value with a null enumeration.
4619 (complete_options): Save the option values in the context.
4620 (save_option_value_in_ctx): New, factored out from ...
4621 (process_options): ... here.
4622 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
4623 of the function.
4624 * maint-test-options.c (test_options_opts::dump): New, factored
4625 out from ...
4626 (maintenance_test_options_command_mode): ... here.
4627 (maintenance_test_options_command_completion_result): Delete.
4628 (maintenance_test_options_command_completion_text): Update
4629 comment.
4630 (maintenance_show_test_options_completion_result): Change
4631 prototype. Just print
4632 maintenance_test_options_command_completion_text.
4633 (save_completion_result): New.
4634 (maintenance_test_options_completer_mode): Pass options context to
4635 complete_options, and then save a dump.
4636 (_initialize_maint_test_options): Use add_cmd to install "maint
4637 show test-options-completion-result".
4638
fdbc9870
PA
46392019-07-03 Pedro Alves <palves@redhat.com>
4640
4641 * NEWS (New commands): Mention "with" and "maint with".
4642 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
4643 (with_command, with_command_completer): New.
4644 (pipe_command): Adjust to new repeat_previous
4645 interface.
4646 (_initialize_cli_cmds): Install the "with" command and its "w"
4647 alias.
4648 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
4649 declarations.
4650 * cli/cli-setshow.c (parse_cli_var_uinteger)
4651 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
4652 argument strings for all var_types.
4653 (get_setshow_command_value_string): New, factored out from ...
4654 (do_show_command): ... this.
4655 * cli/cli-setshow.h: Include <string>.
4656 (get_setshow_command_value_string): Declare.
4657 * command.h (repeat_previous): Now returns const char *. Adjust
4658 comment.
4659 * maint.c: Include "cli/cli-cmds.h".
4660 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
4661 (_initialize_maint_cmds): Register the "maintenance with" command.
4662 * top.c (repeat_previous): Move bits from pipe_command here:
4663 Return the saved command line, if any; error out if there's no
4664 command to relaunch.
4665
c6ac8931
PA
46662019-07-03 Pedro Alves <palves@redhat.com>
4667
4668 * NEWS (New commands): Mention "maint set/show test-settings"
4669 instead of "maint test-settings".
4670 * maint-test-settings.c (maintenance_test_settings_list): Delete.
4671 (maintenance_test_settings_set_list): Rename to ...
4672 (maintenance_set_test_settings_list): ... this.
4673 (maintenance_test_settings_show_list): Rename to ...
4674 (maintenance_show_test_settings_list): ... this.
4675 (maintenance_test_settings_cmd): Delete.
4676 (maintenance_test_settings_set_cmd): ...
4677 (maintenance_set_test_settings_cmd): ... this.
4678 (maintenance_test_settings_show_cmd): ...
4679 (maintenance_show_test_settings_cmd): ... this.
4680 (maintenance_test_settings_show_value_cmd):
4681 (maintenance_show_test_settings_value_cmd): ... this.
4682 (_initialize_maint_test_settings): No longer install the "maint
4683 test-settings" prefix command. Rename "maint test-settings set"
4684 to "maint set test-settings", and "maint test-settings show" to
4685 "maint show test-settings". Adjust all subcommands.
4686
d1fcf2fd
PA
46872019-07-03 Pedro Alves <palves@redhat.com>
4688
4689 * maint-test-settings.c: Fix file's intro comment. Replace all
4690 references to "test-options" with references to "test-settings",
4691 in comments.
4692
970f9d09
PA
46932019-07-03 Pedro Alves <palves@redhat.com>
4694
4695 * maint-test-settings.c (maintenance_test_settings_xxx)
4696 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
4697 New.
4698 (maintenance_test_settings_enums): Use them.
4699 (maintenance_test_settings_enum): Default to
4700 maintenance_test_settings_xxx.
4701 (_initialize_maint_test_settings): Initialize
4702 MAINTENANCE_TEST_SETTINGS_FILENAME.
4703
f3869b1a
SM
47042019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4705
4706 * breakpoint.h (remove_breakpoints_inf): Change return type to
4707 void, move function documentation here.
4708 * breakpoint.c (remove_breakpoints_inf): Change return type to
4709 void, move function documentation to header.
4710
54d66006
PA
47112019-07-02 Pedro Alves <palves@redhat.com>
4712
4713 * NEWS (Completion improvements): Mention "info threads".
4714 * thread.c (struct info_threads_opts, info_threads_option_defs)
4715 (make_info_threads_options_def_group): New.
4716 (info_threads_command): Use gdb::option::process_options.
4717 (info_threads_command_completer): New.
4718 (_initialize_thread): Use gdb::option::build_help to build the
4719 help text for "info threads".
4720
854f6088
SM
47212019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4722
4723 * defs.h (generic_load): Move from here...
4724 * symfile.h (generic_load): ... to here. Rename name parameter
4725 to args.
4726 * symfile.c (generic_load): Add comment.
4727
54ee4252
TT
47282019-07-01 Tom Tromey <tromey@adacore.com>
4729
4730 * dwarf2read.c
4731 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
4732 declaration of without_params. Fix formatting.
4733
65392b3e
TT
47342019-07-01 Tom Tromey <tromey@adacore.com>
4735
4736 * ada-exp.y (find_primitive_type): Update.
4737 * ada-lang.h (ada_lookup_symbol): Update.
4738 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
4739 parameter.
4740 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
4741
7d7571f0
SDJ
47422019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4743
4744 PR breakpoints/24541
4745 * gdbarch.c: Regenerate.
4746 * gdbarch.h: Regenerate.
4747 * gdbarch.sh: Add 'stap_adjust_register'.
4748 * i386-tdep.c: Include '<unordered_set>'.
4749 (i386_stap_adjust_register): New function.
4750 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
4751 * stap-probe.c (stap_parse_register_operand): Call
4752 'gdbarch_stap_adjust_register'.
4753
5af5392a
SDJ
47542019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4755
4756 PR python/24742
4757 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
4758 * python/python.c (do_start_initialization): Use 'xmalloc'
4759 instead of 'PyMem_Malloc'.
4760
10d06d82
TT
47612019-06-28 Tom Tromey <tromey@adacore.com>
4762
4763 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
4764 for Ada.
4765
1b7f24cd
TT
47662019-06-27 Tom Tromey <tromey@adacore.com>
4767
4768 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
4769 objfile_key.
4770 (arm_find_mapping_symbol, arm_record_special_symbol)
4771 (_initialize_arm_tdep): Update.
4772 (arm_objfile_data_free): Remove.
4773
3d507ff2
TT
47742019-06-27 Tom Tromey <tromey@adacore.com>
4775
4776 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
4777 to cp_print_static_field.
4778
762c164d
TT
47792019-06-26 Tom Tromey <tromey@adacore.com>
4780
4781 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
4782 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
4783 declare.
4784
aa2f9bcf
AH
47852019-06-26 Alan Hayward <alan.hayward@arm.com>
4786
4787 * features/aarch64-core.c (create_feature_aarch64_core):
4788 Regenerate.
4789 * features/aarch64-core.xml: Add cpsr flags.
4790
3426ae57
AH
47912019-06-26 Alan Hayward <alan.hayward@arm.com>
4792
4793 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
4794 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
4795
4838e44c
SM
47962019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4797
4798 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
4799 field.
4800 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
4801 use.
4802 (arm_record_special_symbol): Don't insert new symbol in sorted
4803 position, push it at the end.
4804
54cc7474
SM
48052019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4806
4807 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
4808 (arm_mapping_symbol_s): Remove.
4809 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
4810 (arm_mapping_symbol_vec): New typedef.
4811 (struct arm_per_objfile): Add constructor.
4812 <section_maps>: Change type to
4813 std::unique_ptr<arm_mapping_symbol_vec[]>.
4814 (arm_compare_mapping_symbols): Remove.
4815 (arm_find_mapping_symbol): Adjust to section_maps type change.
4816 (arm_objfile_data_free): Call delete on arm_per_objfile.
4817 (arm_record_special_symbol): Adjust to section_maps type change.
4818 Allocate arm_per_objfile with new.
4819
b65b566c
PW
48202019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4821
4822 * cli/cli-cmds.c (alias_command): Compare the alias prefix
4823 with the command prefix.
4824
c2fc64f5
TT
48252019-06-25 Tom Tromey <tom@tromey.com>
4826
4827 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
4828 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
4829
fb54fa76
TT
48302019-06-25 Tom Tromey <tom@tromey.com>
4831
4832 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
4833 type.
4834 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
4835 protected.
4836
f7952c57
TT
48372019-06-25 Tom Tromey <tom@tromey.com>
4838
4839 * tui/tui-winsource.c
4840 (tui_source_window_base::set_is_exec_point_at): Add check against
4841 LOA_ADDRESS.
4842
17568d78
TT
48432019-06-25 Tom Tromey <tom@tromey.com>
4844
4845 * tui/tui-source.c (tui_set_source_content): Don't check before
4846 xfree.
4847 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
4848
53e7cdba
TT
48492019-06-25 Tom Tromey <tom@tromey.com>
4850
4851 * tui/tui-winsource.h (tui_update_source_window_as_is)
4852 (tui_alloc_source_buffer, tui_line_is_displayed)
4853 (tui_addr_is_displayed): Change type of win_info.
4854 * tui/tui-winsource.c (tui_update_source_window_as_is)
4855 (tui_clear_source_content, tui_show_source_line)
4856 (tui_show_source_content, tui_source_window_base::refill)
4857 (tui_source_window_base::set_is_exec_point_at)
4858 (tui_source_window_base::set_is_exec_point_at)
4859 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
4860 (tui_alloc_source_buffer, tui_line_is_displayed)
4861 (tui_addr_is_displayed): Change type of win_info. Update.
4862 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4863 (tui_source_window_base::do_make_visible_with_new_height):
4864 Update.
4865 * tui/tui-source.c (tui_set_source_content)
4866 (tui_set_source_content_nil)
4867 (tui_source_window::do_scroll_vertical): Update.
4868 * tui/tui-layout.c (show_layout): Update.
4869 * tui/tui-disasm.c (tui_set_disassem_content)
4870 (tui_disasm_window::do_scroll_vertical): Update.
4871 * tui/tui-data.h (tui_win_content): Remove.
4872 (struct tui_gen_win_info) <content, content_size>: Remove.
4873 (struct tui_source_element): Add initializers and destructor.
4874 (union tui_which_element, struct tui_win_element): Remove.
4875 (struct tui_source_window_base) <content>: New field.
4876 (struct tui_data_window): Remove destructor.
4877 (tui_alloc_content, tui_free_win_content)
4878 (tui_free_all_source_wins_content): Don't declare.
4879 * tui/tui-data.c (tui_initialize_static_data): Update.
4880 (init_content_element, tui_alloc_content): Remove.
4881 (~tui_gen_win_info): Update.
4882 (~tui_data_window, tui_free_all_source_wins_content)
4883 (tui_free_win_content, free_content, free_content_elements):
4884 Remove.
4885
7908abbf
TT
48862019-06-25 Tom Tromey <tom@tromey.com>
4887
4888 * tui/tui-winsource.h (tui_clear_source_content)
4889 (tui_erase_source_content, tui_show_source_content): Change type
4890 of win_info.
4891 * tui/tui-winsource.c (tui_clear_source_content)
4892 (tui_erase_source_content, tui_show_source_content): Change type
4893 of win_info.
4894 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4895 * tui/tui-source.h (tui_set_source_content_nil): Change type of
4896 win_info.
4897 * tui/tui-source.c (tui_set_source_content_nil): Change type of
4898 win_info.
4899 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
4900
02c28df0
TT
49012019-06-25 Tom Tromey <tom@tromey.com>
4902
4903 * tui/tui-winsource.c (tui_clear_source_content)
4904 (tui_source_window_base::set_is_exec_point_at): Update.
4905 * tui/tui-source.c (tui_set_source_content_nil): Update.
4906 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
4907 a bool.
4908 * tui/tui-data.c (init_content_element): Update.
4909
6658b1bf
TT
49102019-06-25 Tom Tromey <tom@tromey.com>
4911
4912 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
4913 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
4914 * tui/tui-layout.c (init_and_make_win): Update.
4915 * tui/tui.h (enum tui_win_type): Update.
4916 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
4917 tui_win_is_auxillary.
4918 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
4919 tui_win_is_auxillary.
4920
21e1c91e
TT
49212019-06-25 Tom Tromey <tom@tromey.com>
4922
4923 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
4924 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
4925 (tui_delete_data_content_windows, tui_display_all_data)
4926 (tui_data_window::do_scroll_vertical, tui_display_data_from):
4927 Update.
4928 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
4929 * tui/tui-regs.c (tui_last_regs_line_no)
4930 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4931 (tui_show_registers): Update.
4932 (tui_show_register_group): Return void. Update.
4933 (tui_display_registers_from, tui_display_reg_element_at_line)
4934 (tui_display_registers_from_line, tui_check_register_values):
4935 Update.
4936 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
4937 member.
4938 (struct tui_data_window) <regs_content>: Now a std::vector.
4939 <regs_content_count>: Remove.
4940 (tui_add_content_elements, tui_free_data_content): Don't declare.
4941 * tui/tui-data.c (tui_data_window::clear_detail): Update.
4942 (init_content_element): Remove DATA_WIN case. Add assert.
4943 (tui_add_content_elements): Remove.
4944 (tui_data_window): Update.
4945 (tui_free_data_content): Remove.
4946 (free_content_elements): Remove DATA_WIN case.
4947
115ac53b
TT
49482019-06-25 Tom Tromey <tom@tromey.com>
4949
4950 * tui/tui-data.c (tui_data_item_window): Update.
4951 * tui/tui-windata.h (tui_check_data_values): Don't declare.
4952 * tui/tui-windata.c (tui_display_all_data)
4953 (tui_display_data_from_line): Update.
4954 (tui_check_data_values): Remove.
4955 * tui/tui-regs.c (tui_show_register_group)
4956 (tui_display_reg_element_at_line): Update.
4957 * tui/tui-hooks.c (tui_register_changed)
4958 (tui_refresh_frame_and_register_information): Call
4959 tui_check_register_values.
4960 * tui/tui-data.h (struct tui_data_window) <data_content,
4961 data_content_count, data_type>: Remove.
4962 (enum tui_data_type): Remove.
4963
4964 * tui/tui-data.c (tui_data_window::clear_detail)
4965 (~tui_data_window): Update.
4966
eaf9738b
TT
49672019-06-25 Tom Tromey <tom@tromey.com>
4968
4969 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
4970 declare.
4971 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
4972 Rename from tui_first_data_item_displayed. Update.
4973 (tui_data_window::refresh_all)
4974 (tui_data_window::do_scroll_vertical): Update.
4975 * tui/tui-data.h (struct tui_data_window)
4976 <first_data_item_displayed>: Declare new method.
4977
31ca4723
TT
49782019-06-25 Tom Tromey <tom@tromey.com>
4979
4980 * tui/tui-data.h (tui_init_generic_part): Don't declare.
4981 * tui/tui-data.c (tui_init_generic_part): Remove, moving
4982 contents...
4983 (tui_initialize_static_data): ...here.
4984
41bcff7f
TT
49852019-06-25 Tom Tromey <tom@tromey.com>
4986
4987 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4988 (tui_display_registers_from, tui_check_register_values): Update.
4989 (tui_display_register): Remove win_info parameter; update.
4990 (tui_get_register): Change type of parameters.
4991 * tui/tui-data.h (struct tui_data_element): Remove.
4992 (union tui_which_element) <data>: Remove.
4993 <data_window>: Change type.
4994 (struct tui_data_item_window): New.
4995 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
4996 case. Add assert.
4997 (~tui_data_item_window): New destructor.
4998 (free_content_elements): Remove DATA_ITEM_WIN case.
4999
d2802c33
TT
50002019-06-25 Tom Tromey <tom@tromey.com>
5001
5002 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
5003 Remove.
5004
dd835f8b
TT
50052019-06-25 Tom Tromey <tom@tromey.com>
5006
5007 * tui/tui-data.h (struct tui_command_element): Remove.
5008 (union tui_which_element) <command>: Remove.
5009 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
5010 assert.
5011 (free_content_elements): Remove CMD_WIN case.
5012
bd7db367
TT
50132019-06-25 Tom Tromey <tom@tromey.com>
5014
5015 * tui/tui-layout.c (tui_set_layout): Update.
5016 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
5017 * tui/tui-data.c (layout_def): Update.
5018
3add462f
TT
50192019-06-25 Tom Tromey <tom@tromey.com>
5020
5021 * tui/tui-wingeneral.c (tui_refresh_all): Update.
5022 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5023 (tui_source_window_base::set_new_height): Update.
5024 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
5025 Update.
5026 (tui_set_locator_fullname, tui_set_locator_info)
5027 (tui_show_frame_info): Update.
5028 * tui/tui-source.c (tui_set_source_content)
5029 (tui_source_is_displayed): Update.
5030 * tui/tui-layout.c (show_source_disasm_command, show_data)
5031 (show_source_or_disasm_and_command): Update.
5032 * tui/tui-disasm.c (tui_set_disassem_content)
5033 (tui_get_begin_asm_address): Update.
5034 * tui/tui-data.h (struct tui_locator_element): Remove.
5035 (union tui_which_element) <locator>: Remove.
5036 (struct tui_locator_window): New.
5037 (tui_locator_win_info_ptr): Change return type.
5038 * tui/tui-data.c (_locator): Change type.
5039 (tui_locator_win_info_ptr): Change return type.
5040 (init_content_element): Remove LOCATOR_WIN case. Add assert.
5041 (tui_alloc_content): Add assert.
5042
489e9d8b
TT
50432019-06-25 Tom Tromey <tom@tromey.com>
5044
5045 * tui/tui-winsource.c
5046 (tui_exec_info_window::maybe_allocate_content): New method.
5047 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
5048 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
5049 (make_source_or_disasm_window): Add cast.
5050 * tui/tui-data.h (union tui_which_element) <simple_string>:
5051 Remove.
5052 (struct tui_source_info): New.
5053 (struct tui_source_window_base) <execution_info>: Change type.
5054 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
5055 case, and add assert.
5056 (tui_alloc_content): Add assert.
5057
c3fabb7d
TT
50582019-06-25 Tom Tromey <tom@tromey.com>
5059
5060 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
5061 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
5062 * tui/tui-data.c (tui_alloc_win_info): Remove.
5063
bbc228ee
TT
50642019-06-25 Tom Tromey <tom@tromey.com>
5065
5066 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
5067 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
5068 can_highlight.
5069
5fcee43a
TT
50702019-06-25 Tom Tromey <tom@tromey.com>
5071
5072 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
5073 make_visible_with_new_height method.
5074 (tui_win_info::make_visible_with_new_height): New method.
5075 (tui_source_window_base::do_make_visible_with_new_height)
5076 (tui_data_window::do_make_visible_with_new_height)
5077 (tui_cmd_window::do_make_visible_with_new_height): New methods.
5078 (make_visible_with_new_height): Remove.
5079 (tui_resize_all, tui_adjust_win_heights): Use
5080 make_visible_with_new_height method.
5081 * tui/tui-data.h (struct tui_win_info)
5082 <do_make_visible_with_new_height, make_visible_with_new_height>:
5083 New methods.
5084 (struct tui_source_window_base, struct tui_data_window)
5085 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
5086 methods.
5087
d83f1fe6
TT
50882019-06-25 Tom Tromey <tom@tromey.com>
5089
5090 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
5091 method.
5092 (update_tab_width): Call update_tab_width method.
5093 * tui/tui-data.h (struct tui_win_info)
5094 (struct tui_source_window_base) <update_tab_width>: New methods.
5095
17374de4
TT
50962019-06-25 Tom Tromey <tom@tromey.com>
5097
5098 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
5099 parameter.
5100 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
5101 parameter.
5102 (tui_gen_win_info::make_visible): Update.
5103 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
5104 parameter.
5105 * tui/tui-data.h (enum tui_box): New enum.
5106 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
5107
f936bca2
TT
51082019-06-25 Tom Tromey <tom@tromey.com>
5109
5110 * tui/tui-layout.c (make_source_or_disasm_window): Always use
5111 init_and_make_win for EXEC_INFO_WIN.
5112 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
5113 longer inline.
5114 (struct tui_win_info) <~tui_win_info>: Inline.
5115 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5116 Don't declare.
5117 * tui/tui-data.c (source_win, disasm_win): Remove globals.
5118 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5119 Remove.
5120 (tui_initialize_static_data): Update.
5121 (~tui_gen_win_info): Handle more cleanup here.
5122 (~tui_source_window_base): Delete "execution_info".
5123 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
5124
d6ba6a11
TT
51252019-06-25 Tom Tromey <tom@tromey.com>
5126
5127 * tui/tui-layout.c (make_command_window): Don't set
5128 can_highlight.
5129 (show_source_disasm_command): Call the reset method.
5130 (show_data): Don't set can_highlight. Call the reset method.
5131 (tui_gen_win_info::reset): Rename from init_gen_win_info
5132 (init_and_make_win): Simplify. Return tui_gen_win_info.
5133 (show_source_or_disasm_and_command): Call the reset method.
5134 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
5135 (struct tui_cmd_window): Set can_highlight.
5136
48a3bd16
TT
51372019-06-25 Tom Tromey <tom@tromey.com>
5138
5139 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
5140 from make_visible.
5141 (tui_make_visible, tui_make_invisible): Rewrite.
5142 (tui_win_info::make_visible): Remove.
5143 (tui_source_window_base::make_visible): Update.
5144 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
5145 method. Moved from...
5146 (struct tui_win_info) <make_visible>: ...here.
5147
c3bd716f
TT
51482019-06-25 Tom Tromey <tom@tromey.com>
5149
5150 * tui/tui-winsource.c
5151 (tui_source_window_base::do_scroll_horizontal): Remove direction
5152 parameter.
5153 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
5154 direction parameter.
5155 * tui/tui-win.c (tui_win_info::forward_scroll)
5156 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5157 (tui_win_info::right_scroll): Update.
5158 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
5159 direction parameter.
5160 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
5161 direction parameter.
5162 * tui/tui-data.h (enum tui_scroll_direction): Remove.
5163 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
5164 Remove direction parameter.
5165 (struct tui_source_window_base, struct tui_source_window)
5166 (struct tui_disasm_window, struct tui_data_window)
5167 (struct tui_cmd_window): Update.
5168
21c32dca
TT
51692019-06-25 Tom Tromey <tom@tromey.com>
5170
5171 * tui/tui-winsource.h (tui_set_exec_info_content)
5172 (tui_show_exec_info_content, tui_erase_exec_info_content)
5173 (tui_clear_exec_info_content, tui_update_exec_info): Change
5174 argument to tui_source_window_base.
5175 * tui/tui-winsource.c (tui_set_exec_info_content)
5176 (tui_show_exec_info_content, tui_erase_exec_info_content)
5177 (tui_clear_exec_info_content, tui_update_exec_info): Change
5178 argument to tui_source_window_base.
5179
73fbdc65
TT
51802019-06-25 Tom Tromey <tom@tromey.com>
5181
5182 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
5183 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
5184
33325343
TT
51852019-06-25 Tom Tromey <tom@tromey.com>
5186
5187 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
5188 check.
5189
29d2c474
TT
51902019-06-25 Tom Tromey <tom@tromey.com>
5191
5192 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
5193 type to void.
5194 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
5195 type to void.
5196 * tui/tui-source.c (tui_set_source_content): Update.
5197 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5198
152f3f4b
TT
51992019-06-25 Tom Tromey <tom@tromey.com>
5200
5201 * tui/tui-win.c (window_name_completer, tui_set_focus)
5202 (tui_all_windows_info): Use name method.
5203 * tui/tui-data.h (struct tui_gen_win_info)
5204 (struct tui_source_window, struct tui_disasm_window)
5205 (struct tui_data_window, struct tui_cmd_window) <name>: New
5206 method.
5207 (tui_win_name): Don't declare.
5208 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
5209 (tui_win_name): Remove.
5210
be4da588
TT
52112019-06-25 Tom Tromey <tom@tromey.com>
5212
5213 * tui/tui-winsource.h (tui_update_source_window)
5214 (tui_update_source_window_as_is): Change parameter type.
5215 * tui/tui-winsource.c (tui_update_source_window): Change win_info
5216 to be a tui_source_window_base.
5217 (tui_update_source_window_as_is): Likewise.
5218 * tui/tui-win.c (make_visible_with_new_height): Update.
5219
5b81daba
TT
52202019-06-25 Tom Tromey <tom@tromey.com>
5221
5222 * tui/tui-winsource.c (tui_erase_source_content)
5223 (tui_show_source_content, tui_show_exec_info_content)
5224 (tui_erase_exec_info_content): Use refresh_window method.
5225 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
5226 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
5227 from tui_refresh_win.
5228 (tui_data_window::refresh_window): New method.
5229 (tui_win_info::refresh, tui_source_window_base::refresh)
5230 (tui_refresh_all): Use refresh_window method.
5231 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
5232 method.
5233 * tui/tui-regs.c (tui_display_register): Call refresh_window
5234 method.
5235 * tui/tui-layout.c (show_source_disasm_command)
5236 (show_source_or_disasm_and_command): Call refresh_window method.
5237 * tui/tui-data.h (struct tui_gen_win_info)
5238 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
5239 New method.
5240
cb2ce893
TT
52412019-06-25 Tom Tromey <tom@tromey.com>
5242
5243 * tui/tui.c (tui_rl_other_window, tui_enable)
5244 (tui_is_window_visible, tui_get_command_dimension): Update.
5245 * tui/tui-winsource.c (tui_update_source_window_as_is)
5246 (tui_clear_source_content, tui_erase_source_content)
5247 (tui_show_source_line, tui_source_window_base::refill)
5248 (tui_source_window_base::do_scroll_horizontal)
5249 (tui_source_window_base::set_is_exec_point_at)
5250 (tui_update_breakpoint_info, tui_set_exec_info_content)
5251 (tui_alloc_source_buffer, tui_line_is_displayed)
5252 (tui_addr_is_displayed): Update.
5253 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5254 (tui_check_and_display_highlight_if_needed)
5255 (tui_win_info::make_visible, tui_win_info::refresh)
5256 (tui_refresh_all): Update.
5257 * tui/tui-windata.c (tui_first_data_item_displayed)
5258 (tui_delete_data_content_windows, tui_erase_data_content)
5259 (tui_display_all_data, tui_data_window::refresh_all)
5260 (tui_check_data_values): Update.
5261 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
5262 (tui_set_win_focus_to, tui_win_info::forward_scroll)
5263 (tui_win_info::backward_scroll, tui_refresh_all_win)
5264 (tui_resize_all, tui_set_focus, tui_all_windows_info)
5265 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
5266 (tui_source_window_base::set_new_height)
5267 (tui_data_window::set_new_height)
5268 (make_invisible_and_set_new_height)
5269 (make_visible_with_new_height, new_height_ok)
5270 (parse_scrolling_args): Update.
5271 * tui/tui-stack.c (tui_show_frame_info): Update.
5272 * tui/tui-source.c (tui_set_source_content)
5273 (tui_set_source_content_nil, tui_source_is_displayed)
5274 (tui_source_window::do_scroll_vertical): Update.
5275 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5276 (tui_display_registers_from, tui_display_reg_element_at_line)
5277 (tui_check_register_values, tui_reg_command): Update.
5278 * tui/tui-layout.c (tui_default_win_height)
5279 (show_source_disasm_command, show_data, init_and_make_win)
5280 (show_source_or_disasm_and_command): Update.
5281 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
5282 (tui_redisplay_readline, tui_mld_flush)
5283 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
5284 (tui_getc): Update.
5285 * tui/tui-disasm.c (tui_set_disassem_content)
5286 (tui_disasm_window::do_scroll_vertical): Update.
5287 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
5288 Now virtual.
5289 (struct tui_win_info): Derive from tui_gen_win_info.
5290 <~tui_win_info>: Mark as override.
5291 <generic>: Remove member.
5292 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
5293 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
5294 (~tui_data_window, ~tui_win_info)
5295 (tui_free_all_source_wins_content): Update.
5296 * tui/tui-command.c (tui_refresh_cmd_win): Update.
5297
ab313b35
TT
52982019-06-25 Tom Tromey <tom@tromey.com>
5299
5300 * tui/tui-layout.c (init_and_make_win): Use new.
5301 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
5302 destructor, initializers.
5303 (tui_alloc_generic_win_info): Don't declare.
5304 * tui/tui-data.c (_locator): Add argument to constructor.
5305 (source_win, disasm_win): New globals.
5306 (exec_info): Remove.
5307 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5308 Update.
5309 (tui_alloc_generic_win_info): Remove.
5310 (init_content_element): Use new.
5311 (tui_win_info::tui_win_info): Update.
5312 (free_content_elements) <case DATA_WIN>: Use delete.
5313
dc2c33e4
TT
53142019-06-25 Tom Tromey <tom@tromey.com>
5315
5316 * tui/tui-wingeneral.c (tui_refresh_win): Update.
5317 * tui/tui-windata.c (tui_first_data_item_displayed)
5318 (tui_delete_data_content_windows): Update.
5319 * tui/tui-win.c (tui_data_window::set_new_height): Update.
5320 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5321 (tui_display_registers_from, tui_check_register_values): Update.
5322 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
5323 pointer.
5324 * tui/tui-data.c (init_content_element): Update. Allocate the new
5325 window.
5326 (tui_free_data_content): Update.
5327 (free_content_elements) <case DATA_WIN>: Free the window.
5328
214a5cbe
TT
53292019-06-25 Tom Tromey <tom@tromey.com>
5330
5331 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
5332 Update.
5333 * tui/tui-layout.c (make_command_window)
5334 (show_source_disasm_command, show_data, init_and_make_win)
5335 (show_source_or_disasm_and_command): Update.
5336 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
5337 method.
5338 <can_highight, is_highlighted>: Now bool.
5339 (tui_set_win_highlight): Don't declare.
5340 * tui/tui-data.c (tui_set_win_highlight): Remove.
5341
8e2daf15
TT
53422019-06-25 Tom Tromey <tom@tromey.com>
5343
5344 * tui/tui-wingeneral.c (make_visible): Remove check of window
5345 type.
5346
8903bd8a
TT
53472019-06-25 Tom Tromey <tom@tromey.com>
5348
5349 * tui/tui-win.c (tui_win_info::max_height)
5350 (tui_cmd_window::max_height): New methods.
5351 (new_height_ok): Call max_height.
5352 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
5353 <max_height>: New method.
5354
3f02ce1e
TT
53552019-06-25 Tom Tromey <tom@tromey.com>
5356
5357 * tui/tui-win.c (tui_source_window_base::set_new_height)
5358 (tui_data_window::set_new_height): New methods.
5359 (make_invisible_and_set_new_height): Call set_new_height method.
5360 * tui/tui-data.h (struct tui_win_info)
5361 (struct tui_source_window_base, struct tui_data_window)
5362 <set_new_height>: New method.
5363
1825f487
TT
53642019-06-25 Tom Tromey <tom@tromey.com>
5365
5366 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
5367 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
5368 tui_refresh_data_win.
5369 * tui/tui-win.c (tui_source_window_base::refresh_all): New
5370 method.
5371 (tui_refresh_all_win): Call the refresh_all method.
5372 (tui_set_focus): Likewise.
5373 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
5374 (struct tui_source_window_base, struct tui_data_window) <refresh>:
5375 Likewise.
5376
ad54d15b
TT
53772019-06-25 Tom Tromey <tom@tromey.com>
5378
5379 * tui/tui-winsource.h (tui_refill_source_window)
5380 (tui_set_is_exec_point_at): Don't declare.
5381 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5382 (tui_source_window_base::refill): Rename from
5383 tui_refill_source_window.
5384 (tui_source_window_base::do_scroll_horizontal): Update.
5385 (tui_source_window_base::set_is_exec_point_at): Rename from
5386 tui_set_is_exec_point_at.
5387 (tui_update_all_breakpoint_info): Update.
5388 * tui/tui-stack.c (tui_show_frame_info): Update.
5389 * tui/tui-layout.c (show_data): Add cast.
5390 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
5391 * tui/tui-data.h (struct tui_source_window_base) <refill,
5392 set_is_exec_point_at>: New methods.
5393 (tui_source_windows, tui_add_to_source_windows): Update types.
5394 (tui_add_to_source_windows): Remove redundant declaration.
5395 * tui/tui-data.c (source_windows): Store tui_source_window_base.
5396 (tui_source_windows): Change return type.
5397 (tui_clear_source_windows_detail): Update.
5398 (tui_add_to_source_windows): Change type of parameter.
5399 (tui_free_all_source_wins_content): Update.
5400
2042b506
TT
54012019-06-25 Tom Tromey <tom@tromey.com>
5402
5403 * tui/tui-wingeneral.c (tui_win_info::refresh)
5404 (tui_source_window_base::refresh): New methods.
5405 (tui_refresh_all): Call the refresh method.
5406 * tui/tui-data.h (struct tui_win_info)
5407 (struct tui_source_window_base) <refresh>: New method.
5408
56122977
TT
54092019-06-25 Tom Tromey <tom@tromey.com>
5410
5411 * tui/tui.h (tui_is_window_visible): Return bool.
5412 * tui/tui.c (tui_is_window_visible): Return bool.
5413 * tui/tui-wingeneral.c (tui_make_window, make_visible)
5414 (tui_make_visible, tui_make_invisible)
5415 (tui_win_info::make_visible)
5416 (tui_source_window_base::make_visible, make_all_visible)
5417 (tui_make_all_visible, tui_make_all_invisible): Update.
5418 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
5419 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
5420 bool.
5421 (struct tui_win_info, struct tui_source_window_base)
5422 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
5423 * tui/tui-data.c (tui_init_generic_part): Update.
5424
cda37efb
TT
54252019-06-25 Tom Tromey <tom@tromey.com>
5426
5427 * tui/tui-wingeneral.c (tui_win_info::make_visible)
5428 (tui_source_window_base::make_visible): New methods.
5429 (make_all_visible): Make method call.
5430 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
5431 (struct tui_source_window_base, struct tui_cmd_window): Override
5432 make_visible.
5433 (tui_win_is_source_type): Don't declare.
5434 * tui/tui-data.c (tui_win_is_source_type): Remove.
5435
6a0ee02c
TT
54362019-06-25 Tom Tromey <tom@tromey.com>
5437
5438 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
5439 NULL check.
5440
63901aec
TT
54412019-06-25 Tom Tromey <tom@tromey.com>
5442
5443 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
5444 Inline constructor. Add initializers for members.
5445 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
5446 constructors; now inline in class.
5447
ceb13a13
TT
54482019-06-25 Tom Tromey <tom@tromey.com>
5449
5450 * tui/tui-regs.c (tui_show_registers): Update.
5451 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
5452 bool.
5453 * tui/tui-data.c (tui_data_window::clear_detail)
5454 (tui_data_window): Update.
5455
238eb706
TT
54562019-06-25 Tom Tromey <tom@tromey.com>
5457
5458 * tui/tui-windata.c (tui_display_all_data)
5459 (tui_display_data_from_line, tui_display_data_from)
5460 (tui_check_data_values, tui_data_window::do_scroll_vertical):
5461 Update.
5462 * tui/tui-regs.c (tui_last_regs_line_no)
5463 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5464 (tui_show_registers, tui_show_register_group)
5465 (tui_display_registers_from, tui_display_reg_element_at_line)
5466 (tui_display_registers_from_line, tui_check_register_values)
5467 (tui_reg_next, tui_reg_prev): Update.
5468 * tui/tui-layout.c (tui_set_layout, show_data): Update.
5469 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
5470 tui_data_window.
5471 (struct tui_win_info) <detail>: Remove. Add new fields from
5472 tui_data_info.
5473 (TUI_DATA_WIN): Add cast.
5474 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
5475 (~tui_data_window): Simplify.
5476
81491aa0
TT
54772019-06-25 Tom Tromey <tom@tromey.com>
5478
5479 * tui/tui-layout.c (show_source_disasm_command)
5480 (show_source_or_disasm_and_command): Update.
5481 * tui/tui-io.c (update_cmdwin_start_line)
5482 (tui_redisplay_readline): Update.
5483 * tui/tui-data.h (struct tui_command_info): Remove.
5484 (struct tui_win_info) <detail>: Remove command_info member.
5485 (struct tui_data_window) <start_line>: New member, from
5486 tui_command_info.
5487 (TUI_CMD_WIN): Add casts.
5488
e6e41501
TT
54892019-06-25 Tom Tromey <tom@tromey.com>
5490
5491 * tui/tui-winsource.c (tui_update_source_window)
5492 (tui_refill_source_window)
5493 (tui_source_window_base::do_scroll_horizontal)
5494 (tui_update_breakpoint_info, tui_set_exec_info_content)
5495 (tui_show_exec_info_content, tui_erase_exec_info_content)
5496 (tui_clear_exec_info_content): Update.
5497 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
5498 Update.
5499 * tui/tui-win.c (make_invisible_and_set_new_height)
5500 (make_visible_with_new_height): Update.
5501 * tui/tui-source.c (tui_set_source_content)
5502 (tui_show_symtab_source): Update.
5503 * tui/tui-layout.c (extract_display_start_addr)
5504 (show_source_disasm_command, show_data)
5505 (make_source_or_disasm_window)
5506 (show_source_or_disasm_and_command): Update.
5507 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
5508 (tui_disasm_window::do_scroll_vertical): Remove shadowing
5509 "gdbarch".
5510 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
5511 to tui_source_window_base.
5512 (struct tui_win_info) <detail>: Remove source_info member.
5513 (struct tui_source_window_base) <has_locator>: Inline.
5514 Move contents from tui_source_info; rename has_locator member to
5515 m_has_locator.
5516 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
5517 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
5518 header file.
5519 (tui_source_window_base::clear_detail, ~tui_source_window_base):
5520 Simplify.
5521 (tui_free_all_source_wins_content): Cast to
5522 tui_source_window_base.
5523
44f0e208
TT
55242019-06-25 Tom Tromey <tom@tromey.com>
5525
5526 * tui/tui-win.c (make_invisible_and_set_new_height)
5527 (make_visible_with_new_height): Call has_locator method.
5528 * tui/tui-layout.c (show_source_disasm_command, show_data)
5529 (show_source_or_disasm_and_command): Update for bool change.
5530 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
5531 (tui_win_info) <has_locator>: New method.
5532 (struct tui_source_window_base) <has_locator>: New method.
5533 (tui_win_has_locator): Don't declare.
5534 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
5535 from tui_win_has_locator.
5536 (tui_source_window_base): Use false, not FALSE.
5537
7778b912
TT
55382019-06-25 Tom Tromey <tom@tromey.com>
5539
5540 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
5541 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
5542 clear_detail method directly.
5543 (tui_clear_win_detail): Remove.
5544
f83d391c
TT
55452019-06-25 Tom Tromey <tom@tromey.com>
5546
5547 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
5548 "this", not TUI_DISASM_WIN.
5549
13446e05
TT
55502019-06-25 Tom Tromey <tom@tromey.com>
5551
5552 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
5553 declare.
5554 * tui/tui-winsource.c
5555 (tui_source_window_base::do_scroll_horizontal): Rename from
5556 tui_horizontal_source_scroll.
5557 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
5558 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
5559 from tui_vertical_data_scroll.
5560 * tui/tui-win.h (tui_scroll): Don't declare.
5561 * tui/tui-win.c (tui_win_info::forward_scroll)
5562 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5563 (tui_win_info::right_scroll): Rename and update.
5564 (tui_scroll_forward_command, tui_scroll_backward_command)
5565 (tui_scroll_left_command, tui_scroll_right_command): Update.
5566 (tui_scroll): Remove.
5567 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
5568 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
5569 from tui_vertical_source_scroll.
5570 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
5571 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
5572 from tui_vertical_disassem_scroll.
5573 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
5574 do_scroll_horizontal>: New methods.
5575 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
5576 Likewise.
5577 (struct tui_source_window_base): Add do_scroll_horizontal.
5578 (struct tui_source_window, struct tui_disasm_window): Add
5579 do_scroll_vertical.
5580 (struct tui_data_window, struct tui_cmd_window): Add
5581 do_scroll_horizontal and do_scroll_vertical.
5582 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
5583
5cf82909
TT
55842019-06-25 Tom Tromey <tom@tromey.com>
5585
5586 * tui/tui-data.h (struct tui_source_window_base): New struct.
5587 (struct tui_source_window): Derive from tui_source_window_base.
5588 (struct tui_disasm_window): New struct.
5589 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
5590 from tui_source_window::clear_detail.
5591 (tui_source_window_base): Rename from tui_source_window.
5592 (~tui_source_window_base): Rename from ~tui_source_window.
5593 (tui_alloc_win_info): Create a tui_disasm_window.
5594
ee1d42d6
TT
55952019-06-25 Tom Tromey <tom@tromey.com>
5596
5597 * tui/tui-data.h (struct tui_source_window)
5598 (struct tui_data_window): Declare destructors.
5599 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
5600 destructors.
5601 (tui_win_info): Simplify.
5602
b4eb2452
TT
56032019-06-25 Tom Tromey <tom@tromey.com>
5604
5605 * tui/tui-winsource.c (tui_display_main)
5606 (tui_update_source_windows_with_addr)
5607 (tui_update_all_breakpoint_info): Update.
5608 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5609 (new_height_ok, parse_scrolling_args): Update.
5610 * tui/tui-stack.c (tui_show_frame_info): Update.
5611 * tui/tui-data.h (struct tui_list): Remove.
5612 (tui_source_windows): Return a reference to a std::vector.
5613 * tui/tui-data.c (source_windows): Now a std::vector.
5614 (tui_source_windows): Change return type.
5615 (tui_clear_source_windows): Rewrite.
5616 (tui_clear_source_windows_detail, tui_add_to_source_windows)
5617 (tui_free_all_source_wins_content): Rewrite.
5618
8761a91b
TT
56192019-06-25 Tom Tromey <tom@tromey.com>
5620
5621 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
5622 (struct tui_data_window, struct tui_cmd_window): Declare
5623 clear_detail method.
5624 * tui/tui-data.c (tui_source_window::clear_detail)
5625 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
5626 methods.
5627 (tui_clear_win_detail): Simplify.
5628
0ed69eda
TT
56292019-06-25 Tom Tromey <tom@tromey.com>
5630
5631 * tui/tui-layout.c (make_source_window, make_disasm_window)
5632 (make_source_or_disasm_window): Remove win_info_ptr parameter.
5633 Return the new window.
5634 (show_source_disasm_command, show_data)
5635 (show_source_or_disasm_and_command): Update.
5636
82432e10
TT
56372019-06-25 Tom Tromey <tom@tromey.com>
5638
5639 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
5640 parameter. Return the new window.
5641 (show_source_disasm_command): Update and remove NULL check.
5642 (show_source_or_disasm_and_command): Update.
5643
ec328aa5
TT
56442019-06-25 Tom Tromey <tom@tromey.com>
5645
5646 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
5647
33b906ab
TT
56482019-06-25 Tom Tromey <tom@tromey.com>
5649
5650 * tui/tui-data.h (struct tui_win_info): Make constructor
5651 protected. Make destructor virtual. Add initializers.
5652 (tui_source_window, tui_data_window, tui_cmd_window): New
5653 classes.
5654 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
5655 constructor. Add "type" parameter.
5656 (tui_source_window, tui_data_window, tui_cmd_window): New
5657 constructors.
5658 (tui_alloc_win_info): Instantiate the appropriate subclass.
5659
e7e11af4
TT
56602019-06-25 Tom Tromey <tom@tromey.com>
5661
5662 * tui/tui-win.c (tui_resize_all): Use delete.
5663 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
5664 destructor.
5665 (tui_free_window): Don't declare.
5666 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
5667 Update.
5668
6792b55e
TT
56692019-06-25 Tom Tromey <tom@tromey.com>
5670
5671 * tui/tui-data.h (struct tui_win_info): Add constructor.
5672 * tui/tui-data.c (tui_alloc_win_info): Use new.
5673 (tui_free_window): Use delete.
5674
f95675e1
TT
56752019-06-22 Tom Tromey <tom@tromey.com>
5676
5677 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
5678 declare.
5679 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
5680
5bff081c
TT
56812019-06-22 Tom Tromey <tom@tromey.com>
5682
5683 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
5684 declare.
5685 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
5686
47e3f474
TV
56872019-06-22 Tom de Vries <tdevries@suse.de>
5688
5689 * dwarf2read.c (create_addrmap_from_aranges)
5690 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
5691 instead of '%zu'.
5692
fd5866f6
SM
56932019-06-21 Simon Marchi <simon.marchi@efficios.com>
5694
5695 * dwarf2read.h (dwarf2_section_info_def): Remove.
5696 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
5697 * dwarf2read.c (struct dwo_sections) <types>: Change type to
5698 std::vector<dwarf2_section_info>.
5699 (struct dwo_file) <~dwo_file>: Remove.
5700 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
5701 types field.
5702 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
5703 (dwarf2_read_debug_names): Likewise.
5704 (create_debug_types_hash_table): Change parameter type to
5705 array_view, adjust code accordingly.
5706 (dwarf2_locate_dwo_sections): Adjust to std::vector.
5707 (partial_die_info::fixup): Likewise.
5708 (determine_prefix): Likewise.
5709 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
5710
fb1eb2f9
SM
57112019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5712
5713 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
5714 gdb_bfd_ref_ptr.
5715 <~dwo_file>: Remove call to gdb_bfd_unref.
5716 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
5717 gdb_bfd_ref_ptr::get.
5718
51ac9db5
SM
57192019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5720
5721 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
5722 type to htab_up.
5723 * dwarf2read.c (struct dwo_file): Initialize fields.
5724 <~dwo_file>: New.
5725 (free_dwo_file): Remove, move content to ~dwo_file.
5726 (struct dwo_file_deleter): Remove.
5727 (dwo_file_up>: Remove custom deleter.
5728 (free_dwo_files): Remove.
5729 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
5730 dwo_files.
5731 (process_skeletonless_type_units): Call unique_ptr::get.
5732 (allocate_dwo_file_hash_table): Add deleter to created hash
5733 table. Change return type to htab_up.
5734 (lookup_dwo_file_slot): Don't memset dwo_file, call
5735 unique_ptr::get.
5736 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
5737 (create_dwo_unit_in_dwp_v2): Likewise.
5738 (open_and_init_dwo_file): Likewise.
5739 (free_dwo_file_from_slot): Remove.
5740
dc4ccb6f
SM
57412019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5742
5743 * dwarf2read.h (struct dwarf2_section_info) <readin,
5744 is_virtual>: Change type to bool.
5745 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
5746 true instead of 1.
5747
e6a1c5cb
TT
57482019-06-19 Tom Tromey <tom@tromey.com>
5749
5750 * tui/tui-data.h (tui_init_content_element): Don't declare.
5751
6f6ffbeb
TT
57522019-06-19 Tom Tromey <tom@tromey.com>
5753
5754 * tui/tui-data.h (tui_init_win_info): Don't declare.
5755
f23f598e
TV
57562019-06-19 Tom de Vries <tdevries@suse.de>
5757
5758 * dwarf2read.h (abstract_to_concrete): Change type to
5759 std::unordered_map<sect_offset, std::vector<sect_offset>,
5760 gdb::hash_enum<sect_offset>>.
5761
680e1bee
TT
57622019-06-19 Tom Tromey <tromey@adacore.com>
5763
5764 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
5765 EVAL_AVOID_SIDE_EFFECTS specially.
5766
dcf37923
TT
57672019-06-19 Tom Tromey <tromey@adacore.com>
5768
5769 * source-cache.c (highlighter): New global.
5770 (source_cache::get_source_lines): Create a highlighter on demand.
5771
494986d5
AB
57722019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
5773
5774 * defs.h (deprecated_interactive_hook): Delete declaration.
5775 * interps.c (clear_interpreter_hooks): Remove use of
5776 deprecated_interactive_hook.
5777 * top.c (deprecated_interactive_hook): Delete definition.
5778 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
5779
3360b6e7
TV
57802019-06-18 Tom de Vries <tdevries@suse.de>
5781
5782 PR gdb/24515
5783 * dwarf2read.h (abstract_to_concrete): Change type from
5784 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
5785 std::unordered_map<sect_offset, std::vector<sect_offset>>.
5786 * dwarf2read.c (read_variable): Update.
5787 (dwarf2_fetch_die_loc_sect_off): Update.
5788
310b3441
TV
57892019-06-17 Tom de Vries <tdevries@suse.de>
5790
5791 PR gdb/24617
5792 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
5793 accessing parent[parent_len - 1].
5794
ba9777be
PP
57952019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
5796
5797 PR gdb/24364
5798 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
5799 call dtrace_process_dof with NULL dof.
5800
2b9f6e89
TV
58012019-06-16 Tom de Vries <tdevries@suse.de>
5802
5803 PR gdb/24445
5804 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
5805
431b3ead
TT
58062019-06-16 Tom Tromey <tom@tromey.com>
5807
5808 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5809 (make_all_visible): Use address of member.
5810
d04b44a1
TT
58112019-06-16 Tom Tromey <tom@tromey.com>
5812
5813 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
5814 (tui_free_window, free_content, free_content_elements): Remove
5815 unnecessary cast.
5816 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
5817 cast.
5818 * tui/tui-regs.c (tui_show_register_group)
5819 (tui_display_registers_from, tui_display_reg_element_at_line):
5820 Remove unnecessary cast.
5821
bf5142e7
AB
58222019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5823
5824 * linux-nat.c (normal_mask): Delete.
5825 (_initialize_linux_nat): Don't initialise normal_mask.
5826
c4973306
SM
58272019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
5828
5829 PR gdb/24445
5830 * dwarf-index-write.h (write_psymtabs_to_index): Add
5831 dwz_basename parameter.
5832 * dwarf-index-write.c (write_gdbindex): Move file writing to
5833 write_gdbindex_1. Change return type void.
5834 (assert_file_size): Move up, remove filename parameter.
5835 (write_gdbindex_1): New function.
5836 (write_debug_names): Change return type to void, call
5837 assert_file_size.
5838 (struct index_wip_file): New struct.
5839 (write_psymtabs_to_index): Add dwz_basename parameter. Move
5840 file logic to index_wip_file. Write index for dwz file if
5841 needed.
5842 (save_gdb_index_command): Pass basename of dwz file, if present.
5843 * dwarf-index-cache.c (index_cache::store): Obtain and pass
5844 build-id of dwz file, if present.
5845 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
5846 (dwarf2_get_dwz_file): Likewise.
5847 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
5848 (dwarf2_get_dwz_file): Likewise.
5849
395f9c91
TT
58502019-06-16 Tom Tromey <tom@tromey.com>
5851
5852 * coffread.c (process_coff_symbol): Use xstrdup.
5853 * value.c (create_internalvar): Use xstrdup.
5854
cafb3438
TT
58552019-06-16 Tom Tromey <tom@tromey.com>
5856
5857 * valops.c (value_cast, value_slice): Remove unnecessary cast.
5858 * breakpoint.c (stopin_command, stopat_command)
5859 (until_break_command, decode_location_default): Remove unnecessary
5860 cast.
5861 * utils.c (subset_compare): Remove unnecessary cast.
5862 * ada-lang.c (ada_update_initial_language): Remove unnecessary
5863 cast.
5864 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
5865 cast.
5866 * infcmd.c (path_command): Remove unnecessary cast.
5867 * coffread.c (decode_type): Remove unnecessary cast.
5868 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
5869 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
5870 * tui/tui-stack.c (tui_show_locator_content)
5871 (tui_show_frame_info): Remove unnecessary cast.
5872 * tui/tui-win.c (tui_scroll_forward_command)
5873 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
5874 (parse_scrolling_args): Remove unnecessary cast.
5875 * tui/tui-data.c (init_win_info, tui_del_window)
5876 (tui_free_window, tui_del_data_windows, tui_free_data_content)
5877 (free_content_elements): Remove unnecessary cast.
5878 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
5879 unnecessary cast.
5880 * tui/tui-source.c (tui_set_source_content)
5881 (tui_vertical_source_scroll): Remove unnecessary cast.
5882 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
5883 cast.
5884 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
5885 * tui/tui-regs.c (tui_display_registers_from)
5886 (tui_display_register): Remove unnecessary cast.
5887 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
5888 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
5889 (make_visible): Remove unnecessary cast.
5890 * tui/tui-winsource.c (tui_erase_source_content)
5891 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
5892 unnecessary cast.
5893 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
5894 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
5895 * stabsread.c (read_type, read_array_type, read_range_type):
5896 Remove unnecessary cast.
5897 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
5898 (parse_symbol, parse_type, upgrade_type, parse_external)
5899 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
5900 unnecessary cast.
5901 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
5902
730ead81
TT
59032019-06-16 Tom Tromey <tom@tromey.com>
5904
5905 * tui/tui-data.c (tui_alloc_generic_win_info)
5906 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
5907 checks.
5908
584a927c
AB
59092019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
5910 Andrew Burgess <andrew.burgess@embecosm.com>
5911
5912 * f-typeprint.c (f_print_type): Don't return early for not
5913 associated or not allocated types.
5914 (f_type_print_varspec_suffix): Add print_rank parameter and print
5915 ranks of array types in case they dangling.
5916 (f_type_print_base): Add print_rank parameter.
5917
30056ea0
AB
59182019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5919
5920 * NEWS: Mention new MI commands.
5921 * break-catch-throw.c (enum exception_event_kind): Move to
5922 breakpoint.h.
5923 (print_mention_exception_catchpoint): Output text as a single
5924 message.
5925 (catch_exception_command_1): Rename to...
5926 (catch_exception_event): ...this, make non-static, update header
5927 command, and change some parameter types.
5928 (catch_catch_command): Update for changes to
5929 catch_exception_command_1.
5930 (catch_throw_command): Likewise.
5931 (catch_rethrow_command): Likewise.
5932 * breakpoint.c (enum exception_event_kind): Delete.
5933 * breakpoint.h (enum exception_event_kind): Moved here from
5934 break-catch-throw.c.
5935 (catch_exception_event): Declare.
5936 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
5937 (mi_cmd_catch_throw): New function.
5938 (mi_cmd_catch_rethrow): New function.
5939 (mi_cmd_catch_catch): New function.
5940 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
5941 'catch-catch' entries.
5942 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
5943 (mi_cmd_catch_rethrow): Declare.
5944 (mi_cmd_catch_catch): Declare.
5945
ec8e2b6d
AB
59462019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5947
5948 * annotate.c (annotate_source_line): Change return type to void,
5949 update implementation to match.
5950 * annotate.h (annotate_source_line): Change return type to void,
5951 update header comment.
5952 * stack.c (print_frame_info): Don't change what frame information
5953 is printed based on whether annotations are on or not.
5954
0d3abd8c
AB
59552019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5956
5957 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
5958 (annotate_source): Make static.
5959 (annotate_source_line): Moved from source.c and renamed from
5960 identify_source_line. Update the return type.
5961 * annotate.h (annotate_source): Delete declaration.
5962 (annotate_source_line): Declaration moved from source.h, and
5963 renamed from identify_source_line. Return type updated.
5964 * source.c (identify_source_line): Moved to annotate.c and renamed
5965 to annotate_source_line.
5966 (info_line_command): Remove check of annotation_level.
5967 * source.h (identify_source_line): Move declaration to annotate.h
5968 and rename to annotate_source_line.
5969 * stack.c: Add 'annotate.h' include.
5970 (print_frame_info): Remove check of annotation_level before
5971 calling annotate_source_line.
5972
00df30ae
AB
59732019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5974
5975 * source-cache.c (source_cache::get_plain_source_lines): Use
5976 open_source_file_with_line_charpos instead of just
5977 open_source_file, remove call to find_source_lines.
5978 (source_cache::get_source_lines): Likewise.
5979 * source.c (find_source_lines): Make static.
5980 (get_filename_and_charpos): Renamed into...
5981 (open_source_file_with_line_charpos): ..this along with changes to
5982 return a scoped_fd, and some other minor clean ups.
5983 (identify_source_line): Use open_source_file_with_line_charpos.
5984 (search_command_helper): Use open_source_file_with_line_charpos
5985 instead of just open_source_file, remove call to
5986 find_source_lines.
5987 * source.h (open_source_file_with_line_charpos): Declare new
5988 function.
5989 (find_source_lines): Delete declaration.
5990
afda45a2
AB
59912019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5992
5993 * source.c (get_filename_and_charpos): Remove fullname
5994 parameter.
5995 (identify_source_line): Update call to get_filename_and_charpos.
5996
0735b091
TT
59972019-06-14 Tom Tromey <tromey@adacore.com>
5998
5999 PR gdb/24502:
6000 * ui-style.h (skip_ansi_escape): Update comment.
6001 * ui-file.h (class no_terminal_escape_file): New class.
6002 * ui-file.c (no_terminal_escape_file::write)
6003 (no_terminal_escape_file::puts): New methods.
6004 * cli/cli-logging.c (handle_redirections): Use
6005 no_terminal_escape_file.
6006
52ce35e2
TT
60072019-06-14 Tom Tromey <tromey@adacore.com>
6008
6009 * NEWS: Move convenience variable news above Python news.
6010
73cc7272
TT
60112019-06-14 Tom Tromey <tom@tromey.com>
6012
6013 * gnulib: Move directory to top-level.
6014 * configure.ac: Don't configure gnulib.
6015 * configure: Rebuild.
6016 * common/common-defs.h: Use new path to gnulib.
6017 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
6018 (GNULIB_H): Remove.
6019 (INCGNU): Look in new gnulib location.
6020 (HFILES_NO_SRCDIR): Remove gnulib files.
6021 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
6022 (generated_files): Remove GNULIB_H.
6023 ($(LIBGNU), all-lib): Remove targets.
6024 (distclean): Don't mention GNULIB_BUILDDIR.
6025 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
6026
f5686554
TT
60272019-06-14 Tom Tromey <tromey@adacore.com>
6028
6029 * symfile.c (add_symbol_file_command): Remove obsolete comment.
6030 Warn if symbol file does not provide any symbols.
6031
a0c1ffed
TT
60322019-06-14 Tom Tromey <tromey@adacore.com>
6033
6034 * source.c (find_and_open_source): Respect basenames_may_differ.
6035
7c39e397
AB
60362019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
6037
6038 * annotate.c (annotate_breakpoints_invalid): Make use of
6039 scoped_restore_terminal_state.
6040 (annotate_frames_invalid): Likewise.
6041
f411722c
TT
60422019-06-14 Tom Tromey <tromey@adacore.com>
6043
6044 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
6045 allow assignment to an internalvar.
6046
4268ec18
TT
60472019-06-14 Tom Tromey <tromey@adacore.com>
6048
6049 * ada-lex.l: Allow "_" in attribute names.
6050
abdb711e
TT
60512019-06-14 Tom Tromey <tromey@adacore.com>
6052
6053 PR gdb/24653:
6054 * regcache.c (registers_changed): Don't call alloca.
6055 * top.c (execute_command): Don't call alloca.
6056
4c048731
PA
60572019-06-13 Pedro Alves <palves@redhat.com>
6058
6059 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
6060 'expression'. When parsing an expression, error out if there's
6061 junk after "unlimited".
6062 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6063 (do_set_command): Adjust calls to is_unlimited_literal.
6064
66eb1ed3
PA
60652019-06-13 Pedro Alves <palves@redhat.com>
6066
6067 * compile/compile.c (make_compile_options_def_group): Add braces
6068 around array_view initializer.
6069 * thread.c (make_thread_apply_all_options_def_group)
6070 (make_thread_apply_all_options_def_group): Likewise.
6071
3345721a
PA
60722019-06-13 Pedro Alves <palves@redhat.com>
6073
6074 * NEWS (New commands): Mention "maint test-options
6075 require-delimiter", "maint test-options unknown-is-error", "maint
6076 test-options unknown-is-operand" and "maint show
6077 test-options-completion-result".
6078 (New command options, command completion): New section.
6079 (Completion improvements): New section.
6080 Mention that you can abbreviate "unlimited".
6081
6206060d
PA
60822019-06-13 Pedro Alves <palves@redhat.com>
6083
6084 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
6085 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
6086 * unittests/cli-utils-selftests.c (test_parse_flags)
6087 (test_parse_flags_qcs): Delete.
6088 (test_cli_utils): Don't call deleted functions.
6089
6665660a
PA
60902019-06-13 Pedro Alves <palves@redhat.com>
6091
6092 * thread.c: Include "cli/cli-option.h".
6093 (tp_array_compar_ascending): Global.
6094 (tp_array_compar): Delete function.
6095 (tp_array_compar_ascending, tp_array_compar_descending): New
6096 functions.
6097 (ascending_option_def, qcs_flag_option_def)
6098 (thr_qcs_flags_option_defs)
6099 (make_thread_apply_all_options_def_group)
6100 (make_thread_apply_options_def_group): New.
6101 (thread_apply_all_command): Use gdb::option::process_options.
6102 (thread_apply_command_completer)
6103 (thread_apply_all_command_completer): New.
6104 (thread_apply_command): Use gdb::option::process_options.
6105 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
6106 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
6107 to generate help text of "thread apply". Adjust "taas"'s help.
6108 * tid-parse.c (tid_range_parser::in_thread_range): New method.
6109 * tid-parse.h (tid_range_parser::in_thread_range): New method.
6110
f7e13587
PA
61112019-06-13 Pedro Alves <palves@redhat.com>
6112
6113 * thread.c (thread_apply_command): Check for invalid TID with
6114 isdigit instead of !isalpha.
6115
5d707134
PA
61162019-06-13 Pedro Alves <palves@redhat.com>
6117
6118 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
6119 (validate_flags_qcs): New.
6120 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
6121 (validate_flags_qcs): Declare.
6122 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
6123 (make_frame_apply_options_def_group): New.
6124 (frame_apply_command_count): Process options with
6125 gdb::option::process_options.
6126 (frame_apply_completer): New.
6127 (frame_apply_level_completer, frame_apply_all_completer)
6128 (frame_apply_completer): New.
6129 (_initialize_stack): Update help of "frame apply", "frame apply
6130 level", "frame apply all" and "faas" to mention supported options
6131 and install command completers.
6132 * stack.h (frame_apply_all_completer): Declare.
6133 * thread.c: Include "stack.h".
6134 (tfaas_command): Add "--".
6135 (_initialize_thread): Update help "tfaas" to mention supported
6136 options and install command completer.
6137
272d4594
PA
61382019-06-13 Pedro Alves <palves@redhat.com>
6139
6140 * completer.c (complete_nested_command_line): New.
6141 (gdb_completion_word_break_characters_throw): Add assertion.
6142 * completer.h (complete_nested_command_line): Declare.
6143
90a1ef87
PA
61442019-06-13 Pedro Alves <palves@redhat.com>
6145
6146 * stack.c (parse_backtrace_qualifiers): New.
6147 (backtrace_command): Use it.
6148 (backtrace_command_completer): Complete on qualifiers.
6149
d4c16835
PA
61502019-06-13 Pedro Alves <palves@redhat.com>
6151
6152 * frame.c: Include "cli/cli-option.h.
6153 (user_set_backtrace_options): New.
6154 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
6155 Delete.
6156 (get_prev_frame): Adjust.
6157 (boolean_option_def, uinteger_option_def)
6158 (set_backtrace_option_defs): New.
6159 (_initialize_frame): Adjust and use
6160 gdb::option::add_setshow_cmds_for_options to install "set
6161 backtrace past-main" and "set backtrace past-entry".
6162 * frame.h: Include "cli/cli-option.h".
6163 (struct frame_print_options): Forward declare.
6164 (print_frame_arguments_all, print_frame_arguments_scalars)
6165 (print_frame_arguments_none): Declare.
6166 (print_entry_values): Delete declaration.
6167 (struct frame_print_options, user_frame_print_options): New.
6168 (struct set_backtrace_options): New.
6169 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
6170 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
6171 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
6172 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
6173 (list_args_or_locals): Add frame_print_options parameter.
6174 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6175 * python/py-framefilter.c (enumerate_args): Pass down
6176 USER_FRAME_PRINT_OPTIONS.
6177 * stack.c: Include "cli/cli-option.h".
6178 (print_frame_arguments_all, print_frame_arguments_scalars)
6179 (print_frame_arguments_none): Declare.
6180 (print_raw_frame_arguments, print_entry_values): Delete.
6181 (user_frame_print_options): New.
6182 (boolean_option_def, enum_option_def, frame_print_option_defs):
6183 New.
6184 (struct backtrace_cmd_options): New.
6185 (bt_flag_option_def): New.
6186 (backtrace_command_option_defs): New.
6187 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6188 (print_frame_arg, read_frame_arg, print_frame_args)
6189 (print_frame_info, print_frame): Add frame_print_options parameter
6190 and use it.
6191 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
6192 (backtrace_command_1): Add frame_print_options and
6193 backtrace_cmd_options parameters and use them.
6194 (make_backtrace_options_def_group): New.
6195 (backtrace_command): Process command options with
6196 gdb::option::process_options.
6197 (backtrace_command_completer): New.
6198 (_initialize_stack): Extend "backtrace"'s help to mention
6199 supported options. Install completer for "backtrace".
6200 Install some settings commands with add_setshow_cmds_for_options.
6201
2daf894e
PA
62022019-06-13 Pedro Alves <palves@redhat.com>
6203
6204 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
6205 and that "set/show print raw frame-arguments" are now deprecated.
6206
6207 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
6208 command.
6209 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
6210 * stack.c (_initialize_stack): Install "set/show print
6211 raw-frame-arguments", and deprecate "set/show print raw
6212 frame-arguments".
6213 * valprint.c (_initialize_valprint): Deprecate "set/show print
6214 raw".
6215
e6ed716c
PA
62162019-06-13 Pedro Alves <palves@redhat.com>
6217
6218 * compile/compile.c (struct compile_options): New.
6219 (compile_flag_option_def, compile_command_option_defs)
6220 (make_compile_options_def_group): New.
6221 (compile_file_command): Handle options with
6222 gdb::option::process_options.
6223 (compile_file_command_completer): New function.
6224 (compile_code_command): Handle options with
6225 gdb::option::process_options.
6226 (compile_code_command_completer): New function.
6227 (_initialize_compiler): Install completers for "compile code" and
6228 "compile file". Mention available options in "compile code" and
6229 "compile code"'s help.
6230 * completer.c (advance_to_completion_word): New, factored out from
6231 ...
6232 (advance_to_expression_complete_word_point): ... this.
6233 (advance_to_filename_complete_word_point): New.
6234 * completer.h (advance_to_filename_complete_word_point): New
6235 declaration.
6236
7d8062de
PA
62372019-06-13 Pedro Alves <palves@redhat.com>
6238
6239 * compile/compile.c: Include "cli/cli-option.h".
6240 (compile_print_value): Scope data pointer is now a
6241 value_print_options pointer; adjust.
6242 (compile_print_command): Process options. Scope data pointer is
6243 now a value_print_options pointer; adjust.
6244 (_initialize_compile): Update "compile print"'s help to include
6245 supported options. Install a completer for "compile print".
6246 * cp-valprint.c (show_vtblprint, show_objectprint)
6247 (show_static_field_print): Delete.
6248 (_initialize_cp_valprint): Don't install "set print
6249 static-members", "set print vtbl", "set print object" here.
6250 * printcmd.c: Include "cli/cli-option.h" and
6251 "common/gdb_optional.h".
6252 (print_command_parse_format): Rework to fill in a
6253 value_print_options instead of a format_data.
6254 (print_value): Change parameter type from format_data pointer to
6255 value_print_options reference. Adjust.
6256 (print_command_1): Process options. Adjust to pass down a
6257 value_print_options.
6258 (print_command_completer): New.
6259 (_initialize_printcmd): Install print_command_completer as
6260 handle_brkchars completer for the "print" command. Update
6261 "print"'s help to include supported options.
6262 * valprint.c: Include "cli/cli-option.h".
6263 (show_vtblprint, show_objectprint, show_static_field_print): Moved
6264 here from cp-valprint.c.
6265 (boolean_option_def, uinteger_option_def)
6266 (value_print_option_defs, make_value_print_options_def_group):
6267 New. Use gdb::option::add_setshow_cmds_for_options to install
6268 "set print elements", "set print null-stop", "set print repeats",
6269 "set print pretty", "set print union", "set print array", "set
6270 print address", "set print symbol", "set print array-indexes".
6271 * valprint.h: Include <string> and "cli/cli-option.h".
6272 (make_value_print_options_def_group): Declare.
6273 (print_value): Change parameter type from format_data pointer to
6274 value_print_options reference.
6275 (print_command_completer): Declare.
6276
9d0faba9
PA
62772019-06-13 Pedro Alves <palves@redhat.com>
6278
6279 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
6280 (COMMON_SFILES): Add maint-test-settings.c.
6281 * cli/cli-decode.c (boolean_enums): New global, factored out from
6282 ...
6283 (add_setshow_boolean_cmd): ... here.
6284 * cli/cli-decode.h (boolean_enums): Declare.
6285 * cli/cli-option.c: New file.
6286 * cli/cli-option.h: New file.
6287 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
6288 factored out from ...
6289 (parse_cli_boolean_value(const char *)): ... this.
6290 (is_unlimited_literal): Change parameter type to pointer to
6291 pointer. Adjust and advance ARG pointer.
6292 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6293 (parse_cli_var_enum): New, factored out from ...
6294 (do_set_command): ... this. Adjust.
6295 * cli/cli-setshow.h (parse_cli_boolean_value)
6296 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6297 (parse_cli_var_enum): Declare.
6298 * cli/cli-utils.c: Include "cli/cli-option.h".
6299 (get_ulongest): New.
6300 * cli/cli-utils.h (get_ulongest): Declare.
6301 (check_for_argument): New overloads.
6302 * maint-test-options.c: New file.
6303
2c722807
PA
63042019-06-13 Pedro Alves <palves@redhat.com>
6305
6306 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
6307 parse a range if "-" is at the end of the string.
6308
dee7b4c8
PA
63092019-06-13 Pedro Alves <palves@redhat.com>
6310
6311 * cli/cli-setshow.c (parse_auto_binary_operation)
6312 (parse_cli_boolean_value): Don't allow "o".
6313
dca0f6c0
PA
63142019-06-13 Pedro Alves <palves@redhat.com>
6315
6316 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
6317 * NEWS: Mention maint test-settings KIND.
6318 * maint-test-settings.c: New file.
6319
597bf39d
PA
63202019-06-13 Pedro Alves <palves@redhat.com>
6321
6322 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
6323 completer.
6324 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
6325 "set" completers.
6326
48c410fb
PA
63272019-06-13 Pedro Alves <palves@redhat.com>
6328
6329 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
6330 after item.
6331
93bcb043
PA
63322019-06-13 Pedro Alves <palves@redhat.com>
6333
6334 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
6335
cbba3ecd
PA
63362019-06-13 Pedro Alves <palves@redhat.com>
6337
6338 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
6339 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
6340 call.
6341 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
6342 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
6343 calls.
6344 (check_for_argument): Skip spaces after argument.
6345
b9a3f842
PA
63462019-06-13 Pedro Alves <palves@redhat.com>
6347
6348 * thread.c (thread_apply_command): Adjust TID parsing.
6349 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
6350 detected before end of string.
6351 (tid_is_in_list): Error out if LIST is invalid.
6352
3844e605
PA
63532019-06-13 Pedro Alves <palves@redhat.com>
6354
6355 * completer.c (complete_line_internal_1): Rewind completion word
6356 point.
6357 (completion_tracker::advance_custom_word_point_by): Change
6358 parameter type to int.
6359 * completer.h (completion_tracker::advance_custom_word_point_by):
6360 Likewise.
6361
00b56dbe
PA
63622019-06-13 Pedro Alves <palves@redhat.com>
6363
6364 * completer.c (advance_to_completion_word): Handle delimiters.
6365
d106773e
PA
63662019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
6367
6368 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
6369
08f10e02
TT
63702019-06-11 Tom Tromey <tom@tromey.com>
6371
6372 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
6373 (xmalloc_failed): Move to alloc.c.
6374 * alloc.c: New file.
6375 * Makefile.in (COMMON_SFILES): Add alloc.c.
6376
1c7fe951
TT
63772019-06-11 Tom Tromey <tom@tromey.com>
6378
6379 * nat/linux-waitpid.c: Don't include server.h.
6380 (linux_debug): Remove.
6381 (my_waitpid): Update.
6382
89549d7f
TT
63832019-06-11 Tom Tromey <tromey@adacore.com>
6384
6385 * infcall.c (_initialize_infcall): Remove trailing newline from
6386 help.
6387 * user-regs.c (_initialize_user_regs): Remove trailing newline
6388 from help.
6389 * typeprint.c (_initialize_typeprint): Remove trailing newline
6390 from help.
6391 * reverse.c (_initialize_reverse): Remove trailing newlines from
6392 help.
6393 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
6394 from help.
6395 * language.c (add_set_language_command): Remove trailing newline
6396 from help.
6397 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
6398 help.
6399 * disasm.c (_initialize_disasm): Remove trailing newline from
6400 help.
6401 * top.c (init_main): Remove trailing newline from help.
6402 * interps.c (_initialize_interpreter): Remove trailing newline
6403 from help.
6404 * btrace.c (_initialize_btrace): Remove trailing newlines from
6405 help.
6406 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
6407 from help.
6408 * python/python.c (_initialize_python): Remove trailing newline
6409 from help.
6410 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
6411 help.
6412 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
6413 from help. Reformat some text.
6414 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
6415 from help.
6416 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
6417 newline from help.
6418
86108c13
TT
64192019-06-11 Tom Tromey <tromey@adacore.com>
6420
6421 * darwin-nat.c (darwin_decode_exception_message)
6422 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
6423
a7067863
AB
64242019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
6425
6426 * valops.c (value_slice): Check for not allocated or not
6427 associated values.
6428
9ab08412
TV
64292019-06-10 Tom de Vries <tdevries@suse.de>
6430
6431 PR gdb/24618
6432 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
6433 sure an empty slot (defined by a 32-bit zero pair) is recognized as
6434 invalid.
6435
f19e22e9
TV
64362019-06-10 Tom de Vries <tdevries@suse.de>
6437
6438 PR gdb/24611
6439 * linespec.c (linespec_lexer_lex_string): Remove incorrect
6440 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
6441
e99f9db0
TV
64422019-06-10 Tom de Vries <tdevries@suse.de>
6443
6444 PR symtab/24545
6445 * symtab.c (struct demangled_name_entry): Add language field.
6446 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
6447 static minimal symbol". Set and use language field.
6448
9bf7038b
TT
64492019-06-10 Tom Tromey <tromey@adacore.com>
6450
6451 * ada-lang.c (_initialize_ada_language): Update help text.
6452
422186a9
TT
64532019-06-10 Tom Tromey <tromey@adacore.com>
6454
6455 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
6456 with a newline.
6457 * guile/guile.c (handle_boot_error): Don't end warning with a
6458 newline.
6459 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
6460 warning with a newline.
6461 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
6462 newline.
6463 (s12z_frame_cache): Likewise.
6464 * dwarf-index-cache.c (index_cache::store): Don't end warning with
6465 a newline.
6466 * solib-svr4.c (disable_probes_interface): Don't end warning with
6467 a newline.
6468 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
6469 newline.
6470 * python/python.c (do_finish_initialization): Don't end warning
6471 with a newline.
6472
25ce02ee
TT
64732019-06-10 Tom Tromey <tom@tromey.com>
6474
6475 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6476 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
6477 gdbpy_enter.
6478
caa429d8
TT
64792019-06-10 Tom Tromey <tromey@adacore.com>
6480
6481 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
6482 data.
6483 (elf_new_init): Don't call stabsread_new_init.
6484 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
6485 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
6486 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
6487
81873cc8
TV
64882019-06-10 Tom de Vries <tdevries@suse.de>
6489
6490 PR symtab/16264
6491 PR symtab/24517
6492 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
6493
4fa0265e
РИ
64942019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
6495
6496 * source.c (find_and_open_source): Also rewrite relative file
6497 names.
6498
1a3da2cd
AB
64992019-04-26 Amos Bird <amosbird@gmail.com>
6500
6501 * annotate.c (annotate_thread_exited): Add "thread-exited"
6502 annotation.
6503
3847a7bf
TT
65042019-06-06 Tom Tromey <tromey@adacore.com>
6505
6506 * maint.h (class scoped_command_stats): Use
6507 DISABLE_COPY_AND_ASSIGN.
6508 <print_time>: New method.
6509 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
6510 print_time.
6511 (scoped_command_stats::print_time): New method.
6512
312617a3
AB
65132019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6514
6515 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
6516 instructions of lengths 6 or 8 bytes.
6517
b02f78f9
PA
65182019-06-04 Pedro Alves <palves@redhat.com>
6519
6520 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
6521
6522 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
6523 * breakpoint.c (condition_completer): Likewise.
6524 * cli/cli-dump.c (scan_expression): Likewise.
6525 * common/filestuff.c (mkdir_recursive): Likewise.
6526 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
6527 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
6528 (gdb_abspath): Likewise.
6529 * compile/compile-cplus-types.c
6530 (compile_cplus_instance::decl_name): Likewise.
6531 * completer.c (complete_explicit_location):
6532 (signal_completer, reg_or_group_completer_1): Likewise.
6533 * cp-support.c (cp_remove_params_if_any): Likewise.
6534 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
6535 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
6536 * infcmd.c (strip_bg_char): Likewise.
6537 * linespec.c (copy_token_string): Likewise.
6538 * mi/mi-main.c (output_cores): Likewise.
6539 * psymtab.c (psymtab_search_name):
6540 * symfile.c (test_set_ext_lang_command): Likewise.
6541 * target.c (target_fileio_read_stralloc): Likewise.
6542 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
6543 * value.c (complete_internalvar): Likewise.
6544
e1f2e1a2
CB
65452019-06-04 Christian Biesinger <cbiesinger@google.com>
6546
6547 Add objfile property to gdb.Type.
d3238f7d
PA
6548 * NEWS: Mention Python API addition.
6549 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 6550
e664d728
PW
65512019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6552
6553 * NEWS: Mention the new set|show style [title|highlight].
6554 Mention changes to "show style", "help" and "apropos".
6555
66d8c862
PW
65562019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6557
6558 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
6559 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
6560 instead of print_help_for_command.
6561 (print_doc_of_command): New function.
6562 (help_list): Add 'apropos -v word' suggestion.
6563 (print_help_for_command): Style the command name using title style.
6564 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
6565 (_initialize_cli_cmds): Describe -v in apropos_command help.
6566
9303eb2f
PW
65672019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6568
6569 * cli/cli-style.h (cli_style_option): Add name in constructor,
6570 add m_name class member, add constructor with intensity,
6571 add name class function.
6572 (cli_style_option::add_setshow_commands): Remove name argument.
6573 (highlight_style, title_style): New styles.
6574 * cli/cli-style.c (do_show): New function that shows a style
6575 characteristic styling the style name with itself.
6576 (set_style_name): New function.
6577 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
6578 Update all callers according to the changes in cli/cli-style.h.
6579 * utils.h (fputs_highlighted): New function.
6580 * utils.c (fputs_highlighted): Likewise.
6581
e2c52041
PW
65822019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6583
6584 * NEWS: Mention new pipe command and new convenience variables.
6585
947d3946
PW
65862019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6587
6588 * cli/cli-cmds.c (pipe_command): New function.
6589 (_initialize_cli_cmds): Call add_com for pipe_command.
6590 Define | as an alias for pipe.
6591 (exit_status_set_internal_vars): New function.
6592 (shell_escape): Call exit_status_set_internal_vars.
6593 cli/cli-decode.c (find_command_name_length): Recognize | as
6594 a single character command.
6595
b8fd0918
PW
65962019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6597
6598 * gdbcmd.h (execute_command_to_ui_file): New declaration.
6599 top.c (execute_command_to_ui_file): New function, mostly a copy
6600 of execute_command_to_string.
6601 (execute_command_to_string): Implement by calling
6602 execute_command_to_ui_file.
6603
68bb5386
PW
66042019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6605
6606 * top.h (saved_command_line): Remove declaration.
6607 * top.c (previous_saved_command_line, previous_repeat_arguments):
6608 New variables.
6609 (saved_command_line): Make static, define together with other
6610 'repeat variables'.
6611 (dont_repeat): Clear repeat_arguments.
6612 (repeat_previous, get_saved_command_line, save_command_line):
6613 New functions.
6614 (gdb_init): Initialize saved_command_line
6615 and previous_saved_command_line.
6616 * main.c (captured_main_1): Remove saved_command_line initialization.
6617 * event-top.c (handle_line_of_input): Update to use
6618 the new 'repeat' related functions instead of direct access to
6619 saved_command_line.
6620 * command.h (repeat_previous, get_saved_command_line,
6621 save_command_line): New declarations.
6622 (dont_repeat): Add comment.
6623
bfcdb852
TT
66242019-05-30 Tom Tromey <tromey@adacore.com>
6625
6626 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
6627 Fix comment.
6628 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
6629
0ef209f2
JV
66302019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
6631
6632 PR cli/24587
6633 * completer.c (complete): Initialize variable word.
6634
955b06fa
SDJ
66352019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
6636
6637 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6638 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
6639 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
6640 'body' is NULL to the outter 'if', protecting the '!is_define'
6641 situation as well.
6642
fa9c3fa0
TT
66432019-05-29 Tom Tromey <tromey@adacore.com>
6644
6645 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
6646 (dwarf_unknown): New function.
6647 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
6648 (dwarf_type_encoding_name): Use dwarf_unknown.
6649
4330d61d
TT
66502019-05-29 Tom Tromey <tromey@adacore.com>
6651
6652 PR c++/20020:
6653 * cp-valprint.c (cp_print_value_fields): Call
6654 cp_print_static_field inside "try".
6655
33a6bc35
TT
66562019-05-29 Tom Tromey <tromey@adacore.com>
6657
6658 * inflow.c (struct terminal_info): Add default operator=.
6659 * configure: Rebuild.
6660 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
6661 -Wdeprecated-copy-dtor, -Wredundant-move.
6662
000439d5
TT
66632019-05-29 Tom Tromey <tromey@adacore.com>
6664
6665 * NEWS: Add entry.
6666 * infcmd.c (print_return_value_1): Handle finish_print
6667 option.
6668 (show_print_finish): New function.
6669 (_initialize_infcmd): Add "set/show print finish" commands.
6670 * valprint.c (user_print_options): Initialize new member.
6671 * valprint.h (struct value_print_options) <finish_print>: New
6672 member.
6673
c0e70c62
TT
66742019-05-28 Tom Tromey <tromey@adacore.com>
6675
6676 * ada-lang.c (ada_remove_Xbn_suffix)
6677 (find_old_style_renaming_symbol)
6678 (parse_old_style_renaming): Remove.
6679 (ada_find_renaming_symbol): Don't call
6680 find_old_style_renaming_symbol.
6681 (ada_is_renaming_symbol): Rename from
6682 ada_find_renaming_symbol. Remove "block" parameter. Return
6683 bool. Now static.
6684 (ada_read_var_value): Update and simplify.
6685 * ada-exp.y (write_var_or_type): Remove old code.
6686
766f8836
AH
66872019-05-28 Alan Hayward <alan.hayward@arm.com>
6688
6689 * event-top.c: Remove include comment.
6690 * inflow.c (class scoped_ignore_sigttou): Move from here...
6691 * inflow.h (class scoped_ignore_sigttou): ...to here.
6692 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
6693 * top.c: Remove include comment.
6694
eb41253a
TT
66952019-05-27 Tom Tromey <tom@tromey.com>
6696
6697 * NEWS: Fix typo.
6698
4ca51187
TT
66992019-05-22 Tom Tromey <tromey@adacore.com>
6700
6701 * target.c (target_follow_exec): Constify parameter.
6702 * target-delegates.c: Rebuild.
6703 * remote.c (remote_target::follow_exec): Constify parameter.
6704 * infrun.c (follow_exec): Constify parameter.
6705 * target.h (struct target_ops) <follow_exec>: Constify parameter.
6706 (target_follow_exec): Likewise.
6707
8fca4da0
AH
67082019-05-22 Alan Hayward <alan.hayward@arm.com>
6709
6710 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
6711 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
6712
b7060614
AH
67132019-05-22 Alan Hayward <alan.hayward@arm.com>
6714
6715 * NEWS: Add debugredirect and testsuite sections.
6716
0a5954bd
SC
67172019-05-22 Simon Cook <simon.cook@embecosm.com>
6718
6719 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
6720 target descriptions using exclusively floating point register name
6721 aliases.
6722
dc42e902
AB
67232019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
6724
6725 PR gdb/18644:
6726 * f-lang.c (build_fortran_types): Handle the case where
6727 gdbarch_floatformat_for_type returns a nullptr.
6728
fb7806c7
TV
67292019-05-21 Tom de Vries <tdevries@suse.de>
6730
6731 PR cli/24587
6732 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
6733
34d11c68
AB
67342019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6735
6736 PR gdb/18644:
6737 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
6738 16-byte floats.
6739 * i386-tdep.c (i386_floatformat_for_type): Use
6740 floatformats_ia64_quad for the 16-byte floating point component
6741 within a fortran 32-byte complex number.
6742
122cf0f2
AB
67432019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6744
6745 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
6746 delete default constructor.
6747 (find_partial_die): Update to return const struct.
6748 (partial_die_parent_scope): Move variable declaration into scope
6749 of its use and change its type to auto.
6750 (guess_partial_die_structure_name): Likewise.
6751 (partial_die_info::fixup): Likewise.
6752
33d0e35a
TT
67532019-05-17 Tom Tromey <tromey@adacore.com>
6754
6755 * source.c (find_and_open_source): Remove cast.
6756
a45575b0
TT
67572019-05-17 Tom Tromey <tromey@adacore.com>
6758
6759 * annotate.c (annotate_source): Make "filename" const.
6760 * annotate.h (annotate_source): Use const.
6761
81f47ac2
AH
67622019-05-17 Alan Hayward <alan.hayward@arm.com>
6763
6764 * disasm.c (set_disassembler_options): Send errors to stderr.
6765
ca1285d1
AH
67662019-05-17 Alan Hayward <alan.hayward@arm.com>
6767
6768 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
6769 (cli_interp_base::set_logging): Check debug_redirect.
6770 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
6771 * cli/cli-logging.c (debug_redirect): Add static variable.
6772 (pop_output_files): Add default param.
6773 (handle_redirections): Print debug setting.
6774 (show_logging_command): Likewise.
6775 (_initialize_cli_logging): Add debugredirect command.
6776 * interps.c (current_interp_set_logging): Add debug_redirect
6777 parameter.
6778 * interps.h (set_logging): Add debug_redirect parameter.
6779 (current_interp_set_logging): Likewise.
6780 * mi/mi-common.h: Likewise.
6781 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
6782
67832019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
6784 Tom Tromey <tromey@adacore.com>
6785
6786 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
6787 directly.
6788 * cli/cli-interp.h (make_logging_output): Remove declaration.
6789 * cli/cli-logging.c (make_logging_output): Remove function.
6790 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
6791 directly.
6792 * ui-file.c (tee_file::tee_file): Remove bools.
6793 (tee_file::~tee_file): Remove deletes.
6794 * ui-file.h (tee_file): Remove bools.
6795
26648588
JV
67962019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
6797
6798 * mi/mi-cmds.h (mi_cmd_complete): New function.
6799 * mi/mi-main.c (mi_cmd_complete): Likewise.
6800 * mi/mi-cmds.c: Define new MI command -complete.
6801 * NEWS: Mention new -complete command.
6802
6e035501
JV
68032019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
6804
6805 * completer.h (complete): New function.
6806 * completer.c (complete): Likewise.
6807 * cli/cli-cmds.c: (complete_command): Update to use new complete()
6808 function defined in completer.h.
6809
7d0e2ece
JV
68102019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
6811
e79be6e5 6812 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 6813
fb816e8b
TV
68142019-05-17 Tom de Vries <tdevries@suse.de>
6815
6816 PR gdb/24094
6817 * dwarf2read.c (struct cu_partial_die_info): New struct.
6818 (find_partial_die): Return cu_partial_die_info.
6819 (partial_die_parent_scope, guess_partial_die_structure_name)
6820 (partial_die_info::fixup): Handle new return type of find_partial_die.
6821
677052f2
SDJ
68222019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6823
a1726c38 6824 PR breakpoints/24541
677052f2
SDJ
6825 * stap-probe.c (stap_parse_register_operand): Make "regname" an
6826 "std::string", simplifying the algorithm.
6827
f3da9116
SDJ
68282019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6829
6830 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
6831 (stap_static_probe_ops::get_probes): Likewise.
6832
f1bb75ab
SDJ
68332019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6834
6835 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
6836 '-')" and "else if".
6837 (stap_parse_single_operand): Join checks for
6838 "gdbarch_stap_parse_special_token_p" and
6839 "gdbarch_stap_parse_special_token" in the same "if" statement.
6840 Invert check when verifying for operation on register
6841 displacement.
6842
3ca58cde
SDJ
68432019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6844
6845 * stap-probe.c (stap_get_opcode): Update comment.
6846 (stap_get_expected_argument_type): Likewise.
6847 (handle_stap_probe): Likewise.
6848
af2d9bee
SDJ
68492019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6850
6851 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
6852 return type to 'bool'. Adjust comment. Use 'bool' when
6853 appropriate.
6854 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6855 * stap-probe.c (stap_parse_argument_1): Likewise.
6856 (stap_is_operator): Likewise.
6857 (stap_is_generic_prefix): Likewise.
6858 (stap_is_register_prefix): Likewise.
6859 (stap_is_register_indirection_prefix): Likewise.
6860 (stap_is_integer_prefix): Likewise.
6861 (stap_generic_check_suffix): Likewise.
6862 (stap_check_integer_suffix): Likewise.
6863 (stap_check_register_suffix): Likewise.
6864 (stap_check_register_indirection_suffix): Likewise.
6865 (stap_parse_register_operand): Likewise.
6866 (stap_parse_single_operand): Likewise.
6867 (stap_parse_argument_1): Likewise.
6868 (stap_probe::get_argument_count): Likewise.
6869 (stap_is_operator): Likewise.
6870
61c9c421
TT
68712019-05-16 Tom Tromey <tromey@adacore.com>
6872
6873 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
6874 keyword to foreach.
6875
9ddc1af1
SM
68762019-05-15 Simon Marchi <simon.marchi@efficios.com>
6877
6878 * linux-thread-db.c (try_thread_db_load_1): Change return type
6879 to bool.
6880 (try_thread_db_load): Likewise.
6881 (try_thread_db_load_from_pdir_1): Likewise.
6882 (try_thread_db_load_from_pdir): Likewise.
6883 (try_thread_db_load_from_sdir): Likewise.
6884 (try_thread_db_load_from_dir): Likewise.
6885 (thread_db_load_search): Likewise.
6886 (has_libpthread): Likewise.
6887 (thread_db_load): Likewise.
6888
7bede828
SDJ
68892019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
6890
6891 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6892 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
6893 NULL, and complain/return if that's the case.
6894
c5358db4
JD
68952019-05-15 John Darrington <john@darrington.wattle.id.au>
6896
6897 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
6898 (advance, posn, abstract_read_memory): New functions.
6899 [struct mem_read_abstraction]: New struct.
6900 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
6901
c408a94f
TT
69022019-05-14 Tom Tromey <tromey@adacore.com>
6903
6904 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
6905 value is not lval_memory.
6906
e7bd7fba
TT
69072019-05-14 Tom Tromey <tromey@adacore.com>
6908
6909 * solib.c (info_sharedlibrary_command): Style the file name.
6910
a6d0f249
AH
69112019-05-14 Alan Hayward <alan.hayward@arm.com>
6912
6913 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
6914 (aarch64_vnv_type): Likewise.
6915 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
6916 * common/tdesc.c: Likewise.
6917 * common/tdesc.h (enum tdesc_type_kind): Likewise.
6918 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
6919 * features/aarch64-fpu.xml: Add ieee half view.
6920 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
6921 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
6922 * gdbtypes.h (struct builtin_type): Likewise.
6923 (struct objfile_type): Likewise.
6924
66b8bb74
SM
69252019-05-12 Paul Naert <paul.naert@polymtl.ca>
6926
6927 * language.c (language_sniff_from_mangled_name): Fix "langauge"
6928 typo.
6929 * location.h (string_to_event_location): Likewise.
6930
21c219fd
JB
69312019-05-11 Joel Brobecker <brobecker@adacore.com>
6932
6933 GDB 8.3 released.
6934
13674803
SM
69352019-05-10 Simon Marchi <simon.marchi@efficios.com>
6936
6937 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
6938 New variable declaration.
6939 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
6940 New variable.
6941 (print_one_breakpoint): Use ui_out::test_flags and new global
6942 variable to compute use_fixed_output.
6943 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
6944 Remove.
6945 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
6946 (mi_multi_location_breakpoint_output_fixed): Remove.
6947 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
6948 new variable.
6949 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
6950 fix_multi_location_breakpoint_output flag if version >= 3.
6951 * ui-out.h (enum ui_out_flag)
6952 <fix_multi_location_breakpoint_output>: New enumerator.
6953
a9eac7f9
SM
69542019-05-10 Simon Marchi <simon.marchi@efficios.com>
6955
6956 * contrib/cc-with-tweaks.sh: Validate dwz's work.
6957
71bed2db
TT
69582019-05-10 Tom Tromey <tromey@adacore.com>
6959
6960 * ada-lang.c (catch_ada_completer): New function.
6961 (_initialize_ada_language): Use it.
6962
24c54127
TT
69632019-05-10 Tom Tromey <tromey@adacore.com>
6964
6965 * thread.c (print_thread_info): Make "requested_threads" const.
6966 * gdbthread.h (print_thread_info): Make "requested_threads"
6967 const.
6968 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
6969 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
6970
7a102139
TT
69712019-05-08 Tom Tromey <tom@tromey.com>
6972
6973 * gdbtypes.c (objfile_type_data): Change type.
6974 (objfile_type, _initialize_gdbtypes): Update.
6975
924d79e2
TT
69762019-05-08 Tom Tromey <tom@tromey.com>
6977
6978 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
6979 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
6980 (_initialize_dwarf2_frame): Update.
6981
4c58e337
TT
69822019-05-08 Tom Tromey <tom@tromey.com>
6983
6984 * objc-lang.c (objc_objfile_data): Change type.
6985 (find_methods): Update.
6986 (_initialize_objc_lang): Remove.
6987
d772d2ab
TT
69882019-05-08 Tom Tromey <tom@tromey.com>
6989
6990 * stabsread.c (rs6000_builtin_type_data): Change type.
6991 (rs6000_builtin_type, _initialize_stabsread): Update.
6992
d11d83f4
TT
69932019-05-08 Tom Tromey <tom@tromey.com>
6994
6995 * mips-tdep.c (mips_pdr_data): Remove.
6996 (_initialize_mips_tdep): Update.
6997
9a73f0ad
TT
69982019-05-08 Tom Tromey <tom@tromey.com>
6999
7000 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
7001 (hppa_init_objfile_priv_data, read_unwind_info)
7002 (find_unwind_entry, _initialize_hppa_tdep): Update.
7003
8127a2fa
TT
70042019-05-08 Tom Tromey <tom@tromey.com>
7005
7006 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
7007 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
7008 on obstack.
7009 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
7010
91d3055d
TT
70112019-05-08 Tom Tromey <tom@tromey.com>
7012
7013 * mdebugread.c (basic_type_data): Change type.
7014 (basic_type, _initialize_mdebugread): Update.
7015
31930bd3
TT
70162019-05-08 Tom Tromey <tom@tromey.com>
7017
7018 * common/gdb_unique_ptr.h (struct noop_deleter): New.
7019
bdb3ed9e
TT
70202019-05-08 Tom Tromey <tom@tromey.com>
7021
7022 * nto-tdep.c (nto_inferior_data_reg): Change type.
7023 (nto_inferior_data): Update.
7024 (nto_inferior_data_cleanup, nto_new_inferior_data)
7025 (_initialize_nto_tdep): Remove.
7026 * nto-tdep.h (struct nto_inferior_data): Add initializers.
7027
f37b313d
TT
70282019-05-08 Tom Tromey <tom@tromey.com>
7029
7030 * ada-lang.c (struct ada_inferior_data): Add initializers.
7031 (ada_inferior_data): Change type.
7032 (ada_inferior_data_cleanup): Remove.
7033 (get_ada_inferior_data, ada_inferior_exit)
7034 (struct ada_pspace_data): Add initializers, destructor.
7035 (ada_pspace_data_handle): Change type.
7036 (get_ada_pspace_data): Update.
7037 (ada_pspace_data_cleanup): Remove.
7038
24699405
TT
70392019-05-08 Tom Tromey <tom@tromey.com>
7040
7041 * coffread.c (struct coff_symfile_info): Add initializers.
7042 (coff_objfile_data_key): Move lower. Change type.
7043 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
7044 Update.
7045 (coff_free_info): Remove.
7046
d4e05d2f
TT
70472019-05-08 Tom Tromey <tom@tromey.com>
7048
7049 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
7050 (fbsd_pspace_data_handle): Move lower. Change type.
7051 (get_fbsd_pspace_data): Update.
7052 (fbsd_pspace_data_cleanup): Remove.
7053 (_initialize_fbsd_tdep): Update.
7054
14ef6690
TT
70552019-05-08 Tom Tromey <tom@tromey.com>
7056
7057 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
7058 (get_ada_tasks_pspace_data): Update.
7059 (ada_tasks_pspace_data_cleanup): Remove.
7060 (_initialize_tasks): Update.
7061 (ada_tasks_inferior_data_handle): Change type.
7062 (get_ada_tasks_inferior_data): Update.
7063 (ada_tasks_inferior_data_cleanup): Remove.
7064 (struct ada_tasks_pspace_data): Add initializers.
7065
814cf43a
TT
70662019-05-08 Tom Tromey <tom@tromey.com>
7067
7068 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
7069 * symfile-debug.c (debug_sym_get_probes): Change type.
7070 * stap-probe.c (handle_stap_probe):
7071 (stap_static_probe_ops::get_probes): Change type.
7072 * probe.h (class static_probe_ops) <get_probes>: Change type.
7073 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
7074 (parse_probes_in_pspace): Update.
7075 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
7076 Update.
7077 (any_static_probe_ops::get_probes): Change type.
7078 * elfread.c (elfread_data): New typedef.
7079 (probe_key): Change type.
7080 (elf_get_probes): Likewise. Update.
7081 (probe_key_free): Remove.
7082 (_initialize_elfread): Update.
7083 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
7084 Change type.
7085 (dtrace_process_dof_probe, dtrace_process_dof)
7086 (dtrace_static_probe_ops::get_probe): Change type.
7087
02dc647e
TT
70882019-05-08 Tom Tromey <tom@tromey.com>
7089
7090 * xcoffread.c (struct xcoff_symfile_info): Rename from
7091 coff_symfile_info. Add initializers.
7092 (xcoff_objfile_data_key): Move lower. Change type.
7093 (XCOFF_DATA): Rewrite.
7094 (xcoff_free_info): Remove.
7095 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
7096 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
7097 (xcoff_initial_scan): Update.
7098
09232438
TT
70992019-05-08 Tom Tromey <tom@tromey.com>
7100
7101 * solib-svr4.c (struct svr4_info): Add initializers and
7102 destructor.
7103 <probes_table>: Now an htab_up.
7104 (solib_svr4_pspace_data): Change type.
7105 (free_probes_table): Simplify.
7106 (~svr4_info): Rename from svr4_pspace_data_cleanup.
7107 (get_svr4_info, probes_table_htab_remove_objfile_probes)
7108 (probes_table_remove_objfile_probes, register_solib_event_probe)
7109 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
7110 (_initialize_svr4_solib): Update.
7111
7b4a314f
TT
71122019-05-08 Tom Tromey <tom@tromey.com>
7113
7114 * remote.c (remote_pspace_data): Change type.
7115 (remote_pspace_data_cleanup): Remove.
7116 (get_remote_exec_file, set_pspace_remote_exec_file)
7117 (_initialize_remote): Update.
7118
51d3063a
TT
71192019-05-08 Tom Tromey <tom@tromey.com>
7120
7121 * breakpoint.c (breakpoint_objfile_key): Change type.
7122 (get_breakpoint_objfile_data): Update.
7123 (free_breakpoint_objfile_data): Remove.
7124 (_initialize_breakpoint): Update.
7125
89fb8848
TT
71262019-05-08 Tom Tromey <tom@tromey.com>
7127
7128 * linux-tdep.c (struct linux_info): Add initializers.
7129 (linux_inferior_data): Move. Change type.
7130 (invalidate_linux_cache_inf): Update.
7131 (linux_inferior_data_cleanup): Remove.
7132 (get_linux_inferior_data, _initialize_linux_tdep): Update.
7133
e9b89e2d
TT
71342019-05-08 Tom Tromey <tom@tromey.com>
7135
7136 * auxv.c (auxv_inferior_data): Move. Change type.
7137 (auxv_inferior_data_cleanup): Remove.
7138 (invalidate_auxv_cache_inf): Rewrite.
7139 (get_auxv_inferior_data, _initialize_auxv): Update.
7140
8c42777c
TT
71412019-05-08 Tom Tromey <tom@tromey.com>
7142
7143 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
7144 (symfile_debug_objfile_data_key): Change type.
7145 (symfile_debug_installed, debug_qf_has_symbols)
7146 (debug_qf_find_last_source_symtab)
7147 (debug_qf_forget_cached_source_info)
7148 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
7149 (debug_qf_print_stats, debug_qf_dump)
7150 (debug_qf_expand_symtabs_for_function)
7151 (debug_qf_expand_all_symtabs)
7152 (debug_qf_expand_symtabs_with_fullname)
7153 (debug_qf_map_matching_symbols)
7154 (debug_qf_expand_symtabs_matching)
7155 (debug_qf_find_pc_sect_compunit_symtab)
7156 (debug_qf_map_symbol_filenames)
7157 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
7158 (debug_sym_new_init, debug_sym_init, debug_sym_read)
7159 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
7160 (debug_sym_read_linetable, debug_sym_relocate): Update.
7161 (symfile_debug_free_objfile): Remove.
7162 (install_symfile_debug_logging, _initialize_symfile_debug):
7163 Update.
7164
5bfd760d
TT
71652019-05-08 Tom Tromey <tom@tromey.com>
7166
7167 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
7168 allocate_on_obstack.
7169 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
7170 (get_dwarf2_per_objfile): Update.
7171 (set_dwarf2_per_objfile): Remove.
7172 (dwarf2_has_info, dwarf2_get_section_info): Update.
7173 (dwarf2_free_objfile): Remove.
7174 (_initialize_dwarf2_read): Update.
7175
e85e19b4
TT
71762019-05-08 Tom Tromey <tom@tromey.com>
7177
7178 * auto-load.c (struct auto_load_pspace_info): Add destructor and
7179 initializers.
7180 <unsupported_script_warning_printed,
7181 script_not_found_warning_printed>: Now bool.
7182 (auto_load_pspace_data): Change type.
7183 (~auto_load_pspace_info): Rename from
7184 auto_load_pspace_data_cleanup.
7185 (get_auto_load_pspace_data, init_loaded_scripts_info)
7186 (clear_section_scripts, maybe_print_unsupported_script_warning)
7187 (maybe_print_script_not_found_warning, _initialize_auto_load):
7188 Update.
7189
f6aa7436
TT
71902019-05-08 Tom Tromey <tom@tromey.com>
7191
7192 * objfiles.c (objfile_pspace_info): Add destructor and
7193 initializers.
7194 (objfiles_pspace_data): Change type.
7195 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
7196 (get_objfile_pspace_data): Update.
7197 (objfiles_bfd_data): Change type.
7198 (get_objfile_bfd_data): Update.
7199 (objfile_bfd_data_free, _initialize_objfiles): Remove.
7200
6ae614f6
TT
72012019-05-08 Tom Tromey <tom@tromey.com>
7202
7203 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
7204 Change type.
7205 (get_catch_syscall_inferior_data): Update.
7206 (catch_syscall_inferior_data_cleanup): Remove.
7207 (_initialize_break_catch_syscall): Update.
7208
6509b8eb
TT
72092019-05-08 Tom Tromey <tom@tromey.com>
7210
7211 * inflow.c (struct terminal_info): Add destructor and
7212 initializers.
7213 (inflow_inferior_data): Change type.
7214 (~terminal_info): Rename from inflow_inferior_data_cleanup.
7215 (get_inflow_inferior_data, inflow_inferior_exit)
7216 (swap_terminal_info, _initialize_inflow): Update.
7217
35632941
TT
72182019-05-08 Tom Tromey <tom@tromey.com>
7219
7220 * target-dcache.c (target_dcache_cleanup): Remove.
7221 (target_dcache_aspace_key): Change type.
7222 (target_dcache_init_p, target_dcache_invalidate)
7223 (target_dcache_get, target_dcache_get_or_init)
7224 (_initialize_target_dcache): Update.
7225 * dcache.h (struct dcache_deleter): New.
7226
3017b94d
TT
72272019-05-08 Tom Tromey <tom@tromey.com>
7228
7229 * symtab.c (struct symbol_cache): Add destructor and
7230 initializers.
7231 (symbol_cache_key): Move. Change type.
7232 (make_symbol_cache, free_symbol_cache): Remove.
7233 (get_symbol_cache): Update.
7234 (symbol_cache_cleanup): Remove.
7235 (ALL_PSPACES, symbol_cache_flush)
7236 (maintenance_print_symbol_cache)
7237 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
7238 Update.
7239
a32ad8c5
TT
72402019-05-08 Tom Tromey <tom@tromey.com>
7241
7242 * symtab.c (struct main_info): Add destructor and initializers.
7243 (main_progspace_key): Move. Change type.
7244 (get_main_info): Update.
7245 (main_info_cleanup): Remove.
7246 (_initialize_symtab): Update.
7247
5f6e90a0
TT
72482019-05-08 Tom Tromey <tom@tromey.com>
7249
7250 * registry.h (DECLARE_REGISTRY): Define the _key class.
7251
1bd0c6e4
AB
72522019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7253
7254 * NEWS: Merge two 'New commands' sections.
7255
2228ef77
XR
72562019-05-08 Joel Brobecker <brobecker@adacore.com>
7257
7258 * ada-valprint.c (ada_val_print_gnat_array): Remove language
7259 parameter and use Ada language definition instead.
7260 (ada_val_print_ptr): Remove unused language parameter.
7261 (ada_val_print_num): Remove language parameter and use Ada language
7262 definition instead.
7263 (ada_val_print_enum, ada_val_print_flt): Remove unused language
7264 parameter.
7265 (ada_val_print_struct_union, ada_val_print_ref): Remove language
7266 parameter and use Ada language definition instead.
7267 (ada_val_print_1): Update all ada_val_print_xxx calls.
7268 Remove language parameter.
7269 (ada_val_print): Update ada_val_print_1 call.
7270
60fcc1c3
TT
72712019-05-08 Tom Tromey <tromey@adacore.com>
7272
7273 * remote.c (remote_hw_watchpoint_limit)
7274 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
7275 Now static.
7276
ed2b7c17
TT
72772019-05-08 Tom Tromey <tromey@adacore.com>
7278
7279 * maint.c (_initialize_maint_cmds): Move initialization code to
7280 remote.c.
7281 (watchdog, show_watchdog): Move to remote.c.
7282 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
7283 "watchdog" static.
7284 (_initialize_remote): Move initialization code from maint.c.
7285 * defs.h (watchdog): Don't declare.
7286
b0be6c91
TT
72872019-05-08 Tom Tromey <tromey@adacore.com>
7288
7289 * tui/tui-interp.c: Include main.h.
7290 * interps.c: Include main.h.
7291 * main.h (interpreter_p): Declare.
7292 * defs.h (interpreter_p): Don't declare.
7293
587ee17b
TT
72942019-05-08 Tom Tromey <tromey@adacore.com>
7295
7296 * dwarf2loc.c: Include dwarf2read.h.
7297 * defs.h (read_unsigned_leb128): Don't declare.
7298 * dwarf2read.h (read_unsigned_leb128): Declare.
7299
ca1df239
TT
73002019-05-08 Tom Tromey <tromey@adacore.com>
7301
7302 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
7303 method.
7304
99f20f08
TT
73052019-05-08 Tom Tromey <tromey@adacore.com>
7306
7307 * utils.c (fputs_maybe_filtered): Reset style after paging, even
7308 when no wrap column is set.
7309
80e55b13
TT
73102019-05-08 Tom Tromey <tromey@adacore.com>
7311
7312 * c-lang.c (c_get_string): Handle non-C-style arrays.
7313
9d3421af
TT
73142019-05-08 Tom Tromey <tromey@adacore.com>
7315
7316 * typeprint.c (print_offset_data::update): Print the bit offset,
7317 not the number of bits remaining.
7318
844333e2
TT
73192019-05-08 Tom Tromey <tromey@adacore.com>
7320
7321 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
7322 padding at end of comment.
7323
988915ee
TT
73242019-05-08 Tom Tromey <tromey@adacore.com>
7325
7326 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
7327 Compare main types.
7328
26bfd823
TT
73292019-05-06 Tom Tromey <tom@tromey.com>
7330
7331 * common/scoped_mmap.c: Include common-defs.h.
7332 * common/scoped_mmap.h: Don't include config.h.
7333
89055eaa
TT
73342019-05-04 Tom Tromey <tom@tromey.com>
7335
7336 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
7337 (struct aarch64_call_info): Add initializers.
7338 <si>: Now a std::vector.
7339 (pass_on_stack, aarch64_push_dummy_call): Update.
7340
5da01df5
TT
73412019-05-04 Simon Marchi <simon.marchi@efficios.com>
7342 Tom Tromey <tom@tromey.com>
7343
7344 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
7345 (ppc_threads): Now a std::vector. Now static.
7346 (hwdebug_find_thread_points_by_tid)
7347 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
7348 Update.
7349
fbdf05a1
TT
73502019-05-04 Tom Tromey <tom@tromey.com>
7351
7352 * arc-tdep.c (arc_tdesc_init): Return bool.
7353
06d16ec9
TT
73542019-05-04 Tom Tromey <tom@tromey.com>
7355
7356 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
7357 Use gdb_assert_not_reached.
7358
9c056022
TT
73592019-05-04 Tom Tromey <tom@tromey.com>
7360
7361 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
7362 "false".
7363
fa9c2a59
TT
73642019-05-04 Tom Tromey <tom@tromey.com>
7365
7366 * arc-tdep.c (arc_tdesc_init): Use bool.
7367
e2eb806a
TT
73682019-05-04 Tom Tromey <tom@tromey.com>
7369
7370 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
7371
6fe87677
TT
73722019-05-04 Tom Tromey <tom@tromey.com>
7373
7374 * cli/cli-cmds.c (valid_command_p): Return bool.
7375
7f008c9e
TT
73762019-05-04 Tom Tromey <tom@tromey.com>
7377
7378 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
7379 * command.h (valid_user_defined_cmd_name_p): Channge return type.
7380
b6484282
RT
73812019-05-04 Raul Tambre <raul@tambre.ee>
7382
7383 * python/lib/gdb/prompt.py (_ExtendedPrompt)
7384 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
7385 operator for comparison.
7386
af97b416
TT
73872019-05-04 Tom Tromey <tom@tromey.com>
7388
7389 * psymtab.c (psymbol_name_matches, match_partial_symbol)
7390 (lookup_partial_symbol, print_partial_symbols)
7391 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
7392 (psymbol_compare): Update.
7393 (add_psymbol_to_bcache): Clear the entire psymbol.
7394 (maintenance_check_psymtabs): Update.
7395 * psympriv.h (struct partial_symbol): Don't derive from
7396 general_symbol_info.
7397 <obj_section, unrelocated_address, address,
7398 set_unrelocated_address>: Update.
7399 <ginfo>: New member.
7400 * dwarf-index-write.c (write_psymbols, debug_names::insert)
7401 (debug_names::write_psymbols): Update.
7402
9d6d4be8
TV
74032019-05-04 Tom de Vries <tdevries@suse.de>
7404
7405 * contrib/cc-with-tweaks.sh: Support -n arg.
7406
66452beb
PW
74072019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7408
7409 * corelow.c (core_target::detach): Ensure frame cache and
7410 register caches are cleared.
7411 inferior.c (exit_inferior_1): Likewise.
7412
bde09ab7
TT
74132019-05-03 Sandra Loosemore <sandra@codesourcery.com>
7414 Tom Tromey <tom@tromey.com>
7415
7416 * dictionary.c (collate_pending_symbols_by_language): Remove
7417 "struct" from foreach.
7418 * symtab.c (lookup_global_symbol_from_objfile)
7419 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
7420 foreach.
7421 * ser-tcp.c (net_open): Remove "struct" from foreach.
7422 * objfiles.c (objfile_relocate, objfile_rebase)
7423 (objfile_has_symbols): Remove "struct" from foreach.
7424 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
7425 from foreach.
7426 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
7427 foreach.
7428 * darwin-nat.c (thread_info_from_private_thread_info): Remove
7429 "struct" from foreach.
7430 * ada-lang.c (create_excep_cond_exprs)
7431 (ada_exception_catchpoint_cond_string): Remove "struct" from
7432 foreach.
7433
222a8d25
TT
74342019-05-03 Tom Tromey <tromey@adacore.com>
7435
7436 * ada-exp.y (convert_char_literal): Check suffix of each
7437 enumerator.
7438
fcd60b84
DP
74392019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
7440
7441 PR ada/21406:
7442 * ada-exp.y (yywrap): Don't define.
7443 * ada-lex.l (%option): Add noyywrap
7444 (yywrap): Remove.
7445
5f2459c2
EZ
74462019-05-03 Eli Zaretskii <eliz@gnu.org>
7447
353ea2d1
EZ
7448 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
7449 _WIN32_WINNT to the XP level, unless already defined to a higher
7450 level.
7451
7452 * unittests/parse-connection-spec-selftests.c:
7453 * ser-tcp.c:
7454 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
7455 override.
7456
5f2459c2
EZ
7457 * symfile.c (find_separate_debug_file): Remove colon from the
7458 drive spec of DOS/Windows file names of the target, so that the
7459 file name produced from DEBUGDIR and the target's directory will
7460 be valid on DOS/Windows systems.
7461
80062eb9
AB
74622019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
7463
7464 * rust-lang.c (val_print_struct): Handle printing structures
7465 containing strings.
7466
b8c05e85
TT
74672019-05-02 Tom Tromey <tromey@adacore.com>
7468
7469 * valarith.c (_initialize_valarith): Remove.
7470
4504bbde
TT
74712019-05-01 Tom Tromey <tromey@adacore.com>
7472
7473 * ada-lang.c (ada_value_primitive_field): Treat more fields as
7474 bitfields.
7475
d48e62f4
TT
74762019-05-01 Tom Tromey <tromey@adacore.com>
7477
7478 * ada-lang.c (ada_value_assign): Correctly compute starting offset
7479 for big-endian copies.
7480
15f18d14
AT
74812019-04-30 Ali Tamur <tamur@google.com>
7482 * gdb/dwarf2read.c (read_3_bytes): New declaration.
7483 (read_attribute_value): Added DW_FORM_strx1-4 cases.
7484 (read_3_bytes): New function.
7485
ab4ee614
JB
74862019-04-30 Joel Brobecker <brobecker@adacore.com>
7487
7488 * windows-nat.c (main_thread_id): Delete.
7489 (handle_output_debug_string): Replace main_thread_id by
7490 current_event.dwThreadId.
7491 (fake_create_process): Likewise.
7492 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
7493 Do not set main_thread_id.
7494 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
7495 current_event.dwThreadId.
7496 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
7497
8ed5b76e
JB
74982019-04-30 Joel Brobecker <brobecker@adacore.com>
7499
7500 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
7501 Use current_event.dwThreadId instead of main_thread_id.
7502
2ff0a947
TT
75032019-04-30 Tom Tromey <tromey@adacore.com>
7504
7505 * ada-lang.c (ada_lookup_simple_minsyms): New function.
7506 (create_excep_cond_exprs): Iterate over program spaces.
7507 (ada_exception_catchpoint_cond_string): Examine all minimal
7508 symbols for exception types.
7509
a776957c
TT
75102019-04-30 Tom Tromey <tromey@adacore.com>
7511
7512 PR c++/24470:
7513 * dwarf2read.c (process_structure_scope): Handle case where type
7514 has template parameters but no symbol was created.
7515
bc68014d
AB
75162019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7517 Chris January <chris.january@arm.com>
7518
7519 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
7520 qualifier.
7521 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
7522
f1fdc960
AB
75232019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7524
7525 * f-typeprint.c (f_print_type): Update rules for printing
7526 whitespace.
7527 (f_type_print_varspec_suffix): Likewise.
7528
bf7a4de1
AB
75292019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7530 Chris January <chris.january@arm.com>
7531
7532 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
7533 function arguments.
7534
bbe75b9d
AB
75352019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7536
7537 * f-lang.c (build_fortran_types): Change name of void type to
7538 lower case.
7539 * f-typeprint.c (f_type_print_base): Print the name of the void
7540 type, rather than a fixed string.
7541 * f-valprint.c (f_decorations): Use lower case void string.
7542
1db455a7
AB
75432019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7544 Chris January <chris.january@arm.com>
7545
7546 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
7547 types for Fortran.
7548
b6d03bb2
AB
75492019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7550 Chris January <chris.january@arm.com>
7551 David Lecomber <david.lecomber@arm.com>
7552
7553 * f-exp.y (BINOP_INTRINSIC): New token.
7554 (exp): New parser rule handling BINOP_INTRINSIC.
7555 (f77_keywords): Add new builtin procedures.
7556 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
7557 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7558 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
7559 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7560 (print_unop_subexp_f): New function.
7561 (print_binop_subexp_f): New function.
7562 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7563 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7564 (dump_subexp_body_f): Likewise.
7565 (operator_check_f): Likewise.
7566 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7567 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
7568
83228e93
AB
75692019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7570
7571 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
7572 UNOP_KIND.
7573 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
7574 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
7575 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
7576 (operator_length_f): New fuction.
7577 (print_subexp_f): New function.
7578 (op_name_f): New function.
7579 (dump_subexp_body_f): New function.
7580 (operator_check_f): New function.
7581 (exp_descriptor_f): Replace standard expression handling functions
7582 with new functions.
7583 * gdb/fortran-operator.def: New file.
7584 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
7585 * gdb/std-operator.def: Remove UNOP_KIND.
7586
6fdcd7cc
AB
75872019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7588
7589 * std-operator.def: Remove unbalanced, stray double quote
7590 character.
7591
2e62ab40
AB
75922019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7593 Chris January <chris.january@arm.com>
7594 Daniel Everett <daniel.everett@arm.com>
7595 Nick Forrington <nick.forrington@arm.com>
7596 Richard Bunt <richard.bunt@arm.com>
7597
7598 * cp-valprint.c (cp_print_value_fields): Allow an additional level
7599 of depth when printing anonymous structs or unions.
7600 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
7601 Don't print either the top-level value, or the children if the
7602 max-depth is exceeded.
7603 (ppscm_print_children): When printing the key of a map, allow one
7604 extra level of depth.
7605 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
7606 print either the top-level value, or the children if the max-depth
7607 is exceeded.
7608 (print_children): When printing the key of a map, allow one extra
7609 level of depth.
7610 * python/py-value.c (valpy_format_string): Add max_depth keyword.
7611 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
7612 (user_print_options): Initialise max_depth field.
7613 (val_print_scalar_or_string_type_p): New function.
7614 (val_print): Check to see if the max depth has been reached.
7615 (val_print_check_max_depth): Define new function.
7616 (show_print_max_depth): New function.
7617 (_initialize_valprint): Add 'print max-depth' option.
7618 * valprint.h (struct value_print_options) <max_depth>: New field.
7619 (val_print_check_max_depth): Declare new function.
7620 * NEWS: Document new feature.
7621
4be290b2
AB
76222019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7623
7624 * ada-lang.c (ada_language_defn): Initialise new field.
7625 * c-lang.c (c_is_string_type_p): New function.
7626 (c_language_defn): Initialise new field.
7627 (cplus_language_defn): Initialise new field.
7628 (asm_language_defn): Initialise new field.
7629 (minimal_language_defn): Initialise new field.
7630 * c-lang.h (c_is_string_type_p): Declare new function.
7631 * d-lang.c (d_language_defn): Initialise new field.
7632 * f-lang.c (f_is_string_type_p): New function.
7633 (f_language_defn): Initialise new field.
7634 * go-lang.c (go_is_string_type_p): New function.
7635 (go_language_defn): Initialise new field.
7636 * language.c (default_is_string_type_p): New function.
7637 (unknown_language_defn): Initialise new field.
7638 (auto_language_defn): Initialise new field.
7639 * language.h (struct language_defn) <la_is_string_type_p>: New
7640 member variable.
7641 (default_is_string_type_p): Declare new function.
7642 * m2-lang.c (m2_language_defn): Initialise new field.
7643 * objc-lang.c (objc_language_defn): Initialise new field.
7644 * opencl-lang.c (opencl_language_defn): Initialise new field.
7645 * p-lang.c (pascal_is_string_type_p): New function.
7646 (pascal_language_defn): Initialise new field.
7647 * rust-lang.c (rust_is_string_type_p): New function.
7648 (rust_language_defn): Initialise new field.
7649
721b08c6
AB
76502019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7651
7652 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
7653 New field.
7654 * ada-lang.c (ada_language_defn): Initialise new field.
7655 * c-lang.c (c_language_defn): Likewise.
7656 (cplus_language_defn): Likewise.
7657 (asm_language_defn): Likewise.
7658 (minimal_language_defn): Likewise.
7659 * d-lang.c (d_language_defn): Likewise.
7660 * f-lang.c (f_language_defn): Likewise.
7661 * go-lang.c (go_language_defn): Likewise.
7662 * language.c (unknown_language_defn): Likewise.
7663 (auto_language_defn): Likewise.
7664 * m2-lang.c (m2_language_defn): Likewise.
7665 * objc-lang.c (objc_language_defn): Likewise.
7666 * opencl-lang.c (opencl_language_defn): Likewise.
7667 * p-lang.c (pascal_language_defn): Likewise.
7668 * rust-lang.c (rust_language_defn): Likewise.
7669
fc913e53
AB
76702019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7671
7672 * ada-lang.c (ada_is_character_type): Change return type to bool.
7673 (ada_is_string_type): Likewise.
7674 * ada-lang.h (ada_is_character_type): Update declaration
7675 (ada_is_string_type): Likewise.
7676
fa731fa0
PW
76772019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7678
7679 Support style in 'frame|thread apply'
7680
7681 * gdbcmd.h (execute_command_to_string): New term_out parameter.
7682 * record.c (record_start, record_stop): Update callers of
7683 execute_command_to_string with false.
7684 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
7685 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
7686 methods.
7687 (class string_file): New constructor with term_out parameter.
7688 Override methods term_out and can_emit_style_escape. New member
7689 term_out.
7690 (class stdio_file): Override can_emit_style_escape.
7691 (class tee_file): Override term_out and can_emit_style_escape.
7692 * utils.h (can_emit_style_escape): Remove.
7693 * utils.c (can_emit_style_escape): Likewise.
7694 Update all callers of can_emit_style_escape (SOMESTREAM) to
7695 SOMESTREAM->can_emit_style_escape.
7696 * source-cache.c (source_cache::get_source_lines): Likewise.
7697 * stack.c (frame_apply_command_count): Call execute_command_to_string
7698 passing the term_out characteristic of the current gdb_stdout.
7699 * thread.c (thr_try_catch_cmd): Likewise.
7700 * top.c (execute_command_to_string): pass term_out parameter
7701 to construct the string_file for the command output.
7702 * ui-file.c (term_cli_styling): New function (most code moved
7703 from utils.c can_emit_style_escape).
7704 (string_file::string_file, string_file::can_emit_style_escape,
7705 stdio_file::can_emit_style_escape, tee_file::term_out,
7706 tee_file::can_emit_style_escape): New functions.
7707
136afab8
PW
77082019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7709
7710 * NEWS: Mention the new set|show may-call-functions.
7711 * infcall.c (may_call_functions_p): New variable.
7712 (show_may_call_functions_p): New function.
7713 (call_function_by_hand_dummy): Throws an error if not
7714 may-call-functions.
7715 (_initialize_infcall): Call add_setshow_boolean_cmd for
7716 may-call-functions.
7717
725cbb63
KS
77182019-04-25 Keith Seitz <keiths@redhat.com>
7719
7720 PR c++/24367
7721 * cp-support.c (inspect_type): Don't attempt substitutions
7722 of symbol with the same name.
7723
3d1cbb78
TT
77242019-04-25 Tom Tromey <tromey@adacore.com>
7725
7726 PR gdb/24475:
7727 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
7728 static.
7729
94aeb44b
TT
77302019-04-25 Tom Tromey <tromey@adacore.com>
7731
7732 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
7733 rvalue reference.
7734 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
7735 (gdb_xml_parser::parse): Use std::move.
7736 * python/python-internal.h (gdbpy_convert_exception): Take a const
7737 reference.
7738 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
7739 std::move.
7740 * python/py-utils.c (gdbpy_convert_exception): Take a const
7741 reference.
7742 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7743 Use std::move.
7744 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7745 Use std::move.
7746 * mi/mi-main.c (mi_print_exception): Take a const reference.
7747 * main.c (handle_command_errors): Take a const reference.
7748 * linespec.c (parse_linespec): Use std::move.
7749 * infcall.c (run_inferior_call): Use std::move.
7750 (call_function_by_hand_dummy): Use std::move.
7751 * exec.c (try_open_exec_file): Use std::move.
7752 * exceptions.h (exception_print, exception_fprintf)
7753 (exception_print_same): Update.
7754 * exceptions.c (print_exception, exception_print)
7755 (exception_fprintf, exception_print_same): Change parameters to
7756 const reference.
7757 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
7758 * common/new-op.c: Use std::move.
7759 * common/common-exceptions.h (struct gdb_exception): Add move
7760 constructor.
7761 (struct gdb_exception_error, struct gdb_exception_quit, struct
7762 gdb_quit_bad_alloc): Change constructor to move constructor.
7763 (throw_exception): Change parameter to rvalue reference.
7764 * common/common-exceptions.c (throw_exception): Take rvalue
7765 reference.
7766 * cli/cli-interp.c (safe_execute_command): Use std::move.
7767 * breakpoint.c (insert_bp_location, location_to_sals): Use
7768 std::move.
7769
680d7fd5
TT
77702019-04-25 Tom Tromey <tromey@adacore.com>
7771
7772 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
7773 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
7774 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
7775 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
7776 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
7777 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
7778 guile/scm-value.c: Use unpack.
7779 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
7780 gdbscm_gdb_exception.
7781 (gdbscm_throw_gdb_exception): Likewise.
7782 (struct gdbscm_gdb_exception): New.
7783 (unpack): New function.
7784 (gdbscm_wrap): Use unpack.
7785
c6fdd8b2
TT
77862019-04-25 Tom Tromey <tromey@adacore.com>
7787
7788 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7789 (gdb_rl_callback_handler): Use std::move.
7790 * common/common-exceptions.h (struct gdb_exception): Add move
7791 assignment operator.
7792 (throw_exception_sjlj): Change "exception" to const reference.
7793 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
7794 (throw_exception_sjlj): Change "exception" to const reference.
7795
cc06b668
TT
77962019-04-25 Tom Tromey <tromey@adacore.com>
7797
7798 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
7799 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
7800 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7801 Update.
7802 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7803 Update.
7804 * mi/mi-interp.c (mi_interp::exec): Update.
7805 * linespec.c (parse_linespec): Update.
7806 * infcall.c (run_inferior_call): Update.
7807 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
7808 * guile/scm-symbol.c (gdbscm_lookup_symbol)
7809 (gdbscm_lookup_global_symbol): Update.
7810 * guile/scm-param.c (gdbscm_parameter_value): Update.
7811 * guile/scm-frame.c (gdbscm_frame_read_register)
7812 (gdbscm_frame_read_var): Update.
7813 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7814 * exec.c (try_open_exec_file): Update.
7815 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7816 (gdb_rl_callback_handler): Update.
7817 * common/common-exceptions.h (exception_none): Don't declare.
7818 * common/common-exceptions.c (exception_none): Don't define.
7819 (struct catcher) <exception>: Update.
7820 * cli/cli-interp.c (safe_execute_command): Update.
7821 * breakpoint.c (insert_bp_location, location_to_sals): Update.
7822
cf532bd1
AT
78232019-04-25 Ali Tamur <tamur@google.com>
7824
7825 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
7826 (read_attribute_value): Likewise.
7827 (dwarf2_read_addr_index): Update comment.
7828 (read_str_index): Add DW_FORM_strx.
7829 (dwarf2_string_attr): Likewise.
7830 (dwarf2_const_value_attr): Likewise.
7831 (dump_die_shallow): Likewise.
7832 (dwarf2_fetch_constant_bytes): Likewise.
7833 (skip_form_bytes): Likewise.
7834 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
7835
82433e3e
SDJ
78362019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7837
7838 PR corefiles/11608
7839 PR corefiles/18187
7840 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
7841 OFFSET. Verify if current mapping contains an ELF header.
7842 (linux_find_memory_regions_full): Adjust call to
7843 dump_mapping_p.
7844
723adb65
SL
78452019-04-25 Sandra Loosemore <sandra@codesourcery.com>
7846 Kang Li <kanglictf@gmail.com>
7847
7848 PR gdb/21600
7849
7850 * dwarf2-frame.c (read_initial_length): Be consistent about using
7851 unsigned representation of length.
7852 (decode_frame_entry_1): Likewise. Check for wraparound of
7853 end pointer as well as buffer overflow.
7854
596179f7
SDJ
78552019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7856
7857 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
7858 "vq".
7859
a59240a4
TT
78602019-04-24 Tom Tromey <tromey@adacore.com>
7861
7862 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
7863
f872fdbb
AB
78642019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7865
7866 * s12z-tdep.c (s12z_unwind_pc): Delete.
7867 (s12z_unwind_sp): Delete.
7868 (s12z_gdbarch_init): Don't register deleted functions with
7869 gdbarch.
7870
b614e6f3
AB
78712019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7872
7873 * rl78-tdep.c (rl78_unwind_sp): Delete.
7874 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
7875
14faed38
AB
78762019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7877
7878 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
7879 (xstormy16_unwind_pc): Delete.
7880 (xstormy16_dummy_id): Delete.
7881 (xstormy16_gdbarch_init): Don't register deleted functions with
7882 gdbarch.
7883
541aad8a
AB
78842019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7885
7886 * vax-tdep.c (vax_unwind_pc): Delete.
7887 (vax_gdbarch_init): Don't register deleted function with gdbarch.
7888
29222070
AB
78892019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7890
7891 * v850-tdep.c (v850_unwind_sp): Delete.
7892 (v850_unwind_pc): Delete.
7893 (v850_dummy_id): Delete.
7894 (v850_gdbarch_init): Don't register deleted functions with
7895 gdbarch.
7896
0f534d76
AB
78972019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7898
7899 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
7900 (tilegx_unwind_pc): Delete.
7901 (tilegx_unwind_dummy_id): Delete.
7902 (tilegx_gdbarch_init): Don't register deleted functions with
7903 gdbarch.
7904
1ba7b7f9
AB
79052019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7906
7907 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
7908 (tic6x_dummy_id): Delete.
7909 (tic6x_gdbarch_init): Don't register deleted functions with
7910 gdbarch.
7911
d31f262c
AB
79122019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7913
7914 * sparc-tdep.c (sparc_unwind_pc): Delete.
7915 (sparc32_gdbarch_init): Don't register deleted function with
7916 gdbarch.
7917
6d14d64d
AB
79182019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7919
7920 * sh-tdep.c (sh_unwind_sp): Delete.
7921 (sh_unwind_pc): Delete.
7922 (sh_dummy_id): Delete.
7923 (sh_gdbarch_init): Don't register deleted functions with
7924 gdbarch.
7925
a40dde9d
AB
79262019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7927
7928 * score-tdep.c (score_unwind_sp): Delete.
7929 (score_unwind_pc): Delete.
7930 (score_dummy_id): Delete.
7931 (score_gdbarch_init): Don't register deleted functions with
7932 gdbarch.
7933
47c47d69
AB
79342019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7935
7936 * rx-tdep.c (rx_unwind_pc): Delete.
7937 (rx_unwind_sp): Delete.
7938 (rx_dummy_id): Delete.
7939 (rx_gdbarch_init): Don't register deleted functions with
7940 gdbarch. Update comment.
7941
833a4480
AB
79422019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7943
7944 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
7945 (rs6000_dummy_id): Delete.
7946 (rs6000_gdbarch_init): Don't register deleted functions with
7947 gdbarch.
7948
3f2cef49
AB
79492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7950
7951 * or1k-tdep.c (or1k_dummy_id): Delete.
7952 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
7953
96acf884
AB
79542019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7955
7956 * nios2-tdep.c (nios2_dummy_id): Delete.
7957 (nios2_unwind_sp): Delete.
7958 (nios2_gdbarch_init): Don't register deleted functions with
7959 gdbarch.
7960
ca0ab0aa
AB
79612019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7962
7963 * nds32-tdep.c (nds32_dummy_id): Delete.
7964 (nds32_unwind_pc): Delete.
7965 (nds32_unwind_sp): Delete.
7966 (nds32_gdbarch_init): Don't register deleted functions with
7967 gdbarch.
7968
c8259044
AB
79692019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7970
7971 * msp430-tdep.c (msp430_unwind_pc): Delete.
7972 (msp430_unwind_sp): Delete.
7973 (msp430_dummy_id): Delete.
7974 (msp430_gdbarch_init): Don't register deleted functions with
7975 gdbarch.
7976
27f113c8
AB
79772019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7978
7979 * moxie-tdep.c (moxie_unwind_sp): Delete.
7980 (moxie_unwind_pc): Delete.
7981 (moxie_dummy_id): Delete.
7982 (moxie_gdbarch_init): Don't register deleted functions with
7983 gdbarch.
7984
aee6c3cd
AB
79852019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7986
7987 * mn10300-tdep.c (mn10300_dummy_id): Delete.
7988 (mn10300_unwind_pc): Delete.
7989 (mn10300_unwind_sp): Delete.
7990 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
7991 mn10300_unwind_sp.
7992 (mn10300_frame_unwind_init): Don't register deleted functions with
7993 gdbarch.
7994
8e2b5aea
AB
79952019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7996
7997 * mep-tdep.c (mep_unwind_pc): Delete.
7998 (mep_unwind_sp): Delete.
7999 (mep_dummy_id): Delete.
8000 (mep_gdbarch_init): Don't register deleted functions with
8001 gdbarch.
8002
43cf3ede
AB
80032019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8004
8005 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
8006 (m68hc11_unwind_sp): Delete.
8007 (m68hc11_gdbarch_init): Don't register deleted functions with
8008 gdbarch.
8009
5e79b7bb
AB
80102019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8011
8012 * m32r-tdep.c (m32r_unwind_sp): Delete.
8013 (m32r_unwind_pc): Delete.
8014 (m32r_dummy_id): Delete.
8015 (m32r_gdbarch_init): Don't register deleted functions with
8016 gdbarch.
8017
89b268d8
AB
80182019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8019
8020 * m32c-tdep.c (m32c_unwind_pc): Delete.
8021 (m32c_unwind_sp): Delete.
8022 (m32c_dummy_id): Delete.
8023 (m32c_gdbarch_init): Don't register deleted functions with
8024 gdbarch.
8025
946c28d2
AB
80262019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8027
8028 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
8029 (lm32_unwind_pc): Delete.
8030 (lm32_dummy_id): Delete.
8031 (lm32_gdbarch_init): Don't register deleted functions with
8032 gdbarch.
8033
bf12844a
AB
80342019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8035
8036 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
8037 (iq2000_unwind_pc): Delete.
8038 (iq2000_dummy_id): Delete.
8039 (iq2000_gdbarch_init): Don't register deleted functions with
8040 gdbarch.
8041
ecbc06d2
AB
80422019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8043
8044 * nds32-tdep.c (nds32_type_align): Delete.
8045 (nds32_push_dummy_call): Use type_align instead.
8046
030197b4
AB
80472019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8048
8049 * arm-tdep.c (arm_type_align): Only handle vector override case.
8050 (arm_push_dummy_call): Use type_align.
8051 (arm_gdbarch_init): Register arm_type_align gdbarch function.
8052
b907456c
AB
80532019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8054
8055 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
8056 case.
8057 (pass_on_stack): Use type_align.
8058 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
8059 function.
8060
9e97ba43
TT
80612019-04-23 Tom Tromey <tromey@adacore.com>
8062
8063 * dwarf2read.c (line_header::file_name_at): Remove unused
8064 overload.
8065
6892f601
TV
80662019-04-23 Tom de Vries <tdevries@suse.de>
8067
8068 PR gdb/24438
8069 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
8070 invocation.
8071
336d760d
AT
8072
80732019-03-27 Ali Tamur <tamur@google.com>
8074
8075 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
8076 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
8077 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
8078 (dwarf_expr_context::get_addr_index): Likewise
8079 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
8080 (symbol_needs_eval_context::get_addr_index): Likewise
8081 (disassemble_dwarf_expression): Add DW_OP_addrx
8082 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
8083 (read_cutu_die_from_dwo): Update comment
8084 (skip_one_die): Add DW_FORM_addrx
8085 (read_attribute_value): Likewise
8086 (var_decode_location): Add DW_OP_addrx
8087 (dwarf2_const_value_attr): Add DW_FORM_addrx
8088 (dump_die_shallow): Likewise
8089 (dwarf2_fetch_constant_bytes): Likewise
8090 (decode_locdesc): Add DW_OP_addrx
8091 (skip_form_bytes): Add DW_FORM_addrx
8092
ad9d13f8
AT
80932019-04-22 Ali Tamur <tamur@google.com>
8094
8095 * MAINTAINERS (Write After Approval): Add self.
8096
d70cc3ba
SM
80972019-04-22 Simon Marchi <simon.marchi@efficios.com>
8098
8099 * solib-svr4.c (get_svr4_info): Add pspace parameter.
8100 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
8101 (open_symbol_file_object): Likewise.
8102 (svr4_default_sos): Add info parameter.
8103 (svr4_read_so_list): Likewise.
8104 (svr4_current_sos_direct): Adjust functions calls to pass down
8105 info.
8106 (svr4_current_sos_1): Add info parameter.
8107 (svr4_current_sos): Call get_svr4_info, pass info down to
8108 svr4_current_sos_1.
8109 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
8110 get_svr4_info.
8111 (svr4_in_dynsym_resolve_code): Pass current_program_space to
8112 get_svr4_info.
8113 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
8114 to get_svr4_info.
8115 (probes_table_remove_objfile_probes): Likewise.
8116 (register_solib_event_probe): Add info parameter.
8117 (solist_update_incremental): Pass info parameter down to
8118 svr4_read_so_list.
8119 (disable_probes_interface): Add info parameter.
8120 (svr4_handle_solib_event): Pass current_program_space to
8121 get_svr4_info. Adjust disable_probes_interface cleanup.
8122 (svr4_create_probe_breakpoints): Add info parameter, pass it
8123 down to register_solib_event_probe.
8124 (svr4_create_solib_event_breakpoints): Add info parameter,
8125 pass it down to svr4_create_probe_breakpoints.
8126 (enable_break): Pass info down to
8127 svr4_create_solib_event_breakpoints.
8128 (svr4_solib_create_inferior_hook): Pass current_program_space to
8129 get_svr4_info.
8130 (svr4_clear_solib): Likewise.
8131
7905fc35
PA
81322019-04-22 Pedro Alves <palves@redhat.com>
8133
8134 * solib-svr4.c (svr4_free_objfile_observer): New.
8135 (probe_and_action::objfile): New field.
8136 (probes_table_htab_remove_objfile_probes)
8137 (probes_table_remove_objfile_probes): New functions.
8138 (register_solib_event_probe): Add 'objfile' parameter. Store it
8139 in the new probe_and_action. Don't store the probe in 'lookup'.
8140 (svr4_create_probe_breakpoints): Pass objfile to
8141 register_solib_event_probe.
8142 (_initialize_svr4_solib): Register a free_objfile observer.
8143
fb881986
TT
81442019-04-19 Tom Tromey <tom@tromey.com>
8145
8146 * common/queue.h: Remove.
8147
8732db6c
TT
81482019-04-19 Tom Tromey <tom@tromey.com>
8149
8150 * event-loop.c: Don't include "common/queue.h".
8151
97dfbadd
TT
81522019-04-19 Tom Tromey <tom@tromey.com>
8153
8154 * remote.c (remote_target): Use delete.
8155 * remote-notif.h: Include <list>, not "common/queue.h".
8156 (notif_client_p): Remove typedef.
8157 (remote_notif_state): Add constructor, destructor, initializer.
8158 <notif_queue>: Now a std::list.
8159 (remote_notif_state_xfree): Don't declare.
8160 * remote-notif.c (remote_notif_process, handle_notification)
8161 (remote_notif_state_allocate): Update.
8162 (~remote_notif_state): Rename from remote_notif_state_xfree.
8163
cf250e36
TT
81642019-04-19 Tom Tromey <tom@tromey.com>
8165
8166 * symfile.c (reread_symbols): Update.
8167 * objfiles.c (objfile_register_static_link)
8168 (objfile_lookup_static_link): Update
8169 (~objfile) Don't delete static_links.
8170 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
8171
61f4b350
TT
81722019-04-19 Tom Tromey <tom@tromey.com>
8173
8174 * type-stack.h (struct type_stack) <insert>: Constify string.
8175 * type-stack.c (type_stack::insert): Constify string.
8176 * gdbtypes.h (lookup_template_type): Update.
8177 (address_space_name_to_int): Update.
8178 * gdbtypes.c (address_space_name_to_int): Make space_identifier
8179 const.
8180 (lookup_template_type): Make name const.
8181 * c-exp.y: Update rules.
8182 (lex_one_token, classify_name, classify_inner_name)
8183 (c_print_token): Update.
8184 * p-exp.y: Update rules.
8185 (yylex): Update.
8186 * f-exp.y: Update rules.
8187 (yylex): Update.
8188 * d-exp.y: Update rules.
8189 (lex_one_token, classify_name, classify_inner_name): Update.
8190 * parse.c (write_dollar_variable, copy_name): Return std::string.
8191 * parser-defs.h (copy_name): Change return type.
8192 * m2-exp.y: Update rules.
8193 (yylex): Update.
8194 * go-exp.y (lex_one_token): Update.
8195 Update rules.
8196 (classify_unsafe_function, classify_packaged_name)
8197 (classify_name, yylex): Update.
8198
189b8c2e
ST
81992019-04-19 Sergei Trofimovich <siarheit@google.com>
8200
8201 * configure.ac: add --enable-source-highlight switch.
8202 * configure: Regenerate.
8203 * top.c (print_gdb_version): plumb --enable-source-highlight
8204 status to "show configuration".
8205
8ecb59f8
TT
82062019-04-19 Tom Tromey <tromey@adacore.com>
8207
8208 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
8209 Check ADA_TYPE_P.
8210 (empty_record, ada_template_to_fixed_record_type_1)
8211 (template_to_static_fixed_type)
8212 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
8213 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
8214 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
8215 macros.
8216
62160ec9
TT
82172019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
8218
8219 PR symtab/24423:
8220 * source.c (print_source_lines_base): Advance "iter" when a
8221 control character is seen.
8222
f2ae8bc8
PW
82232019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8224
8225 * inferior.h (struct infcall_suspend_state_deleter):
8226 Catch exception in destructor to avoid crash.
8227
d563b953
PW
82282019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8229
8230 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
8231 close to the add_com "shell".
8232
dc34c897
TT
82332019-04-18 Tom Tromey <tromey@adacore.com>
8234
8235 * process-stratum-target.h (class process_stratum_target)
8236 <stratum>: Add "final".
8237
a12e5744
TT
82382019-04-17 Tom Tromey <tromey@adacore.com>
8239
8240 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
8241 against nullptr before use.
8242
a7e559cc
AH
82432019-04-17 Alan Hayward <alan.hayward@arm.com>
8244
8245 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
8246
c01660c6
AB
82472019-04-17 Jim Wilson <jimw@sifive.com>
8248 Andrew Burgess <andrew.burgess@embecosm.com>
8249
8250 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
8251 code read might fail, assume 4-byte breakpoint in that case.
8252
4aa866af
LS
82532019-04-15 Leszek Swirski <leszeks@google.com>
8254
8255 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
8256 rather than a hand-rolled POD check when checking for forced MEMORY
8257 classification.
8258
48574d91
AH
82592019-04-15 Alan Hayward <alan.hayward@arm.com>
8260
8261 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
8262 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
8263 function.
8264 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
8265 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
8266 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
8267 declaration.
8268
4da037ef
AH
82692019-04-15 Alan Hayward <alan.hayward@arm.com>
8270
8271 * aarch64-linux-nat.c
8272 (aarch64_linux_nat_target::thread_architecture): Add override.
8273 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
8274 each VQ.
8275
ccb8d7e8
AH
82762019-04-15 Alan Hayward <alan.hayward@arm.com>
8277
8278 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
8279
35add35e
AB
82802019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
8281
8282 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
8283 target types of size 96-bits, add some additional comments, and
8284 check that the builtin type we found was the correct size.
8285
51196bbc
EZ
82862019-04-12 Eli Zaretskii <eliz@gnu.org>
8287
8288 * utils.c (prompt_for_continue): Don't restore the styling at the
8289 end, as applied_style has the wrong value. This fixes styling in
8290 long lists of file names that are interrupted by the "Continue?"
8291 prompt.
8292
62253a61
AB
82932019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
8294
8295 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
8296 * c-lang.c (c_language_defn): Likewise.
8297 (cplus_language_defn): Likewise.
8298 (asm_language_defn): Likewise.
8299 (minimal_language_defn): Likewise.
8300 * d-lang.c (d_language_defn): Likewise.
8301 * f-lang.c (f_language_defn): Likewise.
8302 * go-lang.c (go_language_defn): Likewise.
8303 * language.c (unknown_language_defn): Likewise.
8304 (auto_language_defn): Likewise.
8305 * language.h (struct language_defn): Remove la_magic field.
8306 (LANG_MAGIC): Delete.
8307 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
8308 * objc-lang.c (objc_language_defn): Likewise.
8309 * opencl-lang.c (opencl_language_defn): Likewise.
8310 * p-lang.c (pascal_language_defn): Likewise.
8311 * rust-lang.c (rust_language_defn): Likewise.
8312
a9158a86
AB
83132019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8314
8315 * riscv-tdep.c (riscv_type_align): New function.
8316 (riscv_type_alignment): Delete.
8317 (riscv_arg_location): Use 'type_align'.
8318 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
8319
41077b66
AB
83202019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8321
8322 * gdbtypes.c (type_align): A struct with no non-static fields also
8323 has alignment of 1.
8324
9f0272f8
AB
83252019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8326
8327 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
8328 component to 0.
8329 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
8330 member.
8331 (riscv_struct_info::analyse): New implementation using new
8332 analyse_inner member function.
8333 (riscv_struct_info::field_offset): New member function.
8334 (riscv_struct_info::m_offsets): New member variable.
8335 (riscv_struct_info::analyse_inner): New private member function,
8336 takes the old implementation of riscv_struct_info::analyse but
8337 extended to track field offsets.
8338 (riscv_call_arg_struct): Update the struct folding special cases
8339 to handle cases where empty C++ structs, which are non-zero
8340 length, are found.
8341 (riscv_arg_location): Initialise the length of each location, a
8342 non-zero length now indicates the location is in use.
8343 (riscv_push_dummy_call): Allow for the first location having a
8344 non-zero offset when setting up arguments.
8345 (riscv_return_value): Likewise, but for return values.
8346
02cf60c7
TT
83472019-04-11 Tom Tromey <tromey@adacore.com>
8348
8349 * utils.c (internal_vproblem): Make "msg" const.
8350
68811f8f
AH
83512019-04-11 Alan Hayward <alan.hayward@arm.com>
8352
8353 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
8354 * trad-frame.c (trad_frame_reset_saved_regs): New function.
8355 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
8356 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
8357
3f52fdbc
KB
83582019-04-10 Kevin Buettner <kevinb@redhat.com>
8359
8360 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
8361 function.
8362 (fill_gregset): Call amd64_linux_collect_native_gregset instead
8363 of amd64_collect_native_gregset.
8364 (amd64_linux_nat_target::store_registers): Likewise.
8365
e9ad22ee
TT
83662019-04-10 Tom Tromey <tom@tromey.com>
8367
8368 * symtab.c (lookup_global_symbol_from_objfile)
8369 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
8370 * objfiles.h (class separate_debug_iterator): New.
8371 (class separate_debug_range): New.
8372 (struct objfile) <separate_debug_objfiles>: New method.
8373 (objfile_separate_debug_iterate): Don't declare.
8374 * objfiles.c (separate_debug_iterator::operator++): Rename from
8375 objfile_separate_debug_iterate.
8376 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
8377 iterator.
8378 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
8379 iterator.
8380
ee371134
TT
83812019-04-10 Tom Tromey <tom@tromey.com>
8382
8383 * symfile.c (reread_symbols): Remove old comment.
8384 * objfiles.c (free_all_objfiles): Fix a typo.
8385
bf227d61
TT
83862019-04-10 Tom Tromey <tom@tromey.com>
8387
8388 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
8389 * minsyms.c (lookup_minimal_symbol): Use foreach.
8390 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8391 (lookup_minimal_symbol_solib_trampoline): Likewise.
8392 * symfile.c (reread_symbols): Use foreach.
8393
8dc433a0
TT
83942019-04-09 Ivan Begert <ivanbegert@gmail.com>
8395 Tom Tromey <tromey@adacore.com>
8396
8397 PR rust/24414:
8398 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
8399 (rust_lex_int_test): Change "value" to be LONGEST.
8400 (rust_lex_tests): Add test for long integer literal.
8401
9ab8741a
TT
84022019-04-09 Tom Tromey <tromey@adacore.com>
8403
8404 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
8405 to bool.
8406 (extended_remote_target::attach): Update.
8407 (remote_target::remote_notice_new_inferior): Update.
8408 (remote_target::add_current_inferior_and_thread): Update.
8409 * inferior.c (exit_inferior_1): Use "false".
8410 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
8411
e242fd12
SM
84122019-04-09 Simon Marchi <simon.marchi@efficios.com>
8413
9ca1957f 8414 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
8415 the "start" command.
8416
2b0c8b01
KB
84172019-04-08 Kevin Buettner <kevinb@redhat.com>
8418
8419 * python/py-inferior.c (infpy_thread_from_thread_handle):
8420 Adjust comments to reflect renaming of thread_from_thread_handle
8421 to thread_from_handle. Adjust keywords. Fix type error message.
8422 (inferior_object_methods): Add thread_from_handle. Retain
8423 thread_from_thread_handle, but mark it as deprecated.
8424
50a82723
KB
84252019-04-08 Kevin Buettner <kevinb@redhat.com>
8426
8427 * gdbthread.h (find_thread_by_handle): Revise declaration.
8428 * thread.c (find_thread_by_handle): Likewise. Adjust
8429 implementation too.
8430 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
8431 support for buffer objects as handles.
8432
cf63b016
KB
84332019-04-08 Kevin Buettner <kevinb@redhat.com>
8434
8435 * python/py-infthread.c (thpy_thread_handle): New function.
8436 (thread_object_methods): Register thpy_thread_handle.
8437
3d6c6204
KB
84382019-04-08 Kevin Buettner <kevinb@redhat.com>
8439
8440 * gdbthread.h (thread_to_thread_handle): Declare.
8441 * thread.c (gdbtypes.h): Include.
8442 (thread_to_thread_handle): New function.
8443
8444 * target.h (struct target_ops): Add thread_info_to_thread_handle.
8445 (target_thread_info_to_thread_handle): Declare.
8446 * target.c (target_thread_info_to_thread_handle): New function.
8447 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
8448 * target-delegates.c: Regenerate.
8449
8450 * linux-thread-db.c (class thread_db_target): Add method
8451 thread_info_to_thread_handle.
8452 (thread_db_target::thread_info_to_thread_handle): Define.
8453 * remote.c (class remote_target): Add new method
8454 thread_info_to_thread_handle.
8455 (remote_target::thread_info_to_thread_handle): Define.
8456
56be6ea8
PA
84572019-04-08 Pedro Alves <palves@redhat.com>
8458
8459 * common/common-exceptions.c (throw_exception): Don't create
8460 named object to throw; throw directly.
8461 (throw_it): Likewise. Don't initialize gdb_exception::message
8462 here, with new; pass FMT and AP to the ctor instead.
8463 * common/common-exceptions.h: Include <string>.
8464 (gdb_exception::gdb_exception(enum return_reason, enum errors,
8465 const char *, va_list)): New ctor. Use std::make_shared.
8466 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
8467 errors)): Delete.
8468 (gdb_exception_error::gdb_exception_error(enum errors, const char
8469 *, va_list)): New.
8470 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
8471 Add assertion.
8472 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
8473 errors)): Delete.
8474 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
8475 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
8476 Add assertion.
8477
eedc3f4f
TT
84782019-04-08 Tom Tromey <tom@tromey.com>
8479
8480 * valops.c (value_rtti_indirect_type): Replace throw_exception
8481 with throw.
8482 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
8483 with throw.
8484 * thread.c (thr_try_catch_cmd): Replace throw_exception with
8485 throw.
8486 * target.c (target_translate_tls_address): Replace throw_exception
8487 with throw.
8488 * stack.c (frame_apply_command_count): Replace throw_exception
8489 with throw.
8490 * solib-spu.c (append_ocl_sos): Replace throw_exception with
8491 throw.
8492 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
8493 with throw.
8494 * rs6000-tdep.c (rs6000_frame_cache)
8495 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
8496 * remote.c: Replace throw_exception with throw.
8497 * record-full.c (record_full_message, record_full_wait_1)
8498 (record_full_restore): Replace throw_exception with throw.
8499 * record-btrace.c:
8500 (get_thread_current_frame_id, record_btrace_start_replaying)
8501 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
8502 (cmd_record_btrace_start): Replace throw_exception with throw.
8503 * parse.c (parse_exp_in_context_1): Replace throw_exception with
8504 throw.
8505 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
8506 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
8507 * linespec.c:
8508 (find_linespec_symbols): Replace throw_exception with throw.
8509 * infrun.c (displaced_step_prepare, resume): Replace
8510 throw_exception with throw.
8511 * infcmd.c (post_create_inferior): Replace throw_exception with
8512 throw.
8513 * inf-loop.c (inferior_event_handler): Replace throw_exception
8514 with throw.
8515 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
8516 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
8517 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
8518 (get_prev_frame_always, get_frame_pc_if_available)
8519 (get_frame_address_in_block_if_available, get_frame_language):
8520 Replace throw_exception with throw.
8521 * frame-unwind.c (frame_unwind_try_unwinder): Replace
8522 throw_exception with throw.
8523 * eval.c (fetch_subexp_value, evaluate_var_value)
8524 (evaluate_funcall, evaluate_subexp_standard): Replace
8525 throw_exception with throw.
8526 * dwarf2loc.c (call_site_find_chain)
8527 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
8528 Replace throw_exception with throw.
8529 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
8530 with throw.
8531 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
8532 throw.
8533 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
8534 * completer.c (complete_line_internal): Replace throw_exception
8535 with throw.
8536 * compile/compile-object-run.c (compile_object_run): Replace
8537 throw_exception with throw.
8538 * cli/cli-script.c (process_next_line): Replace throw_exception
8539 with throw.
8540 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
8541 (btrace_enable, btrace_maint_update_pt_packets): Replace
8542 throw_exception with throw.
8543 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
8544 throw_exception with throw.
8545 * break-catch-throw.c (re_set_exception_catchpoint): Replace
8546 throw_exception with throw.
8547 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
8548 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
8549 * aarch64-tdep.c (aarch64_make_prologue_cache)
8550 (aarch64_make_stub_cache): Replace throw_exception with throw.
8551
26003a20
TT
85522019-04-08 Tom Tromey <tom@tromey.com>
8553
8554 * common/common-exceptions.c (throw_exception): Rename from
8555 throw_exception_cxx. Remove old copy. Make argument const.
8556 (throw_it): Create and throw exception objects directly.
8557 * common/common-exceptions.h (throw_exception): Make argument
8558 const.
8559 (struct gdb_exception_error): Add constructor.
8560 (struct gdb_exception_quit): Add constructor.
8561
d272eb37
TT
85622019-04-08 Tom Tromey <tom@tromey.com>
8563
8564 * common/common-exceptions.h (exception_rethrow): Don't declare.
8565 (TRY_SJLJ): Update comment.
8566 (TRY, CATCH, END_CATCH): Remove.
8567 * common/common-exceptions.c (exception_rethrow): Remove.
8568
230d2906
TT
85692019-04-08 Tom Tromey <tom@tromey.com>
8570
8571 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
8572 Remove.
8573 (gdb_exception_error): Rename from
8574 gdb_exception_RETURN_MASK_ERROR.
8575 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
8576 (gdb_quit_bad_alloc): Update.
8577 * aarch64-tdep.c: Update.
8578 * ada-lang.c: Update.
8579 * ada-typeprint.c: Update.
8580 * ada-valprint.c: Update.
8581 * amd64-tdep.c: Update.
8582 * arch-utils.c: Update.
8583 * break-catch-throw.c: Update.
8584 * breakpoint.c: Update.
8585 * btrace.c: Update.
8586 * c-varobj.c: Update.
8587 * cli/cli-cmds.c: Update.
8588 * cli/cli-interp.c: Update.
8589 * cli/cli-script.c: Update.
8590 * common/common-exceptions.c: Update.
8591 * common/new-op.c: Update.
8592 * common/selftest.c: Update.
8593 * compile/compile-c-symbols.c: Update.
8594 * compile/compile-cplus-symbols.c: Update.
8595 * compile/compile-object-load.c: Update.
8596 * compile/compile-object-run.c: Update.
8597 * completer.c: Update.
8598 * corelow.c: Update.
8599 * cp-abi.c: Update.
8600 * cp-support.c: Update.
8601 * cp-valprint.c: Update.
8602 * darwin-nat.c: Update.
8603 * disasm-selftests.c: Update.
8604 * dtrace-probe.c: Update.
8605 * dwarf-index-cache.c: Update.
8606 * dwarf-index-write.c: Update.
8607 * dwarf2-frame-tailcall.c: Update.
8608 * dwarf2-frame.c: Update.
8609 * dwarf2loc.c: Update.
8610 * dwarf2read.c: Update.
8611 * eval.c: Update.
8612 * event-loop.c: Update.
8613 * event-top.c: Update.
8614 * exec.c: Update.
8615 * f-valprint.c: Update.
8616 * fbsd-tdep.c: Update.
8617 * frame-unwind.c: Update.
8618 * frame.c: Update.
8619 * gdbtypes.c: Update.
8620 * gnu-v3-abi.c: Update.
8621 * guile/guile-internal.h: Update.
8622 * guile/scm-block.c: Update.
8623 * guile/scm-breakpoint.c: Update.
8624 * guile/scm-cmd.c: Update.
8625 * guile/scm-disasm.c: Update.
8626 * guile/scm-frame.c: Update.
8627 * guile/scm-lazy-string.c: Update.
8628 * guile/scm-math.c: Update.
8629 * guile/scm-param.c: Update.
8630 * guile/scm-ports.c: Update.
8631 * guile/scm-pretty-print.c: Update.
8632 * guile/scm-symbol.c: Update.
8633 * guile/scm-symtab.c: Update.
8634 * guile/scm-type.c: Update.
8635 * guile/scm-value.c: Update.
8636 * i386-linux-tdep.c: Update.
8637 * i386-tdep.c: Update.
8638 * inf-loop.c: Update.
8639 * infcall.c: Update.
8640 * infcmd.c: Update.
8641 * infrun.c: Update.
8642 * jit.c: Update.
8643 * language.c: Update.
8644 * linespec.c: Update.
8645 * linux-fork.c: Update.
8646 * linux-nat.c: Update.
8647 * linux-tdep.c: Update.
8648 * linux-thread-db.c: Update.
8649 * main.c: Update.
8650 * mi/mi-cmd-break.c: Update.
8651 * mi/mi-cmd-stack.c: Update.
8652 * mi/mi-interp.c: Update.
8653 * mi/mi-main.c: Update.
8654 * objc-lang.c: Update.
8655 * p-valprint.c: Update.
8656 * parse.c: Update.
8657 * ppc-linux-tdep.c: Update.
8658 * printcmd.c: Update.
8659 * python/py-arch.c: Update.
8660 * python/py-breakpoint.c: Update.
8661 * python/py-cmd.c: Update.
8662 * python/py-finishbreakpoint.c: Update.
8663 * python/py-frame.c: Update.
8664 * python/py-framefilter.c: Update.
8665 * python/py-gdb-readline.c: Update.
8666 * python/py-inferior.c: Update.
8667 * python/py-infthread.c: Update.
8668 * python/py-lazy-string.c: Update.
8669 * python/py-linetable.c: Update.
8670 * python/py-objfile.c: Update.
8671 * python/py-param.c: Update.
8672 * python/py-prettyprint.c: Update.
8673 * python/py-progspace.c: Update.
8674 * python/py-record-btrace.c: Update.
8675 * python/py-record.c: Update.
8676 * python/py-symbol.c: Update.
8677 * python/py-type.c: Update.
8678 * python/py-unwind.c: Update.
8679 * python/py-utils.c: Update.
8680 * python/py-value.c: Update.
8681 * python/python.c: Update.
8682 * record-btrace.c: Update.
8683 * record-full.c: Update.
8684 * remote-fileio.c: Update.
8685 * remote.c: Update.
8686 * riscv-tdep.c: Update.
8687 * rs6000-aix-tdep.c: Update.
8688 * rs6000-tdep.c: Update.
8689 * rust-exp.y: Update.
8690 * rust-lang.c: Update.
8691 * s390-tdep.c: Update.
8692 * selftest-arch.c: Update.
8693 * solib-dsbt.c: Update.
8694 * solib-frv.c: Update.
8695 * solib-spu.c: Update.
8696 * solib-svr4.c: Update.
8697 * solib.c: Update.
8698 * sparc64-linux-tdep.c: Update.
8699 * stack.c: Update.
8700 * symfile-mem.c: Update.
8701 * symmisc.c: Update.
8702 * target.c: Update.
8703 * thread.c: Update.
8704 * top.c: Update.
8705 * tracefile-tfile.c: Update.
8706 * tui/tui.c: Update.
8707 * typeprint.c: Update.
8708 * unittests/cli-utils-selftests.c: Update.
8709 * unittests/parse-connection-spec-selftests.c: Update.
8710 * valops.c: Update.
8711 * valprint.c: Update.
8712 * value.c: Update.
8713 * varobj.c: Update.
8714 * windows-nat.c: Update.
8715 * x86-linux-nat.c: Update.
8716 * xml-support.c: Update.
8717
a70b8144
TT
87182019-04-08 Tom Tromey <tom@tromey.com>
8719
8720 * xml-support.c: Use C++ exception handling.
8721 * x86-linux-nat.c: Use C++ exception handling.
8722 * windows-nat.c: Use C++ exception handling.
8723 * varobj.c: Use C++ exception handling.
8724 * value.c: Use C++ exception handling.
8725 * valprint.c: Use C++ exception handling.
8726 * valops.c: Use C++ exception handling.
8727 * unittests/parse-connection-spec-selftests.c: Use C++ exception
8728 handling.
8729 * unittests/cli-utils-selftests.c: Use C++ exception handling.
8730 * typeprint.c: Use C++ exception handling.
8731 * tui/tui.c: Use C++ exception handling.
8732 * tracefile-tfile.c: Use C++ exception handling.
8733 * top.c: Use C++ exception handling.
8734 * thread.c: Use C++ exception handling.
8735 * target.c: Use C++ exception handling.
8736 * symmisc.c: Use C++ exception handling.
8737 * symfile-mem.c: Use C++ exception handling.
8738 * stack.c: Use C++ exception handling.
8739 * sparc64-linux-tdep.c: Use C++ exception handling.
8740 * solib.c: Use C++ exception handling.
8741 * solib-svr4.c: Use C++ exception handling.
8742 * solib-spu.c: Use C++ exception handling.
8743 * solib-frv.c: Use C++ exception handling.
8744 * solib-dsbt.c: Use C++ exception handling.
8745 * selftest-arch.c: Use C++ exception handling.
8746 * s390-tdep.c: Use C++ exception handling.
8747 * rust-lang.c: Use C++ exception handling.
8748 * rust-exp.y: Use C++ exception handling.
8749 * rs6000-tdep.c: Use C++ exception handling.
8750 * rs6000-aix-tdep.c: Use C++ exception handling.
8751 * riscv-tdep.c: Use C++ exception handling.
8752 * remote.c: Use C++ exception handling.
8753 * remote-fileio.c: Use C++ exception handling.
8754 * record-full.c: Use C++ exception handling.
8755 * record-btrace.c: Use C++ exception handling.
8756 * python/python.c: Use C++ exception handling.
8757 * python/py-value.c: Use C++ exception handling.
8758 * python/py-utils.c: Use C++ exception handling.
8759 * python/py-unwind.c: Use C++ exception handling.
8760 * python/py-type.c: Use C++ exception handling.
8761 * python/py-symbol.c: Use C++ exception handling.
8762 * python/py-record.c: Use C++ exception handling.
8763 * python/py-record-btrace.c: Use C++ exception handling.
8764 * python/py-progspace.c: Use C++ exception handling.
8765 * python/py-prettyprint.c: Use C++ exception handling.
8766 * python/py-param.c: Use C++ exception handling.
8767 * python/py-objfile.c: Use C++ exception handling.
8768 * python/py-linetable.c: Use C++ exception handling.
8769 * python/py-lazy-string.c: Use C++ exception handling.
8770 * python/py-infthread.c: Use C++ exception handling.
8771 * python/py-inferior.c: Use C++ exception handling.
8772 * python/py-gdb-readline.c: Use C++ exception handling.
8773 * python/py-framefilter.c: Use C++ exception handling.
8774 * python/py-frame.c: Use C++ exception handling.
8775 * python/py-finishbreakpoint.c: Use C++ exception handling.
8776 * python/py-cmd.c: Use C++ exception handling.
8777 * python/py-breakpoint.c: Use C++ exception handling.
8778 * python/py-arch.c: Use C++ exception handling.
8779 * printcmd.c: Use C++ exception handling.
8780 * ppc-linux-tdep.c: Use C++ exception handling.
8781 * parse.c: Use C++ exception handling.
8782 * p-valprint.c: Use C++ exception handling.
8783 * objc-lang.c: Use C++ exception handling.
8784 * mi/mi-main.c: Use C++ exception handling.
8785 * mi/mi-interp.c: Use C++ exception handling.
8786 * mi/mi-cmd-stack.c: Use C++ exception handling.
8787 * mi/mi-cmd-break.c: Use C++ exception handling.
8788 * main.c: Use C++ exception handling.
8789 * linux-thread-db.c: Use C++ exception handling.
8790 * linux-tdep.c: Use C++ exception handling.
8791 * linux-nat.c: Use C++ exception handling.
8792 * linux-fork.c: Use C++ exception handling.
8793 * linespec.c: Use C++ exception handling.
8794 * language.c: Use C++ exception handling.
8795 * jit.c: Use C++ exception handling.
8796 * infrun.c: Use C++ exception handling.
8797 * infcmd.c: Use C++ exception handling.
8798 * infcall.c: Use C++ exception handling.
8799 * inf-loop.c: Use C++ exception handling.
8800 * i386-tdep.c: Use C++ exception handling.
8801 * i386-linux-tdep.c: Use C++ exception handling.
8802 * guile/scm-value.c: Use C++ exception handling.
8803 * guile/scm-type.c: Use C++ exception handling.
8804 * guile/scm-symtab.c: Use C++ exception handling.
8805 * guile/scm-symbol.c: Use C++ exception handling.
8806 * guile/scm-pretty-print.c: Use C++ exception handling.
8807 * guile/scm-ports.c: Use C++ exception handling.
8808 * guile/scm-param.c: Use C++ exception handling.
8809 * guile/scm-math.c: Use C++ exception handling.
8810 * guile/scm-lazy-string.c: Use C++ exception handling.
8811 * guile/scm-frame.c: Use C++ exception handling.
8812 * guile/scm-disasm.c: Use C++ exception handling.
8813 * guile/scm-cmd.c: Use C++ exception handling.
8814 * guile/scm-breakpoint.c: Use C++ exception handling.
8815 * guile/scm-block.c: Use C++ exception handling.
8816 * guile/guile-internal.h: Use C++ exception handling.
8817 * gnu-v3-abi.c: Use C++ exception handling.
8818 * gdbtypes.c: Use C++ exception handling.
8819 * frame.c: Use C++ exception handling.
8820 * frame-unwind.c: Use C++ exception handling.
8821 * fbsd-tdep.c: Use C++ exception handling.
8822 * f-valprint.c: Use C++ exception handling.
8823 * exec.c: Use C++ exception handling.
8824 * event-top.c: Use C++ exception handling.
8825 * event-loop.c: Use C++ exception handling.
8826 * eval.c: Use C++ exception handling.
8827 * dwarf2read.c: Use C++ exception handling.
8828 * dwarf2loc.c: Use C++ exception handling.
8829 * dwarf2-frame.c: Use C++ exception handling.
8830 * dwarf2-frame-tailcall.c: Use C++ exception handling.
8831 * dwarf-index-write.c: Use C++ exception handling.
8832 * dwarf-index-cache.c: Use C++ exception handling.
8833 * dtrace-probe.c: Use C++ exception handling.
8834 * disasm-selftests.c: Use C++ exception handling.
8835 * darwin-nat.c: Use C++ exception handling.
8836 * cp-valprint.c: Use C++ exception handling.
8837 * cp-support.c: Use C++ exception handling.
8838 * cp-abi.c: Use C++ exception handling.
8839 * corelow.c: Use C++ exception handling.
8840 * completer.c: Use C++ exception handling.
8841 * compile/compile-object-run.c: Use C++ exception handling.
8842 * compile/compile-object-load.c: Use C++ exception handling.
8843 * compile/compile-cplus-symbols.c: Use C++ exception handling.
8844 * compile/compile-c-symbols.c: Use C++ exception handling.
8845 * common/selftest.c: Use C++ exception handling.
8846 * common/new-op.c: Use C++ exception handling.
8847 * cli/cli-script.c: Use C++ exception handling.
8848 * cli/cli-interp.c: Use C++ exception handling.
8849 * cli/cli-cmds.c: Use C++ exception handling.
8850 * c-varobj.c: Use C++ exception handling.
8851 * btrace.c: Use C++ exception handling.
8852 * breakpoint.c: Use C++ exception handling.
8853 * break-catch-throw.c: Use C++ exception handling.
8854 * arch-utils.c: Use C++ exception handling.
8855 * amd64-tdep.c: Use C++ exception handling.
8856 * ada-valprint.c: Use C++ exception handling.
8857 * ada-typeprint.c: Use C++ exception handling.
8858 * ada-lang.c: Use C++ exception handling.
8859 * aarch64-tdep.c: Use C++ exception handling.
8860
3d6e9d23
TT
88612019-04-08 Tom Tromey <tom@tromey.com>
8862
8863 * xml-support.c (gdb_xml_parser::parse): Update.
8864 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8865 * value.c (show_convenience): Update.
8866 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
8867 (test_parse_flags_qcs): Update.
8868 * thread.c (thr_try_catch_cmd): Update.
8869 * target.c (target_translate_tls_address): Update.
8870 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
8871 (info_frame_command_core, frame_apply_command_count): Update.
8872 * rust-exp.y (rust_lex_exception_test): Update.
8873 * riscv-tdep.c (riscv_print_one_register_info): Update.
8874 * remote.c (remote_target::enable_btrace): Update.
8875 * record-btrace.c (record_btrace_enable_warn): Update.
8876 * python/py-utils.c (gdbpy_convert_exception): Update.
8877 * printcmd.c (do_one_display, print_variable_and_value): Update.
8878 * mi/mi-main.c (mi_print_exception): Update.
8879 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
8880 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
8881 * linux-nat.c (linux_nat_target::attach): Update.
8882 * linux-fork.c (class scoped_switch_fork_info): Update.
8883 * infrun.c (displaced_step_prepare): Update.
8884 * infcall.c (call_function_by_hand_dummy): Update.
8885 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
8886 * gnu-v3-abi.c (print_one_vtable): Update.
8887 * frame.c (get_prev_frame_always): Update.
8888 * f-valprint.c (info_common_command_for_block): Update.
8889 * exec.c (try_open_exec_file): Update.
8890 * exceptions.c (print_exception, exception_print)
8891 (exception_fprintf, exception_print_same): Update.
8892 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
8893 * dwarf-index-cache.c (index_cache::store)
8894 (index_cache::lookup_gdb_index): Update.
8895 * darwin-nat.c (maybe_cache_shell): Update.
8896 * cp-valprint.c (cp_print_value_fields): Update.
8897 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
8898 (gcc_cplus_symbol_address): Update.
8899 * compile/compile-c-symbols.c (gcc_convert_symbol)
8900 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
8901 * common/selftest.c: Update.
8902 * common/common-exceptions.h (struct gdb_exception) <message>: Now
8903 a std::string.
8904 (exception_try_scope_entry, exception_try_scope_exit): Don't
8905 declare.
8906 (struct exception_try_scope): Remove.
8907 (TRY): Don't use exception_try_scope.
8908 (struct gdb_exception): Add constructor, operator=.
8909 <what>: New method.
8910 (struct gdb_exception_RETURN_MASK_ALL)
8911 (struct gdb_exception_RETURN_MASK_ERROR)
8912 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
8913 (struct gdb_quit_bad_alloc): Update.
8914 * common/common-exceptions.c (exception_none): Change
8915 initializer.
8916 (struct catcher) <state, exception>: Initialize inline.
8917 <prev>: Remove member.
8918 (current_catcher): Remove.
8919 (catchers): New global.
8920 (exceptions_state_mc_init): Simplify.
8921 (catcher_pop): Remove.
8922 (exceptions_state_mc, exceptions_state_mc_catch): Update.
8923 (try_scope_depth, exception_try_scope_entry)
8924 (exception_try_scope_exit): Remove.
8925 (throw_exception_sjlj): Update.
8926 (exception_messages, exception_messages_size): Remove.
8927 (throw_it): Simplify.
8928 (gdb_exception_sliced_copy): Remove.
8929 (throw_exception_cxx): Update.
8930 * cli/cli-script.c (script_from_file): Update.
8931 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
8932 Update.
8933 * ada-valprint.c (ada_val_print): Update.
8934 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
8935 (create_excep_cond_exprs): Update.
8936
c5c10118
TT
89372019-04-08 Tom Tromey <tom@tromey.com>
8938
8939 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
8940 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
8941 (TRY, CATCH, END_CATCH): Remove some definitions.
8942 * common/common-exceptions.c: Don't use GDB_XCPT.
8943 (catcher_list_size): Remove.
8944 (throw_exception, throw_it): Simplify.
8945
4de283e4
TT
89462019-04-05 Tom Tromey <tom@tromey.com>
8947
8948 Revert the header-sorting patch.
8949 * ft32-tdep.c: Revert.
8950 * frv-tdep.c: Revert.
8951 * frv-linux-tdep.c: Revert.
8952 * frame.c: Revert.
8953 * frame-unwind.c: Revert.
8954 * frame-base.c: Revert.
8955 * fork-child.c: Revert.
8956 * findvar.c: Revert.
8957 * findcmd.c: Revert.
8958 * filesystem.c: Revert.
8959 * filename-seen-cache.h: Revert.
8960 * filename-seen-cache.c: Revert.
8961 * fbsd-tdep.c: Revert.
8962 * fbsd-nat.h: Revert.
8963 * fbsd-nat.c: Revert.
8964 * f-valprint.c: Revert.
8965 * f-typeprint.c: Revert.
8966 * f-lang.c: Revert.
8967 * extension.h: Revert.
8968 * extension.c: Revert.
8969 * extension-priv.h: Revert.
8970 * expprint.c: Revert.
8971 * exec.h: Revert.
8972 * exec.c: Revert.
8973 * exceptions.c: Revert.
8974 * event-top.c: Revert.
8975 * event-loop.c: Revert.
8976 * eval.c: Revert.
8977 * elfread.c: Revert.
8978 * dwarf2read.h: Revert.
8979 * dwarf2read.c: Revert.
8980 * dwarf2loc.c: Revert.
8981 * dwarf2expr.h: Revert.
8982 * dwarf2expr.c: Revert.
8983 * dwarf2-frame.c: Revert.
8984 * dwarf2-frame-tailcall.c: Revert.
8985 * dwarf-index-write.h: Revert.
8986 * dwarf-index-write.c: Revert.
8987 * dwarf-index-common.c: Revert.
8988 * dwarf-index-cache.h: Revert.
8989 * dwarf-index-cache.c: Revert.
8990 * dummy-frame.c: Revert.
8991 * dtrace-probe.c: Revert.
8992 * disasm.h: Revert.
8993 * disasm.c: Revert.
8994 * disasm-selftests.c: Revert.
8995 * dictionary.c: Revert.
8996 * dicos-tdep.c: Revert.
8997 * demangle.c: Revert.
8998 * dcache.h: Revert.
8999 * dcache.c: Revert.
9000 * darwin-nat.h: Revert.
9001 * darwin-nat.c: Revert.
9002 * darwin-nat-info.c: Revert.
9003 * d-valprint.c: Revert.
9004 * d-namespace.c: Revert.
9005 * d-lang.c: Revert.
9006 * ctf.c: Revert.
9007 * csky-tdep.c: Revert.
9008 * csky-linux-tdep.c: Revert.
9009 * cris-tdep.c: Revert.
9010 * cris-linux-tdep.c: Revert.
9011 * cp-valprint.c: Revert.
9012 * cp-support.c: Revert.
9013 * cp-namespace.c: Revert.
9014 * cp-abi.c: Revert.
9015 * corelow.c: Revert.
9016 * corefile.c: Revert.
9017 * continuations.c: Revert.
9018 * completer.h: Revert.
9019 * completer.c: Revert.
9020 * complaints.c: Revert.
9021 * coffread.c: Revert.
9022 * coff-pe-read.c: Revert.
9023 * cli-out.h: Revert.
9024 * cli-out.c: Revert.
9025 * charset.c: Revert.
9026 * c-varobj.c: Revert.
9027 * c-valprint.c: Revert.
9028 * c-typeprint.c: Revert.
9029 * c-lang.c: Revert.
9030 * buildsym.c: Revert.
9031 * buildsym-legacy.c: Revert.
9032 * build-id.h: Revert.
9033 * build-id.c: Revert.
9034 * btrace.c: Revert.
9035 * bsd-uthread.c: Revert.
9036 * breakpoint.h: Revert.
9037 * breakpoint.c: Revert.
9038 * break-catch-throw.c: Revert.
9039 * break-catch-syscall.c: Revert.
9040 * break-catch-sig.c: Revert.
9041 * blockframe.c: Revert.
9042 * block.c: Revert.
9043 * bfin-tdep.c: Revert.
9044 * bfin-linux-tdep.c: Revert.
9045 * bfd-target.c: Revert.
9046 * bcache.c: Revert.
9047 * ax-general.c: Revert.
9048 * ax-gdb.h: Revert.
9049 * ax-gdb.c: Revert.
9050 * avr-tdep.c: Revert.
9051 * auxv.c: Revert.
9052 * auto-load.c: Revert.
9053 * arm-wince-tdep.c: Revert.
9054 * arm-tdep.c: Revert.
9055 * arm-symbian-tdep.c: Revert.
9056 * arm-pikeos-tdep.c: Revert.
9057 * arm-obsd-tdep.c: Revert.
9058 * arm-nbsd-tdep.c: Revert.
9059 * arm-nbsd-nat.c: Revert.
9060 * arm-linux-tdep.c: Revert.
9061 * arm-linux-nat.c: Revert.
9062 * arm-fbsd-tdep.c: Revert.
9063 * arm-fbsd-nat.c: Revert.
9064 * arm-bsd-tdep.c: Revert.
9065 * arch-utils.c: Revert.
9066 * arc-tdep.c: Revert.
9067 * arc-newlib-tdep.c: Revert.
9068 * annotate.h: Revert.
9069 * annotate.c: Revert.
9070 * amd64-windows-tdep.c: Revert.
9071 * amd64-windows-nat.c: Revert.
9072 * amd64-tdep.c: Revert.
9073 * amd64-sol2-tdep.c: Revert.
9074 * amd64-obsd-tdep.c: Revert.
9075 * amd64-obsd-nat.c: Revert.
9076 * amd64-nbsd-tdep.c: Revert.
9077 * amd64-nbsd-nat.c: Revert.
9078 * amd64-nat.c: Revert.
9079 * amd64-linux-tdep.c: Revert.
9080 * amd64-linux-nat.c: Revert.
9081 * amd64-fbsd-tdep.c: Revert.
9082 * amd64-fbsd-nat.c: Revert.
9083 * amd64-dicos-tdep.c: Revert.
9084 * amd64-darwin-tdep.c: Revert.
9085 * amd64-bsd-nat.c: Revert.
9086 * alpha-tdep.c: Revert.
9087 * alpha-obsd-tdep.c: Revert.
9088 * alpha-nbsd-tdep.c: Revert.
9089 * alpha-mdebug-tdep.c: Revert.
9090 * alpha-linux-tdep.c: Revert.
9091 * alpha-linux-nat.c: Revert.
9092 * alpha-bsd-tdep.c: Revert.
9093 * alpha-bsd-nat.c: Revert.
9094 * aix-thread.c: Revert.
9095 * agent.c: Revert.
9096 * addrmap.c: Revert.
9097 * ada-varobj.c: Revert.
9098 * ada-valprint.c: Revert.
9099 * ada-typeprint.c: Revert.
9100 * ada-tasks.c: Revert.
9101 * ada-lang.c: Revert.
9102 * aarch64-tdep.c: Revert.
9103 * aarch64-ravenscar-thread.c: Revert.
9104 * aarch64-newlib-tdep.c: Revert.
9105 * aarch64-linux-tdep.c: Revert.
9106 * aarch64-linux-nat.c: Revert.
9107 * aarch64-fbsd-tdep.c: Revert.
9108 * aarch64-fbsd-nat.c: Revert.
9109 * aarch32-linux-nat.c: Revert.
9110
d55e5aa6
TT
91112019-04-05 Tom Tromey <tom@tromey.com>
9112
9113 * ft32-tdep.c: Sort headers.
9114 * frv-tdep.c: Sort headers.
9115 * frv-linux-tdep.c: Sort headers.
9116 * frame.c: Sort headers.
9117 * frame-unwind.c: Sort headers.
9118 * frame-base.c: Sort headers.
9119 * fork-child.c: Sort headers.
9120 * findvar.c: Sort headers.
9121 * findcmd.c: Sort headers.
9122 * filesystem.c: Sort headers.
9123 * filename-seen-cache.h: Sort headers.
9124 * filename-seen-cache.c: Sort headers.
9125 * fbsd-tdep.c: Sort headers.
9126 * fbsd-nat.h: Sort headers.
9127 * fbsd-nat.c: Sort headers.
9128 * f-valprint.c: Sort headers.
9129 * f-typeprint.c: Sort headers.
9130 * f-lang.c: Sort headers.
9131 * extension.h: Sort headers.
9132 * extension.c: Sort headers.
9133 * extension-priv.h: Sort headers.
9134 * expprint.c: Sort headers.
9135 * exec.h: Sort headers.
9136 * exec.c: Sort headers.
9137 * exceptions.c: Sort headers.
9138 * event-top.c: Sort headers.
9139 * event-loop.c: Sort headers.
9140 * eval.c: Sort headers.
9141 * elfread.c: Sort headers.
9142 * dwarf2read.h: Sort headers.
9143 * dwarf2read.c: Sort headers.
9144 * dwarf2loc.c: Sort headers.
9145 * dwarf2expr.h: Sort headers.
9146 * dwarf2expr.c: Sort headers.
9147 * dwarf2-frame.c: Sort headers.
9148 * dwarf2-frame-tailcall.c: Sort headers.
9149 * dwarf-index-write.h: Sort headers.
9150 * dwarf-index-write.c: Sort headers.
9151 * dwarf-index-common.c: Sort headers.
9152 * dwarf-index-cache.h: Sort headers.
9153 * dwarf-index-cache.c: Sort headers.
9154 * dummy-frame.c: Sort headers.
9155 * dtrace-probe.c: Sort headers.
9156 * disasm.h: Sort headers.
9157 * disasm.c: Sort headers.
9158 * disasm-selftests.c: Sort headers.
9159 * dictionary.c: Sort headers.
9160 * dicos-tdep.c: Sort headers.
9161 * demangle.c: Sort headers.
9162 * dcache.h: Sort headers.
9163 * dcache.c: Sort headers.
9164 * darwin-nat.h: Sort headers.
9165 * darwin-nat.c: Sort headers.
9166 * darwin-nat-info.c: Sort headers.
9167 * d-valprint.c: Sort headers.
9168 * d-namespace.c: Sort headers.
9169 * d-lang.c: Sort headers.
9170 * ctf.c: Sort headers.
9171 * csky-tdep.c: Sort headers.
9172 * csky-linux-tdep.c: Sort headers.
9173 * cris-tdep.c: Sort headers.
9174 * cris-linux-tdep.c: Sort headers.
9175 * cp-valprint.c: Sort headers.
9176 * cp-support.c: Sort headers.
9177 * cp-namespace.c: Sort headers.
9178 * cp-abi.c: Sort headers.
9179 * corelow.c: Sort headers.
9180 * corefile.c: Sort headers.
9181 * continuations.c: Sort headers.
9182 * completer.h: Sort headers.
9183 * completer.c: Sort headers.
9184 * complaints.c: Sort headers.
9185 * coffread.c: Sort headers.
9186 * coff-pe-read.c: Sort headers.
9187 * cli-out.h: Sort headers.
9188 * cli-out.c: Sort headers.
9189 * charset.c: Sort headers.
9190 * c-varobj.c: Sort headers.
9191 * c-valprint.c: Sort headers.
9192 * c-typeprint.c: Sort headers.
9193 * c-lang.c: Sort headers.
9194 * buildsym.c: Sort headers.
9195 * buildsym-legacy.c: Sort headers.
9196 * build-id.h: Sort headers.
9197 * build-id.c: Sort headers.
9198 * btrace.c: Sort headers.
9199 * bsd-uthread.c: Sort headers.
9200 * breakpoint.h: Sort headers.
9201 * breakpoint.c: Sort headers.
9202 * break-catch-throw.c: Sort headers.
9203 * break-catch-syscall.c: Sort headers.
9204 * break-catch-sig.c: Sort headers.
9205 * blockframe.c: Sort headers.
9206 * block.c: Sort headers.
9207 * bfin-tdep.c: Sort headers.
9208 * bfin-linux-tdep.c: Sort headers.
9209 * bfd-target.c: Sort headers.
9210 * bcache.c: Sort headers.
9211 * ax-general.c: Sort headers.
9212 * ax-gdb.h: Sort headers.
9213 * ax-gdb.c: Sort headers.
9214 * avr-tdep.c: Sort headers.
9215 * auxv.c: Sort headers.
9216 * auto-load.c: Sort headers.
9217 * arm-wince-tdep.c: Sort headers.
9218 * arm-tdep.c: Sort headers.
9219 * arm-symbian-tdep.c: Sort headers.
9220 * arm-pikeos-tdep.c: Sort headers.
9221 * arm-obsd-tdep.c: Sort headers.
9222 * arm-nbsd-tdep.c: Sort headers.
9223 * arm-nbsd-nat.c: Sort headers.
9224 * arm-linux-tdep.c: Sort headers.
9225 * arm-linux-nat.c: Sort headers.
9226 * arm-fbsd-tdep.c: Sort headers.
9227 * arm-fbsd-nat.c: Sort headers.
9228 * arm-bsd-tdep.c: Sort headers.
9229 * arch-utils.c: Sort headers.
9230 * arc-tdep.c: Sort headers.
9231 * arc-newlib-tdep.c: Sort headers.
9232 * annotate.h: Sort headers.
9233 * annotate.c: Sort headers.
9234 * amd64-windows-tdep.c: Sort headers.
9235 * amd64-windows-nat.c: Sort headers.
9236 * amd64-tdep.c: Sort headers.
9237 * amd64-sol2-tdep.c: Sort headers.
9238 * amd64-obsd-tdep.c: Sort headers.
9239 * amd64-obsd-nat.c: Sort headers.
9240 * amd64-nbsd-tdep.c: Sort headers.
9241 * amd64-nbsd-nat.c: Sort headers.
9242 * amd64-nat.c: Sort headers.
9243 * amd64-linux-tdep.c: Sort headers.
9244 * amd64-linux-nat.c: Sort headers.
9245 * amd64-fbsd-tdep.c: Sort headers.
9246 * amd64-fbsd-nat.c: Sort headers.
9247 * amd64-dicos-tdep.c: Sort headers.
9248 * amd64-darwin-tdep.c: Sort headers.
9249 * amd64-bsd-nat.c: Sort headers.
9250 * alpha-tdep.c: Sort headers.
9251 * alpha-obsd-tdep.c: Sort headers.
9252 * alpha-nbsd-tdep.c: Sort headers.
9253 * alpha-mdebug-tdep.c: Sort headers.
9254 * alpha-linux-tdep.c: Sort headers.
9255 * alpha-linux-nat.c: Sort headers.
9256 * alpha-bsd-tdep.c: Sort headers.
9257 * alpha-bsd-nat.c: Sort headers.
9258 * aix-thread.c: Sort headers.
9259 * agent.c: Sort headers.
9260 * addrmap.c: Sort headers.
9261 * ada-varobj.c: Sort headers.
9262 * ada-valprint.c: Sort headers.
9263 * ada-typeprint.c: Sort headers.
9264 * ada-tasks.c: Sort headers.
9265 * ada-lang.c: Sort headers.
9266 * aarch64-tdep.c: Sort headers.
9267 * aarch64-ravenscar-thread.c: Sort headers.
9268 * aarch64-newlib-tdep.c: Sort headers.
9269 * aarch64-linux-tdep.c: Sort headers.
9270 * aarch64-linux-nat.c: Sort headers.
9271 * aarch64-fbsd-tdep.c: Sort headers.
9272 * aarch64-fbsd-nat.c: Sort headers.
9273 * aarch32-linux-nat.c: Sort headers.
9274
699bd4cf
TT
92752019-04-04 Tom Tromey <tom@tromey.com>
9276
9277 * varobj.c (varobj_create): Update.
9278 * rust-exp.y (struct rust_parser) <update_innermost_block,
9279 lookup_symbol>: New methods.
9280 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
9281 Rename.
9282 (rust_parser::rust_lookup_type)
9283 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9284 * printcmd.c (display_command, do_one_display): Update.
9285 * parser-defs.h (struct parser_state) <parser_state>: Add
9286 "tracker" parameter.
9287 (block_tracker): New member.
9288 (class innermost_block_tracker) <innermost_block_tracker>: Add
9289 "types" parameter.
9290 <reset>: Remove method.
9291 (innermost_block): Don't declare.
9292 (null_post_parser): Update.
9293 * parse.c (innermost_block): Remove global.
9294 (write_dollar_variable): Update.
9295 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
9296 Remove "tracker_types" parameter.
9297 (parse_expression): Add "tracker" parameter.
9298 (parse_expression_for_completion): Update.
9299 (null_post_parser): Add "tracker" parameter.
9300 * p-exp.y: Update rules.
9301 * m2-exp.y: Update rules.
9302 * language.h (struct language_defn) <la_post_parser>: Add
9303 "tracker" parameter.
9304 * go-exp.y: Update rules.
9305 * f-exp.y: Update rules.
9306 * expression.h (parse_expression, parse_exp_1): Add "tracker"
9307 parameter.
9308 * d-exp.y: Update rules.
9309 * c-exp.y: Update rules.
9310 * breakpoint.c (set_breakpoint_condition): Create an
9311 innermost_block_tracker.
9312 (watch_command_1): Likewise.
9313 * ada-lang.c (resolve): Add "tracker" parameter.
9314 (resolve_subexp): Likewise.
9315 * ada-exp.y (write_var_from_sym): Update.
9316
dac43e32
TT
93172019-04-04 Tom Tromey <tom@tromey.com>
9318
9319 * type-stack.h: New file.
9320 * type-stack.c: New file.
9321 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
9322 type-stack.h.
9323 (insert_into_type_stack, insert_type, push_type, push_type_int)
9324 (insert_type_address_space, pop_type, pop_type_int)
9325 (pop_typelist, pop_type_stack, append_type_stack)
9326 (push_type_stack, get_type_stack, push_typelist)
9327 (follow_type_instance_flags, follow_types): Don't declare.
9328 * parse.c (type_stack): Remove global.
9329 (parse_exp_in_context): Update.
9330 (insert_into_type_stack, insert_type, push_type, push_type_int)
9331 (insert_type_address_space, pop_type, pop_type_int)
9332 (pop_typelist, pop_type_stack, append_type_stack)
9333 (push_type_stack, get_type_stack, push_typelist)
9334 (follow_type_instance_flags, follow_types): Remove (moved to
9335 type-stack.c).
9336 * f-exp.y (type_stack): New global.
9337 Update rules.
9338 (push_kind_type, f_parse): Update.
9339 * d-exp.y (type_stack): New global.
9340 Update rules.
9341 (d_parse): Update.
9342 * c-exp.y (struct c_parse_state) <type_stack>: New member.
9343 Update rules.
9344 * Makefile.in (COMMON_SFILES): Add type-stack.c.
9345 (HFILES_NO_SRCDIR): Add type-stack.h.
9346
2a612529
TT
93472019-04-04 Tom Tromey <tom@tromey.com>
9348
9349 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
9350 (rust_parser::convert_ast_to_expression, rust_parse)
9351 (rust_lex_test_completion, rust_lex_tests): Update.
9352 * parser-defs.h (struct expr_completion_state): New.
9353 (struct parser_state) <parser_state>: Add completion parameter.
9354 <mark_struct_expression, mark_completion_tag>: New methods.
9355 <parse_completion, m_completion_state>: New members.
9356 (prefixify_expression, null_post_parser): Update.
9357 (mark_struct_expression, mark_completion_tag): Don't declare.
9358 * parse.c (parse_completion, expout_last_struct)
9359 (expout_tag_completion_type, expout_completion_name): Remove
9360 globals.
9361 (parser_state::mark_struct_expression)
9362 (parser_state::mark_completion_tag): Now methods.
9363 (prefixify_expression): Add last_struct parameter.
9364 (prefixify_subexp): Likewise.
9365 (parse_exp_1): Update.
9366 (parse_exp_in_context): Add cstate parameter. Update.
9367 (parse_expression_for_completion): Create an
9368 expr_completion_state.
9369 (null_post_parser): Add "completion" parameter.
9370 * p-exp.y: Update rules.
9371 (yylex): Update.
9372 * language.h (struct language_defn) <la_post_parser>: Add
9373 "completing" parameter.
9374 * go-exp.y: Update rules.
9375 (lex_one_token): Update.
9376 * expression.h (parse_completion): Don't declare.
9377 * d-exp.y: Update rules.
9378 (lex_one_token): Update rules.
9379 * c-exp.y: Update rules.
9380 (lex_one_token): Update.
9381 * ada-lang.c (resolve): Add "parse_completion" parameter.
9382 (resolve_subexp): Likewise.
9383 (ada_resolve_function): Likewise.
9384
43476f0b
TT
93852019-04-04 Tom Tromey <tom@tromey.com>
9386
9387 * parser-defs.h (struct parser_state) <start_arglist,
9388 end_arglist>: New methods.
9389 <arglist_len, m_funcall_chain>: New members.
9390 (arglist_len, start_arglist, end_arglist): Don't declare.
9391 * parse.c (arglist_len, funcall_chain): Remove global.
9392 (start_arglist, end_arglist): Remove functions.
9393 (parse_exp_in_context): Update.
9394 * p-exp.y: Update rules.
9395 * m2-exp.y: Update rules.
9396 * go-exp.y: Update rules.
9397 * f-exp.y: Update rules.
9398 * d-exp.y: Update rules.
9399 * c-exp.y: Update rules.
9400
5776fca3
TT
94012019-04-04 Tom Tromey <tom@tromey.com>
9402
9403 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
9404 lex_operator, push_back>: New methods.
9405 Update all rules.
9406 (rust_parser::lex_hex, lex_escape): Rename and update.
9407 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
9408 (rust_parser::lex_operator): Rename and update.
9409 (rust_parser::lex_number, rustyylex, rustyyerror)
9410 (rust_lex_test_init, rust_lex_test_sequence)
9411 (rust_lex_test_push_back, rust_lex_tests): Update.
9412 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
9413 parameter.
9414 <lexptr, prev_lexptr>: New members.
9415 (lexptr, prev_lexptr): Don't declare.
9416 * parse.c (lexptr, prev_lexptr): Remove globals.
9417 (parse_exp_in_context): Update.
9418 * p-exp.y (yylex, yyerror): Update.
9419 * m2-exp.y (parse_number, yylex, yyerror): Update.
9420 * go-exp.y (lex_one_token, yyerror): Update.
9421 * f-exp.y (match_string_literal, yylex, yyerror): Update.
9422 * d-exp.y (lex_one_token, yyerror): Update.
9423 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
9424 (lex_one_token, yyerror): Update.
9425 * ada-lex.l (YY_INPUT): Update.
9426 (rewind_to_char): Update.
9427 * ada-exp.y (yyerror): Update.
9428
8621b685
TT
94292019-04-04 Tom Tromey <tom@tromey.com>
9430
9431 * rust-exp.y (rustyylex, rust_lex_tests): Update.
9432 * parser-defs.h (struct parser_state) <parser_state>: Add new
9433 parameter.
9434 <comma_terminates>: New member.
9435 (comma_terminates): Don't declare global.
9436 * parse.c (comma_terminates): Remove global.
9437 (parse_exp_in_context): Update.
9438 * p-exp.y (yylex): Update.
9439 * m2-exp.y (yylex): Update.
9440 * go-exp.y (lex_one_token): Update.
9441 * f-exp.y (yylex): Update.
9442 * d-exp.y (lex_one_token): Update.
9443 * c-exp.y (lex_one_token): Update.
9444 * ada-lex.l: Update.
9445
28aaf3fd
TT
94462019-04-04 Tom Tromey <tom@tromey.com>
9447
9448 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
9449 (rustyylex, rust_lex_test_init, rust_lex_test_one)
9450 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
9451 * parser-defs.h (paren_depth): Don't declare.
9452 * parse.c (paren_depth): Remove global.
9453 (parse_exp_in_context): Update.
9454 * p-exp.y (paren_depth): New global.
9455 (pascal_parse): Initialize it.
9456 * m2-exp.y (paren_depth): New global.
9457 (m2_parse): Initialize it.
9458 * go-exp.y (paren_depth): New global.
9459 (go_parse): Initialize it.
9460 * f-exp.y (paren_depth): New global.
9461 (f_parse): Initialize it.
9462 * d-exp.y (paren_depth): New global.
9463 (d_parse): Initialize it.
9464 * c-exp.y (paren_depth): New global.
9465 (c_parse): Initialize it.
9466 * ada-lex.l (paren_depth): New global.
9467 (lexer_init): Initialize it.
9468
1e58a4a4
TT
94692019-04-04 Tom Tromey <tom@tromey.com>
9470
9471 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
9472 (rust_parser::convert_ast_to_type)
9473 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9474 * parser-defs.h (struct parser_state) <parser_state>: Add
9475 parameters. Initialize new members.
9476 <expression_context_block, expression_context_pc>: New members.
9477 * parse.c (expression_context_block, expression_context_pc):
9478 Remove globals.
9479 (parse_exp_in_context): Update.
9480 * p-exp.y: Update all rules.
9481 (yylex): Update.
9482 * m2-exp.y: Update all rules.
9483 (yylex): Update.
9484 * go-exp.y (yylex): Update.
9485 * f-exp.y (yylex): Update.
9486 * d-exp.y: Update all rules.
9487 (yylex): Update.
9488 * c-exp.y: Update all rules.
9489 (lex_one_token, classify_name, yylex, c_parse): Update.
9490 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
9491
37eedb39
TT
94922019-04-04 Tom Tromey <tom@tromey.com>
9493
9494 * gdbarch.h, gdbarch.c: Rebuild.
9495 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
9496 * stap-probe.h:
9497 (struct stap_parse_info): Replace "parser_state" with
9498 "expr_builder".
9499 * parser-defs.h (struct expr_builder): Rename from "parser_state".
9500 (parser_state): New class.
9501 * parse.c (expr_builder): Rename.
9502 (expr_builder::release): Rename.
9503 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
9504 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
9505 (write_exp_elt_longcst, write_exp_elt_floatcst)
9506 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
9507 (write_exp_string_vector, write_exp_bitstring)
9508 (write_exp_msymbol, mark_struct_expression)
9509 (write_dollar_variable)
9510 (insert_type_address_space, increase_expout_size): Replace
9511 "parser_state" with "expr_builder".
9512 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
9513 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
9514 "parser_state" with "expr_builder".
9515
73923d7e
TT
95162019-04-04 Tom Tromey <tom@tromey.com>
9517
9518 * rust-exp.y: Replace "parse_language" with method call.
9519 * p-exp.y:
9520 (yylex): Replace "parse_language" with method call.
9521 * m2-exp.y:
9522 (yylex): Replace "parse_language" with method call.
9523 * go-exp.y (classify_name): Replace "parse_language" with method
9524 call.
9525 * f-exp.y (yylex): Replace "parse_language" with method call.
9526 * d-exp.y (lex_one_token): Replace "parse_language" with method
9527 call.
9528 * c-exp.y:
9529 (lex_one_token, classify_name, yylex): Replace "parse_language"
9530 with method call.
9531 * ada-exp.y (find_primitive_type, type_char)
9532 (type_system_address): Replace "parse_language" with method call.
9533
fa9f5be6
TT
95342019-04-04 Tom Tromey <tom@tromey.com>
9535
9536 * rust-exp.y: Replace "parse_gdbarch" with method call.
9537 * parse.c (write_dollar_variable, insert_type_address_space):
9538 Replace "parse_gdbarch" with method call.
9539 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
9540 call.
9541 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
9542 call.
9543 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
9544 "parse_gdbarch" with method call.
9545 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
9546 with method call.
9547 * f-exp.y (parse_type, parse_f_type, yylex): Replace
9548 "parse_gdbarch" with method call.
9549 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
9550 "parse_gdbarch" with method call.
9551 * c-exp.y (parse_type, parse_number, classify_name): Replace
9552 "parse_gdbarch" with method call.
9553 * ada-lex.l: Replace "parse_gdbarch" with method call.
9554 * ada-exp.y (parse_type, find_primitive_type, type_char)
9555 (type_system_address): Replace "parse_gdbarch" with method call.
9556
1201a264
TT
95572019-04-04 Tom Tromey <tom@tromey.com>
9558
9559 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
9560 * stap-probe.c (stap_parse_argument): Update.
9561 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
9562 initial_size parameter.
9563 * rust-exp.y (rust_lex_tests): Update.
9564 * parse.c (parser_state): Update.
9565 (parse_exp_in_context): Update.
9566 * parser-defs.h (struct parser_state) <parser_state>: Remove
9567 "initial_size" parameter.
9568
e3980ce2
TT
95692019-04-04 Tom Tromey <tom@tromey.com>
9570
9571 * parser-defs.h (increase_expout_size): Don't declare.
9572 * parse.c (increase_expout_size): Now static.
9573
e9f8e3f1
TS
95742019-04-04 Thomas Schwinge <thomas@codesourcery.com>
9575
9576 * gnu-nat.c (gnu_nat_target::wait): Fix
9577 target_waitstatus_to_string call.
9578
d7df6549
AB
95792019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9580
9581 * eval.c (evaluate_subexp_standard): Handle internal functions
9582 during Fortran function call handling.
9583
8bdc1658
AB
95842019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9585
9586 * NEWS: Mention new internal functions.
9587 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
9588 (read_base_type): Use dwarf2_init_complex_target_type.
9589 * value.c (creal_internal_fn): New function.
9590 (cimag_internal_fn): New function.
9591 (_initialize_values): Register new internal functions.
9592
c29705b7
PW
95932019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9594
9595 * infrun.c (stop_all_threads): If debug_infrun, always
9596 trace the wait status after wait_one, using
9597 target_waitstatus_to_string and target_pid_to_str.
9598 (handle_inferior_event): Replace various trace of
9599 wait status kind by a single trace.
9600 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
9601 wait status kind image by target_waitstatus_to_string.
9602 * target/waitstatus.c (target_waitstatus_to_string): Fix
9603 obsolete comment.
9604
05caa1d2
TT
96052019-04-01 Tom Tromey <tromey@adacore.com>
9606
9607 PR symtab/23331:
9608 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
9609
9d1447e0
SDJ
96102019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
9611 Pedro Alves <palves@redhat.com>
9612
9613 * top.c (quit_force): Call 'finalize_values'.
9614 * value.c (finalize_values): New function.
9615 * value.h (finalize_values): Declare.
9616
7734102d
EZ
96172019-03-30 Eli Zaretskii <eliz@gnu.org>
9618
9619 * NEWS: Announce $_gdb_major and $_gdb_minor.
9620
9621 * top.c (init_gdb_version_vars): New function.
9622 (gdb_init): Call init_gdb_version_vars.
9623
188e1fa9
TT
96242019-03-29 Tom Tromey <tromey@adacore.com>
9625
9626 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
9627 help text. Remove dead code.
9628
2880242d
KS
96292019-03-29 Keith Seitz <keiths@redhat.com>
9630
9631 From Siddhesh Poyarekar:
9632 * f-lang.h (f77_get_upperbound): Return LONGEST.
9633 (f77_get_lowerbound): Likewise.
9634 * f-typeprint.c (f_type_print_varspec_suffix): Expand
9635 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
9636 print them.
9637 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
9638 plongest to format print it.
9639 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
9640 (f77_get_upperbound): Likewise.
9641 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
9642 LOWER_BOUND to LONGEST.
9643 (f77_create_arrayprint_offset_tbl): Likewise.
9644
cc1defb1
KS
96452019-03-29 Keith Seitz <keiths@redhat.com>
9646
9647 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
9648 %s/pulongest for TYPE_LENGTH instead of %d in format
9649 strings.
9650 * ada-typerint.c (ada_print_type): Likewise.
9651 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
9652 * compile/compile-c-support.c (generate_register_struct): Likewise.
9653 * gdbtypes.c (recursive_dump_type): Likewise.
9654 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
9655 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
9656 instead of %d in format strings.
9657 * riscv-tdep.c (riscv_type_alignment): Cast second argument
9658 to std::min to ULONGEST.
9659 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
9660 instead of %d in format strings.
9661 * tracepoint.c (info_scope_command): Likewise.
9662 * typeprint.c (print_offset_data::update)
9663 (print_offset_data::finish): Likewise.
9664 * xtensa-tdep.c (xtensa_store_return_value)
9665 (xtensa_push_dummy_call): Likewise.
9666
e432ccf1
JT
96672019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
9668
9669 * windows-nat.c (display_selector): Fixed format specifications
9670 for 64-bit Cygwin.
9671
65d2b333
PW
96722019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9673
9674 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
9675
f489207e
SL
96762019-03-28 Sandra Loosemore <sandra@codesourcery.com>
9677
9678 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
9679 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
9680 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
9681 (nios2_linux_init_abi): Install it.
9682
bffa1015
AH
96832019-03-28 Alan Hayward <alan.hayward@arm.com>
9684
9685 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
9686
fc96163a
AH
96872019-03-28 Alan Hayward <alan.hayward@arm.com>
9688
9689 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
9690
20dc7e9b
PW
96912019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9692 Tom Tromey <tromey@adacore.com>
9693
9694 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
9695
7f5331a8
JB
96962019-03-26 Joel Brobecker <brobecker@adacore.com>
9697
9698 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
9699 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
9700 method to compute the bounds of range types. Also print "[evaluated]"
9701 if the bounds' values come from a dynamic evaluation.
9702
18c77628
AB
97032019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
9704
9705 * cp-valprint.c (cp_print_value_fields): Don't print trailing
9706 whitespace when pretty printing is on.
9707
53c973f2
AH
97082019-03-26 Alan Hayward <alan.hayward@arm.com>
9709
e79be6e5 9710 * ppc-linux-nat.c: Add include.
53c973f2 9711
d851aa71
AH
97122019-03-26 Alan Hayward <alan.hayward@arm.com>
9713
e79be6e5 9714 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 9715
2fe7bab7
AH
97162019-03-26 Alan Hayward <alan.hayward@arm.com>
9717
e79be6e5 9718 * arm-linux-nat.c: Add include.
2fe7bab7 9719
068ef30e
SM
97202019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
9721
9722 * source-cache.c (source_cache::get_source_lines): Re-read
9723 fullname after calling open_source_file.
9724
81a24d04
JB
97252019-03-25 John Baldwin <jhb@FreeBSD.org>
9726
9727 * NEWS: Mention TLS support for FreeBSD.
9728
79e7ae11
TT
97292019-03-25 Tom Tromey <tromey@adacore.com>
9730
9731 * minsyms.c (BUNCH_SIZE): Update comment.
9732 (~minimal_symbol_reader): Remove old comment.
9733 (compact_minimal_symbols): Update comment.
9734 (minimal_symbol_reader::install): Remove old comment. Update
9735 other comments.
9736
d45963c2
AH
97372019-03-25 Alan Hayward <alan.hayward@arm.com>
9738
9739 * s390-linux-nat.c: Add include.
9740
0f83012e
AH
97412019-03-25 Alan Hayward <alan.hayward@arm.com>
9742
9743 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
9744 Call linux_get_hwcap.
9745 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
9746 Likewise.
9747 (aarch64_linux_get_hwcap): Remove function.
9748 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
9749 declaration.
9750 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
9751 linux_get_hwcap.
9752 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
9753 * linux-tdep.c (linux_get_hwcap): Add function.
9754 (linux_get_hwcap2): Likewise.
9755 * linux-tdep.h (linux_get_hwcap): Add declaration.
9756 (linux_get_hwcap2): Likewise.
9757 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
9758 (ppc_linux_get_hwcap2): Likewise.
9759 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
9760 linux_get_hwcap.
9761 (ppc_linux_nat_target::insert_watchpoint): Likewise.
9762 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
9763 (ppc_linux_nat_target::read_description): Likewise.
9764 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
9765 * s390-linux-nat.c: Likewise.
9766 * s390-linux-tdep.c (s390_core_read_description): Likewise.
9767
6640a367
TT
97682019-03-24 Tom Tromey <tom@tromey.com>
9769
9770 * ada-lang.c (standard_lookup): Simplify initialization.
9771 (ada_lookup_symbol_nonlocal): Simplify return.
9772 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
9773 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
9774 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
9775 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
9776 initialization.
9777 * solib.c (solib_global_lookup): Simplify.
9778 * symtab.c (null_block_symbol): Remove.
9779 (symbol_cache_lookup): Simplify returns.
9780 (lookup_language_this): Simplify returns.
9781 (lookup_symbol_aux): Simplify return.
9782 (lookup_local_symbol): Simplify returns.
9783 (lookup_global_symbol_from_objfile): Simplify return.
9784 (lookup_symbol_in_objfile_symtabs)
9785 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
9786 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
9787 (lookup_static_symbol, lookup_global_symbol): Simplify return.
9788 * cp-namespace.c (cp_lookup_bare_symbol)
9789 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
9790 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
9791 (cp_lookup_nested_symbol): Don't use null_block_symbol.
9792 (cp_lookup_symbol_via_imports): Simplify initialization.
9793 (find_symbol_in_baseclass): Likewise.
9794 * symtab.h (null_block_symbol): Remove.
9795 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
9796 (d_lookup_nested_symbol, d_lookup_symbol_imports)
9797 (d_lookup_symbol_module): Likewise.
9798 (find_symbol_in_baseclass): Simplify initialization.
9799
a930ebcd
TT
98002019-03-24 Tom Tromey <tom@tromey.com>
9801
9802 * expression.h: Don't include symtab.h.
9803 (struct block): Forward declare.
9804
582942f4
TT
98052019-03-24 Tom Tromey <tom@tromey.com>
9806
9807 * c-exp.y (typebase): Remove casts.
9808 * gdbtypes.c (lookup_unsigned_typename, )
9809 (lookup_signed_typename): Remove cast.
9810 * eval.c (parse_to_comma_and_eval): Remove cast.
9811 * parse.c (write_dollar_variable): Remove cast.
9812 * block.h (struct block) <superblock>: Now const.
9813 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
9814 * psymtab.c (psym_map_matching_symbols): Make "block" const.
9815 (map_block): Make "block" const.
9816 * symfile.h (struct quick_symbol_functions)
9817 <map_matching_symbols>: Constify block argument to "callback".
9818 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
9819 const.
9820 (find_pc_sect_compunit_symtab): Make "b" const.
9821 (find_symbol_at_address): Likewise.
9822 (search_symbols): Likewise.
9823 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
9824 (dw2_debug_names_lookup_symbol): Likewise.
9825 (dw2_map_matching_symbols): Update.
9826 * p-valprint.c (pascal_val_print): Remove "block".
9827 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
9828 (aux_add_nonlocal_symbols): Make "block" const.
9829 (resolve_subexp): Remove cast.
9830 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
9831 const.
9832 (iterate_over_file_blocks): Likewise.
9833 * f-exp.y (%union) <bval>: Remove.
9834 * coffread.c (patch_opaque_types): Make "b" const.
9835 * spu-tdep.c (spu_catch_start): Make "block" const.
9836 * c-valprint.c (print_unpacked_pointer): Remove "block".
9837 * symmisc.c (dump_symtab_1): Make "b" const.
9838 (block_depth): Make "block" const.
9839 * d-exp.y (%union) <bval>: Remove.
9840 * cp-support.h (cp_lookup_rtti_type): Update.
9841 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
9842 * psymtab.c (psym_lookup_symbol): Make "block" const.
9843 (maintenance_check_psymtabs): Make "b" const.
9844 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
9845 (enumerate_locals, enumerate_args): Update.
9846 * python/py-symtab.c (stpy_global_block): Make "block" const.
9847 (stpy_static_block): Likewise.
9848 * inline-frame.c (block_starting_point_at): Make "new_block"
9849 const.
9850 * block.c (find_block_in_blockvector): Make return type const.
9851 (blockvector_for_pc_sect): Make "b" const.
9852 (find_block_in_blockvector): Make "b" const.
9853
7ad417dd
TT
98542019-03-23 Tom Tromey <tom@tromey.com>
9855
9856 * varobj.c (varobj_create): Update.
9857 * symfile.c (clear_symtab_users): Don't reset innermost_block.
9858 * printcmd.c (display_command, do_one_display): Don't reset
9859 innermost_block.
9860 * parser-defs.h (enum innermost_block_tracker_type): Move to
9861 expression.h.
9862 (innermost_block): Update comment.
9863 * parse.c (parse_exp_1): Add tracker_types parameter.
9864 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
9865 tracker_types parameter. Reset innermost_block.
9866 (parse_exp_in_context): Remove.
9867 (parse_expression_for_completion): Update.
9868 * objfiles.c (~objfile): Don't reset expression_context_block or
9869 innermost_block.
9870 * expression.h (enum innermost_block_tracker_type): Move from
9871 parser-defs.h.
9872 (parse_exp_1): Add tracker_types parameter.
9873 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
9874 reset innermost_block.
9875
b366c208
TT
98762019-03-23 Tom Tromey <tom@tromey.com>
9877
9878 * objfiles.h: Include bcache.h.
9879
9bb9b2f9
TT
98802019-03-23 Tom Tromey <tom@tromey.com>
9881
9882 * linespec.c (get_current_search_block): Use
9883 scoped_restore_current_language.
9884 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
9885
59c28372
AH
98862019-03-22 Alan Hayward <alan.hayward@arm.com>
9887 Jiong Wang <jiong.wang@arm.com>
9888
9889 * aarch64-linux-tdep.c
9890 (aarch64_linux_iterate_over_regset_sections): Check for pauth
9891 section.
9892 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
9893
17e116a7
AH
98942019-03-22 Alan Hayward <alan.hayward@arm.com>
9895 Jiong Wang <jiong.wang@arm.com>
9896
9897 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
9898 instructions.
9899 (aarch64_analyze_prologue_test): Add PACIASP test.
9900 (aarch64_prologue_prev_register): Unmask PC value.
9901
11e1b75f
AH
99022019-03-22 Alan Hayward <alan.hayward@arm.com>
9903 Jiong Wang <jiong.wang@arm.com>
9904
9905 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
9906 (aarch64_dwarf2_prev_register): Unmask PC value.
9907 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
9908 (aarch64_execute_dwarf_cfa_vendor_op): Check for
9909 DW_CFA_AARCH64_negate_ra_state.
9910 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
9911
34dcc7cf
AH
99122019-03-22 Alan Hayward <alan.hayward@arm.com>
9913 Jiong Wang <jiong.wang@arm.com>
9914
9915 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
9916 registers.
9917 (aarch64_pseudo_register_name): Likewise.
9918 (aarch64_pseudo_register_type): Likewise.
9919 (aarch64_pseudo_register_reggroup_p): Likewise.
9920 (aarch64_gdbarch_init): Add pauth registers.
9921 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
9922 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
9923 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
9924 (struct gdbarch_tdep): Add regnum for ra_state.
9925
1ef53e6b
AH
99262019-03-22 Alan Hayward <alan.hayward@arm.com>
9927 Jiong Wang <jiong.wang@arm.com>
9928
9929 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
9930
76bed0fd
AH
99312019-03-22 Alan Hayward <alan.hayward@arm.com>
9932 Jiong Wang <jiong.wang@arm.com>
9933
9934 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
9935 function.
9936 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
9937 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
9938 (aarch64_gdbarch_init): Add puth registers.
9939 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
9940 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
9941 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
9942
ee4fbcfa
AH
99432019-03-22 Alan Hayward <alan.hayward@arm.com>
9944 Jiong Wang <jiong.wang@arm.com>
9945
9946 * aarch64-linux-nat.c
9947 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
9948 * aarch64-linux-tdep.c
9949 (aarch64_linux_core_read_description): Likewise.
9950 (aarch64_linux_get_hwcap): New function.
9951 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
9952 (aarch64_linux_get_hwcap): New declaration.
9953
6dc0ebde
AH
99542019-03-22 Alan Hayward <alan.hayward@arm.com>
9955 Jiong Wang <jiong.wang@arm.com>
9956
9957 * aarch64-linux-nat.c
9958 (aarch64_linux_nat_target::read_description): Add pauth param.
9959 * aarch64-linux-tdep.c
9960 (aarch64_linux_core_read_description): Likewise.
9961 * aarch64-tdep.c (struct target_desc): Add in pauth.
9962 (aarch64_read_description): Add pauth param.
9963 (aarch64_gdbarch_init): Likewise.
9964 * aarch64-tdep.h (aarch64_read_description): Likewise.
9965 * arch/aarch64.c (aarch64_create_target_description): Likewise.
9966 * arch/aarch64.h (aarch64_create_target_description): Likewise.
9967 * features/Makefile: Add new files.
9968 * features/aarch64-pauth.c: New file.
9969 * features/aarch64-pauth.xml: New file.
9970
595915c1
TT
99712019-03-20 Tom Tromey <tromey@adacore.com>
9972
9973 * infrun.c (handle_inferior_event): Rename from
9974 handle_inferior_event_1. Create a scoped_value_mark.
9975 (handle_inferior_event): Remove.
9976
4c7d57e7
TT
99772019-03-19 Tom Tromey <tromey@adacore.com>
9978
9979 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
9980 * infrun.h (print_stop_event): Add "displays" parameter.
9981 * infrun.c (print_stop_event): Add "displays" parameter.
9982
cb246234
PA
99832019-03-19 Pedro Alves <palves@redhat.com>
9984
9985 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
9986 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
9987 to -1. Fix TABs vs spaces.
9988 (tui_ui_out::tui_ui_out): Don't initialize fields here.
9989 * tui/tui-out.h (tui_ui_out) Add intro comments.
9990 <m_line, m_start_of_line>: In-class initialize, and add describing
9991 comment.
9992
3a0e45b2
AH
99932019-03-18 Alan Hayward <alan.hayward@arm.com>
9994
9995 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
9996 variable names.
9997 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
9998
5371b850
PA
99992019-03-18 Pedro Alves <palves@redhat.com>
10000 Eli Zaretskii <eliz@gnu.org>
10001
10002 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
10003 m_line and m_start_of_line.
10004
b17c4cd0
EZ
100052019-03-18 Eli Zaretskii <eliz@gnu.org>
10006
10007 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
10008 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
10009 it returns a newline. This fixes a regression in TU mode, whereby
10010 the next line is output on the same screen line as the user input.
10011
4bd56d18
TT
100122019-03-18 Tom Tromey <tromey@adacore.com>
10013
10014 * minsyms.c (minimal_symbol_reader::install): Remove call to
10015 obstack_blank.
10016
55c10aca
PA
100172019-03-18 Pedro Alves <palves@redhat.com>
10018
10019 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
10020 New globals.
10021 (apply_style): New, factored out from ...
10022 (apply_ansi_escape): ... this. Handle reverse video mode.
10023 (tui_set_reverse_mode): New function.
10024 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
10025 * tui/tui-winsource.c (tui_show_source_line): Use
10026 tui_set_reverse_mode instead of setting A_STANDOUT.
10027 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
10028 New setter methods.
10029
647bb750
HD
100302019-03-18 Hannes Domani <ssbssa@yahoo.de>
10031
10032 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
10033 Handle tabs.
10034
bff8c71f
TT
100352019-03-18 Tom Tromey <tromey@adacore.com>
10036
10037 * ada-lang.c (empty_array): Add "high" parameter.
10038 (ada_evaluate_subexp): Update.
10039
58785d98
ST
100402019-03-17 Sergei Trofimovich <siarheit@google.com>
10041
10042 * unittests/string_view-selftests.c: Define
10043 _initialize_string_view_selftests unconditionally.
10044
d4cbef22
ВМ
100452019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10046
10047 PR gdb/24350
10048 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
10049
fce4c071
ВМ
100502019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10051
10052 PR gdb/24351
10053 * windows-nat.c (display_selector): Fix format specifiers.
10054
f7f0a123
EZ
100552019-03-17 Eli Zaretskii <eliz@gnu.org>
10056
10057 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
10058 tui_refill_source_window instead of tui_refresh_win, to update the
10059 current execution line. This fixes redisplay of the current line
10060 when stepping through the code with "next" or "step".
10061
ab42892f
EZ
100622019-03-16 Eli Zaretskii <eliz@gnu.org>
10063
10064 * source-cache.c (source_cache::get_source_lines): Call
10065 find_source_lines to initialize s->nlines. This fixes vertical
10066 scrolling of TUI source window when the DOWN arrow is pressed.
10067
8d8c087f
PW
100682019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10069
10070 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
10071 linux-thread-db.c (_initialize_thread_db): Likewise.
10072
798e1c30
EZ
100732019-03-16 Eli Zaretskii <eliz@gnu.org>
10074
10075 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
10076 wclrtoeol in tui_show_source_line". This reverts changes made in
10077 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
10078
eefba3da
TT
100792019-03-15 Tom Tromey <tom@tromey.com>
10080
10081 * symtab.h (struct minimal_symbol): Derive from
10082 general_symbol_info.
10083 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
10084 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10085 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10086 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10087 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
10088 (MSYMBOL_SEARCH_NAME): Update.
10089 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
10090 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
10091 * minsyms.c (minimal_symbol_reader::record_full): Update.
10092
0de2420c
TT
100932019-03-15 Tom Tromey <tom@tromey.com>
10094
10095 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
10096
042d75e4
TT
100972019-03-15 Tom Tromey <tom@tromey.com>
10098
10099 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
10100 unique_xmalloc_ptr.
10101 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
10102 Update.
10103 * minsyms.c (lookup_minimal_symbol_by_pc_section)
10104 (build_minimal_symbol_hash_tables)
10105 (minimal_symbol_reader::install): Update.
10106
db92718b
TT
101072019-03-15 Tom Tromey <tom@tromey.com>
10108
10109 * symtab.c (create_demangled_names_hash): Update.
10110 (symbol_set_names): Update.
10111 * objfiles.h (struct objfile_per_bfd_storage)
10112 <demangled_names_hash>: Now an htab_up.
10113 * objfiles.c (objfile_per_bfd_storage): Simplify.
10114
d6797f46
TT
101152019-03-15 Tom Tromey <tom@tromey.com>
10116
10117 * objfiles.h (struct objfile_per_bfd_storage): Declare
10118 destructor.
10119 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
10120 New.
10121 (get_objfile_bfd_data): Use new. Don't initialize
10122 language_of_main.
10123 (free_objfile_per_bfd_storage): Remove.
10124 (objfile_bfd_data_free, objfile::~objfile): Use delete.
10125
741d7538
TT
101262019-03-15 Tom Tromey <tom@tromey.com>
10127
10128 * symfile.c (reread_symbols): Update.
10129 * objfiles.c (objfile::objfile): Update.
10130 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
10131 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
10132 comment.
10133 (minimal_symbol_reader::install): Update.
10134 (terminate_minimal_symbol_table): Remove.
10135 * jit.c (jit_object_close_impl): Update.
10136
788c80d1
TT
101372019-03-15 Tom Tromey <tom@tromey.com>
10138
10139 * minsyms.c (minimal_symbol_reader::record_full): Remove some
10140 initializations.
10141
1b7a07cb
TT
101422019-03-15 Tom Tromey <tom@tromey.com>
10143
10144 * objfiles.h (struct objfile_per_bfd_storage)
10145 <demangled_hash_languages>: Now a bitset.
10146 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
10147 (lookup_minimal_symbol): Update.
10148
3db066bc
TT
101492019-03-15 Tom Tromey <tom@tromey.com>
10150
10151 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
10152 Don't return the symbol.
10153 * coffread.c (record_minimal_symbol): Use record_full.
10154
3fff2c37
EZ
101552019-03-14 Eli Zaretskii <eliz@gnu.org>
10156
10157 The MS-Windows port of ncurses fails to switch to a color pair if
10158 one or both of the colors are the implicit default colors. This
10159 change records the default colors when TUI is initialized, and
10160 then specifies them explicitly when a color pair uses the default
10161 colors. This allows color styling in TUI mode on MS-Windows.
10162
10163 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
10164 ncurses_norm_attr.
10165 (tui_initialize_io) [__MINGW32__]: Record the default terminal
10166 colors in ncurses_norm_attr.
10167 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
10168 "none", replace it with the default color recorded in
10169 ncurses_norm_attr.
10170
3b336828
TT
101712019-03-14 Tom Tromey <tromey@adacore.com>
10172
10173 * source-cache.h (class source_cache) <get_source_lines>: Return
10174 std::string.
10175 * source-cache.c (source_cache::extract_lines): Handle case where
10176 first_pos==npos. Return std::string.
10177 (source_cache::get_source_lines): Update.
10178
d085f989
TT
101792019-03-14 Tom Tromey <tromey@adacore.com>
10180
10181 * NEWS: Add item for "style sources" commands.
10182 * source-cache.c (source_cache::get_source_lines): Check
10183 source_styling.
10184 * cli/cli-style.c (source_styling): New global.
10185 (_initialize_cli_style): Add "style sources" commands.
10186 (show_style_sources): New function.
10187 * cli/cli-style.h (source_styling): Declare.
10188
6f11e682
TT
101892019-03-14 Pedro Alves <palves@redhat.com>
10190 Tom Tromey <tromey@adacore.com>
10191
10192 * tui/tui-winsource.h (tui_refill_source_window): Declare.
10193 * tui/tui-winsource.c (tui_refill_source_window): New function,
10194 from...
10195 (tui_horizontal_source_scroll): ... here. Move some logic.
10196 * cli/cli-style.c (set_style_enabled): Notify new observable.
10197 * tui/tui-hooks.c (tui_redisplay_source): New function.
10198 (tui_attach_detach_observers): Attach or detach
10199 tui_redisplay_source.
10200 * observable.h (source_styling_changed): New observable.
10201 * observable.c: Define source_styling_changed observable.
10202
a068643d
TT
102032019-03-13 Tom Tromey <tromey@adacore.com>
10204
10205 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
10206 (i386_gnu_nat_target::store_registers): Update.
10207 * target-debug.h (target_debug_print_std_string): New macro.
10208 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10209 * windows-tdep.c (display_one_tib): Update.
10210 * tui/tui-stack.c (tui_make_status_line): Update.
10211 * top.c (print_inferior_quit_action): Update.
10212 * thread.c (thr_try_catch_cmd): Update.
10213 (add_thread_with_info): Update.
10214 (thread_target_id_str): Update.
10215 (thr_try_catch_cmd): Update.
10216 (thread_command): Update.
10217 (thread_find_command): Update.
10218 * record-btrace.c (record_btrace_target::info_record)
10219 (record_btrace_resume_thread, record_btrace_target::resume)
10220 (record_btrace_cancel_resume, record_btrace_step_thread)
10221 (record_btrace_target::wait, record_btrace_target::wait)
10222 (record_btrace_target::wait, record_btrace_target::stop): Update.
10223 * progspace.c (print_program_space): Update.
10224 * process-stratum-target.c
10225 (process_stratum_target::thread_address_space): Update.
10226 * linux-fork.c (linux_fork_mourn_inferior)
10227 (detach_checkpoint_command, info_checkpoints_command)
10228 (linux_fork_context): Update.
10229 (linux_fork_detach): Update.
10230 (class scoped_switch_fork_info): Update.
10231 (delete_checkpoint_command): Update.
10232 * infrun.c (follow_fork_inferior): Update.
10233 (follow_fork_inferior): Update.
10234 (proceed_after_vfork_done): Update.
10235 (handle_vfork_child_exec_or_exit): Update.
10236 (follow_exec): Update.
10237 (displaced_step_prepare_throw): Update.
10238 (displaced_step_restore): Update.
10239 (start_step_over): Update.
10240 (resume_1): Update.
10241 (clear_proceed_status_thread): Update.
10242 (proceed): Update.
10243 (print_target_wait_results): Update.
10244 (do_target_wait): Update.
10245 (context_switch): Update.
10246 (stop_all_threads): Update.
10247 (restart_threads): Update.
10248 (finish_step_over): Update.
10249 (handle_signal_stop): Update.
10250 (switch_back_to_stepped_thread): Update.
10251 (keep_going_pass_signal): Update.
10252 (print_exited_reason): Update.
10253 (normal_stop): Update.
10254 * inferior.c (inferior_pid_to_str): Change return type.
10255 (print_selected_inferior): Update.
10256 (add_inferior): Update.
10257 (detach_inferior): Update.
10258 * dummy-frame.c (fprint_dummy_frames): Update.
10259 * dcache.c (dcache_info_1): Update.
10260 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
10261 (btrace_fetch, btrace_clear): Update.
10262 * linux-tdep.c (linux_core_pid_to_str): Change return type.
10263 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
10264 type.
10265 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
10266 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
10267 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
10268 * gdbarch.c, gdbarch.h: Rebuild.
10269 * gdbarch.sh (core_pid_to_str): Change return type.
10270 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
10271 return type.
10272 (windows_nat_target::pid_to_str): Change return type.
10273 (windows_delete_thread): Update.
10274 (windows_nat_target::attach): Update.
10275 (windows_nat_target::files_info): Update.
10276 * target-delegates.c: Rebuild.
10277 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
10278 return type.
10279 (sol_thread_target::pid_to_str): Change return type.
10280 * remote.c (class remote_target) <pid_to_str>: Change return
10281 type.
10282 (remote_target::pid_to_str): Change return type.
10283 (extended_remote_target::attach, remote_target::remote_stop_ns)
10284 (remote_target::remote_notif_remove_queued_reply)
10285 (remote_target::push_stop_reply, remote_target::disable_btrace):
10286 Update.
10287 (extended_remote_target::attach): Update.
10288 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
10289 type.
10290 (gdbsim_target::pid_to_str): Change return type.
10291 * ravenscar-thread.c (struct ravenscar_thread_target)
10292 <pid_to_str>: Change return type.
10293 (ravenscar_thread_target::pid_to_str): Change return type.
10294 * procfs.c (class procfs_target) <pid_to_str>: Change return
10295 type.
10296 (procfs_target::pid_to_str): Change return type.
10297 (procfs_target::attach): Update.
10298 (procfs_target::detach): Update.
10299 (procfs_target::fetch_registers): Update.
10300 (procfs_target::store_registers): Update.
10301 (procfs_target::wait): Update.
10302 (procfs_target::files_info): Update.
10303 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
10304 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
10305 return type.
10306 (nto_procfs_target::pid_to_str): Change return type.
10307 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
10308 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
10309 return type.
10310 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
10311 (exit_lwp): Update.
10312 (attach_proc_task_lwp_callback, get_detach_signal)
10313 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
10314 (linux_nat_target::resume, wait_lwp, stop_callback)
10315 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
10316 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
10317 (linux_nat_wait_1, resume_stopped_resumed_lwps)
10318 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
10319 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
10320 type.
10321 (inf_ptrace_target::attach): Update.
10322 (inf_ptrace_target::files_info): Update.
10323 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
10324 type.
10325 (go32_nat_target::pid_to_str): Change return type.
10326 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
10327 (gnu_nat_target::wait): Update.
10328 (gnu_nat_target::wait): Update.
10329 (gnu_nat_target::resume): Update.
10330 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
10331 (fbsd_nat_target::wait): Update.
10332 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
10333 type.
10334 (darwin_nat_target::attach): Update.
10335 * corelow.c (class core_target) <pid_to_str>: Change return type.
10336 (core_target::pid_to_str): Change return type.
10337 * target.c (normal_pid_to_str): Change return type.
10338 (default_pid_to_str): Likewise.
10339 (target_pid_to_str): Change return type.
10340 (target_translate_tls_address): Update.
10341 (target_announce_detach): Update.
10342 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
10343 return type.
10344 (bsd_uthread_target::pid_to_str): Change return type.
10345 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
10346 type.
10347 (bsd_kvm_target::pid_to_str): Change return type.
10348 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
10349 return type.
10350 (aix_thread_target::pid_to_str): Change return type.
10351 * target.h (struct target_ops) <pid_to_str>: Change return type.
10352 (target_pid_to_str, normal_pid_to_str): Likewise.
10353 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
10354 type.
10355 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
10356 type.
10357 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
10358 return type.
10359 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
10360 type.
10361 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
10362 type.
10363 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
10364 return type.
10365
b4be1b06
SM
103662019-03-13 Simon Marchi <simon.marchi@ericsson.com>
10367
10368 * NEWS: Mention that the new default MI version is 3. Mention
10369 changes to the output of commands and events that deal with
10370 multi-location breakpoints.
10371 * breakpoint.c: Include "mi/mi-out.h".
10372 (print_one_breakpoint): Change output syntax if using MI version
10373 >= 3.
10374 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
10375 New.
10376 (mi_multi_location_breakpoint_output_fixed): New.
10377 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
10378 (mi_cmd_fix_multi_location_breakpoint_output): New.
10379 (mi_multi_location_breakpoint_output_fixed): New.
10380 * mi/mi-cmds.c (mi_cmds): Register command
10381 -fix-multi-location-breakpoint-output.
10382 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
10383 interpreter "mi".
10384
8e5e5494
SM
103852019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10386
10387 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
10388 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
10389 instantiate mi_ui_out based on interpreter name.
10390 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
10391 * mi/mi-main.c (mi_load_progress): Likewise.
10392
197df35e
JB
103932019-03-12 John Baldwin <jhb@FreeBSD.org>
10394
10395 * NEWS: Combine separate "New targets" sections for 8.3.
10396
8399425f
JB
103972019-03-12 John Baldwin <jhb@FreeBSD.org>
10398
10399 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
10400 (ppcfbsd_init_abi): Install gdbarch
10401 "fetch_tls_load_module_address" and "get_thread_local_address"
10402 methods.
10403
b0f87ed0
JB
104042019-03-12 John Baldwin <jhb@FreeBSD.org>
10405
10406 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
10407 (riscv_fbsd_init_abi): Install gdbarch
10408 "fetch_tls_load_module_address" and "get_thread_local_address"
10409 methods.
10410
ce25aa57
JB
104112019-03-12 John Baldwin <jhb@FreeBSD.org>
10412
10413 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
10414 (i386fbsd_init_abi): Install gdbarch
10415 "fetch_tls_load_module_address" and "get_thread_local_address"
10416 methods.
10417
f5424cfa
JB
104182019-03-12 John Baldwin <jhb@FreeBSD.org>
10419
10420 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
10421 (amd64fbsd_init_abi): Install gdbarch
10422 "fetch_tls_load_module_address" and "get_thread_local_address"
10423 methods.
10424
945f3901
JB
104252019-03-12 John Baldwin <jhb@FreeBSD.org>
10426
10427 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
10428 (struct fbsd_pspace_data): New type.
10429 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
10430 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
10431 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
10432 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
10433 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
10434
ef0bd204
JB
104352019-03-12 John Baldwin <jhb@FreeBSD.org>
10436
10437 * gdbtypes.c (lookup_struct_elt): New function.
10438 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
10439 * gdbtypes.h (struct struct_elt): New type.
10440 (lookup_struct_elt): New prototype.
10441
36c53a02
JB
104422019-03-12 John Baldwin <jhb@FreeBSD.org>
10443
10444 * gdbtypes.c (lookup_struct_elt_type): Update comment and
10445 remove disabled code block.
10446
6e056c81
JB
104472019-03-12 John Baldwin <jhb@FreeBSD.org>
10448
10449 * gdbarch.sh (get_thread_local_address): New method.
10450 * gdbarch.h, gdbarch.c: Regenerate.
10451 * target.c (target_translate_tls_address): Use
10452 gdbarch_get_thread_local_address if present instead of
10453 target::get_thread_local_address.
10454
cd250a18
JB
104552019-03-12 John Baldwin <jhb@FreeBSD.org>
10456
10457 * target.h (target::get_thread_local_address): Update comment.
10458
df22c1e5
JB
104592019-03-12 John Baldwin <jhb@FreeBSD.org>
10460
10461 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
10462 objfile->separate_debug_objfile_backlink if not NULL.
10463
dd6876c9
JB
104642019-03-12 John Baldwin <jhb@FreeBSD.org>
10465
10466 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10467 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
10468 (amd64bsd_store_inferior_registers): Likewise.
10469 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10470 Enable segment base registers.
10471 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
10472 PT_GETFSBASE and PT_GETGSBASE.
10473 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
10474 PT_SETGSBASE.
10475 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
10476 segment base registers.
10477 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10478
1163a4b7
JB
104792019-03-12 John Baldwin <jhb@FreeBSD.org>
10480
10481 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10482 Update calls to i386_target_description to add 'segments'
10483 parameter.
10484 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
10485 add segment base registers.
10486 * arch/i386.c (i386_create_target_description): Add 'segments'
10487 parameter to enable segment base registers.
10488 * arch/i386.h (i386_create_target_description): Likewise.
10489 * features/i386/32bit-segments.xml: New file.
10490 * features/i386/32bit-segments.c: Generate.
10491 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
10492 call to i386_target_description to add 'segments' parameter.
10493 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10494 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
10495 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
10496 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
10497 if feature is present.
10498 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
10499 Add 'segments' parameter to call to i386_target_description.
10500 (i386_target_description): Add 'segments' parameter to enable
10501 segment base registers.
10502 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
10503 to call to i386_target_description.
10504 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
10505 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
10506 Define I386_NUM_REGS.
10507 (i386_target_description): Add 'segments' parameter to enable
10508 segment base registers.
10509
3a350822
EZ
105102019-03-12 Eli Zaretskii <eliz@gnu.org>
10511
10512 PR/24325
10513 * source-cache.c: #undef open and close, to avoid unresolved
10514 externals during linking.
10515
ffdd69cf
TT
105162019-03-12 Tom Tromey <tromey@adacore.com>
10517
10518 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
10519 const. Add initializers.
10520 (_initialize_remote): Don't initialize ptid globals.
10521
ec148c57
PA
105222019-03-12 Pedro Alves <palves@redhat.com>
10523
10524 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
10525
32764270
PA
105262019-03-12 Pedro Alves <palves@redhat.com>
10527
10528 * cp-name-parser.y (main): Remove unused 'len' variable.
10529
17547186
TT
105302019-03-12 Tom Tromey <tromey@adacore.com>
10531
10532 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
10533 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
10534
d3a70e03
TT
105352019-03-12 Tom Tromey <tromey@adacore.com>
10536
10537 * linux-nat.c (iterate_over_lwps): Update.
10538 (stop_callback): Remove parameter.
10539 (stop_wait_callback, detach_callback, resume_set_callback)
10540 (select_singlestep_lwp_callback, set_ignore_sigint)
10541 (status_callback, resumed_callback, resume_clear_callback)
10542 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
10543 data parameter.
10544 (linux_nat_target::detach, linux_nat_target::resume)
10545 (linux_stop_and_wait_all_lwps, select_event_lwp)
10546 (linux_nat_filter_event, linux_nat_wait_1)
10547 (linux_nat_target::kill, linux_nat_target::stop)
10548 (linux_nat_target::stop): Update.
10549 (linux_nat_resume_callback): Change type.
10550 (resume_stopped_resumed_lwps, count_events_callback)
10551 (select_event_lwp_callback): Likewise.
10552 (linux_stop_lwp, linux_nat_stop_lwp): Update.
10553 * arm-linux-nat.c (struct update_registers_data): Remove.
10554 (update_registers_callback): Change type.
10555 (arm_linux_insert_hw_breakpoint1): Update.
10556 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
10557 parameter.
10558 (x86_linux_dr_set_addr): Update.
10559 (x86_linux_dr_set_control): Update.
10560 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
10561 (iterate_over_lwps): Use gdb::function_view.
10562 * nat/aarch64-linux-hw-point.c (struct
10563 aarch64_dr_update_callback_param): Remove.
10564 (debug_reg_change_callback): Change type.
10565 (aarch64_notify_debug_reg_change): Update.
10566 * s390-linux-nat.c (s390_refresh_per_info): Update.
10567
82cb27ff
TT
105682019-03-11 Tom Tromey <tromey@adacore.com>
10569
10570 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
10571 redundant assignment to "this_cu".
10572
568c0683
SM
105732019-03-08 Simon Marchi <simon.marchi@efficios.com>
10574
10575 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
10576
f09ce22d
SM
105772019-03-08 Simon Marchi <simon.marchi@efficios.com>
10578
10579 * gdbtypes.c (rank_one_type_parm_set): New function extracted
10580 from...
10581 (rank_one_type): ... this.
10582
595f96a9
SM
105832019-03-08 Simon Marchi <simon.marchi@efficios.com>
10584
10585 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
10586 from...
10587 (rank_one_type): ... this.
10588
2598a94b
SM
105892019-03-08 Simon Marchi <simon.marchi@efficios.com>
10590
10591 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
10592 from...
10593 (rank_one_type): ... this.
10594
7f17b20d
SM
105952019-03-08 Simon Marchi <simon.marchi@efficios.com>
10596
10597 * gdbtypes.c (rank_one_type_parm_float): New function extracted
10598 from...
10599 (rank_one_type): ... this.
10600
2c509035
SM
106012019-03-08 Simon Marchi <simon.marchi@efficios.com>
10602
10603 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
10604 from...
10605 (rank_one_type): ... this.
10606
0dd322dc
SM
106072019-03-08 Simon Marchi <simon.marchi@efficios.com>
10608
10609 * gdbtypes.c (rank_one_type_parm_range): New function extracted
10610 from...
10611 (rank_one_type): ... this.
10612
41ea4728
SM
106132019-03-08 Simon Marchi <simon.marchi@efficios.com>
10614
10615 * gdbtypes.c (rank_one_type_parm_char): New function extracted
10616 from...
10617 (rank_one_type): ... this.
10618
793cd1d2
SM
106192019-03-08 Simon Marchi <simon.marchi@efficios.com>
10620
10621 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
10622 from...
10623 (rank_one_type): ... this.
10624
34910087
SM
106252019-03-08 Simon Marchi <simon.marchi@efficios.com>
10626
10627 * gdbtypes.c (rank_one_type_parm_int): New function extracted
10628 from...
10629 (rank_one_type): ... this.
10630
f1f832d6
SM
106312019-03-08 Simon Marchi <simon.marchi@efficios.com>
10632
10633 * gdbtypes.c (rank_one_type_parm_func): New function extracted
10634 from...
10635 (rank_one_type): ... this.
10636
b9f4512f
SM
106372019-03-08 Simon Marchi <simon.marchi@efficios.com>
10638
10639 * gdbtypes.c (rank_one_type_parm_array): New function extracted
10640 from...
10641 (rank_one_type): ... this.
10642
9293fc63
SM
106432019-03-08 Simon Marchi <simon.marchi@efficios.com>
10644
10645 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
10646 from...
10647 (rank_one_type): ... this.
10648
e3abbe7e
PW
106492019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10650
10651 * inferior.c (initialize_inferiors): Ensure 'help set/show print
10652 inferior-events' shows the example events.
10653
e4adb939
EZ
106542019-03-08 Eli Zaretskii <eliz@gnu.org>
10655
10656 Support styling on native MS-Windows console
10657
10658 PR/24315
10659 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
10660 on MS-Windows if $TERM is not defined.
10661
10662 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
10663
10664 * posix-hdep.c (gdb_console_fputs):
10665 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
10666 functions.
10667 * ui-file.h (gdb_console_fputs): Add prototype.
10668
10669 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
10670 back to fputs only if the former returns zero.
10671
25629dfd
TT
106722019-03-07 Tom Tromey <tom@tromey.com>
10673
10674 * symmisc.c (print_symbol_bcache_statistics): Update.
10675 (print_objfile_statistics): Update.
10676 * symfile.c (allocate_symtab): Update.
10677 * stabsread.c: Don't include bcache.h.
10678 * psymtab.h (struct psymbol_bcache): Don't declare.
10679 (class psymtab_storage) <psymbol_cache>: Now a bcache.
10680 (psymbol_bcache_init, psymbol_bcache_free)
10681 (psymbol_bcache_get_bcache): Don't declare.
10682 * psymtab.c (struct psymbol_bcache): Remove.
10683 (psymtab_storage::psymtab_storage): Update.
10684 (psymtab_storage::~psymtab_storage): Update.
10685 (psymbol_bcache_init, psymbol_bcache_free)
10686 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
10687 (add_psymbol_to_bcache): Update.
10688 (allocate_psymtab): Update.
10689 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10690 macro_cache>: No longer pointers.
10691 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
10692 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
10693 * macrotab.c (macro_bcache): Update.
10694 * macroexp.c: Don't include bcache.h.
10695 * gdbtypes.c (check_types_worklist): Update.
10696 (types_deeply_equal): Remove TRY/CATCH. Update.
10697 * elfread.c (elf_symtab_read): Update.
10698 * dwarf2read.c: Don't include bcache.h.
10699 * buildsym.c (buildsym_compunit::get_macro_table): Update.
10700 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
10701 (print_bcache_statistics, bcache_memory_used): Don't declare.
10702 (struct bcache): Move from bcache.c. Add constructor, destructor,
10703 methods. Rename all data members.
10704 * bcache.c (struct bcache): Move to bcache.h.
10705 (bcache::expand_hash_table): Rename from expand_hash_table.
10706 (bcache): Remove.
10707 (bcache::insert): Rename from bcache_full.
10708 (bcache::compare): Rename from bcache_compare.
10709 (bcache_xmalloc): Remove.
10710 (bcache::~bcache): Rename from bcache_xfree.
10711 (bcache::print_statistics): Rename from print_bcache_statistics.
10712 (bcache::memory_used): Rename from bcache_memory_used.
10713
fe726667
PA
107142019-03-07 Pedro Alves <palves@redhat.com>
10715
10716 * infrun.c (normal_stop): Also check for
10717 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
10718
7584bb30
AB
107192019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10720
10721 * f-lang.c (value_from_host_double): Moved to...
10722 * value.c (value_from_host_double): ...here.
10723 * value.h (value_from_host_double): Declare.
10724 * guile/scm-math.c (vlscm_convert_typed_number): Use
10725 value_from_host_double.
10726 (vlscm_convert_number): Likewise.
10727 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
10728 * python/py-value.c (convert_value_from_python): Likewise.
10729
a7b1986e
TT
107302019-03-06 Tom Tromey <tom@tromey.com>
10731
10732 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
10733
0ccf4211
TT
107342019-03-06 Tom Tromey <tom@tromey.com>
10735
10736 * utils.h (free_current_contents): Don't declare.
10737 * utils.c (free_current_contents): Remove.
10738
fe7b42e5
TT
107392019-03-06 Tom Tromey <tom@tromey.com>
10740
10741 * top.c (quit_force): Update.
10742 * main.c (captured_command_loop): Update.
10743 * common/new-op.c (operator new): Update.
10744 * common/common-exceptions.c (struct catcher)
10745 <save_cleanup_chain>: Remove member.
10746 (exceptions_state_mc_init): Update.
10747 (exception_try_scope_entry): Return nullptr.
10748 (exception_try_scope_exit, exception_rethrow)
10749 (throw_exception_sjlj, throw_exception_cxx): Update.
10750 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
10751 (all_cleanups, do_cleanups, discard_cleanups)
10752 (discard_final_cleanups, save_cleanups, save_final_cleanups)
10753 (restore_cleanups, restore_final_cleanups): Don't declare.
10754 (do_final_cleanups): Remove parameter.
10755 * common/cleanups.c (cleanup_chain, make_cleanup)
10756 (make_cleanup_dtor, all_cleanups, do_cleanups)
10757 (discard_my_cleanups, discard_cleanups)
10758 (discard_final_cleanups, save_my_cleanups, save_cleanups)
10759 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
10760 (null_cleanup): Remove.
10761 (do_final_cleanups): Remove parameter.
10762
c6321f19
TT
107632019-03-06 Tom Tromey <tom@tromey.com>
10764
10765 * remote.c (remote_target::remote_parse_stop_reply): Use
10766 unique_xmalloc_ptr.
10767
61b30099
TT
107682019-03-06 Tom Tromey <tom@tromey.com>
10769
10770 * stabsread.c (struct stabs_field_info): Rename from field_info.
10771 <list, fnlist>: Add initializers.
10772 <obstack>: New member.
10773 (read_member_functions, read_struct_fields, read_baseclasses):
10774 Allocate on obstack. Don't use cleanups.
10775 (read_one_struct_field, read_member_functions, read_struct_fields)
10776 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
10777 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
10778 (read_struct_type): Update.
10779
6cceac94
TT
107802019-03-06 Tom Tromey <tom@tromey.com>
10781
10782 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
10783 * common/filestuff.h (make_cleanup_close): Don't declare.
10784 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
10785 Remove.
10786
72412762
TT
107872019-03-06 Tom Tromey <tom@tromey.com>
10788
10789 * solib-aix.c: Use make_scope_exit.
10790
2b6ff1c0
TT
107912019-03-06 Tom Tromey <tom@tromey.com>
10792
10793 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
10794 Use make_scope_exit.
10795
d01c5877
TT
107962019-03-06 Tom Tromey <tom@tromey.com>
10797
10798 * solib-svr4.c (disable_probes_interface): Remove parameter.
10799 (svr4_handle_solib_event): Use make_scope_exit.
10800
32603266
TT
108012019-03-06 Tom Tromey <tom@tromey.com>
10802
10803 * remote.c (struct stop_reply_deleter): Remove.
10804 (stop_reply_up): Update.
10805 (struct stop_reply): Derive from notif_event. Don't typedef.
10806 <regcache>: Now a std::vector.
10807 (stop_reply_xfree): Remove.
10808 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
10809 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
10810 (remote_target::discard_pending_stop_replies): Use delete.
10811 (remote_target::remote_parse_stop_reply): Update.
10812 (remote_target::process_stop_reply): Update.
10813 * remote-notif.h (struct notif_event): Add virtual destructor.
10814 Remove "dtr" member.
10815 (struct notif_client) <alloc_event>: Return a unique_ptr.
10816 (notif_event_xfree): Don't declare.
10817 (notif_event_up): New typedef.
10818 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
10819 (notif_event_xfree, do_notif_event_xfree): Remove.
10820 (remote_notif_state_xfree): Update.
10821
9799571e
TT
108222019-03-06 Tom Tromey <tom@tromey.com>
10823
10824 * infrun.c (displaced_step_clear_cleanup): Now a
10825 forward_scope_exit type.
10826 (displaced_step_prepare_throw): Update.
10827 (displaced_step_fixup): Update.
10828
09e3c4ca
TT
108292019-03-06 Tom Tromey <tom@tromey.com>
10830
10831 * inferior.h (class inferior): Update comment.
10832 * gdbthread.h (class thread_info): Update comment.
10833
e2a03548
TT
108342019-03-06 Joel Brobecker <brobecker@adacore.com>
10835 Tom Tromey <tom@tromey.com>
10836
10837 * stabsread.h (struct stab_section_list): Remove.
10838 (coffstab_build_psymtabs): Update.
10839 * dbxread.c (symbuf_sections): Now a std::vector.
10840 (sect_idx): New global.
10841 (fill_symbuf): Update.
10842 (coffstab_build_psymtabs): Change type of stabsects parameter.
10843 Update.
10844 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
10845 std::vector.
10846 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
10847 (coff_locate_sections): Update.
10848 (coff_symfile_read): Remove cleanups. Update.
10849 (init_stringtab): Add storage parameter.
10850 (free_stringtab, free_stringtab_cleanup): Remove.
10851 (init_lineno): Add storage parameter.
10852 (free_linetab, free_linetab_cleanup): Remove.
10853
b7e60d85
PA
108542019-03-06 Pedro Alves <palves@redhat.com>
10855
10856 * linux-fork.c (fork_info::clobber_regs): Delete.
10857 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
10858 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
10859 comment. Adjust.
10860 (scoped_switch_fork_info::scoped_switch_fork_info)
10861 (checkpoint_command, linux_fork_context): Adjust
10862 fork_save_infrun_state calls.
10863
e52c971f
PA
108642019-03-06 Pedro Alves <palves@redhat.com>
10865
10866 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
10867 (inf_has_multiple_threads): Return 'bool' and rewrite using
10868 inferior_info::threads().
10869
06974e6c
PA
108702019-03-06 Pedro Alves <palves@redhat.com>
10871
10872 * linux-fork.c: Include <list>.
10873 (fork_list): Now a std::list instance.
10874 (fork_info): Add ctor, dtor, and in-class initialize all fields.
10875 (forks_exist_p, find_last_fork): Adjust.
10876 (new_fork): Delete.
10877 (one_fork_p): New.
10878 (add_fork): Adjust.
10879 (free_fork): Delete, folded into fork_info::~fork_info().
10880 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
10881 Adjust.
10882 (init_fork_list): Delete.
10883 (linux_fork_killall, linux_fork_mourn_inferior)
10884 (linux_fork_detach, info_checkpoints_command): Adjust.
10885 (_initialize_linux_fork): No longer call init_fork_list.
10886
72f31aea
PA
108872019-03-06 Pedro Alves <palves@redhat.com>
10888
10889 * linux-fork.c (new_fork): New, split out of ...
10890 (add_fork): ... this. Return void. Move "first fork" special
10891 case from here, to ...
10892 (checkpoint_command): ... here.
10893 * linux-linux.h (add_fork): Return void.
10894
efbecbc1
AB
108952019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10896
10897 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
10898
0841c79a
AB
108992019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10900 Chris January <chris.january@arm.com>
10901 David Lecomber <david.lecomber@arm.com>
10902
10903 * f-exp.y: New token, UNOP_INTRINSIC.
10904 (exp): New pattern using UNOP_INTRINSIC token.
10905 (f77_keywords): Add 'abs' keyword.
10906 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
10907 (value_from_host_double): New function.
10908 (evaluate_subexp_f): Support UNOP_ABS.
10909
4a270568
AB
109102019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10911
10912 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
10913 types.
10914
067630bd
AB
109152019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10916
10917 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
10918 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
10919 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
10920
3be47f7a
AB
109212019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10922
10923 * f-exp.y (convert_to_kind_type): Handle more type kinds.
10924
4d00f5d8
AB
109252019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10926 Chris January <chris.january@arm.com>
10927
10928 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
10929 * f-exp.y: Define 'KIND' token.
10930 (exp): New pattern for KIND expressions.
10931 (ptype): Handle types with a kind extension.
10932 (direct_abs_decl): Extend to spot kind extensions.
10933 (f77_keywords): Add 'kind' to the list.
10934 (push_kind_type): New function.
10935 (convert_to_kind_type): New function.
10936 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
10937 * parse.c (operator_length_standard): Likewise.
10938 * parser-defs.h (enum type_pieces): Add tp_kind.
10939 * std-operator.def: Add UNOP_KIND.
10940
e454224f
AB
109412019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10942
10943 * f-exp.y (f_parse): Set yydebug.
10944
9dad4a58
AB
109452019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10946
10947 * f-lang.c (evaluate_subexp_f): New function.
10948 (exp_descriptor_f): New global.
10949 (f_language_defn): Use exp_descriptor_f instead of
10950 exp_descriptor_standard.
10951
c8f91604
AB
109522019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10953
10954 * f-exp.y (struct token): Add comments.
10955 (dot_ops): Remove uppercase versions and the end marker.
10956 (f77_keywords): Likewise.
10957 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
10958 entries in the dot_ops array are case insensitive, and use
10959 strncasecmp to compare strings. Also some whitespace cleanup in
10960 this area. Similar for the f77_keywords array, except entries in
10961 this list might be case sensitive.
10962
dd9f2c76
AB
109632019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10964
10965 * f-exp.y (struct f77_boolean_val): Add comments.
10966 (boolean_values): Remove uppercase versions, and end marker.
10967 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
10968 and use strncasecmp to achieve case insensitivity. Additionally,
10969 perform whitespace cleanup around this code.
10970
67a3048c
TT
109712019-03-06 Tom Tromey <tromey@adacore.com>
10972
10973 * remote-sim.c (gdbsim_target_open): Use result of
10974 gdb_argv::release.
10975
aa3cfbda
RB
109762019-03-06 Richard Bunt <richard.bunt@arm.com>
10977 Dirk Schubert <dirk.schubert@arm.com>
10978 Chris January <chris.january@arm.com>
10979
10980 * eval.c (evaluate_subexp_standard): Call Fortran argument
10981 wrapping logic.
10982 * f-lang.c (struct value): A value which can be passed into a
10983 Fortran function call.
10984 (fortran_argument_convert): Wrap Fortran arguments in a pointer
10985 where appropriate.
10986 (struct type): Value ready for a Fortran function call.
10987 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
10988 is needed.
10989 * f-lang.h (fortran_argument_convert): Declaration.
10990 (fortran_preserve_arg_pointer): Declaration.
10991 * infcall.c (value_arg_coerce): Call Fortran argument logic.
10992
ea38e5df
TT
109932019-03-05 Tom Tromey <tromey@adacore.com>
10994
10995 * python/py-prettyprint.c (print_string_repr): Remove #if.
10996 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
10997
06b5b831
TT
109982019-03-05 Tom Tromey <tromey@adacore.com>
10999
11000 * target.c (the_dummy_target): Move later. Change type to
11001 "dummy_target".
11002 (initialize_targets): Don't initialize the_dummy_target.
11003
edbd9e45
TT
110042019-03-05 Tom Tromey <tromey@adacore.com>
11005
11006 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
11007 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
11008
c119e040
TT
110092019-03-05 Tom Tromey <tromey@adacore.com>
11010
11011 * windows-nat.c (windows_nat_target::attach)
11012 (windows_nat_target::detach): Don't call gdb_flush.
11013 * valprint.c (generic_val_print, val_print, val_print_string):
11014 Don't call gdb_flush.
11015 * utils.c (defaulted_query): Don't call gdb_flush.
11016 * typeprint.c (print_type_scalar): Don't call gdb_flush.
11017 * target.c (target_announce_detach): Don't call gdb_flush.
11018 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
11019 * remote.c (extended_remote_target::attach): Don't call
11020 gdb_flush.
11021 * procfs.c (procfs_target::detach): Don't call gdb_flush.
11022 * printcmd.c (do_examine): Don't call gdb_flush.
11023 (info_display_command): Don't call gdb_flush.
11024 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
11025 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
11026 * memattr.c (info_mem_command): Don't call gdb_flush.
11027 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
11028 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
11029 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
11030 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
11031 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
11032 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
11033 (gnu_nat_target::detach): Don't call gdb_flush.
11034 * f-valprint.c (f_val_print): Don't call gdb_flush.
11035 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
11036 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
11037 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
11038 gdb_flush.
11039 * c-valprint.c (c_val_print): Don't call gdb_flush.
11040 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
11041
895dafa6
TT
110422019-03-05 Tom Tromey <tromey@adacore.com>
11043
11044 * varobj.c (update_dynamic_varobj_children): Update.
11045 (install_default_visualizer): Use reset, not release.
11046 * value.c (set_internalvar): Update.
11047 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
11048 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
11049 ATTRIBUTE_UNUSED_RESULT.
11050
88a774b9
TT
110512019-03-05 Tom Tromey <tromey@adacore.com>
11052
11053 * remote.c (class scoped_remote_fd) <release>: Add
11054 ATTRIBUTE_UNUSED_RESULT.
11055
4e4a8b93
TT
110562019-03-05 Tom Tromey <tromey@adacore.com>
11057
11058 * macroexp.c (struct macro_buffer) <release>: Add
11059 ATTRIBUTE_UNUSED_RESULT.
11060
083eef1f
TT
110612019-03-05 Tom Tromey <tromey@adacore.com>
11062
11063 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
11064 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
11065 ATTRIBUTE_UNUSED_RESULT.
11066
3cabd438
TT
110672019-03-05 Tom Tromey <tromey@adacore.com>
11068
11069 * common/scoped_fd.h (class scoped_fd) <release>: Add
11070 ATTRIBUTE_UNUSED_RESULT.
11071
41e3300a
TT
110722019-03-05 Tom Tromey <tromey@adacore.com>
11073
11074 * parser-defs.h (struct parser_state) <release>: Add
11075 ATTRIBUTE_UNUSED_RESULT.
11076
18cb7c9f
TT
110772019-03-05 Tom Tromey <tromey@adacore.com>
11078
11079 * utils.h (class gdb_argv) <release>: Add
11080 ATTRIBUTE_UNUSED_RESULT.
11081 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
11082
41fa577f
EZ
110832019-03-02 Eli Zaretskii <eliz@gnu.org>
11084
a6a4b2c6
EZ
11085 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
11086 for-loop range, to avoid compiler warnings.
11087
11088 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
11089 avoid compiler warnings about unused variables.
11090
742a7df5
EZ
11091 * NEWS: Mention end of support for native debugging on MS-Windows
11092 before XP.
11093
41fa577f
EZ
11094 PR gdb/24292
11095 * common/netstuff.c:
11096 * gdbserver/gdbreplay.c
11097 * gdbserver/remote-utils.c:
11098 * ser-tcp.c:
11099 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
11100 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
11101 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
11102 'getaddrinfo' and 'freeaddrinfo' were not available before
11103 Windows XP, and mingw.org's MinGW headers by default define
11104 _WIN32_WINNT to 0x500.
11105
827f438f
GB
111062019-03-01 Gary Benson <gbenson@redhat.com>
11107
11108 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
11109
92137da0
RO
111102019-02-28 Brian Vandenberg <phantall@gmail.com>
11111 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11112
11113 PR gdb/8527
11114 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
11115 set_sigint_trap, clear_sigint_trap.
11116
799efbe8
PW
111172019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11118
11119 * target.c (target_detach): Clear the regcache and the
11120 frame cache.
11121
8ed25214
PA
111222019-02-27 Pedro Alves <palves@redhat.com>
11123
11124 * utils.c (set_screen_size): When we cap the height/width sizes,
11125 tweak the corresponding command variable to show "unlimited":
11126
23031e31
SJ
111272019-02-27 Saagar Jha <saagar@saagarjha.com>
11128 Pedro Alves <palves@redhat.com>
11129
11130 * utils.c (set_screen_size): Reduce "infinite" rows and columns
11131 before calling rl_set_screen_size.
11132
6c28e44a
TT
111332019-02-27 Tom Tromey <tromey@adacore.com>
11134
11135 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
11136 define.
11137 * python/py-value.c: Remove Python 2.4 workaround.
11138 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
11139 workaround.
11140 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
11141 Python 2.4 workaround.
11142 * python/python-internal.h: Remove Python 2.4 comment.
11143 (Py_ssize_t): Don't define.
11144 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
11145 (gdb_Py_DECREF): Remove Python 2.4 workaround.
11146 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
11147 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
11148 * python/python.c (do_start_initialization): Remove Python 2.4
11149 workaround.
11150 * python/py-prettyprint.c (class dummy_python_frame): Remove.
11151 (print_children): Remove Python 2.4 workaround.
11152 * python/py-inferior.c (buffer_procs): Remove Python 2.4
11153 workaround.
11154 (CHARBUFFERPROC_NAME): Remove.
11155 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
11156 Python 2.4 workaround.
11157
2c3fc25d 111582019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 11159
2c3fc25d
KB
11160 * NEWS: Note minimum Python version.
11161
6ca62222
KB
111622019-02-27 Kevin Buettner <kevinb@redhat.com>
11163
11164 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
11165 code from these functions. Remove corresponding ifdefs. Use
11166 Py_buffer_up instead of explicit calls to PyBuffer_Release.
11167 Remove gotos and target of gotos.
11168 (infpy_search_memory): Likewise.
11169
f4bc7d2c
AB
111702019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11171
11172 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
11173 (hppa_gdbarch_init): Don't register deleted functions with
11174 gdbarch.
11175
9734a586
AB
111762019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11177
11178 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
11179 (h8300_unwind_sp): Delete.
11180 (h8300_dummy_id): Delete.
11181 (h8300_gdbarch_init): Don't register deleted functions with
11182 gdbarch.
11183
68b867f3
AB
111842019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11185
11186 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
11187 (ft32_unwind_pc): Delete.
11188 (ft32_unwind_sp): Delete.
11189 (ft32_gdbarch_init): Don't register deleted functions with
11190 gdbarch.
11191
2fbe7ad0
AB
111922019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11193
11194 * gdb/frv-tdep.c (frv_dummy_id): Delete.
11195 (frv_unwind_pc): Delete.
11196 (frv_unwind_sp): Delete.
11197 (frv_gdbarch_init): Don't register deleted functions with
11198 gdbarch.
11199
76055cbe
AB
112002019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11201
11202 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
11203 (riscv_unwind_pc): Delete.
11204 (riscv_unwind_sp): Delete.
11205 (riscv_gdbarch_init): Don't register deleted functions with
11206 gdbarch.
11207
4133e5a1
AB
112082019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11209
11210 * gdb/csky-tdep.c (csky_dummy_id): Delete.
11211 (csky_unwind_pc): Delete.
11212 (csky_unwind_sp): Delete.
11213 (csky_gdbarch_init): Don't register deleted functions with
11214 gdbarch.
11215
8010f576
AB
112162019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11217
11218 * gdb/cris-tdep.c (cris_dummy_id): Delete.
11219 (cris_unwind_pc): Delete.
11220 (cris_unwind_sp): Delete.
11221 (cris_gdbarch_init): Don't register deleted functions with
11222 gdbarch.
11223
b56bf084
AB
112242019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11225
11226 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
11227 (bfin_unwind_pc): Delete.
11228 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
11229
a19a650f
AB
112302019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11231
11232 * gdb/arm-tdep.c (arm_dummy_id): Delete.
11233 (arm_unwind_pc): Delete.
11234 (arm_unwind_sp): Delete.
11235 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
11236
f8278c3c
AB
112372019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11238
11239 * gdb/arc-tdep.c (arc_dummy_id): Delete.
11240 (arc_unwind_pc): Delete.
11241 (arc_unwind_sp): Delete.
11242 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
11243
480e46cf
AB
112442019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11245
11246 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
11247 (alpha_unwind_pc): Delete.
11248 (alpha_gdbarch_init): Don't register deleted functions with
11249 gdbarch.
11250
7a995095
AB
112512019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11252
11253 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
11254 (aarch64_unwind_pc): Delete.
11255 (aarch64_unwind_sp): Delete.
11256 (aarch64_gdbarch_init): Don't register deleted functions with
11257 gdbarch.
11258
bf9a735e
AB
112592019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11260
11261 * gdbtypes.c (type_align): Don't consider static members when
11262 computing structure alignment.
11263
5561fc30
AB
112642019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11265
11266 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
11267 return 0 for other types.
11268 * arch-utils.c (default_type_align): Always return 0.
11269 * gdbarch.h: Regenerate.
11270 * gdbarch.sh (type_align): Extend comment.
11271 * gdbtypes.c (type_align): Add additional comments, always call
11272 gdbarch_type_align before applying the default rules.
11273 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
11274 generic code will then apply a suitable default.
11275 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
11276 types, return 0 for other types.
11277
9335e75a
JB
112782019-02-27 Joel Brobecker <brobecker@adacore.com>
11279
11280 * NEWS: Create a new section for the next release branch.
11281 Rename the section of the current branch, now that it has
11282 been cut.
11283
3d34d8de
JB
112842019-02-27 Joel Brobecker <brobecker@adacore.com>
11285
11286 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
11287 * version.in: Bump version to 8.3.50.DATE-git.
11288
143420fb
SM
112892019-02-26 Simon Marchi <simon.marchi@efficios.com>
11290
11291 * aix-thread.c (ptid_cmp): Remove unused variable.
11292 (get_signaled_thread): Likewise.
11293 (store_regs_user_thread): Likewise.
11294 (store_regs_kernel_thread): Likewise.
11295 (fetch_regs_kernel_thread): Remove shadowed variable.
11296
172fb711
AB
112972019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
11298
11299 * features/riscv/32bit-cpu.xml: Add register numbers.
11300 * features/riscv/32bit-fpu.c: Regenerate.
11301 * features/riscv/32bit-fpu.xml: Add register numbers.
11302 * features/riscv/64bit-cpu.xml: Add register numbers.
11303 * features/riscv/64bit-fpu.c: Regenerate.
11304 * features/riscv/64bit-fpu.xml: Add register numbers.
11305
26c89782
KB
113062019-02-26 Kevin Buettner <kevinb@redhat.com>
11307
af54ade9 11308 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
11309 * python/py-value.c (convert_buffer_and_type_to_value): New
11310 function.
11311 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
11312 Add support for handling an optional second argument. Call
11313 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
11314 * python/python-internal.h (Py_buffer_deleter): New struct.
11315 (Py_buffer_up): New typedef.
11316
0f58c9e8
JB
113172019-02-25 John Baldwin <jhb@FreeBSD.org>
11318
11319 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
11320 instead of releasing ownership.
11321
0a0f4c01
JR
113222019-02-25 Jordan Rupprecht <rupprecht@google.com>
11323
11324 * dwarf2read.c (open_and_init_dwp_file): Call
11325 elf_numsections instead of bfd_count_sections to initialize
11326 dwp_file->num_sections.
11327
cd5a152c
TT
113282019-02-25 Tom Tromey <tromey@adacore.com>
11329
11330 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
11331
8a6a8513
SDJ
113322019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
11333
11334 * gcore.in: Add '--readnever' option when invoking GDB.
11335
04dcda9c
SM
113362019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11337
11338 * MAINTAINERS: Update my email address.
11339
07bc701d
SM
113402019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11341
11342 * build-id.c (build_id_to_debug_bfd_1): New function.
11343 (build_id_to_debug_bfd): Look for separate debug file in
11344 sysroot.
11345
c6f4a5d0
AB
113462019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
11347
11348 * gdbarch.sh: Update the copyright year range that is placed into
11349 generated files.
11350
9600246d
KS
113512019-02-22 Keith Seitz <keiths@redhat.com>
11352
11353 PR symtab/23853
11354 * linespec.c (create_sals_line_offset): Search for the default
11355 symtab's filename instead of its fullname.
11356
7557a514
AH
113572019-02-21 Alan Hayward <alan.hayward@arm.com>
11358
11359 * NEWS: Update style defaults.
11360
ee2bcb0c
AH
113612019-02-21 Alan Hayward <alan.hayward@arm.com>
11362
11363 * main.c (captured_main_1): Disable styling in batch mode.
11364
0c95f9ed
TT
113652019-02-20 Tom Tromey <tom@tromey.com>
11366
11367 * symtab.c (symtab_symbol_info): Fix typos.
11368
c763b894
TT
113692019-02-20 Tom Tromey <tromey@adacore.com>
11370
11371 * findcmd.c (_initialize_mem_search): Use upper case for
11372 metasyntactic variables.
11373
0ef8a082
AH
113742019-02-20 Alan Hayward <alan.hayward@arm.com>
11375
11376 * aarch64-tdep.c (aarch64_add_reggroups): New function.
11377 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
11378
6caa91b6
SM
113792019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
11380
11381 * top.h (source_file_name): Change to std::string.
11382 * top.c (source_file_name): Likewise.
11383 (command_line_input): Adjust.
11384 * cli/cli-script.c (script_from_file): Adjust.
11385
98814c6c
TT
113862019-02-19 Tom Tromey <tromey@adacore.com>
11387
11388 * ravenscar-thread.c
11389 (ravenscar_thread_target::update_thread_list): Don't call
11390 ada_build_task_list.
11391 * ada-lang.h (ada_build_task_list): Don't declare.
11392 * ada-tasks.c (struct ada_tasks_inferior_data)
11393 <task_list_valid_p>: Now bool.
11394 (read_known_tasks, ada_task_list_changed)
11395 (ada_tasks_invalidate_inferior_data): Update.
11396 (read_known_tasks_array): Return bool.
11397 (read_known_tasks_list): Likewise.
11398 (read_known_tasks): Return void.
11399 (ada_build_task_list): Now static.
11400
70cd633e
AB
114012019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
11402
11403 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
11404 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
11405
040b3e95
PW
114062019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11407
11408 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
11409 variant for ada_tasks_pspace_data_handle and
11410 ada_tasks_inferior_data_handle.
11411 (ada_tasks_pspace_data_cleanup): New function.
11412 (ada_tasks_inferior_data_cleanup): New function.
11413
9409233b
TT
114142019-02-17 Tom Tromey <tom@tromey.com>
11415
11416 * macrotab.h (macro_source_fullname): Return a std::string.
11417 * macrotab.c (macro_include, check_for_redefinition)
11418 (macro_undef, macro_lookup_definition, foreach_macro)
11419 (foreach_macro_in_scope): Update.
11420 (macro_source_fullname): Return a std::string.
11421 * macrocmd.c (show_pp_source_pos): Update.
11422
6506371f
TT
114232019-02-17 Tom Tromey <tom@tromey.com>
11424
11425 * macrocmd.c (show_pp_source_pos): Style the file names.
11426
0c820d67
TT
114272019-02-17 Tom Tromey <tom@tromey.com>
11428
11429 PR tui/24197:
11430 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
11431
a0087920
TT
114322019-02-17 Tom Tromey <tom@tromey.com>
11433
11434 * ada-lang.c (user_select_syms): Use filtered printing.
11435 * utils.c (wrap_style): New global.
11436 (desired_style): Remove.
11437 (emit_style_escape): Add stream parameter.
11438 (set_output_style, reset_terminal_style, prompt_for_continue):
11439 Update.
11440 (flush_wrap_buffer): Only flush gdb_stdout.
11441 (wrap_here): Set wrap_style.
11442 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
11443 treat escape sequences as a character. Change when wrap buffer is
11444 flushed.
11445 (fputs_styled): Do not set the output style when the default is
11446 requested.
11447 * ui-style.h (struct ui_file_style) <is_default>: New method.
11448 * source.c (print_source_lines_base): Emit escape sequences in one
11449 piece.
11450
75ba10dc
JB
114512019-02-17 Joel Brobecker <brobecker@adacore.com>
11452
11453 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
11454 integers and enumeration types.
11455
a2cd4f14
JB
114562019-02-17 Joel Brobecker <brobecker@adacore.com>
11457
11458 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
11459 instead of lookup_symbol_in_language
11460 (do_exact_match): New function.
11461 (ada_get_symbol_name_matcher): Return do_exact_match when
11462 doing a verbatim match.
11463
485b851b
TT
114642019-02-15 Tom Tromey <tromey@adacore.com>
11465
11466 * ravenscar-thread.c (ravenscar_thread_target::resume)
11467 (ravenscar_thread_target::wait): Special case wildcard requests.
11468
0b790b1e
TT
114692019-02-15 Tom Tromey <tromey@adacore.com>
11470
11471 * ravenscar-thread.c (base_ptid): Remove.
11472 (struct ravenscar_thread_target) <close>: New method.
11473 <m_base_ptid>: New member.
11474 <update_inferior_ptid, active_task, task_is_currently_active,
11475 runtime_initialized>: Declare methods.
11476 <ravenscar_thread_target>: Add constructor.
11477 (ravenscar_thread_target::task_is_currently_active)
11478 (ravenscar_thread_target::update_inferior_ptid)
11479 (ravenscar_runtime_initialized): Rename. Now methods.
11480 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
11481 (ravenscar_thread_target::update_thread_list): Update.
11482 (ravenscar_thread_target::active_task): Now method.
11483 (ravenscar_thread_target::store_registers)
11484 (ravenscar_thread_target::prepare_to_store)
11485 (ravenscar_thread_target::prepare_to_store)
11486 (ravenscar_thread_target::mourn_inferior): Update.
11487 (ravenscar_inferior_created): Use "new" to create target.
11488 (ravenscar_thread_target::get_ada_task_ptid): Update.
11489 (_initialize_ravenscar): Don't initialize base_ptid.
11490 (ravenscar_ops): Remove global.
11491
dea57a62
TT
114922019-02-15 Tom Tromey <tromey@adacore.com>
11493
11494 * target.h (push_target): Declare new overload.
11495 * target.c (push_target): New overload, taking an rvalue reference.
11496 * remote.c (remote_target::open_1): Use push_target overload.
11497 * corelow.c (core_target_open): Use push_target overload.
11498
989f3c58
TT
114992019-02-15 Tom Tromey <tromey@adacore.com>
11500
11501 * ravenscar-thread.c (is_ravenscar_task)
11502 (ravenscar_task_is_currently_active): Return bool.
11503 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
11504 (_initialize_ravenscar): Remove "(void)".
11505 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
11506 Return bool.
11507
6cbcc006
TT
115082019-02-15 Tom Tromey <tromey@adacore.com>
11509
11510 * ravenscar-thread.c (ravenscar_runtime_initializer)
11511 (has_ravenscar_runtime, get_running_thread_id)
11512 (ravenscar_thread_target::resume): Fix indentation.
11513
7657f14d
TT
115142019-02-15 Tom Tromey <tromey@adacore.com>
11515
11516 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
11517 from ravenscar_arch_ops.
11518 (sparc_ravenscar_ops::fetch_registers)
11519 (sparc_ravenscar_ops::store_registers): Now methods.
11520 (sparc_ravenscar_prepare_to_store): Remove.
11521 (sparc_ravenscar_ops): Redefine.
11522 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
11523 methods and destructor. Remove members.
11524 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
11525 (ravenscar_thread_target::store_registers)
11526 (ravenscar_thread_target::prepare_to_store): Update.
11527 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
11528 Remove.
11529 (struct ppc_ravenscar_powerpc_ops): Derive from
11530 ravenscar_arch_ops.
11531 (ppc_ravenscar_powerpc_ops::fetch_registers)
11532 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
11533 (ppc_ravenscar_powerpc_ops): Redefine.
11534 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
11535 (ppc_ravenscar_e500_ops::fetch_registers)
11536 (ppc_ravenscar_e500_ops::store_registers): Now methods.
11537 (ppc_ravenscar_e500_ops): Redefine.
11538 * aarch64-ravenscar-thread.c
11539 (aarch64_ravenscar_generic_prepare_to_store): Remove.
11540 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
11541 (aarch64_ravenscar_fetch_registers)
11542 (aarch64_ravenscar_store_registers): Now methods.
11543 (aarch64_ravenscar_ops): Redefine.
11544
5b6ea500
TT
115452019-02-15 Tom Tromey <tromey@adacore.com>
11546
11547 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
11548 (ravenscar_thread_target::stopped_by_hw_breakpoint)
11549 (ravenscar_thread_target::stopped_by_watchpoint)
11550 (ravenscar_thread_target::stopped_data_address)
11551 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
11552
e397fd39
TT
115532019-02-15 Tom Tromey <tromey@adacore.com>
11554
11555 * ravenscar-thread.c: Fix some typos.
11556
cc12f4a8
TT
115572019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11558 Tom Tromey <tromey@adacore.com>
11559
11560 * ada-lang.c (ada_exception_sal): Change addr_string to a
11561 std::string.
11562 (create_ada_exception_catchpoint): Update.
11563
5f486660
TT
115642019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11565 Tom Tromey <tromey@adacore.com>
11566
11567 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
11568 (bp_location_ops): Remove.
11569 (base_breakpoint_allocate_location): Update.
11570 (free_bp_location): Update.
11571 * ada-lang.c (class ada_catchpoint_location)
11572 <ada_catchpoint_location>: Remove ops parameter.
11573 (ada_catchpoint_location_dtor): Remove.
11574 (ada_catchpoint_location_ops): Remove.
11575 (allocate_location_exception): Update.
11576 * breakpoint.h (struct bp_location_ops): Remove.
11577 (class bp_location) <bp_location>: Remove bp_location_ops
11578 parameter.
11579 <~bp_location>: Add destructor.
11580 <ops>: Remove.
11581
b671c7fb
TS
115822019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11583 Pedro Alves <palves@redhat.com>
11584
11585 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
11586 'PATH_MAX'.
11587
8071c5ce
DM
115882019-02-14 David Michael <fedora.dm0@gmail.com>
11589 Samuel Thibault <samuel.thibault@gnu.org>
11590 Thomas Schwinge <thomas@codesourcery.com>
11591
11592 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
11593 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
11594
b1041ae0
TS
115952019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11596
924514e1
TS
11597 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
11598 (check_empty): Use "const char *".
11599
c29ee8d4
TS
11600 * gnu-nat.c (gnu_nat_target::detach): Instead of
11601 'detach_inferior (pid)' call
11602 'detach_inferior (find_inferior_pid (pid))'.
11603
6c6ef69f
TS
11604 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
11605 'nat/fork-inferior.o'.
11606 * gnu-nat.c: #include "nat/fork-inferior.h".
11607
2d0a338c
TS
11608 * gnu-nat.c (gnu_nat_target::detach): Instead of
11609 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
11610 * gnu-nat.h: #include "inf-child.h".
11611 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
11612 'i386_gnu_nat_target::fetch_registers'.
11613 (gnu_store_registers): Rename/move to
11614 'i386_gnu_nat_target::store_registers'.
11615
cabb5f06
TS
11616 * config/i386/nm-i386gnu.h: Don't "#include" any files.
11617 * gnu-nat.h (mach_thread_info): New function.
11618 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
11619
b1041ae0
TS
11620 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
11621
2988d01e
KF
116222019-02-14 Frederic Konrad <konrad@adacore.com>
11623
11624 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
11625
c559d709
JB
116262019-02-14 Joel Brobecker <brobecker@adacore.com>
11627
11628 * windows-nat.c (windows_add_thread): Add new parameter
11629 "main_thread_p" with default value set to false. Update
11630 function documentation as well as all callers.
11631 (windows_delete_thread): Likewise.
11632 (fake_create_process): Update call to windows_add_thread.
11633 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
11634 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
11635 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
11636 call to windows_delete_thread.
11637
007024cc
SM
116382019-02-13 Simon Marchi <simon.marchi@ericsson.com>
11639
11640 * MAINTAINERS: Add Andrew Burgess as global maintainer.
11641
f62318e9
JB
116422019-02-12 John Baldwin <jhb@FreeBSD.org>
11643
11644 * symfile.c (find_separate_debug_file): Use canonical path of
11645 sysroot with child_path instead of gdb_sysroot if it is valid.
11646
cd4b7848
JB
116472019-02-12 John Baldwin <jhb@FreeBSD.org>
11648
11649 * symfile.c (find_separate_debug_file): Use child_path to
11650 determine if an object file is under a sysroot.
11651
efac4bfe
JB
116522019-02-12 John Baldwin <jhb@FreeBSD.org>
11653
11654 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11655 unittests/child-path-selftests.c.
11656 * common/pathstuff.c (child_path): New function.
11657 * common/pathstuff.h (child_path): New prototype.
11658 * unittests/child-path-selftests.c: New file.
11659
402d2bfe
JB
116602019-02-12 John Baldwin <jhb@FreeBSD.org>
11661
11662 * symfile.c (find_separate_debug_file): Look for separate debug
11663 files in debug directories under the sysroot.
11664
1ed9f74e
PW
116652019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11666
11667 * symtab.h (struct minimal_symbol data_p): New const method.
11668 (struct minimal_symbol text_p): Likewise.
11669 * symtab.c (output_source_filename): Use file name style
11670 to print file name.
11671 (print_symbol_info): Likewise.
11672 (print_msymbol_info): Use address style to print addresses.
11673 Use function name style to print executable text symbols.
11674 (expand_symtab_containing_pc): Use data_p.
11675 (find_pc_sect_compunit_symtab): Likewise.
11676
2636d81d
PW
116772019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11678
11679 * breakpoint.c (describe_other_breakpoints): Use address style
11680 to print addresses.
11681 (say_where): Likewise.
11682
ac8c53cc
PW
116832019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11684
11685 * ada-typeprint.c (print_func_type): Print function name
11686 style to print function name.
11687 * c-typeprint.c (c_print_type_1): Likewise.
11688
ea638c43
AH
116892019-02-11 Alan Hayward <alan.hayward@arm.com>
11690
11691 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
11692 for execve.
11693
ab759ca8
PW
116942019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11695
11696 * c-exp.y (direct_abs_decl): Use emplace_back to record the
11697 type_stack.
11698
aff29d1c
JB
116992019-02-10 Joel Brobecker <brobecker@adacore.com>
11700
11701 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
11702 TYPE_CODE_REF types.
11703
617126bc
JW
117042019-02-08 Jim Wilson <jimw@sifive.com>
11705
11706 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
11707 (riscv_linux_fregset): New.
11708 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
11709
46e3ed7f
TT
117102019-02-07 Tom Tromey <tom@tromey.com>
11711
11712 * thread.c (thread_cancel_execution_command): Update.
11713 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
11714 methods.
11715 (struct thread_fsm_ops): Remove.
11716 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
11717 (thread_fsm_should_stop, thread_fsm_return_value)
11718 (thread_fsm_set_finished, thread_fsm_finished_p)
11719 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
11720 Don't declare.
11721 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
11722 * infrun.c (clear_proceed_status_thread)
11723 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
11724 (print_stop_event): Update.
11725 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
11726 Add constructor.
11727 (step_command_fsm_ops): Remove.
11728 (new_step_command_fsm): Remove.
11729 (step_1): Update.
11730 (step_command_fsm::should_stop): Rename from
11731 step_command_fsm_should_stop.
11732 (step_command_fsm::clean_up): Rename from
11733 step_command_fsm_clean_up.
11734 (step_command_fsm::do_async_reply_reason): Rename from
11735 step_command_fsm_async_reply_reason.
11736 (struct until_next_fsm): Inherit from thread_fsm. Add
11737 constructor.
11738 (until_next_fsm_ops): Remove.
11739 (new_until_next_fsm): Remove.
11740 (until_next_fsm::should_stop): Rename from
11741 until_next_fsm_should_stop.
11742 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
11743 (until_next_fsm::do_async_reply_reason): Rename from
11744 until_next_fsm_async_reply_reason.
11745 (struct finish_command_fsm): Inherit from thread_fsm. Add
11746 constructor. Change type of breakpoint.
11747 (finish_command_fsm_ops): Remove.
11748 (new_finish_command_fsm): Remove.
11749 (finish_command_fsm::should_stop): Rename from
11750 finish_command_fsm_should_stop.
11751 (finish_command_fsm::clean_up): Rename from
11752 finish_command_fsm_clean_up.
11753 (finish_command_fsm::return_value): Rename from
11754 finish_command_fsm_return_value.
11755 (finish_command_fsm::do_async_reply_reason): Rename from
11756 finish_command_fsm_async_reply_reason.
11757 (finish_command): Update.
11758 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
11759 Add constructor.
11760 (call_thread_fsm_ops): Remove.
11761 (call_thread_fsm::call_thread_fsm): Rename from
11762 new_call_thread_fsm.
11763 (call_thread_fsm::should_stop): Rename from
11764 call_thread_fsm_should_stop.
11765 (call_thread_fsm::should_notify_stop): Rename from
11766 call_thread_fsm_should_notify_stop.
11767 (run_inferior_call, call_function_by_hand_dummy): Update.
11768 * cli/cli-interp.c (should_print_stop_to_console): Update.
11769 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
11770 Add constructor. Change type of location_breakpoint,
11771 caller_breakpoint.
11772 (until_break_fsm_ops): Remove.
11773 (new_until_break_fsm): Remove.
11774 (until_break_fsm::should_stop): Rename from
11775 until_break_fsm_should_stop.
11776 (until_break_fsm::clean_up): Rename from
11777 until_break_fsm_clean_up.
11778 (until_break_fsm::do_async_reply_reason): Rename from
11779 until_break_fsm_async_reply_reason.
11780 (until_break_command): Update.
11781 * thread-fsm.c: Remove.
11782 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
11783
1a5c2598
TT
117842019-02-07 Tom Tromey <tom@tromey.com>
11785
11786 * yy-remap.h: Add include guard.
11787 * xtensa-tdep.h: Add include guard.
11788 * xcoffread.h: Rename include guard.
11789 * varobj-iter.h: Add include guard.
11790 * tui/tui.h: Rename include guard.
11791 * tui/tui-winsource.h: Rename include guard.
11792 * tui/tui-wingeneral.h: Rename include guard.
11793 * tui/tui-windata.h: Rename include guard.
11794 * tui/tui-win.h: Rename include guard.
11795 * tui/tui-stack.h: Rename include guard.
11796 * tui/tui-source.h: Rename include guard.
11797 * tui/tui-regs.h: Rename include guard.
11798 * tui/tui-out.h: Rename include guard.
11799 * tui/tui-layout.h: Rename include guard.
11800 * tui/tui-io.h: Rename include guard.
11801 * tui/tui-hooks.h: Rename include guard.
11802 * tui/tui-file.h: Rename include guard.
11803 * tui/tui-disasm.h: Rename include guard.
11804 * tui/tui-data.h: Rename include guard.
11805 * tui/tui-command.h: Rename include guard.
11806 * tic6x-tdep.h: Add include guard.
11807 * target/waitstatus.h: Rename include guard.
11808 * target/wait.h: Rename include guard.
11809 * target/target.h: Rename include guard.
11810 * target/resume.h: Rename include guard.
11811 * target-float.h: Rename include guard.
11812 * stabsread.h: Add include guard.
11813 * rs6000-tdep.h: Add include guard.
11814 * riscv-fbsd-tdep.h: Add include guard.
11815 * regformats/regdef.h: Rename include guard.
11816 * record.h: Rename include guard.
11817 * python/python.h: Rename include guard.
11818 * python/python-internal.h: Rename include guard.
11819 * python/py-stopevent.h: Rename include guard.
11820 * python/py-ref.h: Rename include guard.
11821 * python/py-record.h: Rename include guard.
11822 * python/py-record-full.h: Rename include guard.
11823 * python/py-record-btrace.h: Rename include guard.
11824 * python/py-instruction.h: Rename include guard.
11825 * python/py-events.h: Rename include guard.
11826 * python/py-event.h: Rename include guard.
11827 * procfs.h: Add include guard.
11828 * proc-utils.h: Add include guard.
11829 * p-lang.h: Add include guard.
11830 * or1k-tdep.h: Rename include guard.
11831 * observable.h: Rename include guard.
11832 * nto-tdep.h: Rename include guard.
11833 * nat/x86-linux.h: Rename include guard.
11834 * nat/x86-linux-dregs.h: Rename include guard.
11835 * nat/x86-gcc-cpuid.h: Add include guard.
11836 * nat/x86-dregs.h: Rename include guard.
11837 * nat/x86-cpuid.h: Rename include guard.
11838 * nat/ppc-linux.h: Rename include guard.
11839 * nat/mips-linux-watch.h: Rename include guard.
11840 * nat/linux-waitpid.h: Rename include guard.
11841 * nat/linux-ptrace.h: Rename include guard.
11842 * nat/linux-procfs.h: Rename include guard.
11843 * nat/linux-osdata.h: Rename include guard.
11844 * nat/linux-nat.h: Rename include guard.
11845 * nat/linux-namespaces.h: Rename include guard.
11846 * nat/linux-btrace.h: Rename include guard.
11847 * nat/glibc_thread_db.h: Rename include guard.
11848 * nat/gdb_thread_db.h: Rename include guard.
11849 * nat/gdb_ptrace.h: Rename include guard.
11850 * nat/fork-inferior.h: Rename include guard.
11851 * nat/amd64-linux-siginfo.h: Rename include guard.
11852 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
11853 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
11854 * nat/aarch64-linux.h: Rename include guard.
11855 * nat/aarch64-linux-hw-point.h: Rename include guard.
11856 * mn10300-tdep.h: Add include guard.
11857 * mips-linux-tdep.h: Add include guard.
11858 * mi/mi-parse.h: Rename include guard.
11859 * mi/mi-out.h: Rename include guard.
11860 * mi/mi-main.h: Rename include guard.
11861 * mi/mi-interp.h: Rename include guard.
11862 * mi/mi-getopt.h: Rename include guard.
11863 * mi/mi-console.h: Rename include guard.
11864 * mi/mi-common.h: Rename include guard.
11865 * mi/mi-cmds.h: Rename include guard.
11866 * mi/mi-cmd-break.h: Rename include guard.
11867 * m2-lang.h: Add include guard.
11868 * location.h: Rename include guard.
11869 * linux-record.h: Rename include guard.
11870 * linux-nat.h: Add include guard.
11871 * linux-fork.h: Add include guard.
11872 * i386-darwin-tdep.h: Rename include guard.
11873 * hppa-linux-offsets.h: Add include guard.
11874 * guile/guile.h: Rename include guard.
11875 * guile/guile-internal.h: Rename include guard.
11876 * gnu-nat.h: Rename include guard.
11877 * gdb-stabs.h: Rename include guard.
11878 * frv-tdep.h: Add include guard.
11879 * f-lang.h: Add include guard.
11880 * event-loop.h: Add include guard.
11881 * darwin-nat.h: Rename include guard.
11882 * cp-abi.h: Rename include guard.
11883 * config/sparc/nm-sol2.h: Rename include guard.
11884 * config/nm-nto.h: Rename include guard.
11885 * config/nm-linux.h: Add include guard.
11886 * config/i386/nm-i386gnu.h: Rename include guard.
11887 * config/djgpp/nl_types.h: Rename include guard.
11888 * config/djgpp/langinfo.h: Rename include guard.
11889 * compile/gcc-cp-plugin.h: Add include guard.
11890 * compile/gcc-c-plugin.h: Add include guard.
11891 * compile/compile.h: Rename include guard.
11892 * compile/compile-object-run.h: Rename include guard.
11893 * compile/compile-object-load.h: Rename include guard.
11894 * compile/compile-internal.h: Rename include guard.
11895 * compile/compile-cplus.h: Rename include guard.
11896 * compile/compile-c.h: Rename include guard.
11897 * common/xml-utils.h: Rename include guard.
11898 * common/x86-xstate.h: Rename include guard.
11899 * common/version.h: Rename include guard.
11900 * common/vec.h: Rename include guard.
11901 * common/tdesc.h: Rename include guard.
11902 * common/selftest.h: Rename include guard.
11903 * common/scoped_restore.h: Rename include guard.
11904 * common/scoped_mmap.h: Rename include guard.
11905 * common/scoped_fd.h: Rename include guard.
11906 * common/safe-iterator.h: Rename include guard.
11907 * common/run-time-clock.h: Rename include guard.
11908 * common/refcounted-object.h: Rename include guard.
11909 * common/queue.h: Rename include guard.
11910 * common/ptid.h: Rename include guard.
11911 * common/print-utils.h: Rename include guard.
11912 * common/preprocessor.h: Rename include guard.
11913 * common/pathstuff.h: Rename include guard.
11914 * common/observable.h: Rename include guard.
11915 * common/netstuff.h: Rename include guard.
11916 * common/job-control.h: Rename include guard.
11917 * common/host-defs.h: Rename include guard.
11918 * common/gdb_wait.h: Rename include guard.
11919 * common/gdb_vecs.h: Rename include guard.
11920 * common/gdb_unlinker.h: Rename include guard.
11921 * common/gdb_unique_ptr.h: Rename include guard.
11922 * common/gdb_tilde_expand.h: Rename include guard.
11923 * common/gdb_sys_time.h: Rename include guard.
11924 * common/gdb_string_view.h: Rename include guard.
11925 * common/gdb_splay_tree.h: Rename include guard.
11926 * common/gdb_setjmp.h: Rename include guard.
11927 * common/gdb_ref_ptr.h: Rename include guard.
11928 * common/gdb_optional.h: Rename include guard.
11929 * common/gdb_locale.h: Rename include guard.
11930 * common/gdb_assert.h: Rename include guard.
11931 * common/filtered-iterator.h: Rename include guard.
11932 * common/filestuff.h: Rename include guard.
11933 * common/fileio.h: Rename include guard.
11934 * common/environ.h: Rename include guard.
11935 * common/common-utils.h: Rename include guard.
11936 * common/common-types.h: Rename include guard.
11937 * common/common-regcache.h: Rename include guard.
11938 * common/common-inferior.h: Rename include guard.
11939 * common/common-gdbthread.h: Rename include guard.
11940 * common/common-exceptions.h: Rename include guard.
11941 * common/common-defs.h: Rename include guard.
11942 * common/common-debug.h: Rename include guard.
11943 * common/cleanups.h: Rename include guard.
11944 * common/buffer.h: Rename include guard.
11945 * common/btrace-common.h: Rename include guard.
11946 * common/break-common.h: Rename include guard.
11947 * cli/cli-utils.h: Rename include guard.
11948 * cli/cli-style.h: Rename include guard.
11949 * cli/cli-setshow.h: Rename include guard.
11950 * cli/cli-script.h: Rename include guard.
11951 * cli/cli-interp.h: Rename include guard.
11952 * cli/cli-decode.h: Rename include guard.
11953 * cli/cli-cmds.h: Rename include guard.
11954 * charset-list.h: Add include guard.
11955 * buildsym-legacy.h: Rename include guard.
11956 * bfin-tdep.h: Add include guard.
11957 * ax.h: Rename include guard.
11958 * arm-linux-tdep.h: Add include guard.
11959 * arm-fbsd-tdep.h: Add include guard.
11960 * arch/xtensa.h: Rename include guard.
11961 * arch/tic6x.h: Add include guard.
11962 * arch/i386.h: Add include guard.
11963 * arch/arm.h: Rename include guard.
11964 * arch/arm-linux.h: Rename include guard.
11965 * arch/arm-get-next-pcs.h: Rename include guard.
11966 * arch/amd64.h: Add include guard.
11967 * arch/aarch64-insn.h: Rename include guard.
11968 * arch-utils.h: Rename include guard.
11969 * annotate.h: Add include guard.
11970 * amd64-darwin-tdep.h: Rename include guard.
11971 * aarch64-linux-tdep.h: Add include guard.
11972 * aarch64-fbsd-tdep.h: Add include guard.
11973 * aarch32-linux-nat.h: Add include guard.
11974
ab9268d2
PW
119752019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11976
11977 * macrotab.c (macro_define_internal): New function that
11978 factorizes macro_define_object_internal and macro_define_function
11979 code.
11980 (macro_define_object_internal): Use macro_define_internal.
11981 (macro_define_function): Likewise.
11982
bb0da2b4
PW
119832019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11984
11985 * macrocmd.c (extract_identifier): Return
11986 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
11987 callers.
11988
424eb552
JB
119892019-02-06 John Baldwin <jhb@FreeBSD.org>
11990
11991 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
11992
1688cb29
TT
119932019-02-05 Tom Tromey <tom@tromey.com>
11994
11995 * target.c (target_stack::unpush): Move assertion earlier.
11996
b5eba2d8
TT
119972019-01-30 Tom Tromey <tom@tromey.com>
11998
11999 PR python/23615:
12000 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
12001 (gdbpy_parse_and_eval): Likewise.
12002 * python/python-internal.h (gdbpy_allow_threads): New class.
12003
7054e2ff
JB
120042019-01-28 John Baldwin <jhb@FreeBSD.org>
12005
12006 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
12007 (aarch64_fbsd_fpregmap): Move earlier.
12008 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
12009 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12010 instead of individual calls to trad_frame_set_reg_addr.
12011 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
12012 earlier.
12013 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
12014 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12015 instead of individual calls to trad_frame_set_reg_addr.
12016
36c25ffa
AH
120172019-01-28 Alan Hayward <alan.hayward@arm.com>
12018
12019 * CONTRIBUTE: Replace contribution list with wiki link.
12020
a0707f3c
TT
120212019-01-25 Tom Tromey <tom@tromey.com>
12022
12023 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
12024
0747795c
TT
120252019-01-25 Tom Tromey <tom@tromey.com>
12026
12027 * xtensa-linux-nat.c: Fix common/ includes.
12028 * xml-support.h: Fix common/ includes.
12029 * xml-support.c: Fix common/ includes.
12030 * x86-linux-nat.c: Fix common/ includes.
12031 * windows-nat.c: Fix common/ includes.
12032 * varobj.h: Fix common/ includes.
12033 * varobj.c: Fix common/ includes.
12034 * value.c: Fix common/ includes.
12035 * valops.c: Fix common/ includes.
12036 * utils.c: Fix common/ includes.
12037 * unittests/xml-utils-selftests.c: Fix common/ includes.
12038 * unittests/utils-selftests.c: Fix common/ includes.
12039 * unittests/unpack-selftests.c: Fix common/ includes.
12040 * unittests/tracepoint-selftests.c: Fix common/ includes.
12041 * unittests/style-selftests.c: Fix common/ includes.
12042 * unittests/string_view-selftests.c: Fix common/ includes.
12043 * unittests/scoped_restore-selftests.c: Fix common/ includes.
12044 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
12045 * unittests/scoped_fd-selftests.c: Fix common/ includes.
12046 * unittests/rsp-low-selftests.c: Fix common/ includes.
12047 * unittests/parse-connection-spec-selftests.c: Fix common/
12048 includes.
12049 * unittests/optional-selftests.c: Fix common/ includes.
12050 * unittests/offset-type-selftests.c: Fix common/ includes.
12051 * unittests/observable-selftests.c: Fix common/ includes.
12052 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
12053 * unittests/memrange-selftests.c: Fix common/ includes.
12054 * unittests/memory-map-selftests.c: Fix common/ includes.
12055 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
12056 * unittests/function-view-selftests.c: Fix common/ includes.
12057 * unittests/environ-selftests.c: Fix common/ includes.
12058 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
12059 * unittests/common-utils-selftests.c: Fix common/ includes.
12060 * unittests/cli-utils-selftests.c: Fix common/ includes.
12061 * unittests/array-view-selftests.c: Fix common/ includes.
12062 * ui-file.c: Fix common/ includes.
12063 * tui/tui-io.c: Fix common/ includes.
12064 * tracepoint.h: Fix common/ includes.
12065 * tracepoint.c: Fix common/ includes.
12066 * tracefile-tfile.c: Fix common/ includes.
12067 * top.h: Fix common/ includes.
12068 * top.c: Fix common/ includes.
12069 * thread.c: Fix common/ includes.
12070 * target/waitstatus.h: Fix common/ includes.
12071 * target/waitstatus.c: Fix common/ includes.
12072 * target.h: Fix common/ includes.
12073 * target.c: Fix common/ includes.
12074 * target-memory.c: Fix common/ includes.
12075 * target-descriptions.c: Fix common/ includes.
12076 * symtab.h: Fix common/ includes.
12077 * symfile.c: Fix common/ includes.
12078 * stap-probe.c: Fix common/ includes.
12079 * spu-linux-nat.c: Fix common/ includes.
12080 * sparc-nat.c: Fix common/ includes.
12081 * source.c: Fix common/ includes.
12082 * solib.c: Fix common/ includes.
12083 * solib-target.c: Fix common/ includes.
12084 * ser-unix.c: Fix common/ includes.
12085 * ser-tcp.c: Fix common/ includes.
12086 * ser-pipe.c: Fix common/ includes.
12087 * ser-base.c: Fix common/ includes.
12088 * selftest-arch.c: Fix common/ includes.
12089 * s12z-tdep.c: Fix common/ includes.
12090 * rust-exp.y: Fix common/ includes.
12091 * rs6000-aix-tdep.c: Fix common/ includes.
12092 * riscv-tdep.c: Fix common/ includes.
12093 * remote.c: Fix common/ includes.
12094 * remote-notif.h: Fix common/ includes.
12095 * remote-fileio.h: Fix common/ includes.
12096 * remote-fileio.c: Fix common/ includes.
12097 * regcache.h: Fix common/ includes.
12098 * regcache.c: Fix common/ includes.
12099 * record-btrace.c: Fix common/ includes.
12100 * python/python.c: Fix common/ includes.
12101 * python/py-type.c: Fix common/ includes.
12102 * python/py-inferior.c: Fix common/ includes.
12103 * progspace.h: Fix common/ includes.
12104 * producer.c: Fix common/ includes.
12105 * procfs.c: Fix common/ includes.
12106 * proc-api.c: Fix common/ includes.
12107 * printcmd.c: Fix common/ includes.
12108 * ppc-linux-nat.c: Fix common/ includes.
12109 * parser-defs.h: Fix common/ includes.
12110 * osdata.c: Fix common/ includes.
12111 * obsd-nat.c: Fix common/ includes.
12112 * nat/x86-linux.c: Fix common/ includes.
12113 * nat/x86-linux-dregs.c: Fix common/ includes.
12114 * nat/x86-dregs.h: Fix common/ includes.
12115 * nat/x86-dregs.c: Fix common/ includes.
12116 * nat/ppc-linux.c: Fix common/ includes.
12117 * nat/mips-linux-watch.h: Fix common/ includes.
12118 * nat/mips-linux-watch.c: Fix common/ includes.
12119 * nat/linux-waitpid.c: Fix common/ includes.
12120 * nat/linux-ptrace.h: Fix common/ includes.
12121 * nat/linux-ptrace.c: Fix common/ includes.
12122 * nat/linux-procfs.c: Fix common/ includes.
12123 * nat/linux-personality.c: Fix common/ includes.
12124 * nat/linux-osdata.c: Fix common/ includes.
12125 * nat/linux-namespaces.c: Fix common/ includes.
12126 * nat/linux-btrace.h: Fix common/ includes.
12127 * nat/linux-btrace.c: Fix common/ includes.
12128 * nat/fork-inferior.c: Fix common/ includes.
12129 * nat/amd64-linux-siginfo.c: Fix common/ includes.
12130 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
12131 * nat/aarch64-linux.c: Fix common/ includes.
12132 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
12133 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
12134 * namespace.h: Fix common/ includes.
12135 * mips-linux-tdep.c: Fix common/ includes.
12136 * minsyms.c: Fix common/ includes.
12137 * mi/mi-parse.h: Fix common/ includes.
12138 * mi/mi-main.c: Fix common/ includes.
12139 * mi/mi-cmd-env.c: Fix common/ includes.
12140 * memrange.h: Fix common/ includes.
12141 * memattr.c: Fix common/ includes.
12142 * maint.h: Fix common/ includes.
12143 * maint.c: Fix common/ includes.
12144 * main.c: Fix common/ includes.
12145 * machoread.c: Fix common/ includes.
12146 * location.c: Fix common/ includes.
12147 * linux-thread-db.c: Fix common/ includes.
12148 * linux-nat.c: Fix common/ includes.
12149 * linux-fork.c: Fix common/ includes.
12150 * inline-frame.c: Fix common/ includes.
12151 * infrun.c: Fix common/ includes.
12152 * inflow.c: Fix common/ includes.
12153 * inferior.h: Fix common/ includes.
12154 * inferior.c: Fix common/ includes.
12155 * infcmd.c: Fix common/ includes.
12156 * inf-ptrace.c: Fix common/ includes.
12157 * inf-child.c: Fix common/ includes.
12158 * ia64-linux-nat.c: Fix common/ includes.
12159 * i387-tdep.c: Fix common/ includes.
12160 * i386-tdep.c: Fix common/ includes.
12161 * i386-linux-tdep.c: Fix common/ includes.
12162 * i386-linux-nat.c: Fix common/ includes.
12163 * i386-go32-tdep.c: Fix common/ includes.
12164 * i386-fbsd-tdep.c: Fix common/ includes.
12165 * i386-fbsd-nat.c: Fix common/ includes.
12166 * guile/scm-type.c: Fix common/ includes.
12167 * guile/guile.c: Fix common/ includes.
12168 * go32-nat.c: Fix common/ includes.
12169 * gnu-nat.c: Fix common/ includes.
12170 * gdbthread.h: Fix common/ includes.
12171 * gdbarch-selftests.c: Fix common/ includes.
12172 * gdb_usleep.c: Fix common/ includes.
12173 * gdb_select.h: Fix common/ includes.
12174 * gdb_bfd.c: Fix common/ includes.
12175 * gcore.c: Fix common/ includes.
12176 * fork-child.c: Fix common/ includes.
12177 * findvar.c: Fix common/ includes.
12178 * fbsd-nat.c: Fix common/ includes.
12179 * event-top.c: Fix common/ includes.
12180 * event-loop.c: Fix common/ includes.
12181 * dwarf2read.c: Fix common/ includes.
12182 * dwarf2loc.c: Fix common/ includes.
12183 * dwarf2-frame.c: Fix common/ includes.
12184 * dwarf-index-cache.c: Fix common/ includes.
12185 * dtrace-probe.c: Fix common/ includes.
12186 * disasm-selftests.c: Fix common/ includes.
12187 * defs.h: Fix common/ includes.
12188 * csky-tdep.c: Fix common/ includes.
12189 * cp-valprint.c: Fix common/ includes.
12190 * cp-support.h: Fix common/ includes.
12191 * cp-support.c: Fix common/ includes.
12192 * corelow.c: Fix common/ includes.
12193 * completer.h: Fix common/ includes.
12194 * completer.c: Fix common/ includes.
12195 * compile/compile.c: Fix common/ includes.
12196 * compile/compile-loc2c.c: Fix common/ includes.
12197 * compile/compile-cplus-types.c: Fix common/ includes.
12198 * compile/compile-cplus-symbols.c: Fix common/ includes.
12199 * command.h: Fix common/ includes.
12200 * cli/cli-dump.c: Fix common/ includes.
12201 * cli/cli-cmds.c: Fix common/ includes.
12202 * charset.c: Fix common/ includes.
12203 * build-id.c: Fix common/ includes.
12204 * btrace.h: Fix common/ includes.
12205 * btrace.c: Fix common/ includes.
12206 * breakpoint.h: Fix common/ includes.
12207 * breakpoint.c: Fix common/ includes.
12208 * ax.h:
12209 (enum agent_op): Fix common/ includes.
12210 * ax-general.c (struct aop_map): Fix common/ includes.
12211 * ax-gdb.c: Fix common/ includes.
12212 * auxv.c: Fix common/ includes.
12213 * auto-load.c: Fix common/ includes.
12214 * arm-tdep.c: Fix common/ includes.
12215 * arch/riscv.c: Fix common/ includes.
12216 * arch/ppc-linux-common.c: Fix common/ includes.
12217 * arch/i386.c: Fix common/ includes.
12218 * arch/arm.c: Fix common/ includes.
12219 * arch/arm-linux.c: Fix common/ includes.
12220 * arch/arm-get-next-pcs.c: Fix common/ includes.
12221 * arch/amd64.c: Fix common/ includes.
12222 * arch/aarch64.c: Fix common/ includes.
12223 * arch/aarch64-insn.c: Fix common/ includes.
12224 * arch-utils.c: Fix common/ includes.
12225 * amd64-windows-tdep.c: Fix common/ includes.
12226 * amd64-tdep.c: Fix common/ includes.
12227 * amd64-sol2-tdep.c: Fix common/ includes.
12228 * amd64-obsd-tdep.c: Fix common/ includes.
12229 * amd64-nbsd-tdep.c: Fix common/ includes.
12230 * amd64-linux-tdep.c: Fix common/ includes.
12231 * amd64-linux-nat.c: Fix common/ includes.
12232 * amd64-fbsd-tdep.c: Fix common/ includes.
12233 * amd64-fbsd-nat.c: Fix common/ includes.
12234 * amd64-dicos-tdep.c: Fix common/ includes.
12235 * amd64-darwin-tdep.c: Fix common/ includes.
12236 * agent.c: Fix common/ includes.
12237 * ada-lang.h: Fix common/ includes.
12238 * ada-lang.c: Fix common/ includes.
12239 * aarch64-tdep.c: Fix common/ includes.
12240
2f5c153e
TT
122412019-01-25 Tom Tromey <tom@tromey.com>
12242
12243 * common/create-version.sh: Use common/version.h.
12244
adc6a863
PA
122452019-01-24 Pedro Alves <palves@redhat.com>
12246
12247 * infrun.c (signal_stop, signal_print, signal_program)
12248 (signal_catch, signal_pass): Now arrays instead of pointers.
12249 (update_signals_program_target, do_target_resume)
12250 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
12251 * linux-nat.c (linux_nat_target::pass_signals)
12252 (linux_nat_target::create_inferior, linux_nat_target::attach):
12253 Adjust.
12254 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
12255 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
12256 * procfs.c (procfs_target::pass_signals): Adjust.
12257 * record-full.c (record_full_target::resume): Adjust.
12258 * remote.c (remote_target::pass_signals)
12259 (remote_target::program_signals): Adjust.
12260 * target-debug.h (target_debug_print_signals): Now takes a
12261 gdb::array_view as parameter. Adjust.
12262 * target.h (target_ops) <pass_signals, program_signals>: Replace
12263 pointer and length parameters with gdb::array_view.
12264 (target_pass_signals, target_program_signals): Likewise.
12265 * target-delegates.c: Regenerate.
12266
3046d67a
PA
122672019-01-24 Pedro Alves <palves@redhat.com>
12268
12269 * common/forward-scope-exit.h
12270 (forward_scope_exit::forward_scope_exit): Pass arguments to
12271 m_bind_function directly, instead of creating a std::bind and
12272 copying that.
12273
353229bf
AH
122742019-01-24 Alan Hayward <alan.hayward@arm.com>
12275
12276 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12277 for static members.
12278 (pass_in_v_vfp_candidate): Likewise.
12279
311dc83a
TT
122802019-01-23 Tom Tromey <tom@tromey.com>
12281 Pedro Alves <palves@redhat.com>
12282
12283 * regcache.c (class regcache_invalidator): Remove.
12284 (regcache::raw_write): Use make_scope_exit.
12285
296bd123
TT
122862019-01-23 Tom Tromey <tom@tromey.com>
12287
12288 * ui-out.h (class ui_out_emit_type): Update comment.
12289
979a0d13
TT
122902019-01-23 Tom Tromey <tom@tromey.com>
12291
12292 * infrun.c (fetch_inferior_event): Update comment.
12293
d238133d
TT
122942019-01-23 Tom Tromey <tom@tromey.com>
12295 Pedro Alves <palves@redhat.com>
12296
12297 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
12298 parameter.
12299 (fetch_inferior_event): Use SCOPE_EXIT.
12300
12301
9885e6bb
TT
123022019-01-23 Tom Tromey <tom@tromey.com>
12303 Pedro Alves <palves@redhat.com>
12304
12305 * infrun.c (disable_thread_events): Delete.
12306 (stop_all_threads): Use SCOPE_EXIT.
12307
286526c1
TT
123082019-01-23 Tom Tromey <tom@tromey.com>
12309 Pedro Alves <palves@redhat.com>
12310
12311 * symfile.c: Include forward-scope-exit.h.
12312 (clear_symtab_users_cleanup): Replace forward declaration with
12313 a FORWARD_SCOPE_EXIT.
12314 (syms_from_objfile_1): Use the forward_scope_exit and
12315 gdb::optional instead of cleanup_function.
12316 (reread_symbols): Use the forward_scope_exit instead of
12317 cleanup_function.
12318 (clear_symtab_users_cleanup): Remove function.
12319
1db93f14
TT
123202019-01-23 Tom Tromey <tom@tromey.com>
12321 Pedro Alves <palves@redhat.com>
12322
12323 * linux-nat.c: Include scope-exit.h.
12324 (cleanup_target_stop): Remove.
12325 (linux_nat_target::static_tracepoint_markers_by_strid): Use
12326 SCOPE_EXIT.
12327
2cc83d1e
TT
123282019-01-23 Tom Tromey <tom@tromey.com>
12329 Pedro Alves <palves@redhat.com>
12330
12331 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
12332 (call_function_by_hand_dummy): Use SCOPE_EXIT.
12333
694c6bf5
TT
123342019-01-23 Tom Tromey <tom@tromey.com>
12335 Andrew Burgess <andrew.burgess@embecosm.com>
12336 Pedro Alves <palves@redhat.com>
12337
12338 * infrun.c (fetch_inferior_event): Use scope_exit.
12339 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
12340 * top.c (execute_command): Use scope_exit.
12341 * breakpoint.c (bpstat_do_actions): Use scope_exit.
12342 * utils.c (do_bpstat_clear_actions_cleanup)
12343 (make_bpstat_clear_actions_cleanup): Remove.
12344
4c41382a
TT
123452019-01-23 Tom Tromey <tom@tromey.com>
12346 Pedro Alves <palves@redhat.com>
12347
12348 * infrun.c: Include "common/scope-exit.h"
12349 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
12350 (wait_for_inferior): Use SCOPE_EXIT.
12351 (fetch_inferior_event): Use scope_exit.
12352
89f8fb50
TT
123532019-01-23 Tom Tromey <tom@tromey.com>
12354 Pedro Alves <palves@redhat.com>
12355
12356 * breakpoint.c (create_breakpoint): Remove cleanup.
12357
5419bdae
TT
123582019-01-23 Tom Tromey <tom@tromey.com>
12359 Andrew Burgess <andrew.burgess@embecosm.com>
12360 Pedro Alves <palves@redhat.com>
12361
e587ef42
PA
123622019-01-23 Pedro Alves <palves@redhat.com>
12363
12364 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
12365
77f0e74c
PA
123662019-01-23 Pedro Alves <palves@redhat.com>
12367 Andrew Burgess <andrew.burgess@embecosm.com>
12368
12369 * gdbthread.h: Include "common/forward-scope-exit.h".
12370 (scoped_finish_thread_state): Redefine custom class in terms of
12371 forward_scope_exit.
12372
5b9b3e53
PA
123732019-01-23 Pedro Alves <palves@redhat.com>
12374 Andrew Burgess <andrew.burgess@embecosm.com>
12375
12376 * common/forward-scope-exit.h: New file.
12377
54b65c9b
PA
123782019-01-23 Pedro Alves <palves@redhat.com>
12379 Andrew Burgess <andrew.burgess@embecosm.com>
12380 Tom Tromey <tom@tromey.com>
12381
12382 * common/scope-exit.h: New file.
12383
cf08fb29
PA
123842019-01-23 Pedro Alves <palves@redhat.com>
12385
12386 * common/preprocessor.h (ESC): Rename to ...
12387 (ESC_PARENS): ... this.
12388 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
12389 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
12390
ae73e2e2
TT
123912019-01-23 Tom Tromey <tom@tromey.com>
12392
12393 * language.h (class scoped_switch_to_sym_language_if_auto):
12394 Initialize m_lang in both cases.
12395
6594e122
AH
123962019-01-23 Alan Hayward <alan.hayward@arm.com>
12397
12398 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
12399 with XCNEW.
12400
a7c9855d
TT
124012019-01-22 Tom Tromey <tom@tromey.com>
12402
12403 * corelow.c: Do not include sys/file.h.
12404
93cc1d53
TT
124052019-01-22 Tom Tromey <tom@tromey.com>
12406
12407 * tui/tui-wingeneral.h: Include gdb_curses.h.
12408
38561778
TT
124092019-01-22 Tom Tromey <tom@tromey.com>
12410
12411 * source-cache.h (class source_cache) <get_source_lines,
12412 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
12413
37b3ab5b
TT
124142019-01-22 Tom Tromey <tom@tromey.com>
12415
12416 * remote-fileio.h (struct remote_target): Declare.
12417
3fabc016
TT
124182019-01-22 Tom Tromey <tom@tromey.com>
12419
12420 * python/py-arch.c: Do not include py-ref.h.
12421 * python/py-bpevent.c: Do not include py-ref.h.
12422 * python/py-cmd.c: Do not include py-ref.h.
12423 * python/py-continueevent.c: Do not include py-ref.h.
12424 * python/py-event.h: Do not include py-ref.h.
12425 * python/py-evtregistry.c: Do not include py-ref.h.
12426 * python/py-finishbreakpoint.c: Do not include py-ref.h.
12427 * python/py-frame.c: Do not include py-ref.h.
12428 * python/py-framefilter.c: Do not include py-ref.h.
12429 * python/py-function.c: Do not include py-ref.h.
12430 * python/py-infevents.c: Do not include py-ref.h.
12431 * python/py-linetable.c: Do not include py-ref.h.
12432 * python/py-objfile.c: Do not include py-ref.h.
12433 * python/py-param.c: Do not include py-ref.h.
12434 * python/py-prettyprint.c: Do not include py-ref.h.
12435 * python/py-progspace.c: Do not include py-ref.h.
12436 * python/py-symbol.c: Do not include py-ref.h.
12437 * python/py-symtab.c: Do not include py-ref.h.
12438 * python/py-type.c: Do not include py-ref.h.
12439 * python/py-unwind.c: Do not include py-ref.h.
12440 * python/py-utils.c: Do not include py-ref.h.
12441 * python/py-value.c: Do not include py-ref.h.
12442 * python/py-varobj.c: Do not include py-ref.h.
12443 * python/py-xmethods.c: Do not include py-ref.h.
12444 * python/python.c: Do not include py-ref.h.
12445 * varobj.c: Do not include py-ref.h.
12446
6b4d7774
TT
124472019-01-22 Tom Tromey <tom@tromey.com>
12448
12449 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
12450 keyword for bcache.
12451
7af7e9b5
TT
124522019-01-22 Tom Tromey <tom@tromey.com>
12453
12454 * compile/compile-cplus-types.c: Remove a comment by #include.
12455
951d1049
TT
124562019-01-22 Tom Tromey <tom@tromey.com>
12457
12458 * compile/gcc-c-plugin.h: Include compile-internal.h.
12459
d65d5705
TT
124602019-01-22 Tom Tromey <tom@tromey.com>
12461
12462 * stabsread.c (EXTERN): Do not define.
12463 (symnum, next_symbol_text_func, processing_gcc_compilation)
12464 (within_function, global_sym_chain, global_stabs)
12465 (previous_stab_code, this_object_header_files)
12466 (n_this_object_header_files)
12467 (n_allocated_this_object_header_files): Define.
12468 * stabsread.h (EXTERN): Never define. Use "extern".
12469
b6fb1ee5
PW
124702019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12471
12472 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
12473 history_value.
12474
be6d4f74
TT
124752019-01-21 Tom Tromey <tom@tromey.com>
12476
12477 * ui-out.c: Fix includes.
12478 * tui/tui-source.c: Fix includes.
12479 * target.c: Fix includes.
12480 * remote.c: Fix includes.
12481 * regcache.c: Fix includes.
12482 * python/py-block.c: Fix includes.
12483 * printcmd.c: Fix includes.
12484 * or1k-tdep.c: Fix includes.
12485 * mi/mi-main.c: Fix includes.
12486 * m32r-tdep.c: Fix includes.
12487 * csky-tdep.c: Fix includes.
12488 * compile/compile-cplus-types.c: Fix includes.
12489 * cli/cli-interp.c: Fix includes.
12490
73021deb
AH
124912019-01-21 Alan Hayward <alan.hayward@arm.com>
12492
12493 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12494 for padding.
12495
7932255d
TT
124962019-01-16 Tom Tromey <tom@tromey.com>
12497
12498 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
12499 earlier.
12500 (struct objfile) <msymbols_range>: Move from top level.
12501 <msymbols>: New method.
12502 (class objfile_msymbols): Remove.
12503 * symtab.c (default_collect_symbol_completion_matches_break_on):
12504 Update.
12505 * symmisc.c (dump_msymbols): Update.
12506 * stabsread.c (scan_file_globals): Update.
12507 * objc-lang.c (info_selectors_command, info_classes_command)
12508 (find_methods): Update.
12509 * minsyms.c (find_solib_trampoline_target): Update.
12510 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
12511 * coffread.c (coff_symfile_read): Update.
12512 * ada-lang.c (ada_lookup_simple_minsym)
12513 (ada_collect_symbol_completion_matches): Update.
12514
604b1bfb
TT
125152019-01-16 Tom Tromey <tom@tromey.com>
12516
12517 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
12518 type. Remove no-argument constructor.
12519 <iterator::operator++>: Simplify.
12520 <begin>: Update.
12521 <end>: Use minimal_symbol_count.
12522
f252c6d5
TT
125232019-01-16 Tom Tromey <tom@tromey.com>
12524
12525 * objfiles.h (struct objfile) <psymtabs>: New method.
12526 (class objfile_psymtabs): Remove.
12527 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
12528 typedef.
12529 <range>: New method.
12530 (require_partial_symbols): Change return type.
12531 * psymtab.c (require_partial_symbols)
12532 (psym_expand_symtabs_matching): Update.
12533 * mdebugread.c (parse_partial_symbols): Update.
12534 * dbxread.c (dbx_end_psymtab): Update.
12535
b669c953
TT
125362019-01-15 Tom Tromey <tom@tromey.com>
12537
12538 * symtab.c (lookup_objfile_from_block)
12539 (lookup_symbol_in_objfile_symtabs)
12540 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
12541 (find_line_symtab, info_sources_command)
12542 (default_collect_symbol_completion_matches_break_on)
12543 (make_source_files_completion_list): Update.
12544 * symmisc.c (print_objfile_statistics, dump_objfile)
12545 (maintenance_print_symbols, maintenance_info_symtabs)
12546 (maintenance_check_symtabs, maintenance_info_line_tables):
12547 Update.
12548 * source.c (select_source_symtab)
12549 (forget_cached_source_info_for_objfile): Update.
12550 * objfiles.h (class objfile_compunits): Remove.
12551 (struct objfile) <compunits_range>: New typedef.
12552 (compunits): New method.
12553 * objfiles.c (objfile_relocate1): Update.
12554 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12555 * maint.c (count_symtabs_and_blocks): Update.
12556 * linespec.c (iterate_over_all_matching_symtabs): Update.
12557 * cp-support.c (add_symbol_overload_list_qualified): Update.
12558 * coffread.c (coff_symtab_read): Update.
12559 * ada-lang.c (add_nonlocal_symbols)
12560 (ada_collect_symbol_completion_matches)
12561 (ada_add_global_exceptions): Update.
12562
7e955d83
TT
125632019-01-15 Tom Tromey <tom@tromey.com>
12564
12565 * progspace.h (program_space) <objfiles_safe_range>: New
12566 typedef.
12567 <objfiles_safe>: New method.
12568 * objfiles.h (class all_objfiles_safe): Remove.
12569 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
12570 * jit.c (jit_inferior_exit_hook): Update.
12571
2030c079
TT
125722019-01-17 Tom Tromey <tom@tromey.com>
12573
12574 * progspace.h (program_space) <objfiles_range>: New typedef.
12575 <objfiles>: New method.
12576 <objfiles_head>: Rename from objfiles.
12577 (object_files): Update.
12578 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
12579 * guile/scm-pretty-print.c
12580 (ppscm_find_pretty_printer_from_objfiles): Update.
12581 * guile/scm-objfile.c (gdbscm_objfiles): Update.
12582 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
12583 Update.
12584 * python/py-progspace.c (pspy_get_objfiles): Update.
12585 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12586 Update.
12587 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12588 (objfpy_lookup_objfile_by_build_id): Update.
12589 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12590 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12591 Update.
12592 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12593 (expand_symtab_containing_pc, lookup_objfile_from_block)
12594 (lookup_static_symbol, basic_lookup_transparent_type)
12595 (find_pc_sect_compunit_symtab, find_symbol_at_address)
12596 (find_line_symtab, info_sources_command)
12597 (default_collect_symbol_completion_matches_break_on)
12598 (make_source_files_completion_list, find_main_name): Update.
12599 * symmisc.c (print_symbol_bcache_statistics)
12600 (print_objfile_statistics, maintenance_print_symbols)
12601 (maintenance_print_msymbols, maintenance_print_objfiles)
12602 (maintenance_info_symtabs, maintenance_check_symtabs)
12603 (maintenance_expand_symtabs, maintenance_info_line_tables):
12604 Update.
12605 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
12606 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
12607 (map_overlay_command, unmap_overlay_command)
12608 (simple_overlay_update, expand_symtabs_matching)
12609 (map_symbol_filenames): Update.
12610 * symfile-debug.c (set_debug_symfile): Update.
12611 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
12612 Update.
12613 * source.c (select_source_symtab, forget_cached_source_info):
12614 Update.
12615 * solib.c (solib_read_symbols): Update.
12616 * solib-spu.c (append_ocl_sos): Update.
12617 * psymtab.c (maintenance_print_psymbols)
12618 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
12619 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
12620 * printcmd.c (info_symbol_command): Update.
12621 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
12622 Update.
12623 * objfiles.h (class all_objfiles): Remove.
12624 * objfiles.c (have_partial_symbols, have_full_symbols)
12625 (have_minimal_symbols, qsort_cmp, update_section_map)
12626 (shared_objfile_contains_address_p)
12627 (default_iterate_over_objfiles_in_search_order): Update.
12628 * objc-lang.c (info_selectors_command, info_classes_command)
12629 (find_methods): Update.
12630 * minsyms.c (find_solib_trampoline_target): Update.
12631 * maint.c (maintenance_info_sections)
12632 (maintenance_translate_address, count_symtabs_and_blocks):
12633 Update.
12634 * main.c (captured_main_1): Update.
12635 * linux-thread-db.c (try_thread_db_load_from_pdir)
12636 (has_libpthread): Update.
12637 * linespec.c (iterate_over_all_matching_symtabs)
12638 (search_minsyms_for_name): Update.
12639 * jit.c (jit_find_objf_with_entry_addr): Update.
12640 * hppa-tdep.c (find_unwind_entry)
12641 (hppa_lookup_stub_minimal_symbol): Update.
12642 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
12643 Update.
12644 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12645 (elf_gnu_ifunc_resolve_by_got): Update.
12646 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
12647 * dwarf-index-write.c (save_gdb_index_command): Update.
12648 * cp-support.c (add_symbol_overload_list_qualified): Update.
12649 * breakpoint.c (create_overlay_event_breakpoint)
12650 (create_longjmp_master_breakpoint)
12651 (create_std_terminate_master_breakpoint)
12652 (create_exception_master_breakpoint): Update.
12653 * blockframe.c (find_pc_partial_function): Update.
12654 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
12655 (ada_collect_symbol_completion_matches)
12656 (ada_add_global_exceptions): Update.
12657
776489e0
TT
126582019-01-17 Tom Tromey <tom@tromey.com>
12659
12660 * solib-target.c (lm_info_target_p): Remove typedef. Don't
12661 declare VEC.
12662 (solib_target_parse_libraries): Change return type.
12663 (library_list_start_segment, library_list_start_section)
12664 (library_list_end_library, library_list_start_library); Update.
12665 (solib_target_free_library_list): Remove.
12666 (solib_target_parse_libraries): Remove cleanup. Change return
12667 type.
12668 (solib_target_current_sos): Update.
12669
6471e7d2
TT
126702019-01-17 Tom Tromey <tromey@bapiya>
12671
12672 * valprint.c: Replace "the the" with "the".
12673 * symtab.c: Replace "the the" with "the".
12674 * solib.c: Replace "the the" with "the".
12675 * solib-dsbt.c: Replace "the the" with "the".
12676 * linespec.c: Replace "the the" with "the".
12677 * dwarf2loc.h: Replace "the the" with "the".
12678 * amd64-windows-tdep.c: Replace "the the" with "the".
12679 * aarch64-tdep.c: Replace "the the" with "the".
12680
c24bdb02
KS
126812019-01-16 Keith Seitz <keiths@redhat.com>
12682
12683 PR gdb/23773
12684 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
12685 <builder>: Rename to ..
12686 <m_builder>: ... this and make private.
12687 (dwarf2_cu::get_builder): New method. Change all users of
12688 `builder' to use this method.
12689 (dwarf2_start_symtab): Move to ...
12690 (dwarf2_cu::start_symtab): ... here. Update all callers
12691 (setup_type_unit_groups): Move to ...
12692 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
12693 callers.
12694 (dwarf2_cu::reset_builder): New method.
12695 (process_full_compunit, process_full_type_unit): Use
12696 dwarf2_cu::reset_builder.
12697 (follow_die_offset): Record the ancestor CU if it is different
12698 from the followed DIE's CU.
12699 (follow_die_sig_1): Likewise.
12700
8d64371b
TT
127012019-01-15 Tom Tromey <tom@tromey.com>
12702
12703 * remote.c (class remote_state) <buf>: Now a char_vector.
12704 <buf_size>: Remove.
12705 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
12706 parameter.
12707 (remote_target::getpkt_or_notif_sane_1)
12708 (remote_target::getpkt_sane)
12709 (remote_target::getpkt_or_notif_sane): Likewise.
12710 (class remote_target) <putpkt>: New overload.
12711 (remote_target::read_frame): Change type of "buf_p". Remove
12712 sizeof_p parameter.
12713 (packet_ok): New overload.
12714 (packet_check_result): New overload.
12715 Update all uses.
12716
bb277751
TT
127172019-01-14 Tom Tromey <tom@tromey.com>
12718
12719 * remote-notif.c (handle_notification, remote_notif_ack)
12720 (remote_notif_parse): Make "buf" const.
12721 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
12722 const.
12723 (remote_notif_parse, remote_notif_ack, handle_notification):
12724 Likewise.
12725 * remote.c (remote_notif_stop_parse): Make "buf" const.
12726 (remote_target::remote_parse_stop_reply): Make "buf" const.
12727 (remote_notif_stop_ack): Make "buf" const.
12728
05be00a8
TT
127292019-01-14 Tom Tromey <tom@tromey.com>
12730
12731 * remote.c (remote_console_output): Make parameter const.
12732
491adeca
TT
127332019-01-14 Tom Tromey <tom@tromey.com>
12734
12735 * target-debug.h (target_debug_print_signals): Constify.
12736 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
12737 * procfs.c (procfs_target::pass_signals): Update.
12738 * linux-nat.c (linux_nat_target::pass_signals): Update.
12739 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
12740 * target-delegates.c: Rebuild.
12741 * remote.c (remote_target::program_signals): Update.
12742 (remote_target::pass_signals): Update.
12743 * target.c (target_pass_signals): Constify argument.
12744 (target_program_signals): Likewise.
12745 * target.h (struct target_ops) <pass_signals, program_signals>:
12746 Constify argument.
12747 (target_pass_signals, target_program_signals): Constify argument.
12748
bbd94648
TT
127492019-01-14 Tom Tromey <tom@tromey.com>
12750
12751 PR tui/28819:
12752 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
12753
6f072a10
PFC
127542019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12755
12756 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
12757 field.
12758 * rs6000-tdep.c: Include reggroups.h.
12759 (IS_V_ALIAS_PSEUDOREG): Define.
12760 (rs6000_register_name): Return names for the "vX" aliases.
12761 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
12762 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
12763 aliases. Call default_register_reggroup_p for all other
12764 pseudo-registers.
12765 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
12766 New functions.
12767 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
12768 Handle "vX" aliases.
12769 (v_alias_pseudo_register_collect): New function.
12770 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
12771 (rs6000_gdbarch_init): Initialize "vX" aliases as
12772 pseudo-registers. Restore registration of
12773 rs6000_pseudo_register_reggroup_p with
12774 set_tdesc_pseudo_register_reggroup_p.
12775
1a782351
MF
127762019-01-13 Max Filippov <jcmvbkbc@gmail.com>
12777
12778 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
12779 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
12780 set_gdbarch_num_pseudo_regs.
12781
d73cff18
PW
127822019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12783
12784 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
12785 Remove arg prefixname, add do_set and do_show.
12786 Add member functions set_list and show_list.
12787 * cli/cli-style.c (class cli_style_option): Update accordingly.
12788 (style_set_list): Move to file scope.
12789 (style_show_list): Likewise.
12790 (set_style): Call help_list.
12791 (show_style): Call cmd_show_list.
12792 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
12793 Update to use the new macro.
12794
60a90376
JB
127952019-10-12 Joel Brobecker <brobecker@adacore.com>
12796
12797 * ada-lang.c (_initialize_ada_language): Expand the help text
12798 for the "catch exception" command.
12799
9d7c67bf
PW
128002019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12801
12802 * symtab.c (matching_obj_sections): Initialize obj,
12803 declare it closer to its usage.
12804
7cf47dc4
TT
128052019-01-10 Tom Tromey <tom@tromey.com>
12806
12807 * thread-iter.h (inf_threads_iterator): Use next_iterator.
12808 (basic_inf_threads_range): Remove.
12809 (inf_threads_range, inf_non_exited_threads_range)
12810 (safe_inf_threads_range): Use next_adapter.
12811
d3cb6808
KS
128122019-01-10 Keith Seitz <keiths@redhat.com>
12813
12814 PR gdb/23712
12815 PR symtab/23010
12816 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
12817 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
12818
63a20375
KS
128192019-01-10 Keith Seitz <keiths@redhat.com>
12820
12821 PR gdb/23712
12822 PR symtab/23010
12823 * dictionary.c (pending_to_vector): Remove.
12824 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12825 Remove _1 suffix, replacing functions of the same name. Update
12826 all callers.
12827 (dict_create_hashed, dict_create_hashed_expandable)
12828 (dict_create_linear, dict_create_linear_expandable, dict_free)
12829 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
12830 Make functions static.
12831
b026f593
KS
128322019-01-10 Keith Seitz <keiths@redhat.com>
12833
12834 PR gdb/23712
12835 PR symtab/23010
12836 * dictionary.h (struct dictionary): Replace declaration with
12837 multidictionary.
12838 (dict_create_hashed, dict_create_hashed_expandable)
12839 (dict_create_linear, dict_create_linear_expandable)
12840 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
12841 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
12842 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
12843 taking multidictionary argument.
12844 [ALL_DICT_SYMBOLS]: Update for multidictionary.
12845 * block.h (struct block) <dict>: Change to multidictionary
12846 and rename `multidict'.
12847 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
12848 symmisc.c: Update all dictionary references to multidictionary.
12849
c7748ee9
KS
128502019-01-10 Keith Seitz <keiths@redhat.com>
12851
12852 PR gdb/23712
12853 PR symtab/23010
12854 * dictionary.c: Include unordered_map.
12855 (pending_to_vector): New function.
12856 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12857 Rewrite the non-"_1" functions to take vector instead
12858 of linked list.
12859 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
12860 "new" _1 versions of the same name.
12861 (multidictionary): Define.
12862 (std::hash<enum language): New definition.
12863 (collate_pending_symbols_by_language, mdict_create_hashed)
12864 (mdict_create_hashed_expandable, mdict_create_linear)
12865 (mdict_create_linear_expandable, mdict_free)
12866 (find_language_dictionary, create_new_language_dictionary)
12867 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
12868 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
12869 (mdict_size, mdict_empty): New functions.
12870 * dictionary.h (mdict_iterator): Define.
12871
67aa1f3c
PA
128722019-01-10 Pedro Alves <palves@redhat.com>
12873
12874 * breakpoint.c (read_uploaded_action)
12875 (create_tracepoint_from_upload): Adjust to use
12876 gdb::unique_xmalloc_ptr.
12877 * ctf.c (ctf_write_uploaded_tp):
12878 (SET_ARRAY_FIELD): Use emplace_back.
12879 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
12880 * tracefile-tfile.c (tfile_write_uploaded_tp):
12881 * tracepoint.c (parse_tracepoint_definition): Adjust to use
12882 gdb::unique_xmalloc_ptr.
12883 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
12884 at_string, cond_string, cmd_strings>: Replace char pointers
12885 with gdb::unique_xmalloc_ptr.
12886
2f667667
PA
128872019-01-10 Pedro Alves <palves@redhat.com>
12888
12889 * solib-target.c (library_list_start_library): Don't xstrdup name.
12890
36cb7237
PA
128912019-01-10 Pedro Alves <palves@redhat.com>
12892
12893 * mdebugread.c (parse_partial_symbols): Use
12894 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
12895
da584958
AB
128962019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12897
12898 * linux-fork.c (scoped_switch_fork_info)
12899 <~scoped_switch_fork_info>: Fix incorrect variable name.
12900
1ef8573c
AB
129012019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12902
12903 * linux-fork.c (scoped_switch_fork_info)
12904 <scoped_switch_fork_info>: Make explicit.
12905 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
12906
8d7bcccb
TT
129072019-01-10 Tom Tromey <tom@tromey.com>
12908
12909 * objfiles.h (objfile::reset_psymtabs): Update.
12910 * objfiles.c (objfile::objfile): Update.
12911 * psymtab.h (psymtab_storage::obstack): Update.
12912 (psymtab_storage::m_obstack): Use gdb::optional.
12913 (class psymtab_storage): Update comment. Remove objfile
12914 parameter.
12915 * psymtab.c (psymtab_storage::psymtab_storage): Update.
12916
b596a3c7
TT
129172019-01-10 Tom Tromey <tom@tromey.com>
12918
12919 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
12920 <free_psymtabs>: Now private.
12921 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
12922 (allocate_psymtab): Use new method.
12923
a9342b62
TT
129242019-01-10 Tom Tromey <tom@tromey.com>
12925
12926 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
12927 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
12928 * mdebugread.c (parse_partial_symbols): Use
12929 allocate_dependencies.
12930 * dwarf2read.c (dwarf2_create_include_psymtab): Use
12931 allocate_dependencies.
12932 (process_psymtab_comp_unit_reader)
12933 (build_type_psymtab_dependencies): Likewise.
12934 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
12935
5af70966
TT
129362019-01-10 Tom Tromey <tom@tromey.com>
12937
12938 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
12939 PSYMBOL_SET_LANGUAGE.
12940 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
12941
5923a04c
TT
129422019-01-10 Tom Tromey <tom@tromey.com>
12943
12944 * psymtab.h (psymtab_storage::obstack): New method.
12945 <m_obstack>: Rename from obstack; now private.
12946 * psymtab.c (psymtab_storage): Update.
12947 * dwarf2read.c (create_addrmap_from_index)
12948 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
12949 Update.
12950
6d6a12bf
TT
129512019-01-10 Tom Tromey <tom@tromey.com>
12952
12953 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
12954 * objfiles.h (objfile::reset_psymtabs): New method.
12955
d320c2b5
TT
129562019-01-10 Tom Tromey <tom@tromey.com>
12957
12958 * symmisc.c (print_symbol_bcache_statistics): Update.
12959 (print_objfile_statistics): Update.
12960 * symfile.c (reread_symbols): Update.
12961 * psymtab.h (class psymtab_storage): New.
12962 * psymtab.c (psymtab_storage): New constructor.
12963 (~psymtab_storage): New destructor.
12964 (require_partial_symbols): Update.
12965 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
12966 (find_pc_sect_psymtab, find_pc_sect_psymbol)
12967 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
12968 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
12969 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
12970 (start_psymtab_common, end_psymtab_common)
12971 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
12972 (allocate_psymtab): Update.
12973 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
12974 Update.
12975 (dump_psymtab_addrmap, maintenance_print_psymbols)
12976 (maintenance_check_psymtabs): Update.
12977 (class objfile_psymtabs): Move to objfiles.h.
12978 * psympriv.h (discard_psymtab): Now inline.
12979 (psymtab_discarder::psymtab_discarder): Update.
12980 (psymtab_discarder::~psymtab_discarder): Update.
12981 (ALL_OBJFILE_PSYMTABS): Rewrite.
12982 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
12983 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
12984 Remove fields.
12985 <partial_symtabs>: New field.
12986 (class objfile_psymtabs): Move from psymtab.h. Update.
12987 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
12988 psymbol_cache.
12989 (objfile::~objfile): Don't destroy psymbol_cache.
12990 * mdebugread.c (parse_partial_symbols): Update.
12991 * dwarf2read.c (create_addrmap_from_index)
12992 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12993 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
12994 (add_partial_subprogram, dwarf2_ranges_read): Update.
12995 * dwarf-index-write.c (write_address_map)
12996 (write_one_signatured_type, recursively_write_psymbols)
12997 (class debug_names, class debug_names, write_psymtabs_to_index):
12998 Update.
12999
1d94a5a3
TT
130002019-01-10 Tom Tromey <tom@tromey.com>
13001
13002 * symtab.h (SYMBOL_SET_NAMES): Update.
13003 (symbol_set_names): Update.
13004 (MSYMBOL_SET_NAMES): Update.
13005 * symtab.c (symbol_set_names): Change argument to be an
13006 objfile_per_bfd_storage.
13007 * psymtab.c (add_psymbol_to_bcache): Update.
13008 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
13009
0f14768a
TT
130102019-01-10 Tom Tromey <tom@tromey.com>
13011
13012 * symtab.c (create_demangled_names_hash): Change argument to be an
13013 objfile_per_bfd_storage.
13014 (symbol_set_names): Update.
13015
6eee24ce
TT
130162019-01-10 Tom Tromey <tom@tromey.com>
13017
13018 * xcoffread.c (xcoff_initial_scan): Unconditionally call
13019 init_psymbol_list.
13020 * psymtab.c (init_psymbol_list): Do nothing if already called.
13021 * psympriv.h (init_psymbol_list): Add comment.
13022 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
13023 init_psymbol_list.
13024 * dbxread.c (dbx_symfile_read): Unconditionally call
13025 init_psymbol_list.
13026
75aedd27
TT
130272019-01-10 Tom Tromey <tom@tromey.com>
13028
13029 * xcoffread.c (scan_xcoff_symtab): Update.
13030 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
13031 "where".
13032 * mdebugread.c (parse_partial_symbols)
13033 (handle_psymbol_enumerators): Update.
13034 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
13035 * dbxread.c (read_dbx_symtab): Update.
13036 * psympriv.h (psymbol_placement): New enum.
13037 (add_psymbol_to_list): Update.
13038
939652a5
TT
130392019-01-10 Tom Tromey <tom@tromey.com>
13040
13041 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
13042 static_psymbols parameters.
13043 (scan_xcoff_symtab): Update.
13044 * psymtab.c (start_psymtab_common): Remove global_psymbols and
13045 static_psymbols parameters.
13046 * psympriv.h (start_psymtab_common): Update.
13047 * mdebugread.c (parse_partial_symbols): Update.
13048 * dwarf2read.c (create_partial_symtab): Update.
13049 * dbxread.c (read_dbx_symtab): Update.
13050 (start_psymtab): Remove global_psymbols and static_psymbols
13051 parameters.
13052
baa62830
TT
130532019-01-10 Tom Tromey <tom@tromey.com>
13054
13055 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
13056 * psymtab.c (allocate_psymtab): Add comment.
13057 * psympriv.h (allocate_psymtab): Add comment.
13058 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
13059 initializations.
13060 * dbxread.c (dbx_end_psymtab): Remove some initializations.
13061
0e8f53ba
TT
130622019-01-10 Tom Tromey <tom@tromey.com>
13063
13064 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13065 Don't declare.
13066 * mipsread.c: Include mdebugread.h.
13067 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13068 Declare.
13069 * elfread.c: Include mdebugread.h.
13070
b22a7c6a
TT
130712019-01-09 Tom Tromey <tom@tromey.com>
13072
13073 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
13074 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
13075 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
13076 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
13077 (psym_lookup_symbol, psym_find_last_source_symtab)
13078 (psym_forget_cached_source_info, psym_print_stats)
13079 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
13080 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
13081 (psym_map_matching_symbols, psym_expand_symtabs_matching)
13082 (psym_find_compunit_symtab_by_address)
13083 (maintenance_print_psymbols, maintenance_info_psymtabs)
13084 (maintenance_check_psymtabs): Use ranged for.
13085 * psymtab.h (class objfile_psymtabs): New.
13086 (require_partial_symbols): Return objfile_psymtabs.
13087 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
13088
3b9d3ac2
TT
130892019-01-09 Tom Tromey <tom@tromey.com>
13090
13091 * symfile.c (overlay_invalidate_all, find_pc_overlay)
13092 (find_pc_mapped_section, list_overlays_command)
13093 (map_overlay_command, unmap_overlay_command)
13094 (simple_overlay_update): Use all_objfiles.
13095 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
13096 * printcmd.c (info_symbol_command): Use all_objfiles.
13097 * objfiles.h (ALL_OBJSECTIONS): Remove.
13098 * maint.c (maintenance_translate_address): Use all_objfiles.
13099 * gcore.c (gcore_create_callback): Use all_objfiles.
13100 (objfile_find_memory_regions): Likewise.
13101
8b31193a
TT
131022019-01-09 Tom Tromey <tom@tromey.com>
13103
13104 * symtab.c (find_line_symtab, info_sources_command)
13105 (make_source_files_completion_list): Use objfile_compunits.
13106 * source.c (select_source_symtab): Use objfile_compunits.
13107 * objfiles.h (struct objfile): Update comment.
13108 (ALL_OBJFILES): Remove.
13109 (ALL_FILETABS): Remove.
13110 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
13111 objfile_compunits.
13112
d5da8b3c
TT
131132019-01-09 Tom Tromey <tom@tromey.com>
13114
13115 * symmisc.c (print_objfile_statistics, dump_objfile)
13116 (maintenance_print_symbols): Use compunit_filetabs.
13117 * source.c (forget_cached_source_info_for_objfile): Use
13118 compunit_filetabs.
13119 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
13120 (ALL_FILETABS): Use compunit_filetabs.
13121 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
13122 * coffread.c (coff_symtab_read): Use compunit_filetabs.
13123
5accd1a0
TT
131242019-01-09 Tom Tromey <tom@tromey.com>
13125
13126 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
13127 (compunit_filetabs): New.
13128 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
13129 compunit_filetabs.
13130 (info_sources_command, make_source_files_completion_list): Remove
13131 declaration.
13132 * symmisc.c (print_objfile_statistics, dump_objfile)
13133 (maintenance_print_symbols): Remove declaration.
13134 (maintenance_info_symtabs): Use compunit_filetabs.
13135 (maintenance_info_line_tables): Likewise.
13136 * source.c (select_source_symtab): Change local variable name.
13137 (forget_cached_source_info_for_objfile): Remove declaration.
13138 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
13139 * objfiles.c (objfile_relocate1): Remove declaration.
13140 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13141 declaration.
13142 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
13143 * coffread.c (coff_symtab_read): Remove declaration.
13144 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
13145 compunit_filetabs.
13146
d8aeb77f
TT
131472019-01-09 Tom Tromey <tom@tromey.com>
13148
13149 * symtab.c (lookup_objfile_from_block)
13150 (find_pc_sect_compunit_symtab, search_symbols)
13151 (default_collect_symbol_completion_matches_break_on): Use
13152 objfile_compunits.
13153 * objfiles.h (ALL_COMPUNITS): Remove.
13154 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
13155 * cp-support.c (add_symbol_overload_list_qualified): Use
13156 objfile_compunits.
13157 * ada-lang.c (ada_collect_symbol_completion_matches)
13158 (ada_add_global_exceptions): Use objfile_compunits.
13159
592553c4
TT
131602019-01-09 Tom Tromey <tom@tromey.com>
13161
13162 * source.c (select_source_symtab)
13163 (forget_cached_source_info_for_objfile): Remove declaration.
13164 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13165 declaration.
13166 * maint.c (count_symtabs_and_blocks): Remove declaration.
13167 * cp-support.c (add_symbol_overload_list_qualified): Remove
13168 declaration.
13169 * coffread.c (coff_symtab_read): Remove declaration.
13170 * symtab.c (lookup_symbol_in_objfile_symtabs)
13171 (basic_lookup_transparent_type_1): Use objfile_compunits.
13172 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
13173 (info_sources_command, search_symbols)
13174 (default_collect_symbol_completion_matches_break_on)
13175 (make_source_files_completion_list): Remove declaration.
13176 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
13177 (ada_collect_symbol_completion_matches)
13178 (ada_add_global_exceptions): Remove declaration.
13179 * linespec.c (iterate_over_all_matching_symtabs): Use
13180 objfile_compunits.
13181 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
13182 (class objfile_compunits): New.
13183 (ALL_COMPUNITS): Use objfile_compunits.
13184 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
13185 (maintenance_check_symtabs, maintenance_info_line_tables): Use
13186 objfile_compunits.
13187 * objfiles.c (objfile_relocate1): Use objfile_compunits.
13188
5325b9bf
TT
131892019-01-09 Tom Tromey <tom@tromey.com>
13190
13191 * symtab.c (search_symbols)
13192 (default_collect_symbol_completion_matches_break_on): Use
13193 objfile_msymbols.
13194 * ada-lang.c (ada_lookup_simple_minsym)
13195 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
13196 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
13197 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
13198 objfile_msymbols.
13199 * coffread.c (coff_symfile_read): Use objfile_msymbols.
13200 * symmisc.c (dump_msymbols): Use objfile_msymbols.
13201 * objc-lang.c (find_methods): Use objfile_msymbols.
13202 (info_selectors_command, info_classes_command): Likewise.
13203 * stabsread.c (scan_file_globals): Use objfile_msymbols.
13204 * objfiles.h (class objfile_msymbols): New.
13205 (ALL_OBJFILE_MSYMBOLS): Remove.
13206 (ALL_MSYMBOLS): Remove.
13207
cac85af2
TT
132082019-01-09 Tom Tromey <tom@tromey.com>
13209
13210 * common/next-iterator.h (next_adapter): Add Iterator template
13211 parameter.
13212 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
13213 (class all_objfiles_safe): New.
13214 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
13215 * objfiles.c (put_objfile_before): Update comment.
13216 (add_separate_debug_objfile): Likewise.
13217 (free_all_objfiles): Use all_objfiles_safe.
13218 (objfile_purge_solibs): Likewise.
13219
aed57c53
TT
132202019-01-09 Tom Tromey <tom@tromey.com>
13221
13222 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13223 (expand_symtab_containing_pc, lookup_static_symbol)
13224 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
13225 (find_symbol_at_address, find_line_symtab, find_main_name): Use
13226 all_objfiles.
13227 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
13228 * breakpoint.c (create_overlay_event_breakpoint)
13229 (create_longjmp_master_breakpoint)
13230 (create_std_terminate_master_breakpoint)
13231 (create_exception_master_breakpoint): Use all_objfiles.
13232 * linux-thread-db.c (try_thread_db_load_from_pdir)
13233 (has_libpthread): Use all_objfiles.
13234 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
13235 * linespec.c (iterate_over_all_matching_symtabs)
13236 (search_minsyms_for_name): Use all_objfiles.
13237 * maint.c (maintenance_info_sections): Use all_objfiles.
13238 * main.c (captured_main_1): Use all_objfiles.
13239 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
13240 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
13241 * guile/scm-pretty-print.c
13242 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
13243 * solib-spu.c (append_ocl_sos): Use all_objfiles.
13244 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
13245 (maintenance_print_msymbols): Use all_objfiles.
13246 * source.c (select_source_symtab): Use all_objfiles.
13247 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
13248 * symfile.c (remove_symbol_file_command)
13249 (expand_symtabs_matching, map_symbol_filenames): Use
13250 all_objfiles.
13251 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
13252 all_objfiles.
13253 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
13254 * objc-lang.c (find_methods): Use all_objfiles.
13255 * objfiles.c (have_partial_symbols, have_full_symbols)
13256 (have_minimal_symbols, qsort_cmp)
13257 (default_iterate_over_objfiles_in_search_order): Use
13258 all_objfiles.
13259 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
13260 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
13261 (maintenance_check_psymtabs): Use all_objfiles.
13262 (ALL_PSYMTABS): Remove.
13263 * compile/compile-object-run.c (do_module_cleanup): Use
13264 all_objfiles.
13265 * blockframe.c (find_pc_partial_function): Use all_objfiles.
13266 * cp-support.c (add_symbol_overload_list_qualified): Use
13267 all_objfiles.
13268 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13269 Use all_objfiles.
13270 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
13271 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
13272 all_objfiles.
13273 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13274 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
13275 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13276 Uses all_objfiles.
13277 * solib.c (solib_read_symbols): Use all_objfiles
13278
99d89cde
TT
132792019-01-09 Tom Tromey <tom@tromey.com>
13280
13281 * probe.c (parse_probes_in_pspace): Use all_objfiles.
13282 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
13283 all_objfiles.
13284 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
13285 * symmisc.c (print_symbol_bcache_statistics)
13286 (print_objfile_statistics, maintenance_print_objfiles)
13287 (maintenance_info_symtabs, maintenance_check_symtabs)
13288 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
13289 all_objfiles.
13290 * source.c (forget_cached_source_info): Use all_objfiles.
13291 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
13292 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13293 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
13294 * objfiles.c (update_section_map): Use all_objfiles.
13295 (shared_objfile_contains_address_p): Likewise.
13296 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
13297 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
13298
21708325
TT
132992019-01-09 Tom Tromey <tom@tromey.com>
13300
13301 * common/next-iterator.h: New file.
13302 * objfiles.h (class all_objfiles): New.
13303 (struct objfile_iterator): New.
13304
669e09f6
PW
133052019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13306
13307 * NEWS: Move the description of the changed "frame", "select-frame",
13308 and "info frame" commands to the Changed commands section.
13309
041be526
SM
133102019-01-09 Simon Marchi <simon.marchi@ericsson.com>
13311
13312 * gdbtypes.c (check_stub_method_group): Remove handling of old
13313 mangling schemes.
13314 * linespec.c (find_methods): Likewise.
13315 * stabsread.c (read_member_functions): Likewise.
13316 * valops.c (search_struct_method): Likewise.
13317 (value_struct_elt_for_reference): Likewise.
13318 * NEWS: Mention this change.
13319
0e2a2133
AB
133202019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13321
13322 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
13323 print_source_lines.
13324 * source.c (print_source_lines_base): Update line number check.
13325 (print_source_lines): New function.
13326 (source_lines_range::source_lines_range): New function.
13327 * source.h (class source_lines_range): New class.
13328 (print_source_lines): New declaration.
13329
1055a3b4
PW
133302019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13331
13332 * linespec.c (linespec_state_destructor): Free self->canonical_names.
13333
cfeadda5
TT
133342019-01-08 Tom Tromey <tom@tromey.com>
13335 Simon Marchi <simon.marchi@ericsson.com>
13336
13337 PR gdb/24060
13338 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
13339 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
13340 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13341 * f-exp.y (DOLLAR_VARIABLE): Likewise.
13342 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
13343 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13344
583068ca
AB
133452019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13346
13347 * source.c (select_source_symtab): Move header comment to
13348 declaration in source.h.
13349 (forget_cached_source_info_for_objfile): Likewise.
13350 (forget_cached_source_info): Likewise.
13351 (identify_source_line): Likewise.
13352 * source.h (identify_source_line): Move declaration from symtab.h
13353 and add comment from source.c
13354 (print_source_lines): Likewise.
13355 (forget_cached_source_info_for_objfile): Likewise.
13356 (forget_cached_source_info): Likewise.
13357 (select_source_symtab): Likewise.
13358 (enum print_source_lines_flag): Move definition from symtab.h.
13359 * symtab.h (identify_source_line): Move declaration to source.h.
13360 (print_source_lines): Likewise.
13361 (forget_cached_source_info_for_objfile): Likewise.
13362 (forget_cached_source_info): Likewise.
13363 (select_source_symtab): Likewise.
13364 (enum print_source_lines_flag): Move definition to source.h.
13365 * tui/tui-hooks.c: Add 'source.h' include.
13366
ec98a4ad
AB
133672019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13368
13369 * source.c (print_source_lines_base): Handle requests to print
13370 reverse line number sequences, and guard against empty lines
13371 string.
13372
62ea19c1
AB
133732019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13374
13375 * source.c (print_source_lines_base): Fix skip of '\r' if next
13376 character is '\n'.
13377
9d30e1fd
TT
133782019-01-06 Tom Tromey <tom@tromey.com>
13379
13380 * c-exp.y (struct c_parse_state) <macro_original_text,
13381 expansion_obstack>: New member.
13382 (macro_original_text, expansion_obstack): Remove globals.
13383 (scan_macro_expansion, scanning_macro_expansion)
13384 (finished_macro_expansion): Update.
13385 (scan_macro_cleanup): Remove.
13386 (yylex, c_parse): Update.
13387
c65bac38
TT
133882019-01-06 Tom Tromey <tom@tromey.com>
13389
13390 * c-exp.y (struct c_parse_state) <strings>: New member.
13391 (operator_stoken): Update.
13392
02e12e38
TT
133932019-01-06 Tom Tromey <tom@tromey.com>
13394
13395 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
13396 (union type_stack_elt) <typelist_val>: Now a pointer to
13397 std::vector.
13398 (type_stack_cleanup): Don't declare.
13399 (push_typelist): Update.
13400 * parse.c (pop_typelist): Return a std::vector.
13401 (push_typelist): Take a std::vector.
13402 (follow_types): Update. Do not free args.
13403 (type_stack_cleanup): Remove.
13404 * c-exp.y (struct c_parse_state): New.
13405 (cpstate): New global.
13406 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
13407 (nonempty_typelist): Update.
13408 (func_mod): Create a new vector.
13409 (c_parse): Create a c_parse_state.
13410 (check_parameter_typelist): Do not delete params.
13411 (function_method): Update. Do not delete type_list.
13412
f097f5ad
TT
134132019-01-06 Tom Tromey <tom@tromey.com>
13414
13415 PR gdb/28155:
13416 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
13417 check_typedef.
13418 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
13419 (print_return_value): Likewise.
13420
d2adf9f1
TT
134212019-01-05 Tom Tromey <tom@tromey.com>
13422
13423 * contrib/cleanup_check.py: Remove.
13424 * contrib/gcc-with-excheck: Remove.
13425 * contrib/exsummary.py: Remove.
13426 * contrib/excheck.py: Remove.
13427
2eab46b1
JB
134282019-01-05 Joel Brobecker <brobecker@adacore.com>
13429
13430 * thread.c (delete_thread_1): Add gdb_assert that THR is not
13431 NULL. Initialize tpprev to NULL instead of assigning it
13432 to NULL on the next statement.
13433 * windows-nat.c (windows_delete_thread): Remove check for
13434 main_thread_id before printing thread exit notifications.
13435 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
13436 Remove thread ID check against main_thread_id.
13437 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
13438 windows_delete_thread.
13439 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
13440
48c5e7e2
TT
134412019-01-04 Tom Tromey <tom@tromey.com>
13442
13443 * compile/compile.c (_initialize_compile): Use upper case for
13444 metasyntactic variables.
13445 * symmisc.c (_initialize_symmisc): Use upper case for
13446 metasyntactic variables.
13447 * psymtab.c (_initialize_psymtab): Use upper case for
13448 metasyntactic variables.
13449 * demangle.c (demangle_command): Use upper case for metasyntactic
13450 variables.
13451 (_initialize_demangler): Likewise.
13452 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
13453 variables.
13454
986041cd
TT
134552019-01-03 Tom Tromey <tom@tromey.com>
13456
13457 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
13458
7c711119
TT
134592019-01-03 Tom Tromey <tom@tromey.com>
13460
13461 * python/py-symtab.c (salpy_str): Update.
13462 (struct salpy_sal_object) <symtab>: Now a PyObject.
13463 (salpy_dealloc): Update.
13464 (del_objfile_sal): Use gdbpy_ref.
13465
1b20edf0
TT
134662019-01-03 Tom Tromey <tom@tromey.com>
13467
13468 * python/py-type.c (convert_field): Use new_reference. Return
13469 gdbpy_ref.
13470 (make_fielditem): Return gdbpy_ref.
13471 (typy_fields): Update.
13472 (typy_getitem): Update.
13473 (field_name): Return gdbpy_ref. Use new_reference.
13474 (typy_iterator_iternext): Update.
13475
ea41325b
TT
134762019-01-03 Tom Tromey <tom@tromey.com>
13477
13478 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
13479
2a3c71d6
TT
134802019-01-03 Tom Tromey <tom@tromey.com>
13481
13482 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
13483 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
13484 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
13485 (pspy_set_frame_filters, pspy_set_frame_unwinders)
13486 (pspy_set_type_printers): Likewise.
13487 * python/py-function.c (fnpy_init): Use gdbpy_ref.
13488 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
13489 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
13490 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
13491 (objfpy_set_type_printers): Likewise.
13492
5c329e6a
TT
134932019-01-03 Tom Tromey <tom@tromey.com>
13494
13495 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
13496 (gdbpy_print_stack): Use gdbpy_err_fetch.
13497 * python/python-internal.h (class gdbpy_err_fetch): New class.
13498 (class gdbpy_enter) <m_error_type, m_error_value,
13499 m_error_traceback>: Remove.
13500 <m_error>: New member.
13501 (gdbpy_exception_to_string): Don't declare.
13502 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
13503 * python/py-value.c (convert_value_from_python): Use
13504 gdbpy_err_fetch.
13505 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
13506 gdbpy_exception_to_string.
13507 (gdbpy_handle_exception): Use gdbpy_err_fetch.
13508 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
13509 gdbpy_err_fetch.
13510
169bb27b
AB
135112019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13512
13513 * linux-nat.c (delete_lwp_cleanup): Delete.
13514 (struct lwp_deleter): New struct.
13515 (lwp_info_up): New typedef.
13516 (linux_nat_target::follow_fork): Delete cleanup, and make use of
13517 lwp_info_up.
13518
a07c8880
AB
135192019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13520
13521 * linux-fork.c (class scoped_switch_fork_info): New class.
13522 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
13523
26089c49
AB
135242019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13525
13526 * valops.c (find_overload_match): Remove use of null_cleanup, and
13527 calls to do_cleanups.
13528
06d3e5b0
AB
135292019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13530
13531 * compile/compile-cplus-types.c
13532 (compile_cplus_instance::decl_name): Handle changes to
13533 cp_func_name.
13534 * cp-support.c (cp_func_name): Update header comment, update
13535 return type.
13536 * cp-support.h (cp_func_name): Update return type in declaration.
13537 * valops.c (find_overload_match): Move temp_func local to top
13538 level of function and change its type. Use temp_func to hold and
13539 delete temporary string obtained from cp_func_name.
13540
66644cd3
AB
135412019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13542
13543 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
13544 gdb::char_vector, remove cleanup, and update uses of `msg`.
13545
592d8c0a
JW
135462019-01-03 Jim Wilson <jimw@sifive.com>
13547
13548 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
13549
c55d06ec
TT
135502019-01-02 Tom Tromey <tom@tromey.com>
13551
13552 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
13553 (tdesc_parse_xml): Remove cleanups.
13554 * target-descriptions.h (make_cleanup_free_target_description):
13555 Don't declare.
13556 (target_desc_deleter): New struct.
13557 (target_desc_up): New typedef.
13558 * target-descriptions.c (target_desc_deleter::operator()): Rename
13559 from free_target_description.
13560 (make_cleanup_free_target_description): Remove.
13561
3a6ae42d
TT
135622019-01-02 Tom Tromey <tom@tromey.com>
13563
13564 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
13565 constructor, destructor.
13566 (linespec_parser): Remove typedef.
13567 (~linespec_parser): Rename from linespec_parser_delete.
13568 (linespec_lex_to_end, linespec_complete_label)
13569 (linespec_complete): Update.
13570 (decode_line_full): Remove cleanups.
13571 (decode_line_1): Update.
13572
61fd3e73
TT
135732019-01-02 Tom Tromey <tom@tromey.com>
13574
13575 * python/python-internal.h (inferior_to_inferior_object): Change
13576 return type.
13577 * python/py-exitedevent.c (create_exited_event_object): Update.
13578 * python/py-inferior.c (inferior_to_inferior_object): Return
13579 gdbpy_ref.
13580 (python_new_inferior, python_inferior_deleted)
13581 (thread_to_thread_object, delete_thread_object)
13582 (build_inferior_list, gdbpy_selected_inferior): Update.
13583 * python/py-infthread.c (create_thread_object): Update. Also fail
13584 if inferior_to_inferior_object fails.
13585
d20172fc
SM
135862019-01-02 Simon Marchi <simon.marchi@ericsson.com>
13587
13588 * inferior.h (class inferior) <displaced_step_state>: New field.
13589 * infrun.h (struct displaced_step_state): Move here from
13590 infrun.c. Initialize fields, add constructor.
13591 <inf>: Remove field.
13592 <reset>: New method.
13593 * infrun.c (struct displaced_step_inferior_state): Move to
13594 infrun.h.
13595 (displaced_step_inferior_states): Remove.
13596 (get_displaced_stepping_state): Adust.
13597 (displaced_step_in_progress_any_inferior): Adjust.
13598 (displaced_step_in_progress_thread): Adjust.
13599 (displaced_step_in_progress): Adjust.
13600 (add_displaced_stepping_state): Remove.
13601 (get_displaced_step_closure_by_addr): Adjust.
13602 (remove_displaced_stepping_state): Remove.
13603 (infrun_inferior_exit): Call displaced_step_state.reset.
13604 (use_displaced_stepping): Don't check for NULL.
13605 (displaced_step_prepare_throw): Call
13606 get_displaced_stepping_state.
13607 (displaced_step_fixup): Don't check for NULL.
13608 (prepare_for_detach): Don't check for NULL.
13609
e3319240
PW
136102019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13611
13612 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
13613 in case of call that did not complete.
13614
5d36dfb9
AU
136152019-01-02 Andrey Utkin <autkin@undo.io>
13616
13617 * symfile.c (find_separate_debug_file): Fix search of debug files for
13618 remote debuggee.
13619
8833fbf0
TT
136202019-01-02 Tom Tromey <tom@tromey.com>
13621
13622 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
13623 indentation.
13624 * python/py-frame.c (frapy_older): Remove cast.
13625 (frapy_newer): Likewise.
13626 * python/py-breakpoint.c (local_setattro): Remove cast.
13627 * python/py-arch.c (archpy_name): Remove local variable.
13628 * python/py-type.c (gdbpy_lookup_type): Remove cast.
13629
4ada3dfd
JB
136302019-01-02 Joel Brobecker <brobecker@adacore.com>
13631
13632 * unittests/basic_string_view/element_access/char/empty.cc:
13633 Fix year range in copyright header.
13634
113b7b81
AB
136352019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
13636
13637 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
13638 Delete.
13639 <operator==>: Update with for removed field.
13640 <hash>: Likewise.
13641 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
13642 <isa_features>: ...this.
13643 <abi_features>: New field.
13644 (riscv_isa_flen): Update comment.
13645 (riscv_abi_xlen): New declaration.
13646 (riscv_abi_flen): New declaration.
13647 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
13648 isa_features.
13649 (riscv_abi_xlen): New function.
13650 (riscv_isa_flen): Update to get answer from isa_features.
13651 (riscv_abi_flen): New function.
13652 (riscv_has_fp_abi): Update to get answer from abi_features.
13653 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
13654 xlen and flen.
13655 (riscv_call_info) <xlen, flen>: Update comment.
13656 (riscv_call_arg_struct): Remove invalid assertions
13657 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
13658 is removed.
13659 (riscv_gdbarch_init): Gather isa features and abi features
13660 separately, ensure both match on the gdbarch when reusing an old
13661 gdbarch. Relax an error check to allow 32-bit abi float to run on
13662 a target with 64-bit float hardware.
13663
b18ca514
PW
136642019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13665
13666 * source.c (search_command_helper): Stop reverse search
13667 when line 1 has been searched.
13668
ec70d8db
PW
136692019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13670
13671 * record-full.c (record_full_base_target::close): Rewrite
13672 record_full_core_buf_list free logic.
13673
5b38f9c1
PW
136742019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13675
13676 * break-catch-syscall.c (print_one_catch_syscall): xfree
13677 the last text.
13678
66d91b39
JB
136792019-01-01 Joel Brobecker <brobecker@adacore.com>
13680
13681 * top.c (print_gdb_version): Update Copyright year in version
13682 message.
13683
42a4f53d
JB
136842019-01-01 Joel Brobecker <brobecker@adacore.com>
13685
13686 Update copyright year range in all GDB files.
13687
7e955d83 136882019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 13689
5bbd631d 13690 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 13691
5bbd631d 13692For older changes see ChangeLog-2018.
c906108c
SS
13693\f
13694Local Variables:
13695mode: change-log
13696left-margin: 8
13697fill-column: 74
13698version-control: never
57da7796 13699coding: utf-8
c906108c 13700End:
5bbd631d 13701
This page took 4.211963 seconds and 4 git commands to generate.