RISC-V: Fix two ARI warnings.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-10-11 Jim Wilson <jimw@sifive.com>
2
3 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
4 plongest instead of unsigned long long cast.
5
6 2019-10-10 Christian Biesinger <cbiesinger@google.com>
7
8 * main.c (captured_main_1): Include gdbtk.h and remove declarations
9 for external_editor_command and gdbtk_test.
10
11 2019-10-10 Christian Biesinger <cbiesinger@google.com>
12
13 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
14 * varobj.c (varobjdebug): Move comment to...
15 * varobj.h (varobjdebug): ...here, and declare.
16
17 2019-10-09 Tom Tromey <tom@tromey.com>
18
19 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
20 erase_data_content.
21
22 2019-10-09 Tom Tromey <tom@tromey.com>
23
24 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
25 * tui/tui-stack.c (tui_locator_window::rerender): Update.
26 * tui/tui-command.c (tui_cmd_window::resize)
27 (tui_refresh_cmd_win): Update.
28 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
29 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
30 * tui/tui-data.c (~tui_gen_win_info): Remove.
31 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
32 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
33 (tui_redisplay_readline, tui_mld_flush)
34 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
35 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
36 (tui_data_window::erase_data_content)
37 (tui_data_item_window::rerender)
38 (tui_data_item_window::refresh_window): Update.
39 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
40 (box_win, tui_gen_win_info::make_window)
41 (tui_gen_win_info::make_visible): Update.
42 (tui_delete_win): Remove.
43 * tui/tui-winsource.c
44 (tui_source_window_base::do_erase_source_content): Update.
45 (tui_show_source_line, tui_source_window_base::update_tab_width)
46 (tui_source_window_base::update_exec_info): Update.
47 * tui/tui-data.h (struct curses_deleter): New.
48 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
49 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
50
51 2019-10-09 Tom Tromey <tom@tromey.com>
52
53 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
54
55 2019-10-09 Tom Tromey <tom@tromey.com>
56
57 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
58 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
59
60 2019-10-09 Tom Tromey <tom@tromey.com>
61
62 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
63 window height directly.
64 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
65 declare.
66 * tui/tui-layout.c (tui_default_win_height): Remove.
67 (tui_default_win_viewport_height): Remove.
68
69 2019-10-09 Tom Tromey <tom@tromey.com>
70
71 * tui/tui.h: Remove comments.
72
73 2019-10-09 Tom de Vries <tdevries@suse.de>
74
75 * python/lib/gdb/printer/bound_registers.py: Use
76 '^builtin_type_bound128' as regexp argument for
77 add_builtin_pretty_printer.
78
79 2019-10-09 Christian Biesinger <cbiesinger@google.com>
80
81 * guile/guile.c (guile_extension_script_ops): Remove forward
82 declaration and mark as static.
83 (guile_script_ops): Likewise.
84 (extension_language_guile): Move further down in the file so
85 it can reference the definitions for guile_{extension_,}script_ops.
86
87 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
88
89 * s390-tdep.c (390_process_record): Handle new arch13 instructions
90 except SORTL, DFLTCC, and KDSA.
91
92 2019-10-08 Tom Tromey <tromey@adacore.com>
93
94 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
95 (struct safe_symbol_file_add_args): Remove.
96
97 2019-10-08 Tom Tromey <tromey@adacore.com>
98
99 * windows-nat.c: Don't include buildsym-legacy.h.
100
101 2019-10-08 Tom Tromey <tromey@adacore.com>
102
103 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
104
105 2019-10-08 Christian Biesinger <cbiesinger@google.com>
106
107 * gdbtypes.c (overload_debug): Move comment to header.
108 * gdbtypes.h (overload_debug): Declare.
109 * valops.c: Remove declaration of overload_debug, instead
110 include gdbtypes.h.
111
112 2019-10-08 Christian Biesinger <cbiesinger@google.com>
113
114 * language.c (show_language_command): Pass lang_frame_mismatch_warn
115 through _().
116 (lang_frame_mismatch_warn): Make const, mark with N_(), and
117 move comment...
118 * language.h (lang_frame_mismatch_warn): ... here. Also add
119 declaration.
120 * top.c (lang_frame_mismatch_warn): Remove declaration.
121 (check_frame_language_change): Pass lang_frame_mismatch_warn
122 through _().
123
124 2019-10-07 Christian Biesinger <cbiesinger@google.com>
125
126 * c-lang.h (vtbl_ptr_name): Declare.
127 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
128 it from the header.
129 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
130
131 2019-10-07 Christian Biesinger <cbiesinger@google.com>
132
133 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
134 gdb_static_assert.
135
136 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
137
138 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
139 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
140 * ctfread.c: New file.
141 * ctfread.h: New file.
142 * elfread.c: Include ctfread.h.
143 (struct elfinfo text_p): New member ctfsect.
144 (elf_locate_sections): Mark CTF section.
145 (elf_symfile_read): Call elfctf_build_psymtabs.
146 * Makefile.in (LIBCTF): Add.
147 (CLIBS): Use it.
148 (CDEPS): Likewise.
149 (DIST): Add ctfread.c.
150
151 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
152
153 * ctfread.c (struct nextfield): Renamed to ...
154 (struct ctf_nextfield): ... this.
155 (struct field_info): Renamed to ...
156 (strut ctf_field_info): ... this.
157 (attach_fields_to_type): Update for renamed structures.
158 (ctf_add_member_cb): Likewise.
159 (ctf_add_enum_member_cb): Likewise.
160 (process_struct_members): Likewise.
161 (process_enum_type): Likewise.
162
163 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
164
165 * tracectf.h: Rename, was ctf.h.
166 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
167 * tracefile.c: Likewise.
168 * tracepoint.c: Remove unused include ctf.h.
169 * mi/mi-main.c: Likewise.
170 * Makefile.in Replace ctf.c with tracectf.c.
171
172 2019-10-06 Joel Brobecker <brobecker@adacore.com>
173
174 * version.in: Change version number to "9.0.50.DATE-git".
175
176 2019-10-03 Tom Tromey <tom@tromey.com>
177
178 PR rust/24976:
179 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
180
181 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
182
183 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
184 cp_search_name_hash.
185 * NEWS: Add entry about nested function support.
186
187 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
188 Andrew Burgess <andrew.burgess@embecosm.com>
189
190 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
191 for nested static variables when searchin VAR_DOMAIN.
192 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
193 global scope, update comment.
194 (add_partial_subprogram): Call add_partial_subprogram recursively
195 for nested subroutines when processinng Fortran.
196 (load_partial_dies): Process the child entities of a subprogram
197 when processing Fortran.
198 (partial_die_parent_scope): Handle building scope
199 for Fortran nested functions.
200 (process_die): Record that nested functions have a scope.
201 (new_symbol): Always record Fortran subprograms on the global
202 symbol list.
203 (determine_prefix): How to build the prefix for Fortran
204 subprograms.
205
206 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
207
208 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
209 have just sent the thread a SIGSTOP and are waiting for it to
210 arrive.
211
212 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
213
214 * btrace.c (btrace_add_pc): Remove whitespace before the template
215 parameter in 'std::vector <...>'.
216 (parse_xml_btrace_block): Likewise.
217 (btrace_maint_decode_pt): Likewise.
218 (btrace_maint_update_packets): Likewise.
219 (btrace_maint_print_packets): Likewise.
220 * btrace.h (struct btrace_maint_info): Likewise.
221 * dwarf2read.c (struct type_unit_group): Likewise.
222 (build_type_psymtabs_reader): Likewise.
223 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
224 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
225 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
226
227 2019-10-03 Tom de Vries <tdevries@suse.de>
228
229 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
230 the first line of the help text for set/show style metadata.
231
232 2019-10-02 Tom Tromey <tromey@adacore.com>
233
234 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
235 * gdbsupport/common-inferior.c: New file.
236 * infcmd.c (startup_with_shell): Don't define.
237 * nat/fork-inferior.h (startup_with_shell): Don't declare.
238 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
239 * inferior.h (startup_with_shell): Don't declare.
240
241 2019-10-02 Christian Biesinger <cbiesinger@google.com>
242
243 * gdbsupport/gdb_assert.h: Include errors.h.
244 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
245
246 2019-10-02 Tom Tromey <tromey@adacore.com>
247
248 * NEWS: Add $_ada_exception entry.
249 * ada-lang.c (struct ada_catchpoint): Add constructor.
250 <m_kind>: New member.
251 (allocate_location_exception, re_set_exception): Remove
252 "ex" parameter.
253 (should_stop_exception): Compute $_ada_exception.
254 (check_status_exception, print_it_exception)
255 (print_one_exception, print_mention_exception): Remove
256 "ex" parameter.
257 (allocate_location_catch_exception, re_set_catch_exception)
258 (check_status_exception, print_it_catch_exception)
259 (print_one_catch_exception, print_mention_catch_exception)
260 (print_recreate_catch_exception)
261 (allocate_location_catch_exception_unhandled)
262 (re_set_catch_exception_unhandled)
263 (check_status_exception, print_it_catch_exception_unhandled)
264 (print_one_catch_exception_unhandled)
265 (print_mention_catch_exception_unhandled)
266 (print_recreate_catch_exception_unhandled)
267 (allocate_location_catch_assert, re_set_catch_assert)
268 (check_status_assert, print_it_catch_assert)
269 (print_one_catch_assert, print_mention_catch_assert)
270 (print_recreate_catch_assert)
271 (allocate_location_catch_handlers, re_set_catch_handlers)
272 (check_status_handlers, print_it_catch_handlers)
273 (print_one_catch_handlers, print_mention_catch_handlers)
274 (print_recreate_catch_handlers): Remove.
275 (create_ada_exception_catchpoint): Update.
276 (initialize_ada_catchpoint_ops): Update.
277
278 2019-10-02 Tom Tromey <tromey@adacore.com>
279
280 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
281 (create_excep_cond_exprs): Simplify exception string computation.
282 (ada_exception_catchpoint_cond_string): Likewise.
283
284 2019-10-02 Tom Tromey <tromey@adacore.com>
285
286 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
287 * ada-lang.c (lesseq_defined_than): Handle
288 LOC_STATIC.
289 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
290 parameter.
291 (dwarf2_has_info): Likewise.
292 (new_symbol): Set maybe_copied on symbol when
293 appropriate.
294 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
295 parameter.
296 <can_copy>: New member.
297 * elfread.c (record_minimal_symbol): Set maybe_copied
298 on symbol when appropriate.
299 (elf_symfile_read): Update call to dwarf2_has_info.
300 * minsyms.c (lookup_minimal_symbol_linkage): New
301 function.
302 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
303 * symtab.c (get_symbol_address, get_msymbol_address):
304 New functions.
305 * symtab.h (get_symbol_address, get_msymbol_address):
306 Declare.
307 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
308 maybe_copied.
309 (struct symbol, struct minimal_symbol) <maybe_copied>:
310 New member.
311
312 2019-10-02 Tom Tromey <tromey@adacore.com>
313
314 * source.c (struct current_source_location): New.
315 (current_source_key): New global.
316 (current_source_symtab, current_source_line)
317 (current_source_pspace): Remove.
318 (get_source_location): New function.
319 (get_current_source_symtab_and_line)
320 (set_default_source_symtab_and_line)
321 (set_current_source_symtab_and_line)
322 (clear_current_source_symtab_and_line, select_source_symtab)
323 (info_source_command, print_source_lines_base)
324 (info_line_command, search_command_helper, _initialize_source):
325 Update.
326
327 2019-10-02 Tom Tromey <tromey@adacore.com>
328
329 * source.c (select_source_symtab): Don't call
330 decode_line_with_current_source.
331
332 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
333
334 * symtab.c (lookup_global_symbol): Search global block.
335
336 2019-10-02 Tom Tromey <tromey@adacore.com>
337
338 * coffread.c (process_coff_symbol): Update.
339 * dwarf2read.c (var_decode_location, new_symbol): Update.
340 * mdebugread.c (parse_symbol): Update.
341 * objfiles.c (relocate_one_symbol): Update.
342 * stabsread.c (define_symbol, fix_common_block)
343 (scan_file_globals): Update.
344 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
345 (SET_SYMBOL_VALUE_ADDRESS): New macro.
346 * xcoffread.c (process_xcoff_symbol): Update.
347
348 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
349
350 * MAINTAINERS: Update my email address.
351
352 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
353
354 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
355 std::vector.
356 (build_type_psymtabs_reader): Update for std::vector.
357 (build_type_psymtab_dependencies): Likewise.
358 * dwarf2read.h: Remove use of DEF_VEC_P.
359 (typedef sig_type_ptr): Delete.
360
361 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
362
363 * btrace.c (btrace_maint_clear): Update to handle change from VEC
364 to std::vector.
365 (btrace_maint_decode_pt): Likewise, and move allocation of the
366 vector outside of the loop.
367 (btrace_maint_update_packets): Update to handle change from VEC to
368 std::vector.
369 (btrace_maint_print_packets): Likewise.
370 (maint_info_btrace_cmd): Likewise.
371 * btrace.h: Remove use of DEF_VEC_O.
372 (typedef btrace_pt_packet_s): Delete.
373 (struct btrace_maint_info) <packets>: Change fromm VEC to
374 std::vector.
375 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
376
377 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
378
379 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
380 make accesses into the vector constant references.
381 (btrace_add_pc): Update for std::vector.
382 (btrace_stitch_bts): Likewise.
383 (parse_xml_btrace_block): Likewise.
384 (btrace_maint_update_packets): Likewise.
385 (btrace_maint_print_packets): Likewise.
386 (maint_info_btrace_cmd): Likewise.
387 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
388 std::vector.
389 (btrace_data::empty): Likewise.
390 (btrace_data_append): Likewise.
391 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
392 (typedef btrace_block_s): Delete.
393 (struct btrace_block): Add constructor.
394 (struct btrace_data_bts) <blocks>: Change to std::vector.
395 * nat/linux-btrace.c (perf_event_read_bts): Update for
396 std::vector.
397 (linux_read_bts): Likewise.
398
399 2019-10-01 Tom Tromey <tom@tromey.com>
400
401 * cli/cli-logging.c (show_logging_filename): Use styled_string.
402
403 2019-10-01 Tom Tromey <tom@tromey.com>
404
405 * stack.c (print_frame, info_frame_command_core): Use
406 styled_string.
407 * linux-thread-db.c (try_thread_db_load_1)
408 (try_thread_db_load_from_pdir_1): Use styled_string.
409 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
410 (auto_load_section_scripts, info_auto_load_local_gdbinit)
411 (maybe_print_unsupported_script_warning)
412 (maybe_print_script_not_found_warning): Use styled_string.
413 * ada-lang.c (user_select_syms): Use styled_string.
414
415 2019-10-01 Tom Tromey <tom@tromey.com>
416
417 * p-lang.c (pascal_printstr): Use metadata style.
418 * value.c (show_convenience): Use metadata style.
419 * valprint.c (valprint_check_validity, val_print_optimized_out)
420 (val_print_not_saved, val_print_unavailable)
421 (val_print_invalid_address, generic_val_print, val_print)
422 (value_check_printable, val_print_array_elements): Use metadata
423 style.
424 * ui-out.h (class ui_out) <field_fmt>: New overload.
425 <do_field_fmt>: Add style parameter.
426 * ui-out.c (ui_out::field_fmt): New overload.
427 * typeprint.c (type_print_unknown_return_type)
428 (val_print_not_allocated, val_print_not_associated): Use metadata
429 style.
430 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
431 parameter.
432 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
433 * tracepoint.c (tvariables_info_1): Use metadata style.
434 * stack.c (print_frame_arg, print_frame_info, print_frame)
435 (info_frame_command_core): Use metadata style.
436 * skip.c (info_skip_command): Use metadata style.
437 * rust-lang.c (rust_print_enum): Use metadata style.
438 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
439 metadata style.
440 * python/py-framefilter.c (py_print_single_arg): Use metadata
441 style.
442 * printcmd.c (do_one_display, print_variable_and_value): Use
443 metadata style.
444 * p-valprint.c (pascal_val_print)
445 (pascal_object_print_value_fields): Use metadata style.
446 * p-typeprint.c (pascal_type_print_base): Use metadata style.
447 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
448 parameter.
449 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
450 * m2-valprint.c (m2_print_long_set): Use metadata style.
451 * m2-typeprint.c (m2_print_type): Use metadata style.
452 * infcmd.c (print_return_value_1): Use metadata style.
453 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
454 * f-valprint.c (info_common_command_for_block): Use metadata
455 style.
456 * f-typeprint.c (f_type_print_base): Use metadata style.
457 * expprint.c (print_subexp_standard): Use metadata style.
458 * cp-valprint.c (cp_print_value_fields): Use metadata style.
459 * cli/cli-style.h (class cli_style_option): Add constructor.
460 (metadata_style): Declare.
461 * cli/cli-style.c (metadata_style): New global.
462 (_initialize_cli_style): Register metadata style.
463 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
464 parameter.
465 * cli-out.c (cli_ui_out::do_field_fmt): Update.
466 * c-typeprint.c (c_type_print_base_struct_union)
467 (c_type_print_base_1): Use metadata style.
468 * breakpoint.c (watchpoint_value_print)
469 (print_one_breakpoint_location): Use metadata style.
470 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
471 style.
472 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
473 style.
474 * ada-valprint.c (val_print_packed_array_elements, printstr)
475 (print_field_values, ada_val_print_ref, ada_val_print): Use
476 metadata style.
477 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
478 style.
479 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
480 style.
481 * ada-lang.c (user_select_syms): Use metadata style.
482
483 2019-10-01 Tom Tromey <tom@tromey.com>
484
485 * cli/cli-cmds.c (pwd_command): Style output.
486
487 2019-10-01 Pedro Alves <palves@redhat.com>
488 Tom Tromey <tom@tromey.com>
489
490 * symtab.c (print_symbol_info): Use %ps.
491 (print_msymbol_info): Use %ps.
492 * symfile.c (symbol_file_add_with_addrs): Use %ps.
493 * printcmd.c (print_variable_and_value): Use %ps.
494 * macrocmd.c (show_pp_source_pos): Use %ps.
495 * infrun.c (print_exited_reason): Use ui_out::message.
496 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
497 (describe_other_breakpoints): Use ui_out::message and new
498 formats.
499 (say_where): Use new formats.
500 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
501 and new formats.
502
503 2019-10-01 Pedro Alves <palves@redhat.com>
504 Tom Tromey <tom@tromey.com>
505
506 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
507 (test_gdb_formats): New function.
508 (run_tests): Call it.
509 (test_format_specifier): Update.
510 * utils.h (fputs_filtered): Update comment.
511 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
512 (fputs_styled_unfiltered): Declare.
513 * utils.c (fputs_styled_unfiltered): New function.
514 (vfprintf_maybe_filtered): Add gdbfmt parameter.
515 (vfprintf_filtered): Update.
516 (vfprintf_unfiltered, vprintf_filtered): Update.
517 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
518 * ui-out.h (enum ui_out_flag) <unfiltered_output,
519 disallow_ui_out_field>: New constants.
520 (enum class field_kind): New.
521 (struct base_field_s, struct signed_field_s): New.
522 (signed_field): New function.
523 (struct string_field_s): New.
524 (string_field): New function.
525 (struct styled_string_s): New.
526 (styled_string): New function.
527 (class ui_out) <message>: Add comment.
528 <vmessage, call_do_message>: New methods.
529 <do_message>: Add style parameter.
530 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
531 methods.
532 (ui_out::message): Rewrite.
533 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
534 parameter.
535 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
536 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
537 gdb_extensions parameter.
538 (class format_piece): Add parameter to constructor.
539 (n_int_args): New field.
540 * gdbsupport/format.c (format_pieces::format_pieces): Add
541 gdb_extensions parameter. Handle '*'.
542 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
543 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
544 vfprintf_styled_no_gdbfmt.
545 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
546 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
547 unfiltered output.
548 * ui-style.h (struct ui_file_style) <ptr>: New method.
549
550 2019-10-01 Tom Tromey <tom@tromey.com>
551
552 * unittests/format_pieces-selftests.c: Update. Add final format.
553 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
554 empty literal pieces.
555
556 2019-10-01 Tom Tromey <tom@tromey.com>
557
558 * ui-out.h (enum class ui_out_style_kind): Remove.
559 (class ui_out) <field_string, field_stsream, do_field_string>:
560 Change type of "style".
561 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
562 (ui_out::field_string): Update.
563 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
564 of "style".
565 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
566 * tracepoint.c (print_one_static_tracepoint_marker): Update.
567 * stack.c (print_frame_arg, print_frame_info, print_frame):
568 Update.
569 * source.c (print_source_lines_base): Update.
570 * solib.c (info_sharedlibrary_command): Update.
571 * skip.c (info_skip_command): Update.
572 * record-btrace.c (btrace_call_history_src_line)
573 (btrace_call_history): Update.
574 * python/py-framefilter.c (py_print_frame): Update.
575 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
576 "style".
577 * mi/mi-out.c (mi_ui_out::do_table_header)
578 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
579 (mi_ui_out::do_field_string): Update.
580 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
581 Update.
582 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
583 "style".
584 * cli-out.c (cli_ui_out::do_table_header)
585 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
586 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
587 (cli_ui_out::do_field_fmt): Update.
588 * breakpoint.c (print_breakpoint_location): Update.
589 (update_static_tracepoint): Update.
590
591 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
592
593 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
594 conversion of gdb_datadir.
595 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
596 remove not needed c_str ().
597
598 2019-09-30 Ali Tamur <tamur@google.com>
599
600 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
601 (dwarf2_string_attr): Likewise.
602
603 2019-09-30 Ali Tamur <tamur@google.com>
604
605 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
606 (process_full_type_unit): Likewise.
607 (dump_die_shallow): Likewise.
608 (cu_debug_loc_section): Likewise.
609
610 2019-09-28 Christian Biesinger <cbiesinger@google.com>
611
612 * minsyms.c (compare_minimal_symbols): Rename to...
613 (minimal_symbol_is_less_than): ...this, and adjust to STL
614 conventions (return bool, take arguments as references)
615 (minimal_symbol_reader::install): Call std::sort instead
616 of qsort.
617
618 2019-09-29 Christian Biesinger <cbiesinger@google.com>
619
620 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
621 hash and why.
622 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
623 msymbol_hash, msymbol_demangled_hash>: Improve comments.
624
625 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
626
627 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
628 * psympriv.h (add_psymbol_to_list): Move comment here and update
629 it.
630
631 2019-09-29 Tom de Vries <tdevries@suse.de>
632
633 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
634 Use $tmpdir/$(basename "$output_file").dwz instead of
635 "${output_file}.dwz".
636
637 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
638
639 PR gdb/25045
640 * hppa-linux-nat.c: Include gdbarch.h.
641
642 2019-09-26 Christian Biesinger <cbiesinger@google.com>
643
644 * blockframe.c (find_pc_partial_function): Change return type to bool.
645 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
646 * minsyms.c (in_gnu_ifunc_stub): Likewise.
647 (stub_gnu_ifunc_resolve_name): Likewise.
648 * symtab.c (compare_filenames_for_search): Likewise.
649 (compare_glob_filenames_for_search): Likewise.
650 (matching_obj_sections): Likewise.
651 (symbol_matches_domain): Likewise.
652 (find_line_symtab): Change out param EXACT_MATCH to bool *.
653 (find_line_pc): Change return type to bool.
654 (find_line_pc_range): Likewise.
655 (producer_is_realview): Likewise.
656 * symtab.h (symbol_matches_domain): Likewise.
657 (find_pc_partial_function): Likewise.
658 (find_pc_line_pc_range): Likewise.
659 (in_gnu_ifunc_stub): Likewise.
660 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
661 (find_line_pc): Likewise.
662 (find_line_pc_range): Likewise.
663 (matching_obj_sections): Likewise.
664 (find_line_symtab): Change out parameter to bool.
665 (producer_is_realview): Change return type to bool.
666 (compare_filenames_for_search): Likewise.
667 (compare_glob_filenames_for_search): Likewise.
668
669 2019-09-26 Tom Tromey <tom@tromey.com>
670
671 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
672 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
673 * gdb_usleep.h: Remove.
674 * gdb_usleep.c: Remove.
675 * utils.c: Don't include gdb_usleep.h.
676
677 2019-09-26 Tom Tromey <tromey@adacore.com>
678
679 * python/py-type.c (type_to_type_object): Call check_typedef
680 for stub types.
681
682 2019-09-26 Tom Tromey <tom@tromey.com>
683
684 * utils.h (initialize_utils): Don't declare.
685 * top.c (gdb_init): Don't call initialize_utils.
686 * utils.c (initialize_utils): Remove. Move contents...
687 (_initialize_utils): ... here.
688
689 2019-09-25 Tom Tromey <tom@tromey.com>
690
691 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
692 * utils.h (make_hex_string): Don't declare.
693 * utils.c (make_hex_string): Remove.
694
695 2019-09-24 Tom de Vries <tdevries@suse.de>
696
697 PR gdb/23815
698 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
699 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
700
701 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
702
703 * NEWS: Mention new simulator port for PRU.
704
705 2019-09-23 Christian Biesinger <cbiesinger@google.com>
706
707 * ada-exp.y (write_object_remaining): Update.
708 * ada-lang.c (ada_decode): Return a std::string instead of a char*
709 and eliminate the static buffer.
710 (ada_decode_symbol): Update.
711 (ada_la_decode): Update.
712 (ada_sniff_from_mangled_name): Update.
713 (is_valid_name_for_wild_match): Update.
714 (ada_lookup_name_info::matches): Update and simplify.
715 (name_matches_regex): Update.
716 (ada_add_global_exceptions): Update.
717 * ada-lang.h (ada_decode): Update signature.
718 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
719 * dwarf-index-write.c (debug_names::insert): Update.
720
721 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
722
723 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
724 formatting.
725
726 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
727
728 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
729 Change "nonzero" to "true" in documentation.
730
731 2019-09-20 Christian Biesinger <cbiesinger@google.com>
732
733 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
734 (_initialize_darwin_solib): Don't set
735 darwin_so_ops.lookup_lib_global_symbol.
736 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
737 set_gdbarch_iterate_over_objfiles_in_search_order.
738 (elf_lookup_lib_symbol): Rename to...
739 (svr4_iterate_over_objfiles_in_search_order): this, and update
740 to iterate semantics.
741 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
742 * solib.c (solib_global_lookup): Remove.
743 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
744 (solib_global_lookup): Remove.
745 * symtab.c (lookup_global_or_static_symbol): Remove call to
746 solib_global_lookup.
747
748 2019-09-20 Joel Brobecker <brobecker@adacore.com>
749
750 * NEWS: Move entries about default MI version now being
751 version 3, and about the GDB/MI fix for multi-location
752 breakpoints to the "since GDB 8.3" section.
753
754 2019-09-20 Joel Brobecker <brobecker@adacore.com>
755
756 GDB 8.3.1 released.
757
758 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
759
760 * NEWS: Mention that Cell/B.E. debugging support was removed.
761 * MAINTAINERS: Remove spu target.
762
763 * config/djgpp/fnchange.lst: Remove entries for removed files.
764
765 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
766 spu-multiarch.o, and spu-tdep.o.
767 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
768 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
769 spu-multiarch.c, and spu-tdep.c.
770 * spu-linux-nat.c: Remove file.
771 * spu-multiarch.c: Remove file.
772 * spu-tdep.c: Remove file.
773 * spu-tdep.h: Remove file.
774 * solib-spu.c: Remove file.
775 * solib-spu.h: Remove file.
776
777 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
778 * configure.nat (spu-linux): Remove.
779 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
780 solib-multiarch.o from gdb_target_obs.
781 (spu*-*-*): Remove.
782
783 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
784 feature flag.
785 (ppc_linux_no_features): Update.
786 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
787 Cell/B.E. support.
788 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
789 (tdesc_powerpc_cell64l): Likewise.
790 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
791 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
792 Cell/B.E. support.
793 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
794 Do not include "features/rs6000/powerpc-cell32l.c" or
795 "features/rs6000/powerpc-cell64l.c".
796 (ppc_linux_spu_section): Remove.
797 (ppc_linux_core_read_description): Remove Cell/B.E. support.
798 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
799 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
800 (ppc_linux_spe_context_lookup): Remove.
801 (ppc_linux_spe_context_inferior_created): Remove.
802 (ppc_linux_spe_context_solib_loaded): Remove.
803 (ppc_linux_spe_context_solib_unloaded): Remove.
804 (ppc_linux_spe_context): Remove.
805 (struct ppu2spu_cache): Remove.
806 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
807 (struct ppu2spu_data): Remove.
808 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
809 ppu2spu_unwind): Remove.
810 (ppc_linux_init_abi): Remove Cell/B.E. support.
811 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
812
813 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
814 (rs6000/powerpc-cell64l-expedite): Likewise
815 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
816 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
817 rs6000/powerpc-cell64l.xml.
818 * features/rs6000/powerpc-cell32l.xml: Remove.
819 * features/rs6000/powerpc-cell64l.xml: Likewise.
820 * features/rs6000/powerpc-cell32l.c: Remove generated file.
821 * features/rs6000/powerpc-cell64l.c: Likewise.
822 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
823 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
824 * regformats/reg-spu.dat: Remove.
825
826 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
827 * corelow.c (struct spuid_list): Remove.
828 (add_to_spuid_list): Remove.
829 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
830 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
831 (remote_protocol_features): Remove associated entries.
832 (_initialize_remote): No longer initialize them.
833 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
834 * linux-nat.c (SPUFS_MAGIC): Remove.
835 (linux_proc_xfer_spu): Remove.
836 (spu_enumerate_spu_ids): Remove.
837 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
838 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
839 (linux_make_corefile_notes): No longer call it.
840
841 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
842 (cooked_write_test): Likewise.
843
844 2019-09-20 Tom Tromey <tom@tromey.com>
845
846 * NEWS: Mention case-sensitivity of TUI commands.
847 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
848 (tui_set_win_height_command, parse_scrolling_args): Likewise.
849 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
850
851 2019-09-20 Tom Tromey <tom@tromey.com>
852
853 * tui/tui-source.c (tui_source_window::set_contents): Use
854 make_unique_xstrdup.
855 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
856 make_unique_xstrdup.
857
858 2019-09-20 Tom Tromey <tom@tromey.com>
859
860 * tui/tui-data.c: Remove separator comments.
861 * tui/tui-layout.c: Remove separator comments.
862 * tui/tui-win.c: Remove separator comments.
863 * tui/tui-wingeneral.c: Remove separator comments.
864
865 2019-09-20 Tom Tromey <tom@tromey.com>
866
867 * tui/tui.h (strcat_to_buf): Don't declare.
868 * tui/tui.c (strcat_to_buf): Remove.
869
870 2019-09-20 Tom Tromey <tom@tromey.com>
871
872 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
873 from "fullname".
874 * tui/tui-source.c (tui_source_window::set_contents)
875 (tui_source_window::location_matches_p)
876 (tui_source_window::maybe_update): Update.
877
878 2019-09-20 Tom Tromey <tom@tromey.com>
879
880 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
881 Update.
882 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
883 prefix.
884 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
885 (tui_data_window::line_from_reg_element_no)
886 (tui_data_window::first_reg_element_no_inline)
887 (tui_data_window::show_registers)
888 (tui_data_window::show_register_group)
889 (tui_data_window::display_registers_from)
890 (tui_data_window::display_registers_from_line)
891 (tui_data_window::first_data_item_displayed)
892 (tui_data_window::delete_data_content_windows)
893 (tui_data_window::erase_data_content)
894 (tui_data_window::do_scroll_vertical)
895 (tui_data_window::refresh_window)
896 (tui_data_window::check_register_values): Update.
897
898 2019-09-20 Tom Tromey <tom@tromey.com>
899
900 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
901 (struct tui_locator_window) <full_name, proc_name>: Now
902 std::string.
903 * tui/tui-stack.c (tui_locator_window::make_status_line)
904 (tui_locator_window::set_locator_fullname)
905 (tui_locator_window::set_locator_info): Update.
906 * tui/tui-source.c (tui_source_window::set_contents)
907 (tui_source_window::showing_source_p): Update.
908
909 2019-09-20 Tom Tromey <tom@tromey.com>
910
911 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
912 Don't call tui_locator_win_info_ptr.
913
914 2019-09-20 Tom Tromey <tom@tromey.com>
915
916 * tui/tui-win.c (tui_resize_all): Don't call refresh.
917
918 2019-09-20 Tom Tromey <tom@tromey.com>
919
920 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
921 height for locator.
922 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
923 * tui/tui-layout.c (show_source_disasm_command, show_data)
924 (show_source_or_disasm_and_command): Use 1 as height for locator.
925
926 2019-09-20 Tom Tromey <tom@tromey.com>
927
928 * tui/tui.c (tui_enable): Update.
929 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
930 Update.
931 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
932 Update.
933 * tui/tui-data.c (win_resized): Now bool.
934 (tui_win_resized): Return bool.
935 (tui_set_win_resized_to): Accept a bool.
936
937 2019-09-20 Tom Tromey <tom@tromey.com>
938
939 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
940 Change type of "refresh_values_only".
941 * tui/tui-regs.c (tui_data_window::show_register_group): Change
942 type of "refresh_values_only".
943
944 2019-09-20 Tom Tromey <tom@tromey.com>
945
946 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
947 std::string.
948 (tui_disassemble): Add "pos" parameter.
949 (tui_disasm_window::set_contents): Simplify.
950
951 2019-09-20 Tom Tromey <tom@tromey.com>
952
953 * tui/tui-winsource.h (struct tui_source_window_base)
954 <show_source_content>: Now private.
955 * tui/tui-winsource.c
956 (tui_source_window_base::show_source_content): Don't handle empty
957 content case.
958
959 2019-09-20 Tom Tromey <tom@tromey.com>
960
961 * tui/tui-layout.c (show_source_disasm_command)
962 (show_source_or_disasm_and_command): Don't call
963 show_source_content.
964
965 2019-09-20 Tom Tromey <tom@tromey.com>
966
967 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
968 Declare.
969 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
970 from tui_make_status_line.
971 (tui_locator_window::rerender): Update.
972
973 2019-09-20 Tom Tromey <tom@tromey.com>
974
975 * tui/tui-stack.c (tui_make_status_line): Return std::string.
976 (tui_locator_window::rerender): Update.
977
978 2019-09-20 Tom Tromey <tom@tromey.com>
979
980 * tui/tui-winsource.h (struct tui_source_window_base)
981 <~tui_source_window_base>: Don't declare.
982 <fullname>: Remove.
983 * tui/tui-winsource.c (~tui_source_window_base): Remove.
984 * tui/tui-source.h (struct tui_source_window) <fullname>: New
985 member.
986 * tui/tui-source.c (tui_source_window::set_contents): Update.
987 (tui_source_window::location_matches_p)
988 (tui_source_window::maybe_update): Update.
989
990 2019-09-20 Tom Tromey <tom@tromey.com>
991
992 * tui/tui-winsource.h (~tui_source_element): Remove.
993 (tui_source_element): Update.
994 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
995 * tui/tui-winsource.c (tui_show_source_line): Update.
996 * tui/tui-source.c (tui_source_window::set_contents): Update.
997 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
998
999 2019-09-20 Tom Tromey <tom@tromey.com>
1000
1001 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
1002 declare.
1003 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
1004 tui_clear_source_windows_detail.
1005 * tui/tui-winsource.h (struct tui_source_window_base)
1006 <clear_detail>: Don't declare.
1007 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
1008 Remove.
1009 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
1010
1011 2019-09-20 Tom Tromey <tromey@adacore.com>
1012
1013 PR ada/24919:
1014 * block.c (contained_in): Fix final return value.
1015
1016 2019-09-20 Alan Modra <amodra@gmail.com>
1017
1018 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
1019 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
1020 (read_indirect_string_from_dwz): Use bfd accessor.
1021 * dwarf2read.h (struct dwz_file <filename>): Likewise.
1022 * machoread.c (macho_symfile_read_all_oso): Likewise.
1023 * solib.c (solib_bfd_open): Likewise.
1024
1025 2019-09-19 Christian Biesinger <cbiesinger@google.com>
1026
1027 * eval.c: Move declaration of overload_resolution to...
1028 * value.h: ...here.
1029
1030 2019-09-19 Christian Biesinger <cbiesinger@google.com>
1031
1032 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
1033 * arm-linux-tdep.c: Likewise.
1034 * arm-nbsd-nat.c: Likewise.
1035 * arm-tdep.h: Declare arm_apcs_32.
1036 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
1037
1038 2019-09-19 Christian Biesinger <cbiesinger@google.com>
1039
1040 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
1041 * dwarf2read.h: Declare dwarf_always_disassemble.
1042
1043 2019-09-19 Tom de Vries <tdevries@suse.de>
1044
1045 PR gdb/25009
1046 * source-cache.c (source_cache::ensure): Catch exception thrown during
1047 construction of the highlighter.
1048
1049 2019-09-18 Alan Modra <amodra@gmail.com>
1050
1051 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
1052 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
1053 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
1054 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
1055 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
1056 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
1057 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
1058 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
1059 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
1060 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
1061 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
1062 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
1063 * solib-spu.c, * solib-svr4.c, * solib-target.c,
1064 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
1065 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
1066 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
1067 * mi/mi-interp.c: Update throughout for bfd section macro and
1068 function changes.
1069 * gcore (gcore_create_callback): Use bfd_set_section_lma.
1070 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
1071
1072 2019-09-18 Tom Tromey <tom@tromey.com>
1073
1074 * NEWS: Add entry.
1075 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
1076 call rl_initialize.
1077 (tui_enable): Do not call rl_initialize.
1078
1079 2019-09-18 Christian Groessler <chris@groessler.org>
1080
1081 * alpha-linux-nat.c: Include gdbarch.h.
1082
1083 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
1084
1085 * ui-file.c: Include cli/cli-style.h.
1086 (term_cli_styling): Remove cli_styling declaration.
1087
1088 2019-09-18 Alan Modra <amodra@gmail.com>
1089
1090 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
1091 to bfd_asymbol_section.
1092
1093 2019-09-18 Alan Modra <amodra@gmail.com>
1094
1095 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
1096 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
1097 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
1098
1099 2019-09-18 Alan Modra <amodra@gmail.com>
1100
1101 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
1102 * spu-linux-nat.c (spu_bfd_open): Likewise.
1103
1104 2019-09-18 Christian Biesinger <cbiesinger@google.com>
1105
1106 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
1107 to bool to match definition in dwarf2read.c.
1108
1109 2019-09-17 Christian Biesinger <cbiesinger@google.com>
1110
1111 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
1112 (print_signatures): Likewise.
1113 (trust_pad_over_xvs): Likewise.
1114 * arch/aarch64-insn.c (aarch64_debug): Likewise.
1115 * arch/aarch64-insn.h (aarch64_debug): Likewise.
1116 * arm-linux-nat.c (arm_apcs_32): Likewise.
1117 * arm-linux-tdep.c (arm_apcs_32): Likewise.
1118 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
1119 * arm-tdep.c (arm_debug): Likewise.
1120 (arm_apcs_32): Likewise.
1121 * auto-load.c (debug_auto_load): Likewise.
1122 (auto_load_gdb_scripts): Likewise.
1123 (global_auto_load): Likewise.
1124 (auto_load_local_gdbinit): Likewise.
1125 (auto_load_local_gdbinit_loaded): Likewise.
1126 * auto-load.h (global_auto_load): Likewise.
1127 (auto_load_local_gdbinit): Likewise.
1128 (auto_load_local_gdbinit_loaded): Likewise.
1129 * breakpoint.c (disconnected_dprintf): Likewise.
1130 (breakpoint_proceeded): Likewise.
1131 (automatic_hardware_breakpoints): Likewise.
1132 (always_inserted_mode): Likewise.
1133 (target_exact_watchpoints): Likewise.
1134 (_initialize_breakpoint): Update.
1135 * breakpoint.h (target_exact_watchpoints): Change to bool.
1136 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
1137 * cli/cli-cmds.c (trace_commands): Likewise.
1138 * cli/cli-cmds.h (trace_commands): Likewise.
1139 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
1140 to bool*.
1141 * cli/cli-logging.c (logging_overwrite): Change to bool.
1142 (logging_redirect): Likewise.
1143 (debug_redirect): Likewise.
1144 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
1145 (struct boolean_option_def) <get_var_address_cb_>: Change return type
1146 to bool.
1147 <boolean_option_def>: Update.
1148 (struct flag_option_def): Change default type of Context to bool
1149 from int.
1150 <flag_option_def>: Change return type of var_address_cb_ to bool*.
1151 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
1152 (get_setshow_command_value_string): Likewise.
1153 * cli/cli-style.c (cli_styling): Change to bool.
1154 (source_styling): Likewise.
1155 * cli/cli-style.h (source_styling): Likewise.
1156 (cli_styling): Likewise.
1157 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
1158 to bool.
1159 * command.h (var_types): Update comment.
1160 (add_setshow_boolean_cmd): Change int* var argument to bool*.
1161 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
1162 bool.
1163 (debug_compile_cplus_scopes): Likewise.
1164 * compile/compile-internal.h (compile_debug): Likewise.
1165 * compile/compile.c (compile_debug): Likewise.
1166 (struct compile_options) <raw>: Likewise.
1167 * cp-support.c (catch_demangler_crashes): Likewise.
1168 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
1169 (usr_cmd_cris_dwarf2_cfi): Likewise.
1170 * csky-tdep.c (csky_debug): Likewise.
1171 * darwin-nat.c (enable_mach_exceptions): Likewise.
1172 * dcache.c (dcache_enabled_p): Likewise.
1173 * defs.h (info_verbose): Likewise.
1174 * demangle.c (demangle): Likewise.
1175 (asm_demangle): Likewise.
1176 * dwarf-index-cache.c (debug_index_cache): Likewise.
1177 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
1178 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
1179 * dwarf2read.c (check_physname): Likewise.
1180 (use_deprecated_index_sections): Likewise.
1181 (dwarf_always_disassemble): Likewise.
1182 * eval.c (overload_resolution): Likewise.
1183 * event-top.c (set_editing_cmd_var): Likewise.
1184 (exec_done_display_p): Likewise.
1185 * event-top.h (set_editing_cmd_var): Likewise.
1186 (exec_done_display_p): Likewise.
1187 * exec.c (write_files): Likewise.
1188 * fbsd-nat.c (debug_fbsd_lwp): Likewise
1189 (debug_fbsd_nat): Likewise.
1190 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
1191 Likewise.
1192 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
1193 <backtrace_past_entry> Likewise.
1194 * gdb-demangle.h (demangle): Likewise.
1195 (asm_demangle): Likewise.
1196 * gdb_bfd.c (bfd_sharing): Likewise.
1197 * gdbcore.h (write_files): Likewise.
1198 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
1199 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
1200 * gdbthread.h (print_thread_events): Likewise.
1201 * gdbtypes.c (opaque_type_resolution): Likewise.
1202 (strict_type_checking): Likewise.
1203 * gnu-nat.c (gnu_debug_flag): Likewise.
1204 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
1205 * guile/scm-param.c (pascm_variable): Add boolval.
1206 (add_setshow_generic): Update.
1207 (pascm_param_value): Update.
1208 (pascm_set_param_value_x): Update.
1209 * hppa-tdep.c (hppa_debug): Change to bool..
1210 * infcall.c (may_call_functions_p): Likewise.
1211 (coerce_float_to_double_p): Likewise.
1212 (unwind_on_signal_p): Likewise.
1213 (unwind_on_terminating_exception_p): Likewise.
1214 * infcmd.c (startup_with_shell): Likewise.
1215 * inferior.c (print_inferior_events): Likewise.
1216 * inferior.h (startup_with_shell): Likewise.
1217 (print_inferior_events): Likewise.
1218 * infrun.c (step_stop_if_no_debug): Likewise.
1219 (detach_fork): Likewise.
1220 (debug_displaced): Likewise.
1221 (disable_randomization): Likewise.
1222 (non_stop): Likewise.
1223 (non_stop_1): Likewise.
1224 (observer_mode): Likewise.
1225 (observer_mode_1): Likewise.
1226 (set_observer_mode): Update.
1227 (sched_multi): Change to bool.
1228 * infrun.h (debug_displaced): Likewise.
1229 (sched_multi): Likewise.
1230 (step_stop_if_no_debug): Likewise.
1231 (non_stop): Likewise.
1232 (disable_randomization): Likewise.
1233 * linux-tdep.c (use_coredump_filter): Likewise.
1234 (dump_excluded_mappings): Likewise.
1235 * linux-thread-db.c (auto_load_thread_db): Likewise.
1236 (check_thread_db_on_load): Likewise.
1237 * main.c (captured_main_1): Update.
1238 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
1239 xx2_opt, boolean_opt>: Change to bool.
1240 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
1241 * maint.c (maintenance_profile_p): Likewise.
1242 (per_command_time): Likewise.
1243 (per_command_space): Likewise.
1244 (per_command_symtab): Likewise.
1245 * memattr.c (inaccessible_by_default): Likewise.
1246 * mi/mi-main.c (mi_async): Likewise.
1247 (mi_async_1): Likewise.
1248 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
1249 * nat/fork-inferior.h (startup_with_shell): Likewise.
1250 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
1251 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
1252 * nios2-tdep.c (nios2_debug): Likewise.
1253 * or1k-tdep.c (or1k_debug): Likewise.
1254 * parse.c (parser_debug): Likewise.
1255 * parser-defs.h (parser_debug): Likewise.
1256 * printcmd.c (print_symbol_filename): Likewise.
1257 * proc-api.c (procfs_trace): Likewise.
1258 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
1259 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
1260 (set_parameter_value): Update.
1261 (add_setshow_generic): Update.
1262 * python/py-value.c (copy_py_bool_obj): Change argument from int*
1263 to bool*.
1264 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
1265 int*.
1266 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
1267 * record-btrace.c (record_btrace_target::store_registers): Update.
1268 * record-full.c (record_full_memory_query): Change to bool.
1269 (record_full_stop_at_limit): Likewise.
1270 * record-full.h (record_full_memory_query): Likewise.
1271 * remote-notif.c (notif_debug): Likewise.
1272 * remote-notif.h (notif_debug): Likewise.
1273 * remote.c (use_range_stepping): Likewise.
1274 (interrupt_on_connect): Likewise.
1275 (remote_break): Likewise.
1276 * ser-tcp.c (tcp_auto_retry): Likewise.
1277 * ser-unix.c (serial_hwflow): Likewise.
1278 * skip.c (debug_skip): Likewise.
1279 * solib-aix.c (solib_aix_debug): Likewise.
1280 * spu-tdep.c (spu_stop_on_load_p): Likewise.
1281 (spu_auto_flush_cache_p): Likewise.
1282 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
1283 Likewise.
1284 (struct info_print_options) <quiet>: Likewise.
1285 * symfile-debug.c (debug_symfile): Likewise.
1286 * symfile.c (auto_solib_add): Likewise.
1287 (separate_debug_file_debug): Likewise.
1288 * symfile.h (auto_solib_add): Likewise.
1289 (separate_debug_file_debug): Likewise.
1290 * symtab.c (basenames_may_differ): Likewise.
1291 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
1292 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
1293 (struct info_types_options) <quiet>: Likewise.
1294 * symtab.h (demangle): Likewise.
1295 (basenames_may_differ): Likewise.
1296 * target-dcache.c (stack_cache_enabled_1): Likewise.
1297 (code_cache_enabled_1): Likewise.
1298 * target.c (trust_readonly): Likewise.
1299 (may_write_registers): Likewise.
1300 (may_write_memory): Likewise.
1301 (may_insert_breakpoints): Likewise.
1302 (may_insert_tracepoints): Likewise.
1303 (may_insert_fast_tracepoints): Likewise.
1304 (may_stop): Likewise.
1305 (auto_connect_native_target): Likewise.
1306 (target_stop_and_wait): Update.
1307 (target_async_permitted): Change to bool.
1308 (target_async_permitted_1): Likewise.
1309 (may_write_registers_1): Likewise.
1310 (may_write_memory_1): Likewise.
1311 (may_insert_breakpoints_1): Likewise.
1312 (may_insert_tracepoints_1): Likewise.
1313 (may_insert_fast_tracepoints_1): Likewise.
1314 (may_stop_1): Likewise.
1315 * target.h (target_async_permitted): Likewise.
1316 (may_write_registers): Likewise.
1317 (may_write_memory): Likewise.
1318 (may_insert_breakpoints): Likewise.
1319 (may_insert_tracepoints): Likewise.
1320 (may_insert_fast_tracepoints): Likewise.
1321 (may_stop): Likewise.
1322 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
1323 (make_thread_apply_all_options_def_group): Change argument from int*
1324 to bool*.
1325 (thread_apply_all_command): Update.
1326 (print_thread_events): Change to bool.
1327 * top.c (confirm): Likewise.
1328 (command_editing_p): Likewise.
1329 (history_expansion_p): Likewise.
1330 (write_history_p): Likewise.
1331 (info_verbose): Likewise.
1332 * top.h (confirm): Likewise.
1333 (history_expansion_p): Likewise.
1334 * tracepoint.c (disconnected_tracing): Likewise.
1335 (circular_trace_buffer): Likewise.
1336 * typeprint.c (print_methods): Likewise.
1337 (print_typedefs): Likewise.
1338 * utils.c (debug_timestamp): Likewise.
1339 (sevenbit_strings): Likewise.
1340 (pagination_enabled): Likewise.
1341 * utils.h (sevenbit_strings): Likewise.
1342 (pagination_enabled): Likewise.
1343 * valops.c (overload_resolution): Likewise.
1344 * valprint.h (struct value_print_options) <prettyformat_arrays,
1345 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
1346 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
1347 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
1348 Likewise.
1349 * windows-nat.c (new_console): Likewise.
1350 (cygwin_exceptions): Likewise.
1351 (new_group): Likewise.
1352 (debug_exec): Likewise.
1353 (debug_events): Likewise.
1354 (debug_memory): Likewise.
1355 (debug_exceptions): Likewise.
1356 (useshell): Likewise.
1357 * windows-tdep.c (maint_display_all_tib): Likewise.
1358 * xml-support.c (debug_xml): Likewise.
1359
1360 2019-09-17 Mike Gulick <mgulick@mathworks.com>
1361
1362 * source.c (prepare_path_for_appending): New function.
1363 (openp): Make use of new function.
1364 (find_and_open_source): Search for the compilation directory and
1365 source file as a relative path beneath the directory search path.
1366
1367 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
1368
1369 * source-cache.c (source_cache::get_line_charpos): Catch
1370 exceptions and return false, this matches the behaviour documented
1371 in the header file.
1372
1373 2019-09-17 Joel Brobecker <brobecker@adacore.com>
1374
1375 * ada-tasks.c (info_task): Remove quoting of the task's name.
1376
1377 2019-09-16 Christian Biesinger <cbiesinger@google.com>
1378
1379 * symfile.c (auto_solib_add): Replace comment with a reference
1380 to the header file.
1381
1382 2019-09-14 Christian Biesinger <cbiesinger@google.com>
1383
1384 * NEWS: Mention that gdb can now be compiled with Python 3
1385 on Windows.
1386
1387 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1388
1389 * maint.c (maint_print_section_data::maint_print_section_data):
1390 Force use of 'float log10 (float)' by casting the argument to
1391 float.
1392
1393 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1394
1395 * maint.c: Add 'cmath' include.
1396 (struct maint_print_section_data): New structure.
1397 (print_section_index): New function.
1398 (print_bfd_section_info): Add header comment, small whitespace
1399 cleanup, and update to call new print_section_index function.
1400 (print_objfile_section_info): Likewise.
1401 (maint_obj_section_from_bfd_section): New function.
1402 (print_bfd_section_info_maybe_relocated): New function.
1403 (maintenance_info_sections): Add header comment, always use
1404 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
1405
1406 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1407
1408 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
1409 inner scope, add check that the objfile has psymtabs before
1410 checking psymtabs_addrmap.
1411 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
1412
1413 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1414
1415 * NEWS: Announce that Ada task names are now shown at more places,
1416 and between quotes (except in info task output).
1417 * gdb/ada-tasks.c (task_to_str): New function.
1418 (display_current_task_id): Call task_to_str.
1419 (task_command_1): Likewise.
1420 (print_ada_task_info): In non-mi mode, Properly align headers and data
1421 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
1422
1423 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1424
1425 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
1426 prstatus.pr_lwp.pr_info instead of making it up.
1427
1428 2019-09-11 Christian Biesinger <cbiesinger@google.com>
1429
1430 * auto-load.c (auto_load_expand_dir_vars): Update.
1431 * defs.h (gdb_datadir): Change to std::string.
1432 (python_libdir): Likewise.
1433 (relocate_gdb_directory): Change return type to std::string.
1434 * guile/guile.c (gdbscm_data_directory): Update.
1435 (initialize_scheme_side): Update.
1436 * jit.c (jit_reader_dir): Change to std::string.
1437 (jit_reader_load_command): Update.
1438 * main.c (gdb_datadir): Change to std::string.
1439 (python_libdir): Likewise.
1440 (set_gdb_data_directory): Update.
1441 (relocate_path): Change to return std::string.
1442 (relocate_gdb_directory): Change to return std::string.
1443 (relocate_gdbinit_path_maybe_in_datadir): Update.
1444 (captured_main_1): Update.
1445 * python/python.c (do_start_initialization): Update.
1446 * top.c (show_gdb_datadir): Update.
1447 * xml-syscall.c (xml_init_syscalls_info): Update.
1448 (init_syscalls_info): Update.
1449
1450 2019-09-11 Christian Biesinger <cbiesinger@google.com>
1451
1452 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
1453 out of get_init_files.
1454 (get_init_files): Update.
1455
1456 2019-09-11 Christian Biesinger <cbiesinger@google.com>
1457
1458 * main.c (get_init_files): Change to use std::string.
1459 (captured_main_1): Update.
1460 (print_gdb_help): Update.
1461
1462 2019-09-11 Ali Tamur <tamur@google.com>
1463
1464 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
1465 implementation.
1466
1467 2019-09-11 Christian Biesinger <cbiesinger@google.com>
1468
1469 * dbxread.c (read_dbx_symtab): Update.
1470 * dwarf2read.c (load_partial_dies): Update.
1471 * mdebugread.c (parse_partial_symbols): Update.
1472 (handle_psymbol_enumerators): Update.
1473 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
1474 * psymtab.c (add_psymbol_to_bcache): Likewise.
1475 (add_psymbol_to_list): Likewise.
1476 * symtab.c (symbol_set_names): Likewise.
1477 * symtab.h (symbol_set_names): Likewise.
1478 * xcoffread.c (scan_xcoff_symtab): Update.
1479
1480 2019-09-11 Tom Tromey <tom@tromey.com>
1481
1482 * symfile-mem.c (symbol_file_add_from_memory): Use
1483 bfd_set_filename.
1484 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
1485 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
1486
1487 2019-09-10 Tom Tromey <tromey@adacore.com>
1488
1489 * dwarf-index-write.c (write_psymbols): Extend error message.
1490 (debug_names::insert): Add Ada code.
1491 (debug_names::write_psymbols): Remove Ada check.
1492 (debug_names) <m_string_obstack>: New member.
1493 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
1494 (gdb_index_symbol_name_matcher::matches): Remove.
1495 (mapped_index_base::find_name_components_bounds): Add "lang"
1496 parameter.
1497 (mapped_index_base::build_name_components): Also split names
1498 according to Ada syntax.
1499 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
1500 type of "match_callback".
1501 (check_match, check_find_bounds_finds)
1502 (dw2_expand_symtabs_matching): Update.
1503 (dw2_debug_names_iterator): Add new constructor.
1504 (dw2_debug_names_map_matching_symbols): New function.
1505 (dw2_debug_names_expand_symtabs_matching): Update.
1506 (dwarf2_debug_names_functions): Use
1507 dw2_debug_names_map_matching_symbols.
1508
1509 2019-09-10 Tom Tromey <tromey@adacore.com>
1510
1511 * dwarf2read.c (dw2_get_file_names_reader): Add the
1512 CU's file name to the results.
1513
1514 2019-09-10 Tom Tromey <tromey@adacore.com>
1515
1516 * ada-lang.c (add_nonlocal_symbols): Combine calls to
1517 map_matching_symbols. Update.
1518 * dwarf2read.c (dw2_map_matching_symbols): Update.
1519 * psymtab.c (match_partial_symbol): Change type; update.
1520 (psym_map_matching_symbols): Likewise.
1521 * symfile-debug.c (debug_qf_map_matching_symbols): Change
1522 type; update.
1523 * symfile.h (struct quick_symbol_functions)
1524 <map_matching_symbols>: Change "name" to be a lookup_name_info.
1525 Remove "match".
1526
1527 2019-09-10 Tom Tromey <tromey@adacore.com>
1528
1529 * psymtab.c (map_block): Remove.
1530 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
1531 * symtab.c (iterate_over_symbols_terminated): New function.
1532 * symtab.c (iterate_over_symbols_terminated): Declare.
1533
1534 2019-09-10 Tom Tromey <tromey@adacore.com>
1535
1536 * ada-lang.c (ada_iterate_over_symbols): Return bool.
1537 * language.h (struct language_defn) <la_iterate_over_symbols>:
1538 Return bool.
1539 * symtab.c (iterate_over_symbols): Return bool.
1540 * symtab.h (iterate_over_symbols): Return bool.
1541
1542 2019-09-10 Tom Tromey <tromey@adacore.com>
1543
1544 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
1545 (add_nonlocal_symbols): Update.
1546 * dwarf2read.c (dw2_map_matching_symbols): Change type.
1547 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
1548 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
1549 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
1550 Change type of "callback". Remove "data".
1551
1552
1553 2019-09-09 Ali Tamur <tamur@google.com>
1554
1555 * dwarf2read.c (comp_unit_head): Update comment.
1556 (dwarf2_dwo_name): New function declaration.
1557 (dwarf_unit_type_name): New function declaration.
1558 (read_comp_unit_head): Add support for new compilation units,
1559 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
1560 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
1561 (currently named as "signature") in their header. Also clarify error
1562 messages.
1563 (lookup_dwo_id): New function. Returns the dwo id of the given
1564 compile unit.
1565 (lookup_dwo_unit): Use the new lookup_dwo_id function.
1566 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
1567 functions.
1568 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
1569 (dwarf2_dwo_name): Get the dwo name if present.
1570 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
1571 purposes.
1572
1573 2019-09-09 Tom Tromey <tom@tromey.com>
1574
1575 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
1576
1577 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1578
1579 * python/python.c (do_start_initialization): Make progname_copy static,
1580 to avoid a leak report.
1581
1582 2019-09-08 Tom Tromey <tom@tromey.com>
1583
1584 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
1585
1586 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
1587
1588 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
1589 Change type to gdb::optional<block_enum>.
1590 (dw2_symtab_iter_init): Change block_index parameter type
1591 to gdb::optional<block_enum>.
1592 (dw2_lookup_symbol): Change block_index parameter
1593 type to block_enum.c
1594 (dw2_debug_names_lookup_symbol): Likewise.
1595 * psymtab.c (psym_lookup_symbol): Likewise.
1596 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
1597 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1598 Likewise.
1599
1600 2019-09-06 Christian Biesinger <cbiesinger@google.com>
1601
1602 * defs.h (relocate_gdb_directory): Change int to bool in
1603 signature and rename flag to relocatable.
1604 * main.c (relocate_path): Likewise.
1605 (relocate_gdb_directory): Likewise.
1606
1607 2019-09-06 Alan Modra <amodra@gmail.com>
1608
1609 * coffread.c (coff_symfile_read): Constify filename variable.
1610 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
1611 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
1612 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
1613 * solib.c (reload_shared_libraries_1): Likewise.
1614 * symfile.c (reread_symbols): Likewise.
1615 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
1616 * solib-darwin.c (darwin_bfd_open): Likewise.
1617 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1618
1619 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1620
1621 * psymtab.c (print_partial_symbols): Handle missing domain_enum
1622 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
1623
1624 2019-09-03 Tom Tromey <tromey@adacore.com>
1625
1626 * ada-valprint.c (ada_val_print_num): Don't recurse for range
1627 types.
1628 (has_negatives): Unbias a range type bound.
1629 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
1630 * gdbtypes.c (operator==): Handle new field.
1631 (create_range_type): Add "bias" parameter.
1632 (create_static_range_type, resolve_dynamic_range): Update.
1633 * gdbtypes.h (struct range_bounds) <bias>: New member.
1634 (create_range_type): Add bias parameter.
1635 * printcmd.c (print_scalar_formatted): Unbias range types.
1636 * value.c (unpack_long): Unbias range types.
1637 (pack_long): Bias range types.
1638
1639 2019-09-02 Alan Hayward <alan.hayward@arm.com>
1640
1641 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
1642 probe arguments.
1643
1644 2019-09-02 Alan Hayward <alan.hayward@arm.com>
1645
1646 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
1647 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
1648 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
1649 (compile_probe_arg): Likewise.
1650 * probe.h (get_argument_count): Likewise.
1651 * solib-svr4.c (solib_event_probe_action): Likewise.
1652 * stap-probe.c (stap_probe::get_argument_count): Likewise.
1653
1654 2019-09-02 Alan Hayward <alan.hayward@arm.com>
1655
1656 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
1657 code to here...
1658 (svr4_create_solib_event_breakpoints): ...from here.
1659
1660 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
1661
1662 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
1663 suffix from warning message.
1664
1665 2019-08-30 Tom Tromey <tom@tromey.com>
1666
1667 * tui/tui-winsource.h (struct tui_source_window_base)
1668 <refresh_all>: Don't declare.
1669 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
1670 Remove.
1671 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
1672 tui_show_locator_content.
1673 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
1674 declare.
1675 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
1676 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
1677 declare.
1678
1679 2019-08-30 Tom Tromey <tom@tromey.com>
1680
1681 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
1682
1683 2019-08-30 Tom Tromey <tom@tromey.com>
1684
1685 * tui/tui-stack.c (_initialize_tui_stack): Move later.
1686 Remove unnecessary forward declarations.
1687
1688 2019-08-30 Tom Tromey <tom@tromey.com>
1689
1690 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
1691 rerender.
1692 (tui_update_locator_fullname, tui_show_frame_info): Don't call
1693 tui_show_locator_content.
1694
1695 2019-08-30 Tom Tromey <tom@tromey.com>
1696
1697 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
1698 (tui_locator_window::rerender): Rewrite using body of previous
1699 tui_show_locator_content.
1700
1701 2019-08-30 Tom Tromey <tom@tromey.com>
1702
1703 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
1704 set_locator_fullname>: New methods.
1705 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1706 Rename from tui_set_locator_fullname.
1707 (tui_locator_window::set_locator_info): Rename from
1708 tui_set_locator_info. Return bool.
1709 (tui_update_locator_fullname, tui_show_frame_info): Update.
1710
1711 2019-08-30 Tom Tromey <tom@tromey.com>
1712
1713 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
1714
1715 2019-08-30 Tom Tromey <tom@tromey.com>
1716
1717 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
1718 call touchwin.
1719
1720 2019-08-30 Tom Tromey <tom@tromey.com>
1721
1722 * tui/tui-wingeneral.c (box_win): Assume win_info and
1723 win_info->handle cannot be NULL.
1724
1725 2019-08-30 Tom Tromey <tom@tromey.com>
1726
1727 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
1728 refresh_window>: Declare.
1729 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
1730 resize.
1731 (tui_data_item_window::rerender): Rename from
1732 tui_display_register.
1733 (tui_data_item_window::refresh_window): New method.
1734 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
1735 no-op.
1736
1737 2019-08-30 Tom Tromey <tom@tromey.com>
1738
1739 * tui/tui-regs.h (struct tui_data_window) <regs_content,
1740 regs_column_count, current_group>: Move later. Now private.
1741 <get_current_group>: New method.
1742 * tui/tui-regs.c (tui_reg_command): Update.
1743 * tui/tui-layout.c (tui_set_layout): Update.
1744
1745 2019-08-30 Tom Tromey <tom@tromey.com>
1746
1747 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1748 (tui_data_window::rerender): Don't call
1749 check_and_display_highlight_if_needed.
1750 (tui_data_window::refresh_all): Remove call to
1751 erase_data_content.
1752
1753 2019-08-30 Tom Tromey <tom@tromey.com>
1754
1755 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1756 (tui_data_window::display_registers_from)
1757 (tui_data_window::display_reg_element_at_line)
1758 (tui_data_window::display_registers_from_line): Remove checks of
1759 "empty".
1760
1761 2019-08-30 Tom Tromey <tom@tromey.com>
1762
1763 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
1764 Don't declare.
1765 * tui/tui-regs.c (tui_data_window::show_registers): Call
1766 rerender.
1767 (tui_data_window::rerender): Rename from display_all_data.
1768 (tui_data_window::rerender): Remove old implementation.
1769
1770 2019-08-30 Tom Tromey <tom@tromey.com>
1771
1772 * tui/tui-regs.c (tui_data_window::display_all_data): Change
1773 text.
1774 * tui/tui-data.h (NO_DATA_STRING): Remove define.
1775
1776 2019-08-29 Bernhard Wodok <barto@gmx.net>
1777 Sergio Durigan Junior <sergiodj@redhat.com>
1778
1779 PR win32/24284
1780 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
1781
1782 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1783
1784 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
1785 when searching for types.
1786
1787 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1788
1789 * f-lang.c (f_language_defn): Use f_print_typedef.
1790 * f-lang.h (f_print_typedef): Declare.
1791 * f-typeprint.c (f_print_typedef): Define.
1792
1793 2019-08-27 Christian Biesinger <cbiesinger@google.com>
1794
1795 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
1796
1797 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
1798
1799 * cli/cli-utils.c (info_print_options_defs): Delete.
1800 (make_info_print_options_def_group): Delete.
1801 (extract_info_print_options): Delete.
1802 (info_print_command_completer): Delete.
1803 (info_print_args_help): Add extra parameter, and optionally
1804 include text about -n flag.
1805 * cli/cli-utils.h (struct info_print_options): Delete.
1806 (extract_info_print_options): Delete declaration.
1807 (info_print_command_completer): Delete declaration.
1808 (info_print_args_help): Add extra parameter, extend header
1809 comment.
1810 * python/python.c (gdbpy_rbreak): Pass additional parameter to
1811 search_symbols.
1812 * stack.c (struct info_print_options): New type.
1813 (info_print_options_defs): New file scoped variable.
1814 (make_info_print_options_def_group): New static function.
1815 (info_print_command_completer): New static function.
1816 (info_locals_command): Update to use new local functions.
1817 (info_args_command): Likewise.
1818 (_initialize_stack): Add extra parameter to calls to
1819 info_print_args_help.
1820 * symtab.c (search_symbols): Add extra parameter, use this to
1821 possibly excluse non-debug symbols.
1822 (symtab_symbol_info): Add extra parameter, which is passed on to
1823 search_symbols.
1824 (struct info_print_options): New type.
1825 (info_print_options_defs): New file scoped variable.
1826 (make_info_print_options_def_group): New static function.
1827 (info_print_command_completer): New static function.
1828 (info_variables_command): Update to use local functions, and pass
1829 extra parameter through to symtab_symbol_info.
1830 (info_functions_command): Likewise.
1831 (info_types_command): Pass additional argument through to
1832 symtab_symbol_info.
1833 (rbreak_command): Pass extra argument to search_symbols.
1834 (_initialize_symtab): Add extra arguments for calls to
1835 info_print_args_help, and update help text for 'info variables',
1836 'whereis', and 'info functions' commands.
1837 * symtab.h (search_symbols): Add extra argument to declaration.
1838 * NEWS: Mention new flags.
1839
1840 2019-08-26 Christian Biesinger <cbiesinger@google.com>
1841
1842 * symtab.c (lookup_static_symbol): Call the new function (and move
1843 it down to be next to lookup_global_symbol).
1844 (struct global_sym_lookup_data): Add block_enum member and rename to...
1845 (struct global_or_static_sym_lookup_data): ...this.
1846 (lookup_symbol_global_iterator_cb): Pass block_index instead of
1847 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
1848 (lookup_symbol_global_or_static_iterator_cb): ...this.
1849 (lookup_global_or_static_symbol): New function.
1850 (lookup_global_symbol): Call new function.
1851
1852 2019-08-26 Tom de Vries <tdevries@suse.de>
1853
1854 PR c++/24852
1855 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
1856 when pc_probe.prob == NULL.
1857
1858 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
1859
1860 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
1861 variable symbol_linkage to symbol_linkage_.
1862
1863 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
1864
1865 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
1866 represent whether the symbol is static, dynamic, or we don't
1867 know.
1868
1869 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
1870
1871 * gdb/rx-tdep.c (rx_register_names): New.
1872 (rx_register_name): Delete.
1873 (rx_psw_type): Delete.
1874 (rx_fpsw_type): Delete.
1875 (rx_register_type): Delete.
1876 (rx_gdbarch_init): Convert target-descriptions.
1877 (_initialize_rx_tdep): Add initialize_tdesc_rx.
1878 * gdb/features/Makefile: Add rx.xml.
1879 * gdb/features/rx.xml: New.
1880 * gdb/features/rx.c: Generated.
1881 * gdb/NEWS: Mention target description support.
1882
1883 2019-08-22 Christian Biesinger <cbiesinger@google.com>
1884
1885 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
1886 *slot_ptr.
1887
1888 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1889
1890 * configure.ac: Don't check for 'dlfcn.h' (moved to
1891 gdbsupport/common.m4).
1892 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
1893 'gdbsupport/'.
1894 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
1895 * compile/compile-c-support.c: Include
1896 'gdbsupport/gdb-dlfcn.h'.
1897 * gdbsupport/common.m4: Check for 'dlfcn.h'.
1898 * gdb-dlfcn.c: Move to...
1899 * gdbsupport/gdb-dlfcn.c: ... here.
1900 * gdb-dlfcn.h: Move to...
1901 * gdbsupport/gdb-dlfcn.h: ... here.
1902
1903 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
1904
1905 * nios2-tdep.c (struct reg_value): Improve comments. Make
1906 the offset field signed.
1907
1908 2019-08-22 Christian Biesinger <cbiesinger@google.com>
1909
1910 * python/lib/gdb/__init__.py (_execute_file): New function.
1911 * python/python.c (python_run_simple_file): Call gdb._execute_file
1912 on Windows.
1913
1914 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
1915
1916 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
1917 all uses as this was never set to anything but a zero value.
1918
1919 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
1920
1921 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
1922
1923 2019-08-21 Christian Biesinger <cbiesinger@google.com>
1924
1925 * tui/tui-data.h (tui_gen_win_info): Add an =default
1926 move constructor, required by some GCC versions.
1927
1928 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
1929
1930 * go32-nat.c (go32_sysinfo): Add hygon_p.
1931
1932 2019-08-20 Tom Tromey <tom@tromey.com>
1933
1934 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
1935 line_from_reg_element_no, first_reg_element_no_inline,
1936 display_all_data, delete_data_content_windows,
1937 erase_data_content>: Now private.
1938
1939 2019-08-20 Tom Tromey <tom@tromey.com>
1940
1941 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
1942 (tui_unhighlight_win, tui_highlight_win)
1943 (tui_win_info::make_window): Update.
1944 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
1945
1946 2019-08-20 Tom Tromey <tom@tromey.com>
1947
1948 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1949 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1950 (MAX_PID_WIDTH): Move to tui-stack.c.
1951 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1952 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1953 (MAX_PID_WIDTH): Move from tui-data.h.
1954
1955 2019-08-20 Tom Tromey <tom@tromey.com>
1956
1957 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
1958 * tui/tui-wingeneral.c (box_win): Change type of win_info.
1959 (box_win): Update.
1960 (tui_gen_win_info::make_window): Rename from tui_make_window.
1961 (tui_win_info::make_window): New method.
1962 (tui_gen_win_info::make_visible): Update.
1963 * tui/tui-source.c (tui_source_window::set_contents): Update.
1964 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1965 (tui_data_window::display_registers_from): Update.
1966 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1967 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
1968 Declare.
1969 <can_box>: Remove.
1970 <title>: Remove.
1971 (struct tui_win_info) <make_window>: Declare.
1972 <can_box>: Now virtual.
1973 <title>: New member.
1974 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
1975 * tui/tui-command.c (tui_cmd_window::resize): Update.
1976
1977 2019-08-20 Tom Tromey <tom@tromey.com>
1978
1979 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
1980 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1981 (tui_data_window::check_register_values): Update.
1982
1983 2019-08-20 Tom Tromey <tom@tromey.com>
1984
1985 * tui/tui-regs.h (struct tui_data_window): Use
1986 DISABLE_COPY_AND_ASSIGN.
1987 <regs_content>: Change type, removing unique_ptr.
1988 <tui_data_window>: Add move constructor.
1989 * tui/tui-regs.c (tui_data_window::show_registers)
1990 (tui_data_window::show_register_group)
1991 (tui_data_window::display_registers_from)
1992 (tui_data_window::display_registers_from)
1993 (tui_data_window::first_data_item_displayed)
1994 (tui_data_window::delete_data_content_windows)
1995 (tui_data_window::rerender, tui_data_window::refresh_window)
1996 (tui_data_window::check_register_values): Update.
1997
1998 2019-08-20 Tom Tromey <tom@tromey.com>
1999
2000 * tui/tui-regs.h (struct tui_data_window) <show_registers,
2001 show_register_group>: Declare.
2002 (tui_show_register_group): Don't declare.
2003 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
2004 tui_show_registers.
2005 (tui_data_window::show_register_group): Rename from
2006 tui_show_register_group.
2007 (tui_data_window::check_register_values, tui_reg_command):
2008 Update.
2009 * tui/tui-layout.c (tui_set_layout): Update.
2010
2011 2019-08-20 Tom Tromey <tom@tromey.com>
2012
2013 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
2014 Declare.
2015 (tui_check_register_values): Don't declare.
2016 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
2017 from tui_check_register_values.
2018 * tui/tui-hooks.c (tui_register_changed): Update.
2019
2020 2019-08-20 Tom Tromey <tom@tromey.com>
2021
2022 * tui/tui-regs.c (tui_reg_layout): Move later.
2023 (tui_show_registers): Don't enable TUI mode or change layout.
2024
2025 2019-08-20 Tom Tromey <tom@tromey.com>
2026
2027 * tui/tui-regs.h (struct tui_data_item_window)
2028 <~tui_data_item_window>: Remove.
2029 <content>: Now a unique_xmalloc_ptr.
2030 * tui/tui-regs.c (tui_register_format): Return a
2031 unique_xmalloc_ptr.
2032 (tui_get_register): Update.
2033 (~tui_data_item_window): Remove.
2034 (tui_data_window::display_registers_from, tui_display_register):
2035 Update.
2036 * tui/tui-io.h (tui_expand_tabs): Update.
2037 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
2038 Remove "col" parameter.
2039
2040 2019-08-20 Tom Tromey <tom@tromey.com>
2041
2042 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
2043 field.
2044 * tui/tui-regs.c (~tui_data_item_window): Update.
2045
2046 2019-08-20 Tom Tromey <tom@tromey.com>
2047
2048 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
2049 earlier.
2050
2051 2019-08-20 Tom Tromey <tom@tromey.com>
2052
2053 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
2054
2055 2019-08-20 Tom Tromey <tom@tromey.com>
2056
2057 * tui/tui-source.h (struct tui_source_window): Update.
2058 * tui/tui-regs.c (tui_show_registers): Update.
2059 * tui/tui-disasm.h (struct tui_disasm_window): Update.
2060 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
2061 (NO_REGS_STRING): Remove defines.
2062
2063 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
2064
2065 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
2066 unnecessary thread walk if remote doesn't support the packet.
2067
2068 2019-08-19 Tom Tromey <tromey@adacore.com>
2069
2070 * python/py-value.c (value_has_field): Fix indentation.
2071
2072 2019-08-19 Tom Tromey <tromey@adacore.com>
2073
2074 * printcmd.c (do_one_display, info_display_command): Update.
2075 * block.h (contained_in): Return bool. Add allow_nested
2076 parameter.
2077 * block.c (contained_in): Return bool. Add allow_nested
2078 parameter.
2079
2080 2019-08-19 Tom Tromey <tom@tromey.com>
2081
2082 * configure: Rebuild.
2083 * configure.ac: Disallow the combination of -static-libstdc++ and
2084 source highlight.
2085 * source-cache.c (get_language_name): Handle rust.
2086 (source_cache::get_source_lines): Ignore highlighting exceptions.
2087
2088 2019-08-16 Tom Tromey <tom@tromey.com>
2089
2090 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
2091 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
2092 (struct tui_source_window_base) <make_visible, refresh_window,
2093 resize>: Remove methods.
2094 <execution_info>: Remove field.
2095 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
2096 (tui_show_source_line, tui_source_window_base)
2097 (~tui_source_window_base): Update.
2098 (tui_source_window_base::resize)
2099 (tui_source_window_base::make_visible)
2100 (tui_source_window_base::refresh_window): Remove.
2101 (tui_source_window_base::update_exec_info): Update.
2102 * tui/tui-source.c (tui_source_window::set_contents): Update.
2103 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2104
2105 2019-08-16 Tom Tromey <tom@tromey.com>
2106
2107 * tui/tui-hooks.c (tui_remove_hooks): Don't set
2108 deprecated_query_hook.
2109
2110 2019-08-16 Tom Tromey <tom@tromey.com>
2111
2112 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2113 (tui_update_source_windows_with_line): Update.
2114 * tui/tui-source.h (struct tui_source_window)
2115 <show_symtab_source>: Declare.
2116 (tui_show_symtab_source): Don't declare.
2117 * tui/tui-source.c (tui_show_symtab_source): Rename from
2118 tui_show_symtab_source.
2119
2120 2019-08-16 Tom Tromey <tom@tromey.com>
2121
2122 * tui/tui-winsource.h (struct tui_source_window_base)
2123 <set_contents>: Declare.
2124 * tui/tui-winsource.c
2125 (tui_source_window_base::update_source_window_as_is): Update.
2126 * tui/tui-source.h (struct tui_source_window) <set_contents>:
2127 Declare.
2128 (tui_set_source_content): Don't declare.
2129 * tui/tui-source.c (tui_source_window::set_contents): Rename from
2130 tui_set_source_content.
2131 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
2132 Declare.
2133 (tui_set_disassem_content): Don't declare.
2134 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
2135 tui_set_disassem_content.
2136
2137 2019-08-16 Tom Tromey <tom@tromey.com>
2138
2139 * tui/tui-winsource.h (struct tui_source_window_base)
2140 <update_breakpoint_info>: Declare.
2141 (tui_update_breakpoint_info): Don't declare.
2142 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
2143 (tui_update_all_breakpoint_info): Update.
2144 (tui_source_window_base::update_breakpoint_info): Rename from
2145 tui_update_breakpoint_info.
2146 (tui_source_window_base::update_exec_info): Update.
2147
2148 2019-08-16 Tom Tromey <tom@tromey.com>
2149
2150 * tui/tui-winsource.h (struct tui_source_window_base)
2151 <update_source_window>: Declare.
2152 (tui_update_source_window): Don't declare.
2153 * tui/tui-winsource.c
2154 (tui_source_window_base::update_source_window): Rename from
2155 tui_update_source_window.
2156 (tui_source_window_base::rerender): Update.
2157 * tui/tui-source.c (tui_source_window::maybe_update): Update.
2158 * tui/tui-disasm.c (tui_show_disassem)
2159 (tui_show_disassem_and_update_source)
2160 (tui_disasm_window::maybe_update): Update.
2161
2162 2019-08-16 Tom Tromey <tom@tromey.com>
2163
2164 * tui/tui-winsource.h (struct tui_source_window_base)
2165 <update_source_window_as_is>: Declare.
2166 (tui_update_source_window_as_is): Don't declare.
2167 * tui/tui-winsource.c (tui_update_source_window): Update
2168 (tui_source_window_base::update_source_window_as_is): Rename from
2169 tui_update_source_window_as_is.
2170 (tui_source_window_base::refill): Update.
2171 * tui/tui-source.c (tui_show_symtab_source): Update.
2172 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
2173 Update.
2174
2175 2019-08-16 Tom Tromey <tom@tromey.com>
2176
2177 * tui/tui-winsource.h (tui_update_source_window)
2178 (tui_update_source_window_as_is): Remove "noerror" parameter.
2179 * tui/tui-winsource.c (tui_update_source_window)
2180 (tui_update_source_window_as_is): Remove "noerror" parameter.
2181 (tui_update_source_windows_with_addr)
2182 (tui_update_source_windows_with_line)
2183 (tui_source_window_base::rerender)
2184 (tui_source_window_base::refill): Update.
2185 * tui/tui-source.h (tui_set_source_content)
2186 (tui_show_symtab_source): Remove "noerror" parameter.
2187 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
2188 parameter.
2189 (tui_show_symtab_source): Likewise.
2190 (tui_source_window::maybe_update): Update.
2191 * tui/tui-disasm.c (tui_show_disassem)
2192 (tui_show_disassem_and_update_source)
2193 (tui_disasm_window::do_scroll_vertical)
2194 (tui_disasm_window::maybe_update): Update.
2195
2196 2019-08-16 Tom Tromey <tom@tromey.com>
2197
2198 * tui/tui.c (tui_is_window_visible): Update.
2199 * tui/tui-wingeneral.c (tui_make_window)
2200 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
2201 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
2202 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
2203 (tui_set_win_height_command, parse_scrolling_args): Update.
2204 * tui/tui-source.c (tui_source_window::style_changed): Update.
2205 * tui/tui-regs.c (tui_show_registers)
2206 (tui_data_window::first_data_item_displayed)
2207 (tui_data_window::delete_data_content_windows)
2208 (tui_check_register_values, tui_reg_command): Update.
2209 * tui/tui-disasm.c (tui_show_disassem): Update.
2210 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
2211 method.
2212 <is_visible>: Remove field.
2213 * tui/tui-data.c (tui_next_win, tui_prev_win)
2214 (tui_delete_invisible_windows): Update.
2215
2216 2019-08-16 Tom Tromey <tom@tromey.com>
2217
2218 * tui/tui-winsource.h (struct tui_source_window_base)
2219 <m_has_locator>: Remove.
2220 * tui/tui-layout.c (show_source_disasm_command, show_data)
2221 (show_source_or_disasm_and_command): Update.
2222
2223 2019-08-16 Alan Hayward <alan.hayward@arm.com>
2224
2225 * NEWS (Other MI changes): New subsection.
2226 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
2227 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
2228 * arch-utils.c (default_get_pc_address_flags): New function.
2229 * arch-utils.h (default_get_pc_address_flags): New declaration.
2230 * gdbarch.sh: Add get_pc_address_flags.
2231 * gdbarch.c: Regenerate.
2232 * gdbarch.h: Likewise.
2233 * stack.c (print_pc): New function.
2234 (print_frame_info) (print_frame): Call print_pc.
2235
2236 2019-08-16 Tom de Vries <tdevries@suse.de>
2237
2238 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
2239 print_objfile_section_info.
2240
2241 2019-08-15 Tom Tromey <tom@tromey.com>
2242
2243 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
2244 calling update_cmdwin_start_line.
2245 * tui/tui-winsource.h (struct tui_source_window_base)
2246 <do_make_visible_with_new_height, set_new_height>: Don't declare.
2247 <rerender>: Declare.
2248 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
2249 Call rerender.
2250 (tui_source_window_base::set_new_height): Remove.
2251 (tui_source_window_base::rerender): Rename from
2252 do_make_visible_with_new_height.
2253 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
2254 resize method.
2255 (tui_win_info::make_invisible_and_set_new_height)
2256 (tui_win_info::make_visible_with_new_height): Remove.
2257 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
2258 Declare.
2259 * tui/tui-stack.c (tui_locator_window::rerender): New method.
2260 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
2261 do_make_visible_with_new_height>: Don't declare.
2262 <rerender>: Declare.
2263 * tui/tui-regs.c (tui_data_window::rerender): Rename from
2264 set_new_height.
2265 (tui_data_window::do_make_visible_with_new_height): Remove.
2266 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
2267 call tui_show_locator_content.
2268 (tui_gen_win_info::resize): Call rerender.
2269 (show_source_or_disasm_and_command): Don't call
2270 tui_show_locator_content.
2271 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
2272 method.
2273 (struct tui_win_info) <rerender>: Declare.
2274 <set_new_height, make_invisible_and_set_new_height,
2275 make_visible_with_new_height>: Don't declare.
2276 * tui/tui-data.c (tui_win_list::rerender): New method.
2277 * tui/tui-command.h (struct tui_cmd_window)
2278 <do_make_visible_with_new_height>: Don't declare.
2279 * tui/tui-command.c
2280 (tui_cmd_window::do_make_visible_with_new_height): Remove.
2281
2282 2019-08-15 Tom Tromey <tromey@adacore.com>
2283
2284 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
2285 * ada-lang.c (ada_enum_name): Likewise.
2286
2287 2019-08-15 Christian Biesinger <cbiesinger@google.com>
2288
2289 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
2290 leading underscore.
2291 (GdbOutputErrorFile): Likewise.
2292 (global scope): Adjust constructor calls to GdbOutput{,Error}File
2293 accordingly.
2294 (execute_unwinders): Rename to have a leading underscore.
2295 (auto_load_packages): Likewise.
2296 (global scope): Adjust call to auto_load_packages accordingly.
2297 (GdbSetPythonDirectory): Likewise.
2298 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
2299 instead of execute_unwinders.
2300
2301 2019-08-15 Tom Tromey <tom@tromey.com>
2302
2303 * tui/tui-layout.c (show_layout, show_source_disasm_command)
2304 (show_data): Don't change window visibility.
2305 (tui_gen_win_info::resize): Remove special case for command
2306 window. Use wresize, when available.
2307 (show_source_or_disasm_and_command): Don't change window
2308 visibility.
2309 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
2310 <make_visible>: New method.
2311 * tui/tui-command.c (tui_cmd_window::resize): New method.
2312
2313 2019-08-15 Tom Tromey <tom@tromey.com>
2314
2315 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
2316 (struct tui_source_windows): New.
2317 * tui/tui-winsource.c (tui_display_main): Update.
2318 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2319 (new_height_ok, parse_scrolling_args): Update.
2320 * tui/tui-layout.c (show_layout, show_data): Update.
2321 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
2322 (tui_add_to_source_windows): Don't declare.
2323 * tui/tui-data.c (source_windows, tui_source_windows)
2324 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
2325
2326 2019-08-15 Tom Tromey <tom@tromey.com>
2327
2328 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
2329 Rename from reset.
2330 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
2331 * tui/tui-layout.c (show_source_disasm_command, show_data):
2332 Update.
2333 (tui_gen_win_info::resize): Rename.
2334 (show_source_or_disasm_and_command): Update.
2335 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
2336 reset.
2337
2338 2019-08-15 Tom Tromey <tom@tromey.com>
2339
2340 * tui/tui-stack.c (tui_initialize_static_data): Remove.
2341 * tui/tui-interp.c (tui_interp::init): Don't call
2342 tui_initialize_static_data.
2343 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
2344
2345 2019-08-15 Tom Tromey <tom@tromey.com>
2346
2347 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
2348 examine tui_win_list.
2349
2350 2019-08-15 Tom Tromey <tom@tromey.com>
2351
2352 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
2353 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
2354 tui_clear_source_content.
2355 (tui_clear_source_content): Remove.
2356 (tui_source_window_base::do_erase_source_content): Hoist call to
2357 content.clear().
2358 * tui/tui-stack.c (tui_show_frame_info): Don't call
2359 tui_clear_source_content.
2360
2361 2019-08-15 Tom Tromey <tom@tromey.com>
2362
2363 * tui/tui-winsource.h (struct tui_source_window_base)
2364 <do_erase_source_content>: New method.
2365 <erase_source_content>: New method.
2366 (tui_erase_source_content): Don't declare.
2367 * tui/tui-winsource.c (tui_clear_source_content): Update.
2368 (tui_source_window_base::do_erase_source_content): Rename from
2369 tui_erase_source_content.
2370 (tui_source_window_base::show_source_content): Update.
2371 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2372 * tui/tui-source.h (struct tui_source_window)
2373 <erase_source_content>: New method.
2374 * tui/tui-disasm.h (struct tui_disasm_window)
2375 <erase_source_content>: New method.
2376
2377 2019-08-15 Tom Tromey <tom@tromey.com>
2378
2379 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
2380 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
2381 constructor.
2382 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
2383 * tui/tui-source.c (tui_set_source_content): Update.
2384 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2385
2386 2019-08-15 Tom Tromey <tom@tromey.com>
2387
2388 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
2389 * tui/tui-winsource.c (tui_line_is_displayed): Move to
2390 tui-source.c.
2391 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
2392 Declare.
2393 * tui/tui-source.c (tui_source_window::line_is_displayed): New
2394 method.
2395 (tui_source_window::maybe_update): Update.
2396
2397 2019-08-15 Tom Tromey <tom@tromey.com>
2398
2399 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
2400 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
2401 tui-disasm.c.
2402 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
2403 Declare.
2404 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
2405 method.
2406 (tui_disasm_window::maybe_update): Update.
2407
2408 2019-08-15 Tom Tromey <tom@tromey.com>
2409
2410 * tui/tui-winsource.h (struct tui_source_window_base)
2411 <maybe_update>: Declare.
2412 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
2413 method.
2414 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
2415 Declare.
2416 * tui/tui-source.c (tui_source_window::maybe_update): New method.
2417 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
2418 Declare.
2419 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
2420
2421 2019-08-15 Tom Tromey <tom@tromey.com>
2422
2423 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
2424
2425 2019-08-15 Tom Tromey <tom@tromey.com>
2426
2427 * tui/tui-wingeneral.c: Include tui-stack.h.
2428 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
2429 (struct tui_locator_window): Move from tui-data.h.
2430 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
2431 (tui_initialize_static_data): Move from tui-data.c.
2432 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
2433 (struct tui_locator_window): Move to tui-stack.c.
2434 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
2435 (tui_initialize_static_data): Move to tui-stack.c.
2436
2437 2019-08-15 Tom Tromey <tom@tromey.com>
2438
2439 * tui/tui-layout.c (show_source_disasm_command)
2440 (show_source_or_disasm_and_command): Use make_visible method, not
2441 tui_make_window.
2442 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
2443 Remove.
2444
2445 2019-08-15 Tom Tromey <tom@tromey.com>
2446
2447 * tui/tui-wingeneral.h (tui_make_window): Update.
2448 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
2449 parameter.
2450 (tui_gen_win_info::make_visible): Update.
2451 * tui/tui-regs.c (tui_data_window::display_registers_from):
2452 Update.
2453 * tui/tui-layout.c (show_source_disasm_command)
2454 (show_source_or_disasm_and_command): Update.
2455 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
2456 (enum tui_box): Remove.
2457 (struct tui_win_info) <can_box>: New method.
2458 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
2459 method.
2460
2461 2019-08-15 Tom de Vries <tdevries@suse.de>
2462
2463 * linux-nat-trad.c: Include gdbarch.h.
2464
2465 2019-08-14 Alan Hayward <alan.hayward@arm.com>
2466
2467 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
2468 register sizes.
2469
2470 2019-08-14 Tom Tromey <tromey@adacore.com>
2471
2472 * darwin-nat.c: Include gdbarch.h.
2473 * darwin-nat-info.c: Include gdbarch.h.
2474
2475 2019-08-13 Tom Tromey <tom@tromey.com>
2476
2477 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
2478 Remove.
2479 * tui/tui-data.c (tui_initialize_static_data): Update.
2480
2481 2019-08-13 Tom Tromey <tom@tromey.com>
2482
2483 * tui/tui-winsource.h (struct tui_exec_info_window)
2484 <~tui_exec_info_window, maybe_allocate_content, get_content,
2485 m_content>: Remove.
2486 (struct tui_source_window_base) <set_exec_info_content,
2487 show_exec_info_content>: Don't declare.
2488 * tui/tui-winsource.c
2489 (tui_exec_info_window::maybe_allocate_content): Remove.
2490 (tui_source_window_base::update_exec_info): Rename from
2491 set_exec_info_content.
2492 (tui_source_window_base::show_exec_info_content)
2493 (tui_source_window_base::update_exec_info): Remove.
2494
2495 2019-08-13 Tom Tromey <tom@tromey.com>
2496
2497 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
2498 declare.
2499 * tui/tui-winsource.c (tui_update_source_window_as_is)
2500 (tui_update_source_windows_with_addr, tui_erase_source_content):
2501 Update.
2502 (tui_clear_exec_info_content): Remove.
2503
2504 2019-08-13 Tom Tromey <tom@tromey.com>
2505
2506 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
2507 declare.
2508 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
2509 call tui_erase_exec_info_content.
2510 (tui_clear_exec_info_content): Rename from
2511 tui_erase_exec_info_content.
2512 (tui_clear_exec_info_content): Delete.
2513
2514 2019-08-13 Tom Tromey <tom@tromey.com>
2515
2516 * tui/tui-winsource.h (struct tui_source_window_base)
2517 <show_exec_info_content>: Declare.
2518 (tui_show_exec_info_content): Don't declare.
2519 * tui/tui-winsource.c
2520 (tui_source_window_base::show_exec_info_content): Rename from
2521 tui_show_exec_info_content.
2522 (tui_source_window_base::update_exec_info): Update.
2523
2524 2019-08-13 Tom Tromey <tom@tromey.com>
2525
2526 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
2527 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
2528 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
2529 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
2530 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
2531 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
2532 ... here.
2533
2534 2019-08-13 Tom Tromey <tom@tromey.com>
2535
2536 * tui/tui-winsource.h (struct tui_source_window_base)
2537 <update_exec_info>: Declare.
2538 (tui_update_exec_info): Don't declare.
2539 * tui/tui-winsource.c (tui_update_source_window_as_is)
2540 (tui_source_window_base::refresh_all)
2541 (tui_update_all_breakpoint_info): Update.
2542 (tui_source_window_base::update_exec_info): Rename from
2543 tui_update_exec_info.
2544 * tui/tui-stack.c (tui_show_frame_info): Update.
2545
2546 2019-08-13 Tom Tromey <tom@tromey.com>
2547
2548 * tui/tui-winsource.h (struct tui_source_window_base)
2549 <set_exec_info_content>: Declare.
2550 (tui_set_exec_info_content): Don't declare.
2551 * tui/tui-winsource.c
2552 (tui_source_window_base::set_exec_info_content): Rename from
2553 tui_set_exec_info_content.
2554 (tui_update_exec_info): Update.
2555
2556 2019-08-13 Tom Tromey <tom@tromey.com>
2557
2558 * tui/tui-winsource.h (struct tui_source_window_base)
2559 <show_source_content>: Declare.
2560 (tui_show_source_content): Don't declare.
2561 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2562 (tui_source_window_base::show_source_content): Rename from
2563 tui_show_source_content.
2564 (tui_source_window_base::refresh_all): Update.
2565 * tui/tui-layout.c (show_source_disasm_command)
2566 (show_source_or_disasm_and_command): Update.
2567
2568 2019-08-13 Tom Tromey <tom@tromey.com>
2569
2570 * tui/tui-winsource.c (tui_erase_source_content)
2571 (tui_show_source_content, tui_source_window_base::refresh_all):
2572 Update.
2573 * tui/tui-wingeneral.h
2574 (tui_check_and_display_highlight_if_needed): Don't declare.
2575 * tui/tui-wingeneral.c
2576 (tui_win_info::check_and_display_highlight_if_needed): Rename from
2577 check_and_display_highlight_if_needed.
2578 * tui/tui-win.c (tui_rehighlight_all)
2579 (tui_win_info::make_visible_with_new_height): Update.
2580 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2581 (tui_data_window::erase_data_content)
2582 (tui_data_window::display_all_data): Update.
2583 * tui/tui-data.h (struct tui_win_info)
2584 <check_and_display_highlight_if_needed>: Declare.
2585
2586 2019-08-13 Tom Tromey <tom@tromey.com>
2587
2588 * tui/tui-win.c (tui_resize_all): Call
2589 tui_delete_invisible_windows.
2590 * tui/tui-layout.c (show_layout): Call
2591 tui_delete_invisible_windows.
2592 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
2593 * tui/tui-data.c (tui_delete_invisible_windows): New function.
2594
2595 2019-08-13 Tom Tromey <tom@tromey.com>
2596
2597 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
2598 tui_add_win_to_layout.
2599
2600 2019-08-13 Tom Tromey <tom@tromey.com>
2601
2602 * tui/tui-layout.h (tui_default_win_height): Don't declare.
2603 * tui/tui-layout.c (tui_default_win_height): Now static.
2604
2605 2019-08-13 Tom Tromey <tom@tromey.com>
2606
2607 * tui/tui-layout.c (show_layout): Unify all layout cases into a
2608 single switch.
2609 (show_source_disasm_command, show_source_or_disasm_and_command):
2610 Don't check current layout.
2611
2612 2019-08-13 Tom Tromey <tom@tromey.com>
2613
2614 * tui/tui-wingeneral.c (make_all_visible): Remove.
2615 (tui_make_all_invisible): Simplify.
2616 * tui/tui-layout.c (tui_make_all_invisible): Move from
2617 tui-wingeneral.c; simplify.
2618 (show_layout): Hoist call to tui_make_all_invisible.
2619 (show_data): Don't call tui_make_all_invisible.
2620
2621 2019-08-13 Tom Tromey <tom@tromey.com>
2622
2623 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
2624 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
2625
2626 2019-08-13 Tom Tromey <tom@tromey.com>
2627
2628 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
2629 tui-data.c.
2630 (show_source_disasm_command, show_data)
2631 (show_source_or_disasm_and_command): Don't use
2632 tui_set_current_layout_to.
2633 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
2634 * tui/tui-data.c (current_layout, tui_current_layout): Move to
2635 tui-layout.c.
2636 (tui_set_current_layout_to): Remove.
2637
2638 2019-08-13 Tom Tromey <tom@tromey.com>
2639
2640 * tui/tui-layout.c (tui_set_layout): Update.
2641 * tui/tui-data.h (struct tui_layout_def): Remove.
2642 (tui_layout_def): Don't declare.
2643 * tui/tui-data.c (layout_def): Remove.
2644 (tui_layout_def): Remove.
2645
2646 2019-08-13 Tom Tromey <tom@tromey.com>
2647
2648 * tui/tui-winsource.h (struct tui_source_window_base)
2649 <clear_detail>: No longer "override".
2650 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
2651 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
2652 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
2653 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
2654 Remove.
2655 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
2656
2657 2019-08-13 Tom Tromey <tromey@adacore.com>
2658
2659 * tracepoint.c: Don't include readline.h or history.h.
2660
2661 2019-08-12 Tom Tromey <tom@tromey.com>
2662
2663 * configure: Rebuild.
2664 * configure.ac: Check for readline 7.
2665 * NEWS: Mention readline 7 requirement.
2666 * README: Update.
2667
2668 2019-08-12 Tom Tromey <tom@tromey.com>
2669
2670 * mingw-hdep.c (gdb_select): Remove readline hack.
2671
2672 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2673
2674 * blockframe.c (find_pc_partial_function): Set *block to nullptr
2675 when the function fails.
2676
2677 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
2678
2679 * s390-tdep.c (s390_type_align): New function.
2680 (s390_gdbarch_init): Set it as type_align gdbarch method.
2681
2682 2019-08-09 Tom de Vries <tdevries@suse.de>
2683
2684 PR gdb/24591
2685 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
2686 pc_low with relocation offset.
2687
2688 2019-08-07 Tom Tromey <tromey@adacore.com>
2689
2690 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2691 (print_frame_args): Update.
2692 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
2693 Update.
2694 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2695 * frame.h (struct frame_arg): Add initializers.
2696 <error>: Now a unique_xmalloc_ptr.
2697
2698 2019-08-07 Alan Hayward <alan.hayward@arm.com>
2699
2700 * NEWS: Expand the Pointer Authentication entry.
2701 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
2702 (aarch64_frame_unmask_lr): ... to this.
2703 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
2704 Call aarch64_frame_unmask_lr.
2705 * frame.c (struct frame_info): Add "masked" variable.
2706 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
2707 (fprint_frame): Check for masked pc.
2708 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
2709 declarations.
2710 * python/py-framefilter.c (py_print_frame): Check for masked pc.
2711 * stack.c (print_frame): Check for masked pc.
2712
2713 2019-08-06 Tom Tromey <tom@tromey.com>
2714
2715 * stabsread.c (patch_block_stabs, read_one_struct_field)
2716 (read_enum_type): Use obstack_strndup.
2717 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
2718 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
2719 * dwarf2read.c (guess_full_die_structure_name)
2720 (anonymous_struct_prefix): Use obstack_strndup.
2721 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
2722 * c-exp.y (yylex): Use obstack_strndup.
2723 * ada-exp.y (write_object_renaming, write_ambiguous_var)
2724 (write_var_or_type): Use obstack_strndup.
2725
2726 2019-08-06 Tom Tromey <tom@tromey.com>
2727
2728 * symfile.c (reread_symbols): Use obstack_strdup.
2729 * stabsread.c (read_type): Use obstack_strdup.
2730 * gdb_obstack.h (obstack_strdup): New overload.
2731 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
2732 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
2733 (dwarf2_canonicalize_name): Use obstack_strdup.
2734 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
2735 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
2736 Use obstack_strdup.
2737
2738 2019-08-06 Tom Tromey <tom@tromey.com>
2739
2740 * gdb_obstack.h (obstack_strdup): Define.
2741 * gdb_obstack.c (obstack_strdup): Don't define.
2742
2743 2019-08-06 Tom Tromey <tom@tromey.com>
2744
2745 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
2746 obstack_strdup.
2747 * typeprint.c (typedef_hash_table::find_global_typedef): Use
2748 obstack_strdup.
2749 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
2750 * stabsread.c (common_block_start): Use obstack_strdup.
2751 * objfiles.c (set_objfile_main_name, objfile): Use
2752 obstack_strdup.
2753 * namespace.c (add_using_directive): Use obstack_strdup.
2754 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
2755 * jit.c (finalize_symtab): Use obstack_strdup.
2756 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
2757 (guess_partial_die_structure_name, partial_die_info::fixup)
2758 (dwarf2_name): Use obstack_strdup.
2759 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
2760 obstack_strdup.
2761 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
2762 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
2763 obstack_strdup.
2764 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
2765
2766 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2767
2768 * unittests/help-doc-selftests.c: New file.
2769 * Makefile.in: Add the new file.
2770
2771 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2772
2773 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
2774 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
2775 the full first line, except when FOR_VALUE_PREFIX. In this case,
2776 the trailing '.' is not output, and the first character is uppercased.
2777 (print_help_for_command): Update call to print_doc_line.
2778 (print_doc_of_command): Likewise.
2779 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
2780 * cli/cli-option.c (append_indented_doc): Do not append newline.
2781 (build_help_option): Append newline after first appended_indented_doc
2782 only if a second call is done.
2783 (build_help): Append 2 new lines before each option, except the first
2784 one.
2785 * compile/compile.c (_initialize_compile): Add new lines after
2786 %OPTIONS%, when not at the end of the help.
2787 Change help doc or code
2788 producing the help doc to respect the invariants.
2789 * maint-test-options.c (_initialize_maint_test_options): Likewise.
2790 Also removed the new line after 'Options:', as all other commands
2791 do not put an empty line between 'Options:' and the first option.
2792 * printcmd.c (_initialize_printcmd): Likewise.
2793 * stack.c (_initialize_stack): Likewise.
2794 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
2795 incorrectly telling COMMAND is optional.
2796 * ada-lang.c (_initialize_ada_language): Change help doc or code
2797 producing the help doc to respect the invariants.
2798 * ada-tasks.c (_initialize_ada_tasks): Likewise.
2799 * breakpoint.c (_initialize_breakpoint): Likewise.
2800 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
2801 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
2802 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
2803 * cli/cli-style.c (cli_style_option::add_setshow_commands,
2804 _initialize_cli_style): Likewise.
2805 * corelow.c (core_target_info): Likewise.
2806 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
2807 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
2808 * filesystem.c (_initialize_filesystem): Likewise.
2809 * frame.c (_initialize_frame): Likewise.
2810 * gnu-nat.c (add_task_commands): Likewise.
2811 * infcall.c (_initialize_infcall): Likewise.
2812 * infcmd.c (_initialize_infcmd): Likewise.
2813 * interps.c (_initialize_interpreter): Likewise.
2814 * language.c (_initialize_language): Likewise.
2815 * linux-fork.c (_initialize_linux_fork): Likewise.
2816 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
2817 * maint.c (_initialize_maint_cmds): Likewise.
2818 * memattr.c (_initialize_mem): Likewise.
2819 * printcmd.c (_initialize_printcmd): Likewise.
2820 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
2821 _RegEx): Likewise.
2822 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
2823 * record-btrace.c (_initialize_record_btrace): Likewise.
2824 * record-full.c (_initialize_record_full): Likewise.
2825 * record.c (_initialize_record): Likewise.
2826 * regcache-dump.c (_initialize_regcache_dump): Likewise.
2827 * regcache.c (_initialize_regcache): Likewise.
2828 * remote.c (add_packet_config_cmd, init_remote_threadtests,
2829 _initialize_remote): Likewise.
2830 * ser-tcp.c (_initialize_ser_tcp): Likewise.
2831 * serial.c (_initialize_serial): Likewise.
2832 * skip.c (_initialize_step_skip): Likewise.
2833 * source.c (_initialize_source): Likewise.
2834 * stack.c (_initialize_stack): Likewise.
2835 * symfile.c (_initialize_symfile): Likewise.
2836 * symtab.c (_initialize_symtab): Likewise.
2837 * target-descriptions.c (_initialize_target_descriptions): Likewise.
2838 * top.c (init_main): Likewise.
2839 * tracefile-tfile.c (tfile_target_info): Likewise.
2840 * tracepoint.c (_initialize_tracepoint): Likewise.
2841 * tui/tui-win.c (_initialize_tui_win): Likewise.
2842 * utils.c (add_internal_problem_command): Likewise.
2843 * valprint.c (value_print_option_defs): Likewise.
2844
2845 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
2846
2847 PR build/24886
2848 * configure.ac: Drop enable-libmcheck support.
2849 * configure, config.in: Rebuild.
2850 * libmcheck.m4: Remove.
2851 * acinclude.m4: Don't include it.
2852 * Makefile.in: Don't distribute it.
2853 * top.c (print_gdb_configuration): Don't mention it.
2854
2855 2019-08-06 Tom Tromey <tom@tromey.com>
2856
2857 * utils.c (set_output_style): Sometimes pass stream to
2858 emit_style_escape.
2859 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
2860 * record-btrace.c (btrace_insn_history): Update.
2861 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
2862 method.
2863 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
2864 Update initializers.
2865 <m_uiout>: New field.
2866 <m_di>: Move lower.
2867 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2868 Remove "uiout" parameter.
2869 (dump_insns): Update.
2870 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
2871 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
2872
2873 2019-08-06 Christian Biesinger <cbiesinger@google.com>
2874
2875 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
2876 (error_in_psymtab_expansion): Likewise.
2877 (lookup_symbol_via_quick_fns): Likewise.
2878 (basic_lookup_transparent_type_quick): Likewise.
2879 (basic_lookup_transparent_type_1): Likewise.
2880
2881 2019-08-06 Tom Tromey <tromey@adacore.com>
2882
2883 * source.c (last_source_error): Now bool.
2884 (print_source_lines_base): Make "noprint" bool. Only open
2885 source file when last_source_visited changes.
2886
2887 2019-08-06 Tom Tromey <tromey@adacore.com>
2888
2889 * annotate.c (annotate_source_line): Use g_source_cache.
2890 * source-cache.c (source_cache::get_plain_source_lines): Change
2891 parameters. Populate m_offset_cache.
2892 (source_cache::ensure): New method.
2893 (source_cache::get_line_charpos): New method.
2894 (extract_lines): Move lower. Change parameters.
2895 (source_cache::get_source_lines): Move lower.
2896 * source-cache.h (class source_cache): Update comment.
2897 <get_line_charpos>: New method.
2898 <get_source_lines>: Update comment.
2899 <clear>: Clear m_offset_cache.
2900 <get_plain_source_lines>: Change parameters.
2901 <ensure>: New method
2902 <m_offset_cache>: New member.
2903 * source.c (forget_cached_source_info_for_objfile): Update.
2904 (info_source_command): Use g_source_cache.
2905 (find_source_lines, open_source_file_with_line_charpos): Remove.
2906 (print_source_lines_base, search_command_helper): Use g_source_cache.
2907 * source.h (open_source_file_with_line_charpos): Don't declare.
2908 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
2909 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
2910 Use g_source_cache.
2911
2912 2019-08-06 Tom Tromey <tromey@adacore.com>
2913
2914 * source-cache.c (source_cache::get_plain_source_lines):
2915 Remove "first_line" and "last_line" parameters.
2916 (source_cache::get_source_lines): Cache plain text.
2917 * source-cache.h (class source_cache)
2918 <get_plain_source_lines>: Update.
2919
2920 2019-08-06 Tom Tromey <tromey@adacore.com>
2921
2922 * source-cache.c (extract_lines): No longer a method.
2923 Changed type of parameter. Include final newline.
2924 (selftests::extract_lines_test): New function.
2925 (_initialize_source_cache): Likewise.
2926 * source-cache.h (class source_cache)
2927 <extract_lines>: Don't declare.
2928
2929 2019-08-06 Tom Tromey <tromey@adacore.com>
2930
2931 * breakpoint.c (init_breakpoint_sal): Update.
2932 (breakpoint): Update.
2933 * breakpoint.h (struct breakpoint) <filter>: Now a
2934 unique_xmalloc_ptr.
2935
2936 2019-08-05 Christian Biesinger <cbiesinger@google.com>
2937
2938 * NEWS: Mention dictionary access on blocks.
2939 * python/py-block.c (blpy_getitem): New function.
2940 (block_object_as_mapping): New struct.
2941 (block_object_type): Use new struct for tp_as_mapping field.
2942
2943 2019-08-05 Christian Biesinger <cbiesinger@google.com>
2944
2945 * objfiles.h (objfile): Add a comment describing partial symbols.
2946
2947 2019-08-05 Tom Tromey <tromey@adacore.com>
2948
2949 * compile/compile.c (_initialize_compile): Use _(), not N_().
2950 * thread.c (_initialize_thread): Use _(), not N_().
2951 * stack.c (_initialize_stack): Use _(), not N_().
2952 * printcmd.c (_initialize_printcmd): Use _(), not N_().
2953
2954 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2955
2956 * dwarf2read.c (struct dw2_symtab_iterator):
2957 <want_specific_block>: Remove.
2958 <block_index>: Change type to gdb::optional.
2959 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
2960 change type of BLOCK_INDEX parameter to gdb::optional.
2961 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
2962 (dw2_lookup_symbol): Don't pass argument for
2963 WANT_SPECIFIC_BLOCK.
2964 (dw2_expand_symtabs_for_function): Don't pass argument for
2965 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
2966 (class dw2_debug_names_iterator)
2967 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
2968 parameter, change BLOCK_INDEX type to gdb::optional.
2969 <m_want_specific_block>: Remove.
2970 <m_block_index>: Change type to gdb::optional.
2971 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
2972 gdb::optional. Re-write in function of gdb::optional.
2973 (dw2_debug_names_lookup_symbol): Don't pass argument for
2974 WANT_SPECIFIC_BLOCK.
2975 (dw2_debug_names_expand_symtabs_for_function): Don't pass
2976 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
2977 BLOCK_INDEX.
2978
2979 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2980
2981 * NEWS: Mention changes to "info sources" command.
2982
2983 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2984
2985 * symtab.c (filename_partial_match_opts): New struct type.
2986 (struct output_source_filename_data): New members
2987 regexp, c_regexp, partial_match.
2988 (output_source_filename): Use new members to decide to print file.
2989 (info_sources_option_defs): New variable.
2990 (make_info_sources_options_def_group, print_info_sources_header,
2991 info_sources_command_completer):
2992 New functions.
2993 (info_sources_command): Read new optional arguments.
2994 (_initialize_symtab): Update info sources help.
2995
2996 2019-08-02 Alexandre Oliva <oliva@adacore.com>
2997
2998 * ada-lang.c (exception_support_info_v0): Renamed from...
2999 (default_exception_support_info): ... this. Create new
3000 definition for v1.
3001 (ada_has_this_exception_support): Look up catch_handlers_sym.
3002 (ada_exception_support_info_sniffer): Try v0 after default.
3003
3004 2019-08-01 Tom Tromey <tromey@adacore.com>
3005
3006 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
3007 gdbarch.h.
3008
3009 2019-08-01 Christian Biesinger <cbiesinger@google.com>
3010
3011 * s12z-tdep.c: Fix include path for s12z-opc.h.
3012
3013 2019-08-01 Alan Hayward <alan.hayward@arm.com>
3014
3015 * NEWS: Require GNU make 3.82.
3016
3017 2019-07-16 Tom Tromey <tom@tromey.com>
3018
3019 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
3020 declare.
3021
3022 2019-07-30 Tom Tromey <tromey@adacore.com>
3023
3024 * block.c (contained_in): Remove BLOCK_FUNCTION check.
3025
3026 2019-07-30 Kevin Buettner <kevinb@redhat.com>
3027
3028 * printcmd.c (print_address_symbolic): Print negative offsets.
3029 (build_address_symbolic): Force signed arithmetic when computing
3030 offset.
3031
3032 2019-07-30 Christian Biesinger <cbiesinger@google.com>
3033
3034 PR/24474: Add a function to lookup static variables.
3035 * NEWS: Mention this new function.
3036 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
3037 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
3038 * python/python.c (python_GdbMethods): Add new function.
3039
3040 2019-07-29 Christian Biesinger <cbiesinger@google.com>
3041
3042 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
3043 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
3044 (objfpy_lookup_static_symbol): New function.
3045 (objfile_object_methods): Add new functions.
3046
3047 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3048
3049 * NEWS: Mention 'set|show print frame-info'. Mention new
3050 'presence' value for 'frame-arguments'. Mention new '-frame-info'
3051 backtrace argument. Mention that python frame filtering code
3052 is now consistent with what 'backtrace' command prints.
3053
3054 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3055
3056 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
3057 comments.
3058 (print_frame_info_auto, print_frame_info_source_line,
3059 print_frame_info_location, print_frame_info_source_and_location,
3060 print_frame_info_location_and_address, print_frame_info_short_location):
3061 New declarations.
3062 (struct frame_print_options): New member print_frame_info.
3063 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
3064 * stack.h (get_user_print_what_frame_info): New declaration.
3065 (frame_show_address): New declaration.
3066 * stack.c (print_frame_arguments_choices): New value 'presence'.
3067 (print_frame_info_auto, print_frame_info_source_line,
3068 print_frame_info_location, print_frame_info_source_and_location,
3069 print_frame_info_location_and_address, print_frame_info_short_location,
3070 print_frame_info_choices, print_frame_info_print_what): New definitions.
3071 (print_frame_args): Only print dots for args if print frame-arguments
3072 is 'presence'.
3073 (frame_print_option_defs): New element for "frame-info".
3074 (get_user_print_what_frame_info): New function.
3075 (frame_show_address): Make non static. Move comment to stack.h.
3076 (print_frame_info_to_print_what): New function.
3077 (print_frame_info): Update comment. Use fp_opts.print_frame_info
3078 to decide what to print.
3079 (backtrace_command_1): Handle the new print_frame_arguments_presence
3080 value.
3081 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
3082 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
3083 (py_print_frame): In non-mi mode, use LOCATION as default for
3084 print_what, similarly to frame information printed directly by
3085 backtrace command. Handle frame-info user option in non MI mode.
3086
3087 2019-07-27 Kevin Buettner <kevinb@redhat.com>
3088
3089 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
3090 Add case for debugging 32-bit target on 64-bit host. Revise
3091 comment.
3092
3093 2019-07-27 Kevin Buettner <kevinb@redhat.com>
3094
3095 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
3096 instead of find_function_entry_range_from_pc.
3097
3098 2019-07-27 Kevin Buettner <kevinb@redhat.com>
3099
3100 * stack.c (find_frame_funname): Remove code which preferred
3101 minsym over symtab sym in "certain pathological cases".
3102
3103 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
3104 parameter. Change type of "do_demangle" to bool.
3105 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3106 Pass suitable "prefer_sym_over_minsym" flag to
3107 build_address_symbolic(). Don't output "+" for negative offsets.
3108 * printcmd.c (print_address_symbolic): Update invocation of
3109 build_address_symbolic to include a "prefer_sym_over_minsym"
3110 flag.
3111 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
3112 Restrict cases in which use of minimal symbol is preferred to that
3113 of a found symbol. Update comments.
3114
3115 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
3116 for entry pc when entry pc is out of range for that FDE.
3117
3118 2019-07-26 Brian Callahan <bcallah@openbsd.org>
3119
3120 PR gdb/24839:
3121 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
3122 type.
3123
3124 2019-07-25 Christian Biesinger <cbiesinger@google.com>
3125
3126 * python/py-objfile.c (add_separate_debug_file): Fix comment about
3127 this function's Python signature.
3128
3129
3130 2019-07-24 Christian Biesinger <cbiesinger@google.com>
3131
3132 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
3133 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3134 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3135 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
3136 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
3137
3138
3139 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
3140
3141 * h8300-tdep.c (h8300_register_name_common): New.
3142 h8300_register_name): Use h8300_register_name_common.
3143 (h8300s_register_name): Likewise.
3144 (h8300sx_register_name): Likewise.
3145 (h8300h_register_nam): New.
3146 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
3147
3148
3149 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3150
3151 * arm-tdep.c (arm_skip_cmse_entry): New function.
3152 (arm_is_sgstubs_section): New function.
3153 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
3154
3155 2019-07-22 Tom Tromey <tom@tromey.com>
3156
3157 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
3158 Don't self-assign.
3159
3160 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3161
3162 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
3163 type_print.
3164
3165 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3166
3167 * symtab.c (search_symbols): Adjust msymbol matching type arrays
3168 so that GDB doesn't match any msymbols when searching in the
3169 TYPES_DOMAIN.
3170 (print_symbol_info): Print using typedef_print or type_print based
3171 on the type of the symbol. Add updated FIXME comment moved from...
3172 (_initialize_symtab): ... move and update FIXME comment to above.
3173
3174 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3175
3176 * NEWS: Mention adding -q option to "info types".
3177 * symtab.c (struct info_types_options): New struct.
3178 (info_types_options_defs): New variable.
3179 (make_info_types_options_def_group): New function.
3180 (info_types_command): Use gdb::option framework to parse options.
3181 (info_types_command_completer): New function.
3182 (_initialize_symtab): Extend the help text on "info types" and
3183 register command completer.
3184
3185 2019-07-21 Christian Biesinger <cbiesinger@google.com>
3186
3187 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
3188 (lookup_symbol_in_objfile): Change int to block_enum and add a
3189 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
3190
3191 2019-07-20 Christian Biesinger <cbiesinger@google.com>
3192
3193 * MAINTAINERS (Write After Approval): Add self.
3194
3195 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
3196
3197 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
3198 instruction to the dummy code region.
3199
3200 2019-07-19 Tom Tromey <tromey@adacore.com>
3201
3202 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
3203 (ARGSUSED, PARAMS, __func__): Remove rules.
3204
3205 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3206
3207 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
3208 * features/arm/arm-with-iwmmxt.c: Remove.
3209 * features/arm/arm-with-iwmmxt.xml: Remove.
3210 * features/arm/arm-with-m-fpa-layout.c: Remove.
3211 * features/arm/arm-with-m-fpa-layout.xml: Remove.
3212 * features/arm/arm-with-m-vfp-d16.c: Remove.
3213 * features/arm/arm-with-m-vfp-d16.xml: Remove.
3214 * features/arm/arm-with-m.c: Remove.
3215 * features/arm/arm-with-m.xml: Remove.
3216 * features/arm/arm-with-neon.c: Remove.
3217 * features/arm/arm-with-neon.xml: Remove.
3218 * features/arm/arm-with-vfpv2.c: Remove.
3219 * features/arm/arm-with-vfpv2.xml: Remove.
3220 * features/arm/arm-with-vfpv3.c: Remove.
3221 * features/arm/arm-with-vfpv3.xml: Remove.
3222
3223 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3224
3225 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
3226
3227 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3228
3229 * arch/aarch32.c (aarch32_create_target_description): Create
3230 target descriptions using features.
3231 * arch/arm.c (arm_create_target_description)
3232 (arm_create_mprofile_target_description): Likewise.
3233 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
3234
3235 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3236
3237 * Makefile.in: Add new files.
3238 * aarch32-tdep.c: New file.
3239 * aarch32-tdep.h: New file.
3240 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3241 Call aarch32_read_description.
3242 * arch/aarch32.c: New file.
3243 * arch/aarch32.h: New file.
3244 * arch/arm.c (arm_create_target_description)
3245 (arm_create_mprofile_target_description): New function.
3246 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
3247 (arm_create_target_description)
3248 (arm_create_mprofile_target_description): New declaration.
3249 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
3250 read_description functions.
3251 * arm-linux-nat.c (arm_linux_nat_target::read_description):
3252 Likewise.
3253 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3254 * arm-tdep.c (tdesc_arm_list): New variable.
3255 (arm_register_g_packet_guesses): Call create description functions.
3256 (arm_read_description) (arm_read_mprofile_description): New
3257 function.
3258 * arm-tdep.h (arm_read_description)
3259 (arm_read_mprofile_description): Add declaration.
3260 * configure.tgt: Add new files.
3261
3262 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
3263
3264 * top.c (new_ui_command): Open specified terminal just once.
3265
3266 2019-07-18 Tom Tromey <tromey@adacore.com>
3267
3268 * symtab.c (main_name): Constify return type.
3269 * symfile.c (set_initial_language): Update.
3270 * symtab.h (main_name): Constify return type.
3271
3272 2019-07-17 Tom Tromey <tom@tromey.com>
3273
3274 * tui/tui-winsource.c (tui_update_source_window)
3275 (tui_update_source_window_as_is)
3276 (tui_update_source_windows_with_line): Remove return.
3277 * tui/tui-disasm.c (tui_show_disassem)
3278 (tui_show_disassem_and_update_source): Remove return.
3279 * tui/tui.c (tui_reset): Remove return.
3280 * tui/tui-wingeneral.c
3281 (tui_check_and_display_highlight_if_needed): Remove return.
3282
3283 2019-07-17 Tom Tromey <tom@tromey.com>
3284
3285 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
3286
3287 2019-07-17 Tom Tromey <tom@tromey.com>
3288
3289 * tui/tui-winsource.h (struct tui_exec_info_window)
3290 (struct tui_source_window_base): Move from tui-data.h.
3291 * tui/tui-winsource.c: Move many method definitions from
3292 elsewhere. Remove "structuring" comments.
3293 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
3294 (tui_source_window_base::refresh_window): Move to
3295 tui-winsource.c.
3296 * tui/tui-win.c (tui_source_window_base::refresh_all)
3297 (tui_source_window_base::update_tab_width)
3298 (tui_source_window_base::set_new_height)
3299 (tui_source_window_base::do_make_visible_with_new_height): Move to
3300 tui-winsource.c.
3301 * tui/tui-source.h: Update.
3302 * tui/tui-source.c (tui_source_window_base::reset): Move to
3303 tui-winsource.c.
3304 * tui/tui-disasm.h: Update.
3305 * tui/tui-data.h (struct tui_exec_info_window): Move to
3306 tui-winsource.h.
3307 (struct tui_source_window_base): Likewise.
3308 * tui/tui-data.c (tui_source_window_base::clear_detail)
3309 (tui_source_window_base, ~tui_source_window_base): Move to
3310 tui-winsource.c.
3311
3312 2019-07-17 Tom Tromey <tom@tromey.com>
3313
3314 * tui/tui-win.c (tui_resize_all)
3315 (tui_source_window_base::update_tab_width)
3316 (tui_adjust_win_heights): Update.
3317 (tui_win_info::make_invisible_and_set_new_height): Rename from
3318 make_invisible_and_set_new_height.
3319 * tui/tui-data.h (struct tui_win_info)
3320 <make_invisible_and_set_new_height>: New method.
3321
3322 2019-07-17 Tom Tromey <tom@tromey.com>
3323
3324 * tui/tui.c: Update.
3325 * tui/tui-source.h (struct tui_source_window): Move from
3326 tui-data.h.
3327 * tui/tui-layout.c: Update.
3328 * tui/tui-disasm.c: Update.
3329 * tui/tui-data.h (struct tui_source_window): Move to
3330 tui-source.h.
3331
3332 2019-07-17 Tom Tromey <tom@tromey.com>
3333
3334 * tui/tui-disasm.h (struct tui_disasm_window): Move from
3335 tui-data.h.
3336 * tui/tui-data.h (struct tui_disasm_window): Move to
3337 tui-disasm.h.
3338
3339 2019-07-17 Tom Tromey <tom@tromey.com>
3340
3341 * tui/tui-regs.h (struct tui_data_item_window): Move from
3342 tui-data.h.
3343 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
3344 * tui/tui-data.h (struct tui_data_item_window): Move to
3345 tui-regs.h.
3346 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
3347
3348 2019-07-17 Tom Tromey <tom@tromey.com>
3349
3350 * tui/tui.c: Update.
3351 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
3352 (tui_cmd_window::max_height): Move to tui-command.c.
3353 * tui/tui-layout.c: Update.
3354 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
3355 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
3356 tui-command.c.
3357 * tui/tui-command.h (struct tui_cmd_window): Move from
3358 tui-data.h.
3359 * tui/tui-command.c: Remove "structuring" comments.
3360 (tui_cmd_window::clear_detail)
3361 (tui_cmd_window::do_make_visible_with_new_height)
3362 (tui_cmd_window::max_height): Move from elsewhere.
3363
3364 2019-07-17 Tom Tromey <tom@tromey.com>
3365
3366 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
3367 Now static.
3368 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
3369 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
3370
3371 2019-07-17 Tom Tromey <tom@tromey.com>
3372
3373 * tui/tui.c: Update.
3374 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
3375 tui-regs.c.
3376 * tui/tui-windata.h: Remove file.
3377 * tui/tui-windata.c: Remove file.
3378 * tui/tui-win.c (tui_data_window::set_new_height)
3379 (tui_data_window::do_make_visible_with_new_height): Move to
3380 tui-regs.c.
3381 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
3382 * tui/tui-regs.c: Remove "structuring" comments.
3383 (tui_data_window::first_data_item_displayed)
3384 (tui_data_window::delete_data_content_windows)
3385 (tui_data_window::erase_data_content)
3386 (tui_data_window::display_all_data)
3387 (tui_data_window::refresh_all)
3388 (tui_data_window::do_scroll_vertical)
3389 (tui_data_window::clear_detail, tui_data_window::set_new_height)
3390 (tui_data_window::do_make_visible_with_new_height)
3391 (tui_data_window::refresh_window): Move from elsewhere.
3392 (_initialize_tui_regs): Move to end of file.
3393 * tui/tui-layout.c: Update.
3394 * tui/tui-hooks.c: Update.
3395 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
3396 * tui/tui-data.c (tui_data_window::clear_detail): Move to
3397 tui-regs.c.
3398 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
3399
3400 2019-07-17 Tom Tromey <tom@tromey.com>
3401
3402 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
3403 seen.
3404
3405 2019-07-17 Tom Tromey <tom@tromey.com>
3406
3407 * tui/tui-win.c (tui_source_window_base::set_new_height)
3408 (tui_source_window_base::do_make_visible_with_new_height): Use
3409 m_has_locator field directly.
3410 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
3411 method.
3412 (struct tui_source_window_base) <has_locator>: Likewise.
3413
3414 2019-07-17 Tom Tromey <tom@tromey.com>
3415
3416 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
3417 Don't declare.
3418 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
3419 Remove.
3420 * tui/tui-win.c (tui_source_window_base::set_new_height)
3421 (tui_source_window_base::set_new_height)
3422 (make_invisible_and_set_new_height)
3423 (tui_source_window_base::do_make_visible_with_new_height)
3424 (tui_source_window_base::do_make_visible_with_new_height):
3425 Update.
3426 * tui/tui-layout.c (show_source_disasm_command, show_data)
3427 (show_source_or_disasm_and_command): Update.
3428 * tui/tui-layout.c (show_layout): Update.
3429
3430 2019-07-17 Tom Tromey <tom@tromey.com>
3431
3432 * tui/tui-layout.c (make_data_window): Remove.
3433 (show_data): Unify creation and re-initialization cases.
3434
3435 2019-07-17 Tom Tromey <tom@tromey.com>
3436
3437 * tui/tui-layout.c (make_source_window, make_disasm_window):
3438 Remove.
3439 (show_data): Unify creation and re-initialization cases.
3440
3441 2019-07-17 Tom Tromey <tom@tromey.com>
3442
3443 * tui/tui-layout.c (make_command_window): Remove.
3444 (show_source_disasm_command, show_source_or_disasm_and_command):
3445 Unify creation and re-initialization cases.
3446
3447 2019-07-17 Tom Tromey <tom@tromey.com>
3448
3449 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
3450 creation and re-initialization cases.
3451
3452 2019-07-17 Tom Tromey <tom@tromey.com>
3453
3454 * tui/tui-regs.c (tui_get_register): Return void.
3455
3456 2019-07-17 Tom Tromey <tom@tromey.com>
3457
3458 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
3459 Simplify.
3460
3461 2019-07-17 Tom Tromey <tom@tromey.com>
3462
3463 * tui/tui-layout.c (show_source_disasm_command): Simplify window
3464 resetting.
3465
3466 2019-07-17 Tom Tromey <tom@tromey.com>
3467
3468 * tui/tui.h (tui_set_layout_by_name): Don't declare.
3469 * tui/tui-regs.c (tui_reg_layout): New function.
3470 (tui_show_registers, tui_reg_command): Use it.
3471 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
3472 (tui_layout_command): Rename from tui_set_layout_by_name. Change
3473 parameters.
3474 (tui_layout_command): Remove.
3475
3476 2019-07-17 Tom Tromey <tom@tromey.com>
3477
3478 * tui/tui-layout.h (tui/tui-layout): Return void.
3479 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
3480
3481 2019-07-17 Tom Tromey <tom@tromey.com>
3482
3483 * tui/tui-layout.c (show_source_disasm_command, show_data):
3484 Update.
3485 (reset_locator): Remove.
3486 (show_source_or_disasm_and_command): Update.
3487
3488 2019-07-17 Tom Tromey <tom@tromey.com>
3489
3490 * tui/tui-source.c (tui_source_window_base::reset): Remove
3491 win_type parameter.
3492 * tui/tui-layout.c (make_command_window, make_source_window)
3493 (make_disasm_window, make_data_window)
3494 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
3495 (reset_locator, show_source_or_disasm_and_command): Update.
3496 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
3497 win_type parameter.
3498 (struct tui_source_window_base) <reset>: Likewise.
3499
3500 2019-07-17 Tom Tromey <tom@tromey.com>
3501
3502 * tui/tui-layout.c (show_source_disasm_command): Use
3503 reset_locator.
3504 (reset_locator): New function.
3505 (init_and_make_win): Remove.
3506 (show_source_or_disasm_and_command): Use reset_locator.
3507
3508 2019-07-17 Tom Tromey <tom@tromey.com>
3509
3510 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
3511 condition.
3512 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
3513 Remove condition.
3514 * tui/tui-source.c (tui_source_window_base::reset): New method.
3515 * tui/tui-layout.c (make_command_window): Don't call
3516 init_and_make_win.
3517 (make_source_window, make_disasm_window): Don't call
3518 make_source_or_disasm_window.
3519 (make_data_window): Don't call init_and_make_win. Change calling
3520 convention.
3521 (show_source_disasm_command, show_data): Simplify.
3522 (make_source_or_disasm_window): Remove.
3523 (show_source_or_disasm_and_command): Simplify.
3524 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
3525 (struct tui_source_window_base) <reset>: Likewise.
3526 <execution_info>: Remove initializer.
3527 * tui/tui-data.c (tui_source_window_base): Initialize
3528 execution_info.
3529
3530 2019-07-17 Tom Tromey <tom@tromey.com>
3531
3532 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
3533 variable.
3534
3535 2019-07-17 Tom Tromey <tom@tromey.com>
3536
3537 * tui/tui.c (tui_rl_other_window): Update.
3538 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
3539 superclass method first. Always iterate over regs_content.
3540 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
3541 method.
3542 * tui/tui-win.c (tui_set_focus_command): Update.
3543
3544 2019-07-17 Tom Tromey <tom@tromey.com>
3545
3546 * tui/tui-win.c (tui_set_focus_command): Rename from
3547 tui_set_focus. Call tui_enable.
3548 (tui_set_focus_command): Remove.
3549
3550 2019-07-17 Tom Tromey <tom@tromey.com>
3551
3552 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
3553 refresh_window.
3554 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
3555 touchwin.
3556 (tui_data_window::refresh_window): Call refresh_window on data
3557 items. Always call superclass refresh_window.
3558 (tui_win_info::refresh): Remove.
3559 (tui_source_window_base::refresh_window): Update.
3560 (tui_refresh_all): Update.
3561 * tui/tui-layout.c (show_source_disasm_command): Remove call to
3562 refresh_window.
3563 (show_source_or_disasm_and_command): Likewise.
3564 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
3565 (struct tui_source_window_base) <refresh>: Likewise.
3566
3567 2019-07-17 Tom Tromey <tom@tromey.com>
3568
3569 * tui/tui-winsource.c (tui_clear_source_content)
3570 (tui_show_source_content): Update.
3571 * tui/tui-source.c (tui_source_window::showing_source_p): Check
3572 whether content is empty.
3573 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
3574 Remove.
3575
3576 2019-07-17 Tom Tromey <tom@tromey.com>
3577
3578 * tui/tui-winsource.c (tui_erase_source_content): Clear the
3579 window's contents.
3580 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
3581 * tui/tui-source.c (tui_set_source_content_nil): Remove.
3582
3583 2019-07-17 Tom Tromey <tom@tromey.com>
3584
3585 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
3586 (struct tui_data_item_window): Update.
3587
3588 2019-07-17 Tom Tromey <tom@tromey.com>
3589
3590 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
3591 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
3592 defines.
3593
3594 2019-07-17 Tom Tromey <tom@tromey.com>
3595
3596 * tui/tui-winsource.h (tui_erase_source_content)
3597 (tui_clear_source_content): Remove "display_prompt" parameter.
3598 * tui/tui-winsource.c (tui_update_source_window_as_is)
3599 (tui_update_source_windows_with_addr): Update.
3600 (tui_clear_source_content): Remove "display_prompt" parameter.
3601 (tui_erase_source_content): Likewise. Simplify.
3602 (tui_show_source_content): Update.
3603 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3604 * tui/tui-stack.c (tui_show_frame_info): Update.
3605 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
3606 Remove defines.
3607
3608 2019-07-17 Tom Tromey <tom@tromey.com>
3609
3610 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3611 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
3612 parameter.
3613 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
3614 parameter.
3615
3616 2019-07-17 Tom Tromey <tom@tromey.com>
3617
3618 * tui/tui-winsource.c (tui_clear_source_content)
3619 (tui_show_source_content, tui_show_exec_info_content)
3620 (tui_clear_exec_info_content): Update.
3621 * tui/tui-stack.c (tui_show_locator_content): Update.
3622 (tui_show_frame_info): Update.
3623 * tui/tui-source.h (tui_source_window): Don't declare.
3624 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
3625 from tui_source_is_displayed.
3626 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
3627 Remove field.
3628 (struct tui_source_window_base) <content_in_use>: New field. Now
3629 bool.
3630 (struct tui_source_window) <showing_source_p>: New method.
3631 (TUI_SRC_WIN): Change cast.
3632 * tui/tui-data.c (tui_initialize_static_data): Update.
3633
3634 2019-07-17 Tom Tromey <tom@tromey.com>
3635
3636 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
3637 location_matches_p.
3638 * tui/tui-source.c (tui_source_window::location_matches_p): New
3639 method.
3640 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
3641 method.
3642 * tui/tui-data.h (struct tui_source_window_base)
3643 <location_matches_p>: New method.
3644 (struct tui_source_window, struct tui_disasm_window)
3645 <location_matches_p>: Likewise.
3646
3647 2019-07-17 Tom Tromey <tom@tromey.com>
3648
3649 * tui/tui-win.c (tui_set_win_height_command): Rename from
3650 tui_set_win_height.
3651 (tui_set_win_height_command): Remove.
3652
3653 2019-07-17 Tom Tromey <tom@tromey.com>
3654
3655 * tui/tui-source.c (tui_source_window): New constructor. Add
3656 observer.
3657 (~tui_source_window): New destructor.
3658 (tui_source_window::style_changed): New method.
3659 * tui/tui-hooks.c (tui_redisplay_source): Remove.
3660 (tui_attach_detach_observers): Update.
3661 * tui/tui-data.h (struct tui_source_window): Make constructor not
3662 inline. Add destructor.
3663 (struct tui_source_window) <style_changed>: New method.
3664 <m_observable>: New member.
3665
3666 2019-07-17 Tom Tromey <tom@tromey.com>
3667
3668 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
3669 * tui/tui-win.c (tui_resize_all): Fix typo.
3670
3671 2019-07-17 Tom Tromey <tom@tromey.com>
3672
3673 * tui/tui-wingeneral.h (tui_refresh_all): Update.
3674 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
3675 (tui_refresh_all): Remove "list" parameter. Use foreach.
3676 * tui/tui-win.c (window_name_completer): Use foreach.
3677 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
3678 (update_tab_width): Likewise.
3679 * tui/tui-layout.c (show_layout): Update.
3680 * tui/tui-data.h (class tui_window_iterator): New.
3681 (struct all_tui_windows): New.
3682 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
3683
3684 2019-07-17 Tom Tromey <tom@tromey.com>
3685
3686 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
3687 parameter. Don't reference globals.
3688 (tui_reg_command): Update.
3689
3690 2019-07-17 Tom Tromey <tom@tromey.com>
3691
3692 * tui/tui-regs.c (tui_show_registers): Simplify.
3693
3694 2019-07-17 Tom Tromey <tom@tromey.com>
3695
3696 * tui/tui-regs.c (tui_show_registers): Update.
3697 (tui_show_register_group): Add win_info parameter.
3698
3699 2019-07-17 Tom Tromey <tom@tromey.com>
3700
3701 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
3702 Rename from tui_display_reg_element_at_line.
3703 (tui_data_window::display_registers_from_line): Update.
3704 * tui/tui-data.h (struct tui_data_window)
3705 <display_reg_element_at_line>: New method.
3706
3707 2019-07-17 Tom Tromey <tom@tromey.com>
3708
3709 * tui/tui-regs.h (tui_display_registers_from)
3710 (tui_display_registers_from_line): Don't declare.
3711 * tui/tui-windata.c (tui_data_window::display_all_data)
3712 (tui_data_window::refresh_all)
3713 (tui_data_window::do_scroll_vertical): Update.
3714 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
3715 from tui_display_registers_from.
3716 (tui_display_reg_element_at_line): Update.
3717 (tui_data_window::display_registers_from_line): Rename from
3718 tui_display_registers_from_line.
3719 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
3720 display_registers_from_line>: New methods.
3721
3722 2019-07-17 Tom Tromey <tom@tromey.com>
3723
3724 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
3725 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
3726 from tui_erase_data_content.
3727 (tui_data_window::display_all_data)
3728 (tui_data_window::refresh_all)
3729 (tui_data_window::do_scroll_vertical): Update.
3730 * tui/tui-regs.c (tui_show_registers): Update.
3731 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
3732 New method.
3733
3734 2019-07-17 Tom Tromey <tom@tromey.com>
3735
3736 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
3737 declare.
3738 * tui/tui-windata.c
3739 (tui_data_window::delete_data_content_windows): Rename from
3740 tui_delete_data_content_windows.
3741 (tui_data_window::display_all_data)
3742 (tui_data_window::do_scroll_vertical): Update.
3743 * tui/tui-data.h (struct tui_data_window)
3744 <delete_data_content_windows>: New method.
3745
3746 2019-07-17 Tom Tromey <tom@tromey.com>
3747
3748 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
3749 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
3750
3751 2019-07-17 Tom Tromey <tom@tromey.com>
3752
3753 * tui/tui-windata.h (tui_display_all_data): Don't declare.
3754 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
3755 from tui_display_all_data.
3756 * tui/tui-win.c
3757 (tui_data_window::do_make_visible_with_new_height): Update.
3758 * tui/tui-regs.c (tui_show_registers): Update.
3759 * tui/tui-layout.c (tui_set_layout): Update.
3760 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
3761 method.
3762
3763 2019-07-17 Tom Tromey <tom@tromey.com>
3764
3765 * tui/tui-windata.h (tui_display_data_from): Don't declare.
3766 * tui/tui-windata.c (tui_display_data_from): Remove.
3767 (tui_data_window::refresh_all): Update.
3768
3769 2019-07-17 Tom Tromey <tom@tromey.com>
3770
3771 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
3772 * tui/tui-windata.c (tui_display_data_from_line): Remove.
3773 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
3774 tui_display_registers_from_line.
3775 * tui/tui-regs.h (tui_display_registers_from_line): Update.
3776 * tui/tui-regs.c (tui_display_registers_from_line): Remove
3777 "force_display" parameter.
3778
3779 2019-07-17 Tom Tromey <tom@tromey.com>
3780
3781 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
3782 declare.
3783 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
3784 Rename from tui_first_reg_element_no_inline.
3785 (tui_display_reg_element_at_line)
3786 (tui_display_registers_from_line): Update.
3787 * tui/tui-data.h (struct tui_data_window)
3788 <first_reg_element_no_inline>: New method.
3789
3790 2019-07-17 Tom Tromey <tom@tromey.com>
3791
3792 * tui/tui-windata.c (tui_display_data_from)
3793 (tui_data_window::do_scroll_vertical): Update.
3794 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
3795 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
3796 Rename from tui_line_from_reg_element_no.
3797 (tui_display_registers_from_line): Update.
3798 * tui/tui-data.h (struct tui_data_window)
3799 <line_from_reg_element_no>: New method.
3800
3801 2019-07-17 Tom Tromey <tom@tromey.com>
3802
3803 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
3804 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
3805 tui_last_regs_line_no.
3806 (tui_display_reg_element_at_line)
3807 (tui_display_registers_from_line): Update.
3808 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
3809 method.
3810
3811 2019-07-17 Tom Tromey <tom@tromey.com>
3812
3813 PR tui/24722:
3814 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
3815 (tui_update_breakpoint_info): Add "being_deleted" parameter.
3816 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3817 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
3818 (tui_update_breakpoint_info): Likewise.
3819 * tui/tui-hooks.c (tui_event_create_breakpoint)
3820 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
3821 Update.
3822
3823 2019-07-17 Tom Tromey <tom@tromey.com>
3824
3825 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
3826
3827 2019-07-17 Tom Tromey <tom@tromey.com>
3828
3829 * tui/tui-winsource.c (tui_update_source_window_as_is)
3830 (tui_update_source_windows_with_addr): Update.
3831 * tui/tui-source.h (tui_set_source_content)
3832 (tui_show_symtab_source): Add "win_info" parameter.
3833 * tui/tui-source.c (tui_set_source_content): Add "win_info"
3834 parameter.
3835 (tui_show_symtab_source): Likewise.
3836
3837 2019-07-17 Tom Tromey <tom@tromey.com>
3838
3839 * tui/tui-wingeneral.c
3840 (tui_check_and_display_highlight_if_needed): Check can_highlight.
3841
3842 2019-07-17 Tom Tromey <tom@tromey.com>
3843
3844 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
3845 (struct tui_cmd_window) <can_scroll>: New method.
3846 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
3847 method.
3848
3849 2019-07-17 Tom Tromey <tromey@adacore.com>
3850
3851 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
3852 do_field_signed>: Rename. Change type of "value".
3853 * ui-out.c (ui_out::field_signed): Rename from field_int.
3854 Change type of "value".
3855 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
3856 type of "value".
3857 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
3858 do_field_int. Change type of "value".
3859 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
3860 do_field_int. Change type of "value".
3861 * tracepoint.c (trace_status_mi, tfind_1)
3862 (print_one_static_tracepoint_marker): Update.
3863 * thread.c (print_thread_info_1, print_selected_thread_frame):
3864 Update.
3865 * stack.c (print_frame, print_frame_info): Update.
3866 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
3867 Update.
3868 * source.c (print_source_lines_base): Update.
3869 * skip.c (info_skip_command): Update.
3870 * record-btrace.c (btrace_ui_out_decode_error)
3871 (btrace_call_history_src_line): Update.
3872 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
3873 Update.
3874 * progspace.c (print_program_space): Update.
3875 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
3876 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
3877 do_field_int. Change type of "value".
3878 * mi/mi-out.c (mi_ui_out::do_table_begin)
3879 (mi_ui_out::do_table_header): Update.
3880 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
3881 type of "value".
3882 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
3883 (mi_cmd_data_list_changed_registers, output_register)
3884 (mi_cmd_data_read_memory, mi_load_progress)
3885 (mi_cmd_trace_frame_collected): Update.
3886 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
3887 Update.
3888 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3889 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
3890 (mi_cmd_var_list_children, varobj_update_one): Update.
3891 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
3892 (mi_cmd_stack_list_args, list_arg_or_local): Update.
3893 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
3894 * inferior.c (print_inferior): Update.
3895 * gdb_bfd.c (print_one_bfd): Update.
3896 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3897 Update.
3898 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
3899 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
3900 do_field_int. Change type of "value".
3901 * cli-out.c (cli_ui_out::do_field_signed): Rename from
3902 do_field_int. Change type of "value".
3903 * breakpoint.c (watchpoint_check, print_breakpoint_location)
3904 (print_one_breakpoint_location, print_it_catch_fork)
3905 (print_one_catch_fork, print_it_catch_vfork)
3906 (print_one_catch_vfork, print_it_catch_solib)
3907 (print_it_catch_exec, print_it_ranged_breakpoint)
3908 (print_mention_watchpoint, print_mention_masked_watchpoint)
3909 (bkpt_print_it, update_static_tracepoint): Update.
3910 * break-catch-throw.c (print_it_exception_catchpoint): Update.
3911 * break-catch-syscall.c (print_it_catch_syscall): Update.
3912 * ada-tasks.c (print_ada_task_info): Update.
3913 * ada-lang.c (print_it_exception, print_mention_exception):
3914 Update.
3915
3916 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3917
3918 PR breakpoints/24541
3919 * gdbarch.c: Regenerate.
3920 * gdbarch.h: Regenerate.
3921 * gdbarch.sh: Adjust return type and parameter types for
3922 'stap_adjust_register'.
3923 (i386_stap_adjust_register): Adjust signature and return new
3924 register name.
3925 * stap-probe.c (stap_parse_register_operand): Adjust use of
3926 'gdbarch_stap_adjust_register'.
3927
3928 2019-07-17 Tom Tromey <tromey@adacore.com>
3929
3930 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
3931 declare VEC.
3932 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
3933 std::vector.
3934 (struct s390_process_info): Add initializers.
3935 (s390_add_process): Use new.
3936 (s390_linux_nat_target::low_forget_process): Use delete.
3937 (s390_linux_nat_target::low_new_fork)
3938 (s390_linux_nat_target::stopped_by_watchpoint)
3939 (s390_linux_nat_target::low_prepare_to_resume)
3940 (s390_linux_nat_target::insert_watchpoint)
3941 (s390_linux_nat_target::insert_hw_breakpoint)
3942 (s390_linux_nat_target::remove_watchpoint)
3943 (s390_linux_nat_target::remove_hw_breakpoint): Update.
3944
3945 2019-07-16 John Baldwin <jhb@FreeBSD.org>
3946
3947 * aarch64-fbsd-nat.c: Include regcache.h.
3948 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
3949 argument.
3950 (aarch64_fbsd_nat_target::fetch_registers)
3951 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
3952 variable.
3953 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
3954
3955 2019-07-16 John Baldwin <jhb@FreeBSD.org>
3956
3957 * fbsd-nat.c: Include gdbarch.h.
3958
3959 2019-07-15 Tom Tromey <tromey@adacore.com>
3960
3961 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
3962
3963 2019-07-15 Tom Tromey <tromey@adacore.com>
3964
3965 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
3966 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
3967 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
3968 * cli-out.c (cli_ui_out::do_field_int): New method.
3969 * ui-out.c (ui_out::field_unsigned): New method.
3970 * symfile.c (generic_load): Use field_unsigned.
3971 (print_transfer_performance): Likewise.
3972 * record-btrace.c (ui_out_field_uint): Remove.
3973 (btrace_call_history_insn_range, btrace_call_history): Use
3974 field_unsigned.
3975 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3976 field_unsigned.
3977 * ui-out.h (class ui_out) <field_unsigned>: New method.
3978 <do_field_unsigned>: Likewise.
3979
3980 2019-07-15 Tom Tromey <tromey@adacore.com>
3981
3982 * mi/mi-main.c (list_available_thread_groups): Use field_string.
3983 * mi/mi-interp.c (mi_memory_changed): Use field_string.
3984 * target.c (flash_erase_command): Use field_string.
3985 * infrun.c (print_signal_received_reason): Use field_string.
3986 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
3987 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
3988 field_string.
3989 * ada-tasks.c (print_ada_task_info): Use field_string.
3990
3991 2019-07-15 Tom Tromey <tromey@adacore.com>
3992
3993 * target.c (flash_erase_command): Use field_core_addr.
3994 * symfile.c (generic_load): Use field_core_addr.
3995 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3996 Use field_core_addr.
3997 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
3998 field_core_addr.
3999
4000 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4001
4002 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
4003 value if its desired type is smaller than a CORE_ADDR and signed.
4004
4005 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4006
4007 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
4008 of changes to field names, and use new is_reference field to
4009 decide if a property is a reference or not.
4010 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
4011 field.
4012 (struct dwarf2_property_baton): Update header comment, rename
4013 'referenced_type' to 'property_type' and update comments.
4014 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
4015 default property type, store in property baton, update to take
4016 accound of renamed field.
4017 (read_func_scope): Update call to attr_to_dynamic_prop.
4018 (read_array_type): Likewise.
4019 (dwarf2_per_cu_addr_sized_int_type): New function.
4020 (read_subrange_index_type): Move type finding code to
4021 dwarf2_per_cu_addr_sized_int_type.
4022 (read_subrange_type): Update calls to attr_to_dynamic_prop.
4023 (dwarf2_per_cu_addr_type): New function.
4024 (set_die_type): Update calls to attr_to_dynamic_prop.
4025
4026 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4027
4028 * dwarf2read.c (read_subrange_index_type): New function.
4029 (read_subrange_type): Move code into new function and call it.
4030 * gdbtypes.c (create_range_type): Add some asserts.
4031
4032 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4033
4034 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
4035 update return statements.
4036 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
4037 declaration, and update comment to match.
4038 * gdbtypes.c (resolve_dynamic_array): Update call to
4039 dwarf2_evaluate_property to match new return type.
4040
4041 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4042
4043 * valarith.c (value_subscripted_rvalue): Change lowerbound
4044 parameter type from int to LONGEST.
4045 * value.h (value_subscripted_rvalue): Likewise in declaration.
4046
4047 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4048
4049 * cli/cli-utils.c (info_print_command_completer): New function.
4050 * cli/cli-utils.h: Add 'completer.h' include, and forward
4051 declaration for 'struct cmd_list_element'.
4052 (info_print_command_completer): Declare.
4053 * stack.c (_initialize_stack): Add completer for 'info locals' and
4054 'info args'.
4055 * symtab.c (_initialize_symtab): Add completer for 'info
4056 variables' and 'info functions'.
4057 * NEWS: Mention completion for additional info commands.
4058
4059 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4060
4061 * cli/cli-utils.c (extract_info_print_args): Delete.
4062 (extract_arg_maybe_quoted): Delete.
4063 (info_print_options_defs): New variable.
4064 (make_info_print_options_def_group): New function.
4065 (extract_info_print_options): Define new function.
4066 * cli/cli-utils.h (extract_info_print_args): Delete.
4067 (struct info_print_options): New structure.
4068 (extract_info_print_options): Declare new function.
4069 * stack.c (info_locals_command): Update to use new
4070 extract_info_print_options, also add a header comment.
4071 (info_args_command): Likewise.
4072 * symtab.c (info_variables_command): Likewise.
4073 (info_functions_command): Likewise.
4074
4075 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4076
4077 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
4078 to extract string arguments.
4079 * common/common-utils.c (extract_string_maybe_quoted): New function.
4080 * common/common-utils.h (extract_string_maybe_quoted): Declare.
4081
4082 2019-07-11 Tom Tromey <tromey@adacore.com>
4083
4084 * main.c (get_init_files): Use GDBINIT, not gdbinit.
4085 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
4086 * top.h (gdbinit): Don't declare.
4087 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
4088 into...
4089 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
4090 * top.c (gdb_init): Don't call init_cli_cmds.
4091 (gdbinit): Remove.
4092 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
4093
4094 2019-07-11 Tom Tromey <tromey@adacore.com>
4095
4096 * python/py-inferior.c (add_thread_object): Don't use thread_obj
4097 after it has been moved.
4098
4099 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4100
4101 * valops.c (value_must_coerce_to_target): Change return type to
4102 bool.
4103 * value.h (value_must_coerce_to_target): Likewise.
4104
4105 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
4106
4107 * breakpoint.c (is_hardware_watchpoint): Remove
4108 forward-declaration.
4109 (is_masked_watchpoint): Change return type to bool.
4110 (is_tracepoint): Likewise.
4111 (is_breakpoint): Likewise.
4112 (is_hardware_watchpoint): Likewise.
4113 (is_watchpoint): Likewise.
4114 (is_no_memory_software_watchpoint): Likewise.
4115 (is_catchpoint): Likewise.
4116 (breakpoint_1): Make FILTER parameter's return type bool.
4117 is_masked_watchpoint): Change return type to bool.
4118 (save_breakpoints): Make FILTER parameter's return type bool.
4119 * breakpoint.h (is_breakpoint): Change return type to bool.
4120 (is_watchpoint): Likewise.
4121 (is_catchpoint): Likewise.
4122 (is_tracepoint): Likewise.
4123
4124 2019-07-10 Tom Tromey <tom@tromey.com>
4125
4126 * defs.h: Don't include gdbarch.h.
4127 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
4128 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
4129 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
4130 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
4131 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
4132 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
4133 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
4134 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
4135 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
4136 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
4137 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
4138 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
4139 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
4140 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
4141 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
4142 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
4143 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
4144 record-btrace.c, record.h, regcache-dump.c, regcache.h,
4145 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
4146 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
4147 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
4148 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
4149 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
4150 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
4151 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
4152 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
4153 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
4154
4155 2019-07-10 Tom Tromey <tromey@adacore.com>
4156
4157 * ada-lang.h (is_ada_exception_catchpoint): Declare.
4158 * breakpoint.c (init_ada_exception_breakpoint): Register as
4159 bp_catchpoint.
4160 (print_one_breakpoint_location, print_one_breakpoint): Use
4161 is_ada_exception_catchpoint.
4162 * ada-lang.c (class ada_catchpoint_location): Pass
4163 bp_loc_software_breakpoint to bp_location constructor.
4164 (is_ada_exception_catchpoint): New function.
4165
4166 2019-07-10 Tom Tromey <tromey@adacore.com>
4167
4168 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
4169 VEC.
4170 (struct arm_exidx_entry): New method operator<.
4171 (struct arm_exidx_data) <section_maps>: Change type.
4172 (arm_exidx_data_free): Remove.
4173 (arm_exidx_data_key): Change type. Move lower.
4174 (arm_exidx_new_objfile): Update.
4175 (arm_compare_exidx_entries): Remove.
4176 (arm_find_exidx_entry, _initialize_arm_tdep)
4177
4178 2019-07-10 Tom Tromey <tromey@adacore.com>
4179
4180 * solib-spu.c (ocl_program_data_key): Change type.
4181 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
4182 Update.
4183
4184 2019-07-10 Tom Tromey <tromey@adacore.com>
4185
4186 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
4187 (struct solib_aix_inferior_data) <library_list>: Change type.
4188 (solib_aix_inferior_data_handle): Change type.
4189 (get_solib_aix_inferior_data): Update.
4190 (solib_aix_free_library_list): Remove.
4191 (library_list_start_library): Update.
4192 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
4193 return type.
4194 (solib_aix_get_library_list)
4195 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
4196 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
4197
4198 2019-07-10 Tom Tromey <tromey@adacore.com>
4199
4200 * solib-dsbt.c (struct dsbt_info): Add initializers.
4201 (solib_dsbt_pspace_data): Change type.
4202 (dsbt_pspace_data_cleanup): Remove.
4203 (get_dsbt_info, _initialize_dsbt_solib): Update.
4204
4205 2019-07-10 Tom Tromey <tromey@adacore.com>
4206
4207 * spu-tdep.c (spu_overlay_data): Change type.
4208 (spu_get_overlay_table, spu_overlay_new_objfile)
4209 (_initialize_spu_tdep): Update.
4210
4211 2019-07-10 Tom Tromey <tromey@adacore.com>
4212
4213 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
4214 destructor.
4215 (dbx_objfile_data_key): Change type and declare later.
4216 (DBX_SYMFILE_INFO): Rewrite.
4217 * dbxread.c (dbx_objfile_data_key): Change type.
4218 (dbx_symfile_init): Update.
4219 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
4220 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4221 (stabsect_build_psymtabs, _initialize_dbxread): Update.
4222
4223 2019-07-10 Tom Tromey <tromey@adacore.com>
4224
4225 * jit.c (jit_program_space_key): Change type. Move lower.
4226 (get_jit_program_space_data): Update.
4227 (jit_program_space_data_cleanup): Remove.
4228 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
4229 Update.
4230 (struct jit_program_space_data): Add initializers.
4231
4232 2019-07-10 Tom Tromey <tromey@adacore.com>
4233
4234 * solib-darwin.c (struct darwin_info): Add initializers.
4235 (solib_darwin_pspace_data): Change type.
4236 (darwin_pspace_data_cleanup): Remove.
4237 (get_darwin_info, _initialize_darwin_solib): Update.
4238
4239 2019-07-10 Tom Tromey <tromey@adacore.com>
4240
4241 * remote-sim.c (struct sim_inferior_data): Add initializers,
4242 constructor, and destructor.
4243 (sim_inferior_data_key): Change type. Move lower.
4244 (check_for_duplicate_sim_descriptor): Update.
4245 (get_sim_inferior_data): Use new. Update.
4246 (~sim_inferior_data_cleanup): Rename from
4247 sim_inferior_data_cleanup. Simplify.
4248 (gdbsim_close_inferior, simulator_command)
4249 (sim_command_completer, _initialize_remote_sim): Update.
4250 (next_pid, INITIAL_PID): Move earlier.
4251
4252 2019-07-10 Tom Tromey <tromey@adacore.com>
4253
4254 * python/python-internal.h (create_thread_object): Return
4255 gdbpy_ref.
4256 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
4257 * python/py-inferior.c (struct threadlist_entry): Add
4258 constructor.
4259 <thread_obj>: Now a gdbpy_ref.
4260 (thread_to_thread_object): Update.
4261 (add_thread_object): Use new.
4262 (delete_thread_object): Use delete.
4263 (infpy_threads): Update.
4264 (py_free_inferior): Update. Construct "inf_obj" after acquiring
4265 GIL.
4266
4267 2019-07-10 Tom Tromey <tromey@adacore.com>
4268
4269 * valops.c (value_cast): Specialize error message for Ada.
4270
4271 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4272
4273 * breakpoint.c (breakpoint_1): Update doc and parameter names.
4274
4275 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4276
4277 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
4278 bpstat_should_step): Return bool, adjust comments.
4279 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
4280 bpstat_should_step): Likewise.
4281
4282 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4283
4284 * features/Makefile: Use feature target descriptions for Arm.
4285 * features/arm/arm-core.c: Generate new file.
4286 * features/arm/arm-fpa.c: Likewise.
4287 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
4288 * features/arm/arm-m-profile.c: Likewise.
4289 * features/arm/arm-vfpv2.c: Likewise.
4290 * features/arm/arm-vfpv3.c: Likewise.
4291 * features/arm/xscale-iwmmxt.c: Likewise.
4292 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
4293
4294 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4295
4296 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
4297 ptrace earlier.
4298
4299 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4300
4301 * features/aarch64-pauth.c: Regenerate.
4302
4303 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
4304
4305 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
4306 bool.
4307 (bpstat_what): Use false instead of 0.
4308
4309 2019-07-09 Pedro Alves <palves@redhat.com>
4310
4311 * break-catch-throw.c (is_exception_catchpoint): New.
4312 * breakpoint.c (print_one_breakpoint_location): New parameter
4313 'raw_loc'. Handle it. Use
4314 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
4315 looking at the breakpoint's type.
4316 (print_one_breakpoint): If handling "maint info breakpoints", also
4317 print locations of exception catchpoints.
4318 * breakpoint.h (is_exception_catchpoint): Declare.
4319
4320 2019-07-09 Pedro Alves <palves@redhat.com>
4321
4322 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
4323 "addr" field.
4324 (allocate_location_exception_catchpoint): New.
4325 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
4326 (initialize_throw_catchpoint_ops): Install
4327 allocate_location_exception_catchpoint as allocate_location
4328 method.
4329 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
4330 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
4331 bp_loc_other.
4332 (breakpoint_address_is_meaningful): Delete.
4333 (bl_address_is_meaningful): New.
4334 (breakpoint_locations_match): Adjust comment.
4335 (bp_location_from_bp_type): New, factored out of...
4336 (bp_location::bp_location(breakpoint *)): ... this.
4337 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
4338 factored out of...
4339 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
4340 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
4341 breakpoint_address_is_meaningful.
4342 (bp_locations_compare): Adjust comment.
4343 (update_global_location_list): Use bl_address_is_meaningful
4344 instead of breakpoint_address_is_meaningful.
4345 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
4346 explicit.
4347 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
4348 * python/py-breakpoint.c (bppy_get_location): No longer check
4349 whether location is null.
4350
4351 2019-07-09 Pedro Alves <palves@redhat.com>
4352
4353 PR c++/15468
4354 * breakpoint.c (print_one_breakpoint_location): Remove
4355 single-location assert.
4356
4357 2019-07-09 Tom Tromey <tom@tromey.com>
4358
4359 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
4360 * configure: Rebuild.
4361 * configure.ac: Change common to gdbsupport.
4362 * gdbsupport: Rename from common.
4363 * acinclude.m4: Change common to gdbsupport.
4364 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
4365 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
4366 gdbsupport.
4367 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
4368 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
4369 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
4370 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
4371 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
4372 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
4373 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
4374 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
4375 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
4376 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
4377 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
4378 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
4379 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
4380 coff-pe-read.c, command.h, compile/compile-c-support.c,
4381 compile/compile-c.h, compile/compile-cplus-symbols.c,
4382 compile/compile-cplus-types.c, compile/compile-cplus.h,
4383 compile/compile-loc2c.c, compile/compile.c, completer.c,
4384 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
4385 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
4386 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
4387 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
4388 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
4389 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
4390 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
4391 features/aarch64-core.c, features/aarch64-fpu.c,
4392 features/aarch64-pauth.c, features/aarch64-sve.c,
4393 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
4394 features/i386/32bit-core.c, features/i386/32bit-linux.c,
4395 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
4396 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
4397 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
4398 features/i386/64bit-core.c, features/i386/64bit-linux.c,
4399 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
4400 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
4401 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
4402 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
4403 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
4404 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
4405 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
4406 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
4407 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
4408 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
4409 go32-nat.c, guile/guile.c, guile/scm-ports.c,
4410 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
4411 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
4412 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
4413 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
4414 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
4415 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
4416 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
4417 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
4418 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
4419 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
4420 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
4421 minsyms.c, mips-linux-tdep.c, namespace.h,
4422 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
4423 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
4424 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
4425 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
4426 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
4427 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
4428 nat/linux-waitpid.c, nat/mips-linux-watch.c,
4429 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
4430 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
4431 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
4432 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
4433 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
4434 procfs.c, producer.c, progspace.h, psymtab.h,
4435 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
4436 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
4437 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
4438 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
4439 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
4440 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
4441 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
4442 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
4443 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
4444 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
4445 target-memory.c, target.c, target.h, target/waitstatus.c,
4446 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
4447 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
4448 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
4449 unittests/array-view-selftests.c,
4450 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
4451 unittests/common-utils-selftests.c,
4452 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
4453 unittests/format_pieces-selftests.c,
4454 unittests/function-view-selftests.c,
4455 unittests/lookup_name_info-selftests.c,
4456 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
4457 unittests/mkdir-recursive-selftests.c,
4458 unittests/observable-selftests.c,
4459 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
4460 unittests/parse-connection-spec-selftests.c,
4461 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
4462 unittests/scoped_fd-selftests.c,
4463 unittests/scoped_mmap-selftests.c,
4464 unittests/scoped_restore-selftests.c,
4465 unittests/string_view-selftests.c, unittests/style-selftests.c,
4466 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
4467 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
4468 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
4469 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
4470 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
4471 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
4472
4473 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4474
4475 * linespec.c (decode_digits_list_mode): Set explicit_line to a
4476 bool value.
4477 (decode_digits_ordinary): Set explicit_line field in sal.
4478 * symtab.c (skip_prologue_sal): Don't skip prologue for a
4479 symtab_and_line that was set on an explicit line number in
4480 assembler code. Do always update the recorded symtab and line if
4481 we do skip the prologue.
4482
4483 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4484
4485 * breakpoint.c (set_breakpoint_location_function): Remove
4486 explicit_loc parameter.
4487 (momentary_breakpoint_from_master): Update call to
4488 set_breakpoint_location_function.
4489 (add_location_to_breakpoint): Likewise.
4490
4491 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4492
4493 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
4494 required features based on default bfd type when no specific bfd
4495 is present.
4496
4497 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4498
4499 * NEWS: Mention that GDB printf and eval commands can now print
4500 C-style and Ada-style convenience var strings without
4501 calling the inferior.
4502 * printcmd.c (printf_c_string): Locally print GDB internal var
4503 instead of transiting via the inferior.
4504 (printf_wide_c_string): Likewise.
4505
4506 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4507
4508 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
4509
4510 2019-07-04 Tom Tromey <tom@tromey.com>
4511
4512 PR tui/24724:
4513 * tui/tui-winsource.c (tui_clear_source_content): Update.
4514 (tui_source_window_base::set_is_exec_point_at): Fix comment.
4515 (tui_update_breakpoint_info): Update.
4516 (tui_set_exec_info_content): Update.
4517 * tui/tui-source.c (tui_set_source_content_nil): Update.
4518 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
4519 has_break.
4520 * tui/tui-data.h (enum tui_bp_flag): New.
4521 (tui_bp_flags): New enum flags type.
4522 (struct tui_source_element) <break_mode>: Change type. Rename
4523 from has_break.
4524 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
4525 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
4526 constants.
4527 * tui/tui-winsource.h: Fix comment.
4528
4529 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4530
4531 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
4532 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
4533 (store_fpregs_to_thread)
4534 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4535 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
4536 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
4537 (IWMMXT_REGS_SIZE): Add define.
4538 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
4539 (fetch_vfp_regs, store_vfp_regs)
4540 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4541 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
4542
4543 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4544
4545 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
4546 defines.
4547 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
4548 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
4549 (ARM_INT_REGISTER_SIZE): ...to this.
4550 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
4551 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
4552 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
4553 (arm_linux_collect_gregset, supply_nwfpe_register)
4554 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
4555 defines.
4556 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
4557 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
4558 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
4559 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
4560 (arm_return_in_memory, arm_store_return_value)
4561 (arm_get_longjmp_target, arm_register_g_packet_guesses)
4562 (arm_record_ld_st_multiple): Likewise.
4563 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
4564 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
4565
4566 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4567
4568 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
4569 AARCH64_DISPLACED_MODIFIED_INSNS.
4570 * aarch64-tdep.c (struct aarch64_displaced_step_data)
4571 (aarch64_displaced_step_copy_insn): Likewise.
4572 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4573 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
4574 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
4575 ARM_DISPLACED_MODIFIED_INSNS.
4576 * arm-tdep.c (arm_gdbarch_init): Likewise.
4577 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4578 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
4579 (struct arm_displaced_step_closure): Use
4580 ARM_DISPLACED_MODIFIED_INSNS.
4581
4582 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4583
4584 * features/Makefile: Remove unused xml files.
4585 * features/aarch64.xml: Remove.
4586 * features/i386/amd64-avx-avx512-linux.xml: Remove.
4587 * features/i386/amd64-avx-avx512.xml: Remove.
4588 * features/i386/amd64-avx-linux.xml: Remove.
4589 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
4590 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
4591 * features/i386/amd64-avx-mpx-linux.xml: Remove.
4592 * features/i386/amd64-avx-mpx.xml: Remove.
4593 * features/i386/amd64-avx.xml: Remove.
4594 * features/i386/amd64-linux.xml: Remove.
4595 * features/i386/amd64-mpx-linux.xml: Remove.
4596 * features/i386/amd64-mpx.xml: Remove.
4597 * features/i386/amd64.xml: Remove.
4598 * features/i386/i386-avx-avx512-linux.xml: Remove.
4599 * features/i386/i386-avx-avx512.xml: Remove.
4600 * features/i386/i386-avx-linux.xml: Remove.
4601 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
4602 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
4603 * features/i386/i386-avx-mpx-linux.xml: Remove.
4604 * features/i386/i386-avx-mpx.xml: Remove.
4605 * features/i386/i386-avx.xml: Remove.
4606 * features/i386/i386-linux.xml: Remove.
4607 * features/i386/i386-mmx-linux.xml: Remove.
4608 * features/i386/i386-mmx.xml: Remove.
4609 * features/i386/i386-mpx-linux.xml: Remove.
4610 * features/i386/i386-mpx.xml: Remove.
4611 * features/i386/i386.xml: Remove.
4612 * features/i386/x32-avx-avx512-linux.xml: Remove.
4613 * features/i386/x32-avx-linux.xml: Remove.
4614 * features/i386/x32-linux.xml: Remove.
4615
4616 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4617
4618 * regformats/aarch64.dat: Remove.
4619 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
4620 * regformats/i386/amd64-avx-linux.dat: Remove.
4621 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
4622 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
4623 * regformats/i386/amd64-linux.dat: Remove.
4624 * regformats/i386/amd64-mpx-linux.dat: Remove.
4625 * regformats/i386/amd64.dat: Remove.
4626 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
4627 * regformats/i386/i386-avx-linux.dat: Remove.
4628 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
4629 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
4630 * regformats/i386/i386-linux.dat: Remove.
4631 * regformats/i386/i386-mmx-linux.dat: Remove.
4632 * regformats/i386/i386-mpx-linux.dat: Remove.
4633 * regformats/i386/i386.dat: Remove.
4634 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
4635 * regformats/i386/x32-avx-linux.dat: Remove.
4636 * regformats/i386/x32-linux.dat: Remove.
4637
4638 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4639
4640 * aarch64-tdep.c: Remove xml self tests.
4641 * amd64-linux-tdep.c: Likewise.
4642 * amd64-tdep.c: Likewise.
4643 * i386-linux-tdep.c: Likewise.
4644 * i386-tdep.c: Likewise.
4645
4646 2019-07-03 Pedro Alves <palves@redhat.com>
4647
4648 PR cli/24732
4649 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
4650 (pipe_cmd_option_defs): New.
4651 (make_pipe_cmd_options_def_group): New.
4652 (pipe_command): Use gdb::option::process_options.
4653 (pipe_command_completer): New function.
4654 (_initialize_cli_cmds): Install completer for "pipe" command.
4655
4656 2019-07-03 Pedro Alves <palves@redhat.com>
4657
4658 * cli/cli-option.c (union option_value) <string>: New field.
4659 (struct option_def_and_value): Add ctor, move ctor, dtor and
4660 use DISABLE_COPY_AND_ASSIGN.
4661 (option_def_and_value::clear_value): New.
4662 (parse_option, save_option_value_in_ctx, get_val_type_str)
4663 (add_setshow_cmds_for_options): Handle var_string.
4664 * cli-option.h (union option_def::var_address) <string>: New
4665 field.
4666 (struct string_option_def): New.
4667 * maint-test-options.c (struct test_options_opts): Add default
4668 ctor and use DISABLE_COPY_AND_ASSIGN.
4669 <string_opt>: New field.
4670 (test_options_opts::~test_options_opts): New.
4671 (test_options_opts::dump): Also dump "-string".
4672 (test_options_option_defs): Install "string.
4673
4674 2019-07-03 Pedro Alves <palves@redhat.com>
4675
4676 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
4677 option_value with a null enumeration.
4678 (complete_options): Save the option values in the context.
4679 (save_option_value_in_ctx): New, factored out from ...
4680 (process_options): ... here.
4681 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
4682 of the function.
4683 * maint-test-options.c (test_options_opts::dump): New, factored
4684 out from ...
4685 (maintenance_test_options_command_mode): ... here.
4686 (maintenance_test_options_command_completion_result): Delete.
4687 (maintenance_test_options_command_completion_text): Update
4688 comment.
4689 (maintenance_show_test_options_completion_result): Change
4690 prototype. Just print
4691 maintenance_test_options_command_completion_text.
4692 (save_completion_result): New.
4693 (maintenance_test_options_completer_mode): Pass options context to
4694 complete_options, and then save a dump.
4695 (_initialize_maint_test_options): Use add_cmd to install "maint
4696 show test-options-completion-result".
4697
4698 2019-07-03 Pedro Alves <palves@redhat.com>
4699
4700 * NEWS (New commands): Mention "with" and "maint with".
4701 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
4702 (with_command, with_command_completer): New.
4703 (pipe_command): Adjust to new repeat_previous
4704 interface.
4705 (_initialize_cli_cmds): Install the "with" command and its "w"
4706 alias.
4707 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
4708 declarations.
4709 * cli/cli-setshow.c (parse_cli_var_uinteger)
4710 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
4711 argument strings for all var_types.
4712 (get_setshow_command_value_string): New, factored out from ...
4713 (do_show_command): ... this.
4714 * cli/cli-setshow.h: Include <string>.
4715 (get_setshow_command_value_string): Declare.
4716 * command.h (repeat_previous): Now returns const char *. Adjust
4717 comment.
4718 * maint.c: Include "cli/cli-cmds.h".
4719 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
4720 (_initialize_maint_cmds): Register the "maintenance with" command.
4721 * top.c (repeat_previous): Move bits from pipe_command here:
4722 Return the saved command line, if any; error out if there's no
4723 command to relaunch.
4724
4725 2019-07-03 Pedro Alves <palves@redhat.com>
4726
4727 * NEWS (New commands): Mention "maint set/show test-settings"
4728 instead of "maint test-settings".
4729 * maint-test-settings.c (maintenance_test_settings_list): Delete.
4730 (maintenance_test_settings_set_list): Rename to ...
4731 (maintenance_set_test_settings_list): ... this.
4732 (maintenance_test_settings_show_list): Rename to ...
4733 (maintenance_show_test_settings_list): ... this.
4734 (maintenance_test_settings_cmd): Delete.
4735 (maintenance_test_settings_set_cmd): ...
4736 (maintenance_set_test_settings_cmd): ... this.
4737 (maintenance_test_settings_show_cmd): ...
4738 (maintenance_show_test_settings_cmd): ... this.
4739 (maintenance_test_settings_show_value_cmd):
4740 (maintenance_show_test_settings_value_cmd): ... this.
4741 (_initialize_maint_test_settings): No longer install the "maint
4742 test-settings" prefix command. Rename "maint test-settings set"
4743 to "maint set test-settings", and "maint test-settings show" to
4744 "maint show test-settings". Adjust all subcommands.
4745
4746 2019-07-03 Pedro Alves <palves@redhat.com>
4747
4748 * maint-test-settings.c: Fix file's intro comment. Replace all
4749 references to "test-options" with references to "test-settings",
4750 in comments.
4751
4752 2019-07-03 Pedro Alves <palves@redhat.com>
4753
4754 * maint-test-settings.c (maintenance_test_settings_xxx)
4755 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
4756 New.
4757 (maintenance_test_settings_enums): Use them.
4758 (maintenance_test_settings_enum): Default to
4759 maintenance_test_settings_xxx.
4760 (_initialize_maint_test_settings): Initialize
4761 MAINTENANCE_TEST_SETTINGS_FILENAME.
4762
4763 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4764
4765 * breakpoint.h (remove_breakpoints_inf): Change return type to
4766 void, move function documentation here.
4767 * breakpoint.c (remove_breakpoints_inf): Change return type to
4768 void, move function documentation to header.
4769
4770 2019-07-02 Pedro Alves <palves@redhat.com>
4771
4772 * NEWS (Completion improvements): Mention "info threads".
4773 * thread.c (struct info_threads_opts, info_threads_option_defs)
4774 (make_info_threads_options_def_group): New.
4775 (info_threads_command): Use gdb::option::process_options.
4776 (info_threads_command_completer): New.
4777 (_initialize_thread): Use gdb::option::build_help to build the
4778 help text for "info threads".
4779
4780 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4781
4782 * defs.h (generic_load): Move from here...
4783 * symfile.h (generic_load): ... to here. Rename name parameter
4784 to args.
4785 * symfile.c (generic_load): Add comment.
4786
4787 2019-07-01 Tom Tromey <tromey@adacore.com>
4788
4789 * dwarf2read.c
4790 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
4791 declaration of without_params. Fix formatting.
4792
4793 2019-07-01 Tom Tromey <tromey@adacore.com>
4794
4795 * ada-exp.y (find_primitive_type): Update.
4796 * ada-lang.h (ada_lookup_symbol): Update.
4797 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
4798 parameter.
4799 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
4800
4801 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4802
4803 PR breakpoints/24541
4804 * gdbarch.c: Regenerate.
4805 * gdbarch.h: Regenerate.
4806 * gdbarch.sh: Add 'stap_adjust_register'.
4807 * i386-tdep.c: Include '<unordered_set>'.
4808 (i386_stap_adjust_register): New function.
4809 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
4810 * stap-probe.c (stap_parse_register_operand): Call
4811 'gdbarch_stap_adjust_register'.
4812
4813 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4814
4815 PR python/24742
4816 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
4817 * python/python.c (do_start_initialization): Use 'xmalloc'
4818 instead of 'PyMem_Malloc'.
4819
4820 2019-06-28 Tom Tromey <tromey@adacore.com>
4821
4822 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
4823 for Ada.
4824
4825 2019-06-27 Tom Tromey <tromey@adacore.com>
4826
4827 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
4828 objfile_key.
4829 (arm_find_mapping_symbol, arm_record_special_symbol)
4830 (_initialize_arm_tdep): Update.
4831 (arm_objfile_data_free): Remove.
4832
4833 2019-06-27 Tom Tromey <tromey@adacore.com>
4834
4835 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
4836 to cp_print_static_field.
4837
4838 2019-06-26 Tom Tromey <tromey@adacore.com>
4839
4840 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
4841 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
4842 declare.
4843
4844 2019-06-26 Alan Hayward <alan.hayward@arm.com>
4845
4846 * features/aarch64-core.c (create_feature_aarch64_core):
4847 Regenerate.
4848 * features/aarch64-core.xml: Add cpsr flags.
4849
4850 2019-06-26 Alan Hayward <alan.hayward@arm.com>
4851
4852 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
4853 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
4854
4855 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4856
4857 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
4858 field.
4859 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
4860 use.
4861 (arm_record_special_symbol): Don't insert new symbol in sorted
4862 position, push it at the end.
4863
4864 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4865
4866 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
4867 (arm_mapping_symbol_s): Remove.
4868 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
4869 (arm_mapping_symbol_vec): New typedef.
4870 (struct arm_per_objfile): Add constructor.
4871 <section_maps>: Change type to
4872 std::unique_ptr<arm_mapping_symbol_vec[]>.
4873 (arm_compare_mapping_symbols): Remove.
4874 (arm_find_mapping_symbol): Adjust to section_maps type change.
4875 (arm_objfile_data_free): Call delete on arm_per_objfile.
4876 (arm_record_special_symbol): Adjust to section_maps type change.
4877 Allocate arm_per_objfile with new.
4878
4879 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4880
4881 * cli/cli-cmds.c (alias_command): Compare the alias prefix
4882 with the command prefix.
4883
4884 2019-06-25 Tom Tromey <tom@tromey.com>
4885
4886 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
4887 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
4888
4889 2019-06-25 Tom Tromey <tom@tromey.com>
4890
4891 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
4892 type.
4893 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
4894 protected.
4895
4896 2019-06-25 Tom Tromey <tom@tromey.com>
4897
4898 * tui/tui-winsource.c
4899 (tui_source_window_base::set_is_exec_point_at): Add check against
4900 LOA_ADDRESS.
4901
4902 2019-06-25 Tom Tromey <tom@tromey.com>
4903
4904 * tui/tui-source.c (tui_set_source_content): Don't check before
4905 xfree.
4906 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
4907
4908 2019-06-25 Tom Tromey <tom@tromey.com>
4909
4910 * tui/tui-winsource.h (tui_update_source_window_as_is)
4911 (tui_alloc_source_buffer, tui_line_is_displayed)
4912 (tui_addr_is_displayed): Change type of win_info.
4913 * tui/tui-winsource.c (tui_update_source_window_as_is)
4914 (tui_clear_source_content, tui_show_source_line)
4915 (tui_show_source_content, tui_source_window_base::refill)
4916 (tui_source_window_base::set_is_exec_point_at)
4917 (tui_source_window_base::set_is_exec_point_at)
4918 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
4919 (tui_alloc_source_buffer, tui_line_is_displayed)
4920 (tui_addr_is_displayed): Change type of win_info. Update.
4921 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4922 (tui_source_window_base::do_make_visible_with_new_height):
4923 Update.
4924 * tui/tui-source.c (tui_set_source_content)
4925 (tui_set_source_content_nil)
4926 (tui_source_window::do_scroll_vertical): Update.
4927 * tui/tui-layout.c (show_layout): Update.
4928 * tui/tui-disasm.c (tui_set_disassem_content)
4929 (tui_disasm_window::do_scroll_vertical): Update.
4930 * tui/tui-data.h (tui_win_content): Remove.
4931 (struct tui_gen_win_info) <content, content_size>: Remove.
4932 (struct tui_source_element): Add initializers and destructor.
4933 (union tui_which_element, struct tui_win_element): Remove.
4934 (struct tui_source_window_base) <content>: New field.
4935 (struct tui_data_window): Remove destructor.
4936 (tui_alloc_content, tui_free_win_content)
4937 (tui_free_all_source_wins_content): Don't declare.
4938 * tui/tui-data.c (tui_initialize_static_data): Update.
4939 (init_content_element, tui_alloc_content): Remove.
4940 (~tui_gen_win_info): Update.
4941 (~tui_data_window, tui_free_all_source_wins_content)
4942 (tui_free_win_content, free_content, free_content_elements):
4943 Remove.
4944
4945 2019-06-25 Tom Tromey <tom@tromey.com>
4946
4947 * tui/tui-winsource.h (tui_clear_source_content)
4948 (tui_erase_source_content, tui_show_source_content): Change type
4949 of win_info.
4950 * tui/tui-winsource.c (tui_clear_source_content)
4951 (tui_erase_source_content, tui_show_source_content): Change type
4952 of win_info.
4953 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4954 * tui/tui-source.h (tui_set_source_content_nil): Change type of
4955 win_info.
4956 * tui/tui-source.c (tui_set_source_content_nil): Change type of
4957 win_info.
4958 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
4959
4960 2019-06-25 Tom Tromey <tom@tromey.com>
4961
4962 * tui/tui-winsource.c (tui_clear_source_content)
4963 (tui_source_window_base::set_is_exec_point_at): Update.
4964 * tui/tui-source.c (tui_set_source_content_nil): Update.
4965 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
4966 a bool.
4967 * tui/tui-data.c (init_content_element): Update.
4968
4969 2019-06-25 Tom Tromey <tom@tromey.com>
4970
4971 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
4972 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
4973 * tui/tui-layout.c (init_and_make_win): Update.
4974 * tui/tui.h (enum tui_win_type): Update.
4975 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
4976 tui_win_is_auxillary.
4977 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
4978 tui_win_is_auxillary.
4979
4980 2019-06-25 Tom Tromey <tom@tromey.com>
4981
4982 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
4983 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
4984 (tui_delete_data_content_windows, tui_display_all_data)
4985 (tui_data_window::do_scroll_vertical, tui_display_data_from):
4986 Update.
4987 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
4988 * tui/tui-regs.c (tui_last_regs_line_no)
4989 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4990 (tui_show_registers): Update.
4991 (tui_show_register_group): Return void. Update.
4992 (tui_display_registers_from, tui_display_reg_element_at_line)
4993 (tui_display_registers_from_line, tui_check_register_values):
4994 Update.
4995 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
4996 member.
4997 (struct tui_data_window) <regs_content>: Now a std::vector.
4998 <regs_content_count>: Remove.
4999 (tui_add_content_elements, tui_free_data_content): Don't declare.
5000 * tui/tui-data.c (tui_data_window::clear_detail): Update.
5001 (init_content_element): Remove DATA_WIN case. Add assert.
5002 (tui_add_content_elements): Remove.
5003 (tui_data_window): Update.
5004 (tui_free_data_content): Remove.
5005 (free_content_elements): Remove DATA_WIN case.
5006
5007 2019-06-25 Tom Tromey <tom@tromey.com>
5008
5009 * tui/tui-data.c (tui_data_item_window): Update.
5010 * tui/tui-windata.h (tui_check_data_values): Don't declare.
5011 * tui/tui-windata.c (tui_display_all_data)
5012 (tui_display_data_from_line): Update.
5013 (tui_check_data_values): Remove.
5014 * tui/tui-regs.c (tui_show_register_group)
5015 (tui_display_reg_element_at_line): Update.
5016 * tui/tui-hooks.c (tui_register_changed)
5017 (tui_refresh_frame_and_register_information): Call
5018 tui_check_register_values.
5019 * tui/tui-data.h (struct tui_data_window) <data_content,
5020 data_content_count, data_type>: Remove.
5021 (enum tui_data_type): Remove.
5022
5023 * tui/tui-data.c (tui_data_window::clear_detail)
5024 (~tui_data_window): Update.
5025
5026 2019-06-25 Tom Tromey <tom@tromey.com>
5027
5028 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
5029 declare.
5030 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
5031 Rename from tui_first_data_item_displayed. Update.
5032 (tui_data_window::refresh_all)
5033 (tui_data_window::do_scroll_vertical): Update.
5034 * tui/tui-data.h (struct tui_data_window)
5035 <first_data_item_displayed>: Declare new method.
5036
5037 2019-06-25 Tom Tromey <tom@tromey.com>
5038
5039 * tui/tui-data.h (tui_init_generic_part): Don't declare.
5040 * tui/tui-data.c (tui_init_generic_part): Remove, moving
5041 contents...
5042 (tui_initialize_static_data): ...here.
5043
5044 2019-06-25 Tom Tromey <tom@tromey.com>
5045
5046 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5047 (tui_display_registers_from, tui_check_register_values): Update.
5048 (tui_display_register): Remove win_info parameter; update.
5049 (tui_get_register): Change type of parameters.
5050 * tui/tui-data.h (struct tui_data_element): Remove.
5051 (union tui_which_element) <data>: Remove.
5052 <data_window>: Change type.
5053 (struct tui_data_item_window): New.
5054 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
5055 case. Add assert.
5056 (~tui_data_item_window): New destructor.
5057 (free_content_elements): Remove DATA_ITEM_WIN case.
5058
5059 2019-06-25 Tom Tromey <tom@tromey.com>
5060
5061 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
5062 Remove.
5063
5064 2019-06-25 Tom Tromey <tom@tromey.com>
5065
5066 * tui/tui-data.h (struct tui_command_element): Remove.
5067 (union tui_which_element) <command>: Remove.
5068 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
5069 assert.
5070 (free_content_elements): Remove CMD_WIN case.
5071
5072 2019-06-25 Tom Tromey <tom@tromey.com>
5073
5074 * tui/tui-layout.c (tui_set_layout): Update.
5075 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
5076 * tui/tui-data.c (layout_def): Update.
5077
5078 2019-06-25 Tom Tromey <tom@tromey.com>
5079
5080 * tui/tui-wingeneral.c (tui_refresh_all): Update.
5081 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5082 (tui_source_window_base::set_new_height): Update.
5083 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
5084 Update.
5085 (tui_set_locator_fullname, tui_set_locator_info)
5086 (tui_show_frame_info): Update.
5087 * tui/tui-source.c (tui_set_source_content)
5088 (tui_source_is_displayed): Update.
5089 * tui/tui-layout.c (show_source_disasm_command, show_data)
5090 (show_source_or_disasm_and_command): Update.
5091 * tui/tui-disasm.c (tui_set_disassem_content)
5092 (tui_get_begin_asm_address): Update.
5093 * tui/tui-data.h (struct tui_locator_element): Remove.
5094 (union tui_which_element) <locator>: Remove.
5095 (struct tui_locator_window): New.
5096 (tui_locator_win_info_ptr): Change return type.
5097 * tui/tui-data.c (_locator): Change type.
5098 (tui_locator_win_info_ptr): Change return type.
5099 (init_content_element): Remove LOCATOR_WIN case. Add assert.
5100 (tui_alloc_content): Add assert.
5101
5102 2019-06-25 Tom Tromey <tom@tromey.com>
5103
5104 * tui/tui-winsource.c
5105 (tui_exec_info_window::maybe_allocate_content): New method.
5106 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
5107 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
5108 (make_source_or_disasm_window): Add cast.
5109 * tui/tui-data.h (union tui_which_element) <simple_string>:
5110 Remove.
5111 (struct tui_source_info): New.
5112 (struct tui_source_window_base) <execution_info>: Change type.
5113 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
5114 case, and add assert.
5115 (tui_alloc_content): Add assert.
5116
5117 2019-06-25 Tom Tromey <tom@tromey.com>
5118
5119 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
5120 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
5121 * tui/tui-data.c (tui_alloc_win_info): Remove.
5122
5123 2019-06-25 Tom Tromey <tom@tromey.com>
5124
5125 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
5126 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
5127 can_highlight.
5128
5129 2019-06-25 Tom Tromey <tom@tromey.com>
5130
5131 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
5132 make_visible_with_new_height method.
5133 (tui_win_info::make_visible_with_new_height): New method.
5134 (tui_source_window_base::do_make_visible_with_new_height)
5135 (tui_data_window::do_make_visible_with_new_height)
5136 (tui_cmd_window::do_make_visible_with_new_height): New methods.
5137 (make_visible_with_new_height): Remove.
5138 (tui_resize_all, tui_adjust_win_heights): Use
5139 make_visible_with_new_height method.
5140 * tui/tui-data.h (struct tui_win_info)
5141 <do_make_visible_with_new_height, make_visible_with_new_height>:
5142 New methods.
5143 (struct tui_source_window_base, struct tui_data_window)
5144 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
5145 methods.
5146
5147 2019-06-25 Tom Tromey <tom@tromey.com>
5148
5149 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
5150 method.
5151 (update_tab_width): Call update_tab_width method.
5152 * tui/tui-data.h (struct tui_win_info)
5153 (struct tui_source_window_base) <update_tab_width>: New methods.
5154
5155 2019-06-25 Tom Tromey <tom@tromey.com>
5156
5157 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
5158 parameter.
5159 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
5160 parameter.
5161 (tui_gen_win_info::make_visible): Update.
5162 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
5163 parameter.
5164 * tui/tui-data.h (enum tui_box): New enum.
5165 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
5166
5167 2019-06-25 Tom Tromey <tom@tromey.com>
5168
5169 * tui/tui-layout.c (make_source_or_disasm_window): Always use
5170 init_and_make_win for EXEC_INFO_WIN.
5171 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
5172 longer inline.
5173 (struct tui_win_info) <~tui_win_info>: Inline.
5174 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5175 Don't declare.
5176 * tui/tui-data.c (source_win, disasm_win): Remove globals.
5177 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5178 Remove.
5179 (tui_initialize_static_data): Update.
5180 (~tui_gen_win_info): Handle more cleanup here.
5181 (~tui_source_window_base): Delete "execution_info".
5182 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
5183
5184 2019-06-25 Tom Tromey <tom@tromey.com>
5185
5186 * tui/tui-layout.c (make_command_window): Don't set
5187 can_highlight.
5188 (show_source_disasm_command): Call the reset method.
5189 (show_data): Don't set can_highlight. Call the reset method.
5190 (tui_gen_win_info::reset): Rename from init_gen_win_info
5191 (init_and_make_win): Simplify. Return tui_gen_win_info.
5192 (show_source_or_disasm_and_command): Call the reset method.
5193 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
5194 (struct tui_cmd_window): Set can_highlight.
5195
5196 2019-06-25 Tom Tromey <tom@tromey.com>
5197
5198 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
5199 from make_visible.
5200 (tui_make_visible, tui_make_invisible): Rewrite.
5201 (tui_win_info::make_visible): Remove.
5202 (tui_source_window_base::make_visible): Update.
5203 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
5204 method. Moved from...
5205 (struct tui_win_info) <make_visible>: ...here.
5206
5207 2019-06-25 Tom Tromey <tom@tromey.com>
5208
5209 * tui/tui-winsource.c
5210 (tui_source_window_base::do_scroll_horizontal): Remove direction
5211 parameter.
5212 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
5213 direction parameter.
5214 * tui/tui-win.c (tui_win_info::forward_scroll)
5215 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5216 (tui_win_info::right_scroll): Update.
5217 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
5218 direction parameter.
5219 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
5220 direction parameter.
5221 * tui/tui-data.h (enum tui_scroll_direction): Remove.
5222 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
5223 Remove direction parameter.
5224 (struct tui_source_window_base, struct tui_source_window)
5225 (struct tui_disasm_window, struct tui_data_window)
5226 (struct tui_cmd_window): Update.
5227
5228 2019-06-25 Tom Tromey <tom@tromey.com>
5229
5230 * tui/tui-winsource.h (tui_set_exec_info_content)
5231 (tui_show_exec_info_content, tui_erase_exec_info_content)
5232 (tui_clear_exec_info_content, tui_update_exec_info): Change
5233 argument to tui_source_window_base.
5234 * tui/tui-winsource.c (tui_set_exec_info_content)
5235 (tui_show_exec_info_content, tui_erase_exec_info_content)
5236 (tui_clear_exec_info_content, tui_update_exec_info): Change
5237 argument to tui_source_window_base.
5238
5239 2019-06-25 Tom Tromey <tom@tromey.com>
5240
5241 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
5242 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
5243
5244 2019-06-25 Tom Tromey <tom@tromey.com>
5245
5246 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
5247 check.
5248
5249 2019-06-25 Tom Tromey <tom@tromey.com>
5250
5251 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
5252 type to void.
5253 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
5254 type to void.
5255 * tui/tui-source.c (tui_set_source_content): Update.
5256 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5257
5258 2019-06-25 Tom Tromey <tom@tromey.com>
5259
5260 * tui/tui-win.c (window_name_completer, tui_set_focus)
5261 (tui_all_windows_info): Use name method.
5262 * tui/tui-data.h (struct tui_gen_win_info)
5263 (struct tui_source_window, struct tui_disasm_window)
5264 (struct tui_data_window, struct tui_cmd_window) <name>: New
5265 method.
5266 (tui_win_name): Don't declare.
5267 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
5268 (tui_win_name): Remove.
5269
5270 2019-06-25 Tom Tromey <tom@tromey.com>
5271
5272 * tui/tui-winsource.h (tui_update_source_window)
5273 (tui_update_source_window_as_is): Change parameter type.
5274 * tui/tui-winsource.c (tui_update_source_window): Change win_info
5275 to be a tui_source_window_base.
5276 (tui_update_source_window_as_is): Likewise.
5277 * tui/tui-win.c (make_visible_with_new_height): Update.
5278
5279 2019-06-25 Tom Tromey <tom@tromey.com>
5280
5281 * tui/tui-winsource.c (tui_erase_source_content)
5282 (tui_show_source_content, tui_show_exec_info_content)
5283 (tui_erase_exec_info_content): Use refresh_window method.
5284 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
5285 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
5286 from tui_refresh_win.
5287 (tui_data_window::refresh_window): New method.
5288 (tui_win_info::refresh, tui_source_window_base::refresh)
5289 (tui_refresh_all): Use refresh_window method.
5290 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
5291 method.
5292 * tui/tui-regs.c (tui_display_register): Call refresh_window
5293 method.
5294 * tui/tui-layout.c (show_source_disasm_command)
5295 (show_source_or_disasm_and_command): Call refresh_window method.
5296 * tui/tui-data.h (struct tui_gen_win_info)
5297 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
5298 New method.
5299
5300 2019-06-25 Tom Tromey <tom@tromey.com>
5301
5302 * tui/tui.c (tui_rl_other_window, tui_enable)
5303 (tui_is_window_visible, tui_get_command_dimension): Update.
5304 * tui/tui-winsource.c (tui_update_source_window_as_is)
5305 (tui_clear_source_content, tui_erase_source_content)
5306 (tui_show_source_line, tui_source_window_base::refill)
5307 (tui_source_window_base::do_scroll_horizontal)
5308 (tui_source_window_base::set_is_exec_point_at)
5309 (tui_update_breakpoint_info, tui_set_exec_info_content)
5310 (tui_alloc_source_buffer, tui_line_is_displayed)
5311 (tui_addr_is_displayed): Update.
5312 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5313 (tui_check_and_display_highlight_if_needed)
5314 (tui_win_info::make_visible, tui_win_info::refresh)
5315 (tui_refresh_all): Update.
5316 * tui/tui-windata.c (tui_first_data_item_displayed)
5317 (tui_delete_data_content_windows, tui_erase_data_content)
5318 (tui_display_all_data, tui_data_window::refresh_all)
5319 (tui_check_data_values): Update.
5320 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
5321 (tui_set_win_focus_to, tui_win_info::forward_scroll)
5322 (tui_win_info::backward_scroll, tui_refresh_all_win)
5323 (tui_resize_all, tui_set_focus, tui_all_windows_info)
5324 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
5325 (tui_source_window_base::set_new_height)
5326 (tui_data_window::set_new_height)
5327 (make_invisible_and_set_new_height)
5328 (make_visible_with_new_height, new_height_ok)
5329 (parse_scrolling_args): Update.
5330 * tui/tui-stack.c (tui_show_frame_info): Update.
5331 * tui/tui-source.c (tui_set_source_content)
5332 (tui_set_source_content_nil, tui_source_is_displayed)
5333 (tui_source_window::do_scroll_vertical): Update.
5334 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5335 (tui_display_registers_from, tui_display_reg_element_at_line)
5336 (tui_check_register_values, tui_reg_command): Update.
5337 * tui/tui-layout.c (tui_default_win_height)
5338 (show_source_disasm_command, show_data, init_and_make_win)
5339 (show_source_or_disasm_and_command): Update.
5340 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
5341 (tui_redisplay_readline, tui_mld_flush)
5342 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
5343 (tui_getc): Update.
5344 * tui/tui-disasm.c (tui_set_disassem_content)
5345 (tui_disasm_window::do_scroll_vertical): Update.
5346 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
5347 Now virtual.
5348 (struct tui_win_info): Derive from tui_gen_win_info.
5349 <~tui_win_info>: Mark as override.
5350 <generic>: Remove member.
5351 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
5352 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
5353 (~tui_data_window, ~tui_win_info)
5354 (tui_free_all_source_wins_content): Update.
5355 * tui/tui-command.c (tui_refresh_cmd_win): Update.
5356
5357 2019-06-25 Tom Tromey <tom@tromey.com>
5358
5359 * tui/tui-layout.c (init_and_make_win): Use new.
5360 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
5361 destructor, initializers.
5362 (tui_alloc_generic_win_info): Don't declare.
5363 * tui/tui-data.c (_locator): Add argument to constructor.
5364 (source_win, disasm_win): New globals.
5365 (exec_info): Remove.
5366 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5367 Update.
5368 (tui_alloc_generic_win_info): Remove.
5369 (init_content_element): Use new.
5370 (tui_win_info::tui_win_info): Update.
5371 (free_content_elements) <case DATA_WIN>: Use delete.
5372
5373 2019-06-25 Tom Tromey <tom@tromey.com>
5374
5375 * tui/tui-wingeneral.c (tui_refresh_win): Update.
5376 * tui/tui-windata.c (tui_first_data_item_displayed)
5377 (tui_delete_data_content_windows): Update.
5378 * tui/tui-win.c (tui_data_window::set_new_height): Update.
5379 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5380 (tui_display_registers_from, tui_check_register_values): Update.
5381 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
5382 pointer.
5383 * tui/tui-data.c (init_content_element): Update. Allocate the new
5384 window.
5385 (tui_free_data_content): Update.
5386 (free_content_elements) <case DATA_WIN>: Free the window.
5387
5388 2019-06-25 Tom Tromey <tom@tromey.com>
5389
5390 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
5391 Update.
5392 * tui/tui-layout.c (make_command_window)
5393 (show_source_disasm_command, show_data, init_and_make_win)
5394 (show_source_or_disasm_and_command): Update.
5395 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
5396 method.
5397 <can_highight, is_highlighted>: Now bool.
5398 (tui_set_win_highlight): Don't declare.
5399 * tui/tui-data.c (tui_set_win_highlight): Remove.
5400
5401 2019-06-25 Tom Tromey <tom@tromey.com>
5402
5403 * tui/tui-wingeneral.c (make_visible): Remove check of window
5404 type.
5405
5406 2019-06-25 Tom Tromey <tom@tromey.com>
5407
5408 * tui/tui-win.c (tui_win_info::max_height)
5409 (tui_cmd_window::max_height): New methods.
5410 (new_height_ok): Call max_height.
5411 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
5412 <max_height>: New method.
5413
5414 2019-06-25 Tom Tromey <tom@tromey.com>
5415
5416 * tui/tui-win.c (tui_source_window_base::set_new_height)
5417 (tui_data_window::set_new_height): New methods.
5418 (make_invisible_and_set_new_height): Call set_new_height method.
5419 * tui/tui-data.h (struct tui_win_info)
5420 (struct tui_source_window_base, struct tui_data_window)
5421 <set_new_height>: New method.
5422
5423 2019-06-25 Tom Tromey <tom@tromey.com>
5424
5425 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
5426 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
5427 tui_refresh_data_win.
5428 * tui/tui-win.c (tui_source_window_base::refresh_all): New
5429 method.
5430 (tui_refresh_all_win): Call the refresh_all method.
5431 (tui_set_focus): Likewise.
5432 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
5433 (struct tui_source_window_base, struct tui_data_window) <refresh>:
5434 Likewise.
5435
5436 2019-06-25 Tom Tromey <tom@tromey.com>
5437
5438 * tui/tui-winsource.h (tui_refill_source_window)
5439 (tui_set_is_exec_point_at): Don't declare.
5440 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5441 (tui_source_window_base::refill): Rename from
5442 tui_refill_source_window.
5443 (tui_source_window_base::do_scroll_horizontal): Update.
5444 (tui_source_window_base::set_is_exec_point_at): Rename from
5445 tui_set_is_exec_point_at.
5446 (tui_update_all_breakpoint_info): Update.
5447 * tui/tui-stack.c (tui_show_frame_info): Update.
5448 * tui/tui-layout.c (show_data): Add cast.
5449 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
5450 * tui/tui-data.h (struct tui_source_window_base) <refill,
5451 set_is_exec_point_at>: New methods.
5452 (tui_source_windows, tui_add_to_source_windows): Update types.
5453 (tui_add_to_source_windows): Remove redundant declaration.
5454 * tui/tui-data.c (source_windows): Store tui_source_window_base.
5455 (tui_source_windows): Change return type.
5456 (tui_clear_source_windows_detail): Update.
5457 (tui_add_to_source_windows): Change type of parameter.
5458 (tui_free_all_source_wins_content): Update.
5459
5460 2019-06-25 Tom Tromey <tom@tromey.com>
5461
5462 * tui/tui-wingeneral.c (tui_win_info::refresh)
5463 (tui_source_window_base::refresh): New methods.
5464 (tui_refresh_all): Call the refresh method.
5465 * tui/tui-data.h (struct tui_win_info)
5466 (struct tui_source_window_base) <refresh>: New method.
5467
5468 2019-06-25 Tom Tromey <tom@tromey.com>
5469
5470 * tui/tui.h (tui_is_window_visible): Return bool.
5471 * tui/tui.c (tui_is_window_visible): Return bool.
5472 * tui/tui-wingeneral.c (tui_make_window, make_visible)
5473 (tui_make_visible, tui_make_invisible)
5474 (tui_win_info::make_visible)
5475 (tui_source_window_base::make_visible, make_all_visible)
5476 (tui_make_all_visible, tui_make_all_invisible): Update.
5477 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
5478 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
5479 bool.
5480 (struct tui_win_info, struct tui_source_window_base)
5481 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
5482 * tui/tui-data.c (tui_init_generic_part): Update.
5483
5484 2019-06-25 Tom Tromey <tom@tromey.com>
5485
5486 * tui/tui-wingeneral.c (tui_win_info::make_visible)
5487 (tui_source_window_base::make_visible): New methods.
5488 (make_all_visible): Make method call.
5489 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
5490 (struct tui_source_window_base, struct tui_cmd_window): Override
5491 make_visible.
5492 (tui_win_is_source_type): Don't declare.
5493 * tui/tui-data.c (tui_win_is_source_type): Remove.
5494
5495 2019-06-25 Tom Tromey <tom@tromey.com>
5496
5497 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
5498 NULL check.
5499
5500 2019-06-25 Tom Tromey <tom@tromey.com>
5501
5502 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
5503 Inline constructor. Add initializers for members.
5504 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
5505 constructors; now inline in class.
5506
5507 2019-06-25 Tom Tromey <tom@tromey.com>
5508
5509 * tui/tui-regs.c (tui_show_registers): Update.
5510 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
5511 bool.
5512 * tui/tui-data.c (tui_data_window::clear_detail)
5513 (tui_data_window): Update.
5514
5515 2019-06-25 Tom Tromey <tom@tromey.com>
5516
5517 * tui/tui-windata.c (tui_display_all_data)
5518 (tui_display_data_from_line, tui_display_data_from)
5519 (tui_check_data_values, tui_data_window::do_scroll_vertical):
5520 Update.
5521 * tui/tui-regs.c (tui_last_regs_line_no)
5522 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5523 (tui_show_registers, tui_show_register_group)
5524 (tui_display_registers_from, tui_display_reg_element_at_line)
5525 (tui_display_registers_from_line, tui_check_register_values)
5526 (tui_reg_next, tui_reg_prev): Update.
5527 * tui/tui-layout.c (tui_set_layout, show_data): Update.
5528 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
5529 tui_data_window.
5530 (struct tui_win_info) <detail>: Remove. Add new fields from
5531 tui_data_info.
5532 (TUI_DATA_WIN): Add cast.
5533 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
5534 (~tui_data_window): Simplify.
5535
5536 2019-06-25 Tom Tromey <tom@tromey.com>
5537
5538 * tui/tui-layout.c (show_source_disasm_command)
5539 (show_source_or_disasm_and_command): Update.
5540 * tui/tui-io.c (update_cmdwin_start_line)
5541 (tui_redisplay_readline): Update.
5542 * tui/tui-data.h (struct tui_command_info): Remove.
5543 (struct tui_win_info) <detail>: Remove command_info member.
5544 (struct tui_data_window) <start_line>: New member, from
5545 tui_command_info.
5546 (TUI_CMD_WIN): Add casts.
5547
5548 2019-06-25 Tom Tromey <tom@tromey.com>
5549
5550 * tui/tui-winsource.c (tui_update_source_window)
5551 (tui_refill_source_window)
5552 (tui_source_window_base::do_scroll_horizontal)
5553 (tui_update_breakpoint_info, tui_set_exec_info_content)
5554 (tui_show_exec_info_content, tui_erase_exec_info_content)
5555 (tui_clear_exec_info_content): Update.
5556 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
5557 Update.
5558 * tui/tui-win.c (make_invisible_and_set_new_height)
5559 (make_visible_with_new_height): Update.
5560 * tui/tui-source.c (tui_set_source_content)
5561 (tui_show_symtab_source): Update.
5562 * tui/tui-layout.c (extract_display_start_addr)
5563 (show_source_disasm_command, show_data)
5564 (make_source_or_disasm_window)
5565 (show_source_or_disasm_and_command): Update.
5566 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
5567 (tui_disasm_window::do_scroll_vertical): Remove shadowing
5568 "gdbarch".
5569 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
5570 to tui_source_window_base.
5571 (struct tui_win_info) <detail>: Remove source_info member.
5572 (struct tui_source_window_base) <has_locator>: Inline.
5573 Move contents from tui_source_info; rename has_locator member to
5574 m_has_locator.
5575 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
5576 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
5577 header file.
5578 (tui_source_window_base::clear_detail, ~tui_source_window_base):
5579 Simplify.
5580 (tui_free_all_source_wins_content): Cast to
5581 tui_source_window_base.
5582
5583 2019-06-25 Tom Tromey <tom@tromey.com>
5584
5585 * tui/tui-win.c (make_invisible_and_set_new_height)
5586 (make_visible_with_new_height): Call has_locator method.
5587 * tui/tui-layout.c (show_source_disasm_command, show_data)
5588 (show_source_or_disasm_and_command): Update for bool change.
5589 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
5590 (tui_win_info) <has_locator>: New method.
5591 (struct tui_source_window_base) <has_locator>: New method.
5592 (tui_win_has_locator): Don't declare.
5593 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
5594 from tui_win_has_locator.
5595 (tui_source_window_base): Use false, not FALSE.
5596
5597 2019-06-25 Tom Tromey <tom@tromey.com>
5598
5599 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
5600 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
5601 clear_detail method directly.
5602 (tui_clear_win_detail): Remove.
5603
5604 2019-06-25 Tom Tromey <tom@tromey.com>
5605
5606 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
5607 "this", not TUI_DISASM_WIN.
5608
5609 2019-06-25 Tom Tromey <tom@tromey.com>
5610
5611 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
5612 declare.
5613 * tui/tui-winsource.c
5614 (tui_source_window_base::do_scroll_horizontal): Rename from
5615 tui_horizontal_source_scroll.
5616 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
5617 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
5618 from tui_vertical_data_scroll.
5619 * tui/tui-win.h (tui_scroll): Don't declare.
5620 * tui/tui-win.c (tui_win_info::forward_scroll)
5621 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5622 (tui_win_info::right_scroll): Rename and update.
5623 (tui_scroll_forward_command, tui_scroll_backward_command)
5624 (tui_scroll_left_command, tui_scroll_right_command): Update.
5625 (tui_scroll): Remove.
5626 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
5627 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
5628 from tui_vertical_source_scroll.
5629 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
5630 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
5631 from tui_vertical_disassem_scroll.
5632 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
5633 do_scroll_horizontal>: New methods.
5634 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
5635 Likewise.
5636 (struct tui_source_window_base): Add do_scroll_horizontal.
5637 (struct tui_source_window, struct tui_disasm_window): Add
5638 do_scroll_vertical.
5639 (struct tui_data_window, struct tui_cmd_window): Add
5640 do_scroll_horizontal and do_scroll_vertical.
5641 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
5642
5643 2019-06-25 Tom Tromey <tom@tromey.com>
5644
5645 * tui/tui-data.h (struct tui_source_window_base): New struct.
5646 (struct tui_source_window): Derive from tui_source_window_base.
5647 (struct tui_disasm_window): New struct.
5648 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
5649 from tui_source_window::clear_detail.
5650 (tui_source_window_base): Rename from tui_source_window.
5651 (~tui_source_window_base): Rename from ~tui_source_window.
5652 (tui_alloc_win_info): Create a tui_disasm_window.
5653
5654 2019-06-25 Tom Tromey <tom@tromey.com>
5655
5656 * tui/tui-data.h (struct tui_source_window)
5657 (struct tui_data_window): Declare destructors.
5658 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
5659 destructors.
5660 (tui_win_info): Simplify.
5661
5662 2019-06-25 Tom Tromey <tom@tromey.com>
5663
5664 * tui/tui-winsource.c (tui_display_main)
5665 (tui_update_source_windows_with_addr)
5666 (tui_update_all_breakpoint_info): Update.
5667 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5668 (new_height_ok, parse_scrolling_args): Update.
5669 * tui/tui-stack.c (tui_show_frame_info): Update.
5670 * tui/tui-data.h (struct tui_list): Remove.
5671 (tui_source_windows): Return a reference to a std::vector.
5672 * tui/tui-data.c (source_windows): Now a std::vector.
5673 (tui_source_windows): Change return type.
5674 (tui_clear_source_windows): Rewrite.
5675 (tui_clear_source_windows_detail, tui_add_to_source_windows)
5676 (tui_free_all_source_wins_content): Rewrite.
5677
5678 2019-06-25 Tom Tromey <tom@tromey.com>
5679
5680 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
5681 (struct tui_data_window, struct tui_cmd_window): Declare
5682 clear_detail method.
5683 * tui/tui-data.c (tui_source_window::clear_detail)
5684 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
5685 methods.
5686 (tui_clear_win_detail): Simplify.
5687
5688 2019-06-25 Tom Tromey <tom@tromey.com>
5689
5690 * tui/tui-layout.c (make_source_window, make_disasm_window)
5691 (make_source_or_disasm_window): Remove win_info_ptr parameter.
5692 Return the new window.
5693 (show_source_disasm_command, show_data)
5694 (show_source_or_disasm_and_command): Update.
5695
5696 2019-06-25 Tom Tromey <tom@tromey.com>
5697
5698 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
5699 parameter. Return the new window.
5700 (show_source_disasm_command): Update and remove NULL check.
5701 (show_source_or_disasm_and_command): Update.
5702
5703 2019-06-25 Tom Tromey <tom@tromey.com>
5704
5705 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
5706
5707 2019-06-25 Tom Tromey <tom@tromey.com>
5708
5709 * tui/tui-data.h (struct tui_win_info): Make constructor
5710 protected. Make destructor virtual. Add initializers.
5711 (tui_source_window, tui_data_window, tui_cmd_window): New
5712 classes.
5713 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
5714 constructor. Add "type" parameter.
5715 (tui_source_window, tui_data_window, tui_cmd_window): New
5716 constructors.
5717 (tui_alloc_win_info): Instantiate the appropriate subclass.
5718
5719 2019-06-25 Tom Tromey <tom@tromey.com>
5720
5721 * tui/tui-win.c (tui_resize_all): Use delete.
5722 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
5723 destructor.
5724 (tui_free_window): Don't declare.
5725 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
5726 Update.
5727
5728 2019-06-25 Tom Tromey <tom@tromey.com>
5729
5730 * tui/tui-data.h (struct tui_win_info): Add constructor.
5731 * tui/tui-data.c (tui_alloc_win_info): Use new.
5732 (tui_free_window): Use delete.
5733
5734 2019-06-22 Tom Tromey <tom@tromey.com>
5735
5736 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
5737 declare.
5738 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
5739
5740 2019-06-22 Tom Tromey <tom@tromey.com>
5741
5742 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
5743 declare.
5744 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
5745
5746 2019-06-22 Tom de Vries <tdevries@suse.de>
5747
5748 * dwarf2read.c (create_addrmap_from_aranges)
5749 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
5750 instead of '%zu'.
5751
5752 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
5753
5754 * dwarf2read.h (dwarf2_section_info_def): Remove.
5755 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
5756 * dwarf2read.c (struct dwo_sections) <types>: Change type to
5757 std::vector<dwarf2_section_info>.
5758 (struct dwo_file) <~dwo_file>: Remove.
5759 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
5760 types field.
5761 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
5762 (dwarf2_read_debug_names): Likewise.
5763 (create_debug_types_hash_table): Change parameter type to
5764 array_view, adjust code accordingly.
5765 (dwarf2_locate_dwo_sections): Adjust to std::vector.
5766 (partial_die_info::fixup): Likewise.
5767 (determine_prefix): Likewise.
5768 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
5769
5770 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5771
5772 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
5773 gdb_bfd_ref_ptr.
5774 <~dwo_file>: Remove call to gdb_bfd_unref.
5775 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
5776 gdb_bfd_ref_ptr::get.
5777
5778 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5779
5780 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
5781 type to htab_up.
5782 * dwarf2read.c (struct dwo_file): Initialize fields.
5783 <~dwo_file>: New.
5784 (free_dwo_file): Remove, move content to ~dwo_file.
5785 (struct dwo_file_deleter): Remove.
5786 (dwo_file_up>: Remove custom deleter.
5787 (free_dwo_files): Remove.
5788 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
5789 dwo_files.
5790 (process_skeletonless_type_units): Call unique_ptr::get.
5791 (allocate_dwo_file_hash_table): Add deleter to created hash
5792 table. Change return type to htab_up.
5793 (lookup_dwo_file_slot): Don't memset dwo_file, call
5794 unique_ptr::get.
5795 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
5796 (create_dwo_unit_in_dwp_v2): Likewise.
5797 (open_and_init_dwo_file): Likewise.
5798 (free_dwo_file_from_slot): Remove.
5799
5800 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5801
5802 * dwarf2read.h (struct dwarf2_section_info) <readin,
5803 is_virtual>: Change type to bool.
5804 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
5805 true instead of 1.
5806
5807 2019-06-19 Tom Tromey <tom@tromey.com>
5808
5809 * tui/tui-data.h (tui_init_content_element): Don't declare.
5810
5811 2019-06-19 Tom Tromey <tom@tromey.com>
5812
5813 * tui/tui-data.h (tui_init_win_info): Don't declare.
5814
5815 2019-06-19 Tom de Vries <tdevries@suse.de>
5816
5817 * dwarf2read.h (abstract_to_concrete): Change type to
5818 std::unordered_map<sect_offset, std::vector<sect_offset>,
5819 gdb::hash_enum<sect_offset>>.
5820
5821 2019-06-19 Tom Tromey <tromey@adacore.com>
5822
5823 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
5824 EVAL_AVOID_SIDE_EFFECTS specially.
5825
5826 2019-06-19 Tom Tromey <tromey@adacore.com>
5827
5828 * source-cache.c (highlighter): New global.
5829 (source_cache::get_source_lines): Create a highlighter on demand.
5830
5831 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
5832
5833 * defs.h (deprecated_interactive_hook): Delete declaration.
5834 * interps.c (clear_interpreter_hooks): Remove use of
5835 deprecated_interactive_hook.
5836 * top.c (deprecated_interactive_hook): Delete definition.
5837 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
5838
5839 2019-06-18 Tom de Vries <tdevries@suse.de>
5840
5841 PR gdb/24515
5842 * dwarf2read.h (abstract_to_concrete): Change type from
5843 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
5844 std::unordered_map<sect_offset, std::vector<sect_offset>>.
5845 * dwarf2read.c (read_variable): Update.
5846 (dwarf2_fetch_die_loc_sect_off): Update.
5847
5848 2019-06-17 Tom de Vries <tdevries@suse.de>
5849
5850 PR gdb/24617
5851 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
5852 accessing parent[parent_len - 1].
5853
5854 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
5855
5856 PR gdb/24364
5857 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
5858 call dtrace_process_dof with NULL dof.
5859
5860 2019-06-16 Tom de Vries <tdevries@suse.de>
5861
5862 PR gdb/24445
5863 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
5864
5865 2019-06-16 Tom Tromey <tom@tromey.com>
5866
5867 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5868 (make_all_visible): Use address of member.
5869
5870 2019-06-16 Tom Tromey <tom@tromey.com>
5871
5872 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
5873 (tui_free_window, free_content, free_content_elements): Remove
5874 unnecessary cast.
5875 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
5876 cast.
5877 * tui/tui-regs.c (tui_show_register_group)
5878 (tui_display_registers_from, tui_display_reg_element_at_line):
5879 Remove unnecessary cast.
5880
5881 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5882
5883 * linux-nat.c (normal_mask): Delete.
5884 (_initialize_linux_nat): Don't initialise normal_mask.
5885
5886 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
5887
5888 PR gdb/24445
5889 * dwarf-index-write.h (write_psymtabs_to_index): Add
5890 dwz_basename parameter.
5891 * dwarf-index-write.c (write_gdbindex): Move file writing to
5892 write_gdbindex_1. Change return type void.
5893 (assert_file_size): Move up, remove filename parameter.
5894 (write_gdbindex_1): New function.
5895 (write_debug_names): Change return type to void, call
5896 assert_file_size.
5897 (struct index_wip_file): New struct.
5898 (write_psymtabs_to_index): Add dwz_basename parameter. Move
5899 file logic to index_wip_file. Write index for dwz file if
5900 needed.
5901 (save_gdb_index_command): Pass basename of dwz file, if present.
5902 * dwarf-index-cache.c (index_cache::store): Obtain and pass
5903 build-id of dwz file, if present.
5904 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
5905 (dwarf2_get_dwz_file): Likewise.
5906 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
5907 (dwarf2_get_dwz_file): Likewise.
5908
5909 2019-06-16 Tom Tromey <tom@tromey.com>
5910
5911 * coffread.c (process_coff_symbol): Use xstrdup.
5912 * value.c (create_internalvar): Use xstrdup.
5913
5914 2019-06-16 Tom Tromey <tom@tromey.com>
5915
5916 * valops.c (value_cast, value_slice): Remove unnecessary cast.
5917 * breakpoint.c (stopin_command, stopat_command)
5918 (until_break_command, decode_location_default): Remove unnecessary
5919 cast.
5920 * utils.c (subset_compare): Remove unnecessary cast.
5921 * ada-lang.c (ada_update_initial_language): Remove unnecessary
5922 cast.
5923 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
5924 cast.
5925 * infcmd.c (path_command): Remove unnecessary cast.
5926 * coffread.c (decode_type): Remove unnecessary cast.
5927 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
5928 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
5929 * tui/tui-stack.c (tui_show_locator_content)
5930 (tui_show_frame_info): Remove unnecessary cast.
5931 * tui/tui-win.c (tui_scroll_forward_command)
5932 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
5933 (parse_scrolling_args): Remove unnecessary cast.
5934 * tui/tui-data.c (init_win_info, tui_del_window)
5935 (tui_free_window, tui_del_data_windows, tui_free_data_content)
5936 (free_content_elements): Remove unnecessary cast.
5937 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
5938 unnecessary cast.
5939 * tui/tui-source.c (tui_set_source_content)
5940 (tui_vertical_source_scroll): Remove unnecessary cast.
5941 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
5942 cast.
5943 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
5944 * tui/tui-regs.c (tui_display_registers_from)
5945 (tui_display_register): Remove unnecessary cast.
5946 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
5947 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
5948 (make_visible): Remove unnecessary cast.
5949 * tui/tui-winsource.c (tui_erase_source_content)
5950 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
5951 unnecessary cast.
5952 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
5953 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
5954 * stabsread.c (read_type, read_array_type, read_range_type):
5955 Remove unnecessary cast.
5956 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
5957 (parse_symbol, parse_type, upgrade_type, parse_external)
5958 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
5959 unnecessary cast.
5960 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
5961
5962 2019-06-16 Tom Tromey <tom@tromey.com>
5963
5964 * tui/tui-data.c (tui_alloc_generic_win_info)
5965 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
5966 checks.
5967
5968 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
5969 Andrew Burgess <andrew.burgess@embecosm.com>
5970
5971 * f-typeprint.c (f_print_type): Don't return early for not
5972 associated or not allocated types.
5973 (f_type_print_varspec_suffix): Add print_rank parameter and print
5974 ranks of array types in case they dangling.
5975 (f_type_print_base): Add print_rank parameter.
5976
5977 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5978
5979 * NEWS: Mention new MI commands.
5980 * break-catch-throw.c (enum exception_event_kind): Move to
5981 breakpoint.h.
5982 (print_mention_exception_catchpoint): Output text as a single
5983 message.
5984 (catch_exception_command_1): Rename to...
5985 (catch_exception_event): ...this, make non-static, update header
5986 command, and change some parameter types.
5987 (catch_catch_command): Update for changes to
5988 catch_exception_command_1.
5989 (catch_throw_command): Likewise.
5990 (catch_rethrow_command): Likewise.
5991 * breakpoint.c (enum exception_event_kind): Delete.
5992 * breakpoint.h (enum exception_event_kind): Moved here from
5993 break-catch-throw.c.
5994 (catch_exception_event): Declare.
5995 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
5996 (mi_cmd_catch_throw): New function.
5997 (mi_cmd_catch_rethrow): New function.
5998 (mi_cmd_catch_catch): New function.
5999 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
6000 'catch-catch' entries.
6001 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
6002 (mi_cmd_catch_rethrow): Declare.
6003 (mi_cmd_catch_catch): Declare.
6004
6005 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6006
6007 * annotate.c (annotate_source_line): Change return type to void,
6008 update implementation to match.
6009 * annotate.h (annotate_source_line): Change return type to void,
6010 update header comment.
6011 * stack.c (print_frame_info): Don't change what frame information
6012 is printed based on whether annotations are on or not.
6013
6014 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6015
6016 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
6017 (annotate_source): Make static.
6018 (annotate_source_line): Moved from source.c and renamed from
6019 identify_source_line. Update the return type.
6020 * annotate.h (annotate_source): Delete declaration.
6021 (annotate_source_line): Declaration moved from source.h, and
6022 renamed from identify_source_line. Return type updated.
6023 * source.c (identify_source_line): Moved to annotate.c and renamed
6024 to annotate_source_line.
6025 (info_line_command): Remove check of annotation_level.
6026 * source.h (identify_source_line): Move declaration to annotate.h
6027 and rename to annotate_source_line.
6028 * stack.c: Add 'annotate.h' include.
6029 (print_frame_info): Remove check of annotation_level before
6030 calling annotate_source_line.
6031
6032 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6033
6034 * source-cache.c (source_cache::get_plain_source_lines): Use
6035 open_source_file_with_line_charpos instead of just
6036 open_source_file, remove call to find_source_lines.
6037 (source_cache::get_source_lines): Likewise.
6038 * source.c (find_source_lines): Make static.
6039 (get_filename_and_charpos): Renamed into...
6040 (open_source_file_with_line_charpos): ..this along with changes to
6041 return a scoped_fd, and some other minor clean ups.
6042 (identify_source_line): Use open_source_file_with_line_charpos.
6043 (search_command_helper): Use open_source_file_with_line_charpos
6044 instead of just open_source_file, remove call to
6045 find_source_lines.
6046 * source.h (open_source_file_with_line_charpos): Declare new
6047 function.
6048 (find_source_lines): Delete declaration.
6049
6050 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6051
6052 * source.c (get_filename_and_charpos): Remove fullname
6053 parameter.
6054 (identify_source_line): Update call to get_filename_and_charpos.
6055
6056 2019-06-14 Tom Tromey <tromey@adacore.com>
6057
6058 PR gdb/24502:
6059 * ui-style.h (skip_ansi_escape): Update comment.
6060 * ui-file.h (class no_terminal_escape_file): New class.
6061 * ui-file.c (no_terminal_escape_file::write)
6062 (no_terminal_escape_file::puts): New methods.
6063 * cli/cli-logging.c (handle_redirections): Use
6064 no_terminal_escape_file.
6065
6066 2019-06-14 Tom Tromey <tromey@adacore.com>
6067
6068 * NEWS: Move convenience variable news above Python news.
6069
6070 2019-06-14 Tom Tromey <tom@tromey.com>
6071
6072 * gnulib: Move directory to top-level.
6073 * configure.ac: Don't configure gnulib.
6074 * configure: Rebuild.
6075 * common/common-defs.h: Use new path to gnulib.
6076 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
6077 (GNULIB_H): Remove.
6078 (INCGNU): Look in new gnulib location.
6079 (HFILES_NO_SRCDIR): Remove gnulib files.
6080 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
6081 (generated_files): Remove GNULIB_H.
6082 ($(LIBGNU), all-lib): Remove targets.
6083 (distclean): Don't mention GNULIB_BUILDDIR.
6084 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
6085
6086 2019-06-14 Tom Tromey <tromey@adacore.com>
6087
6088 * symfile.c (add_symbol_file_command): Remove obsolete comment.
6089 Warn if symbol file does not provide any symbols.
6090
6091 2019-06-14 Tom Tromey <tromey@adacore.com>
6092
6093 * source.c (find_and_open_source): Respect basenames_may_differ.
6094
6095 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
6096
6097 * annotate.c (annotate_breakpoints_invalid): Make use of
6098 scoped_restore_terminal_state.
6099 (annotate_frames_invalid): Likewise.
6100
6101 2019-06-14 Tom Tromey <tromey@adacore.com>
6102
6103 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
6104 allow assignment to an internalvar.
6105
6106 2019-06-14 Tom Tromey <tromey@adacore.com>
6107
6108 * ada-lex.l: Allow "_" in attribute names.
6109
6110 2019-06-14 Tom Tromey <tromey@adacore.com>
6111
6112 PR gdb/24653:
6113 * regcache.c (registers_changed): Don't call alloca.
6114 * top.c (execute_command): Don't call alloca.
6115
6116 2019-06-13 Pedro Alves <palves@redhat.com>
6117
6118 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
6119 'expression'. When parsing an expression, error out if there's
6120 junk after "unlimited".
6121 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6122 (do_set_command): Adjust calls to is_unlimited_literal.
6123
6124 2019-06-13 Pedro Alves <palves@redhat.com>
6125
6126 * compile/compile.c (make_compile_options_def_group): Add braces
6127 around array_view initializer.
6128 * thread.c (make_thread_apply_all_options_def_group)
6129 (make_thread_apply_all_options_def_group): Likewise.
6130
6131 2019-06-13 Pedro Alves <palves@redhat.com>
6132
6133 * NEWS (New commands): Mention "maint test-options
6134 require-delimiter", "maint test-options unknown-is-error", "maint
6135 test-options unknown-is-operand" and "maint show
6136 test-options-completion-result".
6137 (New command options, command completion): New section.
6138 (Completion improvements): New section.
6139 Mention that you can abbreviate "unlimited".
6140
6141 2019-06-13 Pedro Alves <palves@redhat.com>
6142
6143 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
6144 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
6145 * unittests/cli-utils-selftests.c (test_parse_flags)
6146 (test_parse_flags_qcs): Delete.
6147 (test_cli_utils): Don't call deleted functions.
6148
6149 2019-06-13 Pedro Alves <palves@redhat.com>
6150
6151 * thread.c: Include "cli/cli-option.h".
6152 (tp_array_compar_ascending): Global.
6153 (tp_array_compar): Delete function.
6154 (tp_array_compar_ascending, tp_array_compar_descending): New
6155 functions.
6156 (ascending_option_def, qcs_flag_option_def)
6157 (thr_qcs_flags_option_defs)
6158 (make_thread_apply_all_options_def_group)
6159 (make_thread_apply_options_def_group): New.
6160 (thread_apply_all_command): Use gdb::option::process_options.
6161 (thread_apply_command_completer)
6162 (thread_apply_all_command_completer): New.
6163 (thread_apply_command): Use gdb::option::process_options.
6164 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
6165 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
6166 to generate help text of "thread apply". Adjust "taas"'s help.
6167 * tid-parse.c (tid_range_parser::in_thread_range): New method.
6168 * tid-parse.h (tid_range_parser::in_thread_range): New method.
6169
6170 2019-06-13 Pedro Alves <palves@redhat.com>
6171
6172 * thread.c (thread_apply_command): Check for invalid TID with
6173 isdigit instead of !isalpha.
6174
6175 2019-06-13 Pedro Alves <palves@redhat.com>
6176
6177 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
6178 (validate_flags_qcs): New.
6179 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
6180 (validate_flags_qcs): Declare.
6181 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
6182 (make_frame_apply_options_def_group): New.
6183 (frame_apply_command_count): Process options with
6184 gdb::option::process_options.
6185 (frame_apply_completer): New.
6186 (frame_apply_level_completer, frame_apply_all_completer)
6187 (frame_apply_completer): New.
6188 (_initialize_stack): Update help of "frame apply", "frame apply
6189 level", "frame apply all" and "faas" to mention supported options
6190 and install command completers.
6191 * stack.h (frame_apply_all_completer): Declare.
6192 * thread.c: Include "stack.h".
6193 (tfaas_command): Add "--".
6194 (_initialize_thread): Update help "tfaas" to mention supported
6195 options and install command completer.
6196
6197 2019-06-13 Pedro Alves <palves@redhat.com>
6198
6199 * completer.c (complete_nested_command_line): New.
6200 (gdb_completion_word_break_characters_throw): Add assertion.
6201 * completer.h (complete_nested_command_line): Declare.
6202
6203 2019-06-13 Pedro Alves <palves@redhat.com>
6204
6205 * stack.c (parse_backtrace_qualifiers): New.
6206 (backtrace_command): Use it.
6207 (backtrace_command_completer): Complete on qualifiers.
6208
6209 2019-06-13 Pedro Alves <palves@redhat.com>
6210
6211 * frame.c: Include "cli/cli-option.h.
6212 (user_set_backtrace_options): New.
6213 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
6214 Delete.
6215 (get_prev_frame): Adjust.
6216 (boolean_option_def, uinteger_option_def)
6217 (set_backtrace_option_defs): New.
6218 (_initialize_frame): Adjust and use
6219 gdb::option::add_setshow_cmds_for_options to install "set
6220 backtrace past-main" and "set backtrace past-entry".
6221 * frame.h: Include "cli/cli-option.h".
6222 (struct frame_print_options): Forward declare.
6223 (print_frame_arguments_all, print_frame_arguments_scalars)
6224 (print_frame_arguments_none): Declare.
6225 (print_entry_values): Delete declaration.
6226 (struct frame_print_options, user_frame_print_options): New.
6227 (struct set_backtrace_options): New.
6228 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
6229 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
6230 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
6231 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
6232 (list_args_or_locals): Add frame_print_options parameter.
6233 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6234 * python/py-framefilter.c (enumerate_args): Pass down
6235 USER_FRAME_PRINT_OPTIONS.
6236 * stack.c: Include "cli/cli-option.h".
6237 (print_frame_arguments_all, print_frame_arguments_scalars)
6238 (print_frame_arguments_none): Declare.
6239 (print_raw_frame_arguments, print_entry_values): Delete.
6240 (user_frame_print_options): New.
6241 (boolean_option_def, enum_option_def, frame_print_option_defs):
6242 New.
6243 (struct backtrace_cmd_options): New.
6244 (bt_flag_option_def): New.
6245 (backtrace_command_option_defs): New.
6246 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6247 (print_frame_arg, read_frame_arg, print_frame_args)
6248 (print_frame_info, print_frame): Add frame_print_options parameter
6249 and use it.
6250 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
6251 (backtrace_command_1): Add frame_print_options and
6252 backtrace_cmd_options parameters and use them.
6253 (make_backtrace_options_def_group): New.
6254 (backtrace_command): Process command options with
6255 gdb::option::process_options.
6256 (backtrace_command_completer): New.
6257 (_initialize_stack): Extend "backtrace"'s help to mention
6258 supported options. Install completer for "backtrace".
6259 Install some settings commands with add_setshow_cmds_for_options.
6260
6261 2019-06-13 Pedro Alves <palves@redhat.com>
6262
6263 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
6264 and that "set/show print raw frame-arguments" are now deprecated.
6265
6266 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
6267 command.
6268 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
6269 * stack.c (_initialize_stack): Install "set/show print
6270 raw-frame-arguments", and deprecate "set/show print raw
6271 frame-arguments".
6272 * valprint.c (_initialize_valprint): Deprecate "set/show print
6273 raw".
6274
6275 2019-06-13 Pedro Alves <palves@redhat.com>
6276
6277 * compile/compile.c (struct compile_options): New.
6278 (compile_flag_option_def, compile_command_option_defs)
6279 (make_compile_options_def_group): New.
6280 (compile_file_command): Handle options with
6281 gdb::option::process_options.
6282 (compile_file_command_completer): New function.
6283 (compile_code_command): Handle options with
6284 gdb::option::process_options.
6285 (compile_code_command_completer): New function.
6286 (_initialize_compiler): Install completers for "compile code" and
6287 "compile file". Mention available options in "compile code" and
6288 "compile code"'s help.
6289 * completer.c (advance_to_completion_word): New, factored out from
6290 ...
6291 (advance_to_expression_complete_word_point): ... this.
6292 (advance_to_filename_complete_word_point): New.
6293 * completer.h (advance_to_filename_complete_word_point): New
6294 declaration.
6295
6296 2019-06-13 Pedro Alves <palves@redhat.com>
6297
6298 * compile/compile.c: Include "cli/cli-option.h".
6299 (compile_print_value): Scope data pointer is now a
6300 value_print_options pointer; adjust.
6301 (compile_print_command): Process options. Scope data pointer is
6302 now a value_print_options pointer; adjust.
6303 (_initialize_compile): Update "compile print"'s help to include
6304 supported options. Install a completer for "compile print".
6305 * cp-valprint.c (show_vtblprint, show_objectprint)
6306 (show_static_field_print): Delete.
6307 (_initialize_cp_valprint): Don't install "set print
6308 static-members", "set print vtbl", "set print object" here.
6309 * printcmd.c: Include "cli/cli-option.h" and
6310 "common/gdb_optional.h".
6311 (print_command_parse_format): Rework to fill in a
6312 value_print_options instead of a format_data.
6313 (print_value): Change parameter type from format_data pointer to
6314 value_print_options reference. Adjust.
6315 (print_command_1): Process options. Adjust to pass down a
6316 value_print_options.
6317 (print_command_completer): New.
6318 (_initialize_printcmd): Install print_command_completer as
6319 handle_brkchars completer for the "print" command. Update
6320 "print"'s help to include supported options.
6321 * valprint.c: Include "cli/cli-option.h".
6322 (show_vtblprint, show_objectprint, show_static_field_print): Moved
6323 here from cp-valprint.c.
6324 (boolean_option_def, uinteger_option_def)
6325 (value_print_option_defs, make_value_print_options_def_group):
6326 New. Use gdb::option::add_setshow_cmds_for_options to install
6327 "set print elements", "set print null-stop", "set print repeats",
6328 "set print pretty", "set print union", "set print array", "set
6329 print address", "set print symbol", "set print array-indexes".
6330 * valprint.h: Include <string> and "cli/cli-option.h".
6331 (make_value_print_options_def_group): Declare.
6332 (print_value): Change parameter type from format_data pointer to
6333 value_print_options reference.
6334 (print_command_completer): Declare.
6335
6336 2019-06-13 Pedro Alves <palves@redhat.com>
6337
6338 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
6339 (COMMON_SFILES): Add maint-test-settings.c.
6340 * cli/cli-decode.c (boolean_enums): New global, factored out from
6341 ...
6342 (add_setshow_boolean_cmd): ... here.
6343 * cli/cli-decode.h (boolean_enums): Declare.
6344 * cli/cli-option.c: New file.
6345 * cli/cli-option.h: New file.
6346 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
6347 factored out from ...
6348 (parse_cli_boolean_value(const char *)): ... this.
6349 (is_unlimited_literal): Change parameter type to pointer to
6350 pointer. Adjust and advance ARG pointer.
6351 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6352 (parse_cli_var_enum): New, factored out from ...
6353 (do_set_command): ... this. Adjust.
6354 * cli/cli-setshow.h (parse_cli_boolean_value)
6355 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6356 (parse_cli_var_enum): Declare.
6357 * cli/cli-utils.c: Include "cli/cli-option.h".
6358 (get_ulongest): New.
6359 * cli/cli-utils.h (get_ulongest): Declare.
6360 (check_for_argument): New overloads.
6361 * maint-test-options.c: New file.
6362
6363 2019-06-13 Pedro Alves <palves@redhat.com>
6364
6365 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
6366 parse a range if "-" is at the end of the string.
6367
6368 2019-06-13 Pedro Alves <palves@redhat.com>
6369
6370 * cli/cli-setshow.c (parse_auto_binary_operation)
6371 (parse_cli_boolean_value): Don't allow "o".
6372
6373 2019-06-13 Pedro Alves <palves@redhat.com>
6374
6375 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
6376 * NEWS: Mention maint test-settings KIND.
6377 * maint-test-settings.c: New file.
6378
6379 2019-06-13 Pedro Alves <palves@redhat.com>
6380
6381 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
6382 completer.
6383 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
6384 "set" completers.
6385
6386 2019-06-13 Pedro Alves <palves@redhat.com>
6387
6388 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
6389 after item.
6390
6391 2019-06-13 Pedro Alves <palves@redhat.com>
6392
6393 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
6394
6395 2019-06-13 Pedro Alves <palves@redhat.com>
6396
6397 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
6398 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
6399 call.
6400 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
6401 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
6402 calls.
6403 (check_for_argument): Skip spaces after argument.
6404
6405 2019-06-13 Pedro Alves <palves@redhat.com>
6406
6407 * thread.c (thread_apply_command): Adjust TID parsing.
6408 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
6409 detected before end of string.
6410 (tid_is_in_list): Error out if LIST is invalid.
6411
6412 2019-06-13 Pedro Alves <palves@redhat.com>
6413
6414 * completer.c (complete_line_internal_1): Rewind completion word
6415 point.
6416 (completion_tracker::advance_custom_word_point_by): Change
6417 parameter type to int.
6418 * completer.h (completion_tracker::advance_custom_word_point_by):
6419 Likewise.
6420
6421 2019-06-13 Pedro Alves <palves@redhat.com>
6422
6423 * completer.c (advance_to_completion_word): Handle delimiters.
6424
6425 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
6426
6427 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
6428
6429 2019-06-11 Tom Tromey <tom@tromey.com>
6430
6431 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
6432 (xmalloc_failed): Move to alloc.c.
6433 * alloc.c: New file.
6434 * Makefile.in (COMMON_SFILES): Add alloc.c.
6435
6436 2019-06-11 Tom Tromey <tom@tromey.com>
6437
6438 * nat/linux-waitpid.c: Don't include server.h.
6439 (linux_debug): Remove.
6440 (my_waitpid): Update.
6441
6442 2019-06-11 Tom Tromey <tromey@adacore.com>
6443
6444 * infcall.c (_initialize_infcall): Remove trailing newline from
6445 help.
6446 * user-regs.c (_initialize_user_regs): Remove trailing newline
6447 from help.
6448 * typeprint.c (_initialize_typeprint): Remove trailing newline
6449 from help.
6450 * reverse.c (_initialize_reverse): Remove trailing newlines from
6451 help.
6452 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
6453 from help.
6454 * language.c (add_set_language_command): Remove trailing newline
6455 from help.
6456 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
6457 help.
6458 * disasm.c (_initialize_disasm): Remove trailing newline from
6459 help.
6460 * top.c (init_main): Remove trailing newline from help.
6461 * interps.c (_initialize_interpreter): Remove trailing newline
6462 from help.
6463 * btrace.c (_initialize_btrace): Remove trailing newlines from
6464 help.
6465 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
6466 from help.
6467 * python/python.c (_initialize_python): Remove trailing newline
6468 from help.
6469 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
6470 help.
6471 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
6472 from help. Reformat some text.
6473 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
6474 from help.
6475 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
6476 newline from help.
6477
6478 2019-06-11 Tom Tromey <tromey@adacore.com>
6479
6480 * darwin-nat.c (darwin_decode_exception_message)
6481 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
6482
6483 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
6484
6485 * valops.c (value_slice): Check for not allocated or not
6486 associated values.
6487
6488 2019-06-10 Tom de Vries <tdevries@suse.de>
6489
6490 PR gdb/24618
6491 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
6492 sure an empty slot (defined by a 32-bit zero pair) is recognized as
6493 invalid.
6494
6495 2019-06-10 Tom de Vries <tdevries@suse.de>
6496
6497 PR gdb/24611
6498 * linespec.c (linespec_lexer_lex_string): Remove incorrect
6499 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
6500
6501 2019-06-10 Tom de Vries <tdevries@suse.de>
6502
6503 PR symtab/24545
6504 * symtab.c (struct demangled_name_entry): Add language field.
6505 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
6506 static minimal symbol". Set and use language field.
6507
6508 2019-06-10 Tom Tromey <tromey@adacore.com>
6509
6510 * ada-lang.c (_initialize_ada_language): Update help text.
6511
6512 2019-06-10 Tom Tromey <tromey@adacore.com>
6513
6514 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
6515 with a newline.
6516 * guile/guile.c (handle_boot_error): Don't end warning with a
6517 newline.
6518 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
6519 warning with a newline.
6520 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
6521 newline.
6522 (s12z_frame_cache): Likewise.
6523 * dwarf-index-cache.c (index_cache::store): Don't end warning with
6524 a newline.
6525 * solib-svr4.c (disable_probes_interface): Don't end warning with
6526 a newline.
6527 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
6528 newline.
6529 * python/python.c (do_finish_initialization): Don't end warning
6530 with a newline.
6531
6532 2019-06-10 Tom Tromey <tom@tromey.com>
6533
6534 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6535 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
6536 gdbpy_enter.
6537
6538 2019-06-10 Tom Tromey <tromey@adacore.com>
6539
6540 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
6541 data.
6542 (elf_new_init): Don't call stabsread_new_init.
6543 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
6544 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
6545 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
6546
6547 2019-06-10 Tom de Vries <tdevries@suse.de>
6548
6549 PR symtab/16264
6550 PR symtab/24517
6551 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
6552
6553 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
6554
6555 * source.c (find_and_open_source): Also rewrite relative file
6556 names.
6557
6558 2019-04-26 Amos Bird <amosbird@gmail.com>
6559
6560 * annotate.c (annotate_thread_exited): Add "thread-exited"
6561 annotation.
6562
6563 2019-06-06 Tom Tromey <tromey@adacore.com>
6564
6565 * maint.h (class scoped_command_stats): Use
6566 DISABLE_COPY_AND_ASSIGN.
6567 <print_time>: New method.
6568 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
6569 print_time.
6570 (scoped_command_stats::print_time): New method.
6571
6572 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6573
6574 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
6575 instructions of lengths 6 or 8 bytes.
6576
6577 2019-06-04 Pedro Alves <palves@redhat.com>
6578
6579 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
6580
6581 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
6582 * breakpoint.c (condition_completer): Likewise.
6583 * cli/cli-dump.c (scan_expression): Likewise.
6584 * common/filestuff.c (mkdir_recursive): Likewise.
6585 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
6586 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
6587 (gdb_abspath): Likewise.
6588 * compile/compile-cplus-types.c
6589 (compile_cplus_instance::decl_name): Likewise.
6590 * completer.c (complete_explicit_location):
6591 (signal_completer, reg_or_group_completer_1): Likewise.
6592 * cp-support.c (cp_remove_params_if_any): Likewise.
6593 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
6594 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
6595 * infcmd.c (strip_bg_char): Likewise.
6596 * linespec.c (copy_token_string): Likewise.
6597 * mi/mi-main.c (output_cores): Likewise.
6598 * psymtab.c (psymtab_search_name):
6599 * symfile.c (test_set_ext_lang_command): Likewise.
6600 * target.c (target_fileio_read_stralloc): Likewise.
6601 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
6602 * value.c (complete_internalvar): Likewise.
6603
6604 2019-06-04 Christian Biesinger <cbiesinger@google.com>
6605
6606 Add objfile property to gdb.Type.
6607 * NEWS: Mention Python API addition.
6608 * python/py-type.c (typy_get_objfile): New method.
6609
6610 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6611
6612 * NEWS: Mention the new set|show style [title|highlight].
6613 Mention changes to "show style", "help" and "apropos".
6614
6615 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6616
6617 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
6618 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
6619 instead of print_help_for_command.
6620 (print_doc_of_command): New function.
6621 (help_list): Add 'apropos -v word' suggestion.
6622 (print_help_for_command): Style the command name using title style.
6623 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
6624 (_initialize_cli_cmds): Describe -v in apropos_command help.
6625
6626 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6627
6628 * cli/cli-style.h (cli_style_option): Add name in constructor,
6629 add m_name class member, add constructor with intensity,
6630 add name class function.
6631 (cli_style_option::add_setshow_commands): Remove name argument.
6632 (highlight_style, title_style): New styles.
6633 * cli/cli-style.c (do_show): New function that shows a style
6634 characteristic styling the style name with itself.
6635 (set_style_name): New function.
6636 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
6637 Update all callers according to the changes in cli/cli-style.h.
6638 * utils.h (fputs_highlighted): New function.
6639 * utils.c (fputs_highlighted): Likewise.
6640
6641 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6642
6643 * NEWS: Mention new pipe command and new convenience variables.
6644
6645 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6646
6647 * cli/cli-cmds.c (pipe_command): New function.
6648 (_initialize_cli_cmds): Call add_com for pipe_command.
6649 Define | as an alias for pipe.
6650 (exit_status_set_internal_vars): New function.
6651 (shell_escape): Call exit_status_set_internal_vars.
6652 cli/cli-decode.c (find_command_name_length): Recognize | as
6653 a single character command.
6654
6655 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6656
6657 * gdbcmd.h (execute_command_to_ui_file): New declaration.
6658 top.c (execute_command_to_ui_file): New function, mostly a copy
6659 of execute_command_to_string.
6660 (execute_command_to_string): Implement by calling
6661 execute_command_to_ui_file.
6662
6663 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6664
6665 * top.h (saved_command_line): Remove declaration.
6666 * top.c (previous_saved_command_line, previous_repeat_arguments):
6667 New variables.
6668 (saved_command_line): Make static, define together with other
6669 'repeat variables'.
6670 (dont_repeat): Clear repeat_arguments.
6671 (repeat_previous, get_saved_command_line, save_command_line):
6672 New functions.
6673 (gdb_init): Initialize saved_command_line
6674 and previous_saved_command_line.
6675 * main.c (captured_main_1): Remove saved_command_line initialization.
6676 * event-top.c (handle_line_of_input): Update to use
6677 the new 'repeat' related functions instead of direct access to
6678 saved_command_line.
6679 * command.h (repeat_previous, get_saved_command_line,
6680 save_command_line): New declarations.
6681 (dont_repeat): Add comment.
6682
6683 2019-05-30 Tom Tromey <tromey@adacore.com>
6684
6685 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
6686 Fix comment.
6687 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
6688
6689 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
6690
6691 PR cli/24587
6692 * completer.c (complete): Initialize variable word.
6693
6694 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
6695
6696 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6697 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
6698 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
6699 'body' is NULL to the outter 'if', protecting the '!is_define'
6700 situation as well.
6701
6702 2019-05-29 Tom Tromey <tromey@adacore.com>
6703
6704 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
6705 (dwarf_unknown): New function.
6706 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
6707 (dwarf_type_encoding_name): Use dwarf_unknown.
6708
6709 2019-05-29 Tom Tromey <tromey@adacore.com>
6710
6711 PR c++/20020:
6712 * cp-valprint.c (cp_print_value_fields): Call
6713 cp_print_static_field inside "try".
6714
6715 2019-05-29 Tom Tromey <tromey@adacore.com>
6716
6717 * inflow.c (struct terminal_info): Add default operator=.
6718 * configure: Rebuild.
6719 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
6720 -Wdeprecated-copy-dtor, -Wredundant-move.
6721
6722 2019-05-29 Tom Tromey <tromey@adacore.com>
6723
6724 * NEWS: Add entry.
6725 * infcmd.c (print_return_value_1): Handle finish_print
6726 option.
6727 (show_print_finish): New function.
6728 (_initialize_infcmd): Add "set/show print finish" commands.
6729 * valprint.c (user_print_options): Initialize new member.
6730 * valprint.h (struct value_print_options) <finish_print>: New
6731 member.
6732
6733 2019-05-28 Tom Tromey <tromey@adacore.com>
6734
6735 * ada-lang.c (ada_remove_Xbn_suffix)
6736 (find_old_style_renaming_symbol)
6737 (parse_old_style_renaming): Remove.
6738 (ada_find_renaming_symbol): Don't call
6739 find_old_style_renaming_symbol.
6740 (ada_is_renaming_symbol): Rename from
6741 ada_find_renaming_symbol. Remove "block" parameter. Return
6742 bool. Now static.
6743 (ada_read_var_value): Update and simplify.
6744 * ada-exp.y (write_var_or_type): Remove old code.
6745
6746 2019-05-28 Alan Hayward <alan.hayward@arm.com>
6747
6748 * event-top.c: Remove include comment.
6749 * inflow.c (class scoped_ignore_sigttou): Move from here...
6750 * inflow.h (class scoped_ignore_sigttou): ...to here.
6751 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
6752 * top.c: Remove include comment.
6753
6754 2019-05-27 Tom Tromey <tom@tromey.com>
6755
6756 * NEWS: Fix typo.
6757
6758 2019-05-22 Tom Tromey <tromey@adacore.com>
6759
6760 * target.c (target_follow_exec): Constify parameter.
6761 * target-delegates.c: Rebuild.
6762 * remote.c (remote_target::follow_exec): Constify parameter.
6763 * infrun.c (follow_exec): Constify parameter.
6764 * target.h (struct target_ops) <follow_exec>: Constify parameter.
6765 (target_follow_exec): Likewise.
6766
6767 2019-05-22 Alan Hayward <alan.hayward@arm.com>
6768
6769 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
6770 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
6771
6772 2019-05-22 Alan Hayward <alan.hayward@arm.com>
6773
6774 * NEWS: Add debugredirect and testsuite sections.
6775
6776 2019-05-22 Simon Cook <simon.cook@embecosm.com>
6777
6778 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
6779 target descriptions using exclusively floating point register name
6780 aliases.
6781
6782 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
6783
6784 PR gdb/18644:
6785 * f-lang.c (build_fortran_types): Handle the case where
6786 gdbarch_floatformat_for_type returns a nullptr.
6787
6788 2019-05-21 Tom de Vries <tdevries@suse.de>
6789
6790 PR cli/24587
6791 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
6792
6793 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6794
6795 PR gdb/18644:
6796 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
6797 16-byte floats.
6798 * i386-tdep.c (i386_floatformat_for_type): Use
6799 floatformats_ia64_quad for the 16-byte floating point component
6800 within a fortran 32-byte complex number.
6801
6802 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6803
6804 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
6805 delete default constructor.
6806 (find_partial_die): Update to return const struct.
6807 (partial_die_parent_scope): Move variable declaration into scope
6808 of its use and change its type to auto.
6809 (guess_partial_die_structure_name): Likewise.
6810 (partial_die_info::fixup): Likewise.
6811
6812 2019-05-17 Tom Tromey <tromey@adacore.com>
6813
6814 * source.c (find_and_open_source): Remove cast.
6815
6816 2019-05-17 Tom Tromey <tromey@adacore.com>
6817
6818 * annotate.c (annotate_source): Make "filename" const.
6819 * annotate.h (annotate_source): Use const.
6820
6821 2019-05-17 Alan Hayward <alan.hayward@arm.com>
6822
6823 * disasm.c (set_disassembler_options): Send errors to stderr.
6824
6825 2019-05-17 Alan Hayward <alan.hayward@arm.com>
6826
6827 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
6828 (cli_interp_base::set_logging): Check debug_redirect.
6829 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
6830 * cli/cli-logging.c (debug_redirect): Add static variable.
6831 (pop_output_files): Add default param.
6832 (handle_redirections): Print debug setting.
6833 (show_logging_command): Likewise.
6834 (_initialize_cli_logging): Add debugredirect command.
6835 * interps.c (current_interp_set_logging): Add debug_redirect
6836 parameter.
6837 * interps.h (set_logging): Add debug_redirect parameter.
6838 (current_interp_set_logging): Likewise.
6839 * mi/mi-common.h: Likewise.
6840 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
6841
6842 2019-05-17 Alan Hayward <alan.hayward@arm.com>
6843 Tom Tromey <tromey@adacore.com>
6844
6845 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
6846 directly.
6847 * cli/cli-interp.h (make_logging_output): Remove declaration.
6848 * cli/cli-logging.c (make_logging_output): Remove function.
6849 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
6850 directly.
6851 * ui-file.c (tee_file::tee_file): Remove bools.
6852 (tee_file::~tee_file): Remove deletes.
6853 * ui-file.h (tee_file): Remove bools.
6854
6855 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
6856
6857 * mi/mi-cmds.h (mi_cmd_complete): New function.
6858 * mi/mi-main.c (mi_cmd_complete): Likewise.
6859 * mi/mi-cmds.c: Define new MI command -complete.
6860 * NEWS: Mention new -complete command.
6861
6862 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
6863
6864 * completer.h (complete): New function.
6865 * completer.c (complete): Likewise.
6866 * cli/cli-cmds.c: (complete_command): Update to use new complete()
6867 function defined in completer.h.
6868
6869 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
6870
6871 * MAINTAINERS (Write After Approval): Add myself.
6872
6873 2019-05-17 Tom de Vries <tdevries@suse.de>
6874
6875 PR gdb/24094
6876 * dwarf2read.c (struct cu_partial_die_info): New struct.
6877 (find_partial_die): Return cu_partial_die_info.
6878 (partial_die_parent_scope, guess_partial_die_structure_name)
6879 (partial_die_info::fixup): Handle new return type of find_partial_die.
6880
6881 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6882
6883 PR breakpoints/24541
6884 * stap-probe.c (stap_parse_register_operand): Make "regname" an
6885 "std::string", simplifying the algorithm.
6886
6887 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6888
6889 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
6890 (stap_static_probe_ops::get_probes): Likewise.
6891
6892 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6893
6894 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
6895 '-')" and "else if".
6896 (stap_parse_single_operand): Join checks for
6897 "gdbarch_stap_parse_special_token_p" and
6898 "gdbarch_stap_parse_special_token" in the same "if" statement.
6899 Invert check when verifying for operation on register
6900 displacement.
6901
6902 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6903
6904 * stap-probe.c (stap_get_opcode): Update comment.
6905 (stap_get_expected_argument_type): Likewise.
6906 (handle_stap_probe): Likewise.
6907
6908 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6909
6910 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
6911 return type to 'bool'. Adjust comment. Use 'bool' when
6912 appropriate.
6913 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6914 * stap-probe.c (stap_parse_argument_1): Likewise.
6915 (stap_is_operator): Likewise.
6916 (stap_is_generic_prefix): Likewise.
6917 (stap_is_register_prefix): Likewise.
6918 (stap_is_register_indirection_prefix): Likewise.
6919 (stap_is_integer_prefix): Likewise.
6920 (stap_generic_check_suffix): Likewise.
6921 (stap_check_integer_suffix): Likewise.
6922 (stap_check_register_suffix): Likewise.
6923 (stap_check_register_indirection_suffix): Likewise.
6924 (stap_parse_register_operand): Likewise.
6925 (stap_parse_single_operand): Likewise.
6926 (stap_parse_argument_1): Likewise.
6927 (stap_probe::get_argument_count): Likewise.
6928 (stap_is_operator): Likewise.
6929
6930 2019-05-16 Tom Tromey <tromey@adacore.com>
6931
6932 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
6933 keyword to foreach.
6934
6935 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
6936
6937 * linux-thread-db.c (try_thread_db_load_1): Change return type
6938 to bool.
6939 (try_thread_db_load): Likewise.
6940 (try_thread_db_load_from_pdir_1): Likewise.
6941 (try_thread_db_load_from_pdir): Likewise.
6942 (try_thread_db_load_from_sdir): Likewise.
6943 (try_thread_db_load_from_dir): Likewise.
6944 (thread_db_load_search): Likewise.
6945 (has_libpthread): Likewise.
6946 (thread_db_load): Likewise.
6947
6948 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
6949
6950 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6951 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
6952 NULL, and complain/return if that's the case.
6953
6954 2019-05-15 John Darrington <john@darrington.wattle.id.au>
6955
6956 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
6957 (advance, posn, abstract_read_memory): New functions.
6958 [struct mem_read_abstraction]: New struct.
6959 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
6960
6961 2019-05-14 Tom Tromey <tromey@adacore.com>
6962
6963 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
6964 value is not lval_memory.
6965
6966 2019-05-14 Tom Tromey <tromey@adacore.com>
6967
6968 * solib.c (info_sharedlibrary_command): Style the file name.
6969
6970 2019-05-14 Alan Hayward <alan.hayward@arm.com>
6971
6972 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
6973 (aarch64_vnv_type): Likewise.
6974 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
6975 * common/tdesc.c: Likewise.
6976 * common/tdesc.h (enum tdesc_type_kind): Likewise.
6977 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
6978 * features/aarch64-fpu.xml: Add ieee half view.
6979 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
6980 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
6981 * gdbtypes.h (struct builtin_type): Likewise.
6982 (struct objfile_type): Likewise.
6983
6984 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
6985
6986 * language.c (language_sniff_from_mangled_name): Fix "langauge"
6987 typo.
6988 * location.h (string_to_event_location): Likewise.
6989
6990 2019-05-11 Joel Brobecker <brobecker@adacore.com>
6991
6992 GDB 8.3 released.
6993
6994 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
6995
6996 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
6997 New variable declaration.
6998 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
6999 New variable.
7000 (print_one_breakpoint): Use ui_out::test_flags and new global
7001 variable to compute use_fixed_output.
7002 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
7003 Remove.
7004 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
7005 (mi_multi_location_breakpoint_output_fixed): Remove.
7006 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
7007 new variable.
7008 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
7009 fix_multi_location_breakpoint_output flag if version >= 3.
7010 * ui-out.h (enum ui_out_flag)
7011 <fix_multi_location_breakpoint_output>: New enumerator.
7012
7013 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
7014
7015 * contrib/cc-with-tweaks.sh: Validate dwz's work.
7016
7017 2019-05-10 Tom Tromey <tromey@adacore.com>
7018
7019 * ada-lang.c (catch_ada_completer): New function.
7020 (_initialize_ada_language): Use it.
7021
7022 2019-05-10 Tom Tromey <tromey@adacore.com>
7023
7024 * thread.c (print_thread_info): Make "requested_threads" const.
7025 * gdbthread.h (print_thread_info): Make "requested_threads"
7026 const.
7027 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
7028 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
7029
7030 2019-05-08 Tom Tromey <tom@tromey.com>
7031
7032 * gdbtypes.c (objfile_type_data): Change type.
7033 (objfile_type, _initialize_gdbtypes): Update.
7034
7035 2019-05-08 Tom Tromey <tom@tromey.com>
7036
7037 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
7038 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
7039 (_initialize_dwarf2_frame): Update.
7040
7041 2019-05-08 Tom Tromey <tom@tromey.com>
7042
7043 * objc-lang.c (objc_objfile_data): Change type.
7044 (find_methods): Update.
7045 (_initialize_objc_lang): Remove.
7046
7047 2019-05-08 Tom Tromey <tom@tromey.com>
7048
7049 * stabsread.c (rs6000_builtin_type_data): Change type.
7050 (rs6000_builtin_type, _initialize_stabsread): Update.
7051
7052 2019-05-08 Tom Tromey <tom@tromey.com>
7053
7054 * mips-tdep.c (mips_pdr_data): Remove.
7055 (_initialize_mips_tdep): Update.
7056
7057 2019-05-08 Tom Tromey <tom@tromey.com>
7058
7059 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
7060 (hppa_init_objfile_priv_data, read_unwind_info)
7061 (find_unwind_entry, _initialize_hppa_tdep): Update.
7062
7063 2019-05-08 Tom Tromey <tom@tromey.com>
7064
7065 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
7066 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
7067 on obstack.
7068 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
7069
7070 2019-05-08 Tom Tromey <tom@tromey.com>
7071
7072 * mdebugread.c (basic_type_data): Change type.
7073 (basic_type, _initialize_mdebugread): Update.
7074
7075 2019-05-08 Tom Tromey <tom@tromey.com>
7076
7077 * common/gdb_unique_ptr.h (struct noop_deleter): New.
7078
7079 2019-05-08 Tom Tromey <tom@tromey.com>
7080
7081 * nto-tdep.c (nto_inferior_data_reg): Change type.
7082 (nto_inferior_data): Update.
7083 (nto_inferior_data_cleanup, nto_new_inferior_data)
7084 (_initialize_nto_tdep): Remove.
7085 * nto-tdep.h (struct nto_inferior_data): Add initializers.
7086
7087 2019-05-08 Tom Tromey <tom@tromey.com>
7088
7089 * ada-lang.c (struct ada_inferior_data): Add initializers.
7090 (ada_inferior_data): Change type.
7091 (ada_inferior_data_cleanup): Remove.
7092 (get_ada_inferior_data, ada_inferior_exit)
7093 (struct ada_pspace_data): Add initializers, destructor.
7094 (ada_pspace_data_handle): Change type.
7095 (get_ada_pspace_data): Update.
7096 (ada_pspace_data_cleanup): Remove.
7097
7098 2019-05-08 Tom Tromey <tom@tromey.com>
7099
7100 * coffread.c (struct coff_symfile_info): Add initializers.
7101 (coff_objfile_data_key): Move lower. Change type.
7102 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
7103 Update.
7104 (coff_free_info): Remove.
7105
7106 2019-05-08 Tom Tromey <tom@tromey.com>
7107
7108 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
7109 (fbsd_pspace_data_handle): Move lower. Change type.
7110 (get_fbsd_pspace_data): Update.
7111 (fbsd_pspace_data_cleanup): Remove.
7112 (_initialize_fbsd_tdep): Update.
7113
7114 2019-05-08 Tom Tromey <tom@tromey.com>
7115
7116 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
7117 (get_ada_tasks_pspace_data): Update.
7118 (ada_tasks_pspace_data_cleanup): Remove.
7119 (_initialize_tasks): Update.
7120 (ada_tasks_inferior_data_handle): Change type.
7121 (get_ada_tasks_inferior_data): Update.
7122 (ada_tasks_inferior_data_cleanup): Remove.
7123 (struct ada_tasks_pspace_data): Add initializers.
7124
7125 2019-05-08 Tom Tromey <tom@tromey.com>
7126
7127 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
7128 * symfile-debug.c (debug_sym_get_probes): Change type.
7129 * stap-probe.c (handle_stap_probe):
7130 (stap_static_probe_ops::get_probes): Change type.
7131 * probe.h (class static_probe_ops) <get_probes>: Change type.
7132 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
7133 (parse_probes_in_pspace): Update.
7134 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
7135 Update.
7136 (any_static_probe_ops::get_probes): Change type.
7137 * elfread.c (elfread_data): New typedef.
7138 (probe_key): Change type.
7139 (elf_get_probes): Likewise. Update.
7140 (probe_key_free): Remove.
7141 (_initialize_elfread): Update.
7142 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
7143 Change type.
7144 (dtrace_process_dof_probe, dtrace_process_dof)
7145 (dtrace_static_probe_ops::get_probe): Change type.
7146
7147 2019-05-08 Tom Tromey <tom@tromey.com>
7148
7149 * xcoffread.c (struct xcoff_symfile_info): Rename from
7150 coff_symfile_info. Add initializers.
7151 (xcoff_objfile_data_key): Move lower. Change type.
7152 (XCOFF_DATA): Rewrite.
7153 (xcoff_free_info): Remove.
7154 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
7155 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
7156 (xcoff_initial_scan): Update.
7157
7158 2019-05-08 Tom Tromey <tom@tromey.com>
7159
7160 * solib-svr4.c (struct svr4_info): Add initializers and
7161 destructor.
7162 <probes_table>: Now an htab_up.
7163 (solib_svr4_pspace_data): Change type.
7164 (free_probes_table): Simplify.
7165 (~svr4_info): Rename from svr4_pspace_data_cleanup.
7166 (get_svr4_info, probes_table_htab_remove_objfile_probes)
7167 (probes_table_remove_objfile_probes, register_solib_event_probe)
7168 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
7169 (_initialize_svr4_solib): Update.
7170
7171 2019-05-08 Tom Tromey <tom@tromey.com>
7172
7173 * remote.c (remote_pspace_data): Change type.
7174 (remote_pspace_data_cleanup): Remove.
7175 (get_remote_exec_file, set_pspace_remote_exec_file)
7176 (_initialize_remote): Update.
7177
7178 2019-05-08 Tom Tromey <tom@tromey.com>
7179
7180 * breakpoint.c (breakpoint_objfile_key): Change type.
7181 (get_breakpoint_objfile_data): Update.
7182 (free_breakpoint_objfile_data): Remove.
7183 (_initialize_breakpoint): Update.
7184
7185 2019-05-08 Tom Tromey <tom@tromey.com>
7186
7187 * linux-tdep.c (struct linux_info): Add initializers.
7188 (linux_inferior_data): Move. Change type.
7189 (invalidate_linux_cache_inf): Update.
7190 (linux_inferior_data_cleanup): Remove.
7191 (get_linux_inferior_data, _initialize_linux_tdep): Update.
7192
7193 2019-05-08 Tom Tromey <tom@tromey.com>
7194
7195 * auxv.c (auxv_inferior_data): Move. Change type.
7196 (auxv_inferior_data_cleanup): Remove.
7197 (invalidate_auxv_cache_inf): Rewrite.
7198 (get_auxv_inferior_data, _initialize_auxv): Update.
7199
7200 2019-05-08 Tom Tromey <tom@tromey.com>
7201
7202 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
7203 (symfile_debug_objfile_data_key): Change type.
7204 (symfile_debug_installed, debug_qf_has_symbols)
7205 (debug_qf_find_last_source_symtab)
7206 (debug_qf_forget_cached_source_info)
7207 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
7208 (debug_qf_print_stats, debug_qf_dump)
7209 (debug_qf_expand_symtabs_for_function)
7210 (debug_qf_expand_all_symtabs)
7211 (debug_qf_expand_symtabs_with_fullname)
7212 (debug_qf_map_matching_symbols)
7213 (debug_qf_expand_symtabs_matching)
7214 (debug_qf_find_pc_sect_compunit_symtab)
7215 (debug_qf_map_symbol_filenames)
7216 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
7217 (debug_sym_new_init, debug_sym_init, debug_sym_read)
7218 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
7219 (debug_sym_read_linetable, debug_sym_relocate): Update.
7220 (symfile_debug_free_objfile): Remove.
7221 (install_symfile_debug_logging, _initialize_symfile_debug):
7222 Update.
7223
7224 2019-05-08 Tom Tromey <tom@tromey.com>
7225
7226 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
7227 allocate_on_obstack.
7228 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
7229 (get_dwarf2_per_objfile): Update.
7230 (set_dwarf2_per_objfile): Remove.
7231 (dwarf2_has_info, dwarf2_get_section_info): Update.
7232 (dwarf2_free_objfile): Remove.
7233 (_initialize_dwarf2_read): Update.
7234
7235 2019-05-08 Tom Tromey <tom@tromey.com>
7236
7237 * auto-load.c (struct auto_load_pspace_info): Add destructor and
7238 initializers.
7239 <unsupported_script_warning_printed,
7240 script_not_found_warning_printed>: Now bool.
7241 (auto_load_pspace_data): Change type.
7242 (~auto_load_pspace_info): Rename from
7243 auto_load_pspace_data_cleanup.
7244 (get_auto_load_pspace_data, init_loaded_scripts_info)
7245 (clear_section_scripts, maybe_print_unsupported_script_warning)
7246 (maybe_print_script_not_found_warning, _initialize_auto_load):
7247 Update.
7248
7249 2019-05-08 Tom Tromey <tom@tromey.com>
7250
7251 * objfiles.c (objfile_pspace_info): Add destructor and
7252 initializers.
7253 (objfiles_pspace_data): Change type.
7254 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
7255 (get_objfile_pspace_data): Update.
7256 (objfiles_bfd_data): Change type.
7257 (get_objfile_bfd_data): Update.
7258 (objfile_bfd_data_free, _initialize_objfiles): Remove.
7259
7260 2019-05-08 Tom Tromey <tom@tromey.com>
7261
7262 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
7263 Change type.
7264 (get_catch_syscall_inferior_data): Update.
7265 (catch_syscall_inferior_data_cleanup): Remove.
7266 (_initialize_break_catch_syscall): Update.
7267
7268 2019-05-08 Tom Tromey <tom@tromey.com>
7269
7270 * inflow.c (struct terminal_info): Add destructor and
7271 initializers.
7272 (inflow_inferior_data): Change type.
7273 (~terminal_info): Rename from inflow_inferior_data_cleanup.
7274 (get_inflow_inferior_data, inflow_inferior_exit)
7275 (swap_terminal_info, _initialize_inflow): Update.
7276
7277 2019-05-08 Tom Tromey <tom@tromey.com>
7278
7279 * target-dcache.c (target_dcache_cleanup): Remove.
7280 (target_dcache_aspace_key): Change type.
7281 (target_dcache_init_p, target_dcache_invalidate)
7282 (target_dcache_get, target_dcache_get_or_init)
7283 (_initialize_target_dcache): Update.
7284 * dcache.h (struct dcache_deleter): New.
7285
7286 2019-05-08 Tom Tromey <tom@tromey.com>
7287
7288 * symtab.c (struct symbol_cache): Add destructor and
7289 initializers.
7290 (symbol_cache_key): Move. Change type.
7291 (make_symbol_cache, free_symbol_cache): Remove.
7292 (get_symbol_cache): Update.
7293 (symbol_cache_cleanup): Remove.
7294 (ALL_PSPACES, symbol_cache_flush)
7295 (maintenance_print_symbol_cache)
7296 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
7297 Update.
7298
7299 2019-05-08 Tom Tromey <tom@tromey.com>
7300
7301 * symtab.c (struct main_info): Add destructor and initializers.
7302 (main_progspace_key): Move. Change type.
7303 (get_main_info): Update.
7304 (main_info_cleanup): Remove.
7305 (_initialize_symtab): Update.
7306
7307 2019-05-08 Tom Tromey <tom@tromey.com>
7308
7309 * registry.h (DECLARE_REGISTRY): Define the _key class.
7310
7311 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7312
7313 * NEWS: Merge two 'New commands' sections.
7314
7315 2019-05-08 Joel Brobecker <brobecker@adacore.com>
7316
7317 * ada-valprint.c (ada_val_print_gnat_array): Remove language
7318 parameter and use Ada language definition instead.
7319 (ada_val_print_ptr): Remove unused language parameter.
7320 (ada_val_print_num): Remove language parameter and use Ada language
7321 definition instead.
7322 (ada_val_print_enum, ada_val_print_flt): Remove unused language
7323 parameter.
7324 (ada_val_print_struct_union, ada_val_print_ref): Remove language
7325 parameter and use Ada language definition instead.
7326 (ada_val_print_1): Update all ada_val_print_xxx calls.
7327 Remove language parameter.
7328 (ada_val_print): Update ada_val_print_1 call.
7329
7330 2019-05-08 Tom Tromey <tromey@adacore.com>
7331
7332 * remote.c (remote_hw_watchpoint_limit)
7333 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
7334 Now static.
7335
7336 2019-05-08 Tom Tromey <tromey@adacore.com>
7337
7338 * maint.c (_initialize_maint_cmds): Move initialization code to
7339 remote.c.
7340 (watchdog, show_watchdog): Move to remote.c.
7341 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
7342 "watchdog" static.
7343 (_initialize_remote): Move initialization code from maint.c.
7344 * defs.h (watchdog): Don't declare.
7345
7346 2019-05-08 Tom Tromey <tromey@adacore.com>
7347
7348 * tui/tui-interp.c: Include main.h.
7349 * interps.c: Include main.h.
7350 * main.h (interpreter_p): Declare.
7351 * defs.h (interpreter_p): Don't declare.
7352
7353 2019-05-08 Tom Tromey <tromey@adacore.com>
7354
7355 * dwarf2loc.c: Include dwarf2read.h.
7356 * defs.h (read_unsigned_leb128): Don't declare.
7357 * dwarf2read.h (read_unsigned_leb128): Declare.
7358
7359 2019-05-08 Tom Tromey <tromey@adacore.com>
7360
7361 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
7362 method.
7363
7364 2019-05-08 Tom Tromey <tromey@adacore.com>
7365
7366 * utils.c (fputs_maybe_filtered): Reset style after paging, even
7367 when no wrap column is set.
7368
7369 2019-05-08 Tom Tromey <tromey@adacore.com>
7370
7371 * c-lang.c (c_get_string): Handle non-C-style arrays.
7372
7373 2019-05-08 Tom Tromey <tromey@adacore.com>
7374
7375 * typeprint.c (print_offset_data::update): Print the bit offset,
7376 not the number of bits remaining.
7377
7378 2019-05-08 Tom Tromey <tromey@adacore.com>
7379
7380 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
7381 padding at end of comment.
7382
7383 2019-05-08 Tom Tromey <tromey@adacore.com>
7384
7385 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
7386 Compare main types.
7387
7388 2019-05-06 Tom Tromey <tom@tromey.com>
7389
7390 * common/scoped_mmap.c: Include common-defs.h.
7391 * common/scoped_mmap.h: Don't include config.h.
7392
7393 2019-05-04 Tom Tromey <tom@tromey.com>
7394
7395 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
7396 (struct aarch64_call_info): Add initializers.
7397 <si>: Now a std::vector.
7398 (pass_on_stack, aarch64_push_dummy_call): Update.
7399
7400 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
7401 Tom Tromey <tom@tromey.com>
7402
7403 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
7404 (ppc_threads): Now a std::vector. Now static.
7405 (hwdebug_find_thread_points_by_tid)
7406 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
7407 Update.
7408
7409 2019-05-04 Tom Tromey <tom@tromey.com>
7410
7411 * arc-tdep.c (arc_tdesc_init): Return bool.
7412
7413 2019-05-04 Tom Tromey <tom@tromey.com>
7414
7415 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
7416 Use gdb_assert_not_reached.
7417
7418 2019-05-04 Tom Tromey <tom@tromey.com>
7419
7420 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
7421 "false".
7422
7423 2019-05-04 Tom Tromey <tom@tromey.com>
7424
7425 * arc-tdep.c (arc_tdesc_init): Use bool.
7426
7427 2019-05-04 Tom Tromey <tom@tromey.com>
7428
7429 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
7430
7431 2019-05-04 Tom Tromey <tom@tromey.com>
7432
7433 * cli/cli-cmds.c (valid_command_p): Return bool.
7434
7435 2019-05-04 Tom Tromey <tom@tromey.com>
7436
7437 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
7438 * command.h (valid_user_defined_cmd_name_p): Channge return type.
7439
7440 2019-05-04 Raul Tambre <raul@tambre.ee>
7441
7442 * python/lib/gdb/prompt.py (_ExtendedPrompt)
7443 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
7444 operator for comparison.
7445
7446 2019-05-04 Tom Tromey <tom@tromey.com>
7447
7448 * psymtab.c (psymbol_name_matches, match_partial_symbol)
7449 (lookup_partial_symbol, print_partial_symbols)
7450 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
7451 (psymbol_compare): Update.
7452 (add_psymbol_to_bcache): Clear the entire psymbol.
7453 (maintenance_check_psymtabs): Update.
7454 * psympriv.h (struct partial_symbol): Don't derive from
7455 general_symbol_info.
7456 <obj_section, unrelocated_address, address,
7457 set_unrelocated_address>: Update.
7458 <ginfo>: New member.
7459 * dwarf-index-write.c (write_psymbols, debug_names::insert)
7460 (debug_names::write_psymbols): Update.
7461
7462 2019-05-04 Tom de Vries <tdevries@suse.de>
7463
7464 * contrib/cc-with-tweaks.sh: Support -n arg.
7465
7466 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7467
7468 * corelow.c (core_target::detach): Ensure frame cache and
7469 register caches are cleared.
7470 inferior.c (exit_inferior_1): Likewise.
7471
7472 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
7473 Tom Tromey <tom@tromey.com>
7474
7475 * dictionary.c (collate_pending_symbols_by_language): Remove
7476 "struct" from foreach.
7477 * symtab.c (lookup_global_symbol_from_objfile)
7478 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
7479 foreach.
7480 * ser-tcp.c (net_open): Remove "struct" from foreach.
7481 * objfiles.c (objfile_relocate, objfile_rebase)
7482 (objfile_has_symbols): Remove "struct" from foreach.
7483 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
7484 from foreach.
7485 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
7486 foreach.
7487 * darwin-nat.c (thread_info_from_private_thread_info): Remove
7488 "struct" from foreach.
7489 * ada-lang.c (create_excep_cond_exprs)
7490 (ada_exception_catchpoint_cond_string): Remove "struct" from
7491 foreach.
7492
7493 2019-05-03 Tom Tromey <tromey@adacore.com>
7494
7495 * ada-exp.y (convert_char_literal): Check suffix of each
7496 enumerator.
7497
7498 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
7499
7500 PR ada/21406:
7501 * ada-exp.y (yywrap): Don't define.
7502 * ada-lex.l (%option): Add noyywrap
7503 (yywrap): Remove.
7504
7505 2019-05-03 Eli Zaretskii <eliz@gnu.org>
7506
7507 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
7508 _WIN32_WINNT to the XP level, unless already defined to a higher
7509 level.
7510
7511 * unittests/parse-connection-spec-selftests.c:
7512 * ser-tcp.c:
7513 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
7514 override.
7515
7516 * symfile.c (find_separate_debug_file): Remove colon from the
7517 drive spec of DOS/Windows file names of the target, so that the
7518 file name produced from DEBUGDIR and the target's directory will
7519 be valid on DOS/Windows systems.
7520
7521 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
7522
7523 * rust-lang.c (val_print_struct): Handle printing structures
7524 containing strings.
7525
7526 2019-05-02 Tom Tromey <tromey@adacore.com>
7527
7528 * valarith.c (_initialize_valarith): Remove.
7529
7530 2019-05-01 Tom Tromey <tromey@adacore.com>
7531
7532 * ada-lang.c (ada_value_primitive_field): Treat more fields as
7533 bitfields.
7534
7535 2019-05-01 Tom Tromey <tromey@adacore.com>
7536
7537 * ada-lang.c (ada_value_assign): Correctly compute starting offset
7538 for big-endian copies.
7539
7540 2019-04-30 Ali Tamur <tamur@google.com>
7541 * gdb/dwarf2read.c (read_3_bytes): New declaration.
7542 (read_attribute_value): Added DW_FORM_strx1-4 cases.
7543 (read_3_bytes): New function.
7544
7545 2019-04-30 Joel Brobecker <brobecker@adacore.com>
7546
7547 * windows-nat.c (main_thread_id): Delete.
7548 (handle_output_debug_string): Replace main_thread_id by
7549 current_event.dwThreadId.
7550 (fake_create_process): Likewise.
7551 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
7552 Do not set main_thread_id.
7553 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
7554 current_event.dwThreadId.
7555 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
7556
7557 2019-04-30 Joel Brobecker <brobecker@adacore.com>
7558
7559 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
7560 Use current_event.dwThreadId instead of main_thread_id.
7561
7562 2019-04-30 Tom Tromey <tromey@adacore.com>
7563
7564 * ada-lang.c (ada_lookup_simple_minsyms): New function.
7565 (create_excep_cond_exprs): Iterate over program spaces.
7566 (ada_exception_catchpoint_cond_string): Examine all minimal
7567 symbols for exception types.
7568
7569 2019-04-30 Tom Tromey <tromey@adacore.com>
7570
7571 PR c++/24470:
7572 * dwarf2read.c (process_structure_scope): Handle case where type
7573 has template parameters but no symbol was created.
7574
7575 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7576 Chris January <chris.january@arm.com>
7577
7578 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
7579 qualifier.
7580 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
7581
7582 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7583
7584 * f-typeprint.c (f_print_type): Update rules for printing
7585 whitespace.
7586 (f_type_print_varspec_suffix): Likewise.
7587
7588 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7589 Chris January <chris.january@arm.com>
7590
7591 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
7592 function arguments.
7593
7594 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7595
7596 * f-lang.c (build_fortran_types): Change name of void type to
7597 lower case.
7598 * f-typeprint.c (f_type_print_base): Print the name of the void
7599 type, rather than a fixed string.
7600 * f-valprint.c (f_decorations): Use lower case void string.
7601
7602 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7603 Chris January <chris.january@arm.com>
7604
7605 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
7606 types for Fortran.
7607
7608 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7609 Chris January <chris.january@arm.com>
7610 David Lecomber <david.lecomber@arm.com>
7611
7612 * f-exp.y (BINOP_INTRINSIC): New token.
7613 (exp): New parser rule handling BINOP_INTRINSIC.
7614 (f77_keywords): Add new builtin procedures.
7615 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
7616 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7617 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
7618 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7619 (print_unop_subexp_f): New function.
7620 (print_binop_subexp_f): New function.
7621 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7622 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7623 (dump_subexp_body_f): Likewise.
7624 (operator_check_f): Likewise.
7625 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7626 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
7627
7628 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7629
7630 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
7631 UNOP_KIND.
7632 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
7633 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
7634 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
7635 (operator_length_f): New fuction.
7636 (print_subexp_f): New function.
7637 (op_name_f): New function.
7638 (dump_subexp_body_f): New function.
7639 (operator_check_f): New function.
7640 (exp_descriptor_f): Replace standard expression handling functions
7641 with new functions.
7642 * gdb/fortran-operator.def: New file.
7643 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
7644 * gdb/std-operator.def: Remove UNOP_KIND.
7645
7646 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7647
7648 * std-operator.def: Remove unbalanced, stray double quote
7649 character.
7650
7651 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7652 Chris January <chris.january@arm.com>
7653 Daniel Everett <daniel.everett@arm.com>
7654 Nick Forrington <nick.forrington@arm.com>
7655 Richard Bunt <richard.bunt@arm.com>
7656
7657 * cp-valprint.c (cp_print_value_fields): Allow an additional level
7658 of depth when printing anonymous structs or unions.
7659 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
7660 Don't print either the top-level value, or the children if the
7661 max-depth is exceeded.
7662 (ppscm_print_children): When printing the key of a map, allow one
7663 extra level of depth.
7664 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
7665 print either the top-level value, or the children if the max-depth
7666 is exceeded.
7667 (print_children): When printing the key of a map, allow one extra
7668 level of depth.
7669 * python/py-value.c (valpy_format_string): Add max_depth keyword.
7670 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
7671 (user_print_options): Initialise max_depth field.
7672 (val_print_scalar_or_string_type_p): New function.
7673 (val_print): Check to see if the max depth has been reached.
7674 (val_print_check_max_depth): Define new function.
7675 (show_print_max_depth): New function.
7676 (_initialize_valprint): Add 'print max-depth' option.
7677 * valprint.h (struct value_print_options) <max_depth>: New field.
7678 (val_print_check_max_depth): Declare new function.
7679 * NEWS: Document new feature.
7680
7681 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7682
7683 * ada-lang.c (ada_language_defn): Initialise new field.
7684 * c-lang.c (c_is_string_type_p): New function.
7685 (c_language_defn): Initialise new field.
7686 (cplus_language_defn): Initialise new field.
7687 (asm_language_defn): Initialise new field.
7688 (minimal_language_defn): Initialise new field.
7689 * c-lang.h (c_is_string_type_p): Declare new function.
7690 * d-lang.c (d_language_defn): Initialise new field.
7691 * f-lang.c (f_is_string_type_p): New function.
7692 (f_language_defn): Initialise new field.
7693 * go-lang.c (go_is_string_type_p): New function.
7694 (go_language_defn): Initialise new field.
7695 * language.c (default_is_string_type_p): New function.
7696 (unknown_language_defn): Initialise new field.
7697 (auto_language_defn): Initialise new field.
7698 * language.h (struct language_defn) <la_is_string_type_p>: New
7699 member variable.
7700 (default_is_string_type_p): Declare new function.
7701 * m2-lang.c (m2_language_defn): Initialise new field.
7702 * objc-lang.c (objc_language_defn): Initialise new field.
7703 * opencl-lang.c (opencl_language_defn): Initialise new field.
7704 * p-lang.c (pascal_is_string_type_p): New function.
7705 (pascal_language_defn): Initialise new field.
7706 * rust-lang.c (rust_is_string_type_p): New function.
7707 (rust_language_defn): Initialise new field.
7708
7709 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7710
7711 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
7712 New field.
7713 * ada-lang.c (ada_language_defn): Initialise new field.
7714 * c-lang.c (c_language_defn): Likewise.
7715 (cplus_language_defn): Likewise.
7716 (asm_language_defn): Likewise.
7717 (minimal_language_defn): Likewise.
7718 * d-lang.c (d_language_defn): Likewise.
7719 * f-lang.c (f_language_defn): Likewise.
7720 * go-lang.c (go_language_defn): Likewise.
7721 * language.c (unknown_language_defn): Likewise.
7722 (auto_language_defn): Likewise.
7723 * m2-lang.c (m2_language_defn): Likewise.
7724 * objc-lang.c (objc_language_defn): Likewise.
7725 * opencl-lang.c (opencl_language_defn): Likewise.
7726 * p-lang.c (pascal_language_defn): Likewise.
7727 * rust-lang.c (rust_language_defn): Likewise.
7728
7729 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7730
7731 * ada-lang.c (ada_is_character_type): Change return type to bool.
7732 (ada_is_string_type): Likewise.
7733 * ada-lang.h (ada_is_character_type): Update declaration
7734 (ada_is_string_type): Likewise.
7735
7736 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7737
7738 Support style in 'frame|thread apply'
7739
7740 * gdbcmd.h (execute_command_to_string): New term_out parameter.
7741 * record.c (record_start, record_stop): Update callers of
7742 execute_command_to_string with false.
7743 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
7744 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
7745 methods.
7746 (class string_file): New constructor with term_out parameter.
7747 Override methods term_out and can_emit_style_escape. New member
7748 term_out.
7749 (class stdio_file): Override can_emit_style_escape.
7750 (class tee_file): Override term_out and can_emit_style_escape.
7751 * utils.h (can_emit_style_escape): Remove.
7752 * utils.c (can_emit_style_escape): Likewise.
7753 Update all callers of can_emit_style_escape (SOMESTREAM) to
7754 SOMESTREAM->can_emit_style_escape.
7755 * source-cache.c (source_cache::get_source_lines): Likewise.
7756 * stack.c (frame_apply_command_count): Call execute_command_to_string
7757 passing the term_out characteristic of the current gdb_stdout.
7758 * thread.c (thr_try_catch_cmd): Likewise.
7759 * top.c (execute_command_to_string): pass term_out parameter
7760 to construct the string_file for the command output.
7761 * ui-file.c (term_cli_styling): New function (most code moved
7762 from utils.c can_emit_style_escape).
7763 (string_file::string_file, string_file::can_emit_style_escape,
7764 stdio_file::can_emit_style_escape, tee_file::term_out,
7765 tee_file::can_emit_style_escape): New functions.
7766
7767 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7768
7769 * NEWS: Mention the new set|show may-call-functions.
7770 * infcall.c (may_call_functions_p): New variable.
7771 (show_may_call_functions_p): New function.
7772 (call_function_by_hand_dummy): Throws an error if not
7773 may-call-functions.
7774 (_initialize_infcall): Call add_setshow_boolean_cmd for
7775 may-call-functions.
7776
7777 2019-04-25 Keith Seitz <keiths@redhat.com>
7778
7779 PR c++/24367
7780 * cp-support.c (inspect_type): Don't attempt substitutions
7781 of symbol with the same name.
7782
7783 2019-04-25 Tom Tromey <tromey@adacore.com>
7784
7785 PR gdb/24475:
7786 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
7787 static.
7788
7789 2019-04-25 Tom Tromey <tromey@adacore.com>
7790
7791 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
7792 rvalue reference.
7793 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
7794 (gdb_xml_parser::parse): Use std::move.
7795 * python/python-internal.h (gdbpy_convert_exception): Take a const
7796 reference.
7797 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
7798 std::move.
7799 * python/py-utils.c (gdbpy_convert_exception): Take a const
7800 reference.
7801 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7802 Use std::move.
7803 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7804 Use std::move.
7805 * mi/mi-main.c (mi_print_exception): Take a const reference.
7806 * main.c (handle_command_errors): Take a const reference.
7807 * linespec.c (parse_linespec): Use std::move.
7808 * infcall.c (run_inferior_call): Use std::move.
7809 (call_function_by_hand_dummy): Use std::move.
7810 * exec.c (try_open_exec_file): Use std::move.
7811 * exceptions.h (exception_print, exception_fprintf)
7812 (exception_print_same): Update.
7813 * exceptions.c (print_exception, exception_print)
7814 (exception_fprintf, exception_print_same): Change parameters to
7815 const reference.
7816 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
7817 * common/new-op.c: Use std::move.
7818 * common/common-exceptions.h (struct gdb_exception): Add move
7819 constructor.
7820 (struct gdb_exception_error, struct gdb_exception_quit, struct
7821 gdb_quit_bad_alloc): Change constructor to move constructor.
7822 (throw_exception): Change parameter to rvalue reference.
7823 * common/common-exceptions.c (throw_exception): Take rvalue
7824 reference.
7825 * cli/cli-interp.c (safe_execute_command): Use std::move.
7826 * breakpoint.c (insert_bp_location, location_to_sals): Use
7827 std::move.
7828
7829 2019-04-25 Tom Tromey <tromey@adacore.com>
7830
7831 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
7832 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
7833 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
7834 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
7835 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
7836 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
7837 guile/scm-value.c: Use unpack.
7838 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
7839 gdbscm_gdb_exception.
7840 (gdbscm_throw_gdb_exception): Likewise.
7841 (struct gdbscm_gdb_exception): New.
7842 (unpack): New function.
7843 (gdbscm_wrap): Use unpack.
7844
7845 2019-04-25 Tom Tromey <tromey@adacore.com>
7846
7847 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7848 (gdb_rl_callback_handler): Use std::move.
7849 * common/common-exceptions.h (struct gdb_exception): Add move
7850 assignment operator.
7851 (throw_exception_sjlj): Change "exception" to const reference.
7852 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
7853 (throw_exception_sjlj): Change "exception" to const reference.
7854
7855 2019-04-25 Tom Tromey <tromey@adacore.com>
7856
7857 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
7858 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
7859 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7860 Update.
7861 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7862 Update.
7863 * mi/mi-interp.c (mi_interp::exec): Update.
7864 * linespec.c (parse_linespec): Update.
7865 * infcall.c (run_inferior_call): Update.
7866 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
7867 * guile/scm-symbol.c (gdbscm_lookup_symbol)
7868 (gdbscm_lookup_global_symbol): Update.
7869 * guile/scm-param.c (gdbscm_parameter_value): Update.
7870 * guile/scm-frame.c (gdbscm_frame_read_register)
7871 (gdbscm_frame_read_var): Update.
7872 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7873 * exec.c (try_open_exec_file): Update.
7874 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7875 (gdb_rl_callback_handler): Update.
7876 * common/common-exceptions.h (exception_none): Don't declare.
7877 * common/common-exceptions.c (exception_none): Don't define.
7878 (struct catcher) <exception>: Update.
7879 * cli/cli-interp.c (safe_execute_command): Update.
7880 * breakpoint.c (insert_bp_location, location_to_sals): Update.
7881
7882 2019-04-25 Ali Tamur <tamur@google.com>
7883
7884 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
7885 (read_attribute_value): Likewise.
7886 (dwarf2_read_addr_index): Update comment.
7887 (read_str_index): Add DW_FORM_strx.
7888 (dwarf2_string_attr): Likewise.
7889 (dwarf2_const_value_attr): Likewise.
7890 (dump_die_shallow): Likewise.
7891 (dwarf2_fetch_constant_bytes): Likewise.
7892 (skip_form_bytes): Likewise.
7893 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
7894
7895 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7896
7897 PR corefiles/11608
7898 PR corefiles/18187
7899 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
7900 OFFSET. Verify if current mapping contains an ELF header.
7901 (linux_find_memory_regions_full): Adjust call to
7902 dump_mapping_p.
7903
7904 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
7905 Kang Li <kanglictf@gmail.com>
7906
7907 PR gdb/21600
7908
7909 * dwarf2-frame.c (read_initial_length): Be consistent about using
7910 unsigned representation of length.
7911 (decode_frame_entry_1): Likewise. Check for wraparound of
7912 end pointer as well as buffer overflow.
7913
7914 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7915
7916 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
7917 "vq".
7918
7919 2019-04-24 Tom Tromey <tromey@adacore.com>
7920
7921 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
7922
7923 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7924
7925 * s12z-tdep.c (s12z_unwind_pc): Delete.
7926 (s12z_unwind_sp): Delete.
7927 (s12z_gdbarch_init): Don't register deleted functions with
7928 gdbarch.
7929
7930 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7931
7932 * rl78-tdep.c (rl78_unwind_sp): Delete.
7933 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
7934
7935 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7936
7937 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
7938 (xstormy16_unwind_pc): Delete.
7939 (xstormy16_dummy_id): Delete.
7940 (xstormy16_gdbarch_init): Don't register deleted functions with
7941 gdbarch.
7942
7943 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7944
7945 * vax-tdep.c (vax_unwind_pc): Delete.
7946 (vax_gdbarch_init): Don't register deleted function with gdbarch.
7947
7948 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7949
7950 * v850-tdep.c (v850_unwind_sp): Delete.
7951 (v850_unwind_pc): Delete.
7952 (v850_dummy_id): Delete.
7953 (v850_gdbarch_init): Don't register deleted functions with
7954 gdbarch.
7955
7956 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7957
7958 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
7959 (tilegx_unwind_pc): Delete.
7960 (tilegx_unwind_dummy_id): Delete.
7961 (tilegx_gdbarch_init): Don't register deleted functions with
7962 gdbarch.
7963
7964 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7965
7966 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
7967 (tic6x_dummy_id): Delete.
7968 (tic6x_gdbarch_init): Don't register deleted functions with
7969 gdbarch.
7970
7971 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7972
7973 * sparc-tdep.c (sparc_unwind_pc): Delete.
7974 (sparc32_gdbarch_init): Don't register deleted function with
7975 gdbarch.
7976
7977 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7978
7979 * sh-tdep.c (sh_unwind_sp): Delete.
7980 (sh_unwind_pc): Delete.
7981 (sh_dummy_id): Delete.
7982 (sh_gdbarch_init): Don't register deleted functions with
7983 gdbarch.
7984
7985 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7986
7987 * score-tdep.c (score_unwind_sp): Delete.
7988 (score_unwind_pc): Delete.
7989 (score_dummy_id): Delete.
7990 (score_gdbarch_init): Don't register deleted functions with
7991 gdbarch.
7992
7993 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7994
7995 * rx-tdep.c (rx_unwind_pc): Delete.
7996 (rx_unwind_sp): Delete.
7997 (rx_dummy_id): Delete.
7998 (rx_gdbarch_init): Don't register deleted functions with
7999 gdbarch. Update comment.
8000
8001 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8002
8003 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
8004 (rs6000_dummy_id): Delete.
8005 (rs6000_gdbarch_init): Don't register deleted functions with
8006 gdbarch.
8007
8008 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8009
8010 * or1k-tdep.c (or1k_dummy_id): Delete.
8011 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
8012
8013 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8014
8015 * nios2-tdep.c (nios2_dummy_id): Delete.
8016 (nios2_unwind_sp): Delete.
8017 (nios2_gdbarch_init): Don't register deleted functions with
8018 gdbarch.
8019
8020 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8021
8022 * nds32-tdep.c (nds32_dummy_id): Delete.
8023 (nds32_unwind_pc): Delete.
8024 (nds32_unwind_sp): Delete.
8025 (nds32_gdbarch_init): Don't register deleted functions with
8026 gdbarch.
8027
8028 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8029
8030 * msp430-tdep.c (msp430_unwind_pc): Delete.
8031 (msp430_unwind_sp): Delete.
8032 (msp430_dummy_id): Delete.
8033 (msp430_gdbarch_init): Don't register deleted functions with
8034 gdbarch.
8035
8036 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8037
8038 * moxie-tdep.c (moxie_unwind_sp): Delete.
8039 (moxie_unwind_pc): Delete.
8040 (moxie_dummy_id): Delete.
8041 (moxie_gdbarch_init): Don't register deleted functions with
8042 gdbarch.
8043
8044 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8045
8046 * mn10300-tdep.c (mn10300_dummy_id): Delete.
8047 (mn10300_unwind_pc): Delete.
8048 (mn10300_unwind_sp): Delete.
8049 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
8050 mn10300_unwind_sp.
8051 (mn10300_frame_unwind_init): Don't register deleted functions with
8052 gdbarch.
8053
8054 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8055
8056 * mep-tdep.c (mep_unwind_pc): Delete.
8057 (mep_unwind_sp): Delete.
8058 (mep_dummy_id): Delete.
8059 (mep_gdbarch_init): Don't register deleted functions with
8060 gdbarch.
8061
8062 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8063
8064 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
8065 (m68hc11_unwind_sp): Delete.
8066 (m68hc11_gdbarch_init): Don't register deleted functions with
8067 gdbarch.
8068
8069 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8070
8071 * m32r-tdep.c (m32r_unwind_sp): Delete.
8072 (m32r_unwind_pc): Delete.
8073 (m32r_dummy_id): Delete.
8074 (m32r_gdbarch_init): Don't register deleted functions with
8075 gdbarch.
8076
8077 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8078
8079 * m32c-tdep.c (m32c_unwind_pc): Delete.
8080 (m32c_unwind_sp): Delete.
8081 (m32c_dummy_id): Delete.
8082 (m32c_gdbarch_init): Don't register deleted functions with
8083 gdbarch.
8084
8085 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8086
8087 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
8088 (lm32_unwind_pc): Delete.
8089 (lm32_dummy_id): Delete.
8090 (lm32_gdbarch_init): Don't register deleted functions with
8091 gdbarch.
8092
8093 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8094
8095 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
8096 (iq2000_unwind_pc): Delete.
8097 (iq2000_dummy_id): Delete.
8098 (iq2000_gdbarch_init): Don't register deleted functions with
8099 gdbarch.
8100
8101 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8102
8103 * nds32-tdep.c (nds32_type_align): Delete.
8104 (nds32_push_dummy_call): Use type_align instead.
8105
8106 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8107
8108 * arm-tdep.c (arm_type_align): Only handle vector override case.
8109 (arm_push_dummy_call): Use type_align.
8110 (arm_gdbarch_init): Register arm_type_align gdbarch function.
8111
8112 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8113
8114 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
8115 case.
8116 (pass_on_stack): Use type_align.
8117 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
8118 function.
8119
8120 2019-04-23 Tom Tromey <tromey@adacore.com>
8121
8122 * dwarf2read.c (line_header::file_name_at): Remove unused
8123 overload.
8124
8125 2019-04-23 Tom de Vries <tdevries@suse.de>
8126
8127 PR gdb/24438
8128 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
8129 invocation.
8130
8131
8132 2019-03-27 Ali Tamur <tamur@google.com>
8133
8134 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
8135 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
8136 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
8137 (dwarf_expr_context::get_addr_index): Likewise
8138 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
8139 (symbol_needs_eval_context::get_addr_index): Likewise
8140 (disassemble_dwarf_expression): Add DW_OP_addrx
8141 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
8142 (read_cutu_die_from_dwo): Update comment
8143 (skip_one_die): Add DW_FORM_addrx
8144 (read_attribute_value): Likewise
8145 (var_decode_location): Add DW_OP_addrx
8146 (dwarf2_const_value_attr): Add DW_FORM_addrx
8147 (dump_die_shallow): Likewise
8148 (dwarf2_fetch_constant_bytes): Likewise
8149 (decode_locdesc): Add DW_OP_addrx
8150 (skip_form_bytes): Add DW_FORM_addrx
8151
8152 2019-04-22 Ali Tamur <tamur@google.com>
8153
8154 * MAINTAINERS (Write After Approval): Add self.
8155
8156 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
8157
8158 * solib-svr4.c (get_svr4_info): Add pspace parameter.
8159 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
8160 (open_symbol_file_object): Likewise.
8161 (svr4_default_sos): Add info parameter.
8162 (svr4_read_so_list): Likewise.
8163 (svr4_current_sos_direct): Adjust functions calls to pass down
8164 info.
8165 (svr4_current_sos_1): Add info parameter.
8166 (svr4_current_sos): Call get_svr4_info, pass info down to
8167 svr4_current_sos_1.
8168 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
8169 get_svr4_info.
8170 (svr4_in_dynsym_resolve_code): Pass current_program_space to
8171 get_svr4_info.
8172 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
8173 to get_svr4_info.
8174 (probes_table_remove_objfile_probes): Likewise.
8175 (register_solib_event_probe): Add info parameter.
8176 (solist_update_incremental): Pass info parameter down to
8177 svr4_read_so_list.
8178 (disable_probes_interface): Add info parameter.
8179 (svr4_handle_solib_event): Pass current_program_space to
8180 get_svr4_info. Adjust disable_probes_interface cleanup.
8181 (svr4_create_probe_breakpoints): Add info parameter, pass it
8182 down to register_solib_event_probe.
8183 (svr4_create_solib_event_breakpoints): Add info parameter,
8184 pass it down to svr4_create_probe_breakpoints.
8185 (enable_break): Pass info down to
8186 svr4_create_solib_event_breakpoints.
8187 (svr4_solib_create_inferior_hook): Pass current_program_space to
8188 get_svr4_info.
8189 (svr4_clear_solib): Likewise.
8190
8191 2019-04-22 Pedro Alves <palves@redhat.com>
8192
8193 * solib-svr4.c (svr4_free_objfile_observer): New.
8194 (probe_and_action::objfile): New field.
8195 (probes_table_htab_remove_objfile_probes)
8196 (probes_table_remove_objfile_probes): New functions.
8197 (register_solib_event_probe): Add 'objfile' parameter. Store it
8198 in the new probe_and_action. Don't store the probe in 'lookup'.
8199 (svr4_create_probe_breakpoints): Pass objfile to
8200 register_solib_event_probe.
8201 (_initialize_svr4_solib): Register a free_objfile observer.
8202
8203 2019-04-19 Tom Tromey <tom@tromey.com>
8204
8205 * common/queue.h: Remove.
8206
8207 2019-04-19 Tom Tromey <tom@tromey.com>
8208
8209 * event-loop.c: Don't include "common/queue.h".
8210
8211 2019-04-19 Tom Tromey <tom@tromey.com>
8212
8213 * remote.c (remote_target): Use delete.
8214 * remote-notif.h: Include <list>, not "common/queue.h".
8215 (notif_client_p): Remove typedef.
8216 (remote_notif_state): Add constructor, destructor, initializer.
8217 <notif_queue>: Now a std::list.
8218 (remote_notif_state_xfree): Don't declare.
8219 * remote-notif.c (remote_notif_process, handle_notification)
8220 (remote_notif_state_allocate): Update.
8221 (~remote_notif_state): Rename from remote_notif_state_xfree.
8222
8223 2019-04-19 Tom Tromey <tom@tromey.com>
8224
8225 * symfile.c (reread_symbols): Update.
8226 * objfiles.c (objfile_register_static_link)
8227 (objfile_lookup_static_link): Update
8228 (~objfile) Don't delete static_links.
8229 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
8230
8231 2019-04-19 Tom Tromey <tom@tromey.com>
8232
8233 * type-stack.h (struct type_stack) <insert>: Constify string.
8234 * type-stack.c (type_stack::insert): Constify string.
8235 * gdbtypes.h (lookup_template_type): Update.
8236 (address_space_name_to_int): Update.
8237 * gdbtypes.c (address_space_name_to_int): Make space_identifier
8238 const.
8239 (lookup_template_type): Make name const.
8240 * c-exp.y: Update rules.
8241 (lex_one_token, classify_name, classify_inner_name)
8242 (c_print_token): Update.
8243 * p-exp.y: Update rules.
8244 (yylex): Update.
8245 * f-exp.y: Update rules.
8246 (yylex): Update.
8247 * d-exp.y: Update rules.
8248 (lex_one_token, classify_name, classify_inner_name): Update.
8249 * parse.c (write_dollar_variable, copy_name): Return std::string.
8250 * parser-defs.h (copy_name): Change return type.
8251 * m2-exp.y: Update rules.
8252 (yylex): Update.
8253 * go-exp.y (lex_one_token): Update.
8254 Update rules.
8255 (classify_unsafe_function, classify_packaged_name)
8256 (classify_name, yylex): Update.
8257
8258 2019-04-19 Sergei Trofimovich <siarheit@google.com>
8259
8260 * configure.ac: add --enable-source-highlight switch.
8261 * configure: Regenerate.
8262 * top.c (print_gdb_version): plumb --enable-source-highlight
8263 status to "show configuration".
8264
8265 2019-04-19 Tom Tromey <tromey@adacore.com>
8266
8267 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
8268 Check ADA_TYPE_P.
8269 (empty_record, ada_template_to_fixed_record_type_1)
8270 (template_to_static_fixed_type)
8271 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
8272 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
8273 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
8274 macros.
8275
8276 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
8277
8278 PR symtab/24423:
8279 * source.c (print_source_lines_base): Advance "iter" when a
8280 control character is seen.
8281
8282 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8283
8284 * inferior.h (struct infcall_suspend_state_deleter):
8285 Catch exception in destructor to avoid crash.
8286
8287 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8288
8289 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
8290 close to the add_com "shell".
8291
8292 2019-04-18 Tom Tromey <tromey@adacore.com>
8293
8294 * process-stratum-target.h (class process_stratum_target)
8295 <stratum>: Add "final".
8296
8297 2019-04-17 Tom Tromey <tromey@adacore.com>
8298
8299 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
8300 against nullptr before use.
8301
8302 2019-04-17 Alan Hayward <alan.hayward@arm.com>
8303
8304 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
8305
8306 2019-04-17 Jim Wilson <jimw@sifive.com>
8307 Andrew Burgess <andrew.burgess@embecosm.com>
8308
8309 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
8310 code read might fail, assume 4-byte breakpoint in that case.
8311
8312 2019-04-15 Leszek Swirski <leszeks@google.com>
8313
8314 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
8315 rather than a hand-rolled POD check when checking for forced MEMORY
8316 classification.
8317
8318 2019-04-15 Alan Hayward <alan.hayward@arm.com>
8319
8320 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
8321 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
8322 function.
8323 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
8324 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
8325 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
8326 declaration.
8327
8328 2019-04-15 Alan Hayward <alan.hayward@arm.com>
8329
8330 * aarch64-linux-nat.c
8331 (aarch64_linux_nat_target::thread_architecture): Add override.
8332 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
8333 each VQ.
8334
8335 2019-04-15 Alan Hayward <alan.hayward@arm.com>
8336
8337 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
8338
8339 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
8340
8341 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
8342 target types of size 96-bits, add some additional comments, and
8343 check that the builtin type we found was the correct size.
8344
8345 2019-04-12 Eli Zaretskii <eliz@gnu.org>
8346
8347 * utils.c (prompt_for_continue): Don't restore the styling at the
8348 end, as applied_style has the wrong value. This fixes styling in
8349 long lists of file names that are interrupted by the "Continue?"
8350 prompt.
8351
8352 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
8353
8354 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
8355 * c-lang.c (c_language_defn): Likewise.
8356 (cplus_language_defn): Likewise.
8357 (asm_language_defn): Likewise.
8358 (minimal_language_defn): Likewise.
8359 * d-lang.c (d_language_defn): Likewise.
8360 * f-lang.c (f_language_defn): Likewise.
8361 * go-lang.c (go_language_defn): Likewise.
8362 * language.c (unknown_language_defn): Likewise.
8363 (auto_language_defn): Likewise.
8364 * language.h (struct language_defn): Remove la_magic field.
8365 (LANG_MAGIC): Delete.
8366 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
8367 * objc-lang.c (objc_language_defn): Likewise.
8368 * opencl-lang.c (opencl_language_defn): Likewise.
8369 * p-lang.c (pascal_language_defn): Likewise.
8370 * rust-lang.c (rust_language_defn): Likewise.
8371
8372 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8373
8374 * riscv-tdep.c (riscv_type_align): New function.
8375 (riscv_type_alignment): Delete.
8376 (riscv_arg_location): Use 'type_align'.
8377 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
8378
8379 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8380
8381 * gdbtypes.c (type_align): A struct with no non-static fields also
8382 has alignment of 1.
8383
8384 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8385
8386 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
8387 component to 0.
8388 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
8389 member.
8390 (riscv_struct_info::analyse): New implementation using new
8391 analyse_inner member function.
8392 (riscv_struct_info::field_offset): New member function.
8393 (riscv_struct_info::m_offsets): New member variable.
8394 (riscv_struct_info::analyse_inner): New private member function,
8395 takes the old implementation of riscv_struct_info::analyse but
8396 extended to track field offsets.
8397 (riscv_call_arg_struct): Update the struct folding special cases
8398 to handle cases where empty C++ structs, which are non-zero
8399 length, are found.
8400 (riscv_arg_location): Initialise the length of each location, a
8401 non-zero length now indicates the location is in use.
8402 (riscv_push_dummy_call): Allow for the first location having a
8403 non-zero offset when setting up arguments.
8404 (riscv_return_value): Likewise, but for return values.
8405
8406 2019-04-11 Tom Tromey <tromey@adacore.com>
8407
8408 * utils.c (internal_vproblem): Make "msg" const.
8409
8410 2019-04-11 Alan Hayward <alan.hayward@arm.com>
8411
8412 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
8413 * trad-frame.c (trad_frame_reset_saved_regs): New function.
8414 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
8415 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
8416
8417 2019-04-10 Kevin Buettner <kevinb@redhat.com>
8418
8419 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
8420 function.
8421 (fill_gregset): Call amd64_linux_collect_native_gregset instead
8422 of amd64_collect_native_gregset.
8423 (amd64_linux_nat_target::store_registers): Likewise.
8424
8425 2019-04-10 Tom Tromey <tom@tromey.com>
8426
8427 * symtab.c (lookup_global_symbol_from_objfile)
8428 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
8429 * objfiles.h (class separate_debug_iterator): New.
8430 (class separate_debug_range): New.
8431 (struct objfile) <separate_debug_objfiles>: New method.
8432 (objfile_separate_debug_iterate): Don't declare.
8433 * objfiles.c (separate_debug_iterator::operator++): Rename from
8434 objfile_separate_debug_iterate.
8435 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
8436 iterator.
8437 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
8438 iterator.
8439
8440 2019-04-10 Tom Tromey <tom@tromey.com>
8441
8442 * symfile.c (reread_symbols): Remove old comment.
8443 * objfiles.c (free_all_objfiles): Fix a typo.
8444
8445 2019-04-10 Tom Tromey <tom@tromey.com>
8446
8447 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
8448 * minsyms.c (lookup_minimal_symbol): Use foreach.
8449 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8450 (lookup_minimal_symbol_solib_trampoline): Likewise.
8451 * symfile.c (reread_symbols): Use foreach.
8452
8453 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
8454 Tom Tromey <tromey@adacore.com>
8455
8456 PR rust/24414:
8457 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
8458 (rust_lex_int_test): Change "value" to be LONGEST.
8459 (rust_lex_tests): Add test for long integer literal.
8460
8461 2019-04-09 Tom Tromey <tromey@adacore.com>
8462
8463 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
8464 to bool.
8465 (extended_remote_target::attach): Update.
8466 (remote_target::remote_notice_new_inferior): Update.
8467 (remote_target::add_current_inferior_and_thread): Update.
8468 * inferior.c (exit_inferior_1): Use "false".
8469 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
8470
8471 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
8472
8473 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
8474 the "start" command.
8475
8476 2019-04-08 Kevin Buettner <kevinb@redhat.com>
8477
8478 * python/py-inferior.c (infpy_thread_from_thread_handle):
8479 Adjust comments to reflect renaming of thread_from_thread_handle
8480 to thread_from_handle. Adjust keywords. Fix type error message.
8481 (inferior_object_methods): Add thread_from_handle. Retain
8482 thread_from_thread_handle, but mark it as deprecated.
8483
8484 2019-04-08 Kevin Buettner <kevinb@redhat.com>
8485
8486 * gdbthread.h (find_thread_by_handle): Revise declaration.
8487 * thread.c (find_thread_by_handle): Likewise. Adjust
8488 implementation too.
8489 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
8490 support for buffer objects as handles.
8491
8492 2019-04-08 Kevin Buettner <kevinb@redhat.com>
8493
8494 * python/py-infthread.c (thpy_thread_handle): New function.
8495 (thread_object_methods): Register thpy_thread_handle.
8496
8497 2019-04-08 Kevin Buettner <kevinb@redhat.com>
8498
8499 * gdbthread.h (thread_to_thread_handle): Declare.
8500 * thread.c (gdbtypes.h): Include.
8501 (thread_to_thread_handle): New function.
8502
8503 * target.h (struct target_ops): Add thread_info_to_thread_handle.
8504 (target_thread_info_to_thread_handle): Declare.
8505 * target.c (target_thread_info_to_thread_handle): New function.
8506 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
8507 * target-delegates.c: Regenerate.
8508
8509 * linux-thread-db.c (class thread_db_target): Add method
8510 thread_info_to_thread_handle.
8511 (thread_db_target::thread_info_to_thread_handle): Define.
8512 * remote.c (class remote_target): Add new method
8513 thread_info_to_thread_handle.
8514 (remote_target::thread_info_to_thread_handle): Define.
8515
8516 2019-04-08 Pedro Alves <palves@redhat.com>
8517
8518 * common/common-exceptions.c (throw_exception): Don't create
8519 named object to throw; throw directly.
8520 (throw_it): Likewise. Don't initialize gdb_exception::message
8521 here, with new; pass FMT and AP to the ctor instead.
8522 * common/common-exceptions.h: Include <string>.
8523 (gdb_exception::gdb_exception(enum return_reason, enum errors,
8524 const char *, va_list)): New ctor. Use std::make_shared.
8525 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
8526 errors)): Delete.
8527 (gdb_exception_error::gdb_exception_error(enum errors, const char
8528 *, va_list)): New.
8529 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
8530 Add assertion.
8531 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
8532 errors)): Delete.
8533 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
8534 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
8535 Add assertion.
8536
8537 2019-04-08 Tom Tromey <tom@tromey.com>
8538
8539 * valops.c (value_rtti_indirect_type): Replace throw_exception
8540 with throw.
8541 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
8542 with throw.
8543 * thread.c (thr_try_catch_cmd): Replace throw_exception with
8544 throw.
8545 * target.c (target_translate_tls_address): Replace throw_exception
8546 with throw.
8547 * stack.c (frame_apply_command_count): Replace throw_exception
8548 with throw.
8549 * solib-spu.c (append_ocl_sos): Replace throw_exception with
8550 throw.
8551 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
8552 with throw.
8553 * rs6000-tdep.c (rs6000_frame_cache)
8554 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
8555 * remote.c: Replace throw_exception with throw.
8556 * record-full.c (record_full_message, record_full_wait_1)
8557 (record_full_restore): Replace throw_exception with throw.
8558 * record-btrace.c:
8559 (get_thread_current_frame_id, record_btrace_start_replaying)
8560 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
8561 (cmd_record_btrace_start): Replace throw_exception with throw.
8562 * parse.c (parse_exp_in_context_1): Replace throw_exception with
8563 throw.
8564 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
8565 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
8566 * linespec.c:
8567 (find_linespec_symbols): Replace throw_exception with throw.
8568 * infrun.c (displaced_step_prepare, resume): Replace
8569 throw_exception with throw.
8570 * infcmd.c (post_create_inferior): Replace throw_exception with
8571 throw.
8572 * inf-loop.c (inferior_event_handler): Replace throw_exception
8573 with throw.
8574 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
8575 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
8576 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
8577 (get_prev_frame_always, get_frame_pc_if_available)
8578 (get_frame_address_in_block_if_available, get_frame_language):
8579 Replace throw_exception with throw.
8580 * frame-unwind.c (frame_unwind_try_unwinder): Replace
8581 throw_exception with throw.
8582 * eval.c (fetch_subexp_value, evaluate_var_value)
8583 (evaluate_funcall, evaluate_subexp_standard): Replace
8584 throw_exception with throw.
8585 * dwarf2loc.c (call_site_find_chain)
8586 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
8587 Replace throw_exception with throw.
8588 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
8589 with throw.
8590 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
8591 throw.
8592 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
8593 * completer.c (complete_line_internal): Replace throw_exception
8594 with throw.
8595 * compile/compile-object-run.c (compile_object_run): Replace
8596 throw_exception with throw.
8597 * cli/cli-script.c (process_next_line): Replace throw_exception
8598 with throw.
8599 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
8600 (btrace_enable, btrace_maint_update_pt_packets): Replace
8601 throw_exception with throw.
8602 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
8603 throw_exception with throw.
8604 * break-catch-throw.c (re_set_exception_catchpoint): Replace
8605 throw_exception with throw.
8606 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
8607 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
8608 * aarch64-tdep.c (aarch64_make_prologue_cache)
8609 (aarch64_make_stub_cache): Replace throw_exception with throw.
8610
8611 2019-04-08 Tom Tromey <tom@tromey.com>
8612
8613 * common/common-exceptions.c (throw_exception): Rename from
8614 throw_exception_cxx. Remove old copy. Make argument const.
8615 (throw_it): Create and throw exception objects directly.
8616 * common/common-exceptions.h (throw_exception): Make argument
8617 const.
8618 (struct gdb_exception_error): Add constructor.
8619 (struct gdb_exception_quit): Add constructor.
8620
8621 2019-04-08 Tom Tromey <tom@tromey.com>
8622
8623 * common/common-exceptions.h (exception_rethrow): Don't declare.
8624 (TRY_SJLJ): Update comment.
8625 (TRY, CATCH, END_CATCH): Remove.
8626 * common/common-exceptions.c (exception_rethrow): Remove.
8627
8628 2019-04-08 Tom Tromey <tom@tromey.com>
8629
8630 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
8631 Remove.
8632 (gdb_exception_error): Rename from
8633 gdb_exception_RETURN_MASK_ERROR.
8634 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
8635 (gdb_quit_bad_alloc): Update.
8636 * aarch64-tdep.c: Update.
8637 * ada-lang.c: Update.
8638 * ada-typeprint.c: Update.
8639 * ada-valprint.c: Update.
8640 * amd64-tdep.c: Update.
8641 * arch-utils.c: Update.
8642 * break-catch-throw.c: Update.
8643 * breakpoint.c: Update.
8644 * btrace.c: Update.
8645 * c-varobj.c: Update.
8646 * cli/cli-cmds.c: Update.
8647 * cli/cli-interp.c: Update.
8648 * cli/cli-script.c: Update.
8649 * common/common-exceptions.c: Update.
8650 * common/new-op.c: Update.
8651 * common/selftest.c: Update.
8652 * compile/compile-c-symbols.c: Update.
8653 * compile/compile-cplus-symbols.c: Update.
8654 * compile/compile-object-load.c: Update.
8655 * compile/compile-object-run.c: Update.
8656 * completer.c: Update.
8657 * corelow.c: Update.
8658 * cp-abi.c: Update.
8659 * cp-support.c: Update.
8660 * cp-valprint.c: Update.
8661 * darwin-nat.c: Update.
8662 * disasm-selftests.c: Update.
8663 * dtrace-probe.c: Update.
8664 * dwarf-index-cache.c: Update.
8665 * dwarf-index-write.c: Update.
8666 * dwarf2-frame-tailcall.c: Update.
8667 * dwarf2-frame.c: Update.
8668 * dwarf2loc.c: Update.
8669 * dwarf2read.c: Update.
8670 * eval.c: Update.
8671 * event-loop.c: Update.
8672 * event-top.c: Update.
8673 * exec.c: Update.
8674 * f-valprint.c: Update.
8675 * fbsd-tdep.c: Update.
8676 * frame-unwind.c: Update.
8677 * frame.c: Update.
8678 * gdbtypes.c: Update.
8679 * gnu-v3-abi.c: Update.
8680 * guile/guile-internal.h: Update.
8681 * guile/scm-block.c: Update.
8682 * guile/scm-breakpoint.c: Update.
8683 * guile/scm-cmd.c: Update.
8684 * guile/scm-disasm.c: Update.
8685 * guile/scm-frame.c: Update.
8686 * guile/scm-lazy-string.c: Update.
8687 * guile/scm-math.c: Update.
8688 * guile/scm-param.c: Update.
8689 * guile/scm-ports.c: Update.
8690 * guile/scm-pretty-print.c: Update.
8691 * guile/scm-symbol.c: Update.
8692 * guile/scm-symtab.c: Update.
8693 * guile/scm-type.c: Update.
8694 * guile/scm-value.c: Update.
8695 * i386-linux-tdep.c: Update.
8696 * i386-tdep.c: Update.
8697 * inf-loop.c: Update.
8698 * infcall.c: Update.
8699 * infcmd.c: Update.
8700 * infrun.c: Update.
8701 * jit.c: Update.
8702 * language.c: Update.
8703 * linespec.c: Update.
8704 * linux-fork.c: Update.
8705 * linux-nat.c: Update.
8706 * linux-tdep.c: Update.
8707 * linux-thread-db.c: Update.
8708 * main.c: Update.
8709 * mi/mi-cmd-break.c: Update.
8710 * mi/mi-cmd-stack.c: Update.
8711 * mi/mi-interp.c: Update.
8712 * mi/mi-main.c: Update.
8713 * objc-lang.c: Update.
8714 * p-valprint.c: Update.
8715 * parse.c: Update.
8716 * ppc-linux-tdep.c: Update.
8717 * printcmd.c: Update.
8718 * python/py-arch.c: Update.
8719 * python/py-breakpoint.c: Update.
8720 * python/py-cmd.c: Update.
8721 * python/py-finishbreakpoint.c: Update.
8722 * python/py-frame.c: Update.
8723 * python/py-framefilter.c: Update.
8724 * python/py-gdb-readline.c: Update.
8725 * python/py-inferior.c: Update.
8726 * python/py-infthread.c: Update.
8727 * python/py-lazy-string.c: Update.
8728 * python/py-linetable.c: Update.
8729 * python/py-objfile.c: Update.
8730 * python/py-param.c: Update.
8731 * python/py-prettyprint.c: Update.
8732 * python/py-progspace.c: Update.
8733 * python/py-record-btrace.c: Update.
8734 * python/py-record.c: Update.
8735 * python/py-symbol.c: Update.
8736 * python/py-type.c: Update.
8737 * python/py-unwind.c: Update.
8738 * python/py-utils.c: Update.
8739 * python/py-value.c: Update.
8740 * python/python.c: Update.
8741 * record-btrace.c: Update.
8742 * record-full.c: Update.
8743 * remote-fileio.c: Update.
8744 * remote.c: Update.
8745 * riscv-tdep.c: Update.
8746 * rs6000-aix-tdep.c: Update.
8747 * rs6000-tdep.c: Update.
8748 * rust-exp.y: Update.
8749 * rust-lang.c: Update.
8750 * s390-tdep.c: Update.
8751 * selftest-arch.c: Update.
8752 * solib-dsbt.c: Update.
8753 * solib-frv.c: Update.
8754 * solib-spu.c: Update.
8755 * solib-svr4.c: Update.
8756 * solib.c: Update.
8757 * sparc64-linux-tdep.c: Update.
8758 * stack.c: Update.
8759 * symfile-mem.c: Update.
8760 * symmisc.c: Update.
8761 * target.c: Update.
8762 * thread.c: Update.
8763 * top.c: Update.
8764 * tracefile-tfile.c: Update.
8765 * tui/tui.c: Update.
8766 * typeprint.c: Update.
8767 * unittests/cli-utils-selftests.c: Update.
8768 * unittests/parse-connection-spec-selftests.c: Update.
8769 * valops.c: Update.
8770 * valprint.c: Update.
8771 * value.c: Update.
8772 * varobj.c: Update.
8773 * windows-nat.c: Update.
8774 * x86-linux-nat.c: Update.
8775 * xml-support.c: Update.
8776
8777 2019-04-08 Tom Tromey <tom@tromey.com>
8778
8779 * xml-support.c: Use C++ exception handling.
8780 * x86-linux-nat.c: Use C++ exception handling.
8781 * windows-nat.c: Use C++ exception handling.
8782 * varobj.c: Use C++ exception handling.
8783 * value.c: Use C++ exception handling.
8784 * valprint.c: Use C++ exception handling.
8785 * valops.c: Use C++ exception handling.
8786 * unittests/parse-connection-spec-selftests.c: Use C++ exception
8787 handling.
8788 * unittests/cli-utils-selftests.c: Use C++ exception handling.
8789 * typeprint.c: Use C++ exception handling.
8790 * tui/tui.c: Use C++ exception handling.
8791 * tracefile-tfile.c: Use C++ exception handling.
8792 * top.c: Use C++ exception handling.
8793 * thread.c: Use C++ exception handling.
8794 * target.c: Use C++ exception handling.
8795 * symmisc.c: Use C++ exception handling.
8796 * symfile-mem.c: Use C++ exception handling.
8797 * stack.c: Use C++ exception handling.
8798 * sparc64-linux-tdep.c: Use C++ exception handling.
8799 * solib.c: Use C++ exception handling.
8800 * solib-svr4.c: Use C++ exception handling.
8801 * solib-spu.c: Use C++ exception handling.
8802 * solib-frv.c: Use C++ exception handling.
8803 * solib-dsbt.c: Use C++ exception handling.
8804 * selftest-arch.c: Use C++ exception handling.
8805 * s390-tdep.c: Use C++ exception handling.
8806 * rust-lang.c: Use C++ exception handling.
8807 * rust-exp.y: Use C++ exception handling.
8808 * rs6000-tdep.c: Use C++ exception handling.
8809 * rs6000-aix-tdep.c: Use C++ exception handling.
8810 * riscv-tdep.c: Use C++ exception handling.
8811 * remote.c: Use C++ exception handling.
8812 * remote-fileio.c: Use C++ exception handling.
8813 * record-full.c: Use C++ exception handling.
8814 * record-btrace.c: Use C++ exception handling.
8815 * python/python.c: Use C++ exception handling.
8816 * python/py-value.c: Use C++ exception handling.
8817 * python/py-utils.c: Use C++ exception handling.
8818 * python/py-unwind.c: Use C++ exception handling.
8819 * python/py-type.c: Use C++ exception handling.
8820 * python/py-symbol.c: Use C++ exception handling.
8821 * python/py-record.c: Use C++ exception handling.
8822 * python/py-record-btrace.c: Use C++ exception handling.
8823 * python/py-progspace.c: Use C++ exception handling.
8824 * python/py-prettyprint.c: Use C++ exception handling.
8825 * python/py-param.c: Use C++ exception handling.
8826 * python/py-objfile.c: Use C++ exception handling.
8827 * python/py-linetable.c: Use C++ exception handling.
8828 * python/py-lazy-string.c: Use C++ exception handling.
8829 * python/py-infthread.c: Use C++ exception handling.
8830 * python/py-inferior.c: Use C++ exception handling.
8831 * python/py-gdb-readline.c: Use C++ exception handling.
8832 * python/py-framefilter.c: Use C++ exception handling.
8833 * python/py-frame.c: Use C++ exception handling.
8834 * python/py-finishbreakpoint.c: Use C++ exception handling.
8835 * python/py-cmd.c: Use C++ exception handling.
8836 * python/py-breakpoint.c: Use C++ exception handling.
8837 * python/py-arch.c: Use C++ exception handling.
8838 * printcmd.c: Use C++ exception handling.
8839 * ppc-linux-tdep.c: Use C++ exception handling.
8840 * parse.c: Use C++ exception handling.
8841 * p-valprint.c: Use C++ exception handling.
8842 * objc-lang.c: Use C++ exception handling.
8843 * mi/mi-main.c: Use C++ exception handling.
8844 * mi/mi-interp.c: Use C++ exception handling.
8845 * mi/mi-cmd-stack.c: Use C++ exception handling.
8846 * mi/mi-cmd-break.c: Use C++ exception handling.
8847 * main.c: Use C++ exception handling.
8848 * linux-thread-db.c: Use C++ exception handling.
8849 * linux-tdep.c: Use C++ exception handling.
8850 * linux-nat.c: Use C++ exception handling.
8851 * linux-fork.c: Use C++ exception handling.
8852 * linespec.c: Use C++ exception handling.
8853 * language.c: Use C++ exception handling.
8854 * jit.c: Use C++ exception handling.
8855 * infrun.c: Use C++ exception handling.
8856 * infcmd.c: Use C++ exception handling.
8857 * infcall.c: Use C++ exception handling.
8858 * inf-loop.c: Use C++ exception handling.
8859 * i386-tdep.c: Use C++ exception handling.
8860 * i386-linux-tdep.c: Use C++ exception handling.
8861 * guile/scm-value.c: Use C++ exception handling.
8862 * guile/scm-type.c: Use C++ exception handling.
8863 * guile/scm-symtab.c: Use C++ exception handling.
8864 * guile/scm-symbol.c: Use C++ exception handling.
8865 * guile/scm-pretty-print.c: Use C++ exception handling.
8866 * guile/scm-ports.c: Use C++ exception handling.
8867 * guile/scm-param.c: Use C++ exception handling.
8868 * guile/scm-math.c: Use C++ exception handling.
8869 * guile/scm-lazy-string.c: Use C++ exception handling.
8870 * guile/scm-frame.c: Use C++ exception handling.
8871 * guile/scm-disasm.c: Use C++ exception handling.
8872 * guile/scm-cmd.c: Use C++ exception handling.
8873 * guile/scm-breakpoint.c: Use C++ exception handling.
8874 * guile/scm-block.c: Use C++ exception handling.
8875 * guile/guile-internal.h: Use C++ exception handling.
8876 * gnu-v3-abi.c: Use C++ exception handling.
8877 * gdbtypes.c: Use C++ exception handling.
8878 * frame.c: Use C++ exception handling.
8879 * frame-unwind.c: Use C++ exception handling.
8880 * fbsd-tdep.c: Use C++ exception handling.
8881 * f-valprint.c: Use C++ exception handling.
8882 * exec.c: Use C++ exception handling.
8883 * event-top.c: Use C++ exception handling.
8884 * event-loop.c: Use C++ exception handling.
8885 * eval.c: Use C++ exception handling.
8886 * dwarf2read.c: Use C++ exception handling.
8887 * dwarf2loc.c: Use C++ exception handling.
8888 * dwarf2-frame.c: Use C++ exception handling.
8889 * dwarf2-frame-tailcall.c: Use C++ exception handling.
8890 * dwarf-index-write.c: Use C++ exception handling.
8891 * dwarf-index-cache.c: Use C++ exception handling.
8892 * dtrace-probe.c: Use C++ exception handling.
8893 * disasm-selftests.c: Use C++ exception handling.
8894 * darwin-nat.c: Use C++ exception handling.
8895 * cp-valprint.c: Use C++ exception handling.
8896 * cp-support.c: Use C++ exception handling.
8897 * cp-abi.c: Use C++ exception handling.
8898 * corelow.c: Use C++ exception handling.
8899 * completer.c: Use C++ exception handling.
8900 * compile/compile-object-run.c: Use C++ exception handling.
8901 * compile/compile-object-load.c: Use C++ exception handling.
8902 * compile/compile-cplus-symbols.c: Use C++ exception handling.
8903 * compile/compile-c-symbols.c: Use C++ exception handling.
8904 * common/selftest.c: Use C++ exception handling.
8905 * common/new-op.c: Use C++ exception handling.
8906 * cli/cli-script.c: Use C++ exception handling.
8907 * cli/cli-interp.c: Use C++ exception handling.
8908 * cli/cli-cmds.c: Use C++ exception handling.
8909 * c-varobj.c: Use C++ exception handling.
8910 * btrace.c: Use C++ exception handling.
8911 * breakpoint.c: Use C++ exception handling.
8912 * break-catch-throw.c: Use C++ exception handling.
8913 * arch-utils.c: Use C++ exception handling.
8914 * amd64-tdep.c: Use C++ exception handling.
8915 * ada-valprint.c: Use C++ exception handling.
8916 * ada-typeprint.c: Use C++ exception handling.
8917 * ada-lang.c: Use C++ exception handling.
8918 * aarch64-tdep.c: Use C++ exception handling.
8919
8920 2019-04-08 Tom Tromey <tom@tromey.com>
8921
8922 * xml-support.c (gdb_xml_parser::parse): Update.
8923 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8924 * value.c (show_convenience): Update.
8925 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
8926 (test_parse_flags_qcs): Update.
8927 * thread.c (thr_try_catch_cmd): Update.
8928 * target.c (target_translate_tls_address): Update.
8929 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
8930 (info_frame_command_core, frame_apply_command_count): Update.
8931 * rust-exp.y (rust_lex_exception_test): Update.
8932 * riscv-tdep.c (riscv_print_one_register_info): Update.
8933 * remote.c (remote_target::enable_btrace): Update.
8934 * record-btrace.c (record_btrace_enable_warn): Update.
8935 * python/py-utils.c (gdbpy_convert_exception): Update.
8936 * printcmd.c (do_one_display, print_variable_and_value): Update.
8937 * mi/mi-main.c (mi_print_exception): Update.
8938 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
8939 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
8940 * linux-nat.c (linux_nat_target::attach): Update.
8941 * linux-fork.c (class scoped_switch_fork_info): Update.
8942 * infrun.c (displaced_step_prepare): Update.
8943 * infcall.c (call_function_by_hand_dummy): Update.
8944 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
8945 * gnu-v3-abi.c (print_one_vtable): Update.
8946 * frame.c (get_prev_frame_always): Update.
8947 * f-valprint.c (info_common_command_for_block): Update.
8948 * exec.c (try_open_exec_file): Update.
8949 * exceptions.c (print_exception, exception_print)
8950 (exception_fprintf, exception_print_same): Update.
8951 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
8952 * dwarf-index-cache.c (index_cache::store)
8953 (index_cache::lookup_gdb_index): Update.
8954 * darwin-nat.c (maybe_cache_shell): Update.
8955 * cp-valprint.c (cp_print_value_fields): Update.
8956 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
8957 (gcc_cplus_symbol_address): Update.
8958 * compile/compile-c-symbols.c (gcc_convert_symbol)
8959 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
8960 * common/selftest.c: Update.
8961 * common/common-exceptions.h (struct gdb_exception) <message>: Now
8962 a std::string.
8963 (exception_try_scope_entry, exception_try_scope_exit): Don't
8964 declare.
8965 (struct exception_try_scope): Remove.
8966 (TRY): Don't use exception_try_scope.
8967 (struct gdb_exception): Add constructor, operator=.
8968 <what>: New method.
8969 (struct gdb_exception_RETURN_MASK_ALL)
8970 (struct gdb_exception_RETURN_MASK_ERROR)
8971 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
8972 (struct gdb_quit_bad_alloc): Update.
8973 * common/common-exceptions.c (exception_none): Change
8974 initializer.
8975 (struct catcher) <state, exception>: Initialize inline.
8976 <prev>: Remove member.
8977 (current_catcher): Remove.
8978 (catchers): New global.
8979 (exceptions_state_mc_init): Simplify.
8980 (catcher_pop): Remove.
8981 (exceptions_state_mc, exceptions_state_mc_catch): Update.
8982 (try_scope_depth, exception_try_scope_entry)
8983 (exception_try_scope_exit): Remove.
8984 (throw_exception_sjlj): Update.
8985 (exception_messages, exception_messages_size): Remove.
8986 (throw_it): Simplify.
8987 (gdb_exception_sliced_copy): Remove.
8988 (throw_exception_cxx): Update.
8989 * cli/cli-script.c (script_from_file): Update.
8990 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
8991 Update.
8992 * ada-valprint.c (ada_val_print): Update.
8993 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
8994 (create_excep_cond_exprs): Update.
8995
8996 2019-04-08 Tom Tromey <tom@tromey.com>
8997
8998 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
8999 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
9000 (TRY, CATCH, END_CATCH): Remove some definitions.
9001 * common/common-exceptions.c: Don't use GDB_XCPT.
9002 (catcher_list_size): Remove.
9003 (throw_exception, throw_it): Simplify.
9004
9005 2019-04-05 Tom Tromey <tom@tromey.com>
9006
9007 Revert the header-sorting patch.
9008 * ft32-tdep.c: Revert.
9009 * frv-tdep.c: Revert.
9010 * frv-linux-tdep.c: Revert.
9011 * frame.c: Revert.
9012 * frame-unwind.c: Revert.
9013 * frame-base.c: Revert.
9014 * fork-child.c: Revert.
9015 * findvar.c: Revert.
9016 * findcmd.c: Revert.
9017 * filesystem.c: Revert.
9018 * filename-seen-cache.h: Revert.
9019 * filename-seen-cache.c: Revert.
9020 * fbsd-tdep.c: Revert.
9021 * fbsd-nat.h: Revert.
9022 * fbsd-nat.c: Revert.
9023 * f-valprint.c: Revert.
9024 * f-typeprint.c: Revert.
9025 * f-lang.c: Revert.
9026 * extension.h: Revert.
9027 * extension.c: Revert.
9028 * extension-priv.h: Revert.
9029 * expprint.c: Revert.
9030 * exec.h: Revert.
9031 * exec.c: Revert.
9032 * exceptions.c: Revert.
9033 * event-top.c: Revert.
9034 * event-loop.c: Revert.
9035 * eval.c: Revert.
9036 * elfread.c: Revert.
9037 * dwarf2read.h: Revert.
9038 * dwarf2read.c: Revert.
9039 * dwarf2loc.c: Revert.
9040 * dwarf2expr.h: Revert.
9041 * dwarf2expr.c: Revert.
9042 * dwarf2-frame.c: Revert.
9043 * dwarf2-frame-tailcall.c: Revert.
9044 * dwarf-index-write.h: Revert.
9045 * dwarf-index-write.c: Revert.
9046 * dwarf-index-common.c: Revert.
9047 * dwarf-index-cache.h: Revert.
9048 * dwarf-index-cache.c: Revert.
9049 * dummy-frame.c: Revert.
9050 * dtrace-probe.c: Revert.
9051 * disasm.h: Revert.
9052 * disasm.c: Revert.
9053 * disasm-selftests.c: Revert.
9054 * dictionary.c: Revert.
9055 * dicos-tdep.c: Revert.
9056 * demangle.c: Revert.
9057 * dcache.h: Revert.
9058 * dcache.c: Revert.
9059 * darwin-nat.h: Revert.
9060 * darwin-nat.c: Revert.
9061 * darwin-nat-info.c: Revert.
9062 * d-valprint.c: Revert.
9063 * d-namespace.c: Revert.
9064 * d-lang.c: Revert.
9065 * ctf.c: Revert.
9066 * csky-tdep.c: Revert.
9067 * csky-linux-tdep.c: Revert.
9068 * cris-tdep.c: Revert.
9069 * cris-linux-tdep.c: Revert.
9070 * cp-valprint.c: Revert.
9071 * cp-support.c: Revert.
9072 * cp-namespace.c: Revert.
9073 * cp-abi.c: Revert.
9074 * corelow.c: Revert.
9075 * corefile.c: Revert.
9076 * continuations.c: Revert.
9077 * completer.h: Revert.
9078 * completer.c: Revert.
9079 * complaints.c: Revert.
9080 * coffread.c: Revert.
9081 * coff-pe-read.c: Revert.
9082 * cli-out.h: Revert.
9083 * cli-out.c: Revert.
9084 * charset.c: Revert.
9085 * c-varobj.c: Revert.
9086 * c-valprint.c: Revert.
9087 * c-typeprint.c: Revert.
9088 * c-lang.c: Revert.
9089 * buildsym.c: Revert.
9090 * buildsym-legacy.c: Revert.
9091 * build-id.h: Revert.
9092 * build-id.c: Revert.
9093 * btrace.c: Revert.
9094 * bsd-uthread.c: Revert.
9095 * breakpoint.h: Revert.
9096 * breakpoint.c: Revert.
9097 * break-catch-throw.c: Revert.
9098 * break-catch-syscall.c: Revert.
9099 * break-catch-sig.c: Revert.
9100 * blockframe.c: Revert.
9101 * block.c: Revert.
9102 * bfin-tdep.c: Revert.
9103 * bfin-linux-tdep.c: Revert.
9104 * bfd-target.c: Revert.
9105 * bcache.c: Revert.
9106 * ax-general.c: Revert.
9107 * ax-gdb.h: Revert.
9108 * ax-gdb.c: Revert.
9109 * avr-tdep.c: Revert.
9110 * auxv.c: Revert.
9111 * auto-load.c: Revert.
9112 * arm-wince-tdep.c: Revert.
9113 * arm-tdep.c: Revert.
9114 * arm-symbian-tdep.c: Revert.
9115 * arm-pikeos-tdep.c: Revert.
9116 * arm-obsd-tdep.c: Revert.
9117 * arm-nbsd-tdep.c: Revert.
9118 * arm-nbsd-nat.c: Revert.
9119 * arm-linux-tdep.c: Revert.
9120 * arm-linux-nat.c: Revert.
9121 * arm-fbsd-tdep.c: Revert.
9122 * arm-fbsd-nat.c: Revert.
9123 * arm-bsd-tdep.c: Revert.
9124 * arch-utils.c: Revert.
9125 * arc-tdep.c: Revert.
9126 * arc-newlib-tdep.c: Revert.
9127 * annotate.h: Revert.
9128 * annotate.c: Revert.
9129 * amd64-windows-tdep.c: Revert.
9130 * amd64-windows-nat.c: Revert.
9131 * amd64-tdep.c: Revert.
9132 * amd64-sol2-tdep.c: Revert.
9133 * amd64-obsd-tdep.c: Revert.
9134 * amd64-obsd-nat.c: Revert.
9135 * amd64-nbsd-tdep.c: Revert.
9136 * amd64-nbsd-nat.c: Revert.
9137 * amd64-nat.c: Revert.
9138 * amd64-linux-tdep.c: Revert.
9139 * amd64-linux-nat.c: Revert.
9140 * amd64-fbsd-tdep.c: Revert.
9141 * amd64-fbsd-nat.c: Revert.
9142 * amd64-dicos-tdep.c: Revert.
9143 * amd64-darwin-tdep.c: Revert.
9144 * amd64-bsd-nat.c: Revert.
9145 * alpha-tdep.c: Revert.
9146 * alpha-obsd-tdep.c: Revert.
9147 * alpha-nbsd-tdep.c: Revert.
9148 * alpha-mdebug-tdep.c: Revert.
9149 * alpha-linux-tdep.c: Revert.
9150 * alpha-linux-nat.c: Revert.
9151 * alpha-bsd-tdep.c: Revert.
9152 * alpha-bsd-nat.c: Revert.
9153 * aix-thread.c: Revert.
9154 * agent.c: Revert.
9155 * addrmap.c: Revert.
9156 * ada-varobj.c: Revert.
9157 * ada-valprint.c: Revert.
9158 * ada-typeprint.c: Revert.
9159 * ada-tasks.c: Revert.
9160 * ada-lang.c: Revert.
9161 * aarch64-tdep.c: Revert.
9162 * aarch64-ravenscar-thread.c: Revert.
9163 * aarch64-newlib-tdep.c: Revert.
9164 * aarch64-linux-tdep.c: Revert.
9165 * aarch64-linux-nat.c: Revert.
9166 * aarch64-fbsd-tdep.c: Revert.
9167 * aarch64-fbsd-nat.c: Revert.
9168 * aarch32-linux-nat.c: Revert.
9169
9170 2019-04-05 Tom Tromey <tom@tromey.com>
9171
9172 * ft32-tdep.c: Sort headers.
9173 * frv-tdep.c: Sort headers.
9174 * frv-linux-tdep.c: Sort headers.
9175 * frame.c: Sort headers.
9176 * frame-unwind.c: Sort headers.
9177 * frame-base.c: Sort headers.
9178 * fork-child.c: Sort headers.
9179 * findvar.c: Sort headers.
9180 * findcmd.c: Sort headers.
9181 * filesystem.c: Sort headers.
9182 * filename-seen-cache.h: Sort headers.
9183 * filename-seen-cache.c: Sort headers.
9184 * fbsd-tdep.c: Sort headers.
9185 * fbsd-nat.h: Sort headers.
9186 * fbsd-nat.c: Sort headers.
9187 * f-valprint.c: Sort headers.
9188 * f-typeprint.c: Sort headers.
9189 * f-lang.c: Sort headers.
9190 * extension.h: Sort headers.
9191 * extension.c: Sort headers.
9192 * extension-priv.h: Sort headers.
9193 * expprint.c: Sort headers.
9194 * exec.h: Sort headers.
9195 * exec.c: Sort headers.
9196 * exceptions.c: Sort headers.
9197 * event-top.c: Sort headers.
9198 * event-loop.c: Sort headers.
9199 * eval.c: Sort headers.
9200 * elfread.c: Sort headers.
9201 * dwarf2read.h: Sort headers.
9202 * dwarf2read.c: Sort headers.
9203 * dwarf2loc.c: Sort headers.
9204 * dwarf2expr.h: Sort headers.
9205 * dwarf2expr.c: Sort headers.
9206 * dwarf2-frame.c: Sort headers.
9207 * dwarf2-frame-tailcall.c: Sort headers.
9208 * dwarf-index-write.h: Sort headers.
9209 * dwarf-index-write.c: Sort headers.
9210 * dwarf-index-common.c: Sort headers.
9211 * dwarf-index-cache.h: Sort headers.
9212 * dwarf-index-cache.c: Sort headers.
9213 * dummy-frame.c: Sort headers.
9214 * dtrace-probe.c: Sort headers.
9215 * disasm.h: Sort headers.
9216 * disasm.c: Sort headers.
9217 * disasm-selftests.c: Sort headers.
9218 * dictionary.c: Sort headers.
9219 * dicos-tdep.c: Sort headers.
9220 * demangle.c: Sort headers.
9221 * dcache.h: Sort headers.
9222 * dcache.c: Sort headers.
9223 * darwin-nat.h: Sort headers.
9224 * darwin-nat.c: Sort headers.
9225 * darwin-nat-info.c: Sort headers.
9226 * d-valprint.c: Sort headers.
9227 * d-namespace.c: Sort headers.
9228 * d-lang.c: Sort headers.
9229 * ctf.c: Sort headers.
9230 * csky-tdep.c: Sort headers.
9231 * csky-linux-tdep.c: Sort headers.
9232 * cris-tdep.c: Sort headers.
9233 * cris-linux-tdep.c: Sort headers.
9234 * cp-valprint.c: Sort headers.
9235 * cp-support.c: Sort headers.
9236 * cp-namespace.c: Sort headers.
9237 * cp-abi.c: Sort headers.
9238 * corelow.c: Sort headers.
9239 * corefile.c: Sort headers.
9240 * continuations.c: Sort headers.
9241 * completer.h: Sort headers.
9242 * completer.c: Sort headers.
9243 * complaints.c: Sort headers.
9244 * coffread.c: Sort headers.
9245 * coff-pe-read.c: Sort headers.
9246 * cli-out.h: Sort headers.
9247 * cli-out.c: Sort headers.
9248 * charset.c: Sort headers.
9249 * c-varobj.c: Sort headers.
9250 * c-valprint.c: Sort headers.
9251 * c-typeprint.c: Sort headers.
9252 * c-lang.c: Sort headers.
9253 * buildsym.c: Sort headers.
9254 * buildsym-legacy.c: Sort headers.
9255 * build-id.h: Sort headers.
9256 * build-id.c: Sort headers.
9257 * btrace.c: Sort headers.
9258 * bsd-uthread.c: Sort headers.
9259 * breakpoint.h: Sort headers.
9260 * breakpoint.c: Sort headers.
9261 * break-catch-throw.c: Sort headers.
9262 * break-catch-syscall.c: Sort headers.
9263 * break-catch-sig.c: Sort headers.
9264 * blockframe.c: Sort headers.
9265 * block.c: Sort headers.
9266 * bfin-tdep.c: Sort headers.
9267 * bfin-linux-tdep.c: Sort headers.
9268 * bfd-target.c: Sort headers.
9269 * bcache.c: Sort headers.
9270 * ax-general.c: Sort headers.
9271 * ax-gdb.h: Sort headers.
9272 * ax-gdb.c: Sort headers.
9273 * avr-tdep.c: Sort headers.
9274 * auxv.c: Sort headers.
9275 * auto-load.c: Sort headers.
9276 * arm-wince-tdep.c: Sort headers.
9277 * arm-tdep.c: Sort headers.
9278 * arm-symbian-tdep.c: Sort headers.
9279 * arm-pikeos-tdep.c: Sort headers.
9280 * arm-obsd-tdep.c: Sort headers.
9281 * arm-nbsd-tdep.c: Sort headers.
9282 * arm-nbsd-nat.c: Sort headers.
9283 * arm-linux-tdep.c: Sort headers.
9284 * arm-linux-nat.c: Sort headers.
9285 * arm-fbsd-tdep.c: Sort headers.
9286 * arm-fbsd-nat.c: Sort headers.
9287 * arm-bsd-tdep.c: Sort headers.
9288 * arch-utils.c: Sort headers.
9289 * arc-tdep.c: Sort headers.
9290 * arc-newlib-tdep.c: Sort headers.
9291 * annotate.h: Sort headers.
9292 * annotate.c: Sort headers.
9293 * amd64-windows-tdep.c: Sort headers.
9294 * amd64-windows-nat.c: Sort headers.
9295 * amd64-tdep.c: Sort headers.
9296 * amd64-sol2-tdep.c: Sort headers.
9297 * amd64-obsd-tdep.c: Sort headers.
9298 * amd64-obsd-nat.c: Sort headers.
9299 * amd64-nbsd-tdep.c: Sort headers.
9300 * amd64-nbsd-nat.c: Sort headers.
9301 * amd64-nat.c: Sort headers.
9302 * amd64-linux-tdep.c: Sort headers.
9303 * amd64-linux-nat.c: Sort headers.
9304 * amd64-fbsd-tdep.c: Sort headers.
9305 * amd64-fbsd-nat.c: Sort headers.
9306 * amd64-dicos-tdep.c: Sort headers.
9307 * amd64-darwin-tdep.c: Sort headers.
9308 * amd64-bsd-nat.c: Sort headers.
9309 * alpha-tdep.c: Sort headers.
9310 * alpha-obsd-tdep.c: Sort headers.
9311 * alpha-nbsd-tdep.c: Sort headers.
9312 * alpha-mdebug-tdep.c: Sort headers.
9313 * alpha-linux-tdep.c: Sort headers.
9314 * alpha-linux-nat.c: Sort headers.
9315 * alpha-bsd-tdep.c: Sort headers.
9316 * alpha-bsd-nat.c: Sort headers.
9317 * aix-thread.c: Sort headers.
9318 * agent.c: Sort headers.
9319 * addrmap.c: Sort headers.
9320 * ada-varobj.c: Sort headers.
9321 * ada-valprint.c: Sort headers.
9322 * ada-typeprint.c: Sort headers.
9323 * ada-tasks.c: Sort headers.
9324 * ada-lang.c: Sort headers.
9325 * aarch64-tdep.c: Sort headers.
9326 * aarch64-ravenscar-thread.c: Sort headers.
9327 * aarch64-newlib-tdep.c: Sort headers.
9328 * aarch64-linux-tdep.c: Sort headers.
9329 * aarch64-linux-nat.c: Sort headers.
9330 * aarch64-fbsd-tdep.c: Sort headers.
9331 * aarch64-fbsd-nat.c: Sort headers.
9332 * aarch32-linux-nat.c: Sort headers.
9333
9334 2019-04-04 Tom Tromey <tom@tromey.com>
9335
9336 * varobj.c (varobj_create): Update.
9337 * rust-exp.y (struct rust_parser) <update_innermost_block,
9338 lookup_symbol>: New methods.
9339 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
9340 Rename.
9341 (rust_parser::rust_lookup_type)
9342 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9343 * printcmd.c (display_command, do_one_display): Update.
9344 * parser-defs.h (struct parser_state) <parser_state>: Add
9345 "tracker" parameter.
9346 (block_tracker): New member.
9347 (class innermost_block_tracker) <innermost_block_tracker>: Add
9348 "types" parameter.
9349 <reset>: Remove method.
9350 (innermost_block): Don't declare.
9351 (null_post_parser): Update.
9352 * parse.c (innermost_block): Remove global.
9353 (write_dollar_variable): Update.
9354 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
9355 Remove "tracker_types" parameter.
9356 (parse_expression): Add "tracker" parameter.
9357 (parse_expression_for_completion): Update.
9358 (null_post_parser): Add "tracker" parameter.
9359 * p-exp.y: Update rules.
9360 * m2-exp.y: Update rules.
9361 * language.h (struct language_defn) <la_post_parser>: Add
9362 "tracker" parameter.
9363 * go-exp.y: Update rules.
9364 * f-exp.y: Update rules.
9365 * expression.h (parse_expression, parse_exp_1): Add "tracker"
9366 parameter.
9367 * d-exp.y: Update rules.
9368 * c-exp.y: Update rules.
9369 * breakpoint.c (set_breakpoint_condition): Create an
9370 innermost_block_tracker.
9371 (watch_command_1): Likewise.
9372 * ada-lang.c (resolve): Add "tracker" parameter.
9373 (resolve_subexp): Likewise.
9374 * ada-exp.y (write_var_from_sym): Update.
9375
9376 2019-04-04 Tom Tromey <tom@tromey.com>
9377
9378 * type-stack.h: New file.
9379 * type-stack.c: New file.
9380 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
9381 type-stack.h.
9382 (insert_into_type_stack, insert_type, push_type, push_type_int)
9383 (insert_type_address_space, pop_type, pop_type_int)
9384 (pop_typelist, pop_type_stack, append_type_stack)
9385 (push_type_stack, get_type_stack, push_typelist)
9386 (follow_type_instance_flags, follow_types): Don't declare.
9387 * parse.c (type_stack): Remove global.
9388 (parse_exp_in_context): Update.
9389 (insert_into_type_stack, insert_type, push_type, push_type_int)
9390 (insert_type_address_space, pop_type, pop_type_int)
9391 (pop_typelist, pop_type_stack, append_type_stack)
9392 (push_type_stack, get_type_stack, push_typelist)
9393 (follow_type_instance_flags, follow_types): Remove (moved to
9394 type-stack.c).
9395 * f-exp.y (type_stack): New global.
9396 Update rules.
9397 (push_kind_type, f_parse): Update.
9398 * d-exp.y (type_stack): New global.
9399 Update rules.
9400 (d_parse): Update.
9401 * c-exp.y (struct c_parse_state) <type_stack>: New member.
9402 Update rules.
9403 * Makefile.in (COMMON_SFILES): Add type-stack.c.
9404 (HFILES_NO_SRCDIR): Add type-stack.h.
9405
9406 2019-04-04 Tom Tromey <tom@tromey.com>
9407
9408 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
9409 (rust_parser::convert_ast_to_expression, rust_parse)
9410 (rust_lex_test_completion, rust_lex_tests): Update.
9411 * parser-defs.h (struct expr_completion_state): New.
9412 (struct parser_state) <parser_state>: Add completion parameter.
9413 <mark_struct_expression, mark_completion_tag>: New methods.
9414 <parse_completion, m_completion_state>: New members.
9415 (prefixify_expression, null_post_parser): Update.
9416 (mark_struct_expression, mark_completion_tag): Don't declare.
9417 * parse.c (parse_completion, expout_last_struct)
9418 (expout_tag_completion_type, expout_completion_name): Remove
9419 globals.
9420 (parser_state::mark_struct_expression)
9421 (parser_state::mark_completion_tag): Now methods.
9422 (prefixify_expression): Add last_struct parameter.
9423 (prefixify_subexp): Likewise.
9424 (parse_exp_1): Update.
9425 (parse_exp_in_context): Add cstate parameter. Update.
9426 (parse_expression_for_completion): Create an
9427 expr_completion_state.
9428 (null_post_parser): Add "completion" parameter.
9429 * p-exp.y: Update rules.
9430 (yylex): Update.
9431 * language.h (struct language_defn) <la_post_parser>: Add
9432 "completing" parameter.
9433 * go-exp.y: Update rules.
9434 (lex_one_token): Update.
9435 * expression.h (parse_completion): Don't declare.
9436 * d-exp.y: Update rules.
9437 (lex_one_token): Update rules.
9438 * c-exp.y: Update rules.
9439 (lex_one_token): Update.
9440 * ada-lang.c (resolve): Add "parse_completion" parameter.
9441 (resolve_subexp): Likewise.
9442 (ada_resolve_function): Likewise.
9443
9444 2019-04-04 Tom Tromey <tom@tromey.com>
9445
9446 * parser-defs.h (struct parser_state) <start_arglist,
9447 end_arglist>: New methods.
9448 <arglist_len, m_funcall_chain>: New members.
9449 (arglist_len, start_arglist, end_arglist): Don't declare.
9450 * parse.c (arglist_len, funcall_chain): Remove global.
9451 (start_arglist, end_arglist): Remove functions.
9452 (parse_exp_in_context): Update.
9453 * p-exp.y: Update rules.
9454 * m2-exp.y: Update rules.
9455 * go-exp.y: Update rules.
9456 * f-exp.y: Update rules.
9457 * d-exp.y: Update rules.
9458 * c-exp.y: Update rules.
9459
9460 2019-04-04 Tom Tromey <tom@tromey.com>
9461
9462 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
9463 lex_operator, push_back>: New methods.
9464 Update all rules.
9465 (rust_parser::lex_hex, lex_escape): Rename and update.
9466 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
9467 (rust_parser::lex_operator): Rename and update.
9468 (rust_parser::lex_number, rustyylex, rustyyerror)
9469 (rust_lex_test_init, rust_lex_test_sequence)
9470 (rust_lex_test_push_back, rust_lex_tests): Update.
9471 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
9472 parameter.
9473 <lexptr, prev_lexptr>: New members.
9474 (lexptr, prev_lexptr): Don't declare.
9475 * parse.c (lexptr, prev_lexptr): Remove globals.
9476 (parse_exp_in_context): Update.
9477 * p-exp.y (yylex, yyerror): Update.
9478 * m2-exp.y (parse_number, yylex, yyerror): Update.
9479 * go-exp.y (lex_one_token, yyerror): Update.
9480 * f-exp.y (match_string_literal, yylex, yyerror): Update.
9481 * d-exp.y (lex_one_token, yyerror): Update.
9482 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
9483 (lex_one_token, yyerror): Update.
9484 * ada-lex.l (YY_INPUT): Update.
9485 (rewind_to_char): Update.
9486 * ada-exp.y (yyerror): Update.
9487
9488 2019-04-04 Tom Tromey <tom@tromey.com>
9489
9490 * rust-exp.y (rustyylex, rust_lex_tests): Update.
9491 * parser-defs.h (struct parser_state) <parser_state>: Add new
9492 parameter.
9493 <comma_terminates>: New member.
9494 (comma_terminates): Don't declare global.
9495 * parse.c (comma_terminates): Remove global.
9496 (parse_exp_in_context): Update.
9497 * p-exp.y (yylex): Update.
9498 * m2-exp.y (yylex): Update.
9499 * go-exp.y (lex_one_token): Update.
9500 * f-exp.y (yylex): Update.
9501 * d-exp.y (lex_one_token): Update.
9502 * c-exp.y (lex_one_token): Update.
9503 * ada-lex.l: Update.
9504
9505 2019-04-04 Tom Tromey <tom@tromey.com>
9506
9507 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
9508 (rustyylex, rust_lex_test_init, rust_lex_test_one)
9509 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
9510 * parser-defs.h (paren_depth): Don't declare.
9511 * parse.c (paren_depth): Remove global.
9512 (parse_exp_in_context): Update.
9513 * p-exp.y (paren_depth): New global.
9514 (pascal_parse): Initialize it.
9515 * m2-exp.y (paren_depth): New global.
9516 (m2_parse): Initialize it.
9517 * go-exp.y (paren_depth): New global.
9518 (go_parse): Initialize it.
9519 * f-exp.y (paren_depth): New global.
9520 (f_parse): Initialize it.
9521 * d-exp.y (paren_depth): New global.
9522 (d_parse): Initialize it.
9523 * c-exp.y (paren_depth): New global.
9524 (c_parse): Initialize it.
9525 * ada-lex.l (paren_depth): New global.
9526 (lexer_init): Initialize it.
9527
9528 2019-04-04 Tom Tromey <tom@tromey.com>
9529
9530 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
9531 (rust_parser::convert_ast_to_type)
9532 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9533 * parser-defs.h (struct parser_state) <parser_state>: Add
9534 parameters. Initialize new members.
9535 <expression_context_block, expression_context_pc>: New members.
9536 * parse.c (expression_context_block, expression_context_pc):
9537 Remove globals.
9538 (parse_exp_in_context): Update.
9539 * p-exp.y: Update all rules.
9540 (yylex): Update.
9541 * m2-exp.y: Update all rules.
9542 (yylex): Update.
9543 * go-exp.y (yylex): Update.
9544 * f-exp.y (yylex): Update.
9545 * d-exp.y: Update all rules.
9546 (yylex): Update.
9547 * c-exp.y: Update all rules.
9548 (lex_one_token, classify_name, yylex, c_parse): Update.
9549 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
9550
9551 2019-04-04 Tom Tromey <tom@tromey.com>
9552
9553 * gdbarch.h, gdbarch.c: Rebuild.
9554 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
9555 * stap-probe.h:
9556 (struct stap_parse_info): Replace "parser_state" with
9557 "expr_builder".
9558 * parser-defs.h (struct expr_builder): Rename from "parser_state".
9559 (parser_state): New class.
9560 * parse.c (expr_builder): Rename.
9561 (expr_builder::release): Rename.
9562 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
9563 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
9564 (write_exp_elt_longcst, write_exp_elt_floatcst)
9565 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
9566 (write_exp_string_vector, write_exp_bitstring)
9567 (write_exp_msymbol, mark_struct_expression)
9568 (write_dollar_variable)
9569 (insert_type_address_space, increase_expout_size): Replace
9570 "parser_state" with "expr_builder".
9571 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
9572 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
9573 "parser_state" with "expr_builder".
9574
9575 2019-04-04 Tom Tromey <tom@tromey.com>
9576
9577 * rust-exp.y: Replace "parse_language" with method call.
9578 * p-exp.y:
9579 (yylex): Replace "parse_language" with method call.
9580 * m2-exp.y:
9581 (yylex): Replace "parse_language" with method call.
9582 * go-exp.y (classify_name): Replace "parse_language" with method
9583 call.
9584 * f-exp.y (yylex): Replace "parse_language" with method call.
9585 * d-exp.y (lex_one_token): Replace "parse_language" with method
9586 call.
9587 * c-exp.y:
9588 (lex_one_token, classify_name, yylex): Replace "parse_language"
9589 with method call.
9590 * ada-exp.y (find_primitive_type, type_char)
9591 (type_system_address): Replace "parse_language" with method call.
9592
9593 2019-04-04 Tom Tromey <tom@tromey.com>
9594
9595 * rust-exp.y: Replace "parse_gdbarch" with method call.
9596 * parse.c (write_dollar_variable, insert_type_address_space):
9597 Replace "parse_gdbarch" with method call.
9598 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
9599 call.
9600 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
9601 call.
9602 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
9603 "parse_gdbarch" with method call.
9604 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
9605 with method call.
9606 * f-exp.y (parse_type, parse_f_type, yylex): Replace
9607 "parse_gdbarch" with method call.
9608 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
9609 "parse_gdbarch" with method call.
9610 * c-exp.y (parse_type, parse_number, classify_name): Replace
9611 "parse_gdbarch" with method call.
9612 * ada-lex.l: Replace "parse_gdbarch" with method call.
9613 * ada-exp.y (parse_type, find_primitive_type, type_char)
9614 (type_system_address): Replace "parse_gdbarch" with method call.
9615
9616 2019-04-04 Tom Tromey <tom@tromey.com>
9617
9618 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
9619 * stap-probe.c (stap_parse_argument): Update.
9620 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
9621 initial_size parameter.
9622 * rust-exp.y (rust_lex_tests): Update.
9623 * parse.c (parser_state): Update.
9624 (parse_exp_in_context): Update.
9625 * parser-defs.h (struct parser_state) <parser_state>: Remove
9626 "initial_size" parameter.
9627
9628 2019-04-04 Tom Tromey <tom@tromey.com>
9629
9630 * parser-defs.h (increase_expout_size): Don't declare.
9631 * parse.c (increase_expout_size): Now static.
9632
9633 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
9634
9635 * gnu-nat.c (gnu_nat_target::wait): Fix
9636 target_waitstatus_to_string call.
9637
9638 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9639
9640 * eval.c (evaluate_subexp_standard): Handle internal functions
9641 during Fortran function call handling.
9642
9643 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9644
9645 * NEWS: Mention new internal functions.
9646 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
9647 (read_base_type): Use dwarf2_init_complex_target_type.
9648 * value.c (creal_internal_fn): New function.
9649 (cimag_internal_fn): New function.
9650 (_initialize_values): Register new internal functions.
9651
9652 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9653
9654 * infrun.c (stop_all_threads): If debug_infrun, always
9655 trace the wait status after wait_one, using
9656 target_waitstatus_to_string and target_pid_to_str.
9657 (handle_inferior_event): Replace various trace of
9658 wait status kind by a single trace.
9659 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
9660 wait status kind image by target_waitstatus_to_string.
9661 * target/waitstatus.c (target_waitstatus_to_string): Fix
9662 obsolete comment.
9663
9664 2019-04-01 Tom Tromey <tromey@adacore.com>
9665
9666 PR symtab/23331:
9667 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
9668
9669 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
9670 Pedro Alves <palves@redhat.com>
9671
9672 * top.c (quit_force): Call 'finalize_values'.
9673 * value.c (finalize_values): New function.
9674 * value.h (finalize_values): Declare.
9675
9676 2019-03-30 Eli Zaretskii <eliz@gnu.org>
9677
9678 * NEWS: Announce $_gdb_major and $_gdb_minor.
9679
9680 * top.c (init_gdb_version_vars): New function.
9681 (gdb_init): Call init_gdb_version_vars.
9682
9683 2019-03-29 Tom Tromey <tromey@adacore.com>
9684
9685 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
9686 help text. Remove dead code.
9687
9688 2019-03-29 Keith Seitz <keiths@redhat.com>
9689
9690 From Siddhesh Poyarekar:
9691 * f-lang.h (f77_get_upperbound): Return LONGEST.
9692 (f77_get_lowerbound): Likewise.
9693 * f-typeprint.c (f_type_print_varspec_suffix): Expand
9694 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
9695 print them.
9696 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
9697 plongest to format print it.
9698 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
9699 (f77_get_upperbound): Likewise.
9700 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
9701 LOWER_BOUND to LONGEST.
9702 (f77_create_arrayprint_offset_tbl): Likewise.
9703
9704 2019-03-29 Keith Seitz <keiths@redhat.com>
9705
9706 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
9707 %s/pulongest for TYPE_LENGTH instead of %d in format
9708 strings.
9709 * ada-typerint.c (ada_print_type): Likewise.
9710 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
9711 * compile/compile-c-support.c (generate_register_struct): Likewise.
9712 * gdbtypes.c (recursive_dump_type): Likewise.
9713 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
9714 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
9715 instead of %d in format strings.
9716 * riscv-tdep.c (riscv_type_alignment): Cast second argument
9717 to std::min to ULONGEST.
9718 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
9719 instead of %d in format strings.
9720 * tracepoint.c (info_scope_command): Likewise.
9721 * typeprint.c (print_offset_data::update)
9722 (print_offset_data::finish): Likewise.
9723 * xtensa-tdep.c (xtensa_store_return_value)
9724 (xtensa_push_dummy_call): Likewise.
9725
9726 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
9727
9728 * windows-nat.c (display_selector): Fixed format specifications
9729 for 64-bit Cygwin.
9730
9731 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9732
9733 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
9734
9735 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
9736
9737 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
9738 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
9739 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
9740 (nios2_linux_init_abi): Install it.
9741
9742 2019-03-28 Alan Hayward <alan.hayward@arm.com>
9743
9744 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
9745
9746 2019-03-28 Alan Hayward <alan.hayward@arm.com>
9747
9748 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
9749
9750 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9751 Tom Tromey <tromey@adacore.com>
9752
9753 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
9754
9755 2019-03-26 Joel Brobecker <brobecker@adacore.com>
9756
9757 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
9758 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
9759 method to compute the bounds of range types. Also print "[evaluated]"
9760 if the bounds' values come from a dynamic evaluation.
9761
9762 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
9763
9764 * cp-valprint.c (cp_print_value_fields): Don't print trailing
9765 whitespace when pretty printing is on.
9766
9767 2019-03-26 Alan Hayward <alan.hayward@arm.com>
9768
9769 * ppc-linux-nat.c: Add include.
9770
9771 2019-03-26 Alan Hayward <alan.hayward@arm.com>
9772
9773 * NEWS: Mention AArch64 Pointer Authentication.
9774
9775 2019-03-26 Alan Hayward <alan.hayward@arm.com>
9776
9777 * arm-linux-nat.c: Add include.
9778
9779 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
9780
9781 * source-cache.c (source_cache::get_source_lines): Re-read
9782 fullname after calling open_source_file.
9783
9784 2019-03-25 John Baldwin <jhb@FreeBSD.org>
9785
9786 * NEWS: Mention TLS support for FreeBSD.
9787
9788 2019-03-25 Tom Tromey <tromey@adacore.com>
9789
9790 * minsyms.c (BUNCH_SIZE): Update comment.
9791 (~minimal_symbol_reader): Remove old comment.
9792 (compact_minimal_symbols): Update comment.
9793 (minimal_symbol_reader::install): Remove old comment. Update
9794 other comments.
9795
9796 2019-03-25 Alan Hayward <alan.hayward@arm.com>
9797
9798 * s390-linux-nat.c: Add include.
9799
9800 2019-03-25 Alan Hayward <alan.hayward@arm.com>
9801
9802 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
9803 Call linux_get_hwcap.
9804 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
9805 Likewise.
9806 (aarch64_linux_get_hwcap): Remove function.
9807 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
9808 declaration.
9809 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
9810 linux_get_hwcap.
9811 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
9812 * linux-tdep.c (linux_get_hwcap): Add function.
9813 (linux_get_hwcap2): Likewise.
9814 * linux-tdep.h (linux_get_hwcap): Add declaration.
9815 (linux_get_hwcap2): Likewise.
9816 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
9817 (ppc_linux_get_hwcap2): Likewise.
9818 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
9819 linux_get_hwcap.
9820 (ppc_linux_nat_target::insert_watchpoint): Likewise.
9821 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
9822 (ppc_linux_nat_target::read_description): Likewise.
9823 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
9824 * s390-linux-nat.c: Likewise.
9825 * s390-linux-tdep.c (s390_core_read_description): Likewise.
9826
9827 2019-03-24 Tom Tromey <tom@tromey.com>
9828
9829 * ada-lang.c (standard_lookup): Simplify initialization.
9830 (ada_lookup_symbol_nonlocal): Simplify return.
9831 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
9832 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
9833 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
9834 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
9835 initialization.
9836 * solib.c (solib_global_lookup): Simplify.
9837 * symtab.c (null_block_symbol): Remove.
9838 (symbol_cache_lookup): Simplify returns.
9839 (lookup_language_this): Simplify returns.
9840 (lookup_symbol_aux): Simplify return.
9841 (lookup_local_symbol): Simplify returns.
9842 (lookup_global_symbol_from_objfile): Simplify return.
9843 (lookup_symbol_in_objfile_symtabs)
9844 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
9845 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
9846 (lookup_static_symbol, lookup_global_symbol): Simplify return.
9847 * cp-namespace.c (cp_lookup_bare_symbol)
9848 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
9849 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
9850 (cp_lookup_nested_symbol): Don't use null_block_symbol.
9851 (cp_lookup_symbol_via_imports): Simplify initialization.
9852 (find_symbol_in_baseclass): Likewise.
9853 * symtab.h (null_block_symbol): Remove.
9854 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
9855 (d_lookup_nested_symbol, d_lookup_symbol_imports)
9856 (d_lookup_symbol_module): Likewise.
9857 (find_symbol_in_baseclass): Simplify initialization.
9858
9859 2019-03-24 Tom Tromey <tom@tromey.com>
9860
9861 * expression.h: Don't include symtab.h.
9862 (struct block): Forward declare.
9863
9864 2019-03-24 Tom Tromey <tom@tromey.com>
9865
9866 * c-exp.y (typebase): Remove casts.
9867 * gdbtypes.c (lookup_unsigned_typename, )
9868 (lookup_signed_typename): Remove cast.
9869 * eval.c (parse_to_comma_and_eval): Remove cast.
9870 * parse.c (write_dollar_variable): Remove cast.
9871 * block.h (struct block) <superblock>: Now const.
9872 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
9873 * psymtab.c (psym_map_matching_symbols): Make "block" const.
9874 (map_block): Make "block" const.
9875 * symfile.h (struct quick_symbol_functions)
9876 <map_matching_symbols>: Constify block argument to "callback".
9877 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
9878 const.
9879 (find_pc_sect_compunit_symtab): Make "b" const.
9880 (find_symbol_at_address): Likewise.
9881 (search_symbols): Likewise.
9882 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
9883 (dw2_debug_names_lookup_symbol): Likewise.
9884 (dw2_map_matching_symbols): Update.
9885 * p-valprint.c (pascal_val_print): Remove "block".
9886 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
9887 (aux_add_nonlocal_symbols): Make "block" const.
9888 (resolve_subexp): Remove cast.
9889 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
9890 const.
9891 (iterate_over_file_blocks): Likewise.
9892 * f-exp.y (%union) <bval>: Remove.
9893 * coffread.c (patch_opaque_types): Make "b" const.
9894 * spu-tdep.c (spu_catch_start): Make "block" const.
9895 * c-valprint.c (print_unpacked_pointer): Remove "block".
9896 * symmisc.c (dump_symtab_1): Make "b" const.
9897 (block_depth): Make "block" const.
9898 * d-exp.y (%union) <bval>: Remove.
9899 * cp-support.h (cp_lookup_rtti_type): Update.
9900 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
9901 * psymtab.c (psym_lookup_symbol): Make "block" const.
9902 (maintenance_check_psymtabs): Make "b" const.
9903 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
9904 (enumerate_locals, enumerate_args): Update.
9905 * python/py-symtab.c (stpy_global_block): Make "block" const.
9906 (stpy_static_block): Likewise.
9907 * inline-frame.c (block_starting_point_at): Make "new_block"
9908 const.
9909 * block.c (find_block_in_blockvector): Make return type const.
9910 (blockvector_for_pc_sect): Make "b" const.
9911 (find_block_in_blockvector): Make "b" const.
9912
9913 2019-03-23 Tom Tromey <tom@tromey.com>
9914
9915 * varobj.c (varobj_create): Update.
9916 * symfile.c (clear_symtab_users): Don't reset innermost_block.
9917 * printcmd.c (display_command, do_one_display): Don't reset
9918 innermost_block.
9919 * parser-defs.h (enum innermost_block_tracker_type): Move to
9920 expression.h.
9921 (innermost_block): Update comment.
9922 * parse.c (parse_exp_1): Add tracker_types parameter.
9923 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
9924 tracker_types parameter. Reset innermost_block.
9925 (parse_exp_in_context): Remove.
9926 (parse_expression_for_completion): Update.
9927 * objfiles.c (~objfile): Don't reset expression_context_block or
9928 innermost_block.
9929 * expression.h (enum innermost_block_tracker_type): Move from
9930 parser-defs.h.
9931 (parse_exp_1): Add tracker_types parameter.
9932 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
9933 reset innermost_block.
9934
9935 2019-03-23 Tom Tromey <tom@tromey.com>
9936
9937 * objfiles.h: Include bcache.h.
9938
9939 2019-03-23 Tom Tromey <tom@tromey.com>
9940
9941 * linespec.c (get_current_search_block): Use
9942 scoped_restore_current_language.
9943 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
9944
9945 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9946 Jiong Wang <jiong.wang@arm.com>
9947
9948 * aarch64-linux-tdep.c
9949 (aarch64_linux_iterate_over_regset_sections): Check for pauth
9950 section.
9951 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
9952
9953 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9954 Jiong Wang <jiong.wang@arm.com>
9955
9956 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
9957 instructions.
9958 (aarch64_analyze_prologue_test): Add PACIASP test.
9959 (aarch64_prologue_prev_register): Unmask PC value.
9960
9961 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9962 Jiong Wang <jiong.wang@arm.com>
9963
9964 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
9965 (aarch64_dwarf2_prev_register): Unmask PC value.
9966 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
9967 (aarch64_execute_dwarf_cfa_vendor_op): Check for
9968 DW_CFA_AARCH64_negate_ra_state.
9969 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
9970
9971 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9972 Jiong Wang <jiong.wang@arm.com>
9973
9974 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
9975 registers.
9976 (aarch64_pseudo_register_name): Likewise.
9977 (aarch64_pseudo_register_type): Likewise.
9978 (aarch64_pseudo_register_reggroup_p): Likewise.
9979 (aarch64_gdbarch_init): Add pauth registers.
9980 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
9981 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
9982 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
9983 (struct gdbarch_tdep): Add regnum for ra_state.
9984
9985 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9986 Jiong Wang <jiong.wang@arm.com>
9987
9988 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
9989
9990 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9991 Jiong Wang <jiong.wang@arm.com>
9992
9993 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
9994 function.
9995 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
9996 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
9997 (aarch64_gdbarch_init): Add puth registers.
9998 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
9999 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
10000 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
10001
10002 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10003 Jiong Wang <jiong.wang@arm.com>
10004
10005 * aarch64-linux-nat.c
10006 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
10007 * aarch64-linux-tdep.c
10008 (aarch64_linux_core_read_description): Likewise.
10009 (aarch64_linux_get_hwcap): New function.
10010 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
10011 (aarch64_linux_get_hwcap): New declaration.
10012
10013 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10014 Jiong Wang <jiong.wang@arm.com>
10015
10016 * aarch64-linux-nat.c
10017 (aarch64_linux_nat_target::read_description): Add pauth param.
10018 * aarch64-linux-tdep.c
10019 (aarch64_linux_core_read_description): Likewise.
10020 * aarch64-tdep.c (struct target_desc): Add in pauth.
10021 (aarch64_read_description): Add pauth param.
10022 (aarch64_gdbarch_init): Likewise.
10023 * aarch64-tdep.h (aarch64_read_description): Likewise.
10024 * arch/aarch64.c (aarch64_create_target_description): Likewise.
10025 * arch/aarch64.h (aarch64_create_target_description): Likewise.
10026 * features/Makefile: Add new files.
10027 * features/aarch64-pauth.c: New file.
10028 * features/aarch64-pauth.xml: New file.
10029
10030 2019-03-20 Tom Tromey <tromey@adacore.com>
10031
10032 * infrun.c (handle_inferior_event): Rename from
10033 handle_inferior_event_1. Create a scoped_value_mark.
10034 (handle_inferior_event): Remove.
10035
10036 2019-03-19 Tom Tromey <tromey@adacore.com>
10037
10038 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
10039 * infrun.h (print_stop_event): Add "displays" parameter.
10040 * infrun.c (print_stop_event): Add "displays" parameter.
10041
10042 2019-03-19 Pedro Alves <palves@redhat.com>
10043
10044 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
10045 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
10046 to -1. Fix TABs vs spaces.
10047 (tui_ui_out::tui_ui_out): Don't initialize fields here.
10048 * tui/tui-out.h (tui_ui_out) Add intro comments.
10049 <m_line, m_start_of_line>: In-class initialize, and add describing
10050 comment.
10051
10052 2019-03-18 Alan Hayward <alan.hayward@arm.com>
10053
10054 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
10055 variable names.
10056 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
10057
10058 2019-03-18 Pedro Alves <palves@redhat.com>
10059 Eli Zaretskii <eliz@gnu.org>
10060
10061 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
10062 m_line and m_start_of_line.
10063
10064 2019-03-18 Eli Zaretskii <eliz@gnu.org>
10065
10066 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
10067 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
10068 it returns a newline. This fixes a regression in TU mode, whereby
10069 the next line is output on the same screen line as the user input.
10070
10071 2019-03-18 Tom Tromey <tromey@adacore.com>
10072
10073 * minsyms.c (minimal_symbol_reader::install): Remove call to
10074 obstack_blank.
10075
10076 2019-03-18 Pedro Alves <palves@redhat.com>
10077
10078 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
10079 New globals.
10080 (apply_style): New, factored out from ...
10081 (apply_ansi_escape): ... this. Handle reverse video mode.
10082 (tui_set_reverse_mode): New function.
10083 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
10084 * tui/tui-winsource.c (tui_show_source_line): Use
10085 tui_set_reverse_mode instead of setting A_STANDOUT.
10086 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
10087 New setter methods.
10088
10089 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
10090
10091 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
10092 Handle tabs.
10093
10094 2019-03-18 Tom Tromey <tromey@adacore.com>
10095
10096 * ada-lang.c (empty_array): Add "high" parameter.
10097 (ada_evaluate_subexp): Update.
10098
10099 2019-03-17 Sergei Trofimovich <siarheit@google.com>
10100
10101 * unittests/string_view-selftests.c: Define
10102 _initialize_string_view_selftests unconditionally.
10103
10104 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10105
10106 PR gdb/24350
10107 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
10108
10109 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10110
10111 PR gdb/24351
10112 * windows-nat.c (display_selector): Fix format specifiers.
10113
10114 2019-03-17 Eli Zaretskii <eliz@gnu.org>
10115
10116 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
10117 tui_refill_source_window instead of tui_refresh_win, to update the
10118 current execution line. This fixes redisplay of the current line
10119 when stepping through the code with "next" or "step".
10120
10121 2019-03-16 Eli Zaretskii <eliz@gnu.org>
10122
10123 * source-cache.c (source_cache::get_source_lines): Call
10124 find_source_lines to initialize s->nlines. This fixes vertical
10125 scrolling of TUI source window when the DOWN arrow is pressed.
10126
10127 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10128
10129 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
10130 linux-thread-db.c (_initialize_thread_db): Likewise.
10131
10132 2019-03-16 Eli Zaretskii <eliz@gnu.org>
10133
10134 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
10135 wclrtoeol in tui_show_source_line". This reverts changes made in
10136 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
10137
10138 2019-03-15 Tom Tromey <tom@tromey.com>
10139
10140 * symtab.h (struct minimal_symbol): Derive from
10141 general_symbol_info.
10142 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
10143 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10144 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10145 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10146 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
10147 (MSYMBOL_SEARCH_NAME): Update.
10148 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
10149 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
10150 * minsyms.c (minimal_symbol_reader::record_full): Update.
10151
10152 2019-03-15 Tom Tromey <tom@tromey.com>
10153
10154 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
10155
10156 2019-03-15 Tom Tromey <tom@tromey.com>
10157
10158 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
10159 unique_xmalloc_ptr.
10160 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
10161 Update.
10162 * minsyms.c (lookup_minimal_symbol_by_pc_section)
10163 (build_minimal_symbol_hash_tables)
10164 (minimal_symbol_reader::install): Update.
10165
10166 2019-03-15 Tom Tromey <tom@tromey.com>
10167
10168 * symtab.c (create_demangled_names_hash): Update.
10169 (symbol_set_names): Update.
10170 * objfiles.h (struct objfile_per_bfd_storage)
10171 <demangled_names_hash>: Now an htab_up.
10172 * objfiles.c (objfile_per_bfd_storage): Simplify.
10173
10174 2019-03-15 Tom Tromey <tom@tromey.com>
10175
10176 * objfiles.h (struct objfile_per_bfd_storage): Declare
10177 destructor.
10178 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
10179 New.
10180 (get_objfile_bfd_data): Use new. Don't initialize
10181 language_of_main.
10182 (free_objfile_per_bfd_storage): Remove.
10183 (objfile_bfd_data_free, objfile::~objfile): Use delete.
10184
10185 2019-03-15 Tom Tromey <tom@tromey.com>
10186
10187 * symfile.c (reread_symbols): Update.
10188 * objfiles.c (objfile::objfile): Update.
10189 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
10190 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
10191 comment.
10192 (minimal_symbol_reader::install): Update.
10193 (terminate_minimal_symbol_table): Remove.
10194 * jit.c (jit_object_close_impl): Update.
10195
10196 2019-03-15 Tom Tromey <tom@tromey.com>
10197
10198 * minsyms.c (minimal_symbol_reader::record_full): Remove some
10199 initializations.
10200
10201 2019-03-15 Tom Tromey <tom@tromey.com>
10202
10203 * objfiles.h (struct objfile_per_bfd_storage)
10204 <demangled_hash_languages>: Now a bitset.
10205 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
10206 (lookup_minimal_symbol): Update.
10207
10208 2019-03-15 Tom Tromey <tom@tromey.com>
10209
10210 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
10211 Don't return the symbol.
10212 * coffread.c (record_minimal_symbol): Use record_full.
10213
10214 2019-03-14 Eli Zaretskii <eliz@gnu.org>
10215
10216 The MS-Windows port of ncurses fails to switch to a color pair if
10217 one or both of the colors are the implicit default colors. This
10218 change records the default colors when TUI is initialized, and
10219 then specifies them explicitly when a color pair uses the default
10220 colors. This allows color styling in TUI mode on MS-Windows.
10221
10222 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
10223 ncurses_norm_attr.
10224 (tui_initialize_io) [__MINGW32__]: Record the default terminal
10225 colors in ncurses_norm_attr.
10226 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
10227 "none", replace it with the default color recorded in
10228 ncurses_norm_attr.
10229
10230 2019-03-14 Tom Tromey <tromey@adacore.com>
10231
10232 * source-cache.h (class source_cache) <get_source_lines>: Return
10233 std::string.
10234 * source-cache.c (source_cache::extract_lines): Handle case where
10235 first_pos==npos. Return std::string.
10236 (source_cache::get_source_lines): Update.
10237
10238 2019-03-14 Tom Tromey <tromey@adacore.com>
10239
10240 * NEWS: Add item for "style sources" commands.
10241 * source-cache.c (source_cache::get_source_lines): Check
10242 source_styling.
10243 * cli/cli-style.c (source_styling): New global.
10244 (_initialize_cli_style): Add "style sources" commands.
10245 (show_style_sources): New function.
10246 * cli/cli-style.h (source_styling): Declare.
10247
10248 2019-03-14 Pedro Alves <palves@redhat.com>
10249 Tom Tromey <tromey@adacore.com>
10250
10251 * tui/tui-winsource.h (tui_refill_source_window): Declare.
10252 * tui/tui-winsource.c (tui_refill_source_window): New function,
10253 from...
10254 (tui_horizontal_source_scroll): ... here. Move some logic.
10255 * cli/cli-style.c (set_style_enabled): Notify new observable.
10256 * tui/tui-hooks.c (tui_redisplay_source): New function.
10257 (tui_attach_detach_observers): Attach or detach
10258 tui_redisplay_source.
10259 * observable.h (source_styling_changed): New observable.
10260 * observable.c: Define source_styling_changed observable.
10261
10262 2019-03-13 Tom Tromey <tromey@adacore.com>
10263
10264 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
10265 (i386_gnu_nat_target::store_registers): Update.
10266 * target-debug.h (target_debug_print_std_string): New macro.
10267 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10268 * windows-tdep.c (display_one_tib): Update.
10269 * tui/tui-stack.c (tui_make_status_line): Update.
10270 * top.c (print_inferior_quit_action): Update.
10271 * thread.c (thr_try_catch_cmd): Update.
10272 (add_thread_with_info): Update.
10273 (thread_target_id_str): Update.
10274 (thr_try_catch_cmd): Update.
10275 (thread_command): Update.
10276 (thread_find_command): Update.
10277 * record-btrace.c (record_btrace_target::info_record)
10278 (record_btrace_resume_thread, record_btrace_target::resume)
10279 (record_btrace_cancel_resume, record_btrace_step_thread)
10280 (record_btrace_target::wait, record_btrace_target::wait)
10281 (record_btrace_target::wait, record_btrace_target::stop): Update.
10282 * progspace.c (print_program_space): Update.
10283 * process-stratum-target.c
10284 (process_stratum_target::thread_address_space): Update.
10285 * linux-fork.c (linux_fork_mourn_inferior)
10286 (detach_checkpoint_command, info_checkpoints_command)
10287 (linux_fork_context): Update.
10288 (linux_fork_detach): Update.
10289 (class scoped_switch_fork_info): Update.
10290 (delete_checkpoint_command): Update.
10291 * infrun.c (follow_fork_inferior): Update.
10292 (follow_fork_inferior): Update.
10293 (proceed_after_vfork_done): Update.
10294 (handle_vfork_child_exec_or_exit): Update.
10295 (follow_exec): Update.
10296 (displaced_step_prepare_throw): Update.
10297 (displaced_step_restore): Update.
10298 (start_step_over): Update.
10299 (resume_1): Update.
10300 (clear_proceed_status_thread): Update.
10301 (proceed): Update.
10302 (print_target_wait_results): Update.
10303 (do_target_wait): Update.
10304 (context_switch): Update.
10305 (stop_all_threads): Update.
10306 (restart_threads): Update.
10307 (finish_step_over): Update.
10308 (handle_signal_stop): Update.
10309 (switch_back_to_stepped_thread): Update.
10310 (keep_going_pass_signal): Update.
10311 (print_exited_reason): Update.
10312 (normal_stop): Update.
10313 * inferior.c (inferior_pid_to_str): Change return type.
10314 (print_selected_inferior): Update.
10315 (add_inferior): Update.
10316 (detach_inferior): Update.
10317 * dummy-frame.c (fprint_dummy_frames): Update.
10318 * dcache.c (dcache_info_1): Update.
10319 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
10320 (btrace_fetch, btrace_clear): Update.
10321 * linux-tdep.c (linux_core_pid_to_str): Change return type.
10322 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
10323 type.
10324 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
10325 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
10326 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
10327 * gdbarch.c, gdbarch.h: Rebuild.
10328 * gdbarch.sh (core_pid_to_str): Change return type.
10329 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
10330 return type.
10331 (windows_nat_target::pid_to_str): Change return type.
10332 (windows_delete_thread): Update.
10333 (windows_nat_target::attach): Update.
10334 (windows_nat_target::files_info): Update.
10335 * target-delegates.c: Rebuild.
10336 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
10337 return type.
10338 (sol_thread_target::pid_to_str): Change return type.
10339 * remote.c (class remote_target) <pid_to_str>: Change return
10340 type.
10341 (remote_target::pid_to_str): Change return type.
10342 (extended_remote_target::attach, remote_target::remote_stop_ns)
10343 (remote_target::remote_notif_remove_queued_reply)
10344 (remote_target::push_stop_reply, remote_target::disable_btrace):
10345 Update.
10346 (extended_remote_target::attach): Update.
10347 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
10348 type.
10349 (gdbsim_target::pid_to_str): Change return type.
10350 * ravenscar-thread.c (struct ravenscar_thread_target)
10351 <pid_to_str>: Change return type.
10352 (ravenscar_thread_target::pid_to_str): Change return type.
10353 * procfs.c (class procfs_target) <pid_to_str>: Change return
10354 type.
10355 (procfs_target::pid_to_str): Change return type.
10356 (procfs_target::attach): Update.
10357 (procfs_target::detach): Update.
10358 (procfs_target::fetch_registers): Update.
10359 (procfs_target::store_registers): Update.
10360 (procfs_target::wait): Update.
10361 (procfs_target::files_info): Update.
10362 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
10363 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
10364 return type.
10365 (nto_procfs_target::pid_to_str): Change return type.
10366 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
10367 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
10368 return type.
10369 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
10370 (exit_lwp): Update.
10371 (attach_proc_task_lwp_callback, get_detach_signal)
10372 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
10373 (linux_nat_target::resume, wait_lwp, stop_callback)
10374 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
10375 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
10376 (linux_nat_wait_1, resume_stopped_resumed_lwps)
10377 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
10378 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
10379 type.
10380 (inf_ptrace_target::attach): Update.
10381 (inf_ptrace_target::files_info): Update.
10382 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
10383 type.
10384 (go32_nat_target::pid_to_str): Change return type.
10385 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
10386 (gnu_nat_target::wait): Update.
10387 (gnu_nat_target::wait): Update.
10388 (gnu_nat_target::resume): Update.
10389 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
10390 (fbsd_nat_target::wait): Update.
10391 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
10392 type.
10393 (darwin_nat_target::attach): Update.
10394 * corelow.c (class core_target) <pid_to_str>: Change return type.
10395 (core_target::pid_to_str): Change return type.
10396 * target.c (normal_pid_to_str): Change return type.
10397 (default_pid_to_str): Likewise.
10398 (target_pid_to_str): Change return type.
10399 (target_translate_tls_address): Update.
10400 (target_announce_detach): Update.
10401 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
10402 return type.
10403 (bsd_uthread_target::pid_to_str): Change return type.
10404 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
10405 type.
10406 (bsd_kvm_target::pid_to_str): Change return type.
10407 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
10408 return type.
10409 (aix_thread_target::pid_to_str): Change return type.
10410 * target.h (struct target_ops) <pid_to_str>: Change return type.
10411 (target_pid_to_str, normal_pid_to_str): Likewise.
10412 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
10413 type.
10414 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
10415 type.
10416 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
10417 return type.
10418 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
10419 type.
10420 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
10421 type.
10422 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
10423 return type.
10424
10425 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
10426
10427 * NEWS: Mention that the new default MI version is 3. Mention
10428 changes to the output of commands and events that deal with
10429 multi-location breakpoints.
10430 * breakpoint.c: Include "mi/mi-out.h".
10431 (print_one_breakpoint): Change output syntax if using MI version
10432 >= 3.
10433 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
10434 New.
10435 (mi_multi_location_breakpoint_output_fixed): New.
10436 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
10437 (mi_cmd_fix_multi_location_breakpoint_output): New.
10438 (mi_multi_location_breakpoint_output_fixed): New.
10439 * mi/mi-cmds.c (mi_cmds): Register command
10440 -fix-multi-location-breakpoint-output.
10441 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
10442 interpreter "mi".
10443
10444 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10445
10446 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
10447 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
10448 instantiate mi_ui_out based on interpreter name.
10449 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
10450 * mi/mi-main.c (mi_load_progress): Likewise.
10451
10452 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10453
10454 * NEWS: Combine separate "New targets" sections for 8.3.
10455
10456 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10457
10458 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
10459 (ppcfbsd_init_abi): Install gdbarch
10460 "fetch_tls_load_module_address" and "get_thread_local_address"
10461 methods.
10462
10463 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10464
10465 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
10466 (riscv_fbsd_init_abi): Install gdbarch
10467 "fetch_tls_load_module_address" and "get_thread_local_address"
10468 methods.
10469
10470 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10471
10472 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
10473 (i386fbsd_init_abi): Install gdbarch
10474 "fetch_tls_load_module_address" and "get_thread_local_address"
10475 methods.
10476
10477 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10478
10479 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
10480 (amd64fbsd_init_abi): Install gdbarch
10481 "fetch_tls_load_module_address" and "get_thread_local_address"
10482 methods.
10483
10484 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10485
10486 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
10487 (struct fbsd_pspace_data): New type.
10488 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
10489 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
10490 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
10491 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
10492 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
10493
10494 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10495
10496 * gdbtypes.c (lookup_struct_elt): New function.
10497 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
10498 * gdbtypes.h (struct struct_elt): New type.
10499 (lookup_struct_elt): New prototype.
10500
10501 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10502
10503 * gdbtypes.c (lookup_struct_elt_type): Update comment and
10504 remove disabled code block.
10505
10506 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10507
10508 * gdbarch.sh (get_thread_local_address): New method.
10509 * gdbarch.h, gdbarch.c: Regenerate.
10510 * target.c (target_translate_tls_address): Use
10511 gdbarch_get_thread_local_address if present instead of
10512 target::get_thread_local_address.
10513
10514 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10515
10516 * target.h (target::get_thread_local_address): Update comment.
10517
10518 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10519
10520 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
10521 objfile->separate_debug_objfile_backlink if not NULL.
10522
10523 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10524
10525 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10526 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
10527 (amd64bsd_store_inferior_registers): Likewise.
10528 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10529 Enable segment base registers.
10530 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
10531 PT_GETFSBASE and PT_GETGSBASE.
10532 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
10533 PT_SETGSBASE.
10534 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
10535 segment base registers.
10536 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10537
10538 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10539
10540 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10541 Update calls to i386_target_description to add 'segments'
10542 parameter.
10543 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
10544 add segment base registers.
10545 * arch/i386.c (i386_create_target_description): Add 'segments'
10546 parameter to enable segment base registers.
10547 * arch/i386.h (i386_create_target_description): Likewise.
10548 * features/i386/32bit-segments.xml: New file.
10549 * features/i386/32bit-segments.c: Generate.
10550 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
10551 call to i386_target_description to add 'segments' parameter.
10552 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10553 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
10554 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
10555 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
10556 if feature is present.
10557 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
10558 Add 'segments' parameter to call to i386_target_description.
10559 (i386_target_description): Add 'segments' parameter to enable
10560 segment base registers.
10561 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
10562 to call to i386_target_description.
10563 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
10564 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
10565 Define I386_NUM_REGS.
10566 (i386_target_description): Add 'segments' parameter to enable
10567 segment base registers.
10568
10569 2019-03-12 Eli Zaretskii <eliz@gnu.org>
10570
10571 PR/24325
10572 * source-cache.c: #undef open and close, to avoid unresolved
10573 externals during linking.
10574
10575 2019-03-12 Tom Tromey <tromey@adacore.com>
10576
10577 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
10578 const. Add initializers.
10579 (_initialize_remote): Don't initialize ptid globals.
10580
10581 2019-03-12 Pedro Alves <palves@redhat.com>
10582
10583 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
10584
10585 2019-03-12 Pedro Alves <palves@redhat.com>
10586
10587 * cp-name-parser.y (main): Remove unused 'len' variable.
10588
10589 2019-03-12 Tom Tromey <tromey@adacore.com>
10590
10591 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
10592 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
10593
10594 2019-03-12 Tom Tromey <tromey@adacore.com>
10595
10596 * linux-nat.c (iterate_over_lwps): Update.
10597 (stop_callback): Remove parameter.
10598 (stop_wait_callback, detach_callback, resume_set_callback)
10599 (select_singlestep_lwp_callback, set_ignore_sigint)
10600 (status_callback, resumed_callback, resume_clear_callback)
10601 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
10602 data parameter.
10603 (linux_nat_target::detach, linux_nat_target::resume)
10604 (linux_stop_and_wait_all_lwps, select_event_lwp)
10605 (linux_nat_filter_event, linux_nat_wait_1)
10606 (linux_nat_target::kill, linux_nat_target::stop)
10607 (linux_nat_target::stop): Update.
10608 (linux_nat_resume_callback): Change type.
10609 (resume_stopped_resumed_lwps, count_events_callback)
10610 (select_event_lwp_callback): Likewise.
10611 (linux_stop_lwp, linux_nat_stop_lwp): Update.
10612 * arm-linux-nat.c (struct update_registers_data): Remove.
10613 (update_registers_callback): Change type.
10614 (arm_linux_insert_hw_breakpoint1): Update.
10615 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
10616 parameter.
10617 (x86_linux_dr_set_addr): Update.
10618 (x86_linux_dr_set_control): Update.
10619 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
10620 (iterate_over_lwps): Use gdb::function_view.
10621 * nat/aarch64-linux-hw-point.c (struct
10622 aarch64_dr_update_callback_param): Remove.
10623 (debug_reg_change_callback): Change type.
10624 (aarch64_notify_debug_reg_change): Update.
10625 * s390-linux-nat.c (s390_refresh_per_info): Update.
10626
10627 2019-03-11 Tom Tromey <tromey@adacore.com>
10628
10629 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
10630 redundant assignment to "this_cu".
10631
10632 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10633
10634 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
10635
10636 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10637
10638 * gdbtypes.c (rank_one_type_parm_set): New function extracted
10639 from...
10640 (rank_one_type): ... this.
10641
10642 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10643
10644 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
10645 from...
10646 (rank_one_type): ... this.
10647
10648 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10649
10650 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
10651 from...
10652 (rank_one_type): ... this.
10653
10654 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10655
10656 * gdbtypes.c (rank_one_type_parm_float): New function extracted
10657 from...
10658 (rank_one_type): ... this.
10659
10660 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10661
10662 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
10663 from...
10664 (rank_one_type): ... this.
10665
10666 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10667
10668 * gdbtypes.c (rank_one_type_parm_range): New function extracted
10669 from...
10670 (rank_one_type): ... this.
10671
10672 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10673
10674 * gdbtypes.c (rank_one_type_parm_char): New function extracted
10675 from...
10676 (rank_one_type): ... this.
10677
10678 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10679
10680 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
10681 from...
10682 (rank_one_type): ... this.
10683
10684 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10685
10686 * gdbtypes.c (rank_one_type_parm_int): New function extracted
10687 from...
10688 (rank_one_type): ... this.
10689
10690 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10691
10692 * gdbtypes.c (rank_one_type_parm_func): New function extracted
10693 from...
10694 (rank_one_type): ... this.
10695
10696 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10697
10698 * gdbtypes.c (rank_one_type_parm_array): New function extracted
10699 from...
10700 (rank_one_type): ... this.
10701
10702 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10703
10704 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
10705 from...
10706 (rank_one_type): ... this.
10707
10708 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10709
10710 * inferior.c (initialize_inferiors): Ensure 'help set/show print
10711 inferior-events' shows the example events.
10712
10713 2019-03-08 Eli Zaretskii <eliz@gnu.org>
10714
10715 Support styling on native MS-Windows console
10716
10717 PR/24315
10718 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
10719 on MS-Windows if $TERM is not defined.
10720
10721 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
10722
10723 * posix-hdep.c (gdb_console_fputs):
10724 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
10725 functions.
10726 * ui-file.h (gdb_console_fputs): Add prototype.
10727
10728 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
10729 back to fputs only if the former returns zero.
10730
10731 2019-03-07 Tom Tromey <tom@tromey.com>
10732
10733 * symmisc.c (print_symbol_bcache_statistics): Update.
10734 (print_objfile_statistics): Update.
10735 * symfile.c (allocate_symtab): Update.
10736 * stabsread.c: Don't include bcache.h.
10737 * psymtab.h (struct psymbol_bcache): Don't declare.
10738 (class psymtab_storage) <psymbol_cache>: Now a bcache.
10739 (psymbol_bcache_init, psymbol_bcache_free)
10740 (psymbol_bcache_get_bcache): Don't declare.
10741 * psymtab.c (struct psymbol_bcache): Remove.
10742 (psymtab_storage::psymtab_storage): Update.
10743 (psymtab_storage::~psymtab_storage): Update.
10744 (psymbol_bcache_init, psymbol_bcache_free)
10745 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
10746 (add_psymbol_to_bcache): Update.
10747 (allocate_psymtab): Update.
10748 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10749 macro_cache>: No longer pointers.
10750 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
10751 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
10752 * macrotab.c (macro_bcache): Update.
10753 * macroexp.c: Don't include bcache.h.
10754 * gdbtypes.c (check_types_worklist): Update.
10755 (types_deeply_equal): Remove TRY/CATCH. Update.
10756 * elfread.c (elf_symtab_read): Update.
10757 * dwarf2read.c: Don't include bcache.h.
10758 * buildsym.c (buildsym_compunit::get_macro_table): Update.
10759 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
10760 (print_bcache_statistics, bcache_memory_used): Don't declare.
10761 (struct bcache): Move from bcache.c. Add constructor, destructor,
10762 methods. Rename all data members.
10763 * bcache.c (struct bcache): Move to bcache.h.
10764 (bcache::expand_hash_table): Rename from expand_hash_table.
10765 (bcache): Remove.
10766 (bcache::insert): Rename from bcache_full.
10767 (bcache::compare): Rename from bcache_compare.
10768 (bcache_xmalloc): Remove.
10769 (bcache::~bcache): Rename from bcache_xfree.
10770 (bcache::print_statistics): Rename from print_bcache_statistics.
10771 (bcache::memory_used): Rename from bcache_memory_used.
10772
10773 2019-03-07 Pedro Alves <palves@redhat.com>
10774
10775 * infrun.c (normal_stop): Also check for
10776 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
10777
10778 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10779
10780 * f-lang.c (value_from_host_double): Moved to...
10781 * value.c (value_from_host_double): ...here.
10782 * value.h (value_from_host_double): Declare.
10783 * guile/scm-math.c (vlscm_convert_typed_number): Use
10784 value_from_host_double.
10785 (vlscm_convert_number): Likewise.
10786 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
10787 * python/py-value.c (convert_value_from_python): Likewise.
10788
10789 2019-03-06 Tom Tromey <tom@tromey.com>
10790
10791 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
10792
10793 2019-03-06 Tom Tromey <tom@tromey.com>
10794
10795 * utils.h (free_current_contents): Don't declare.
10796 * utils.c (free_current_contents): Remove.
10797
10798 2019-03-06 Tom Tromey <tom@tromey.com>
10799
10800 * top.c (quit_force): Update.
10801 * main.c (captured_command_loop): Update.
10802 * common/new-op.c (operator new): Update.
10803 * common/common-exceptions.c (struct catcher)
10804 <save_cleanup_chain>: Remove member.
10805 (exceptions_state_mc_init): Update.
10806 (exception_try_scope_entry): Return nullptr.
10807 (exception_try_scope_exit, exception_rethrow)
10808 (throw_exception_sjlj, throw_exception_cxx): Update.
10809 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
10810 (all_cleanups, do_cleanups, discard_cleanups)
10811 (discard_final_cleanups, save_cleanups, save_final_cleanups)
10812 (restore_cleanups, restore_final_cleanups): Don't declare.
10813 (do_final_cleanups): Remove parameter.
10814 * common/cleanups.c (cleanup_chain, make_cleanup)
10815 (make_cleanup_dtor, all_cleanups, do_cleanups)
10816 (discard_my_cleanups, discard_cleanups)
10817 (discard_final_cleanups, save_my_cleanups, save_cleanups)
10818 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
10819 (null_cleanup): Remove.
10820 (do_final_cleanups): Remove parameter.
10821
10822 2019-03-06 Tom Tromey <tom@tromey.com>
10823
10824 * remote.c (remote_target::remote_parse_stop_reply): Use
10825 unique_xmalloc_ptr.
10826
10827 2019-03-06 Tom Tromey <tom@tromey.com>
10828
10829 * stabsread.c (struct stabs_field_info): Rename from field_info.
10830 <list, fnlist>: Add initializers.
10831 <obstack>: New member.
10832 (read_member_functions, read_struct_fields, read_baseclasses):
10833 Allocate on obstack. Don't use cleanups.
10834 (read_one_struct_field, read_member_functions, read_struct_fields)
10835 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
10836 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
10837 (read_struct_type): Update.
10838
10839 2019-03-06 Tom Tromey <tom@tromey.com>
10840
10841 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
10842 * common/filestuff.h (make_cleanup_close): Don't declare.
10843 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
10844 Remove.
10845
10846 2019-03-06 Tom Tromey <tom@tromey.com>
10847
10848 * solib-aix.c: Use make_scope_exit.
10849
10850 2019-03-06 Tom Tromey <tom@tromey.com>
10851
10852 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
10853 Use make_scope_exit.
10854
10855 2019-03-06 Tom Tromey <tom@tromey.com>
10856
10857 * solib-svr4.c (disable_probes_interface): Remove parameter.
10858 (svr4_handle_solib_event): Use make_scope_exit.
10859
10860 2019-03-06 Tom Tromey <tom@tromey.com>
10861
10862 * remote.c (struct stop_reply_deleter): Remove.
10863 (stop_reply_up): Update.
10864 (struct stop_reply): Derive from notif_event. Don't typedef.
10865 <regcache>: Now a std::vector.
10866 (stop_reply_xfree): Remove.
10867 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
10868 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
10869 (remote_target::discard_pending_stop_replies): Use delete.
10870 (remote_target::remote_parse_stop_reply): Update.
10871 (remote_target::process_stop_reply): Update.
10872 * remote-notif.h (struct notif_event): Add virtual destructor.
10873 Remove "dtr" member.
10874 (struct notif_client) <alloc_event>: Return a unique_ptr.
10875 (notif_event_xfree): Don't declare.
10876 (notif_event_up): New typedef.
10877 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
10878 (notif_event_xfree, do_notif_event_xfree): Remove.
10879 (remote_notif_state_xfree): Update.
10880
10881 2019-03-06 Tom Tromey <tom@tromey.com>
10882
10883 * infrun.c (displaced_step_clear_cleanup): Now a
10884 forward_scope_exit type.
10885 (displaced_step_prepare_throw): Update.
10886 (displaced_step_fixup): Update.
10887
10888 2019-03-06 Tom Tromey <tom@tromey.com>
10889
10890 * inferior.h (class inferior): Update comment.
10891 * gdbthread.h (class thread_info): Update comment.
10892
10893 2019-03-06 Joel Brobecker <brobecker@adacore.com>
10894 Tom Tromey <tom@tromey.com>
10895
10896 * stabsread.h (struct stab_section_list): Remove.
10897 (coffstab_build_psymtabs): Update.
10898 * dbxread.c (symbuf_sections): Now a std::vector.
10899 (sect_idx): New global.
10900 (fill_symbuf): Update.
10901 (coffstab_build_psymtabs): Change type of stabsects parameter.
10902 Update.
10903 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
10904 std::vector.
10905 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
10906 (coff_locate_sections): Update.
10907 (coff_symfile_read): Remove cleanups. Update.
10908 (init_stringtab): Add storage parameter.
10909 (free_stringtab, free_stringtab_cleanup): Remove.
10910 (init_lineno): Add storage parameter.
10911 (free_linetab, free_linetab_cleanup): Remove.
10912
10913 2019-03-06 Pedro Alves <palves@redhat.com>
10914
10915 * linux-fork.c (fork_info::clobber_regs): Delete.
10916 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
10917 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
10918 comment. Adjust.
10919 (scoped_switch_fork_info::scoped_switch_fork_info)
10920 (checkpoint_command, linux_fork_context): Adjust
10921 fork_save_infrun_state calls.
10922
10923 2019-03-06 Pedro Alves <palves@redhat.com>
10924
10925 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
10926 (inf_has_multiple_threads): Return 'bool' and rewrite using
10927 inferior_info::threads().
10928
10929 2019-03-06 Pedro Alves <palves@redhat.com>
10930
10931 * linux-fork.c: Include <list>.
10932 (fork_list): Now a std::list instance.
10933 (fork_info): Add ctor, dtor, and in-class initialize all fields.
10934 (forks_exist_p, find_last_fork): Adjust.
10935 (new_fork): Delete.
10936 (one_fork_p): New.
10937 (add_fork): Adjust.
10938 (free_fork): Delete, folded into fork_info::~fork_info().
10939 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
10940 Adjust.
10941 (init_fork_list): Delete.
10942 (linux_fork_killall, linux_fork_mourn_inferior)
10943 (linux_fork_detach, info_checkpoints_command): Adjust.
10944 (_initialize_linux_fork): No longer call init_fork_list.
10945
10946 2019-03-06 Pedro Alves <palves@redhat.com>
10947
10948 * linux-fork.c (new_fork): New, split out of ...
10949 (add_fork): ... this. Return void. Move "first fork" special
10950 case from here, to ...
10951 (checkpoint_command): ... here.
10952 * linux-linux.h (add_fork): Return void.
10953
10954 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10955
10956 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
10957
10958 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10959 Chris January <chris.january@arm.com>
10960 David Lecomber <david.lecomber@arm.com>
10961
10962 * f-exp.y: New token, UNOP_INTRINSIC.
10963 (exp): New pattern using UNOP_INTRINSIC token.
10964 (f77_keywords): Add 'abs' keyword.
10965 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
10966 (value_from_host_double): New function.
10967 (evaluate_subexp_f): Support UNOP_ABS.
10968
10969 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10970
10971 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
10972 types.
10973
10974 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10975
10976 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
10977 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
10978 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
10979
10980 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10981
10982 * f-exp.y (convert_to_kind_type): Handle more type kinds.
10983
10984 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10985 Chris January <chris.january@arm.com>
10986
10987 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
10988 * f-exp.y: Define 'KIND' token.
10989 (exp): New pattern for KIND expressions.
10990 (ptype): Handle types with a kind extension.
10991 (direct_abs_decl): Extend to spot kind extensions.
10992 (f77_keywords): Add 'kind' to the list.
10993 (push_kind_type): New function.
10994 (convert_to_kind_type): New function.
10995 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
10996 * parse.c (operator_length_standard): Likewise.
10997 * parser-defs.h (enum type_pieces): Add tp_kind.
10998 * std-operator.def: Add UNOP_KIND.
10999
11000 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11001
11002 * f-exp.y (f_parse): Set yydebug.
11003
11004 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11005
11006 * f-lang.c (evaluate_subexp_f): New function.
11007 (exp_descriptor_f): New global.
11008 (f_language_defn): Use exp_descriptor_f instead of
11009 exp_descriptor_standard.
11010
11011 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11012
11013 * f-exp.y (struct token): Add comments.
11014 (dot_ops): Remove uppercase versions and the end marker.
11015 (f77_keywords): Likewise.
11016 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
11017 entries in the dot_ops array are case insensitive, and use
11018 strncasecmp to compare strings. Also some whitespace cleanup in
11019 this area. Similar for the f77_keywords array, except entries in
11020 this list might be case sensitive.
11021
11022 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11023
11024 * f-exp.y (struct f77_boolean_val): Add comments.
11025 (boolean_values): Remove uppercase versions, and end marker.
11026 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
11027 and use strncasecmp to achieve case insensitivity. Additionally,
11028 perform whitespace cleanup around this code.
11029
11030 2019-03-06 Tom Tromey <tromey@adacore.com>
11031
11032 * remote-sim.c (gdbsim_target_open): Use result of
11033 gdb_argv::release.
11034
11035 2019-03-06 Richard Bunt <richard.bunt@arm.com>
11036 Dirk Schubert <dirk.schubert@arm.com>
11037 Chris January <chris.january@arm.com>
11038
11039 * eval.c (evaluate_subexp_standard): Call Fortran argument
11040 wrapping logic.
11041 * f-lang.c (struct value): A value which can be passed into a
11042 Fortran function call.
11043 (fortran_argument_convert): Wrap Fortran arguments in a pointer
11044 where appropriate.
11045 (struct type): Value ready for a Fortran function call.
11046 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
11047 is needed.
11048 * f-lang.h (fortran_argument_convert): Declaration.
11049 (fortran_preserve_arg_pointer): Declaration.
11050 * infcall.c (value_arg_coerce): Call Fortran argument logic.
11051
11052 2019-03-05 Tom Tromey <tromey@adacore.com>
11053
11054 * python/py-prettyprint.c (print_string_repr): Remove #if.
11055 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
11056
11057 2019-03-05 Tom Tromey <tromey@adacore.com>
11058
11059 * target.c (the_dummy_target): Move later. Change type to
11060 "dummy_target".
11061 (initialize_targets): Don't initialize the_dummy_target.
11062
11063 2019-03-05 Tom Tromey <tromey@adacore.com>
11064
11065 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
11066 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
11067
11068 2019-03-05 Tom Tromey <tromey@adacore.com>
11069
11070 * windows-nat.c (windows_nat_target::attach)
11071 (windows_nat_target::detach): Don't call gdb_flush.
11072 * valprint.c (generic_val_print, val_print, val_print_string):
11073 Don't call gdb_flush.
11074 * utils.c (defaulted_query): Don't call gdb_flush.
11075 * typeprint.c (print_type_scalar): Don't call gdb_flush.
11076 * target.c (target_announce_detach): Don't call gdb_flush.
11077 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
11078 * remote.c (extended_remote_target::attach): Don't call
11079 gdb_flush.
11080 * procfs.c (procfs_target::detach): Don't call gdb_flush.
11081 * printcmd.c (do_examine): Don't call gdb_flush.
11082 (info_display_command): Don't call gdb_flush.
11083 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
11084 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
11085 * memattr.c (info_mem_command): Don't call gdb_flush.
11086 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
11087 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
11088 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
11089 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
11090 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
11091 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
11092 (gnu_nat_target::detach): Don't call gdb_flush.
11093 * f-valprint.c (f_val_print): Don't call gdb_flush.
11094 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
11095 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
11096 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
11097 gdb_flush.
11098 * c-valprint.c (c_val_print): Don't call gdb_flush.
11099 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
11100
11101 2019-03-05 Tom Tromey <tromey@adacore.com>
11102
11103 * varobj.c (update_dynamic_varobj_children): Update.
11104 (install_default_visualizer): Use reset, not release.
11105 * value.c (set_internalvar): Update.
11106 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
11107 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
11108 ATTRIBUTE_UNUSED_RESULT.
11109
11110 2019-03-05 Tom Tromey <tromey@adacore.com>
11111
11112 * remote.c (class scoped_remote_fd) <release>: Add
11113 ATTRIBUTE_UNUSED_RESULT.
11114
11115 2019-03-05 Tom Tromey <tromey@adacore.com>
11116
11117 * macroexp.c (struct macro_buffer) <release>: Add
11118 ATTRIBUTE_UNUSED_RESULT.
11119
11120 2019-03-05 Tom Tromey <tromey@adacore.com>
11121
11122 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
11123 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
11124 ATTRIBUTE_UNUSED_RESULT.
11125
11126 2019-03-05 Tom Tromey <tromey@adacore.com>
11127
11128 * common/scoped_fd.h (class scoped_fd) <release>: Add
11129 ATTRIBUTE_UNUSED_RESULT.
11130
11131 2019-03-05 Tom Tromey <tromey@adacore.com>
11132
11133 * parser-defs.h (struct parser_state) <release>: Add
11134 ATTRIBUTE_UNUSED_RESULT.
11135
11136 2019-03-05 Tom Tromey <tromey@adacore.com>
11137
11138 * utils.h (class gdb_argv) <release>: Add
11139 ATTRIBUTE_UNUSED_RESULT.
11140 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
11141
11142 2019-03-02 Eli Zaretskii <eliz@gnu.org>
11143
11144 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
11145 for-loop range, to avoid compiler warnings.
11146
11147 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
11148 avoid compiler warnings about unused variables.
11149
11150 * NEWS: Mention end of support for native debugging on MS-Windows
11151 before XP.
11152
11153 PR gdb/24292
11154 * common/netstuff.c:
11155 * gdbserver/gdbreplay.c
11156 * gdbserver/remote-utils.c:
11157 * ser-tcp.c:
11158 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
11159 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
11160 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
11161 'getaddrinfo' and 'freeaddrinfo' were not available before
11162 Windows XP, and mingw.org's MinGW headers by default define
11163 _WIN32_WINNT to 0x500.
11164
11165 2019-03-01 Gary Benson <gbenson@redhat.com>
11166
11167 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
11168
11169 2019-02-28 Brian Vandenberg <phantall@gmail.com>
11170 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11171
11172 PR gdb/8527
11173 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
11174 set_sigint_trap, clear_sigint_trap.
11175
11176 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11177
11178 * target.c (target_detach): Clear the regcache and the
11179 frame cache.
11180
11181 2019-02-27 Pedro Alves <palves@redhat.com>
11182
11183 * utils.c (set_screen_size): When we cap the height/width sizes,
11184 tweak the corresponding command variable to show "unlimited":
11185
11186 2019-02-27 Saagar Jha <saagar@saagarjha.com>
11187 Pedro Alves <palves@redhat.com>
11188
11189 * utils.c (set_screen_size): Reduce "infinite" rows and columns
11190 before calling rl_set_screen_size.
11191
11192 2019-02-27 Tom Tromey <tromey@adacore.com>
11193
11194 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
11195 define.
11196 * python/py-value.c: Remove Python 2.4 workaround.
11197 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
11198 workaround.
11199 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
11200 Python 2.4 workaround.
11201 * python/python-internal.h: Remove Python 2.4 comment.
11202 (Py_ssize_t): Don't define.
11203 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
11204 (gdb_Py_DECREF): Remove Python 2.4 workaround.
11205 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
11206 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
11207 * python/python.c (do_start_initialization): Remove Python 2.4
11208 workaround.
11209 * python/py-prettyprint.c (class dummy_python_frame): Remove.
11210 (print_children): Remove Python 2.4 workaround.
11211 * python/py-inferior.c (buffer_procs): Remove Python 2.4
11212 workaround.
11213 (CHARBUFFERPROC_NAME): Remove.
11214 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
11215 Python 2.4 workaround.
11216
11217 2019-02-27 Kevin Buettner <kevinb@redhat.com>
11218
11219 * NEWS: Note minimum Python version.
11220
11221 2019-02-27 Kevin Buettner <kevinb@redhat.com>
11222
11223 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
11224 code from these functions. Remove corresponding ifdefs. Use
11225 Py_buffer_up instead of explicit calls to PyBuffer_Release.
11226 Remove gotos and target of gotos.
11227 (infpy_search_memory): Likewise.
11228
11229 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11230
11231 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
11232 (hppa_gdbarch_init): Don't register deleted functions with
11233 gdbarch.
11234
11235 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11236
11237 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
11238 (h8300_unwind_sp): Delete.
11239 (h8300_dummy_id): Delete.
11240 (h8300_gdbarch_init): Don't register deleted functions with
11241 gdbarch.
11242
11243 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11244
11245 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
11246 (ft32_unwind_pc): Delete.
11247 (ft32_unwind_sp): Delete.
11248 (ft32_gdbarch_init): Don't register deleted functions with
11249 gdbarch.
11250
11251 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11252
11253 * gdb/frv-tdep.c (frv_dummy_id): Delete.
11254 (frv_unwind_pc): Delete.
11255 (frv_unwind_sp): Delete.
11256 (frv_gdbarch_init): Don't register deleted functions with
11257 gdbarch.
11258
11259 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11260
11261 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
11262 (riscv_unwind_pc): Delete.
11263 (riscv_unwind_sp): Delete.
11264 (riscv_gdbarch_init): Don't register deleted functions with
11265 gdbarch.
11266
11267 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11268
11269 * gdb/csky-tdep.c (csky_dummy_id): Delete.
11270 (csky_unwind_pc): Delete.
11271 (csky_unwind_sp): Delete.
11272 (csky_gdbarch_init): Don't register deleted functions with
11273 gdbarch.
11274
11275 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11276
11277 * gdb/cris-tdep.c (cris_dummy_id): Delete.
11278 (cris_unwind_pc): Delete.
11279 (cris_unwind_sp): Delete.
11280 (cris_gdbarch_init): Don't register deleted functions with
11281 gdbarch.
11282
11283 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11284
11285 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
11286 (bfin_unwind_pc): Delete.
11287 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
11288
11289 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11290
11291 * gdb/arm-tdep.c (arm_dummy_id): Delete.
11292 (arm_unwind_pc): Delete.
11293 (arm_unwind_sp): Delete.
11294 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
11295
11296 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11297
11298 * gdb/arc-tdep.c (arc_dummy_id): Delete.
11299 (arc_unwind_pc): Delete.
11300 (arc_unwind_sp): Delete.
11301 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
11302
11303 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11304
11305 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
11306 (alpha_unwind_pc): Delete.
11307 (alpha_gdbarch_init): Don't register deleted functions with
11308 gdbarch.
11309
11310 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11311
11312 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
11313 (aarch64_unwind_pc): Delete.
11314 (aarch64_unwind_sp): Delete.
11315 (aarch64_gdbarch_init): Don't register deleted functions with
11316 gdbarch.
11317
11318 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11319
11320 * gdbtypes.c (type_align): Don't consider static members when
11321 computing structure alignment.
11322
11323 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11324
11325 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
11326 return 0 for other types.
11327 * arch-utils.c (default_type_align): Always return 0.
11328 * gdbarch.h: Regenerate.
11329 * gdbarch.sh (type_align): Extend comment.
11330 * gdbtypes.c (type_align): Add additional comments, always call
11331 gdbarch_type_align before applying the default rules.
11332 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
11333 generic code will then apply a suitable default.
11334 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
11335 types, return 0 for other types.
11336
11337 2019-02-27 Joel Brobecker <brobecker@adacore.com>
11338
11339 * NEWS: Create a new section for the next release branch.
11340 Rename the section of the current branch, now that it has
11341 been cut.
11342
11343 2019-02-27 Joel Brobecker <brobecker@adacore.com>
11344
11345 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
11346 * version.in: Bump version to 8.3.50.DATE-git.
11347
11348 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
11349
11350 * aix-thread.c (ptid_cmp): Remove unused variable.
11351 (get_signaled_thread): Likewise.
11352 (store_regs_user_thread): Likewise.
11353 (store_regs_kernel_thread): Likewise.
11354 (fetch_regs_kernel_thread): Remove shadowed variable.
11355
11356 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
11357
11358 * features/riscv/32bit-cpu.xml: Add register numbers.
11359 * features/riscv/32bit-fpu.c: Regenerate.
11360 * features/riscv/32bit-fpu.xml: Add register numbers.
11361 * features/riscv/64bit-cpu.xml: Add register numbers.
11362 * features/riscv/64bit-fpu.c: Regenerate.
11363 * features/riscv/64bit-fpu.xml: Add register numbers.
11364
11365 2019-02-26 Kevin Buettner <kevinb@redhat.com>
11366
11367 * NEWS: Mention two argument form of gdb.Value constructor.
11368 * python/py-value.c (convert_buffer_and_type_to_value): New
11369 function.
11370 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
11371 Add support for handling an optional second argument. Call
11372 convert_buffer_and_type_to_value as appropriate.
11373 * python/python-internal.h (Py_buffer_deleter): New struct.
11374 (Py_buffer_up): New typedef.
11375
11376 2019-02-25 John Baldwin <jhb@FreeBSD.org>
11377
11378 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
11379 instead of releasing ownership.
11380
11381 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
11382
11383 * dwarf2read.c (open_and_init_dwp_file): Call
11384 elf_numsections instead of bfd_count_sections to initialize
11385 dwp_file->num_sections.
11386
11387 2019-02-25 Tom Tromey <tromey@adacore.com>
11388
11389 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
11390
11391 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
11392
11393 * gcore.in: Add '--readnever' option when invoking GDB.
11394
11395 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11396
11397 * MAINTAINERS: Update my email address.
11398
11399 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11400
11401 * build-id.c (build_id_to_debug_bfd_1): New function.
11402 (build_id_to_debug_bfd): Look for separate debug file in
11403 sysroot.
11404
11405 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
11406
11407 * gdbarch.sh: Update the copyright year range that is placed into
11408 generated files.
11409
11410 2019-02-22 Keith Seitz <keiths@redhat.com>
11411
11412 PR symtab/23853
11413 * linespec.c (create_sals_line_offset): Search for the default
11414 symtab's filename instead of its fullname.
11415
11416 2019-02-21 Alan Hayward <alan.hayward@arm.com>
11417
11418 * NEWS: Update style defaults.
11419
11420 2019-02-21 Alan Hayward <alan.hayward@arm.com>
11421
11422 * main.c (captured_main_1): Disable styling in batch mode.
11423
11424 2019-02-20 Tom Tromey <tom@tromey.com>
11425
11426 * symtab.c (symtab_symbol_info): Fix typos.
11427
11428 2019-02-20 Tom Tromey <tromey@adacore.com>
11429
11430 * findcmd.c (_initialize_mem_search): Use upper case for
11431 metasyntactic variables.
11432
11433 2019-02-20 Alan Hayward <alan.hayward@arm.com>
11434
11435 * aarch64-tdep.c (aarch64_add_reggroups): New function.
11436 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
11437
11438 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
11439
11440 * top.h (source_file_name): Change to std::string.
11441 * top.c (source_file_name): Likewise.
11442 (command_line_input): Adjust.
11443 * cli/cli-script.c (script_from_file): Adjust.
11444
11445 2019-02-19 Tom Tromey <tromey@adacore.com>
11446
11447 * ravenscar-thread.c
11448 (ravenscar_thread_target::update_thread_list): Don't call
11449 ada_build_task_list.
11450 * ada-lang.h (ada_build_task_list): Don't declare.
11451 * ada-tasks.c (struct ada_tasks_inferior_data)
11452 <task_list_valid_p>: Now bool.
11453 (read_known_tasks, ada_task_list_changed)
11454 (ada_tasks_invalidate_inferior_data): Update.
11455 (read_known_tasks_array): Return bool.
11456 (read_known_tasks_list): Likewise.
11457 (read_known_tasks): Return void.
11458 (ada_build_task_list): Now static.
11459
11460 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
11461
11462 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
11463 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
11464
11465 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11466
11467 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
11468 variant for ada_tasks_pspace_data_handle and
11469 ada_tasks_inferior_data_handle.
11470 (ada_tasks_pspace_data_cleanup): New function.
11471 (ada_tasks_inferior_data_cleanup): New function.
11472
11473 2019-02-17 Tom Tromey <tom@tromey.com>
11474
11475 * macrotab.h (macro_source_fullname): Return a std::string.
11476 * macrotab.c (macro_include, check_for_redefinition)
11477 (macro_undef, macro_lookup_definition, foreach_macro)
11478 (foreach_macro_in_scope): Update.
11479 (macro_source_fullname): Return a std::string.
11480 * macrocmd.c (show_pp_source_pos): Update.
11481
11482 2019-02-17 Tom Tromey <tom@tromey.com>
11483
11484 * macrocmd.c (show_pp_source_pos): Style the file names.
11485
11486 2019-02-17 Tom Tromey <tom@tromey.com>
11487
11488 PR tui/24197:
11489 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
11490
11491 2019-02-17 Tom Tromey <tom@tromey.com>
11492
11493 * ada-lang.c (user_select_syms): Use filtered printing.
11494 * utils.c (wrap_style): New global.
11495 (desired_style): Remove.
11496 (emit_style_escape): Add stream parameter.
11497 (set_output_style, reset_terminal_style, prompt_for_continue):
11498 Update.
11499 (flush_wrap_buffer): Only flush gdb_stdout.
11500 (wrap_here): Set wrap_style.
11501 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
11502 treat escape sequences as a character. Change when wrap buffer is
11503 flushed.
11504 (fputs_styled): Do not set the output style when the default is
11505 requested.
11506 * ui-style.h (struct ui_file_style) <is_default>: New method.
11507 * source.c (print_source_lines_base): Emit escape sequences in one
11508 piece.
11509
11510 2019-02-17 Joel Brobecker <brobecker@adacore.com>
11511
11512 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
11513 integers and enumeration types.
11514
11515 2019-02-17 Joel Brobecker <brobecker@adacore.com>
11516
11517 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
11518 instead of lookup_symbol_in_language
11519 (do_exact_match): New function.
11520 (ada_get_symbol_name_matcher): Return do_exact_match when
11521 doing a verbatim match.
11522
11523 2019-02-15 Tom Tromey <tromey@adacore.com>
11524
11525 * ravenscar-thread.c (ravenscar_thread_target::resume)
11526 (ravenscar_thread_target::wait): Special case wildcard requests.
11527
11528 2019-02-15 Tom Tromey <tromey@adacore.com>
11529
11530 * ravenscar-thread.c (base_ptid): Remove.
11531 (struct ravenscar_thread_target) <close>: New method.
11532 <m_base_ptid>: New member.
11533 <update_inferior_ptid, active_task, task_is_currently_active,
11534 runtime_initialized>: Declare methods.
11535 <ravenscar_thread_target>: Add constructor.
11536 (ravenscar_thread_target::task_is_currently_active)
11537 (ravenscar_thread_target::update_inferior_ptid)
11538 (ravenscar_runtime_initialized): Rename. Now methods.
11539 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
11540 (ravenscar_thread_target::update_thread_list): Update.
11541 (ravenscar_thread_target::active_task): Now method.
11542 (ravenscar_thread_target::store_registers)
11543 (ravenscar_thread_target::prepare_to_store)
11544 (ravenscar_thread_target::prepare_to_store)
11545 (ravenscar_thread_target::mourn_inferior): Update.
11546 (ravenscar_inferior_created): Use "new" to create target.
11547 (ravenscar_thread_target::get_ada_task_ptid): Update.
11548 (_initialize_ravenscar): Don't initialize base_ptid.
11549 (ravenscar_ops): Remove global.
11550
11551 2019-02-15 Tom Tromey <tromey@adacore.com>
11552
11553 * target.h (push_target): Declare new overload.
11554 * target.c (push_target): New overload, taking an rvalue reference.
11555 * remote.c (remote_target::open_1): Use push_target overload.
11556 * corelow.c (core_target_open): Use push_target overload.
11557
11558 2019-02-15 Tom Tromey <tromey@adacore.com>
11559
11560 * ravenscar-thread.c (is_ravenscar_task)
11561 (ravenscar_task_is_currently_active): Return bool.
11562 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
11563 (_initialize_ravenscar): Remove "(void)".
11564 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
11565 Return bool.
11566
11567 2019-02-15 Tom Tromey <tromey@adacore.com>
11568
11569 * ravenscar-thread.c (ravenscar_runtime_initializer)
11570 (has_ravenscar_runtime, get_running_thread_id)
11571 (ravenscar_thread_target::resume): Fix indentation.
11572
11573 2019-02-15 Tom Tromey <tromey@adacore.com>
11574
11575 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
11576 from ravenscar_arch_ops.
11577 (sparc_ravenscar_ops::fetch_registers)
11578 (sparc_ravenscar_ops::store_registers): Now methods.
11579 (sparc_ravenscar_prepare_to_store): Remove.
11580 (sparc_ravenscar_ops): Redefine.
11581 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
11582 methods and destructor. Remove members.
11583 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
11584 (ravenscar_thread_target::store_registers)
11585 (ravenscar_thread_target::prepare_to_store): Update.
11586 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
11587 Remove.
11588 (struct ppc_ravenscar_powerpc_ops): Derive from
11589 ravenscar_arch_ops.
11590 (ppc_ravenscar_powerpc_ops::fetch_registers)
11591 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
11592 (ppc_ravenscar_powerpc_ops): Redefine.
11593 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
11594 (ppc_ravenscar_e500_ops::fetch_registers)
11595 (ppc_ravenscar_e500_ops::store_registers): Now methods.
11596 (ppc_ravenscar_e500_ops): Redefine.
11597 * aarch64-ravenscar-thread.c
11598 (aarch64_ravenscar_generic_prepare_to_store): Remove.
11599 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
11600 (aarch64_ravenscar_fetch_registers)
11601 (aarch64_ravenscar_store_registers): Now methods.
11602 (aarch64_ravenscar_ops): Redefine.
11603
11604 2019-02-15 Tom Tromey <tromey@adacore.com>
11605
11606 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
11607 (ravenscar_thread_target::stopped_by_hw_breakpoint)
11608 (ravenscar_thread_target::stopped_by_watchpoint)
11609 (ravenscar_thread_target::stopped_data_address)
11610 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
11611
11612 2019-02-15 Tom Tromey <tromey@adacore.com>
11613
11614 * ravenscar-thread.c: Fix some typos.
11615
11616 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11617 Tom Tromey <tromey@adacore.com>
11618
11619 * ada-lang.c (ada_exception_sal): Change addr_string to a
11620 std::string.
11621 (create_ada_exception_catchpoint): Update.
11622
11623 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11624 Tom Tromey <tromey@adacore.com>
11625
11626 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
11627 (bp_location_ops): Remove.
11628 (base_breakpoint_allocate_location): Update.
11629 (free_bp_location): Update.
11630 * ada-lang.c (class ada_catchpoint_location)
11631 <ada_catchpoint_location>: Remove ops parameter.
11632 (ada_catchpoint_location_dtor): Remove.
11633 (ada_catchpoint_location_ops): Remove.
11634 (allocate_location_exception): Update.
11635 * breakpoint.h (struct bp_location_ops): Remove.
11636 (class bp_location) <bp_location>: Remove bp_location_ops
11637 parameter.
11638 <~bp_location>: Add destructor.
11639 <ops>: Remove.
11640
11641 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11642 Pedro Alves <palves@redhat.com>
11643
11644 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
11645 'PATH_MAX'.
11646
11647 2019-02-14 David Michael <fedora.dm0@gmail.com>
11648 Samuel Thibault <samuel.thibault@gnu.org>
11649 Thomas Schwinge <thomas@codesourcery.com>
11650
11651 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
11652 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
11653
11654 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11655
11656 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
11657 (check_empty): Use "const char *".
11658
11659 * gnu-nat.c (gnu_nat_target::detach): Instead of
11660 'detach_inferior (pid)' call
11661 'detach_inferior (find_inferior_pid (pid))'.
11662
11663 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
11664 'nat/fork-inferior.o'.
11665 * gnu-nat.c: #include "nat/fork-inferior.h".
11666
11667 * gnu-nat.c (gnu_nat_target::detach): Instead of
11668 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
11669 * gnu-nat.h: #include "inf-child.h".
11670 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
11671 'i386_gnu_nat_target::fetch_registers'.
11672 (gnu_store_registers): Rename/move to
11673 'i386_gnu_nat_target::store_registers'.
11674
11675 * config/i386/nm-i386gnu.h: Don't "#include" any files.
11676 * gnu-nat.h (mach_thread_info): New function.
11677 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
11678
11679 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
11680
11681 2019-02-14 Frederic Konrad <konrad@adacore.com>
11682
11683 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
11684
11685 2019-02-14 Joel Brobecker <brobecker@adacore.com>
11686
11687 * windows-nat.c (windows_add_thread): Add new parameter
11688 "main_thread_p" with default value set to false. Update
11689 function documentation as well as all callers.
11690 (windows_delete_thread): Likewise.
11691 (fake_create_process): Update call to windows_add_thread.
11692 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
11693 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
11694 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
11695 call to windows_delete_thread.
11696
11697 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
11698
11699 * MAINTAINERS: Add Andrew Burgess as global maintainer.
11700
11701 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11702
11703 * symfile.c (find_separate_debug_file): Use canonical path of
11704 sysroot with child_path instead of gdb_sysroot if it is valid.
11705
11706 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11707
11708 * symfile.c (find_separate_debug_file): Use child_path to
11709 determine if an object file is under a sysroot.
11710
11711 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11712
11713 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11714 unittests/child-path-selftests.c.
11715 * common/pathstuff.c (child_path): New function.
11716 * common/pathstuff.h (child_path): New prototype.
11717 * unittests/child-path-selftests.c: New file.
11718
11719 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11720
11721 * symfile.c (find_separate_debug_file): Look for separate debug
11722 files in debug directories under the sysroot.
11723
11724 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11725
11726 * symtab.h (struct minimal_symbol data_p): New const method.
11727 (struct minimal_symbol text_p): Likewise.
11728 * symtab.c (output_source_filename): Use file name style
11729 to print file name.
11730 (print_symbol_info): Likewise.
11731 (print_msymbol_info): Use address style to print addresses.
11732 Use function name style to print executable text symbols.
11733 (expand_symtab_containing_pc): Use data_p.
11734 (find_pc_sect_compunit_symtab): Likewise.
11735
11736 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11737
11738 * breakpoint.c (describe_other_breakpoints): Use address style
11739 to print addresses.
11740 (say_where): Likewise.
11741
11742 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11743
11744 * ada-typeprint.c (print_func_type): Print function name
11745 style to print function name.
11746 * c-typeprint.c (c_print_type_1): Likewise.
11747
11748 2019-02-11 Alan Hayward <alan.hayward@arm.com>
11749
11750 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
11751 for execve.
11752
11753 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11754
11755 * c-exp.y (direct_abs_decl): Use emplace_back to record the
11756 type_stack.
11757
11758 2019-02-10 Joel Brobecker <brobecker@adacore.com>
11759
11760 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
11761 TYPE_CODE_REF types.
11762
11763 2019-02-08 Jim Wilson <jimw@sifive.com>
11764
11765 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
11766 (riscv_linux_fregset): New.
11767 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
11768
11769 2019-02-07 Tom Tromey <tom@tromey.com>
11770
11771 * thread.c (thread_cancel_execution_command): Update.
11772 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
11773 methods.
11774 (struct thread_fsm_ops): Remove.
11775 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
11776 (thread_fsm_should_stop, thread_fsm_return_value)
11777 (thread_fsm_set_finished, thread_fsm_finished_p)
11778 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
11779 Don't declare.
11780 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
11781 * infrun.c (clear_proceed_status_thread)
11782 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
11783 (print_stop_event): Update.
11784 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
11785 Add constructor.
11786 (step_command_fsm_ops): Remove.
11787 (new_step_command_fsm): Remove.
11788 (step_1): Update.
11789 (step_command_fsm::should_stop): Rename from
11790 step_command_fsm_should_stop.
11791 (step_command_fsm::clean_up): Rename from
11792 step_command_fsm_clean_up.
11793 (step_command_fsm::do_async_reply_reason): Rename from
11794 step_command_fsm_async_reply_reason.
11795 (struct until_next_fsm): Inherit from thread_fsm. Add
11796 constructor.
11797 (until_next_fsm_ops): Remove.
11798 (new_until_next_fsm): Remove.
11799 (until_next_fsm::should_stop): Rename from
11800 until_next_fsm_should_stop.
11801 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
11802 (until_next_fsm::do_async_reply_reason): Rename from
11803 until_next_fsm_async_reply_reason.
11804 (struct finish_command_fsm): Inherit from thread_fsm. Add
11805 constructor. Change type of breakpoint.
11806 (finish_command_fsm_ops): Remove.
11807 (new_finish_command_fsm): Remove.
11808 (finish_command_fsm::should_stop): Rename from
11809 finish_command_fsm_should_stop.
11810 (finish_command_fsm::clean_up): Rename from
11811 finish_command_fsm_clean_up.
11812 (finish_command_fsm::return_value): Rename from
11813 finish_command_fsm_return_value.
11814 (finish_command_fsm::do_async_reply_reason): Rename from
11815 finish_command_fsm_async_reply_reason.
11816 (finish_command): Update.
11817 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
11818 Add constructor.
11819 (call_thread_fsm_ops): Remove.
11820 (call_thread_fsm::call_thread_fsm): Rename from
11821 new_call_thread_fsm.
11822 (call_thread_fsm::should_stop): Rename from
11823 call_thread_fsm_should_stop.
11824 (call_thread_fsm::should_notify_stop): Rename from
11825 call_thread_fsm_should_notify_stop.
11826 (run_inferior_call, call_function_by_hand_dummy): Update.
11827 * cli/cli-interp.c (should_print_stop_to_console): Update.
11828 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
11829 Add constructor. Change type of location_breakpoint,
11830 caller_breakpoint.
11831 (until_break_fsm_ops): Remove.
11832 (new_until_break_fsm): Remove.
11833 (until_break_fsm::should_stop): Rename from
11834 until_break_fsm_should_stop.
11835 (until_break_fsm::clean_up): Rename from
11836 until_break_fsm_clean_up.
11837 (until_break_fsm::do_async_reply_reason): Rename from
11838 until_break_fsm_async_reply_reason.
11839 (until_break_command): Update.
11840 * thread-fsm.c: Remove.
11841 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
11842
11843 2019-02-07 Tom Tromey <tom@tromey.com>
11844
11845 * yy-remap.h: Add include guard.
11846 * xtensa-tdep.h: Add include guard.
11847 * xcoffread.h: Rename include guard.
11848 * varobj-iter.h: Add include guard.
11849 * tui/tui.h: Rename include guard.
11850 * tui/tui-winsource.h: Rename include guard.
11851 * tui/tui-wingeneral.h: Rename include guard.
11852 * tui/tui-windata.h: Rename include guard.
11853 * tui/tui-win.h: Rename include guard.
11854 * tui/tui-stack.h: Rename include guard.
11855 * tui/tui-source.h: Rename include guard.
11856 * tui/tui-regs.h: Rename include guard.
11857 * tui/tui-out.h: Rename include guard.
11858 * tui/tui-layout.h: Rename include guard.
11859 * tui/tui-io.h: Rename include guard.
11860 * tui/tui-hooks.h: Rename include guard.
11861 * tui/tui-file.h: Rename include guard.
11862 * tui/tui-disasm.h: Rename include guard.
11863 * tui/tui-data.h: Rename include guard.
11864 * tui/tui-command.h: Rename include guard.
11865 * tic6x-tdep.h: Add include guard.
11866 * target/waitstatus.h: Rename include guard.
11867 * target/wait.h: Rename include guard.
11868 * target/target.h: Rename include guard.
11869 * target/resume.h: Rename include guard.
11870 * target-float.h: Rename include guard.
11871 * stabsread.h: Add include guard.
11872 * rs6000-tdep.h: Add include guard.
11873 * riscv-fbsd-tdep.h: Add include guard.
11874 * regformats/regdef.h: Rename include guard.
11875 * record.h: Rename include guard.
11876 * python/python.h: Rename include guard.
11877 * python/python-internal.h: Rename include guard.
11878 * python/py-stopevent.h: Rename include guard.
11879 * python/py-ref.h: Rename include guard.
11880 * python/py-record.h: Rename include guard.
11881 * python/py-record-full.h: Rename include guard.
11882 * python/py-record-btrace.h: Rename include guard.
11883 * python/py-instruction.h: Rename include guard.
11884 * python/py-events.h: Rename include guard.
11885 * python/py-event.h: Rename include guard.
11886 * procfs.h: Add include guard.
11887 * proc-utils.h: Add include guard.
11888 * p-lang.h: Add include guard.
11889 * or1k-tdep.h: Rename include guard.
11890 * observable.h: Rename include guard.
11891 * nto-tdep.h: Rename include guard.
11892 * nat/x86-linux.h: Rename include guard.
11893 * nat/x86-linux-dregs.h: Rename include guard.
11894 * nat/x86-gcc-cpuid.h: Add include guard.
11895 * nat/x86-dregs.h: Rename include guard.
11896 * nat/x86-cpuid.h: Rename include guard.
11897 * nat/ppc-linux.h: Rename include guard.
11898 * nat/mips-linux-watch.h: Rename include guard.
11899 * nat/linux-waitpid.h: Rename include guard.
11900 * nat/linux-ptrace.h: Rename include guard.
11901 * nat/linux-procfs.h: Rename include guard.
11902 * nat/linux-osdata.h: Rename include guard.
11903 * nat/linux-nat.h: Rename include guard.
11904 * nat/linux-namespaces.h: Rename include guard.
11905 * nat/linux-btrace.h: Rename include guard.
11906 * nat/glibc_thread_db.h: Rename include guard.
11907 * nat/gdb_thread_db.h: Rename include guard.
11908 * nat/gdb_ptrace.h: Rename include guard.
11909 * nat/fork-inferior.h: Rename include guard.
11910 * nat/amd64-linux-siginfo.h: Rename include guard.
11911 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
11912 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
11913 * nat/aarch64-linux.h: Rename include guard.
11914 * nat/aarch64-linux-hw-point.h: Rename include guard.
11915 * mn10300-tdep.h: Add include guard.
11916 * mips-linux-tdep.h: Add include guard.
11917 * mi/mi-parse.h: Rename include guard.
11918 * mi/mi-out.h: Rename include guard.
11919 * mi/mi-main.h: Rename include guard.
11920 * mi/mi-interp.h: Rename include guard.
11921 * mi/mi-getopt.h: Rename include guard.
11922 * mi/mi-console.h: Rename include guard.
11923 * mi/mi-common.h: Rename include guard.
11924 * mi/mi-cmds.h: Rename include guard.
11925 * mi/mi-cmd-break.h: Rename include guard.
11926 * m2-lang.h: Add include guard.
11927 * location.h: Rename include guard.
11928 * linux-record.h: Rename include guard.
11929 * linux-nat.h: Add include guard.
11930 * linux-fork.h: Add include guard.
11931 * i386-darwin-tdep.h: Rename include guard.
11932 * hppa-linux-offsets.h: Add include guard.
11933 * guile/guile.h: Rename include guard.
11934 * guile/guile-internal.h: Rename include guard.
11935 * gnu-nat.h: Rename include guard.
11936 * gdb-stabs.h: Rename include guard.
11937 * frv-tdep.h: Add include guard.
11938 * f-lang.h: Add include guard.
11939 * event-loop.h: Add include guard.
11940 * darwin-nat.h: Rename include guard.
11941 * cp-abi.h: Rename include guard.
11942 * config/sparc/nm-sol2.h: Rename include guard.
11943 * config/nm-nto.h: Rename include guard.
11944 * config/nm-linux.h: Add include guard.
11945 * config/i386/nm-i386gnu.h: Rename include guard.
11946 * config/djgpp/nl_types.h: Rename include guard.
11947 * config/djgpp/langinfo.h: Rename include guard.
11948 * compile/gcc-cp-plugin.h: Add include guard.
11949 * compile/gcc-c-plugin.h: Add include guard.
11950 * compile/compile.h: Rename include guard.
11951 * compile/compile-object-run.h: Rename include guard.
11952 * compile/compile-object-load.h: Rename include guard.
11953 * compile/compile-internal.h: Rename include guard.
11954 * compile/compile-cplus.h: Rename include guard.
11955 * compile/compile-c.h: Rename include guard.
11956 * common/xml-utils.h: Rename include guard.
11957 * common/x86-xstate.h: Rename include guard.
11958 * common/version.h: Rename include guard.
11959 * common/vec.h: Rename include guard.
11960 * common/tdesc.h: Rename include guard.
11961 * common/selftest.h: Rename include guard.
11962 * common/scoped_restore.h: Rename include guard.
11963 * common/scoped_mmap.h: Rename include guard.
11964 * common/scoped_fd.h: Rename include guard.
11965 * common/safe-iterator.h: Rename include guard.
11966 * common/run-time-clock.h: Rename include guard.
11967 * common/refcounted-object.h: Rename include guard.
11968 * common/queue.h: Rename include guard.
11969 * common/ptid.h: Rename include guard.
11970 * common/print-utils.h: Rename include guard.
11971 * common/preprocessor.h: Rename include guard.
11972 * common/pathstuff.h: Rename include guard.
11973 * common/observable.h: Rename include guard.
11974 * common/netstuff.h: Rename include guard.
11975 * common/job-control.h: Rename include guard.
11976 * common/host-defs.h: Rename include guard.
11977 * common/gdb_wait.h: Rename include guard.
11978 * common/gdb_vecs.h: Rename include guard.
11979 * common/gdb_unlinker.h: Rename include guard.
11980 * common/gdb_unique_ptr.h: Rename include guard.
11981 * common/gdb_tilde_expand.h: Rename include guard.
11982 * common/gdb_sys_time.h: Rename include guard.
11983 * common/gdb_string_view.h: Rename include guard.
11984 * common/gdb_splay_tree.h: Rename include guard.
11985 * common/gdb_setjmp.h: Rename include guard.
11986 * common/gdb_ref_ptr.h: Rename include guard.
11987 * common/gdb_optional.h: Rename include guard.
11988 * common/gdb_locale.h: Rename include guard.
11989 * common/gdb_assert.h: Rename include guard.
11990 * common/filtered-iterator.h: Rename include guard.
11991 * common/filestuff.h: Rename include guard.
11992 * common/fileio.h: Rename include guard.
11993 * common/environ.h: Rename include guard.
11994 * common/common-utils.h: Rename include guard.
11995 * common/common-types.h: Rename include guard.
11996 * common/common-regcache.h: Rename include guard.
11997 * common/common-inferior.h: Rename include guard.
11998 * common/common-gdbthread.h: Rename include guard.
11999 * common/common-exceptions.h: Rename include guard.
12000 * common/common-defs.h: Rename include guard.
12001 * common/common-debug.h: Rename include guard.
12002 * common/cleanups.h: Rename include guard.
12003 * common/buffer.h: Rename include guard.
12004 * common/btrace-common.h: Rename include guard.
12005 * common/break-common.h: Rename include guard.
12006 * cli/cli-utils.h: Rename include guard.
12007 * cli/cli-style.h: Rename include guard.
12008 * cli/cli-setshow.h: Rename include guard.
12009 * cli/cli-script.h: Rename include guard.
12010 * cli/cli-interp.h: Rename include guard.
12011 * cli/cli-decode.h: Rename include guard.
12012 * cli/cli-cmds.h: Rename include guard.
12013 * charset-list.h: Add include guard.
12014 * buildsym-legacy.h: Rename include guard.
12015 * bfin-tdep.h: Add include guard.
12016 * ax.h: Rename include guard.
12017 * arm-linux-tdep.h: Add include guard.
12018 * arm-fbsd-tdep.h: Add include guard.
12019 * arch/xtensa.h: Rename include guard.
12020 * arch/tic6x.h: Add include guard.
12021 * arch/i386.h: Add include guard.
12022 * arch/arm.h: Rename include guard.
12023 * arch/arm-linux.h: Rename include guard.
12024 * arch/arm-get-next-pcs.h: Rename include guard.
12025 * arch/amd64.h: Add include guard.
12026 * arch/aarch64-insn.h: Rename include guard.
12027 * arch-utils.h: Rename include guard.
12028 * annotate.h: Add include guard.
12029 * amd64-darwin-tdep.h: Rename include guard.
12030 * aarch64-linux-tdep.h: Add include guard.
12031 * aarch64-fbsd-tdep.h: Add include guard.
12032 * aarch32-linux-nat.h: Add include guard.
12033
12034 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12035
12036 * macrotab.c (macro_define_internal): New function that
12037 factorizes macro_define_object_internal and macro_define_function
12038 code.
12039 (macro_define_object_internal): Use macro_define_internal.
12040 (macro_define_function): Likewise.
12041
12042 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12043
12044 * macrocmd.c (extract_identifier): Return
12045 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
12046 callers.
12047
12048 2019-02-06 John Baldwin <jhb@FreeBSD.org>
12049
12050 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
12051
12052 2019-02-05 Tom Tromey <tom@tromey.com>
12053
12054 * target.c (target_stack::unpush): Move assertion earlier.
12055
12056 2019-01-30 Tom Tromey <tom@tromey.com>
12057
12058 PR python/23615:
12059 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
12060 (gdbpy_parse_and_eval): Likewise.
12061 * python/python-internal.h (gdbpy_allow_threads): New class.
12062
12063 2019-01-28 John Baldwin <jhb@FreeBSD.org>
12064
12065 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
12066 (aarch64_fbsd_fpregmap): Move earlier.
12067 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
12068 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12069 instead of individual calls to trad_frame_set_reg_addr.
12070 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
12071 earlier.
12072 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
12073 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12074 instead of individual calls to trad_frame_set_reg_addr.
12075
12076 2019-01-28 Alan Hayward <alan.hayward@arm.com>
12077
12078 * CONTRIBUTE: Replace contribution list with wiki link.
12079
12080 2019-01-25 Tom Tromey <tom@tromey.com>
12081
12082 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
12083
12084 2019-01-25 Tom Tromey <tom@tromey.com>
12085
12086 * xtensa-linux-nat.c: Fix common/ includes.
12087 * xml-support.h: Fix common/ includes.
12088 * xml-support.c: Fix common/ includes.
12089 * x86-linux-nat.c: Fix common/ includes.
12090 * windows-nat.c: Fix common/ includes.
12091 * varobj.h: Fix common/ includes.
12092 * varobj.c: Fix common/ includes.
12093 * value.c: Fix common/ includes.
12094 * valops.c: Fix common/ includes.
12095 * utils.c: Fix common/ includes.
12096 * unittests/xml-utils-selftests.c: Fix common/ includes.
12097 * unittests/utils-selftests.c: Fix common/ includes.
12098 * unittests/unpack-selftests.c: Fix common/ includes.
12099 * unittests/tracepoint-selftests.c: Fix common/ includes.
12100 * unittests/style-selftests.c: Fix common/ includes.
12101 * unittests/string_view-selftests.c: Fix common/ includes.
12102 * unittests/scoped_restore-selftests.c: Fix common/ includes.
12103 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
12104 * unittests/scoped_fd-selftests.c: Fix common/ includes.
12105 * unittests/rsp-low-selftests.c: Fix common/ includes.
12106 * unittests/parse-connection-spec-selftests.c: Fix common/
12107 includes.
12108 * unittests/optional-selftests.c: Fix common/ includes.
12109 * unittests/offset-type-selftests.c: Fix common/ includes.
12110 * unittests/observable-selftests.c: Fix common/ includes.
12111 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
12112 * unittests/memrange-selftests.c: Fix common/ includes.
12113 * unittests/memory-map-selftests.c: Fix common/ includes.
12114 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
12115 * unittests/function-view-selftests.c: Fix common/ includes.
12116 * unittests/environ-selftests.c: Fix common/ includes.
12117 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
12118 * unittests/common-utils-selftests.c: Fix common/ includes.
12119 * unittests/cli-utils-selftests.c: Fix common/ includes.
12120 * unittests/array-view-selftests.c: Fix common/ includes.
12121 * ui-file.c: Fix common/ includes.
12122 * tui/tui-io.c: Fix common/ includes.
12123 * tracepoint.h: Fix common/ includes.
12124 * tracepoint.c: Fix common/ includes.
12125 * tracefile-tfile.c: Fix common/ includes.
12126 * top.h: Fix common/ includes.
12127 * top.c: Fix common/ includes.
12128 * thread.c: Fix common/ includes.
12129 * target/waitstatus.h: Fix common/ includes.
12130 * target/waitstatus.c: Fix common/ includes.
12131 * target.h: Fix common/ includes.
12132 * target.c: Fix common/ includes.
12133 * target-memory.c: Fix common/ includes.
12134 * target-descriptions.c: Fix common/ includes.
12135 * symtab.h: Fix common/ includes.
12136 * symfile.c: Fix common/ includes.
12137 * stap-probe.c: Fix common/ includes.
12138 * spu-linux-nat.c: Fix common/ includes.
12139 * sparc-nat.c: Fix common/ includes.
12140 * source.c: Fix common/ includes.
12141 * solib.c: Fix common/ includes.
12142 * solib-target.c: Fix common/ includes.
12143 * ser-unix.c: Fix common/ includes.
12144 * ser-tcp.c: Fix common/ includes.
12145 * ser-pipe.c: Fix common/ includes.
12146 * ser-base.c: Fix common/ includes.
12147 * selftest-arch.c: Fix common/ includes.
12148 * s12z-tdep.c: Fix common/ includes.
12149 * rust-exp.y: Fix common/ includes.
12150 * rs6000-aix-tdep.c: Fix common/ includes.
12151 * riscv-tdep.c: Fix common/ includes.
12152 * remote.c: Fix common/ includes.
12153 * remote-notif.h: Fix common/ includes.
12154 * remote-fileio.h: Fix common/ includes.
12155 * remote-fileio.c: Fix common/ includes.
12156 * regcache.h: Fix common/ includes.
12157 * regcache.c: Fix common/ includes.
12158 * record-btrace.c: Fix common/ includes.
12159 * python/python.c: Fix common/ includes.
12160 * python/py-type.c: Fix common/ includes.
12161 * python/py-inferior.c: Fix common/ includes.
12162 * progspace.h: Fix common/ includes.
12163 * producer.c: Fix common/ includes.
12164 * procfs.c: Fix common/ includes.
12165 * proc-api.c: Fix common/ includes.
12166 * printcmd.c: Fix common/ includes.
12167 * ppc-linux-nat.c: Fix common/ includes.
12168 * parser-defs.h: Fix common/ includes.
12169 * osdata.c: Fix common/ includes.
12170 * obsd-nat.c: Fix common/ includes.
12171 * nat/x86-linux.c: Fix common/ includes.
12172 * nat/x86-linux-dregs.c: Fix common/ includes.
12173 * nat/x86-dregs.h: Fix common/ includes.
12174 * nat/x86-dregs.c: Fix common/ includes.
12175 * nat/ppc-linux.c: Fix common/ includes.
12176 * nat/mips-linux-watch.h: Fix common/ includes.
12177 * nat/mips-linux-watch.c: Fix common/ includes.
12178 * nat/linux-waitpid.c: Fix common/ includes.
12179 * nat/linux-ptrace.h: Fix common/ includes.
12180 * nat/linux-ptrace.c: Fix common/ includes.
12181 * nat/linux-procfs.c: Fix common/ includes.
12182 * nat/linux-personality.c: Fix common/ includes.
12183 * nat/linux-osdata.c: Fix common/ includes.
12184 * nat/linux-namespaces.c: Fix common/ includes.
12185 * nat/linux-btrace.h: Fix common/ includes.
12186 * nat/linux-btrace.c: Fix common/ includes.
12187 * nat/fork-inferior.c: Fix common/ includes.
12188 * nat/amd64-linux-siginfo.c: Fix common/ includes.
12189 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
12190 * nat/aarch64-linux.c: Fix common/ includes.
12191 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
12192 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
12193 * namespace.h: Fix common/ includes.
12194 * mips-linux-tdep.c: Fix common/ includes.
12195 * minsyms.c: Fix common/ includes.
12196 * mi/mi-parse.h: Fix common/ includes.
12197 * mi/mi-main.c: Fix common/ includes.
12198 * mi/mi-cmd-env.c: Fix common/ includes.
12199 * memrange.h: Fix common/ includes.
12200 * memattr.c: Fix common/ includes.
12201 * maint.h: Fix common/ includes.
12202 * maint.c: Fix common/ includes.
12203 * main.c: Fix common/ includes.
12204 * machoread.c: Fix common/ includes.
12205 * location.c: Fix common/ includes.
12206 * linux-thread-db.c: Fix common/ includes.
12207 * linux-nat.c: Fix common/ includes.
12208 * linux-fork.c: Fix common/ includes.
12209 * inline-frame.c: Fix common/ includes.
12210 * infrun.c: Fix common/ includes.
12211 * inflow.c: Fix common/ includes.
12212 * inferior.h: Fix common/ includes.
12213 * inferior.c: Fix common/ includes.
12214 * infcmd.c: Fix common/ includes.
12215 * inf-ptrace.c: Fix common/ includes.
12216 * inf-child.c: Fix common/ includes.
12217 * ia64-linux-nat.c: Fix common/ includes.
12218 * i387-tdep.c: Fix common/ includes.
12219 * i386-tdep.c: Fix common/ includes.
12220 * i386-linux-tdep.c: Fix common/ includes.
12221 * i386-linux-nat.c: Fix common/ includes.
12222 * i386-go32-tdep.c: Fix common/ includes.
12223 * i386-fbsd-tdep.c: Fix common/ includes.
12224 * i386-fbsd-nat.c: Fix common/ includes.
12225 * guile/scm-type.c: Fix common/ includes.
12226 * guile/guile.c: Fix common/ includes.
12227 * go32-nat.c: Fix common/ includes.
12228 * gnu-nat.c: Fix common/ includes.
12229 * gdbthread.h: Fix common/ includes.
12230 * gdbarch-selftests.c: Fix common/ includes.
12231 * gdb_usleep.c: Fix common/ includes.
12232 * gdb_select.h: Fix common/ includes.
12233 * gdb_bfd.c: Fix common/ includes.
12234 * gcore.c: Fix common/ includes.
12235 * fork-child.c: Fix common/ includes.
12236 * findvar.c: Fix common/ includes.
12237 * fbsd-nat.c: Fix common/ includes.
12238 * event-top.c: Fix common/ includes.
12239 * event-loop.c: Fix common/ includes.
12240 * dwarf2read.c: Fix common/ includes.
12241 * dwarf2loc.c: Fix common/ includes.
12242 * dwarf2-frame.c: Fix common/ includes.
12243 * dwarf-index-cache.c: Fix common/ includes.
12244 * dtrace-probe.c: Fix common/ includes.
12245 * disasm-selftests.c: Fix common/ includes.
12246 * defs.h: Fix common/ includes.
12247 * csky-tdep.c: Fix common/ includes.
12248 * cp-valprint.c: Fix common/ includes.
12249 * cp-support.h: Fix common/ includes.
12250 * cp-support.c: Fix common/ includes.
12251 * corelow.c: Fix common/ includes.
12252 * completer.h: Fix common/ includes.
12253 * completer.c: Fix common/ includes.
12254 * compile/compile.c: Fix common/ includes.
12255 * compile/compile-loc2c.c: Fix common/ includes.
12256 * compile/compile-cplus-types.c: Fix common/ includes.
12257 * compile/compile-cplus-symbols.c: Fix common/ includes.
12258 * command.h: Fix common/ includes.
12259 * cli/cli-dump.c: Fix common/ includes.
12260 * cli/cli-cmds.c: Fix common/ includes.
12261 * charset.c: Fix common/ includes.
12262 * build-id.c: Fix common/ includes.
12263 * btrace.h: Fix common/ includes.
12264 * btrace.c: Fix common/ includes.
12265 * breakpoint.h: Fix common/ includes.
12266 * breakpoint.c: Fix common/ includes.
12267 * ax.h:
12268 (enum agent_op): Fix common/ includes.
12269 * ax-general.c (struct aop_map): Fix common/ includes.
12270 * ax-gdb.c: Fix common/ includes.
12271 * auxv.c: Fix common/ includes.
12272 * auto-load.c: Fix common/ includes.
12273 * arm-tdep.c: Fix common/ includes.
12274 * arch/riscv.c: Fix common/ includes.
12275 * arch/ppc-linux-common.c: Fix common/ includes.
12276 * arch/i386.c: Fix common/ includes.
12277 * arch/arm.c: Fix common/ includes.
12278 * arch/arm-linux.c: Fix common/ includes.
12279 * arch/arm-get-next-pcs.c: Fix common/ includes.
12280 * arch/amd64.c: Fix common/ includes.
12281 * arch/aarch64.c: Fix common/ includes.
12282 * arch/aarch64-insn.c: Fix common/ includes.
12283 * arch-utils.c: Fix common/ includes.
12284 * amd64-windows-tdep.c: Fix common/ includes.
12285 * amd64-tdep.c: Fix common/ includes.
12286 * amd64-sol2-tdep.c: Fix common/ includes.
12287 * amd64-obsd-tdep.c: Fix common/ includes.
12288 * amd64-nbsd-tdep.c: Fix common/ includes.
12289 * amd64-linux-tdep.c: Fix common/ includes.
12290 * amd64-linux-nat.c: Fix common/ includes.
12291 * amd64-fbsd-tdep.c: Fix common/ includes.
12292 * amd64-fbsd-nat.c: Fix common/ includes.
12293 * amd64-dicos-tdep.c: Fix common/ includes.
12294 * amd64-darwin-tdep.c: Fix common/ includes.
12295 * agent.c: Fix common/ includes.
12296 * ada-lang.h: Fix common/ includes.
12297 * ada-lang.c: Fix common/ includes.
12298 * aarch64-tdep.c: Fix common/ includes.
12299
12300 2019-01-25 Tom Tromey <tom@tromey.com>
12301
12302 * common/create-version.sh: Use common/version.h.
12303
12304 2019-01-24 Pedro Alves <palves@redhat.com>
12305
12306 * infrun.c (signal_stop, signal_print, signal_program)
12307 (signal_catch, signal_pass): Now arrays instead of pointers.
12308 (update_signals_program_target, do_target_resume)
12309 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
12310 * linux-nat.c (linux_nat_target::pass_signals)
12311 (linux_nat_target::create_inferior, linux_nat_target::attach):
12312 Adjust.
12313 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
12314 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
12315 * procfs.c (procfs_target::pass_signals): Adjust.
12316 * record-full.c (record_full_target::resume): Adjust.
12317 * remote.c (remote_target::pass_signals)
12318 (remote_target::program_signals): Adjust.
12319 * target-debug.h (target_debug_print_signals): Now takes a
12320 gdb::array_view as parameter. Adjust.
12321 * target.h (target_ops) <pass_signals, program_signals>: Replace
12322 pointer and length parameters with gdb::array_view.
12323 (target_pass_signals, target_program_signals): Likewise.
12324 * target-delegates.c: Regenerate.
12325
12326 2019-01-24 Pedro Alves <palves@redhat.com>
12327
12328 * common/forward-scope-exit.h
12329 (forward_scope_exit::forward_scope_exit): Pass arguments to
12330 m_bind_function directly, instead of creating a std::bind and
12331 copying that.
12332
12333 2019-01-24 Alan Hayward <alan.hayward@arm.com>
12334
12335 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12336 for static members.
12337 (pass_in_v_vfp_candidate): Likewise.
12338
12339 2019-01-23 Tom Tromey <tom@tromey.com>
12340 Pedro Alves <palves@redhat.com>
12341
12342 * regcache.c (class regcache_invalidator): Remove.
12343 (regcache::raw_write): Use make_scope_exit.
12344
12345 2019-01-23 Tom Tromey <tom@tromey.com>
12346
12347 * ui-out.h (class ui_out_emit_type): Update comment.
12348
12349 2019-01-23 Tom Tromey <tom@tromey.com>
12350
12351 * infrun.c (fetch_inferior_event): Update comment.
12352
12353 2019-01-23 Tom Tromey <tom@tromey.com>
12354 Pedro Alves <palves@redhat.com>
12355
12356 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
12357 parameter.
12358 (fetch_inferior_event): Use SCOPE_EXIT.
12359
12360
12361 2019-01-23 Tom Tromey <tom@tromey.com>
12362 Pedro Alves <palves@redhat.com>
12363
12364 * infrun.c (disable_thread_events): Delete.
12365 (stop_all_threads): Use SCOPE_EXIT.
12366
12367 2019-01-23 Tom Tromey <tom@tromey.com>
12368 Pedro Alves <palves@redhat.com>
12369
12370 * symfile.c: Include forward-scope-exit.h.
12371 (clear_symtab_users_cleanup): Replace forward declaration with
12372 a FORWARD_SCOPE_EXIT.
12373 (syms_from_objfile_1): Use the forward_scope_exit and
12374 gdb::optional instead of cleanup_function.
12375 (reread_symbols): Use the forward_scope_exit instead of
12376 cleanup_function.
12377 (clear_symtab_users_cleanup): Remove function.
12378
12379 2019-01-23 Tom Tromey <tom@tromey.com>
12380 Pedro Alves <palves@redhat.com>
12381
12382 * linux-nat.c: Include scope-exit.h.
12383 (cleanup_target_stop): Remove.
12384 (linux_nat_target::static_tracepoint_markers_by_strid): Use
12385 SCOPE_EXIT.
12386
12387 2019-01-23 Tom Tromey <tom@tromey.com>
12388 Pedro Alves <palves@redhat.com>
12389
12390 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
12391 (call_function_by_hand_dummy): Use SCOPE_EXIT.
12392
12393 2019-01-23 Tom Tromey <tom@tromey.com>
12394 Andrew Burgess <andrew.burgess@embecosm.com>
12395 Pedro Alves <palves@redhat.com>
12396
12397 * infrun.c (fetch_inferior_event): Use scope_exit.
12398 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
12399 * top.c (execute_command): Use scope_exit.
12400 * breakpoint.c (bpstat_do_actions): Use scope_exit.
12401 * utils.c (do_bpstat_clear_actions_cleanup)
12402 (make_bpstat_clear_actions_cleanup): Remove.
12403
12404 2019-01-23 Tom Tromey <tom@tromey.com>
12405 Pedro Alves <palves@redhat.com>
12406
12407 * infrun.c: Include "common/scope-exit.h"
12408 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
12409 (wait_for_inferior): Use SCOPE_EXIT.
12410 (fetch_inferior_event): Use scope_exit.
12411
12412 2019-01-23 Tom Tromey <tom@tromey.com>
12413 Pedro Alves <palves@redhat.com>
12414
12415 * breakpoint.c (create_breakpoint): Remove cleanup.
12416
12417 2019-01-23 Tom Tromey <tom@tromey.com>
12418 Andrew Burgess <andrew.burgess@embecosm.com>
12419 Pedro Alves <palves@redhat.com>
12420
12421 2019-01-23 Pedro Alves <palves@redhat.com>
12422
12423 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
12424
12425 2019-01-23 Pedro Alves <palves@redhat.com>
12426 Andrew Burgess <andrew.burgess@embecosm.com>
12427
12428 * gdbthread.h: Include "common/forward-scope-exit.h".
12429 (scoped_finish_thread_state): Redefine custom class in terms of
12430 forward_scope_exit.
12431
12432 2019-01-23 Pedro Alves <palves@redhat.com>
12433 Andrew Burgess <andrew.burgess@embecosm.com>
12434
12435 * common/forward-scope-exit.h: New file.
12436
12437 2019-01-23 Pedro Alves <palves@redhat.com>
12438 Andrew Burgess <andrew.burgess@embecosm.com>
12439 Tom Tromey <tom@tromey.com>
12440
12441 * common/scope-exit.h: New file.
12442
12443 2019-01-23 Pedro Alves <palves@redhat.com>
12444
12445 * common/preprocessor.h (ESC): Rename to ...
12446 (ESC_PARENS): ... this.
12447 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
12448 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
12449
12450 2019-01-23 Tom Tromey <tom@tromey.com>
12451
12452 * language.h (class scoped_switch_to_sym_language_if_auto):
12453 Initialize m_lang in both cases.
12454
12455 2019-01-23 Alan Hayward <alan.hayward@arm.com>
12456
12457 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
12458 with XCNEW.
12459
12460 2019-01-22 Tom Tromey <tom@tromey.com>
12461
12462 * corelow.c: Do not include sys/file.h.
12463
12464 2019-01-22 Tom Tromey <tom@tromey.com>
12465
12466 * tui/tui-wingeneral.h: Include gdb_curses.h.
12467
12468 2019-01-22 Tom Tromey <tom@tromey.com>
12469
12470 * source-cache.h (class source_cache) <get_source_lines,
12471 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
12472
12473 2019-01-22 Tom Tromey <tom@tromey.com>
12474
12475 * remote-fileio.h (struct remote_target): Declare.
12476
12477 2019-01-22 Tom Tromey <tom@tromey.com>
12478
12479 * python/py-arch.c: Do not include py-ref.h.
12480 * python/py-bpevent.c: Do not include py-ref.h.
12481 * python/py-cmd.c: Do not include py-ref.h.
12482 * python/py-continueevent.c: Do not include py-ref.h.
12483 * python/py-event.h: Do not include py-ref.h.
12484 * python/py-evtregistry.c: Do not include py-ref.h.
12485 * python/py-finishbreakpoint.c: Do not include py-ref.h.
12486 * python/py-frame.c: Do not include py-ref.h.
12487 * python/py-framefilter.c: Do not include py-ref.h.
12488 * python/py-function.c: Do not include py-ref.h.
12489 * python/py-infevents.c: Do not include py-ref.h.
12490 * python/py-linetable.c: Do not include py-ref.h.
12491 * python/py-objfile.c: Do not include py-ref.h.
12492 * python/py-param.c: Do not include py-ref.h.
12493 * python/py-prettyprint.c: Do not include py-ref.h.
12494 * python/py-progspace.c: Do not include py-ref.h.
12495 * python/py-symbol.c: Do not include py-ref.h.
12496 * python/py-symtab.c: Do not include py-ref.h.
12497 * python/py-type.c: Do not include py-ref.h.
12498 * python/py-unwind.c: Do not include py-ref.h.
12499 * python/py-utils.c: Do not include py-ref.h.
12500 * python/py-value.c: Do not include py-ref.h.
12501 * python/py-varobj.c: Do not include py-ref.h.
12502 * python/py-xmethods.c: Do not include py-ref.h.
12503 * python/python.c: Do not include py-ref.h.
12504 * varobj.c: Do not include py-ref.h.
12505
12506 2019-01-22 Tom Tromey <tom@tromey.com>
12507
12508 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
12509 keyword for bcache.
12510
12511 2019-01-22 Tom Tromey <tom@tromey.com>
12512
12513 * compile/compile-cplus-types.c: Remove a comment by #include.
12514
12515 2019-01-22 Tom Tromey <tom@tromey.com>
12516
12517 * compile/gcc-c-plugin.h: Include compile-internal.h.
12518
12519 2019-01-22 Tom Tromey <tom@tromey.com>
12520
12521 * stabsread.c (EXTERN): Do not define.
12522 (symnum, next_symbol_text_func, processing_gcc_compilation)
12523 (within_function, global_sym_chain, global_stabs)
12524 (previous_stab_code, this_object_header_files)
12525 (n_this_object_header_files)
12526 (n_allocated_this_object_header_files): Define.
12527 * stabsread.h (EXTERN): Never define. Use "extern".
12528
12529 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12530
12531 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
12532 history_value.
12533
12534 2019-01-21 Tom Tromey <tom@tromey.com>
12535
12536 * ui-out.c: Fix includes.
12537 * tui/tui-source.c: Fix includes.
12538 * target.c: Fix includes.
12539 * remote.c: Fix includes.
12540 * regcache.c: Fix includes.
12541 * python/py-block.c: Fix includes.
12542 * printcmd.c: Fix includes.
12543 * or1k-tdep.c: Fix includes.
12544 * mi/mi-main.c: Fix includes.
12545 * m32r-tdep.c: Fix includes.
12546 * csky-tdep.c: Fix includes.
12547 * compile/compile-cplus-types.c: Fix includes.
12548 * cli/cli-interp.c: Fix includes.
12549
12550 2019-01-21 Alan Hayward <alan.hayward@arm.com>
12551
12552 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12553 for padding.
12554
12555 2019-01-16 Tom Tromey <tom@tromey.com>
12556
12557 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
12558 earlier.
12559 (struct objfile) <msymbols_range>: Move from top level.
12560 <msymbols>: New method.
12561 (class objfile_msymbols): Remove.
12562 * symtab.c (default_collect_symbol_completion_matches_break_on):
12563 Update.
12564 * symmisc.c (dump_msymbols): Update.
12565 * stabsread.c (scan_file_globals): Update.
12566 * objc-lang.c (info_selectors_command, info_classes_command)
12567 (find_methods): Update.
12568 * minsyms.c (find_solib_trampoline_target): Update.
12569 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
12570 * coffread.c (coff_symfile_read): Update.
12571 * ada-lang.c (ada_lookup_simple_minsym)
12572 (ada_collect_symbol_completion_matches): Update.
12573
12574 2019-01-16 Tom Tromey <tom@tromey.com>
12575
12576 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
12577 type. Remove no-argument constructor.
12578 <iterator::operator++>: Simplify.
12579 <begin>: Update.
12580 <end>: Use minimal_symbol_count.
12581
12582 2019-01-16 Tom Tromey <tom@tromey.com>
12583
12584 * objfiles.h (struct objfile) <psymtabs>: New method.
12585 (class objfile_psymtabs): Remove.
12586 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
12587 typedef.
12588 <range>: New method.
12589 (require_partial_symbols): Change return type.
12590 * psymtab.c (require_partial_symbols)
12591 (psym_expand_symtabs_matching): Update.
12592 * mdebugread.c (parse_partial_symbols): Update.
12593 * dbxread.c (dbx_end_psymtab): Update.
12594
12595 2019-01-15 Tom Tromey <tom@tromey.com>
12596
12597 * symtab.c (lookup_objfile_from_block)
12598 (lookup_symbol_in_objfile_symtabs)
12599 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
12600 (find_line_symtab, info_sources_command)
12601 (default_collect_symbol_completion_matches_break_on)
12602 (make_source_files_completion_list): Update.
12603 * symmisc.c (print_objfile_statistics, dump_objfile)
12604 (maintenance_print_symbols, maintenance_info_symtabs)
12605 (maintenance_check_symtabs, maintenance_info_line_tables):
12606 Update.
12607 * source.c (select_source_symtab)
12608 (forget_cached_source_info_for_objfile): Update.
12609 * objfiles.h (class objfile_compunits): Remove.
12610 (struct objfile) <compunits_range>: New typedef.
12611 (compunits): New method.
12612 * objfiles.c (objfile_relocate1): Update.
12613 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12614 * maint.c (count_symtabs_and_blocks): Update.
12615 * linespec.c (iterate_over_all_matching_symtabs): Update.
12616 * cp-support.c (add_symbol_overload_list_qualified): Update.
12617 * coffread.c (coff_symtab_read): Update.
12618 * ada-lang.c (add_nonlocal_symbols)
12619 (ada_collect_symbol_completion_matches)
12620 (ada_add_global_exceptions): Update.
12621
12622 2019-01-15 Tom Tromey <tom@tromey.com>
12623
12624 * progspace.h (program_space) <objfiles_safe_range>: New
12625 typedef.
12626 <objfiles_safe>: New method.
12627 * objfiles.h (class all_objfiles_safe): Remove.
12628 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
12629 * jit.c (jit_inferior_exit_hook): Update.
12630
12631 2019-01-17 Tom Tromey <tom@tromey.com>
12632
12633 * progspace.h (program_space) <objfiles_range>: New typedef.
12634 <objfiles>: New method.
12635 <objfiles_head>: Rename from objfiles.
12636 (object_files): Update.
12637 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
12638 * guile/scm-pretty-print.c
12639 (ppscm_find_pretty_printer_from_objfiles): Update.
12640 * guile/scm-objfile.c (gdbscm_objfiles): Update.
12641 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
12642 Update.
12643 * python/py-progspace.c (pspy_get_objfiles): Update.
12644 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12645 Update.
12646 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12647 (objfpy_lookup_objfile_by_build_id): Update.
12648 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12649 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12650 Update.
12651 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12652 (expand_symtab_containing_pc, lookup_objfile_from_block)
12653 (lookup_static_symbol, basic_lookup_transparent_type)
12654 (find_pc_sect_compunit_symtab, find_symbol_at_address)
12655 (find_line_symtab, info_sources_command)
12656 (default_collect_symbol_completion_matches_break_on)
12657 (make_source_files_completion_list, find_main_name): Update.
12658 * symmisc.c (print_symbol_bcache_statistics)
12659 (print_objfile_statistics, maintenance_print_symbols)
12660 (maintenance_print_msymbols, maintenance_print_objfiles)
12661 (maintenance_info_symtabs, maintenance_check_symtabs)
12662 (maintenance_expand_symtabs, maintenance_info_line_tables):
12663 Update.
12664 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
12665 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
12666 (map_overlay_command, unmap_overlay_command)
12667 (simple_overlay_update, expand_symtabs_matching)
12668 (map_symbol_filenames): Update.
12669 * symfile-debug.c (set_debug_symfile): Update.
12670 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
12671 Update.
12672 * source.c (select_source_symtab, forget_cached_source_info):
12673 Update.
12674 * solib.c (solib_read_symbols): Update.
12675 * solib-spu.c (append_ocl_sos): Update.
12676 * psymtab.c (maintenance_print_psymbols)
12677 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
12678 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
12679 * printcmd.c (info_symbol_command): Update.
12680 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
12681 Update.
12682 * objfiles.h (class all_objfiles): Remove.
12683 * objfiles.c (have_partial_symbols, have_full_symbols)
12684 (have_minimal_symbols, qsort_cmp, update_section_map)
12685 (shared_objfile_contains_address_p)
12686 (default_iterate_over_objfiles_in_search_order): Update.
12687 * objc-lang.c (info_selectors_command, info_classes_command)
12688 (find_methods): Update.
12689 * minsyms.c (find_solib_trampoline_target): Update.
12690 * maint.c (maintenance_info_sections)
12691 (maintenance_translate_address, count_symtabs_and_blocks):
12692 Update.
12693 * main.c (captured_main_1): Update.
12694 * linux-thread-db.c (try_thread_db_load_from_pdir)
12695 (has_libpthread): Update.
12696 * linespec.c (iterate_over_all_matching_symtabs)
12697 (search_minsyms_for_name): Update.
12698 * jit.c (jit_find_objf_with_entry_addr): Update.
12699 * hppa-tdep.c (find_unwind_entry)
12700 (hppa_lookup_stub_minimal_symbol): Update.
12701 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
12702 Update.
12703 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12704 (elf_gnu_ifunc_resolve_by_got): Update.
12705 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
12706 * dwarf-index-write.c (save_gdb_index_command): Update.
12707 * cp-support.c (add_symbol_overload_list_qualified): Update.
12708 * breakpoint.c (create_overlay_event_breakpoint)
12709 (create_longjmp_master_breakpoint)
12710 (create_std_terminate_master_breakpoint)
12711 (create_exception_master_breakpoint): Update.
12712 * blockframe.c (find_pc_partial_function): Update.
12713 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
12714 (ada_collect_symbol_completion_matches)
12715 (ada_add_global_exceptions): Update.
12716
12717 2019-01-17 Tom Tromey <tom@tromey.com>
12718
12719 * solib-target.c (lm_info_target_p): Remove typedef. Don't
12720 declare VEC.
12721 (solib_target_parse_libraries): Change return type.
12722 (library_list_start_segment, library_list_start_section)
12723 (library_list_end_library, library_list_start_library); Update.
12724 (solib_target_free_library_list): Remove.
12725 (solib_target_parse_libraries): Remove cleanup. Change return
12726 type.
12727 (solib_target_current_sos): Update.
12728
12729 2019-01-17 Tom Tromey <tromey@bapiya>
12730
12731 * valprint.c: Replace "the the" with "the".
12732 * symtab.c: Replace "the the" with "the".
12733 * solib.c: Replace "the the" with "the".
12734 * solib-dsbt.c: Replace "the the" with "the".
12735 * linespec.c: Replace "the the" with "the".
12736 * dwarf2loc.h: Replace "the the" with "the".
12737 * amd64-windows-tdep.c: Replace "the the" with "the".
12738 * aarch64-tdep.c: Replace "the the" with "the".
12739
12740 2019-01-16 Keith Seitz <keiths@redhat.com>
12741
12742 PR gdb/23773
12743 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
12744 <builder>: Rename to ..
12745 <m_builder>: ... this and make private.
12746 (dwarf2_cu::get_builder): New method. Change all users of
12747 `builder' to use this method.
12748 (dwarf2_start_symtab): Move to ...
12749 (dwarf2_cu::start_symtab): ... here. Update all callers
12750 (setup_type_unit_groups): Move to ...
12751 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
12752 callers.
12753 (dwarf2_cu::reset_builder): New method.
12754 (process_full_compunit, process_full_type_unit): Use
12755 dwarf2_cu::reset_builder.
12756 (follow_die_offset): Record the ancestor CU if it is different
12757 from the followed DIE's CU.
12758 (follow_die_sig_1): Likewise.
12759
12760 2019-01-15 Tom Tromey <tom@tromey.com>
12761
12762 * remote.c (class remote_state) <buf>: Now a char_vector.
12763 <buf_size>: Remove.
12764 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
12765 parameter.
12766 (remote_target::getpkt_or_notif_sane_1)
12767 (remote_target::getpkt_sane)
12768 (remote_target::getpkt_or_notif_sane): Likewise.
12769 (class remote_target) <putpkt>: New overload.
12770 (remote_target::read_frame): Change type of "buf_p". Remove
12771 sizeof_p parameter.
12772 (packet_ok): New overload.
12773 (packet_check_result): New overload.
12774 Update all uses.
12775
12776 2019-01-14 Tom Tromey <tom@tromey.com>
12777
12778 * remote-notif.c (handle_notification, remote_notif_ack)
12779 (remote_notif_parse): Make "buf" const.
12780 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
12781 const.
12782 (remote_notif_parse, remote_notif_ack, handle_notification):
12783 Likewise.
12784 * remote.c (remote_notif_stop_parse): Make "buf" const.
12785 (remote_target::remote_parse_stop_reply): Make "buf" const.
12786 (remote_notif_stop_ack): Make "buf" const.
12787
12788 2019-01-14 Tom Tromey <tom@tromey.com>
12789
12790 * remote.c (remote_console_output): Make parameter const.
12791
12792 2019-01-14 Tom Tromey <tom@tromey.com>
12793
12794 * target-debug.h (target_debug_print_signals): Constify.
12795 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
12796 * procfs.c (procfs_target::pass_signals): Update.
12797 * linux-nat.c (linux_nat_target::pass_signals): Update.
12798 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
12799 * target-delegates.c: Rebuild.
12800 * remote.c (remote_target::program_signals): Update.
12801 (remote_target::pass_signals): Update.
12802 * target.c (target_pass_signals): Constify argument.
12803 (target_program_signals): Likewise.
12804 * target.h (struct target_ops) <pass_signals, program_signals>:
12805 Constify argument.
12806 (target_pass_signals, target_program_signals): Constify argument.
12807
12808 2019-01-14 Tom Tromey <tom@tromey.com>
12809
12810 PR tui/28819:
12811 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
12812
12813 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12814
12815 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
12816 field.
12817 * rs6000-tdep.c: Include reggroups.h.
12818 (IS_V_ALIAS_PSEUDOREG): Define.
12819 (rs6000_register_name): Return names for the "vX" aliases.
12820 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
12821 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
12822 aliases. Call default_register_reggroup_p for all other
12823 pseudo-registers.
12824 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
12825 New functions.
12826 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
12827 Handle "vX" aliases.
12828 (v_alias_pseudo_register_collect): New function.
12829 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
12830 (rs6000_gdbarch_init): Initialize "vX" aliases as
12831 pseudo-registers. Restore registration of
12832 rs6000_pseudo_register_reggroup_p with
12833 set_tdesc_pseudo_register_reggroup_p.
12834
12835 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
12836
12837 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
12838 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
12839 set_gdbarch_num_pseudo_regs.
12840
12841 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12842
12843 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
12844 Remove arg prefixname, add do_set and do_show.
12845 Add member functions set_list and show_list.
12846 * cli/cli-style.c (class cli_style_option): Update accordingly.
12847 (style_set_list): Move to file scope.
12848 (style_show_list): Likewise.
12849 (set_style): Call help_list.
12850 (show_style): Call cmd_show_list.
12851 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
12852 Update to use the new macro.
12853
12854 2019-10-12 Joel Brobecker <brobecker@adacore.com>
12855
12856 * ada-lang.c (_initialize_ada_language): Expand the help text
12857 for the "catch exception" command.
12858
12859 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12860
12861 * symtab.c (matching_obj_sections): Initialize obj,
12862 declare it closer to its usage.
12863
12864 2019-01-10 Tom Tromey <tom@tromey.com>
12865
12866 * thread-iter.h (inf_threads_iterator): Use next_iterator.
12867 (basic_inf_threads_range): Remove.
12868 (inf_threads_range, inf_non_exited_threads_range)
12869 (safe_inf_threads_range): Use next_adapter.
12870
12871 2019-01-10 Keith Seitz <keiths@redhat.com>
12872
12873 PR gdb/23712
12874 PR symtab/23010
12875 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
12876 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
12877
12878 2019-01-10 Keith Seitz <keiths@redhat.com>
12879
12880 PR gdb/23712
12881 PR symtab/23010
12882 * dictionary.c (pending_to_vector): Remove.
12883 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12884 Remove _1 suffix, replacing functions of the same name. Update
12885 all callers.
12886 (dict_create_hashed, dict_create_hashed_expandable)
12887 (dict_create_linear, dict_create_linear_expandable, dict_free)
12888 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
12889 Make functions static.
12890
12891 2019-01-10 Keith Seitz <keiths@redhat.com>
12892
12893 PR gdb/23712
12894 PR symtab/23010
12895 * dictionary.h (struct dictionary): Replace declaration with
12896 multidictionary.
12897 (dict_create_hashed, dict_create_hashed_expandable)
12898 (dict_create_linear, dict_create_linear_expandable)
12899 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
12900 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
12901 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
12902 taking multidictionary argument.
12903 [ALL_DICT_SYMBOLS]: Update for multidictionary.
12904 * block.h (struct block) <dict>: Change to multidictionary
12905 and rename `multidict'.
12906 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
12907 symmisc.c: Update all dictionary references to multidictionary.
12908
12909 2019-01-10 Keith Seitz <keiths@redhat.com>
12910
12911 PR gdb/23712
12912 PR symtab/23010
12913 * dictionary.c: Include unordered_map.
12914 (pending_to_vector): New function.
12915 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12916 Rewrite the non-"_1" functions to take vector instead
12917 of linked list.
12918 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
12919 "new" _1 versions of the same name.
12920 (multidictionary): Define.
12921 (std::hash<enum language): New definition.
12922 (collate_pending_symbols_by_language, mdict_create_hashed)
12923 (mdict_create_hashed_expandable, mdict_create_linear)
12924 (mdict_create_linear_expandable, mdict_free)
12925 (find_language_dictionary, create_new_language_dictionary)
12926 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
12927 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
12928 (mdict_size, mdict_empty): New functions.
12929 * dictionary.h (mdict_iterator): Define.
12930
12931 2019-01-10 Pedro Alves <palves@redhat.com>
12932
12933 * breakpoint.c (read_uploaded_action)
12934 (create_tracepoint_from_upload): Adjust to use
12935 gdb::unique_xmalloc_ptr.
12936 * ctf.c (ctf_write_uploaded_tp):
12937 (SET_ARRAY_FIELD): Use emplace_back.
12938 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
12939 * tracefile-tfile.c (tfile_write_uploaded_tp):
12940 * tracepoint.c (parse_tracepoint_definition): Adjust to use
12941 gdb::unique_xmalloc_ptr.
12942 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
12943 at_string, cond_string, cmd_strings>: Replace char pointers
12944 with gdb::unique_xmalloc_ptr.
12945
12946 2019-01-10 Pedro Alves <palves@redhat.com>
12947
12948 * solib-target.c (library_list_start_library): Don't xstrdup name.
12949
12950 2019-01-10 Pedro Alves <palves@redhat.com>
12951
12952 * mdebugread.c (parse_partial_symbols): Use
12953 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
12954
12955 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12956
12957 * linux-fork.c (scoped_switch_fork_info)
12958 <~scoped_switch_fork_info>: Fix incorrect variable name.
12959
12960 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12961
12962 * linux-fork.c (scoped_switch_fork_info)
12963 <scoped_switch_fork_info>: Make explicit.
12964 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
12965
12966 2019-01-10 Tom Tromey <tom@tromey.com>
12967
12968 * objfiles.h (objfile::reset_psymtabs): Update.
12969 * objfiles.c (objfile::objfile): Update.
12970 * psymtab.h (psymtab_storage::obstack): Update.
12971 (psymtab_storage::m_obstack): Use gdb::optional.
12972 (class psymtab_storage): Update comment. Remove objfile
12973 parameter.
12974 * psymtab.c (psymtab_storage::psymtab_storage): Update.
12975
12976 2019-01-10 Tom Tromey <tom@tromey.com>
12977
12978 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
12979 <free_psymtabs>: Now private.
12980 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
12981 (allocate_psymtab): Use new method.
12982
12983 2019-01-10 Tom Tromey <tom@tromey.com>
12984
12985 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
12986 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
12987 * mdebugread.c (parse_partial_symbols): Use
12988 allocate_dependencies.
12989 * dwarf2read.c (dwarf2_create_include_psymtab): Use
12990 allocate_dependencies.
12991 (process_psymtab_comp_unit_reader)
12992 (build_type_psymtab_dependencies): Likewise.
12993 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
12994
12995 2019-01-10 Tom Tromey <tom@tromey.com>
12996
12997 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
12998 PSYMBOL_SET_LANGUAGE.
12999 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
13000
13001 2019-01-10 Tom Tromey <tom@tromey.com>
13002
13003 * psymtab.h (psymtab_storage::obstack): New method.
13004 <m_obstack>: Rename from obstack; now private.
13005 * psymtab.c (psymtab_storage): Update.
13006 * dwarf2read.c (create_addrmap_from_index)
13007 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
13008 Update.
13009
13010 2019-01-10 Tom Tromey <tom@tromey.com>
13011
13012 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
13013 * objfiles.h (objfile::reset_psymtabs): New method.
13014
13015 2019-01-10 Tom Tromey <tom@tromey.com>
13016
13017 * symmisc.c (print_symbol_bcache_statistics): Update.
13018 (print_objfile_statistics): Update.
13019 * symfile.c (reread_symbols): Update.
13020 * psymtab.h (class psymtab_storage): New.
13021 * psymtab.c (psymtab_storage): New constructor.
13022 (~psymtab_storage): New destructor.
13023 (require_partial_symbols): Update.
13024 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
13025 (find_pc_sect_psymtab, find_pc_sect_psymbol)
13026 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
13027 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
13028 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
13029 (start_psymtab_common, end_psymtab_common)
13030 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
13031 (allocate_psymtab): Update.
13032 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
13033 Update.
13034 (dump_psymtab_addrmap, maintenance_print_psymbols)
13035 (maintenance_check_psymtabs): Update.
13036 (class objfile_psymtabs): Move to objfiles.h.
13037 * psympriv.h (discard_psymtab): Now inline.
13038 (psymtab_discarder::psymtab_discarder): Update.
13039 (psymtab_discarder::~psymtab_discarder): Update.
13040 (ALL_OBJFILE_PSYMTABS): Rewrite.
13041 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
13042 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
13043 Remove fields.
13044 <partial_symtabs>: New field.
13045 (class objfile_psymtabs): Move from psymtab.h. Update.
13046 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
13047 psymbol_cache.
13048 (objfile::~objfile): Don't destroy psymbol_cache.
13049 * mdebugread.c (parse_partial_symbols): Update.
13050 * dwarf2read.c (create_addrmap_from_index)
13051 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13052 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
13053 (add_partial_subprogram, dwarf2_ranges_read): Update.
13054 * dwarf-index-write.c (write_address_map)
13055 (write_one_signatured_type, recursively_write_psymbols)
13056 (class debug_names, class debug_names, write_psymtabs_to_index):
13057 Update.
13058
13059 2019-01-10 Tom Tromey <tom@tromey.com>
13060
13061 * symtab.h (SYMBOL_SET_NAMES): Update.
13062 (symbol_set_names): Update.
13063 (MSYMBOL_SET_NAMES): Update.
13064 * symtab.c (symbol_set_names): Change argument to be an
13065 objfile_per_bfd_storage.
13066 * psymtab.c (add_psymbol_to_bcache): Update.
13067 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
13068
13069 2019-01-10 Tom Tromey <tom@tromey.com>
13070
13071 * symtab.c (create_demangled_names_hash): Change argument to be an
13072 objfile_per_bfd_storage.
13073 (symbol_set_names): Update.
13074
13075 2019-01-10 Tom Tromey <tom@tromey.com>
13076
13077 * xcoffread.c (xcoff_initial_scan): Unconditionally call
13078 init_psymbol_list.
13079 * psymtab.c (init_psymbol_list): Do nothing if already called.
13080 * psympriv.h (init_psymbol_list): Add comment.
13081 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
13082 init_psymbol_list.
13083 * dbxread.c (dbx_symfile_read): Unconditionally call
13084 init_psymbol_list.
13085
13086 2019-01-10 Tom Tromey <tom@tromey.com>
13087
13088 * xcoffread.c (scan_xcoff_symtab): Update.
13089 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
13090 "where".
13091 * mdebugread.c (parse_partial_symbols)
13092 (handle_psymbol_enumerators): Update.
13093 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
13094 * dbxread.c (read_dbx_symtab): Update.
13095 * psympriv.h (psymbol_placement): New enum.
13096 (add_psymbol_to_list): Update.
13097
13098 2019-01-10 Tom Tromey <tom@tromey.com>
13099
13100 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
13101 static_psymbols parameters.
13102 (scan_xcoff_symtab): Update.
13103 * psymtab.c (start_psymtab_common): Remove global_psymbols and
13104 static_psymbols parameters.
13105 * psympriv.h (start_psymtab_common): Update.
13106 * mdebugread.c (parse_partial_symbols): Update.
13107 * dwarf2read.c (create_partial_symtab): Update.
13108 * dbxread.c (read_dbx_symtab): Update.
13109 (start_psymtab): Remove global_psymbols and static_psymbols
13110 parameters.
13111
13112 2019-01-10 Tom Tromey <tom@tromey.com>
13113
13114 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
13115 * psymtab.c (allocate_psymtab): Add comment.
13116 * psympriv.h (allocate_psymtab): Add comment.
13117 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
13118 initializations.
13119 * dbxread.c (dbx_end_psymtab): Remove some initializations.
13120
13121 2019-01-10 Tom Tromey <tom@tromey.com>
13122
13123 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13124 Don't declare.
13125 * mipsread.c: Include mdebugread.h.
13126 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13127 Declare.
13128 * elfread.c: Include mdebugread.h.
13129
13130 2019-01-09 Tom Tromey <tom@tromey.com>
13131
13132 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
13133 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
13134 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
13135 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
13136 (psym_lookup_symbol, psym_find_last_source_symtab)
13137 (psym_forget_cached_source_info, psym_print_stats)
13138 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
13139 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
13140 (psym_map_matching_symbols, psym_expand_symtabs_matching)
13141 (psym_find_compunit_symtab_by_address)
13142 (maintenance_print_psymbols, maintenance_info_psymtabs)
13143 (maintenance_check_psymtabs): Use ranged for.
13144 * psymtab.h (class objfile_psymtabs): New.
13145 (require_partial_symbols): Return objfile_psymtabs.
13146 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
13147
13148 2019-01-09 Tom Tromey <tom@tromey.com>
13149
13150 * symfile.c (overlay_invalidate_all, find_pc_overlay)
13151 (find_pc_mapped_section, list_overlays_command)
13152 (map_overlay_command, unmap_overlay_command)
13153 (simple_overlay_update): Use all_objfiles.
13154 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
13155 * printcmd.c (info_symbol_command): Use all_objfiles.
13156 * objfiles.h (ALL_OBJSECTIONS): Remove.
13157 * maint.c (maintenance_translate_address): Use all_objfiles.
13158 * gcore.c (gcore_create_callback): Use all_objfiles.
13159 (objfile_find_memory_regions): Likewise.
13160
13161 2019-01-09 Tom Tromey <tom@tromey.com>
13162
13163 * symtab.c (find_line_symtab, info_sources_command)
13164 (make_source_files_completion_list): Use objfile_compunits.
13165 * source.c (select_source_symtab): Use objfile_compunits.
13166 * objfiles.h (struct objfile): Update comment.
13167 (ALL_OBJFILES): Remove.
13168 (ALL_FILETABS): Remove.
13169 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
13170 objfile_compunits.
13171
13172 2019-01-09 Tom Tromey <tom@tromey.com>
13173
13174 * symmisc.c (print_objfile_statistics, dump_objfile)
13175 (maintenance_print_symbols): Use compunit_filetabs.
13176 * source.c (forget_cached_source_info_for_objfile): Use
13177 compunit_filetabs.
13178 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
13179 (ALL_FILETABS): Use compunit_filetabs.
13180 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
13181 * coffread.c (coff_symtab_read): Use compunit_filetabs.
13182
13183 2019-01-09 Tom Tromey <tom@tromey.com>
13184
13185 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
13186 (compunit_filetabs): New.
13187 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
13188 compunit_filetabs.
13189 (info_sources_command, make_source_files_completion_list): Remove
13190 declaration.
13191 * symmisc.c (print_objfile_statistics, dump_objfile)
13192 (maintenance_print_symbols): Remove declaration.
13193 (maintenance_info_symtabs): Use compunit_filetabs.
13194 (maintenance_info_line_tables): Likewise.
13195 * source.c (select_source_symtab): Change local variable name.
13196 (forget_cached_source_info_for_objfile): Remove declaration.
13197 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
13198 * objfiles.c (objfile_relocate1): Remove declaration.
13199 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13200 declaration.
13201 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
13202 * coffread.c (coff_symtab_read): Remove declaration.
13203 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
13204 compunit_filetabs.
13205
13206 2019-01-09 Tom Tromey <tom@tromey.com>
13207
13208 * symtab.c (lookup_objfile_from_block)
13209 (find_pc_sect_compunit_symtab, search_symbols)
13210 (default_collect_symbol_completion_matches_break_on): Use
13211 objfile_compunits.
13212 * objfiles.h (ALL_COMPUNITS): Remove.
13213 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
13214 * cp-support.c (add_symbol_overload_list_qualified): Use
13215 objfile_compunits.
13216 * ada-lang.c (ada_collect_symbol_completion_matches)
13217 (ada_add_global_exceptions): Use objfile_compunits.
13218
13219 2019-01-09 Tom Tromey <tom@tromey.com>
13220
13221 * source.c (select_source_symtab)
13222 (forget_cached_source_info_for_objfile): Remove declaration.
13223 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13224 declaration.
13225 * maint.c (count_symtabs_and_blocks): Remove declaration.
13226 * cp-support.c (add_symbol_overload_list_qualified): Remove
13227 declaration.
13228 * coffread.c (coff_symtab_read): Remove declaration.
13229 * symtab.c (lookup_symbol_in_objfile_symtabs)
13230 (basic_lookup_transparent_type_1): Use objfile_compunits.
13231 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
13232 (info_sources_command, search_symbols)
13233 (default_collect_symbol_completion_matches_break_on)
13234 (make_source_files_completion_list): Remove declaration.
13235 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
13236 (ada_collect_symbol_completion_matches)
13237 (ada_add_global_exceptions): Remove declaration.
13238 * linespec.c (iterate_over_all_matching_symtabs): Use
13239 objfile_compunits.
13240 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
13241 (class objfile_compunits): New.
13242 (ALL_COMPUNITS): Use objfile_compunits.
13243 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
13244 (maintenance_check_symtabs, maintenance_info_line_tables): Use
13245 objfile_compunits.
13246 * objfiles.c (objfile_relocate1): Use objfile_compunits.
13247
13248 2019-01-09 Tom Tromey <tom@tromey.com>
13249
13250 * symtab.c (search_symbols)
13251 (default_collect_symbol_completion_matches_break_on): Use
13252 objfile_msymbols.
13253 * ada-lang.c (ada_lookup_simple_minsym)
13254 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
13255 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
13256 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
13257 objfile_msymbols.
13258 * coffread.c (coff_symfile_read): Use objfile_msymbols.
13259 * symmisc.c (dump_msymbols): Use objfile_msymbols.
13260 * objc-lang.c (find_methods): Use objfile_msymbols.
13261 (info_selectors_command, info_classes_command): Likewise.
13262 * stabsread.c (scan_file_globals): Use objfile_msymbols.
13263 * objfiles.h (class objfile_msymbols): New.
13264 (ALL_OBJFILE_MSYMBOLS): Remove.
13265 (ALL_MSYMBOLS): Remove.
13266
13267 2019-01-09 Tom Tromey <tom@tromey.com>
13268
13269 * common/next-iterator.h (next_adapter): Add Iterator template
13270 parameter.
13271 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
13272 (class all_objfiles_safe): New.
13273 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
13274 * objfiles.c (put_objfile_before): Update comment.
13275 (add_separate_debug_objfile): Likewise.
13276 (free_all_objfiles): Use all_objfiles_safe.
13277 (objfile_purge_solibs): Likewise.
13278
13279 2019-01-09 Tom Tromey <tom@tromey.com>
13280
13281 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13282 (expand_symtab_containing_pc, lookup_static_symbol)
13283 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
13284 (find_symbol_at_address, find_line_symtab, find_main_name): Use
13285 all_objfiles.
13286 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
13287 * breakpoint.c (create_overlay_event_breakpoint)
13288 (create_longjmp_master_breakpoint)
13289 (create_std_terminate_master_breakpoint)
13290 (create_exception_master_breakpoint): Use all_objfiles.
13291 * linux-thread-db.c (try_thread_db_load_from_pdir)
13292 (has_libpthread): Use all_objfiles.
13293 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
13294 * linespec.c (iterate_over_all_matching_symtabs)
13295 (search_minsyms_for_name): Use all_objfiles.
13296 * maint.c (maintenance_info_sections): Use all_objfiles.
13297 * main.c (captured_main_1): Use all_objfiles.
13298 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
13299 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
13300 * guile/scm-pretty-print.c
13301 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
13302 * solib-spu.c (append_ocl_sos): Use all_objfiles.
13303 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
13304 (maintenance_print_msymbols): Use all_objfiles.
13305 * source.c (select_source_symtab): Use all_objfiles.
13306 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
13307 * symfile.c (remove_symbol_file_command)
13308 (expand_symtabs_matching, map_symbol_filenames): Use
13309 all_objfiles.
13310 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
13311 all_objfiles.
13312 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
13313 * objc-lang.c (find_methods): Use all_objfiles.
13314 * objfiles.c (have_partial_symbols, have_full_symbols)
13315 (have_minimal_symbols, qsort_cmp)
13316 (default_iterate_over_objfiles_in_search_order): Use
13317 all_objfiles.
13318 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
13319 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
13320 (maintenance_check_psymtabs): Use all_objfiles.
13321 (ALL_PSYMTABS): Remove.
13322 * compile/compile-object-run.c (do_module_cleanup): Use
13323 all_objfiles.
13324 * blockframe.c (find_pc_partial_function): Use all_objfiles.
13325 * cp-support.c (add_symbol_overload_list_qualified): Use
13326 all_objfiles.
13327 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13328 Use all_objfiles.
13329 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
13330 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
13331 all_objfiles.
13332 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13333 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
13334 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13335 Uses all_objfiles.
13336 * solib.c (solib_read_symbols): Use all_objfiles
13337
13338 2019-01-09 Tom Tromey <tom@tromey.com>
13339
13340 * probe.c (parse_probes_in_pspace): Use all_objfiles.
13341 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
13342 all_objfiles.
13343 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
13344 * symmisc.c (print_symbol_bcache_statistics)
13345 (print_objfile_statistics, maintenance_print_objfiles)
13346 (maintenance_info_symtabs, maintenance_check_symtabs)
13347 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
13348 all_objfiles.
13349 * source.c (forget_cached_source_info): Use all_objfiles.
13350 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
13351 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13352 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
13353 * objfiles.c (update_section_map): Use all_objfiles.
13354 (shared_objfile_contains_address_p): Likewise.
13355 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
13356 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
13357
13358 2019-01-09 Tom Tromey <tom@tromey.com>
13359
13360 * common/next-iterator.h: New file.
13361 * objfiles.h (class all_objfiles): New.
13362 (struct objfile_iterator): New.
13363
13364 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13365
13366 * NEWS: Move the description of the changed "frame", "select-frame",
13367 and "info frame" commands to the Changed commands section.
13368
13369 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
13370
13371 * gdbtypes.c (check_stub_method_group): Remove handling of old
13372 mangling schemes.
13373 * linespec.c (find_methods): Likewise.
13374 * stabsread.c (read_member_functions): Likewise.
13375 * valops.c (search_struct_method): Likewise.
13376 (value_struct_elt_for_reference): Likewise.
13377 * NEWS: Mention this change.
13378
13379 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13380
13381 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
13382 print_source_lines.
13383 * source.c (print_source_lines_base): Update line number check.
13384 (print_source_lines): New function.
13385 (source_lines_range::source_lines_range): New function.
13386 * source.h (class source_lines_range): New class.
13387 (print_source_lines): New declaration.
13388
13389 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13390
13391 * linespec.c (linespec_state_destructor): Free self->canonical_names.
13392
13393 2019-01-08 Tom Tromey <tom@tromey.com>
13394 Simon Marchi <simon.marchi@ericsson.com>
13395
13396 PR gdb/24060
13397 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
13398 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
13399 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13400 * f-exp.y (DOLLAR_VARIABLE): Likewise.
13401 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
13402 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13403
13404 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13405
13406 * source.c (select_source_symtab): Move header comment to
13407 declaration in source.h.
13408 (forget_cached_source_info_for_objfile): Likewise.
13409 (forget_cached_source_info): Likewise.
13410 (identify_source_line): Likewise.
13411 * source.h (identify_source_line): Move declaration from symtab.h
13412 and add comment from source.c
13413 (print_source_lines): Likewise.
13414 (forget_cached_source_info_for_objfile): Likewise.
13415 (forget_cached_source_info): Likewise.
13416 (select_source_symtab): Likewise.
13417 (enum print_source_lines_flag): Move definition from symtab.h.
13418 * symtab.h (identify_source_line): Move declaration to source.h.
13419 (print_source_lines): Likewise.
13420 (forget_cached_source_info_for_objfile): Likewise.
13421 (forget_cached_source_info): Likewise.
13422 (select_source_symtab): Likewise.
13423 (enum print_source_lines_flag): Move definition to source.h.
13424 * tui/tui-hooks.c: Add 'source.h' include.
13425
13426 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13427
13428 * source.c (print_source_lines_base): Handle requests to print
13429 reverse line number sequences, and guard against empty lines
13430 string.
13431
13432 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13433
13434 * source.c (print_source_lines_base): Fix skip of '\r' if next
13435 character is '\n'.
13436
13437 2019-01-06 Tom Tromey <tom@tromey.com>
13438
13439 * c-exp.y (struct c_parse_state) <macro_original_text,
13440 expansion_obstack>: New member.
13441 (macro_original_text, expansion_obstack): Remove globals.
13442 (scan_macro_expansion, scanning_macro_expansion)
13443 (finished_macro_expansion): Update.
13444 (scan_macro_cleanup): Remove.
13445 (yylex, c_parse): Update.
13446
13447 2019-01-06 Tom Tromey <tom@tromey.com>
13448
13449 * c-exp.y (struct c_parse_state) <strings>: New member.
13450 (operator_stoken): Update.
13451
13452 2019-01-06 Tom Tromey <tom@tromey.com>
13453
13454 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
13455 (union type_stack_elt) <typelist_val>: Now a pointer to
13456 std::vector.
13457 (type_stack_cleanup): Don't declare.
13458 (push_typelist): Update.
13459 * parse.c (pop_typelist): Return a std::vector.
13460 (push_typelist): Take a std::vector.
13461 (follow_types): Update. Do not free args.
13462 (type_stack_cleanup): Remove.
13463 * c-exp.y (struct c_parse_state): New.
13464 (cpstate): New global.
13465 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
13466 (nonempty_typelist): Update.
13467 (func_mod): Create a new vector.
13468 (c_parse): Create a c_parse_state.
13469 (check_parameter_typelist): Do not delete params.
13470 (function_method): Update. Do not delete type_list.
13471
13472 2019-01-06 Tom Tromey <tom@tromey.com>
13473
13474 PR gdb/28155:
13475 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
13476 check_typedef.
13477 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
13478 (print_return_value): Likewise.
13479
13480 2019-01-05 Tom Tromey <tom@tromey.com>
13481
13482 * contrib/cleanup_check.py: Remove.
13483 * contrib/gcc-with-excheck: Remove.
13484 * contrib/exsummary.py: Remove.
13485 * contrib/excheck.py: Remove.
13486
13487 2019-01-05 Joel Brobecker <brobecker@adacore.com>
13488
13489 * thread.c (delete_thread_1): Add gdb_assert that THR is not
13490 NULL. Initialize tpprev to NULL instead of assigning it
13491 to NULL on the next statement.
13492 * windows-nat.c (windows_delete_thread): Remove check for
13493 main_thread_id before printing thread exit notifications.
13494 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
13495 Remove thread ID check against main_thread_id.
13496 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
13497 windows_delete_thread.
13498 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
13499
13500 2019-01-04 Tom Tromey <tom@tromey.com>
13501
13502 * compile/compile.c (_initialize_compile): Use upper case for
13503 metasyntactic variables.
13504 * symmisc.c (_initialize_symmisc): Use upper case for
13505 metasyntactic variables.
13506 * psymtab.c (_initialize_psymtab): Use upper case for
13507 metasyntactic variables.
13508 * demangle.c (demangle_command): Use upper case for metasyntactic
13509 variables.
13510 (_initialize_demangler): Likewise.
13511 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
13512 variables.
13513
13514 2019-01-03 Tom Tromey <tom@tromey.com>
13515
13516 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
13517
13518 2019-01-03 Tom Tromey <tom@tromey.com>
13519
13520 * python/py-symtab.c (salpy_str): Update.
13521 (struct salpy_sal_object) <symtab>: Now a PyObject.
13522 (salpy_dealloc): Update.
13523 (del_objfile_sal): Use gdbpy_ref.
13524
13525 2019-01-03 Tom Tromey <tom@tromey.com>
13526
13527 * python/py-type.c (convert_field): Use new_reference. Return
13528 gdbpy_ref.
13529 (make_fielditem): Return gdbpy_ref.
13530 (typy_fields): Update.
13531 (typy_getitem): Update.
13532 (field_name): Return gdbpy_ref. Use new_reference.
13533 (typy_iterator_iternext): Update.
13534
13535 2019-01-03 Tom Tromey <tom@tromey.com>
13536
13537 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
13538
13539 2019-01-03 Tom Tromey <tom@tromey.com>
13540
13541 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
13542 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
13543 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
13544 (pspy_set_frame_filters, pspy_set_frame_unwinders)
13545 (pspy_set_type_printers): Likewise.
13546 * python/py-function.c (fnpy_init): Use gdbpy_ref.
13547 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
13548 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
13549 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
13550 (objfpy_set_type_printers): Likewise.
13551
13552 2019-01-03 Tom Tromey <tom@tromey.com>
13553
13554 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
13555 (gdbpy_print_stack): Use gdbpy_err_fetch.
13556 * python/python-internal.h (class gdbpy_err_fetch): New class.
13557 (class gdbpy_enter) <m_error_type, m_error_value,
13558 m_error_traceback>: Remove.
13559 <m_error>: New member.
13560 (gdbpy_exception_to_string): Don't declare.
13561 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
13562 * python/py-value.c (convert_value_from_python): Use
13563 gdbpy_err_fetch.
13564 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
13565 gdbpy_exception_to_string.
13566 (gdbpy_handle_exception): Use gdbpy_err_fetch.
13567 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
13568 gdbpy_err_fetch.
13569
13570 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13571
13572 * linux-nat.c (delete_lwp_cleanup): Delete.
13573 (struct lwp_deleter): New struct.
13574 (lwp_info_up): New typedef.
13575 (linux_nat_target::follow_fork): Delete cleanup, and make use of
13576 lwp_info_up.
13577
13578 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13579
13580 * linux-fork.c (class scoped_switch_fork_info): New class.
13581 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
13582
13583 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13584
13585 * valops.c (find_overload_match): Remove use of null_cleanup, and
13586 calls to do_cleanups.
13587
13588 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13589
13590 * compile/compile-cplus-types.c
13591 (compile_cplus_instance::decl_name): Handle changes to
13592 cp_func_name.
13593 * cp-support.c (cp_func_name): Update header comment, update
13594 return type.
13595 * cp-support.h (cp_func_name): Update return type in declaration.
13596 * valops.c (find_overload_match): Move temp_func local to top
13597 level of function and change its type. Use temp_func to hold and
13598 delete temporary string obtained from cp_func_name.
13599
13600 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13601
13602 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
13603 gdb::char_vector, remove cleanup, and update uses of `msg`.
13604
13605 2019-01-03 Jim Wilson <jimw@sifive.com>
13606
13607 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
13608
13609 2019-01-02 Tom Tromey <tom@tromey.com>
13610
13611 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
13612 (tdesc_parse_xml): Remove cleanups.
13613 * target-descriptions.h (make_cleanup_free_target_description):
13614 Don't declare.
13615 (target_desc_deleter): New struct.
13616 (target_desc_up): New typedef.
13617 * target-descriptions.c (target_desc_deleter::operator()): Rename
13618 from free_target_description.
13619 (make_cleanup_free_target_description): Remove.
13620
13621 2019-01-02 Tom Tromey <tom@tromey.com>
13622
13623 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
13624 constructor, destructor.
13625 (linespec_parser): Remove typedef.
13626 (~linespec_parser): Rename from linespec_parser_delete.
13627 (linespec_lex_to_end, linespec_complete_label)
13628 (linespec_complete): Update.
13629 (decode_line_full): Remove cleanups.
13630 (decode_line_1): Update.
13631
13632 2019-01-02 Tom Tromey <tom@tromey.com>
13633
13634 * python/python-internal.h (inferior_to_inferior_object): Change
13635 return type.
13636 * python/py-exitedevent.c (create_exited_event_object): Update.
13637 * python/py-inferior.c (inferior_to_inferior_object): Return
13638 gdbpy_ref.
13639 (python_new_inferior, python_inferior_deleted)
13640 (thread_to_thread_object, delete_thread_object)
13641 (build_inferior_list, gdbpy_selected_inferior): Update.
13642 * python/py-infthread.c (create_thread_object): Update. Also fail
13643 if inferior_to_inferior_object fails.
13644
13645 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
13646
13647 * inferior.h (class inferior) <displaced_step_state>: New field.
13648 * infrun.h (struct displaced_step_state): Move here from
13649 infrun.c. Initialize fields, add constructor.
13650 <inf>: Remove field.
13651 <reset>: New method.
13652 * infrun.c (struct displaced_step_inferior_state): Move to
13653 infrun.h.
13654 (displaced_step_inferior_states): Remove.
13655 (get_displaced_stepping_state): Adust.
13656 (displaced_step_in_progress_any_inferior): Adjust.
13657 (displaced_step_in_progress_thread): Adjust.
13658 (displaced_step_in_progress): Adjust.
13659 (add_displaced_stepping_state): Remove.
13660 (get_displaced_step_closure_by_addr): Adjust.
13661 (remove_displaced_stepping_state): Remove.
13662 (infrun_inferior_exit): Call displaced_step_state.reset.
13663 (use_displaced_stepping): Don't check for NULL.
13664 (displaced_step_prepare_throw): Call
13665 get_displaced_stepping_state.
13666 (displaced_step_fixup): Don't check for NULL.
13667 (prepare_for_detach): Don't check for NULL.
13668
13669 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13670
13671 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
13672 in case of call that did not complete.
13673
13674 2019-01-02 Andrey Utkin <autkin@undo.io>
13675
13676 * symfile.c (find_separate_debug_file): Fix search of debug files for
13677 remote debuggee.
13678
13679 2019-01-02 Tom Tromey <tom@tromey.com>
13680
13681 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
13682 indentation.
13683 * python/py-frame.c (frapy_older): Remove cast.
13684 (frapy_newer): Likewise.
13685 * python/py-breakpoint.c (local_setattro): Remove cast.
13686 * python/py-arch.c (archpy_name): Remove local variable.
13687 * python/py-type.c (gdbpy_lookup_type): Remove cast.
13688
13689 2019-01-02 Joel Brobecker <brobecker@adacore.com>
13690
13691 * unittests/basic_string_view/element_access/char/empty.cc:
13692 Fix year range in copyright header.
13693
13694 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
13695
13696 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
13697 Delete.
13698 <operator==>: Update with for removed field.
13699 <hash>: Likewise.
13700 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
13701 <isa_features>: ...this.
13702 <abi_features>: New field.
13703 (riscv_isa_flen): Update comment.
13704 (riscv_abi_xlen): New declaration.
13705 (riscv_abi_flen): New declaration.
13706 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
13707 isa_features.
13708 (riscv_abi_xlen): New function.
13709 (riscv_isa_flen): Update to get answer from isa_features.
13710 (riscv_abi_flen): New function.
13711 (riscv_has_fp_abi): Update to get answer from abi_features.
13712 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
13713 xlen and flen.
13714 (riscv_call_info) <xlen, flen>: Update comment.
13715 (riscv_call_arg_struct): Remove invalid assertions
13716 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
13717 is removed.
13718 (riscv_gdbarch_init): Gather isa features and abi features
13719 separately, ensure both match on the gdbarch when reusing an old
13720 gdbarch. Relax an error check to allow 32-bit abi float to run on
13721 a target with 64-bit float hardware.
13722
13723 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13724
13725 * source.c (search_command_helper): Stop reverse search
13726 when line 1 has been searched.
13727
13728 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13729
13730 * record-full.c (record_full_base_target::close): Rewrite
13731 record_full_core_buf_list free logic.
13732
13733 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13734
13735 * break-catch-syscall.c (print_one_catch_syscall): xfree
13736 the last text.
13737
13738 2019-01-01 Joel Brobecker <brobecker@adacore.com>
13739
13740 * top.c (print_gdb_version): Update Copyright year in version
13741 message.
13742
13743 2019-01-01 Joel Brobecker <brobecker@adacore.com>
13744
13745 Update copyright year range in all GDB files.
13746
13747 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
13748
13749 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
13750
13751 For older changes see ChangeLog-2018.
13752 \f
13753 Local Variables:
13754 mode: change-log
13755 left-margin: 8
13756 fill-column: 74
13757 version-control: never
13758 coding: utf-8
13759 End:
13760
This page took 0.301417 seconds and 5 git commands to generate.