Mention PR breakpoints/25011 in ChangeLog entry
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * breakpoint.c: Remove some includes: continuations.h, skip.h,
4 mi/mi-main.h, readline/readline.h, readline/history.h. Add
5 include: readline/tilde.h.
6
7 2019-10-12 Christian Biesinger <cbiesinger@google.com>
8
9 * remote.c (remote_target::get_trace_status): Remove declaration of
10 trace_regblock_size.
11
12 2019-10-12 Christian Biesinger <cbiesinger@google.com>
13
14 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
15 (show_user): Remove declaration of cmdlist.
16 * cli/cli-cmds.h (max_user_call_depth): Declare.
17 * cli/cli-script.c (execute_user_command): Remove declaration
18 of max_user_call_depth.
19
20 2019-10-11 Jim Wilson <jimw@sifive.com>
21
22 * gdbsupport/print-utils.h (pulongest): Fix comment.
23 (plongest): Likewise.
24 (phex): Add missing comment, mention leading zeros.
25 (phex_nz): Add mention of no leading zeros to comment.
26
27 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
28 plongest instead of unsigned long long cast.
29
30 2019-10-10 Christian Biesinger <cbiesinger@google.com>
31
32 * main.c (captured_main_1): Include gdbtk.h and remove declarations
33 for external_editor_command and gdbtk_test.
34
35 2019-10-10 Christian Biesinger <cbiesinger@google.com>
36
37 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
38 * varobj.c (varobjdebug): Move comment to...
39 * varobj.h (varobjdebug): ...here, and declare.
40
41 2019-10-09 Tom Tromey <tom@tromey.com>
42
43 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
44 erase_data_content.
45
46 2019-10-09 Tom Tromey <tom@tromey.com>
47
48 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
49 * tui/tui-stack.c (tui_locator_window::rerender): Update.
50 * tui/tui-command.c (tui_cmd_window::resize)
51 (tui_refresh_cmd_win): Update.
52 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
53 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
54 * tui/tui-data.c (~tui_gen_win_info): Remove.
55 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
56 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
57 (tui_redisplay_readline, tui_mld_flush)
58 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
59 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
60 (tui_data_window::erase_data_content)
61 (tui_data_item_window::rerender)
62 (tui_data_item_window::refresh_window): Update.
63 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
64 (box_win, tui_gen_win_info::make_window)
65 (tui_gen_win_info::make_visible): Update.
66 (tui_delete_win): Remove.
67 * tui/tui-winsource.c
68 (tui_source_window_base::do_erase_source_content): Update.
69 (tui_show_source_line, tui_source_window_base::update_tab_width)
70 (tui_source_window_base::update_exec_info): Update.
71 * tui/tui-data.h (struct curses_deleter): New.
72 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
73 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
74
75 2019-10-09 Tom Tromey <tom@tromey.com>
76
77 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
78
79 2019-10-09 Tom Tromey <tom@tromey.com>
80
81 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
82 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
83
84 2019-10-09 Tom Tromey <tom@tromey.com>
85
86 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
87 window height directly.
88 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
89 declare.
90 * tui/tui-layout.c (tui_default_win_height): Remove.
91 (tui_default_win_viewport_height): Remove.
92
93 2019-10-09 Tom Tromey <tom@tromey.com>
94
95 * tui/tui.h: Remove comments.
96
97 2019-10-09 Tom de Vries <tdevries@suse.de>
98
99 * python/lib/gdb/printer/bound_registers.py: Use
100 '^builtin_type_bound128' as regexp argument for
101 add_builtin_pretty_printer.
102
103 2019-10-09 Christian Biesinger <cbiesinger@google.com>
104
105 * guile/guile.c (guile_extension_script_ops): Remove forward
106 declaration and mark as static.
107 (guile_script_ops): Likewise.
108 (extension_language_guile): Move further down in the file so
109 it can reference the definitions for guile_{extension_,}script_ops.
110
111 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
112
113 * s390-tdep.c (390_process_record): Handle new arch13 instructions
114 except SORTL, DFLTCC, and KDSA.
115
116 2019-10-08 Tom Tromey <tromey@adacore.com>
117
118 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
119 (struct safe_symbol_file_add_args): Remove.
120
121 2019-10-08 Tom Tromey <tromey@adacore.com>
122
123 * windows-nat.c: Don't include buildsym-legacy.h.
124
125 2019-10-08 Tom Tromey <tromey@adacore.com>
126
127 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
128
129 2019-10-08 Christian Biesinger <cbiesinger@google.com>
130
131 * gdbtypes.c (overload_debug): Move comment to header.
132 * gdbtypes.h (overload_debug): Declare.
133 * valops.c: Remove declaration of overload_debug, instead
134 include gdbtypes.h.
135
136 2019-10-08 Christian Biesinger <cbiesinger@google.com>
137
138 * language.c (show_language_command): Pass lang_frame_mismatch_warn
139 through _().
140 (lang_frame_mismatch_warn): Make const, mark with N_(), and
141 move comment...
142 * language.h (lang_frame_mismatch_warn): ... here. Also add
143 declaration.
144 * top.c (lang_frame_mismatch_warn): Remove declaration.
145 (check_frame_language_change): Pass lang_frame_mismatch_warn
146 through _().
147
148 2019-10-07 Christian Biesinger <cbiesinger@google.com>
149
150 * c-lang.h (vtbl_ptr_name): Declare.
151 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
152 it from the header.
153 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
154
155 2019-10-07 Christian Biesinger <cbiesinger@google.com>
156
157 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
158 gdb_static_assert.
159
160 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
161
162 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
163 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
164 * ctfread.c: New file.
165 * ctfread.h: New file.
166 * elfread.c: Include ctfread.h.
167 (struct elfinfo text_p): New member ctfsect.
168 (elf_locate_sections): Mark CTF section.
169 (elf_symfile_read): Call elfctf_build_psymtabs.
170 * Makefile.in (LIBCTF): Add.
171 (CLIBS): Use it.
172 (CDEPS): Likewise.
173 (DIST): Add ctfread.c.
174
175 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
176
177 * ctfread.c (struct nextfield): Renamed to ...
178 (struct ctf_nextfield): ... this.
179 (struct field_info): Renamed to ...
180 (strut ctf_field_info): ... this.
181 (attach_fields_to_type): Update for renamed structures.
182 (ctf_add_member_cb): Likewise.
183 (ctf_add_enum_member_cb): Likewise.
184 (process_struct_members): Likewise.
185 (process_enum_type): Likewise.
186
187 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
188
189 * tracectf.h: Rename, was ctf.h.
190 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
191 * tracefile.c: Likewise.
192 * tracepoint.c: Remove unused include ctf.h.
193 * mi/mi-main.c: Likewise.
194 * Makefile.in Replace ctf.c with tracectf.c.
195
196 2019-10-06 Joel Brobecker <brobecker@adacore.com>
197
198 * version.in: Change version number to "9.0.50.DATE-git".
199
200 2019-10-03 Tom Tromey <tom@tromey.com>
201
202 PR rust/24976:
203 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
204
205 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
206
207 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
208 cp_search_name_hash.
209 * NEWS: Add entry about nested function support.
210
211 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
212 Andrew Burgess <andrew.burgess@embecosm.com>
213
214 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
215 for nested static variables when searchin VAR_DOMAIN.
216 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
217 global scope, update comment.
218 (add_partial_subprogram): Call add_partial_subprogram recursively
219 for nested subroutines when processinng Fortran.
220 (load_partial_dies): Process the child entities of a subprogram
221 when processing Fortran.
222 (partial_die_parent_scope): Handle building scope
223 for Fortran nested functions.
224 (process_die): Record that nested functions have a scope.
225 (new_symbol): Always record Fortran subprograms on the global
226 symbol list.
227 (determine_prefix): How to build the prefix for Fortran
228 subprograms.
229
230 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
231
232 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
233 have just sent the thread a SIGSTOP and are waiting for it to
234 arrive.
235
236 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
237
238 * btrace.c (btrace_add_pc): Remove whitespace before the template
239 parameter in 'std::vector <...>'.
240 (parse_xml_btrace_block): Likewise.
241 (btrace_maint_decode_pt): Likewise.
242 (btrace_maint_update_packets): Likewise.
243 (btrace_maint_print_packets): Likewise.
244 * btrace.h (struct btrace_maint_info): Likewise.
245 * dwarf2read.c (struct type_unit_group): Likewise.
246 (build_type_psymtabs_reader): Likewise.
247 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
248 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
249 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
250
251 2019-10-03 Tom de Vries <tdevries@suse.de>
252
253 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
254 the first line of the help text for set/show style metadata.
255
256 2019-10-02 Tom Tromey <tromey@adacore.com>
257
258 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
259 * gdbsupport/common-inferior.c: New file.
260 * infcmd.c (startup_with_shell): Don't define.
261 * nat/fork-inferior.h (startup_with_shell): Don't declare.
262 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
263 * inferior.h (startup_with_shell): Don't declare.
264
265 2019-10-02 Christian Biesinger <cbiesinger@google.com>
266
267 * gdbsupport/gdb_assert.h: Include errors.h.
268 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
269
270 2019-10-02 Tom Tromey <tromey@adacore.com>
271
272 * NEWS: Add $_ada_exception entry.
273 * ada-lang.c (struct ada_catchpoint): Add constructor.
274 <m_kind>: New member.
275 (allocate_location_exception, re_set_exception): Remove
276 "ex" parameter.
277 (should_stop_exception): Compute $_ada_exception.
278 (check_status_exception, print_it_exception)
279 (print_one_exception, print_mention_exception): Remove
280 "ex" parameter.
281 (allocate_location_catch_exception, re_set_catch_exception)
282 (check_status_exception, print_it_catch_exception)
283 (print_one_catch_exception, print_mention_catch_exception)
284 (print_recreate_catch_exception)
285 (allocate_location_catch_exception_unhandled)
286 (re_set_catch_exception_unhandled)
287 (check_status_exception, print_it_catch_exception_unhandled)
288 (print_one_catch_exception_unhandled)
289 (print_mention_catch_exception_unhandled)
290 (print_recreate_catch_exception_unhandled)
291 (allocate_location_catch_assert, re_set_catch_assert)
292 (check_status_assert, print_it_catch_assert)
293 (print_one_catch_assert, print_mention_catch_assert)
294 (print_recreate_catch_assert)
295 (allocate_location_catch_handlers, re_set_catch_handlers)
296 (check_status_handlers, print_it_catch_handlers)
297 (print_one_catch_handlers, print_mention_catch_handlers)
298 (print_recreate_catch_handlers): Remove.
299 (create_ada_exception_catchpoint): Update.
300 (initialize_ada_catchpoint_ops): Update.
301
302 2019-10-02 Tom Tromey <tromey@adacore.com>
303
304 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
305 (create_excep_cond_exprs): Simplify exception string computation.
306 (ada_exception_catchpoint_cond_string): Likewise.
307
308 2019-10-02 Tom Tromey <tromey@adacore.com>
309
310 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
311 * ada-lang.c (lesseq_defined_than): Handle
312 LOC_STATIC.
313 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
314 parameter.
315 (dwarf2_has_info): Likewise.
316 (new_symbol): Set maybe_copied on symbol when
317 appropriate.
318 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
319 parameter.
320 <can_copy>: New member.
321 * elfread.c (record_minimal_symbol): Set maybe_copied
322 on symbol when appropriate.
323 (elf_symfile_read): Update call to dwarf2_has_info.
324 * minsyms.c (lookup_minimal_symbol_linkage): New
325 function.
326 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
327 * symtab.c (get_symbol_address, get_msymbol_address):
328 New functions.
329 * symtab.h (get_symbol_address, get_msymbol_address):
330 Declare.
331 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
332 maybe_copied.
333 (struct symbol, struct minimal_symbol) <maybe_copied>:
334 New member.
335
336 2019-10-02 Tom Tromey <tromey@adacore.com>
337
338 * source.c (struct current_source_location): New.
339 (current_source_key): New global.
340 (current_source_symtab, current_source_line)
341 (current_source_pspace): Remove.
342 (get_source_location): New function.
343 (get_current_source_symtab_and_line)
344 (set_default_source_symtab_and_line)
345 (set_current_source_symtab_and_line)
346 (clear_current_source_symtab_and_line, select_source_symtab)
347 (info_source_command, print_source_lines_base)
348 (info_line_command, search_command_helper, _initialize_source):
349 Update.
350
351 2019-10-02 Tom Tromey <tromey@adacore.com>
352
353 * source.c (select_source_symtab): Don't call
354 decode_line_with_current_source.
355
356 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
357
358 * symtab.c (lookup_global_symbol): Search global block.
359
360 2019-10-02 Tom Tromey <tromey@adacore.com>
361
362 * coffread.c (process_coff_symbol): Update.
363 * dwarf2read.c (var_decode_location, new_symbol): Update.
364 * mdebugread.c (parse_symbol): Update.
365 * objfiles.c (relocate_one_symbol): Update.
366 * stabsread.c (define_symbol, fix_common_block)
367 (scan_file_globals): Update.
368 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
369 (SET_SYMBOL_VALUE_ADDRESS): New macro.
370 * xcoffread.c (process_xcoff_symbol): Update.
371
372 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
373
374 * MAINTAINERS: Update my email address.
375
376 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
377
378 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
379 std::vector.
380 (build_type_psymtabs_reader): Update for std::vector.
381 (build_type_psymtab_dependencies): Likewise.
382 * dwarf2read.h: Remove use of DEF_VEC_P.
383 (typedef sig_type_ptr): Delete.
384
385 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
386
387 * btrace.c (btrace_maint_clear): Update to handle change from VEC
388 to std::vector.
389 (btrace_maint_decode_pt): Likewise, and move allocation of the
390 vector outside of the loop.
391 (btrace_maint_update_packets): Update to handle change from VEC to
392 std::vector.
393 (btrace_maint_print_packets): Likewise.
394 (maint_info_btrace_cmd): Likewise.
395 * btrace.h: Remove use of DEF_VEC_O.
396 (typedef btrace_pt_packet_s): Delete.
397 (struct btrace_maint_info) <packets>: Change fromm VEC to
398 std::vector.
399 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
400
401 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
402
403 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
404 make accesses into the vector constant references.
405 (btrace_add_pc): Update for std::vector.
406 (btrace_stitch_bts): Likewise.
407 (parse_xml_btrace_block): Likewise.
408 (btrace_maint_update_packets): Likewise.
409 (btrace_maint_print_packets): Likewise.
410 (maint_info_btrace_cmd): Likewise.
411 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
412 std::vector.
413 (btrace_data::empty): Likewise.
414 (btrace_data_append): Likewise.
415 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
416 (typedef btrace_block_s): Delete.
417 (struct btrace_block): Add constructor.
418 (struct btrace_data_bts) <blocks>: Change to std::vector.
419 * nat/linux-btrace.c (perf_event_read_bts): Update for
420 std::vector.
421 (linux_read_bts): Likewise.
422
423 2019-10-01 Tom Tromey <tom@tromey.com>
424
425 * cli/cli-logging.c (show_logging_filename): Use styled_string.
426
427 2019-10-01 Tom Tromey <tom@tromey.com>
428
429 * stack.c (print_frame, info_frame_command_core): Use
430 styled_string.
431 * linux-thread-db.c (try_thread_db_load_1)
432 (try_thread_db_load_from_pdir_1): Use styled_string.
433 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
434 (auto_load_section_scripts, info_auto_load_local_gdbinit)
435 (maybe_print_unsupported_script_warning)
436 (maybe_print_script_not_found_warning): Use styled_string.
437 * ada-lang.c (user_select_syms): Use styled_string.
438
439 2019-10-01 Tom Tromey <tom@tromey.com>
440
441 * p-lang.c (pascal_printstr): Use metadata style.
442 * value.c (show_convenience): Use metadata style.
443 * valprint.c (valprint_check_validity, val_print_optimized_out)
444 (val_print_not_saved, val_print_unavailable)
445 (val_print_invalid_address, generic_val_print, val_print)
446 (value_check_printable, val_print_array_elements): Use metadata
447 style.
448 * ui-out.h (class ui_out) <field_fmt>: New overload.
449 <do_field_fmt>: Add style parameter.
450 * ui-out.c (ui_out::field_fmt): New overload.
451 * typeprint.c (type_print_unknown_return_type)
452 (val_print_not_allocated, val_print_not_associated): Use metadata
453 style.
454 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
455 parameter.
456 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
457 * tracepoint.c (tvariables_info_1): Use metadata style.
458 * stack.c (print_frame_arg, print_frame_info, print_frame)
459 (info_frame_command_core): Use metadata style.
460 * skip.c (info_skip_command): Use metadata style.
461 * rust-lang.c (rust_print_enum): Use metadata style.
462 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
463 metadata style.
464 * python/py-framefilter.c (py_print_single_arg): Use metadata
465 style.
466 * printcmd.c (do_one_display, print_variable_and_value): Use
467 metadata style.
468 * p-valprint.c (pascal_val_print)
469 (pascal_object_print_value_fields): Use metadata style.
470 * p-typeprint.c (pascal_type_print_base): Use metadata style.
471 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
472 parameter.
473 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
474 * m2-valprint.c (m2_print_long_set): Use metadata style.
475 * m2-typeprint.c (m2_print_type): Use metadata style.
476 * infcmd.c (print_return_value_1): Use metadata style.
477 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
478 * f-valprint.c (info_common_command_for_block): Use metadata
479 style.
480 * f-typeprint.c (f_type_print_base): Use metadata style.
481 * expprint.c (print_subexp_standard): Use metadata style.
482 * cp-valprint.c (cp_print_value_fields): Use metadata style.
483 * cli/cli-style.h (class cli_style_option): Add constructor.
484 (metadata_style): Declare.
485 * cli/cli-style.c (metadata_style): New global.
486 (_initialize_cli_style): Register metadata style.
487 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
488 parameter.
489 * cli-out.c (cli_ui_out::do_field_fmt): Update.
490 * c-typeprint.c (c_type_print_base_struct_union)
491 (c_type_print_base_1): Use metadata style.
492 * breakpoint.c (watchpoint_value_print)
493 (print_one_breakpoint_location): Use metadata style.
494 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
495 style.
496 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
497 style.
498 * ada-valprint.c (val_print_packed_array_elements, printstr)
499 (print_field_values, ada_val_print_ref, ada_val_print): Use
500 metadata style.
501 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
502 style.
503 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
504 style.
505 * ada-lang.c (user_select_syms): Use metadata style.
506
507 2019-10-01 Tom Tromey <tom@tromey.com>
508
509 * cli/cli-cmds.c (pwd_command): Style output.
510
511 2019-10-01 Pedro Alves <palves@redhat.com>
512 Tom Tromey <tom@tromey.com>
513
514 * symtab.c (print_symbol_info): Use %ps.
515 (print_msymbol_info): Use %ps.
516 * symfile.c (symbol_file_add_with_addrs): Use %ps.
517 * printcmd.c (print_variable_and_value): Use %ps.
518 * macrocmd.c (show_pp_source_pos): Use %ps.
519 * infrun.c (print_exited_reason): Use ui_out::message.
520 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
521 (describe_other_breakpoints): Use ui_out::message and new
522 formats.
523 (say_where): Use new formats.
524 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
525 and new formats.
526
527 2019-10-01 Pedro Alves <palves@redhat.com>
528 Tom Tromey <tom@tromey.com>
529
530 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
531 (test_gdb_formats): New function.
532 (run_tests): Call it.
533 (test_format_specifier): Update.
534 * utils.h (fputs_filtered): Update comment.
535 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
536 (fputs_styled_unfiltered): Declare.
537 * utils.c (fputs_styled_unfiltered): New function.
538 (vfprintf_maybe_filtered): Add gdbfmt parameter.
539 (vfprintf_filtered): Update.
540 (vfprintf_unfiltered, vprintf_filtered): Update.
541 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
542 * ui-out.h (enum ui_out_flag) <unfiltered_output,
543 disallow_ui_out_field>: New constants.
544 (enum class field_kind): New.
545 (struct base_field_s, struct signed_field_s): New.
546 (signed_field): New function.
547 (struct string_field_s): New.
548 (string_field): New function.
549 (struct styled_string_s): New.
550 (styled_string): New function.
551 (class ui_out) <message>: Add comment.
552 <vmessage, call_do_message>: New methods.
553 <do_message>: Add style parameter.
554 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
555 methods.
556 (ui_out::message): Rewrite.
557 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
558 parameter.
559 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
560 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
561 gdb_extensions parameter.
562 (class format_piece): Add parameter to constructor.
563 (n_int_args): New field.
564 * gdbsupport/format.c (format_pieces::format_pieces): Add
565 gdb_extensions parameter. Handle '*'.
566 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
567 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
568 vfprintf_styled_no_gdbfmt.
569 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
570 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
571 unfiltered output.
572 * ui-style.h (struct ui_file_style) <ptr>: New method.
573
574 2019-10-01 Tom Tromey <tom@tromey.com>
575
576 * unittests/format_pieces-selftests.c: Update. Add final format.
577 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
578 empty literal pieces.
579
580 2019-10-01 Tom Tromey <tom@tromey.com>
581
582 * ui-out.h (enum class ui_out_style_kind): Remove.
583 (class ui_out) <field_string, field_stsream, do_field_string>:
584 Change type of "style".
585 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
586 (ui_out::field_string): Update.
587 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
588 of "style".
589 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
590 * tracepoint.c (print_one_static_tracepoint_marker): Update.
591 * stack.c (print_frame_arg, print_frame_info, print_frame):
592 Update.
593 * source.c (print_source_lines_base): Update.
594 * solib.c (info_sharedlibrary_command): Update.
595 * skip.c (info_skip_command): Update.
596 * record-btrace.c (btrace_call_history_src_line)
597 (btrace_call_history): Update.
598 * python/py-framefilter.c (py_print_frame): Update.
599 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
600 "style".
601 * mi/mi-out.c (mi_ui_out::do_table_header)
602 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
603 (mi_ui_out::do_field_string): Update.
604 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
605 Update.
606 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
607 "style".
608 * cli-out.c (cli_ui_out::do_table_header)
609 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
610 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
611 (cli_ui_out::do_field_fmt): Update.
612 * breakpoint.c (print_breakpoint_location): Update.
613 (update_static_tracepoint): Update.
614
615 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
616
617 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
618 conversion of gdb_datadir.
619 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
620 remove not needed c_str ().
621
622 2019-09-30 Ali Tamur <tamur@google.com>
623
624 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
625 (dwarf2_string_attr): Likewise.
626
627 2019-09-30 Ali Tamur <tamur@google.com>
628
629 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
630 (process_full_type_unit): Likewise.
631 (dump_die_shallow): Likewise.
632 (cu_debug_loc_section): Likewise.
633
634 2019-09-28 Christian Biesinger <cbiesinger@google.com>
635
636 * minsyms.c (compare_minimal_symbols): Rename to...
637 (minimal_symbol_is_less_than): ...this, and adjust to STL
638 conventions (return bool, take arguments as references)
639 (minimal_symbol_reader::install): Call std::sort instead
640 of qsort.
641
642 2019-09-29 Christian Biesinger <cbiesinger@google.com>
643
644 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
645 hash and why.
646 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
647 msymbol_hash, msymbol_demangled_hash>: Improve comments.
648
649 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
650
651 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
652 * psympriv.h (add_psymbol_to_list): Move comment here and update
653 it.
654
655 2019-09-29 Tom de Vries <tdevries@suse.de>
656
657 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
658 Use $tmpdir/$(basename "$output_file").dwz instead of
659 "${output_file}.dwz".
660
661 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
662
663 PR gdb/25045
664 * hppa-linux-nat.c: Include gdbarch.h.
665
666 2019-09-26 Christian Biesinger <cbiesinger@google.com>
667
668 * blockframe.c (find_pc_partial_function): Change return type to bool.
669 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
670 * minsyms.c (in_gnu_ifunc_stub): Likewise.
671 (stub_gnu_ifunc_resolve_name): Likewise.
672 * symtab.c (compare_filenames_for_search): Likewise.
673 (compare_glob_filenames_for_search): Likewise.
674 (matching_obj_sections): Likewise.
675 (symbol_matches_domain): Likewise.
676 (find_line_symtab): Change out param EXACT_MATCH to bool *.
677 (find_line_pc): Change return type to bool.
678 (find_line_pc_range): Likewise.
679 (producer_is_realview): Likewise.
680 * symtab.h (symbol_matches_domain): Likewise.
681 (find_pc_partial_function): Likewise.
682 (find_pc_line_pc_range): Likewise.
683 (in_gnu_ifunc_stub): Likewise.
684 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
685 (find_line_pc): Likewise.
686 (find_line_pc_range): Likewise.
687 (matching_obj_sections): Likewise.
688 (find_line_symtab): Change out parameter to bool.
689 (producer_is_realview): Change return type to bool.
690 (compare_filenames_for_search): Likewise.
691 (compare_glob_filenames_for_search): Likewise.
692
693 2019-09-26 Tom Tromey <tom@tromey.com>
694
695 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
696 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
697 * gdb_usleep.h: Remove.
698 * gdb_usleep.c: Remove.
699 * utils.c: Don't include gdb_usleep.h.
700
701 2019-09-26 Tom Tromey <tromey@adacore.com>
702
703 * python/py-type.c (type_to_type_object): Call check_typedef
704 for stub types.
705
706 2019-09-26 Tom Tromey <tom@tromey.com>
707
708 * utils.h (initialize_utils): Don't declare.
709 * top.c (gdb_init): Don't call initialize_utils.
710 * utils.c (initialize_utils): Remove. Move contents...
711 (_initialize_utils): ... here.
712
713 2019-09-25 Tom Tromey <tom@tromey.com>
714
715 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
716 * utils.h (make_hex_string): Don't declare.
717 * utils.c (make_hex_string): Remove.
718
719 2019-09-24 Tom de Vries <tdevries@suse.de>
720
721 PR gdb/23815
722 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
723 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
724
725 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
726
727 * NEWS: Mention new simulator port for PRU.
728
729 2019-09-23 Christian Biesinger <cbiesinger@google.com>
730
731 * ada-exp.y (write_object_remaining): Update.
732 * ada-lang.c (ada_decode): Return a std::string instead of a char*
733 and eliminate the static buffer.
734 (ada_decode_symbol): Update.
735 (ada_la_decode): Update.
736 (ada_sniff_from_mangled_name): Update.
737 (is_valid_name_for_wild_match): Update.
738 (ada_lookup_name_info::matches): Update and simplify.
739 (name_matches_regex): Update.
740 (ada_add_global_exceptions): Update.
741 * ada-lang.h (ada_decode): Update signature.
742 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
743 * dwarf-index-write.c (debug_names::insert): Update.
744
745 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
746
747 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
748 formatting.
749
750 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
751
752 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
753 Change "nonzero" to "true" in documentation.
754
755 2019-09-20 Christian Biesinger <cbiesinger@google.com>
756
757 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
758 (_initialize_darwin_solib): Don't set
759 darwin_so_ops.lookup_lib_global_symbol.
760 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
761 set_gdbarch_iterate_over_objfiles_in_search_order.
762 (elf_lookup_lib_symbol): Rename to...
763 (svr4_iterate_over_objfiles_in_search_order): this, and update
764 to iterate semantics.
765 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
766 * solib.c (solib_global_lookup): Remove.
767 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
768 (solib_global_lookup): Remove.
769 * symtab.c (lookup_global_or_static_symbol): Remove call to
770 solib_global_lookup.
771
772 2019-09-20 Joel Brobecker <brobecker@adacore.com>
773
774 * NEWS: Move entries about default MI version now being
775 version 3, and about the GDB/MI fix for multi-location
776 breakpoints to the "since GDB 8.3" section.
777
778 2019-09-20 Joel Brobecker <brobecker@adacore.com>
779
780 GDB 8.3.1 released.
781
782 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
783
784 * NEWS: Mention that Cell/B.E. debugging support was removed.
785 * MAINTAINERS: Remove spu target.
786
787 * config/djgpp/fnchange.lst: Remove entries for removed files.
788
789 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
790 spu-multiarch.o, and spu-tdep.o.
791 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
792 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
793 spu-multiarch.c, and spu-tdep.c.
794 * spu-linux-nat.c: Remove file.
795 * spu-multiarch.c: Remove file.
796 * spu-tdep.c: Remove file.
797 * spu-tdep.h: Remove file.
798 * solib-spu.c: Remove file.
799 * solib-spu.h: Remove file.
800
801 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
802 * configure.nat (spu-linux): Remove.
803 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
804 solib-multiarch.o from gdb_target_obs.
805 (spu*-*-*): Remove.
806
807 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
808 feature flag.
809 (ppc_linux_no_features): Update.
810 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
811 Cell/B.E. support.
812 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
813 (tdesc_powerpc_cell64l): Likewise.
814 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
815 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
816 Cell/B.E. support.
817 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
818 Do not include "features/rs6000/powerpc-cell32l.c" or
819 "features/rs6000/powerpc-cell64l.c".
820 (ppc_linux_spu_section): Remove.
821 (ppc_linux_core_read_description): Remove Cell/B.E. support.
822 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
823 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
824 (ppc_linux_spe_context_lookup): Remove.
825 (ppc_linux_spe_context_inferior_created): Remove.
826 (ppc_linux_spe_context_solib_loaded): Remove.
827 (ppc_linux_spe_context_solib_unloaded): Remove.
828 (ppc_linux_spe_context): Remove.
829 (struct ppu2spu_cache): Remove.
830 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
831 (struct ppu2spu_data): Remove.
832 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
833 ppu2spu_unwind): Remove.
834 (ppc_linux_init_abi): Remove Cell/B.E. support.
835 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
836
837 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
838 (rs6000/powerpc-cell64l-expedite): Likewise
839 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
840 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
841 rs6000/powerpc-cell64l.xml.
842 * features/rs6000/powerpc-cell32l.xml: Remove.
843 * features/rs6000/powerpc-cell64l.xml: Likewise.
844 * features/rs6000/powerpc-cell32l.c: Remove generated file.
845 * features/rs6000/powerpc-cell64l.c: Likewise.
846 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
847 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
848 * regformats/reg-spu.dat: Remove.
849
850 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
851 * corelow.c (struct spuid_list): Remove.
852 (add_to_spuid_list): Remove.
853 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
854 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
855 (remote_protocol_features): Remove associated entries.
856 (_initialize_remote): No longer initialize them.
857 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
858 * linux-nat.c (SPUFS_MAGIC): Remove.
859 (linux_proc_xfer_spu): Remove.
860 (spu_enumerate_spu_ids): Remove.
861 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
862 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
863 (linux_make_corefile_notes): No longer call it.
864
865 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
866 (cooked_write_test): Likewise.
867
868 2019-09-20 Tom Tromey <tom@tromey.com>
869
870 * NEWS: Mention case-sensitivity of TUI commands.
871 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
872 (tui_set_win_height_command, parse_scrolling_args): Likewise.
873 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
874
875 2019-09-20 Tom Tromey <tom@tromey.com>
876
877 * tui/tui-source.c (tui_source_window::set_contents): Use
878 make_unique_xstrdup.
879 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
880 make_unique_xstrdup.
881
882 2019-09-20 Tom Tromey <tom@tromey.com>
883
884 * tui/tui-data.c: Remove separator comments.
885 * tui/tui-layout.c: Remove separator comments.
886 * tui/tui-win.c: Remove separator comments.
887 * tui/tui-wingeneral.c: Remove separator comments.
888
889 2019-09-20 Tom Tromey <tom@tromey.com>
890
891 * tui/tui.h (strcat_to_buf): Don't declare.
892 * tui/tui.c (strcat_to_buf): Remove.
893
894 2019-09-20 Tom Tromey <tom@tromey.com>
895
896 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
897 from "fullname".
898 * tui/tui-source.c (tui_source_window::set_contents)
899 (tui_source_window::location_matches_p)
900 (tui_source_window::maybe_update): Update.
901
902 2019-09-20 Tom Tromey <tom@tromey.com>
903
904 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
905 Update.
906 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
907 prefix.
908 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
909 (tui_data_window::line_from_reg_element_no)
910 (tui_data_window::first_reg_element_no_inline)
911 (tui_data_window::show_registers)
912 (tui_data_window::show_register_group)
913 (tui_data_window::display_registers_from)
914 (tui_data_window::display_registers_from_line)
915 (tui_data_window::first_data_item_displayed)
916 (tui_data_window::delete_data_content_windows)
917 (tui_data_window::erase_data_content)
918 (tui_data_window::do_scroll_vertical)
919 (tui_data_window::refresh_window)
920 (tui_data_window::check_register_values): Update.
921
922 2019-09-20 Tom Tromey <tom@tromey.com>
923
924 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
925 (struct tui_locator_window) <full_name, proc_name>: Now
926 std::string.
927 * tui/tui-stack.c (tui_locator_window::make_status_line)
928 (tui_locator_window::set_locator_fullname)
929 (tui_locator_window::set_locator_info): Update.
930 * tui/tui-source.c (tui_source_window::set_contents)
931 (tui_source_window::showing_source_p): Update.
932
933 2019-09-20 Tom Tromey <tom@tromey.com>
934
935 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
936 Don't call tui_locator_win_info_ptr.
937
938 2019-09-20 Tom Tromey <tom@tromey.com>
939
940 * tui/tui-win.c (tui_resize_all): Don't call refresh.
941
942 2019-09-20 Tom Tromey <tom@tromey.com>
943
944 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
945 height for locator.
946 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
947 * tui/tui-layout.c (show_source_disasm_command, show_data)
948 (show_source_or_disasm_and_command): Use 1 as height for locator.
949
950 2019-09-20 Tom Tromey <tom@tromey.com>
951
952 * tui/tui.c (tui_enable): Update.
953 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
954 Update.
955 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
956 Update.
957 * tui/tui-data.c (win_resized): Now bool.
958 (tui_win_resized): Return bool.
959 (tui_set_win_resized_to): Accept a bool.
960
961 2019-09-20 Tom Tromey <tom@tromey.com>
962
963 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
964 Change type of "refresh_values_only".
965 * tui/tui-regs.c (tui_data_window::show_register_group): Change
966 type of "refresh_values_only".
967
968 2019-09-20 Tom Tromey <tom@tromey.com>
969
970 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
971 std::string.
972 (tui_disassemble): Add "pos" parameter.
973 (tui_disasm_window::set_contents): Simplify.
974
975 2019-09-20 Tom Tromey <tom@tromey.com>
976
977 * tui/tui-winsource.h (struct tui_source_window_base)
978 <show_source_content>: Now private.
979 * tui/tui-winsource.c
980 (tui_source_window_base::show_source_content): Don't handle empty
981 content case.
982
983 2019-09-20 Tom Tromey <tom@tromey.com>
984
985 * tui/tui-layout.c (show_source_disasm_command)
986 (show_source_or_disasm_and_command): Don't call
987 show_source_content.
988
989 2019-09-20 Tom Tromey <tom@tromey.com>
990
991 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
992 Declare.
993 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
994 from tui_make_status_line.
995 (tui_locator_window::rerender): Update.
996
997 2019-09-20 Tom Tromey <tom@tromey.com>
998
999 * tui/tui-stack.c (tui_make_status_line): Return std::string.
1000 (tui_locator_window::rerender): Update.
1001
1002 2019-09-20 Tom Tromey <tom@tromey.com>
1003
1004 * tui/tui-winsource.h (struct tui_source_window_base)
1005 <~tui_source_window_base>: Don't declare.
1006 <fullname>: Remove.
1007 * tui/tui-winsource.c (~tui_source_window_base): Remove.
1008 * tui/tui-source.h (struct tui_source_window) <fullname>: New
1009 member.
1010 * tui/tui-source.c (tui_source_window::set_contents): Update.
1011 (tui_source_window::location_matches_p)
1012 (tui_source_window::maybe_update): Update.
1013
1014 2019-09-20 Tom Tromey <tom@tromey.com>
1015
1016 * tui/tui-winsource.h (~tui_source_element): Remove.
1017 (tui_source_element): Update.
1018 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
1019 * tui/tui-winsource.c (tui_show_source_line): Update.
1020 * tui/tui-source.c (tui_source_window::set_contents): Update.
1021 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1022
1023 2019-09-20 Tom Tromey <tom@tromey.com>
1024
1025 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
1026 declare.
1027 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
1028 tui_clear_source_windows_detail.
1029 * tui/tui-winsource.h (struct tui_source_window_base)
1030 <clear_detail>: Don't declare.
1031 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
1032 Remove.
1033 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
1034
1035 2019-09-20 Tom Tromey <tromey@adacore.com>
1036
1037 PR ada/24919:
1038 * block.c (contained_in): Fix final return value.
1039
1040 2019-09-20 Alan Modra <amodra@gmail.com>
1041
1042 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
1043 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
1044 (read_indirect_string_from_dwz): Use bfd accessor.
1045 * dwarf2read.h (struct dwz_file <filename>): Likewise.
1046 * machoread.c (macho_symfile_read_all_oso): Likewise.
1047 * solib.c (solib_bfd_open): Likewise.
1048
1049 2019-09-19 Christian Biesinger <cbiesinger@google.com>
1050
1051 * eval.c: Move declaration of overload_resolution to...
1052 * value.h: ...here.
1053
1054 2019-09-19 Christian Biesinger <cbiesinger@google.com>
1055
1056 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
1057 * arm-linux-tdep.c: Likewise.
1058 * arm-nbsd-nat.c: Likewise.
1059 * arm-tdep.h: Declare arm_apcs_32.
1060 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
1061
1062 2019-09-19 Christian Biesinger <cbiesinger@google.com>
1063
1064 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
1065 * dwarf2read.h: Declare dwarf_always_disassemble.
1066
1067 2019-09-19 Tom de Vries <tdevries@suse.de>
1068
1069 PR gdb/25009
1070 * source-cache.c (source_cache::ensure): Catch exception thrown during
1071 construction of the highlighter.
1072
1073 2019-09-18 Alan Modra <amodra@gmail.com>
1074
1075 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
1076 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
1077 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
1078 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
1079 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
1080 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
1081 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
1082 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
1083 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
1084 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
1085 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
1086 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
1087 * solib-spu.c, * solib-svr4.c, * solib-target.c,
1088 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
1089 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
1090 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
1091 * mi/mi-interp.c: Update throughout for bfd section macro and
1092 function changes.
1093 * gcore (gcore_create_callback): Use bfd_set_section_lma.
1094 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
1095
1096 2019-09-18 Tom Tromey <tom@tromey.com>
1097
1098 * NEWS: Add entry.
1099 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
1100 call rl_initialize.
1101 (tui_enable): Do not call rl_initialize.
1102
1103 2019-09-18 Christian Groessler <chris@groessler.org>
1104
1105 * alpha-linux-nat.c: Include gdbarch.h.
1106
1107 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
1108
1109 * ui-file.c: Include cli/cli-style.h.
1110 (term_cli_styling): Remove cli_styling declaration.
1111
1112 2019-09-18 Alan Modra <amodra@gmail.com>
1113
1114 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
1115 to bfd_asymbol_section.
1116
1117 2019-09-18 Alan Modra <amodra@gmail.com>
1118
1119 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
1120 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
1121 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
1122
1123 2019-09-18 Alan Modra <amodra@gmail.com>
1124
1125 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
1126 * spu-linux-nat.c (spu_bfd_open): Likewise.
1127
1128 2019-09-18 Christian Biesinger <cbiesinger@google.com>
1129
1130 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
1131 to bool to match definition in dwarf2read.c.
1132
1133 2019-09-17 Christian Biesinger <cbiesinger@google.com>
1134
1135 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
1136 (print_signatures): Likewise.
1137 (trust_pad_over_xvs): Likewise.
1138 * arch/aarch64-insn.c (aarch64_debug): Likewise.
1139 * arch/aarch64-insn.h (aarch64_debug): Likewise.
1140 * arm-linux-nat.c (arm_apcs_32): Likewise.
1141 * arm-linux-tdep.c (arm_apcs_32): Likewise.
1142 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
1143 * arm-tdep.c (arm_debug): Likewise.
1144 (arm_apcs_32): Likewise.
1145 * auto-load.c (debug_auto_load): Likewise.
1146 (auto_load_gdb_scripts): Likewise.
1147 (global_auto_load): Likewise.
1148 (auto_load_local_gdbinit): Likewise.
1149 (auto_load_local_gdbinit_loaded): Likewise.
1150 * auto-load.h (global_auto_load): Likewise.
1151 (auto_load_local_gdbinit): Likewise.
1152 (auto_load_local_gdbinit_loaded): Likewise.
1153 * breakpoint.c (disconnected_dprintf): Likewise.
1154 (breakpoint_proceeded): Likewise.
1155 (automatic_hardware_breakpoints): Likewise.
1156 (always_inserted_mode): Likewise.
1157 (target_exact_watchpoints): Likewise.
1158 (_initialize_breakpoint): Update.
1159 * breakpoint.h (target_exact_watchpoints): Change to bool.
1160 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
1161 * cli/cli-cmds.c (trace_commands): Likewise.
1162 * cli/cli-cmds.h (trace_commands): Likewise.
1163 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
1164 to bool*.
1165 * cli/cli-logging.c (logging_overwrite): Change to bool.
1166 (logging_redirect): Likewise.
1167 (debug_redirect): Likewise.
1168 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
1169 (struct boolean_option_def) <get_var_address_cb_>: Change return type
1170 to bool.
1171 <boolean_option_def>: Update.
1172 (struct flag_option_def): Change default type of Context to bool
1173 from int.
1174 <flag_option_def>: Change return type of var_address_cb_ to bool*.
1175 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
1176 (get_setshow_command_value_string): Likewise.
1177 * cli/cli-style.c (cli_styling): Change to bool.
1178 (source_styling): Likewise.
1179 * cli/cli-style.h (source_styling): Likewise.
1180 (cli_styling): Likewise.
1181 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
1182 to bool.
1183 * command.h (var_types): Update comment.
1184 (add_setshow_boolean_cmd): Change int* var argument to bool*.
1185 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
1186 bool.
1187 (debug_compile_cplus_scopes): Likewise.
1188 * compile/compile-internal.h (compile_debug): Likewise.
1189 * compile/compile.c (compile_debug): Likewise.
1190 (struct compile_options) <raw>: Likewise.
1191 * cp-support.c (catch_demangler_crashes): Likewise.
1192 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
1193 (usr_cmd_cris_dwarf2_cfi): Likewise.
1194 * csky-tdep.c (csky_debug): Likewise.
1195 * darwin-nat.c (enable_mach_exceptions): Likewise.
1196 * dcache.c (dcache_enabled_p): Likewise.
1197 * defs.h (info_verbose): Likewise.
1198 * demangle.c (demangle): Likewise.
1199 (asm_demangle): Likewise.
1200 * dwarf-index-cache.c (debug_index_cache): Likewise.
1201 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
1202 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
1203 * dwarf2read.c (check_physname): Likewise.
1204 (use_deprecated_index_sections): Likewise.
1205 (dwarf_always_disassemble): Likewise.
1206 * eval.c (overload_resolution): Likewise.
1207 * event-top.c (set_editing_cmd_var): Likewise.
1208 (exec_done_display_p): Likewise.
1209 * event-top.h (set_editing_cmd_var): Likewise.
1210 (exec_done_display_p): Likewise.
1211 * exec.c (write_files): Likewise.
1212 * fbsd-nat.c (debug_fbsd_lwp): Likewise
1213 (debug_fbsd_nat): Likewise.
1214 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
1215 Likewise.
1216 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
1217 <backtrace_past_entry> Likewise.
1218 * gdb-demangle.h (demangle): Likewise.
1219 (asm_demangle): Likewise.
1220 * gdb_bfd.c (bfd_sharing): Likewise.
1221 * gdbcore.h (write_files): Likewise.
1222 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
1223 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
1224 * gdbthread.h (print_thread_events): Likewise.
1225 * gdbtypes.c (opaque_type_resolution): Likewise.
1226 (strict_type_checking): Likewise.
1227 * gnu-nat.c (gnu_debug_flag): Likewise.
1228 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
1229 * guile/scm-param.c (pascm_variable): Add boolval.
1230 (add_setshow_generic): Update.
1231 (pascm_param_value): Update.
1232 (pascm_set_param_value_x): Update.
1233 * hppa-tdep.c (hppa_debug): Change to bool..
1234 * infcall.c (may_call_functions_p): Likewise.
1235 (coerce_float_to_double_p): Likewise.
1236 (unwind_on_signal_p): Likewise.
1237 (unwind_on_terminating_exception_p): Likewise.
1238 * infcmd.c (startup_with_shell): Likewise.
1239 * inferior.c (print_inferior_events): Likewise.
1240 * inferior.h (startup_with_shell): Likewise.
1241 (print_inferior_events): Likewise.
1242 * infrun.c (step_stop_if_no_debug): Likewise.
1243 (detach_fork): Likewise.
1244 (debug_displaced): Likewise.
1245 (disable_randomization): Likewise.
1246 (non_stop): Likewise.
1247 (non_stop_1): Likewise.
1248 (observer_mode): Likewise.
1249 (observer_mode_1): Likewise.
1250 (set_observer_mode): Update.
1251 (sched_multi): Change to bool.
1252 * infrun.h (debug_displaced): Likewise.
1253 (sched_multi): Likewise.
1254 (step_stop_if_no_debug): Likewise.
1255 (non_stop): Likewise.
1256 (disable_randomization): Likewise.
1257 * linux-tdep.c (use_coredump_filter): Likewise.
1258 (dump_excluded_mappings): Likewise.
1259 * linux-thread-db.c (auto_load_thread_db): Likewise.
1260 (check_thread_db_on_load): Likewise.
1261 * main.c (captured_main_1): Update.
1262 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
1263 xx2_opt, boolean_opt>: Change to bool.
1264 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
1265 * maint.c (maintenance_profile_p): Likewise.
1266 (per_command_time): Likewise.
1267 (per_command_space): Likewise.
1268 (per_command_symtab): Likewise.
1269 * memattr.c (inaccessible_by_default): Likewise.
1270 * mi/mi-main.c (mi_async): Likewise.
1271 (mi_async_1): Likewise.
1272 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
1273 * nat/fork-inferior.h (startup_with_shell): Likewise.
1274 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
1275 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
1276 * nios2-tdep.c (nios2_debug): Likewise.
1277 * or1k-tdep.c (or1k_debug): Likewise.
1278 * parse.c (parser_debug): Likewise.
1279 * parser-defs.h (parser_debug): Likewise.
1280 * printcmd.c (print_symbol_filename): Likewise.
1281 * proc-api.c (procfs_trace): Likewise.
1282 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
1283 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
1284 (set_parameter_value): Update.
1285 (add_setshow_generic): Update.
1286 * python/py-value.c (copy_py_bool_obj): Change argument from int*
1287 to bool*.
1288 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
1289 int*.
1290 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
1291 * record-btrace.c (record_btrace_target::store_registers): Update.
1292 * record-full.c (record_full_memory_query): Change to bool.
1293 (record_full_stop_at_limit): Likewise.
1294 * record-full.h (record_full_memory_query): Likewise.
1295 * remote-notif.c (notif_debug): Likewise.
1296 * remote-notif.h (notif_debug): Likewise.
1297 * remote.c (use_range_stepping): Likewise.
1298 (interrupt_on_connect): Likewise.
1299 (remote_break): Likewise.
1300 * ser-tcp.c (tcp_auto_retry): Likewise.
1301 * ser-unix.c (serial_hwflow): Likewise.
1302 * skip.c (debug_skip): Likewise.
1303 * solib-aix.c (solib_aix_debug): Likewise.
1304 * spu-tdep.c (spu_stop_on_load_p): Likewise.
1305 (spu_auto_flush_cache_p): Likewise.
1306 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
1307 Likewise.
1308 (struct info_print_options) <quiet>: Likewise.
1309 * symfile-debug.c (debug_symfile): Likewise.
1310 * symfile.c (auto_solib_add): Likewise.
1311 (separate_debug_file_debug): Likewise.
1312 * symfile.h (auto_solib_add): Likewise.
1313 (separate_debug_file_debug): Likewise.
1314 * symtab.c (basenames_may_differ): Likewise.
1315 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
1316 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
1317 (struct info_types_options) <quiet>: Likewise.
1318 * symtab.h (demangle): Likewise.
1319 (basenames_may_differ): Likewise.
1320 * target-dcache.c (stack_cache_enabled_1): Likewise.
1321 (code_cache_enabled_1): Likewise.
1322 * target.c (trust_readonly): Likewise.
1323 (may_write_registers): Likewise.
1324 (may_write_memory): Likewise.
1325 (may_insert_breakpoints): Likewise.
1326 (may_insert_tracepoints): Likewise.
1327 (may_insert_fast_tracepoints): Likewise.
1328 (may_stop): Likewise.
1329 (auto_connect_native_target): Likewise.
1330 (target_stop_and_wait): Update.
1331 (target_async_permitted): Change to bool.
1332 (target_async_permitted_1): Likewise.
1333 (may_write_registers_1): Likewise.
1334 (may_write_memory_1): Likewise.
1335 (may_insert_breakpoints_1): Likewise.
1336 (may_insert_tracepoints_1): Likewise.
1337 (may_insert_fast_tracepoints_1): Likewise.
1338 (may_stop_1): Likewise.
1339 * target.h (target_async_permitted): Likewise.
1340 (may_write_registers): Likewise.
1341 (may_write_memory): Likewise.
1342 (may_insert_breakpoints): Likewise.
1343 (may_insert_tracepoints): Likewise.
1344 (may_insert_fast_tracepoints): Likewise.
1345 (may_stop): Likewise.
1346 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
1347 (make_thread_apply_all_options_def_group): Change argument from int*
1348 to bool*.
1349 (thread_apply_all_command): Update.
1350 (print_thread_events): Change to bool.
1351 * top.c (confirm): Likewise.
1352 (command_editing_p): Likewise.
1353 (history_expansion_p): Likewise.
1354 (write_history_p): Likewise.
1355 (info_verbose): Likewise.
1356 * top.h (confirm): Likewise.
1357 (history_expansion_p): Likewise.
1358 * tracepoint.c (disconnected_tracing): Likewise.
1359 (circular_trace_buffer): Likewise.
1360 * typeprint.c (print_methods): Likewise.
1361 (print_typedefs): Likewise.
1362 * utils.c (debug_timestamp): Likewise.
1363 (sevenbit_strings): Likewise.
1364 (pagination_enabled): Likewise.
1365 * utils.h (sevenbit_strings): Likewise.
1366 (pagination_enabled): Likewise.
1367 * valops.c (overload_resolution): Likewise.
1368 * valprint.h (struct value_print_options) <prettyformat_arrays,
1369 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
1370 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
1371 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
1372 Likewise.
1373 * windows-nat.c (new_console): Likewise.
1374 (cygwin_exceptions): Likewise.
1375 (new_group): Likewise.
1376 (debug_exec): Likewise.
1377 (debug_events): Likewise.
1378 (debug_memory): Likewise.
1379 (debug_exceptions): Likewise.
1380 (useshell): Likewise.
1381 * windows-tdep.c (maint_display_all_tib): Likewise.
1382 * xml-support.c (debug_xml): Likewise.
1383
1384 2019-09-17 Mike Gulick <mgulick@mathworks.com>
1385
1386 * source.c (prepare_path_for_appending): New function.
1387 (openp): Make use of new function.
1388 (find_and_open_source): Search for the compilation directory and
1389 source file as a relative path beneath the directory search path.
1390
1391 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
1392
1393 * source-cache.c (source_cache::get_line_charpos): Catch
1394 exceptions and return false, this matches the behaviour documented
1395 in the header file.
1396
1397 2019-09-17 Joel Brobecker <brobecker@adacore.com>
1398
1399 * ada-tasks.c (info_task): Remove quoting of the task's name.
1400
1401 2019-09-16 Christian Biesinger <cbiesinger@google.com>
1402
1403 * symfile.c (auto_solib_add): Replace comment with a reference
1404 to the header file.
1405
1406 2019-09-14 Christian Biesinger <cbiesinger@google.com>
1407
1408 * NEWS: Mention that gdb can now be compiled with Python 3
1409 on Windows.
1410
1411 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1412
1413 * maint.c (maint_print_section_data::maint_print_section_data):
1414 Force use of 'float log10 (float)' by casting the argument to
1415 float.
1416
1417 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1418
1419 * maint.c: Add 'cmath' include.
1420 (struct maint_print_section_data): New structure.
1421 (print_section_index): New function.
1422 (print_bfd_section_info): Add header comment, small whitespace
1423 cleanup, and update to call new print_section_index function.
1424 (print_objfile_section_info): Likewise.
1425 (maint_obj_section_from_bfd_section): New function.
1426 (print_bfd_section_info_maybe_relocated): New function.
1427 (maintenance_info_sections): Add header comment, always use
1428 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
1429
1430 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1431
1432 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
1433 inner scope, add check that the objfile has psymtabs before
1434 checking psymtabs_addrmap.
1435 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
1436
1437 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1438
1439 * NEWS: Announce that Ada task names are now shown at more places,
1440 and between quotes (except in info task output).
1441 * gdb/ada-tasks.c (task_to_str): New function.
1442 (display_current_task_id): Call task_to_str.
1443 (task_command_1): Likewise.
1444 (print_ada_task_info): In non-mi mode, Properly align headers and data
1445 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
1446
1447 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1448
1449 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
1450 prstatus.pr_lwp.pr_info instead of making it up.
1451
1452 2019-09-11 Christian Biesinger <cbiesinger@google.com>
1453
1454 * auto-load.c (auto_load_expand_dir_vars): Update.
1455 * defs.h (gdb_datadir): Change to std::string.
1456 (python_libdir): Likewise.
1457 (relocate_gdb_directory): Change return type to std::string.
1458 * guile/guile.c (gdbscm_data_directory): Update.
1459 (initialize_scheme_side): Update.
1460 * jit.c (jit_reader_dir): Change to std::string.
1461 (jit_reader_load_command): Update.
1462 * main.c (gdb_datadir): Change to std::string.
1463 (python_libdir): Likewise.
1464 (set_gdb_data_directory): Update.
1465 (relocate_path): Change to return std::string.
1466 (relocate_gdb_directory): Change to return std::string.
1467 (relocate_gdbinit_path_maybe_in_datadir): Update.
1468 (captured_main_1): Update.
1469 * python/python.c (do_start_initialization): Update.
1470 * top.c (show_gdb_datadir): Update.
1471 * xml-syscall.c (xml_init_syscalls_info): Update.
1472 (init_syscalls_info): Update.
1473
1474 2019-09-11 Christian Biesinger <cbiesinger@google.com>
1475
1476 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
1477 out of get_init_files.
1478 (get_init_files): Update.
1479
1480 2019-09-11 Christian Biesinger <cbiesinger@google.com>
1481
1482 * main.c (get_init_files): Change to use std::string.
1483 (captured_main_1): Update.
1484 (print_gdb_help): Update.
1485
1486 2019-09-11 Ali Tamur <tamur@google.com>
1487
1488 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
1489 implementation.
1490
1491 2019-09-11 Christian Biesinger <cbiesinger@google.com>
1492
1493 * dbxread.c (read_dbx_symtab): Update.
1494 * dwarf2read.c (load_partial_dies): Update.
1495 * mdebugread.c (parse_partial_symbols): Update.
1496 (handle_psymbol_enumerators): Update.
1497 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
1498 * psymtab.c (add_psymbol_to_bcache): Likewise.
1499 (add_psymbol_to_list): Likewise.
1500 * symtab.c (symbol_set_names): Likewise.
1501 * symtab.h (symbol_set_names): Likewise.
1502 * xcoffread.c (scan_xcoff_symtab): Update.
1503
1504 2019-09-11 Tom Tromey <tom@tromey.com>
1505
1506 * symfile-mem.c (symbol_file_add_from_memory): Use
1507 bfd_set_filename.
1508 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
1509 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
1510
1511 2019-09-10 Tom Tromey <tromey@adacore.com>
1512
1513 * dwarf-index-write.c (write_psymbols): Extend error message.
1514 (debug_names::insert): Add Ada code.
1515 (debug_names::write_psymbols): Remove Ada check.
1516 (debug_names) <m_string_obstack>: New member.
1517 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
1518 (gdb_index_symbol_name_matcher::matches): Remove.
1519 (mapped_index_base::find_name_components_bounds): Add "lang"
1520 parameter.
1521 (mapped_index_base::build_name_components): Also split names
1522 according to Ada syntax.
1523 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
1524 type of "match_callback".
1525 (check_match, check_find_bounds_finds)
1526 (dw2_expand_symtabs_matching): Update.
1527 (dw2_debug_names_iterator): Add new constructor.
1528 (dw2_debug_names_map_matching_symbols): New function.
1529 (dw2_debug_names_expand_symtabs_matching): Update.
1530 (dwarf2_debug_names_functions): Use
1531 dw2_debug_names_map_matching_symbols.
1532
1533 2019-09-10 Tom Tromey <tromey@adacore.com>
1534
1535 * dwarf2read.c (dw2_get_file_names_reader): Add the
1536 CU's file name to the results.
1537
1538 2019-09-10 Tom Tromey <tromey@adacore.com>
1539
1540 * ada-lang.c (add_nonlocal_symbols): Combine calls to
1541 map_matching_symbols. Update.
1542 * dwarf2read.c (dw2_map_matching_symbols): Update.
1543 * psymtab.c (match_partial_symbol): Change type; update.
1544 (psym_map_matching_symbols): Likewise.
1545 * symfile-debug.c (debug_qf_map_matching_symbols): Change
1546 type; update.
1547 * symfile.h (struct quick_symbol_functions)
1548 <map_matching_symbols>: Change "name" to be a lookup_name_info.
1549 Remove "match".
1550
1551 2019-09-10 Tom Tromey <tromey@adacore.com>
1552
1553 * psymtab.c (map_block): Remove.
1554 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
1555 * symtab.c (iterate_over_symbols_terminated): New function.
1556 * symtab.c (iterate_over_symbols_terminated): Declare.
1557
1558 2019-09-10 Tom Tromey <tromey@adacore.com>
1559
1560 * ada-lang.c (ada_iterate_over_symbols): Return bool.
1561 * language.h (struct language_defn) <la_iterate_over_symbols>:
1562 Return bool.
1563 * symtab.c (iterate_over_symbols): Return bool.
1564 * symtab.h (iterate_over_symbols): Return bool.
1565
1566 2019-09-10 Tom Tromey <tromey@adacore.com>
1567
1568 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
1569 (add_nonlocal_symbols): Update.
1570 * dwarf2read.c (dw2_map_matching_symbols): Change type.
1571 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
1572 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
1573 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
1574 Change type of "callback". Remove "data".
1575
1576
1577 2019-09-09 Ali Tamur <tamur@google.com>
1578
1579 * dwarf2read.c (comp_unit_head): Update comment.
1580 (dwarf2_dwo_name): New function declaration.
1581 (dwarf_unit_type_name): New function declaration.
1582 (read_comp_unit_head): Add support for new compilation units,
1583 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
1584 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
1585 (currently named as "signature") in their header. Also clarify error
1586 messages.
1587 (lookup_dwo_id): New function. Returns the dwo id of the given
1588 compile unit.
1589 (lookup_dwo_unit): Use the new lookup_dwo_id function.
1590 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
1591 functions.
1592 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
1593 (dwarf2_dwo_name): Get the dwo name if present.
1594 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
1595 purposes.
1596
1597 2019-09-09 Tom Tromey <tom@tromey.com>
1598
1599 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
1600
1601 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1602
1603 * python/python.c (do_start_initialization): Make progname_copy static,
1604 to avoid a leak report.
1605
1606 2019-09-08 Tom Tromey <tom@tromey.com>
1607
1608 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
1609
1610 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
1611
1612 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
1613 Change type to gdb::optional<block_enum>.
1614 (dw2_symtab_iter_init): Change block_index parameter type
1615 to gdb::optional<block_enum>.
1616 (dw2_lookup_symbol): Change block_index parameter
1617 type to block_enum.c
1618 (dw2_debug_names_lookup_symbol): Likewise.
1619 * psymtab.c (psym_lookup_symbol): Likewise.
1620 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
1621 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1622 Likewise.
1623
1624 2019-09-06 Christian Biesinger <cbiesinger@google.com>
1625
1626 * defs.h (relocate_gdb_directory): Change int to bool in
1627 signature and rename flag to relocatable.
1628 * main.c (relocate_path): Likewise.
1629 (relocate_gdb_directory): Likewise.
1630
1631 2019-09-06 Alan Modra <amodra@gmail.com>
1632
1633 * coffread.c (coff_symfile_read): Constify filename variable.
1634 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
1635 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
1636 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
1637 * solib.c (reload_shared_libraries_1): Likewise.
1638 * symfile.c (reread_symbols): Likewise.
1639 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
1640 * solib-darwin.c (darwin_bfd_open): Likewise.
1641 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1642
1643 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1644
1645 * psymtab.c (print_partial_symbols): Handle missing domain_enum
1646 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
1647
1648 2019-09-03 Tom Tromey <tromey@adacore.com>
1649
1650 * ada-valprint.c (ada_val_print_num): Don't recurse for range
1651 types.
1652 (has_negatives): Unbias a range type bound.
1653 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
1654 * gdbtypes.c (operator==): Handle new field.
1655 (create_range_type): Add "bias" parameter.
1656 (create_static_range_type, resolve_dynamic_range): Update.
1657 * gdbtypes.h (struct range_bounds) <bias>: New member.
1658 (create_range_type): Add bias parameter.
1659 * printcmd.c (print_scalar_formatted): Unbias range types.
1660 * value.c (unpack_long): Unbias range types.
1661 (pack_long): Bias range types.
1662
1663 2019-09-02 Alan Hayward <alan.hayward@arm.com>
1664
1665 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
1666 probe arguments.
1667
1668 2019-09-02 Alan Hayward <alan.hayward@arm.com>
1669
1670 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
1671 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
1672 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
1673 (compile_probe_arg): Likewise.
1674 * probe.h (get_argument_count): Likewise.
1675 * solib-svr4.c (solib_event_probe_action): Likewise.
1676 * stap-probe.c (stap_probe::get_argument_count): Likewise.
1677
1678 2019-09-02 Alan Hayward <alan.hayward@arm.com>
1679
1680 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
1681 code to here...
1682 (svr4_create_solib_event_breakpoints): ...from here.
1683
1684 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
1685
1686 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
1687 suffix from warning message.
1688
1689 2019-08-30 Tom Tromey <tom@tromey.com>
1690
1691 * tui/tui-winsource.h (struct tui_source_window_base)
1692 <refresh_all>: Don't declare.
1693 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
1694 Remove.
1695 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
1696 tui_show_locator_content.
1697 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
1698 declare.
1699 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
1700 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
1701 declare.
1702
1703 2019-08-30 Tom Tromey <tom@tromey.com>
1704
1705 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
1706
1707 2019-08-30 Tom Tromey <tom@tromey.com>
1708
1709 * tui/tui-stack.c (_initialize_tui_stack): Move later.
1710 Remove unnecessary forward declarations.
1711
1712 2019-08-30 Tom Tromey <tom@tromey.com>
1713
1714 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
1715 rerender.
1716 (tui_update_locator_fullname, tui_show_frame_info): Don't call
1717 tui_show_locator_content.
1718
1719 2019-08-30 Tom Tromey <tom@tromey.com>
1720
1721 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
1722 (tui_locator_window::rerender): Rewrite using body of previous
1723 tui_show_locator_content.
1724
1725 2019-08-30 Tom Tromey <tom@tromey.com>
1726
1727 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
1728 set_locator_fullname>: New methods.
1729 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1730 Rename from tui_set_locator_fullname.
1731 (tui_locator_window::set_locator_info): Rename from
1732 tui_set_locator_info. Return bool.
1733 (tui_update_locator_fullname, tui_show_frame_info): Update.
1734
1735 2019-08-30 Tom Tromey <tom@tromey.com>
1736
1737 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
1738
1739 2019-08-30 Tom Tromey <tom@tromey.com>
1740
1741 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
1742 call touchwin.
1743
1744 2019-08-30 Tom Tromey <tom@tromey.com>
1745
1746 * tui/tui-wingeneral.c (box_win): Assume win_info and
1747 win_info->handle cannot be NULL.
1748
1749 2019-08-30 Tom Tromey <tom@tromey.com>
1750
1751 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
1752 refresh_window>: Declare.
1753 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
1754 resize.
1755 (tui_data_item_window::rerender): Rename from
1756 tui_display_register.
1757 (tui_data_item_window::refresh_window): New method.
1758 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
1759 no-op.
1760
1761 2019-08-30 Tom Tromey <tom@tromey.com>
1762
1763 * tui/tui-regs.h (struct tui_data_window) <regs_content,
1764 regs_column_count, current_group>: Move later. Now private.
1765 <get_current_group>: New method.
1766 * tui/tui-regs.c (tui_reg_command): Update.
1767 * tui/tui-layout.c (tui_set_layout): Update.
1768
1769 2019-08-30 Tom Tromey <tom@tromey.com>
1770
1771 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1772 (tui_data_window::rerender): Don't call
1773 check_and_display_highlight_if_needed.
1774 (tui_data_window::refresh_all): Remove call to
1775 erase_data_content.
1776
1777 2019-08-30 Tom Tromey <tom@tromey.com>
1778
1779 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1780 (tui_data_window::display_registers_from)
1781 (tui_data_window::display_reg_element_at_line)
1782 (tui_data_window::display_registers_from_line): Remove checks of
1783 "empty".
1784
1785 2019-08-30 Tom Tromey <tom@tromey.com>
1786
1787 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
1788 Don't declare.
1789 * tui/tui-regs.c (tui_data_window::show_registers): Call
1790 rerender.
1791 (tui_data_window::rerender): Rename from display_all_data.
1792 (tui_data_window::rerender): Remove old implementation.
1793
1794 2019-08-30 Tom Tromey <tom@tromey.com>
1795
1796 * tui/tui-regs.c (tui_data_window::display_all_data): Change
1797 text.
1798 * tui/tui-data.h (NO_DATA_STRING): Remove define.
1799
1800 2019-08-29 Bernhard Wodok <barto@gmx.net>
1801 Sergio Durigan Junior <sergiodj@redhat.com>
1802
1803 PR win32/24284
1804 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
1805
1806 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1807
1808 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
1809 when searching for types.
1810
1811 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1812
1813 * f-lang.c (f_language_defn): Use f_print_typedef.
1814 * f-lang.h (f_print_typedef): Declare.
1815 * f-typeprint.c (f_print_typedef): Define.
1816
1817 2019-08-27 Christian Biesinger <cbiesinger@google.com>
1818
1819 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
1820
1821 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
1822
1823 * cli/cli-utils.c (info_print_options_defs): Delete.
1824 (make_info_print_options_def_group): Delete.
1825 (extract_info_print_options): Delete.
1826 (info_print_command_completer): Delete.
1827 (info_print_args_help): Add extra parameter, and optionally
1828 include text about -n flag.
1829 * cli/cli-utils.h (struct info_print_options): Delete.
1830 (extract_info_print_options): Delete declaration.
1831 (info_print_command_completer): Delete declaration.
1832 (info_print_args_help): Add extra parameter, extend header
1833 comment.
1834 * python/python.c (gdbpy_rbreak): Pass additional parameter to
1835 search_symbols.
1836 * stack.c (struct info_print_options): New type.
1837 (info_print_options_defs): New file scoped variable.
1838 (make_info_print_options_def_group): New static function.
1839 (info_print_command_completer): New static function.
1840 (info_locals_command): Update to use new local functions.
1841 (info_args_command): Likewise.
1842 (_initialize_stack): Add extra parameter to calls to
1843 info_print_args_help.
1844 * symtab.c (search_symbols): Add extra parameter, use this to
1845 possibly excluse non-debug symbols.
1846 (symtab_symbol_info): Add extra parameter, which is passed on to
1847 search_symbols.
1848 (struct info_print_options): New type.
1849 (info_print_options_defs): New file scoped variable.
1850 (make_info_print_options_def_group): New static function.
1851 (info_print_command_completer): New static function.
1852 (info_variables_command): Update to use local functions, and pass
1853 extra parameter through to symtab_symbol_info.
1854 (info_functions_command): Likewise.
1855 (info_types_command): Pass additional argument through to
1856 symtab_symbol_info.
1857 (rbreak_command): Pass extra argument to search_symbols.
1858 (_initialize_symtab): Add extra arguments for calls to
1859 info_print_args_help, and update help text for 'info variables',
1860 'whereis', and 'info functions' commands.
1861 * symtab.h (search_symbols): Add extra argument to declaration.
1862 * NEWS: Mention new flags.
1863
1864 2019-08-26 Christian Biesinger <cbiesinger@google.com>
1865
1866 * symtab.c (lookup_static_symbol): Call the new function (and move
1867 it down to be next to lookup_global_symbol).
1868 (struct global_sym_lookup_data): Add block_enum member and rename to...
1869 (struct global_or_static_sym_lookup_data): ...this.
1870 (lookup_symbol_global_iterator_cb): Pass block_index instead of
1871 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
1872 (lookup_symbol_global_or_static_iterator_cb): ...this.
1873 (lookup_global_or_static_symbol): New function.
1874 (lookup_global_symbol): Call new function.
1875
1876 2019-08-26 Tom de Vries <tdevries@suse.de>
1877
1878 PR c++/24852
1879 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
1880 when pc_probe.prob == NULL.
1881
1882 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
1883
1884 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
1885 variable symbol_linkage to symbol_linkage_.
1886
1887 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
1888
1889 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
1890 represent whether the symbol is static, dynamic, or we don't
1891 know.
1892
1893 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
1894
1895 * gdb/rx-tdep.c (rx_register_names): New.
1896 (rx_register_name): Delete.
1897 (rx_psw_type): Delete.
1898 (rx_fpsw_type): Delete.
1899 (rx_register_type): Delete.
1900 (rx_gdbarch_init): Convert target-descriptions.
1901 (_initialize_rx_tdep): Add initialize_tdesc_rx.
1902 * gdb/features/Makefile: Add rx.xml.
1903 * gdb/features/rx.xml: New.
1904 * gdb/features/rx.c: Generated.
1905 * gdb/NEWS: Mention target description support.
1906
1907 2019-08-22 Christian Biesinger <cbiesinger@google.com>
1908
1909 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
1910 *slot_ptr.
1911
1912 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1913
1914 * configure.ac: Don't check for 'dlfcn.h' (moved to
1915 gdbsupport/common.m4).
1916 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
1917 'gdbsupport/'.
1918 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
1919 * compile/compile-c-support.c: Include
1920 'gdbsupport/gdb-dlfcn.h'.
1921 * gdbsupport/common.m4: Check for 'dlfcn.h'.
1922 * gdb-dlfcn.c: Move to...
1923 * gdbsupport/gdb-dlfcn.c: ... here.
1924 * gdb-dlfcn.h: Move to...
1925 * gdbsupport/gdb-dlfcn.h: ... here.
1926
1927 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
1928
1929 * nios2-tdep.c (struct reg_value): Improve comments. Make
1930 the offset field signed.
1931
1932 2019-08-22 Christian Biesinger <cbiesinger@google.com>
1933
1934 * python/lib/gdb/__init__.py (_execute_file): New function.
1935 * python/python.c (python_run_simple_file): Call gdb._execute_file
1936 on Windows.
1937
1938 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
1939
1940 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
1941 all uses as this was never set to anything but a zero value.
1942
1943 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
1944
1945 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
1946
1947 2019-08-21 Christian Biesinger <cbiesinger@google.com>
1948
1949 * tui/tui-data.h (tui_gen_win_info): Add an =default
1950 move constructor, required by some GCC versions.
1951
1952 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
1953
1954 * go32-nat.c (go32_sysinfo): Add hygon_p.
1955
1956 2019-08-20 Tom Tromey <tom@tromey.com>
1957
1958 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
1959 line_from_reg_element_no, first_reg_element_no_inline,
1960 display_all_data, delete_data_content_windows,
1961 erase_data_content>: Now private.
1962
1963 2019-08-20 Tom Tromey <tom@tromey.com>
1964
1965 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
1966 (tui_unhighlight_win, tui_highlight_win)
1967 (tui_win_info::make_window): Update.
1968 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
1969
1970 2019-08-20 Tom Tromey <tom@tromey.com>
1971
1972 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1973 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1974 (MAX_PID_WIDTH): Move to tui-stack.c.
1975 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1976 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1977 (MAX_PID_WIDTH): Move from tui-data.h.
1978
1979 2019-08-20 Tom Tromey <tom@tromey.com>
1980
1981 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
1982 * tui/tui-wingeneral.c (box_win): Change type of win_info.
1983 (box_win): Update.
1984 (tui_gen_win_info::make_window): Rename from tui_make_window.
1985 (tui_win_info::make_window): New method.
1986 (tui_gen_win_info::make_visible): Update.
1987 * tui/tui-source.c (tui_source_window::set_contents): Update.
1988 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1989 (tui_data_window::display_registers_from): Update.
1990 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1991 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
1992 Declare.
1993 <can_box>: Remove.
1994 <title>: Remove.
1995 (struct tui_win_info) <make_window>: Declare.
1996 <can_box>: Now virtual.
1997 <title>: New member.
1998 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
1999 * tui/tui-command.c (tui_cmd_window::resize): Update.
2000
2001 2019-08-20 Tom Tromey <tom@tromey.com>
2002
2003 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
2004 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2005 (tui_data_window::check_register_values): Update.
2006
2007 2019-08-20 Tom Tromey <tom@tromey.com>
2008
2009 * tui/tui-regs.h (struct tui_data_window): Use
2010 DISABLE_COPY_AND_ASSIGN.
2011 <regs_content>: Change type, removing unique_ptr.
2012 <tui_data_window>: Add move constructor.
2013 * tui/tui-regs.c (tui_data_window::show_registers)
2014 (tui_data_window::show_register_group)
2015 (tui_data_window::display_registers_from)
2016 (tui_data_window::display_registers_from)
2017 (tui_data_window::first_data_item_displayed)
2018 (tui_data_window::delete_data_content_windows)
2019 (tui_data_window::rerender, tui_data_window::refresh_window)
2020 (tui_data_window::check_register_values): Update.
2021
2022 2019-08-20 Tom Tromey <tom@tromey.com>
2023
2024 * tui/tui-regs.h (struct tui_data_window) <show_registers,
2025 show_register_group>: Declare.
2026 (tui_show_register_group): Don't declare.
2027 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
2028 tui_show_registers.
2029 (tui_data_window::show_register_group): Rename from
2030 tui_show_register_group.
2031 (tui_data_window::check_register_values, tui_reg_command):
2032 Update.
2033 * tui/tui-layout.c (tui_set_layout): Update.
2034
2035 2019-08-20 Tom Tromey <tom@tromey.com>
2036
2037 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
2038 Declare.
2039 (tui_check_register_values): Don't declare.
2040 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
2041 from tui_check_register_values.
2042 * tui/tui-hooks.c (tui_register_changed): Update.
2043
2044 2019-08-20 Tom Tromey <tom@tromey.com>
2045
2046 * tui/tui-regs.c (tui_reg_layout): Move later.
2047 (tui_show_registers): Don't enable TUI mode or change layout.
2048
2049 2019-08-20 Tom Tromey <tom@tromey.com>
2050
2051 * tui/tui-regs.h (struct tui_data_item_window)
2052 <~tui_data_item_window>: Remove.
2053 <content>: Now a unique_xmalloc_ptr.
2054 * tui/tui-regs.c (tui_register_format): Return a
2055 unique_xmalloc_ptr.
2056 (tui_get_register): Update.
2057 (~tui_data_item_window): Remove.
2058 (tui_data_window::display_registers_from, tui_display_register):
2059 Update.
2060 * tui/tui-io.h (tui_expand_tabs): Update.
2061 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
2062 Remove "col" parameter.
2063
2064 2019-08-20 Tom Tromey <tom@tromey.com>
2065
2066 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
2067 field.
2068 * tui/tui-regs.c (~tui_data_item_window): Update.
2069
2070 2019-08-20 Tom Tromey <tom@tromey.com>
2071
2072 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
2073 earlier.
2074
2075 2019-08-20 Tom Tromey <tom@tromey.com>
2076
2077 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
2078
2079 2019-08-20 Tom Tromey <tom@tromey.com>
2080
2081 * tui/tui-source.h (struct tui_source_window): Update.
2082 * tui/tui-regs.c (tui_show_registers): Update.
2083 * tui/tui-disasm.h (struct tui_disasm_window): Update.
2084 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
2085 (NO_REGS_STRING): Remove defines.
2086
2087 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
2088
2089 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
2090 unnecessary thread walk if remote doesn't support the packet.
2091
2092 2019-08-19 Tom Tromey <tromey@adacore.com>
2093
2094 * python/py-value.c (value_has_field): Fix indentation.
2095
2096 2019-08-19 Tom Tromey <tromey@adacore.com>
2097
2098 * printcmd.c (do_one_display, info_display_command): Update.
2099 * block.h (contained_in): Return bool. Add allow_nested
2100 parameter.
2101 * block.c (contained_in): Return bool. Add allow_nested
2102 parameter.
2103
2104 2019-08-19 Tom Tromey <tom@tromey.com>
2105
2106 * configure: Rebuild.
2107 * configure.ac: Disallow the combination of -static-libstdc++ and
2108 source highlight.
2109 * source-cache.c (get_language_name): Handle rust.
2110 (source_cache::get_source_lines): Ignore highlighting exceptions.
2111
2112 2019-08-16 Tom Tromey <tom@tromey.com>
2113
2114 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
2115 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
2116 (struct tui_source_window_base) <make_visible, refresh_window,
2117 resize>: Remove methods.
2118 <execution_info>: Remove field.
2119 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
2120 (tui_show_source_line, tui_source_window_base)
2121 (~tui_source_window_base): Update.
2122 (tui_source_window_base::resize)
2123 (tui_source_window_base::make_visible)
2124 (tui_source_window_base::refresh_window): Remove.
2125 (tui_source_window_base::update_exec_info): Update.
2126 * tui/tui-source.c (tui_source_window::set_contents): Update.
2127 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2128
2129 2019-08-16 Tom Tromey <tom@tromey.com>
2130
2131 * tui/tui-hooks.c (tui_remove_hooks): Don't set
2132 deprecated_query_hook.
2133
2134 2019-08-16 Tom Tromey <tom@tromey.com>
2135
2136 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2137 (tui_update_source_windows_with_line): Update.
2138 * tui/tui-source.h (struct tui_source_window)
2139 <show_symtab_source>: Declare.
2140 (tui_show_symtab_source): Don't declare.
2141 * tui/tui-source.c (tui_show_symtab_source): Rename from
2142 tui_show_symtab_source.
2143
2144 2019-08-16 Tom Tromey <tom@tromey.com>
2145
2146 * tui/tui-winsource.h (struct tui_source_window_base)
2147 <set_contents>: Declare.
2148 * tui/tui-winsource.c
2149 (tui_source_window_base::update_source_window_as_is): Update.
2150 * tui/tui-source.h (struct tui_source_window) <set_contents>:
2151 Declare.
2152 (tui_set_source_content): Don't declare.
2153 * tui/tui-source.c (tui_source_window::set_contents): Rename from
2154 tui_set_source_content.
2155 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
2156 Declare.
2157 (tui_set_disassem_content): Don't declare.
2158 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
2159 tui_set_disassem_content.
2160
2161 2019-08-16 Tom Tromey <tom@tromey.com>
2162
2163 * tui/tui-winsource.h (struct tui_source_window_base)
2164 <update_breakpoint_info>: Declare.
2165 (tui_update_breakpoint_info): Don't declare.
2166 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
2167 (tui_update_all_breakpoint_info): Update.
2168 (tui_source_window_base::update_breakpoint_info): Rename from
2169 tui_update_breakpoint_info.
2170 (tui_source_window_base::update_exec_info): Update.
2171
2172 2019-08-16 Tom Tromey <tom@tromey.com>
2173
2174 * tui/tui-winsource.h (struct tui_source_window_base)
2175 <update_source_window>: Declare.
2176 (tui_update_source_window): Don't declare.
2177 * tui/tui-winsource.c
2178 (tui_source_window_base::update_source_window): Rename from
2179 tui_update_source_window.
2180 (tui_source_window_base::rerender): Update.
2181 * tui/tui-source.c (tui_source_window::maybe_update): Update.
2182 * tui/tui-disasm.c (tui_show_disassem)
2183 (tui_show_disassem_and_update_source)
2184 (tui_disasm_window::maybe_update): Update.
2185
2186 2019-08-16 Tom Tromey <tom@tromey.com>
2187
2188 * tui/tui-winsource.h (struct tui_source_window_base)
2189 <update_source_window_as_is>: Declare.
2190 (tui_update_source_window_as_is): Don't declare.
2191 * tui/tui-winsource.c (tui_update_source_window): Update
2192 (tui_source_window_base::update_source_window_as_is): Rename from
2193 tui_update_source_window_as_is.
2194 (tui_source_window_base::refill): Update.
2195 * tui/tui-source.c (tui_show_symtab_source): Update.
2196 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
2197 Update.
2198
2199 2019-08-16 Tom Tromey <tom@tromey.com>
2200
2201 * tui/tui-winsource.h (tui_update_source_window)
2202 (tui_update_source_window_as_is): Remove "noerror" parameter.
2203 * tui/tui-winsource.c (tui_update_source_window)
2204 (tui_update_source_window_as_is): Remove "noerror" parameter.
2205 (tui_update_source_windows_with_addr)
2206 (tui_update_source_windows_with_line)
2207 (tui_source_window_base::rerender)
2208 (tui_source_window_base::refill): Update.
2209 * tui/tui-source.h (tui_set_source_content)
2210 (tui_show_symtab_source): Remove "noerror" parameter.
2211 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
2212 parameter.
2213 (tui_show_symtab_source): Likewise.
2214 (tui_source_window::maybe_update): Update.
2215 * tui/tui-disasm.c (tui_show_disassem)
2216 (tui_show_disassem_and_update_source)
2217 (tui_disasm_window::do_scroll_vertical)
2218 (tui_disasm_window::maybe_update): Update.
2219
2220 2019-08-16 Tom Tromey <tom@tromey.com>
2221
2222 * tui/tui.c (tui_is_window_visible): Update.
2223 * tui/tui-wingeneral.c (tui_make_window)
2224 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
2225 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
2226 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
2227 (tui_set_win_height_command, parse_scrolling_args): Update.
2228 * tui/tui-source.c (tui_source_window::style_changed): Update.
2229 * tui/tui-regs.c (tui_show_registers)
2230 (tui_data_window::first_data_item_displayed)
2231 (tui_data_window::delete_data_content_windows)
2232 (tui_check_register_values, tui_reg_command): Update.
2233 * tui/tui-disasm.c (tui_show_disassem): Update.
2234 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
2235 method.
2236 <is_visible>: Remove field.
2237 * tui/tui-data.c (tui_next_win, tui_prev_win)
2238 (tui_delete_invisible_windows): Update.
2239
2240 2019-08-16 Tom Tromey <tom@tromey.com>
2241
2242 * tui/tui-winsource.h (struct tui_source_window_base)
2243 <m_has_locator>: Remove.
2244 * tui/tui-layout.c (show_source_disasm_command, show_data)
2245 (show_source_or_disasm_and_command): Update.
2246
2247 2019-08-16 Alan Hayward <alan.hayward@arm.com>
2248
2249 * NEWS (Other MI changes): New subsection.
2250 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
2251 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
2252 * arch-utils.c (default_get_pc_address_flags): New function.
2253 * arch-utils.h (default_get_pc_address_flags): New declaration.
2254 * gdbarch.sh: Add get_pc_address_flags.
2255 * gdbarch.c: Regenerate.
2256 * gdbarch.h: Likewise.
2257 * stack.c (print_pc): New function.
2258 (print_frame_info) (print_frame): Call print_pc.
2259
2260 2019-08-16 Tom de Vries <tdevries@suse.de>
2261
2262 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
2263 print_objfile_section_info.
2264
2265 2019-08-15 Tom Tromey <tom@tromey.com>
2266
2267 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
2268 calling update_cmdwin_start_line.
2269 * tui/tui-winsource.h (struct tui_source_window_base)
2270 <do_make_visible_with_new_height, set_new_height>: Don't declare.
2271 <rerender>: Declare.
2272 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
2273 Call rerender.
2274 (tui_source_window_base::set_new_height): Remove.
2275 (tui_source_window_base::rerender): Rename from
2276 do_make_visible_with_new_height.
2277 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
2278 resize method.
2279 (tui_win_info::make_invisible_and_set_new_height)
2280 (tui_win_info::make_visible_with_new_height): Remove.
2281 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
2282 Declare.
2283 * tui/tui-stack.c (tui_locator_window::rerender): New method.
2284 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
2285 do_make_visible_with_new_height>: Don't declare.
2286 <rerender>: Declare.
2287 * tui/tui-regs.c (tui_data_window::rerender): Rename from
2288 set_new_height.
2289 (tui_data_window::do_make_visible_with_new_height): Remove.
2290 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
2291 call tui_show_locator_content.
2292 (tui_gen_win_info::resize): Call rerender.
2293 (show_source_or_disasm_and_command): Don't call
2294 tui_show_locator_content.
2295 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
2296 method.
2297 (struct tui_win_info) <rerender>: Declare.
2298 <set_new_height, make_invisible_and_set_new_height,
2299 make_visible_with_new_height>: Don't declare.
2300 * tui/tui-data.c (tui_win_list::rerender): New method.
2301 * tui/tui-command.h (struct tui_cmd_window)
2302 <do_make_visible_with_new_height>: Don't declare.
2303 * tui/tui-command.c
2304 (tui_cmd_window::do_make_visible_with_new_height): Remove.
2305
2306 2019-08-15 Tom Tromey <tromey@adacore.com>
2307
2308 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
2309 * ada-lang.c (ada_enum_name): Likewise.
2310
2311 2019-08-15 Christian Biesinger <cbiesinger@google.com>
2312
2313 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
2314 leading underscore.
2315 (GdbOutputErrorFile): Likewise.
2316 (global scope): Adjust constructor calls to GdbOutput{,Error}File
2317 accordingly.
2318 (execute_unwinders): Rename to have a leading underscore.
2319 (auto_load_packages): Likewise.
2320 (global scope): Adjust call to auto_load_packages accordingly.
2321 (GdbSetPythonDirectory): Likewise.
2322 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
2323 instead of execute_unwinders.
2324
2325 2019-08-15 Tom Tromey <tom@tromey.com>
2326
2327 * tui/tui-layout.c (show_layout, show_source_disasm_command)
2328 (show_data): Don't change window visibility.
2329 (tui_gen_win_info::resize): Remove special case for command
2330 window. Use wresize, when available.
2331 (show_source_or_disasm_and_command): Don't change window
2332 visibility.
2333 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
2334 <make_visible>: New method.
2335 * tui/tui-command.c (tui_cmd_window::resize): New method.
2336
2337 2019-08-15 Tom Tromey <tom@tromey.com>
2338
2339 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
2340 (struct tui_source_windows): New.
2341 * tui/tui-winsource.c (tui_display_main): Update.
2342 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2343 (new_height_ok, parse_scrolling_args): Update.
2344 * tui/tui-layout.c (show_layout, show_data): Update.
2345 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
2346 (tui_add_to_source_windows): Don't declare.
2347 * tui/tui-data.c (source_windows, tui_source_windows)
2348 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
2349
2350 2019-08-15 Tom Tromey <tom@tromey.com>
2351
2352 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
2353 Rename from reset.
2354 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
2355 * tui/tui-layout.c (show_source_disasm_command, show_data):
2356 Update.
2357 (tui_gen_win_info::resize): Rename.
2358 (show_source_or_disasm_and_command): Update.
2359 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
2360 reset.
2361
2362 2019-08-15 Tom Tromey <tom@tromey.com>
2363
2364 * tui/tui-stack.c (tui_initialize_static_data): Remove.
2365 * tui/tui-interp.c (tui_interp::init): Don't call
2366 tui_initialize_static_data.
2367 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
2368
2369 2019-08-15 Tom Tromey <tom@tromey.com>
2370
2371 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
2372 examine tui_win_list.
2373
2374 2019-08-15 Tom Tromey <tom@tromey.com>
2375
2376 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
2377 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
2378 tui_clear_source_content.
2379 (tui_clear_source_content): Remove.
2380 (tui_source_window_base::do_erase_source_content): Hoist call to
2381 content.clear().
2382 * tui/tui-stack.c (tui_show_frame_info): Don't call
2383 tui_clear_source_content.
2384
2385 2019-08-15 Tom Tromey <tom@tromey.com>
2386
2387 * tui/tui-winsource.h (struct tui_source_window_base)
2388 <do_erase_source_content>: New method.
2389 <erase_source_content>: New method.
2390 (tui_erase_source_content): Don't declare.
2391 * tui/tui-winsource.c (tui_clear_source_content): Update.
2392 (tui_source_window_base::do_erase_source_content): Rename from
2393 tui_erase_source_content.
2394 (tui_source_window_base::show_source_content): Update.
2395 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2396 * tui/tui-source.h (struct tui_source_window)
2397 <erase_source_content>: New method.
2398 * tui/tui-disasm.h (struct tui_disasm_window)
2399 <erase_source_content>: New method.
2400
2401 2019-08-15 Tom Tromey <tom@tromey.com>
2402
2403 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
2404 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
2405 constructor.
2406 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
2407 * tui/tui-source.c (tui_set_source_content): Update.
2408 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2409
2410 2019-08-15 Tom Tromey <tom@tromey.com>
2411
2412 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
2413 * tui/tui-winsource.c (tui_line_is_displayed): Move to
2414 tui-source.c.
2415 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
2416 Declare.
2417 * tui/tui-source.c (tui_source_window::line_is_displayed): New
2418 method.
2419 (tui_source_window::maybe_update): Update.
2420
2421 2019-08-15 Tom Tromey <tom@tromey.com>
2422
2423 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
2424 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
2425 tui-disasm.c.
2426 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
2427 Declare.
2428 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
2429 method.
2430 (tui_disasm_window::maybe_update): Update.
2431
2432 2019-08-15 Tom Tromey <tom@tromey.com>
2433
2434 * tui/tui-winsource.h (struct tui_source_window_base)
2435 <maybe_update>: Declare.
2436 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
2437 method.
2438 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
2439 Declare.
2440 * tui/tui-source.c (tui_source_window::maybe_update): New method.
2441 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
2442 Declare.
2443 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
2444
2445 2019-08-15 Tom Tromey <tom@tromey.com>
2446
2447 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
2448
2449 2019-08-15 Tom Tromey <tom@tromey.com>
2450
2451 * tui/tui-wingeneral.c: Include tui-stack.h.
2452 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
2453 (struct tui_locator_window): Move from tui-data.h.
2454 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
2455 (tui_initialize_static_data): Move from tui-data.c.
2456 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
2457 (struct tui_locator_window): Move to tui-stack.c.
2458 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
2459 (tui_initialize_static_data): Move to tui-stack.c.
2460
2461 2019-08-15 Tom Tromey <tom@tromey.com>
2462
2463 * tui/tui-layout.c (show_source_disasm_command)
2464 (show_source_or_disasm_and_command): Use make_visible method, not
2465 tui_make_window.
2466 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
2467 Remove.
2468
2469 2019-08-15 Tom Tromey <tom@tromey.com>
2470
2471 * tui/tui-wingeneral.h (tui_make_window): Update.
2472 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
2473 parameter.
2474 (tui_gen_win_info::make_visible): Update.
2475 * tui/tui-regs.c (tui_data_window::display_registers_from):
2476 Update.
2477 * tui/tui-layout.c (show_source_disasm_command)
2478 (show_source_or_disasm_and_command): Update.
2479 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
2480 (enum tui_box): Remove.
2481 (struct tui_win_info) <can_box>: New method.
2482 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
2483 method.
2484
2485 2019-08-15 Tom de Vries <tdevries@suse.de>
2486
2487 * linux-nat-trad.c: Include gdbarch.h.
2488
2489 2019-08-14 Alan Hayward <alan.hayward@arm.com>
2490
2491 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
2492 register sizes.
2493
2494 2019-08-14 Tom Tromey <tromey@adacore.com>
2495
2496 * darwin-nat.c: Include gdbarch.h.
2497 * darwin-nat-info.c: Include gdbarch.h.
2498
2499 2019-08-13 Tom Tromey <tom@tromey.com>
2500
2501 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
2502 Remove.
2503 * tui/tui-data.c (tui_initialize_static_data): Update.
2504
2505 2019-08-13 Tom Tromey <tom@tromey.com>
2506
2507 * tui/tui-winsource.h (struct tui_exec_info_window)
2508 <~tui_exec_info_window, maybe_allocate_content, get_content,
2509 m_content>: Remove.
2510 (struct tui_source_window_base) <set_exec_info_content,
2511 show_exec_info_content>: Don't declare.
2512 * tui/tui-winsource.c
2513 (tui_exec_info_window::maybe_allocate_content): Remove.
2514 (tui_source_window_base::update_exec_info): Rename from
2515 set_exec_info_content.
2516 (tui_source_window_base::show_exec_info_content)
2517 (tui_source_window_base::update_exec_info): Remove.
2518
2519 2019-08-13 Tom Tromey <tom@tromey.com>
2520
2521 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
2522 declare.
2523 * tui/tui-winsource.c (tui_update_source_window_as_is)
2524 (tui_update_source_windows_with_addr, tui_erase_source_content):
2525 Update.
2526 (tui_clear_exec_info_content): Remove.
2527
2528 2019-08-13 Tom Tromey <tom@tromey.com>
2529
2530 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
2531 declare.
2532 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
2533 call tui_erase_exec_info_content.
2534 (tui_clear_exec_info_content): Rename from
2535 tui_erase_exec_info_content.
2536 (tui_clear_exec_info_content): Delete.
2537
2538 2019-08-13 Tom Tromey <tom@tromey.com>
2539
2540 * tui/tui-winsource.h (struct tui_source_window_base)
2541 <show_exec_info_content>: Declare.
2542 (tui_show_exec_info_content): Don't declare.
2543 * tui/tui-winsource.c
2544 (tui_source_window_base::show_exec_info_content): Rename from
2545 tui_show_exec_info_content.
2546 (tui_source_window_base::update_exec_info): Update.
2547
2548 2019-08-13 Tom Tromey <tom@tromey.com>
2549
2550 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
2551 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
2552 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
2553 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
2554 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
2555 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
2556 ... here.
2557
2558 2019-08-13 Tom Tromey <tom@tromey.com>
2559
2560 * tui/tui-winsource.h (struct tui_source_window_base)
2561 <update_exec_info>: Declare.
2562 (tui_update_exec_info): Don't declare.
2563 * tui/tui-winsource.c (tui_update_source_window_as_is)
2564 (tui_source_window_base::refresh_all)
2565 (tui_update_all_breakpoint_info): Update.
2566 (tui_source_window_base::update_exec_info): Rename from
2567 tui_update_exec_info.
2568 * tui/tui-stack.c (tui_show_frame_info): Update.
2569
2570 2019-08-13 Tom Tromey <tom@tromey.com>
2571
2572 * tui/tui-winsource.h (struct tui_source_window_base)
2573 <set_exec_info_content>: Declare.
2574 (tui_set_exec_info_content): Don't declare.
2575 * tui/tui-winsource.c
2576 (tui_source_window_base::set_exec_info_content): Rename from
2577 tui_set_exec_info_content.
2578 (tui_update_exec_info): Update.
2579
2580 2019-08-13 Tom Tromey <tom@tromey.com>
2581
2582 * tui/tui-winsource.h (struct tui_source_window_base)
2583 <show_source_content>: Declare.
2584 (tui_show_source_content): Don't declare.
2585 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2586 (tui_source_window_base::show_source_content): Rename from
2587 tui_show_source_content.
2588 (tui_source_window_base::refresh_all): Update.
2589 * tui/tui-layout.c (show_source_disasm_command)
2590 (show_source_or_disasm_and_command): Update.
2591
2592 2019-08-13 Tom Tromey <tom@tromey.com>
2593
2594 * tui/tui-winsource.c (tui_erase_source_content)
2595 (tui_show_source_content, tui_source_window_base::refresh_all):
2596 Update.
2597 * tui/tui-wingeneral.h
2598 (tui_check_and_display_highlight_if_needed): Don't declare.
2599 * tui/tui-wingeneral.c
2600 (tui_win_info::check_and_display_highlight_if_needed): Rename from
2601 check_and_display_highlight_if_needed.
2602 * tui/tui-win.c (tui_rehighlight_all)
2603 (tui_win_info::make_visible_with_new_height): Update.
2604 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2605 (tui_data_window::erase_data_content)
2606 (tui_data_window::display_all_data): Update.
2607 * tui/tui-data.h (struct tui_win_info)
2608 <check_and_display_highlight_if_needed>: Declare.
2609
2610 2019-08-13 Tom Tromey <tom@tromey.com>
2611
2612 * tui/tui-win.c (tui_resize_all): Call
2613 tui_delete_invisible_windows.
2614 * tui/tui-layout.c (show_layout): Call
2615 tui_delete_invisible_windows.
2616 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
2617 * tui/tui-data.c (tui_delete_invisible_windows): New function.
2618
2619 2019-08-13 Tom Tromey <tom@tromey.com>
2620
2621 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
2622 tui_add_win_to_layout.
2623
2624 2019-08-13 Tom Tromey <tom@tromey.com>
2625
2626 * tui/tui-layout.h (tui_default_win_height): Don't declare.
2627 * tui/tui-layout.c (tui_default_win_height): Now static.
2628
2629 2019-08-13 Tom Tromey <tom@tromey.com>
2630
2631 * tui/tui-layout.c (show_layout): Unify all layout cases into a
2632 single switch.
2633 (show_source_disasm_command, show_source_or_disasm_and_command):
2634 Don't check current layout.
2635
2636 2019-08-13 Tom Tromey <tom@tromey.com>
2637
2638 * tui/tui-wingeneral.c (make_all_visible): Remove.
2639 (tui_make_all_invisible): Simplify.
2640 * tui/tui-layout.c (tui_make_all_invisible): Move from
2641 tui-wingeneral.c; simplify.
2642 (show_layout): Hoist call to tui_make_all_invisible.
2643 (show_data): Don't call tui_make_all_invisible.
2644
2645 2019-08-13 Tom Tromey <tom@tromey.com>
2646
2647 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
2648 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
2649
2650 2019-08-13 Tom Tromey <tom@tromey.com>
2651
2652 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
2653 tui-data.c.
2654 (show_source_disasm_command, show_data)
2655 (show_source_or_disasm_and_command): Don't use
2656 tui_set_current_layout_to.
2657 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
2658 * tui/tui-data.c (current_layout, tui_current_layout): Move to
2659 tui-layout.c.
2660 (tui_set_current_layout_to): Remove.
2661
2662 2019-08-13 Tom Tromey <tom@tromey.com>
2663
2664 * tui/tui-layout.c (tui_set_layout): Update.
2665 * tui/tui-data.h (struct tui_layout_def): Remove.
2666 (tui_layout_def): Don't declare.
2667 * tui/tui-data.c (layout_def): Remove.
2668 (tui_layout_def): Remove.
2669
2670 2019-08-13 Tom Tromey <tom@tromey.com>
2671
2672 * tui/tui-winsource.h (struct tui_source_window_base)
2673 <clear_detail>: No longer "override".
2674 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
2675 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
2676 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
2677 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
2678 Remove.
2679 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
2680
2681 2019-08-13 Tom Tromey <tromey@adacore.com>
2682
2683 * tracepoint.c: Don't include readline.h or history.h.
2684
2685 2019-08-12 Tom Tromey <tom@tromey.com>
2686
2687 * configure: Rebuild.
2688 * configure.ac: Check for readline 7.
2689 * NEWS: Mention readline 7 requirement.
2690 * README: Update.
2691
2692 2019-08-12 Tom Tromey <tom@tromey.com>
2693
2694 * mingw-hdep.c (gdb_select): Remove readline hack.
2695
2696 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2697
2698 * blockframe.c (find_pc_partial_function): Set *block to nullptr
2699 when the function fails.
2700
2701 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
2702
2703 * s390-tdep.c (s390_type_align): New function.
2704 (s390_gdbarch_init): Set it as type_align gdbarch method.
2705
2706 2019-08-09 Tom de Vries <tdevries@suse.de>
2707
2708 PR gdb/24591
2709 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
2710 pc_low with relocation offset.
2711
2712 2019-08-07 Tom Tromey <tromey@adacore.com>
2713
2714 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2715 (print_frame_args): Update.
2716 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
2717 Update.
2718 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2719 * frame.h (struct frame_arg): Add initializers.
2720 <error>: Now a unique_xmalloc_ptr.
2721
2722 2019-08-07 Alan Hayward <alan.hayward@arm.com>
2723
2724 * NEWS: Expand the Pointer Authentication entry.
2725 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
2726 (aarch64_frame_unmask_lr): ... to this.
2727 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
2728 Call aarch64_frame_unmask_lr.
2729 * frame.c (struct frame_info): Add "masked" variable.
2730 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
2731 (fprint_frame): Check for masked pc.
2732 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
2733 declarations.
2734 * python/py-framefilter.c (py_print_frame): Check for masked pc.
2735 * stack.c (print_frame): Check for masked pc.
2736
2737 2019-08-06 Tom Tromey <tom@tromey.com>
2738
2739 * stabsread.c (patch_block_stabs, read_one_struct_field)
2740 (read_enum_type): Use obstack_strndup.
2741 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
2742 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
2743 * dwarf2read.c (guess_full_die_structure_name)
2744 (anonymous_struct_prefix): Use obstack_strndup.
2745 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
2746 * c-exp.y (yylex): Use obstack_strndup.
2747 * ada-exp.y (write_object_renaming, write_ambiguous_var)
2748 (write_var_or_type): Use obstack_strndup.
2749
2750 2019-08-06 Tom Tromey <tom@tromey.com>
2751
2752 * symfile.c (reread_symbols): Use obstack_strdup.
2753 * stabsread.c (read_type): Use obstack_strdup.
2754 * gdb_obstack.h (obstack_strdup): New overload.
2755 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
2756 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
2757 (dwarf2_canonicalize_name): Use obstack_strdup.
2758 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
2759 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
2760 Use obstack_strdup.
2761
2762 2019-08-06 Tom Tromey <tom@tromey.com>
2763
2764 * gdb_obstack.h (obstack_strdup): Define.
2765 * gdb_obstack.c (obstack_strdup): Don't define.
2766
2767 2019-08-06 Tom Tromey <tom@tromey.com>
2768
2769 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
2770 obstack_strdup.
2771 * typeprint.c (typedef_hash_table::find_global_typedef): Use
2772 obstack_strdup.
2773 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
2774 * stabsread.c (common_block_start): Use obstack_strdup.
2775 * objfiles.c (set_objfile_main_name, objfile): Use
2776 obstack_strdup.
2777 * namespace.c (add_using_directive): Use obstack_strdup.
2778 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
2779 * jit.c (finalize_symtab): Use obstack_strdup.
2780 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
2781 (guess_partial_die_structure_name, partial_die_info::fixup)
2782 (dwarf2_name): Use obstack_strdup.
2783 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
2784 obstack_strdup.
2785 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
2786 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
2787 obstack_strdup.
2788 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
2789
2790 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2791
2792 * unittests/help-doc-selftests.c: New file.
2793 * Makefile.in: Add the new file.
2794
2795 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2796
2797 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
2798 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
2799 the full first line, except when FOR_VALUE_PREFIX. In this case,
2800 the trailing '.' is not output, and the first character is uppercased.
2801 (print_help_for_command): Update call to print_doc_line.
2802 (print_doc_of_command): Likewise.
2803 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
2804 * cli/cli-option.c (append_indented_doc): Do not append newline.
2805 (build_help_option): Append newline after first appended_indented_doc
2806 only if a second call is done.
2807 (build_help): Append 2 new lines before each option, except the first
2808 one.
2809 * compile/compile.c (_initialize_compile): Add new lines after
2810 %OPTIONS%, when not at the end of the help.
2811 Change help doc or code
2812 producing the help doc to respect the invariants.
2813 * maint-test-options.c (_initialize_maint_test_options): Likewise.
2814 Also removed the new line after 'Options:', as all other commands
2815 do not put an empty line between 'Options:' and the first option.
2816 * printcmd.c (_initialize_printcmd): Likewise.
2817 * stack.c (_initialize_stack): Likewise.
2818 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
2819 incorrectly telling COMMAND is optional.
2820 * ada-lang.c (_initialize_ada_language): Change help doc or code
2821 producing the help doc to respect the invariants.
2822 * ada-tasks.c (_initialize_ada_tasks): Likewise.
2823 * breakpoint.c (_initialize_breakpoint): Likewise.
2824 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
2825 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
2826 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
2827 * cli/cli-style.c (cli_style_option::add_setshow_commands,
2828 _initialize_cli_style): Likewise.
2829 * corelow.c (core_target_info): Likewise.
2830 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
2831 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
2832 * filesystem.c (_initialize_filesystem): Likewise.
2833 * frame.c (_initialize_frame): Likewise.
2834 * gnu-nat.c (add_task_commands): Likewise.
2835 * infcall.c (_initialize_infcall): Likewise.
2836 * infcmd.c (_initialize_infcmd): Likewise.
2837 * interps.c (_initialize_interpreter): Likewise.
2838 * language.c (_initialize_language): Likewise.
2839 * linux-fork.c (_initialize_linux_fork): Likewise.
2840 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
2841 * maint.c (_initialize_maint_cmds): Likewise.
2842 * memattr.c (_initialize_mem): Likewise.
2843 * printcmd.c (_initialize_printcmd): Likewise.
2844 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
2845 _RegEx): Likewise.
2846 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
2847 * record-btrace.c (_initialize_record_btrace): Likewise.
2848 * record-full.c (_initialize_record_full): Likewise.
2849 * record.c (_initialize_record): Likewise.
2850 * regcache-dump.c (_initialize_regcache_dump): Likewise.
2851 * regcache.c (_initialize_regcache): Likewise.
2852 * remote.c (add_packet_config_cmd, init_remote_threadtests,
2853 _initialize_remote): Likewise.
2854 * ser-tcp.c (_initialize_ser_tcp): Likewise.
2855 * serial.c (_initialize_serial): Likewise.
2856 * skip.c (_initialize_step_skip): Likewise.
2857 * source.c (_initialize_source): Likewise.
2858 * stack.c (_initialize_stack): Likewise.
2859 * symfile.c (_initialize_symfile): Likewise.
2860 * symtab.c (_initialize_symtab): Likewise.
2861 * target-descriptions.c (_initialize_target_descriptions): Likewise.
2862 * top.c (init_main): Likewise.
2863 * tracefile-tfile.c (tfile_target_info): Likewise.
2864 * tracepoint.c (_initialize_tracepoint): Likewise.
2865 * tui/tui-win.c (_initialize_tui_win): Likewise.
2866 * utils.c (add_internal_problem_command): Likewise.
2867 * valprint.c (value_print_option_defs): Likewise.
2868
2869 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
2870
2871 PR build/24886
2872 * configure.ac: Drop enable-libmcheck support.
2873 * configure, config.in: Rebuild.
2874 * libmcheck.m4: Remove.
2875 * acinclude.m4: Don't include it.
2876 * Makefile.in: Don't distribute it.
2877 * top.c (print_gdb_configuration): Don't mention it.
2878
2879 2019-08-06 Tom Tromey <tom@tromey.com>
2880
2881 * utils.c (set_output_style): Sometimes pass stream to
2882 emit_style_escape.
2883 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
2884 * record-btrace.c (btrace_insn_history): Update.
2885 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
2886 method.
2887 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
2888 Update initializers.
2889 <m_uiout>: New field.
2890 <m_di>: Move lower.
2891 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2892 Remove "uiout" parameter.
2893 (dump_insns): Update.
2894 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
2895 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
2896
2897 2019-08-06 Christian Biesinger <cbiesinger@google.com>
2898
2899 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
2900 (error_in_psymtab_expansion): Likewise.
2901 (lookup_symbol_via_quick_fns): Likewise.
2902 (basic_lookup_transparent_type_quick): Likewise.
2903 (basic_lookup_transparent_type_1): Likewise.
2904
2905 2019-08-06 Tom Tromey <tromey@adacore.com>
2906
2907 * source.c (last_source_error): Now bool.
2908 (print_source_lines_base): Make "noprint" bool. Only open
2909 source file when last_source_visited changes.
2910
2911 2019-08-06 Tom Tromey <tromey@adacore.com>
2912
2913 * annotate.c (annotate_source_line): Use g_source_cache.
2914 * source-cache.c (source_cache::get_plain_source_lines): Change
2915 parameters. Populate m_offset_cache.
2916 (source_cache::ensure): New method.
2917 (source_cache::get_line_charpos): New method.
2918 (extract_lines): Move lower. Change parameters.
2919 (source_cache::get_source_lines): Move lower.
2920 * source-cache.h (class source_cache): Update comment.
2921 <get_line_charpos>: New method.
2922 <get_source_lines>: Update comment.
2923 <clear>: Clear m_offset_cache.
2924 <get_plain_source_lines>: Change parameters.
2925 <ensure>: New method
2926 <m_offset_cache>: New member.
2927 * source.c (forget_cached_source_info_for_objfile): Update.
2928 (info_source_command): Use g_source_cache.
2929 (find_source_lines, open_source_file_with_line_charpos): Remove.
2930 (print_source_lines_base, search_command_helper): Use g_source_cache.
2931 * source.h (open_source_file_with_line_charpos): Don't declare.
2932 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
2933 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
2934 Use g_source_cache.
2935
2936 2019-08-06 Tom Tromey <tromey@adacore.com>
2937
2938 * source-cache.c (source_cache::get_plain_source_lines):
2939 Remove "first_line" and "last_line" parameters.
2940 (source_cache::get_source_lines): Cache plain text.
2941 * source-cache.h (class source_cache)
2942 <get_plain_source_lines>: Update.
2943
2944 2019-08-06 Tom Tromey <tromey@adacore.com>
2945
2946 * source-cache.c (extract_lines): No longer a method.
2947 Changed type of parameter. Include final newline.
2948 (selftests::extract_lines_test): New function.
2949 (_initialize_source_cache): Likewise.
2950 * source-cache.h (class source_cache)
2951 <extract_lines>: Don't declare.
2952
2953 2019-08-06 Tom Tromey <tromey@adacore.com>
2954
2955 * breakpoint.c (init_breakpoint_sal): Update.
2956 (breakpoint): Update.
2957 * breakpoint.h (struct breakpoint) <filter>: Now a
2958 unique_xmalloc_ptr.
2959
2960 2019-08-05 Christian Biesinger <cbiesinger@google.com>
2961
2962 * NEWS: Mention dictionary access on blocks.
2963 * python/py-block.c (blpy_getitem): New function.
2964 (block_object_as_mapping): New struct.
2965 (block_object_type): Use new struct for tp_as_mapping field.
2966
2967 2019-08-05 Christian Biesinger <cbiesinger@google.com>
2968
2969 * objfiles.h (objfile): Add a comment describing partial symbols.
2970
2971 2019-08-05 Tom Tromey <tromey@adacore.com>
2972
2973 * compile/compile.c (_initialize_compile): Use _(), not N_().
2974 * thread.c (_initialize_thread): Use _(), not N_().
2975 * stack.c (_initialize_stack): Use _(), not N_().
2976 * printcmd.c (_initialize_printcmd): Use _(), not N_().
2977
2978 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2979
2980 * dwarf2read.c (struct dw2_symtab_iterator):
2981 <want_specific_block>: Remove.
2982 <block_index>: Change type to gdb::optional.
2983 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
2984 change type of BLOCK_INDEX parameter to gdb::optional.
2985 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
2986 (dw2_lookup_symbol): Don't pass argument for
2987 WANT_SPECIFIC_BLOCK.
2988 (dw2_expand_symtabs_for_function): Don't pass argument for
2989 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
2990 (class dw2_debug_names_iterator)
2991 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
2992 parameter, change BLOCK_INDEX type to gdb::optional.
2993 <m_want_specific_block>: Remove.
2994 <m_block_index>: Change type to gdb::optional.
2995 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
2996 gdb::optional. Re-write in function of gdb::optional.
2997 (dw2_debug_names_lookup_symbol): Don't pass argument for
2998 WANT_SPECIFIC_BLOCK.
2999 (dw2_debug_names_expand_symtabs_for_function): Don't pass
3000 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
3001 BLOCK_INDEX.
3002
3003 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3004
3005 * NEWS: Mention changes to "info sources" command.
3006
3007 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3008
3009 * symtab.c (filename_partial_match_opts): New struct type.
3010 (struct output_source_filename_data): New members
3011 regexp, c_regexp, partial_match.
3012 (output_source_filename): Use new members to decide to print file.
3013 (info_sources_option_defs): New variable.
3014 (make_info_sources_options_def_group, print_info_sources_header,
3015 info_sources_command_completer):
3016 New functions.
3017 (info_sources_command): Read new optional arguments.
3018 (_initialize_symtab): Update info sources help.
3019
3020 2019-08-02 Alexandre Oliva <oliva@adacore.com>
3021
3022 * ada-lang.c (exception_support_info_v0): Renamed from...
3023 (default_exception_support_info): ... this. Create new
3024 definition for v1.
3025 (ada_has_this_exception_support): Look up catch_handlers_sym.
3026 (ada_exception_support_info_sniffer): Try v0 after default.
3027
3028 2019-08-01 Tom Tromey <tromey@adacore.com>
3029
3030 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
3031 gdbarch.h.
3032
3033 2019-08-01 Christian Biesinger <cbiesinger@google.com>
3034
3035 * s12z-tdep.c: Fix include path for s12z-opc.h.
3036
3037 2019-08-01 Alan Hayward <alan.hayward@arm.com>
3038
3039 * NEWS: Require GNU make 3.82.
3040
3041 2019-07-16 Tom Tromey <tom@tromey.com>
3042
3043 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
3044 declare.
3045
3046 2019-07-30 Tom Tromey <tromey@adacore.com>
3047
3048 * block.c (contained_in): Remove BLOCK_FUNCTION check.
3049
3050 2019-07-30 Kevin Buettner <kevinb@redhat.com>
3051
3052 * printcmd.c (print_address_symbolic): Print negative offsets.
3053 (build_address_symbolic): Force signed arithmetic when computing
3054 offset.
3055
3056 2019-07-30 Christian Biesinger <cbiesinger@google.com>
3057
3058 PR/24474: Add a function to lookup static variables.
3059 * NEWS: Mention this new function.
3060 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
3061 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
3062 * python/python.c (python_GdbMethods): Add new function.
3063
3064 2019-07-29 Christian Biesinger <cbiesinger@google.com>
3065
3066 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
3067 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
3068 (objfpy_lookup_static_symbol): New function.
3069 (objfile_object_methods): Add new functions.
3070
3071 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3072
3073 * NEWS: Mention 'set|show print frame-info'. Mention new
3074 'presence' value for 'frame-arguments'. Mention new '-frame-info'
3075 backtrace argument. Mention that python frame filtering code
3076 is now consistent with what 'backtrace' command prints.
3077
3078 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3079
3080 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
3081 comments.
3082 (print_frame_info_auto, print_frame_info_source_line,
3083 print_frame_info_location, print_frame_info_source_and_location,
3084 print_frame_info_location_and_address, print_frame_info_short_location):
3085 New declarations.
3086 (struct frame_print_options): New member print_frame_info.
3087 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
3088 * stack.h (get_user_print_what_frame_info): New declaration.
3089 (frame_show_address): New declaration.
3090 * stack.c (print_frame_arguments_choices): New value 'presence'.
3091 (print_frame_info_auto, print_frame_info_source_line,
3092 print_frame_info_location, print_frame_info_source_and_location,
3093 print_frame_info_location_and_address, print_frame_info_short_location,
3094 print_frame_info_choices, print_frame_info_print_what): New definitions.
3095 (print_frame_args): Only print dots for args if print frame-arguments
3096 is 'presence'.
3097 (frame_print_option_defs): New element for "frame-info".
3098 (get_user_print_what_frame_info): New function.
3099 (frame_show_address): Make non static. Move comment to stack.h.
3100 (print_frame_info_to_print_what): New function.
3101 (print_frame_info): Update comment. Use fp_opts.print_frame_info
3102 to decide what to print.
3103 (backtrace_command_1): Handle the new print_frame_arguments_presence
3104 value.
3105 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
3106 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
3107 (py_print_frame): In non-mi mode, use LOCATION as default for
3108 print_what, similarly to frame information printed directly by
3109 backtrace command. Handle frame-info user option in non MI mode.
3110
3111 2019-07-27 Kevin Buettner <kevinb@redhat.com>
3112
3113 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
3114 Add case for debugging 32-bit target on 64-bit host. Revise
3115 comment.
3116
3117 2019-07-27 Kevin Buettner <kevinb@redhat.com>
3118
3119 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
3120 instead of find_function_entry_range_from_pc.
3121
3122 2019-07-27 Kevin Buettner <kevinb@redhat.com>
3123
3124 * stack.c (find_frame_funname): Remove code which preferred
3125 minsym over symtab sym in "certain pathological cases".
3126
3127 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
3128 parameter. Change type of "do_demangle" to bool.
3129 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3130 Pass suitable "prefer_sym_over_minsym" flag to
3131 build_address_symbolic(). Don't output "+" for negative offsets.
3132 * printcmd.c (print_address_symbolic): Update invocation of
3133 build_address_symbolic to include a "prefer_sym_over_minsym"
3134 flag.
3135 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
3136 Restrict cases in which use of minimal symbol is preferred to that
3137 of a found symbol. Update comments.
3138
3139 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
3140 for entry pc when entry pc is out of range for that FDE.
3141
3142 2019-07-26 Brian Callahan <bcallah@openbsd.org>
3143
3144 PR gdb/24839:
3145 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
3146 type.
3147
3148 2019-07-25 Christian Biesinger <cbiesinger@google.com>
3149
3150 * python/py-objfile.c (add_separate_debug_file): Fix comment about
3151 this function's Python signature.
3152
3153
3154 2019-07-24 Christian Biesinger <cbiesinger@google.com>
3155
3156 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
3157 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3158 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3159 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
3160 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
3161
3162
3163 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
3164
3165 * h8300-tdep.c (h8300_register_name_common): New.
3166 h8300_register_name): Use h8300_register_name_common.
3167 (h8300s_register_name): Likewise.
3168 (h8300sx_register_name): Likewise.
3169 (h8300h_register_nam): New.
3170 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
3171
3172
3173 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3174
3175 * arm-tdep.c (arm_skip_cmse_entry): New function.
3176 (arm_is_sgstubs_section): New function.
3177 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
3178
3179 2019-07-22 Tom Tromey <tom@tromey.com>
3180
3181 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
3182 Don't self-assign.
3183
3184 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3185
3186 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
3187 type_print.
3188
3189 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3190
3191 * symtab.c (search_symbols): Adjust msymbol matching type arrays
3192 so that GDB doesn't match any msymbols when searching in the
3193 TYPES_DOMAIN.
3194 (print_symbol_info): Print using typedef_print or type_print based
3195 on the type of the symbol. Add updated FIXME comment moved from...
3196 (_initialize_symtab): ... move and update FIXME comment to above.
3197
3198 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3199
3200 * NEWS: Mention adding -q option to "info types".
3201 * symtab.c (struct info_types_options): New struct.
3202 (info_types_options_defs): New variable.
3203 (make_info_types_options_def_group): New function.
3204 (info_types_command): Use gdb::option framework to parse options.
3205 (info_types_command_completer): New function.
3206 (_initialize_symtab): Extend the help text on "info types" and
3207 register command completer.
3208
3209 2019-07-21 Christian Biesinger <cbiesinger@google.com>
3210
3211 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
3212 (lookup_symbol_in_objfile): Change int to block_enum and add a
3213 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
3214
3215 2019-07-20 Christian Biesinger <cbiesinger@google.com>
3216
3217 * MAINTAINERS (Write After Approval): Add self.
3218
3219 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
3220
3221 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
3222 instruction to the dummy code region.
3223
3224 2019-07-19 Tom Tromey <tromey@adacore.com>
3225
3226 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
3227 (ARGSUSED, PARAMS, __func__): Remove rules.
3228
3229 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3230
3231 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
3232 * features/arm/arm-with-iwmmxt.c: Remove.
3233 * features/arm/arm-with-iwmmxt.xml: Remove.
3234 * features/arm/arm-with-m-fpa-layout.c: Remove.
3235 * features/arm/arm-with-m-fpa-layout.xml: Remove.
3236 * features/arm/arm-with-m-vfp-d16.c: Remove.
3237 * features/arm/arm-with-m-vfp-d16.xml: Remove.
3238 * features/arm/arm-with-m.c: Remove.
3239 * features/arm/arm-with-m.xml: Remove.
3240 * features/arm/arm-with-neon.c: Remove.
3241 * features/arm/arm-with-neon.xml: Remove.
3242 * features/arm/arm-with-vfpv2.c: Remove.
3243 * features/arm/arm-with-vfpv2.xml: Remove.
3244 * features/arm/arm-with-vfpv3.c: Remove.
3245 * features/arm/arm-with-vfpv3.xml: Remove.
3246
3247 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3248
3249 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
3250
3251 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3252
3253 * arch/aarch32.c (aarch32_create_target_description): Create
3254 target descriptions using features.
3255 * arch/arm.c (arm_create_target_description)
3256 (arm_create_mprofile_target_description): Likewise.
3257 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
3258
3259 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3260
3261 * Makefile.in: Add new files.
3262 * aarch32-tdep.c: New file.
3263 * aarch32-tdep.h: New file.
3264 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3265 Call aarch32_read_description.
3266 * arch/aarch32.c: New file.
3267 * arch/aarch32.h: New file.
3268 * arch/arm.c (arm_create_target_description)
3269 (arm_create_mprofile_target_description): New function.
3270 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
3271 (arm_create_target_description)
3272 (arm_create_mprofile_target_description): New declaration.
3273 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
3274 read_description functions.
3275 * arm-linux-nat.c (arm_linux_nat_target::read_description):
3276 Likewise.
3277 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3278 * arm-tdep.c (tdesc_arm_list): New variable.
3279 (arm_register_g_packet_guesses): Call create description functions.
3280 (arm_read_description) (arm_read_mprofile_description): New
3281 function.
3282 * arm-tdep.h (arm_read_description)
3283 (arm_read_mprofile_description): Add declaration.
3284 * configure.tgt: Add new files.
3285
3286 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
3287
3288 * top.c (new_ui_command): Open specified terminal just once.
3289
3290 2019-07-18 Tom Tromey <tromey@adacore.com>
3291
3292 * symtab.c (main_name): Constify return type.
3293 * symfile.c (set_initial_language): Update.
3294 * symtab.h (main_name): Constify return type.
3295
3296 2019-07-17 Tom Tromey <tom@tromey.com>
3297
3298 * tui/tui-winsource.c (tui_update_source_window)
3299 (tui_update_source_window_as_is)
3300 (tui_update_source_windows_with_line): Remove return.
3301 * tui/tui-disasm.c (tui_show_disassem)
3302 (tui_show_disassem_and_update_source): Remove return.
3303 * tui/tui.c (tui_reset): Remove return.
3304 * tui/tui-wingeneral.c
3305 (tui_check_and_display_highlight_if_needed): Remove return.
3306
3307 2019-07-17 Tom Tromey <tom@tromey.com>
3308
3309 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
3310
3311 2019-07-17 Tom Tromey <tom@tromey.com>
3312
3313 * tui/tui-winsource.h (struct tui_exec_info_window)
3314 (struct tui_source_window_base): Move from tui-data.h.
3315 * tui/tui-winsource.c: Move many method definitions from
3316 elsewhere. Remove "structuring" comments.
3317 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
3318 (tui_source_window_base::refresh_window): Move to
3319 tui-winsource.c.
3320 * tui/tui-win.c (tui_source_window_base::refresh_all)
3321 (tui_source_window_base::update_tab_width)
3322 (tui_source_window_base::set_new_height)
3323 (tui_source_window_base::do_make_visible_with_new_height): Move to
3324 tui-winsource.c.
3325 * tui/tui-source.h: Update.
3326 * tui/tui-source.c (tui_source_window_base::reset): Move to
3327 tui-winsource.c.
3328 * tui/tui-disasm.h: Update.
3329 * tui/tui-data.h (struct tui_exec_info_window): Move to
3330 tui-winsource.h.
3331 (struct tui_source_window_base): Likewise.
3332 * tui/tui-data.c (tui_source_window_base::clear_detail)
3333 (tui_source_window_base, ~tui_source_window_base): Move to
3334 tui-winsource.c.
3335
3336 2019-07-17 Tom Tromey <tom@tromey.com>
3337
3338 * tui/tui-win.c (tui_resize_all)
3339 (tui_source_window_base::update_tab_width)
3340 (tui_adjust_win_heights): Update.
3341 (tui_win_info::make_invisible_and_set_new_height): Rename from
3342 make_invisible_and_set_new_height.
3343 * tui/tui-data.h (struct tui_win_info)
3344 <make_invisible_and_set_new_height>: New method.
3345
3346 2019-07-17 Tom Tromey <tom@tromey.com>
3347
3348 * tui/tui.c: Update.
3349 * tui/tui-source.h (struct tui_source_window): Move from
3350 tui-data.h.
3351 * tui/tui-layout.c: Update.
3352 * tui/tui-disasm.c: Update.
3353 * tui/tui-data.h (struct tui_source_window): Move to
3354 tui-source.h.
3355
3356 2019-07-17 Tom Tromey <tom@tromey.com>
3357
3358 * tui/tui-disasm.h (struct tui_disasm_window): Move from
3359 tui-data.h.
3360 * tui/tui-data.h (struct tui_disasm_window): Move to
3361 tui-disasm.h.
3362
3363 2019-07-17 Tom Tromey <tom@tromey.com>
3364
3365 * tui/tui-regs.h (struct tui_data_item_window): Move from
3366 tui-data.h.
3367 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
3368 * tui/tui-data.h (struct tui_data_item_window): Move to
3369 tui-regs.h.
3370 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
3371
3372 2019-07-17 Tom Tromey <tom@tromey.com>
3373
3374 * tui/tui.c: Update.
3375 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
3376 (tui_cmd_window::max_height): Move to tui-command.c.
3377 * tui/tui-layout.c: Update.
3378 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
3379 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
3380 tui-command.c.
3381 * tui/tui-command.h (struct tui_cmd_window): Move from
3382 tui-data.h.
3383 * tui/tui-command.c: Remove "structuring" comments.
3384 (tui_cmd_window::clear_detail)
3385 (tui_cmd_window::do_make_visible_with_new_height)
3386 (tui_cmd_window::max_height): Move from elsewhere.
3387
3388 2019-07-17 Tom Tromey <tom@tromey.com>
3389
3390 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
3391 Now static.
3392 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
3393 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
3394
3395 2019-07-17 Tom Tromey <tom@tromey.com>
3396
3397 * tui/tui.c: Update.
3398 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
3399 tui-regs.c.
3400 * tui/tui-windata.h: Remove file.
3401 * tui/tui-windata.c: Remove file.
3402 * tui/tui-win.c (tui_data_window::set_new_height)
3403 (tui_data_window::do_make_visible_with_new_height): Move to
3404 tui-regs.c.
3405 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
3406 * tui/tui-regs.c: Remove "structuring" comments.
3407 (tui_data_window::first_data_item_displayed)
3408 (tui_data_window::delete_data_content_windows)
3409 (tui_data_window::erase_data_content)
3410 (tui_data_window::display_all_data)
3411 (tui_data_window::refresh_all)
3412 (tui_data_window::do_scroll_vertical)
3413 (tui_data_window::clear_detail, tui_data_window::set_new_height)
3414 (tui_data_window::do_make_visible_with_new_height)
3415 (tui_data_window::refresh_window): Move from elsewhere.
3416 (_initialize_tui_regs): Move to end of file.
3417 * tui/tui-layout.c: Update.
3418 * tui/tui-hooks.c: Update.
3419 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
3420 * tui/tui-data.c (tui_data_window::clear_detail): Move to
3421 tui-regs.c.
3422 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
3423
3424 2019-07-17 Tom Tromey <tom@tromey.com>
3425
3426 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
3427 seen.
3428
3429 2019-07-17 Tom Tromey <tom@tromey.com>
3430
3431 * tui/tui-win.c (tui_source_window_base::set_new_height)
3432 (tui_source_window_base::do_make_visible_with_new_height): Use
3433 m_has_locator field directly.
3434 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
3435 method.
3436 (struct tui_source_window_base) <has_locator>: Likewise.
3437
3438 2019-07-17 Tom Tromey <tom@tromey.com>
3439
3440 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
3441 Don't declare.
3442 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
3443 Remove.
3444 * tui/tui-win.c (tui_source_window_base::set_new_height)
3445 (tui_source_window_base::set_new_height)
3446 (make_invisible_and_set_new_height)
3447 (tui_source_window_base::do_make_visible_with_new_height)
3448 (tui_source_window_base::do_make_visible_with_new_height):
3449 Update.
3450 * tui/tui-layout.c (show_source_disasm_command, show_data)
3451 (show_source_or_disasm_and_command): Update.
3452 * tui/tui-layout.c (show_layout): Update.
3453
3454 2019-07-17 Tom Tromey <tom@tromey.com>
3455
3456 * tui/tui-layout.c (make_data_window): Remove.
3457 (show_data): Unify creation and re-initialization cases.
3458
3459 2019-07-17 Tom Tromey <tom@tromey.com>
3460
3461 * tui/tui-layout.c (make_source_window, make_disasm_window):
3462 Remove.
3463 (show_data): Unify creation and re-initialization cases.
3464
3465 2019-07-17 Tom Tromey <tom@tromey.com>
3466
3467 * tui/tui-layout.c (make_command_window): Remove.
3468 (show_source_disasm_command, show_source_or_disasm_and_command):
3469 Unify creation and re-initialization cases.
3470
3471 2019-07-17 Tom Tromey <tom@tromey.com>
3472
3473 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
3474 creation and re-initialization cases.
3475
3476 2019-07-17 Tom Tromey <tom@tromey.com>
3477
3478 * tui/tui-regs.c (tui_get_register): Return void.
3479
3480 2019-07-17 Tom Tromey <tom@tromey.com>
3481
3482 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
3483 Simplify.
3484
3485 2019-07-17 Tom Tromey <tom@tromey.com>
3486
3487 * tui/tui-layout.c (show_source_disasm_command): Simplify window
3488 resetting.
3489
3490 2019-07-17 Tom Tromey <tom@tromey.com>
3491
3492 * tui/tui.h (tui_set_layout_by_name): Don't declare.
3493 * tui/tui-regs.c (tui_reg_layout): New function.
3494 (tui_show_registers, tui_reg_command): Use it.
3495 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
3496 (tui_layout_command): Rename from tui_set_layout_by_name. Change
3497 parameters.
3498 (tui_layout_command): Remove.
3499
3500 2019-07-17 Tom Tromey <tom@tromey.com>
3501
3502 * tui/tui-layout.h (tui/tui-layout): Return void.
3503 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
3504
3505 2019-07-17 Tom Tromey <tom@tromey.com>
3506
3507 * tui/tui-layout.c (show_source_disasm_command, show_data):
3508 Update.
3509 (reset_locator): Remove.
3510 (show_source_or_disasm_and_command): Update.
3511
3512 2019-07-17 Tom Tromey <tom@tromey.com>
3513
3514 * tui/tui-source.c (tui_source_window_base::reset): Remove
3515 win_type parameter.
3516 * tui/tui-layout.c (make_command_window, make_source_window)
3517 (make_disasm_window, make_data_window)
3518 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
3519 (reset_locator, show_source_or_disasm_and_command): Update.
3520 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
3521 win_type parameter.
3522 (struct tui_source_window_base) <reset>: Likewise.
3523
3524 2019-07-17 Tom Tromey <tom@tromey.com>
3525
3526 * tui/tui-layout.c (show_source_disasm_command): Use
3527 reset_locator.
3528 (reset_locator): New function.
3529 (init_and_make_win): Remove.
3530 (show_source_or_disasm_and_command): Use reset_locator.
3531
3532 2019-07-17 Tom Tromey <tom@tromey.com>
3533
3534 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
3535 condition.
3536 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
3537 Remove condition.
3538 * tui/tui-source.c (tui_source_window_base::reset): New method.
3539 * tui/tui-layout.c (make_command_window): Don't call
3540 init_and_make_win.
3541 (make_source_window, make_disasm_window): Don't call
3542 make_source_or_disasm_window.
3543 (make_data_window): Don't call init_and_make_win. Change calling
3544 convention.
3545 (show_source_disasm_command, show_data): Simplify.
3546 (make_source_or_disasm_window): Remove.
3547 (show_source_or_disasm_and_command): Simplify.
3548 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
3549 (struct tui_source_window_base) <reset>: Likewise.
3550 <execution_info>: Remove initializer.
3551 * tui/tui-data.c (tui_source_window_base): Initialize
3552 execution_info.
3553
3554 2019-07-17 Tom Tromey <tom@tromey.com>
3555
3556 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
3557 variable.
3558
3559 2019-07-17 Tom Tromey <tom@tromey.com>
3560
3561 * tui/tui.c (tui_rl_other_window): Update.
3562 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
3563 superclass method first. Always iterate over regs_content.
3564 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
3565 method.
3566 * tui/tui-win.c (tui_set_focus_command): Update.
3567
3568 2019-07-17 Tom Tromey <tom@tromey.com>
3569
3570 * tui/tui-win.c (tui_set_focus_command): Rename from
3571 tui_set_focus. Call tui_enable.
3572 (tui_set_focus_command): Remove.
3573
3574 2019-07-17 Tom Tromey <tom@tromey.com>
3575
3576 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
3577 refresh_window.
3578 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
3579 touchwin.
3580 (tui_data_window::refresh_window): Call refresh_window on data
3581 items. Always call superclass refresh_window.
3582 (tui_win_info::refresh): Remove.
3583 (tui_source_window_base::refresh_window): Update.
3584 (tui_refresh_all): Update.
3585 * tui/tui-layout.c (show_source_disasm_command): Remove call to
3586 refresh_window.
3587 (show_source_or_disasm_and_command): Likewise.
3588 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
3589 (struct tui_source_window_base) <refresh>: Likewise.
3590
3591 2019-07-17 Tom Tromey <tom@tromey.com>
3592
3593 * tui/tui-winsource.c (tui_clear_source_content)
3594 (tui_show_source_content): Update.
3595 * tui/tui-source.c (tui_source_window::showing_source_p): Check
3596 whether content is empty.
3597 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
3598 Remove.
3599
3600 2019-07-17 Tom Tromey <tom@tromey.com>
3601
3602 * tui/tui-winsource.c (tui_erase_source_content): Clear the
3603 window's contents.
3604 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
3605 * tui/tui-source.c (tui_set_source_content_nil): Remove.
3606
3607 2019-07-17 Tom Tromey <tom@tromey.com>
3608
3609 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
3610 (struct tui_data_item_window): Update.
3611
3612 2019-07-17 Tom Tromey <tom@tromey.com>
3613
3614 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
3615 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
3616 defines.
3617
3618 2019-07-17 Tom Tromey <tom@tromey.com>
3619
3620 * tui/tui-winsource.h (tui_erase_source_content)
3621 (tui_clear_source_content): Remove "display_prompt" parameter.
3622 * tui/tui-winsource.c (tui_update_source_window_as_is)
3623 (tui_update_source_windows_with_addr): Update.
3624 (tui_clear_source_content): Remove "display_prompt" parameter.
3625 (tui_erase_source_content): Likewise. Simplify.
3626 (tui_show_source_content): Update.
3627 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3628 * tui/tui-stack.c (tui_show_frame_info): Update.
3629 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
3630 Remove defines.
3631
3632 2019-07-17 Tom Tromey <tom@tromey.com>
3633
3634 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3635 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
3636 parameter.
3637 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
3638 parameter.
3639
3640 2019-07-17 Tom Tromey <tom@tromey.com>
3641
3642 * tui/tui-winsource.c (tui_clear_source_content)
3643 (tui_show_source_content, tui_show_exec_info_content)
3644 (tui_clear_exec_info_content): Update.
3645 * tui/tui-stack.c (tui_show_locator_content): Update.
3646 (tui_show_frame_info): Update.
3647 * tui/tui-source.h (tui_source_window): Don't declare.
3648 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
3649 from tui_source_is_displayed.
3650 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
3651 Remove field.
3652 (struct tui_source_window_base) <content_in_use>: New field. Now
3653 bool.
3654 (struct tui_source_window) <showing_source_p>: New method.
3655 (TUI_SRC_WIN): Change cast.
3656 * tui/tui-data.c (tui_initialize_static_data): Update.
3657
3658 2019-07-17 Tom Tromey <tom@tromey.com>
3659
3660 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
3661 location_matches_p.
3662 * tui/tui-source.c (tui_source_window::location_matches_p): New
3663 method.
3664 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
3665 method.
3666 * tui/tui-data.h (struct tui_source_window_base)
3667 <location_matches_p>: New method.
3668 (struct tui_source_window, struct tui_disasm_window)
3669 <location_matches_p>: Likewise.
3670
3671 2019-07-17 Tom Tromey <tom@tromey.com>
3672
3673 * tui/tui-win.c (tui_set_win_height_command): Rename from
3674 tui_set_win_height.
3675 (tui_set_win_height_command): Remove.
3676
3677 2019-07-17 Tom Tromey <tom@tromey.com>
3678
3679 * tui/tui-source.c (tui_source_window): New constructor. Add
3680 observer.
3681 (~tui_source_window): New destructor.
3682 (tui_source_window::style_changed): New method.
3683 * tui/tui-hooks.c (tui_redisplay_source): Remove.
3684 (tui_attach_detach_observers): Update.
3685 * tui/tui-data.h (struct tui_source_window): Make constructor not
3686 inline. Add destructor.
3687 (struct tui_source_window) <style_changed>: New method.
3688 <m_observable>: New member.
3689
3690 2019-07-17 Tom Tromey <tom@tromey.com>
3691
3692 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
3693 * tui/tui-win.c (tui_resize_all): Fix typo.
3694
3695 2019-07-17 Tom Tromey <tom@tromey.com>
3696
3697 * tui/tui-wingeneral.h (tui_refresh_all): Update.
3698 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
3699 (tui_refresh_all): Remove "list" parameter. Use foreach.
3700 * tui/tui-win.c (window_name_completer): Use foreach.
3701 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
3702 (update_tab_width): Likewise.
3703 * tui/tui-layout.c (show_layout): Update.
3704 * tui/tui-data.h (class tui_window_iterator): New.
3705 (struct all_tui_windows): New.
3706 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
3707
3708 2019-07-17 Tom Tromey <tom@tromey.com>
3709
3710 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
3711 parameter. Don't reference globals.
3712 (tui_reg_command): Update.
3713
3714 2019-07-17 Tom Tromey <tom@tromey.com>
3715
3716 * tui/tui-regs.c (tui_show_registers): Simplify.
3717
3718 2019-07-17 Tom Tromey <tom@tromey.com>
3719
3720 * tui/tui-regs.c (tui_show_registers): Update.
3721 (tui_show_register_group): Add win_info parameter.
3722
3723 2019-07-17 Tom Tromey <tom@tromey.com>
3724
3725 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
3726 Rename from tui_display_reg_element_at_line.
3727 (tui_data_window::display_registers_from_line): Update.
3728 * tui/tui-data.h (struct tui_data_window)
3729 <display_reg_element_at_line>: New method.
3730
3731 2019-07-17 Tom Tromey <tom@tromey.com>
3732
3733 * tui/tui-regs.h (tui_display_registers_from)
3734 (tui_display_registers_from_line): Don't declare.
3735 * tui/tui-windata.c (tui_data_window::display_all_data)
3736 (tui_data_window::refresh_all)
3737 (tui_data_window::do_scroll_vertical): Update.
3738 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
3739 from tui_display_registers_from.
3740 (tui_display_reg_element_at_line): Update.
3741 (tui_data_window::display_registers_from_line): Rename from
3742 tui_display_registers_from_line.
3743 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
3744 display_registers_from_line>: New methods.
3745
3746 2019-07-17 Tom Tromey <tom@tromey.com>
3747
3748 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
3749 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
3750 from tui_erase_data_content.
3751 (tui_data_window::display_all_data)
3752 (tui_data_window::refresh_all)
3753 (tui_data_window::do_scroll_vertical): Update.
3754 * tui/tui-regs.c (tui_show_registers): Update.
3755 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
3756 New method.
3757
3758 2019-07-17 Tom Tromey <tom@tromey.com>
3759
3760 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
3761 declare.
3762 * tui/tui-windata.c
3763 (tui_data_window::delete_data_content_windows): Rename from
3764 tui_delete_data_content_windows.
3765 (tui_data_window::display_all_data)
3766 (tui_data_window::do_scroll_vertical): Update.
3767 * tui/tui-data.h (struct tui_data_window)
3768 <delete_data_content_windows>: New method.
3769
3770 2019-07-17 Tom Tromey <tom@tromey.com>
3771
3772 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
3773 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
3774
3775 2019-07-17 Tom Tromey <tom@tromey.com>
3776
3777 * tui/tui-windata.h (tui_display_all_data): Don't declare.
3778 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
3779 from tui_display_all_data.
3780 * tui/tui-win.c
3781 (tui_data_window::do_make_visible_with_new_height): Update.
3782 * tui/tui-regs.c (tui_show_registers): Update.
3783 * tui/tui-layout.c (tui_set_layout): Update.
3784 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
3785 method.
3786
3787 2019-07-17 Tom Tromey <tom@tromey.com>
3788
3789 * tui/tui-windata.h (tui_display_data_from): Don't declare.
3790 * tui/tui-windata.c (tui_display_data_from): Remove.
3791 (tui_data_window::refresh_all): Update.
3792
3793 2019-07-17 Tom Tromey <tom@tromey.com>
3794
3795 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
3796 * tui/tui-windata.c (tui_display_data_from_line): Remove.
3797 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
3798 tui_display_registers_from_line.
3799 * tui/tui-regs.h (tui_display_registers_from_line): Update.
3800 * tui/tui-regs.c (tui_display_registers_from_line): Remove
3801 "force_display" parameter.
3802
3803 2019-07-17 Tom Tromey <tom@tromey.com>
3804
3805 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
3806 declare.
3807 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
3808 Rename from tui_first_reg_element_no_inline.
3809 (tui_display_reg_element_at_line)
3810 (tui_display_registers_from_line): Update.
3811 * tui/tui-data.h (struct tui_data_window)
3812 <first_reg_element_no_inline>: New method.
3813
3814 2019-07-17 Tom Tromey <tom@tromey.com>
3815
3816 * tui/tui-windata.c (tui_display_data_from)
3817 (tui_data_window::do_scroll_vertical): Update.
3818 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
3819 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
3820 Rename from tui_line_from_reg_element_no.
3821 (tui_display_registers_from_line): Update.
3822 * tui/tui-data.h (struct tui_data_window)
3823 <line_from_reg_element_no>: New method.
3824
3825 2019-07-17 Tom Tromey <tom@tromey.com>
3826
3827 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
3828 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
3829 tui_last_regs_line_no.
3830 (tui_display_reg_element_at_line)
3831 (tui_display_registers_from_line): Update.
3832 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
3833 method.
3834
3835 2019-07-17 Tom Tromey <tom@tromey.com>
3836
3837 PR tui/24722:
3838 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
3839 (tui_update_breakpoint_info): Add "being_deleted" parameter.
3840 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3841 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
3842 (tui_update_breakpoint_info): Likewise.
3843 * tui/tui-hooks.c (tui_event_create_breakpoint)
3844 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
3845 Update.
3846
3847 2019-07-17 Tom Tromey <tom@tromey.com>
3848
3849 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
3850
3851 2019-07-17 Tom Tromey <tom@tromey.com>
3852
3853 * tui/tui-winsource.c (tui_update_source_window_as_is)
3854 (tui_update_source_windows_with_addr): Update.
3855 * tui/tui-source.h (tui_set_source_content)
3856 (tui_show_symtab_source): Add "win_info" parameter.
3857 * tui/tui-source.c (tui_set_source_content): Add "win_info"
3858 parameter.
3859 (tui_show_symtab_source): Likewise.
3860
3861 2019-07-17 Tom Tromey <tom@tromey.com>
3862
3863 * tui/tui-wingeneral.c
3864 (tui_check_and_display_highlight_if_needed): Check can_highlight.
3865
3866 2019-07-17 Tom Tromey <tom@tromey.com>
3867
3868 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
3869 (struct tui_cmd_window) <can_scroll>: New method.
3870 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
3871 method.
3872
3873 2019-07-17 Tom Tromey <tromey@adacore.com>
3874
3875 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
3876 do_field_signed>: Rename. Change type of "value".
3877 * ui-out.c (ui_out::field_signed): Rename from field_int.
3878 Change type of "value".
3879 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
3880 type of "value".
3881 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
3882 do_field_int. Change type of "value".
3883 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
3884 do_field_int. Change type of "value".
3885 * tracepoint.c (trace_status_mi, tfind_1)
3886 (print_one_static_tracepoint_marker): Update.
3887 * thread.c (print_thread_info_1, print_selected_thread_frame):
3888 Update.
3889 * stack.c (print_frame, print_frame_info): Update.
3890 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
3891 Update.
3892 * source.c (print_source_lines_base): Update.
3893 * skip.c (info_skip_command): Update.
3894 * record-btrace.c (btrace_ui_out_decode_error)
3895 (btrace_call_history_src_line): Update.
3896 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
3897 Update.
3898 * progspace.c (print_program_space): Update.
3899 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
3900 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
3901 do_field_int. Change type of "value".
3902 * mi/mi-out.c (mi_ui_out::do_table_begin)
3903 (mi_ui_out::do_table_header): Update.
3904 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
3905 type of "value".
3906 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
3907 (mi_cmd_data_list_changed_registers, output_register)
3908 (mi_cmd_data_read_memory, mi_load_progress)
3909 (mi_cmd_trace_frame_collected): Update.
3910 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
3911 Update.
3912 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3913 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
3914 (mi_cmd_var_list_children, varobj_update_one): Update.
3915 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
3916 (mi_cmd_stack_list_args, list_arg_or_local): Update.
3917 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
3918 * inferior.c (print_inferior): Update.
3919 * gdb_bfd.c (print_one_bfd): Update.
3920 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3921 Update.
3922 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
3923 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
3924 do_field_int. Change type of "value".
3925 * cli-out.c (cli_ui_out::do_field_signed): Rename from
3926 do_field_int. Change type of "value".
3927 * breakpoint.c (watchpoint_check, print_breakpoint_location)
3928 (print_one_breakpoint_location, print_it_catch_fork)
3929 (print_one_catch_fork, print_it_catch_vfork)
3930 (print_one_catch_vfork, print_it_catch_solib)
3931 (print_it_catch_exec, print_it_ranged_breakpoint)
3932 (print_mention_watchpoint, print_mention_masked_watchpoint)
3933 (bkpt_print_it, update_static_tracepoint): Update.
3934 * break-catch-throw.c (print_it_exception_catchpoint): Update.
3935 * break-catch-syscall.c (print_it_catch_syscall): Update.
3936 * ada-tasks.c (print_ada_task_info): Update.
3937 * ada-lang.c (print_it_exception, print_mention_exception):
3938 Update.
3939
3940 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3941
3942 PR breakpoints/24541
3943 * gdbarch.c: Regenerate.
3944 * gdbarch.h: Regenerate.
3945 * gdbarch.sh: Adjust return type and parameter types for
3946 'stap_adjust_register'.
3947 (i386_stap_adjust_register): Adjust signature and return new
3948 register name.
3949 * stap-probe.c (stap_parse_register_operand): Adjust use of
3950 'gdbarch_stap_adjust_register'.
3951
3952 2019-07-17 Tom Tromey <tromey@adacore.com>
3953
3954 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
3955 declare VEC.
3956 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
3957 std::vector.
3958 (struct s390_process_info): Add initializers.
3959 (s390_add_process): Use new.
3960 (s390_linux_nat_target::low_forget_process): Use delete.
3961 (s390_linux_nat_target::low_new_fork)
3962 (s390_linux_nat_target::stopped_by_watchpoint)
3963 (s390_linux_nat_target::low_prepare_to_resume)
3964 (s390_linux_nat_target::insert_watchpoint)
3965 (s390_linux_nat_target::insert_hw_breakpoint)
3966 (s390_linux_nat_target::remove_watchpoint)
3967 (s390_linux_nat_target::remove_hw_breakpoint): Update.
3968
3969 2019-07-16 John Baldwin <jhb@FreeBSD.org>
3970
3971 * aarch64-fbsd-nat.c: Include regcache.h.
3972 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
3973 argument.
3974 (aarch64_fbsd_nat_target::fetch_registers)
3975 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
3976 variable.
3977 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
3978
3979 2019-07-16 John Baldwin <jhb@FreeBSD.org>
3980
3981 * fbsd-nat.c: Include gdbarch.h.
3982
3983 2019-07-15 Tom Tromey <tromey@adacore.com>
3984
3985 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
3986
3987 2019-07-15 Tom Tromey <tromey@adacore.com>
3988
3989 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
3990 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
3991 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
3992 * cli-out.c (cli_ui_out::do_field_int): New method.
3993 * ui-out.c (ui_out::field_unsigned): New method.
3994 * symfile.c (generic_load): Use field_unsigned.
3995 (print_transfer_performance): Likewise.
3996 * record-btrace.c (ui_out_field_uint): Remove.
3997 (btrace_call_history_insn_range, btrace_call_history): Use
3998 field_unsigned.
3999 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
4000 field_unsigned.
4001 * ui-out.h (class ui_out) <field_unsigned>: New method.
4002 <do_field_unsigned>: Likewise.
4003
4004 2019-07-15 Tom Tromey <tromey@adacore.com>
4005
4006 * mi/mi-main.c (list_available_thread_groups): Use field_string.
4007 * mi/mi-interp.c (mi_memory_changed): Use field_string.
4008 * target.c (flash_erase_command): Use field_string.
4009 * infrun.c (print_signal_received_reason): Use field_string.
4010 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
4011 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
4012 field_string.
4013 * ada-tasks.c (print_ada_task_info): Use field_string.
4014
4015 2019-07-15 Tom Tromey <tromey@adacore.com>
4016
4017 * target.c (flash_erase_command): Use field_core_addr.
4018 * symfile.c (generic_load): Use field_core_addr.
4019 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4020 Use field_core_addr.
4021 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
4022 field_core_addr.
4023
4024 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4025
4026 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
4027 value if its desired type is smaller than a CORE_ADDR and signed.
4028
4029 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4030
4031 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
4032 of changes to field names, and use new is_reference field to
4033 decide if a property is a reference or not.
4034 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
4035 field.
4036 (struct dwarf2_property_baton): Update header comment, rename
4037 'referenced_type' to 'property_type' and update comments.
4038 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
4039 default property type, store in property baton, update to take
4040 accound of renamed field.
4041 (read_func_scope): Update call to attr_to_dynamic_prop.
4042 (read_array_type): Likewise.
4043 (dwarf2_per_cu_addr_sized_int_type): New function.
4044 (read_subrange_index_type): Move type finding code to
4045 dwarf2_per_cu_addr_sized_int_type.
4046 (read_subrange_type): Update calls to attr_to_dynamic_prop.
4047 (dwarf2_per_cu_addr_type): New function.
4048 (set_die_type): Update calls to attr_to_dynamic_prop.
4049
4050 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4051
4052 * dwarf2read.c (read_subrange_index_type): New function.
4053 (read_subrange_type): Move code into new function and call it.
4054 * gdbtypes.c (create_range_type): Add some asserts.
4055
4056 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4057
4058 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
4059 update return statements.
4060 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
4061 declaration, and update comment to match.
4062 * gdbtypes.c (resolve_dynamic_array): Update call to
4063 dwarf2_evaluate_property to match new return type.
4064
4065 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4066
4067 * valarith.c (value_subscripted_rvalue): Change lowerbound
4068 parameter type from int to LONGEST.
4069 * value.h (value_subscripted_rvalue): Likewise in declaration.
4070
4071 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4072
4073 * cli/cli-utils.c (info_print_command_completer): New function.
4074 * cli/cli-utils.h: Add 'completer.h' include, and forward
4075 declaration for 'struct cmd_list_element'.
4076 (info_print_command_completer): Declare.
4077 * stack.c (_initialize_stack): Add completer for 'info locals' and
4078 'info args'.
4079 * symtab.c (_initialize_symtab): Add completer for 'info
4080 variables' and 'info functions'.
4081 * NEWS: Mention completion for additional info commands.
4082
4083 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4084
4085 * cli/cli-utils.c (extract_info_print_args): Delete.
4086 (extract_arg_maybe_quoted): Delete.
4087 (info_print_options_defs): New variable.
4088 (make_info_print_options_def_group): New function.
4089 (extract_info_print_options): Define new function.
4090 * cli/cli-utils.h (extract_info_print_args): Delete.
4091 (struct info_print_options): New structure.
4092 (extract_info_print_options): Declare new function.
4093 * stack.c (info_locals_command): Update to use new
4094 extract_info_print_options, also add a header comment.
4095 (info_args_command): Likewise.
4096 * symtab.c (info_variables_command): Likewise.
4097 (info_functions_command): Likewise.
4098
4099 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4100
4101 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
4102 to extract string arguments.
4103 * common/common-utils.c (extract_string_maybe_quoted): New function.
4104 * common/common-utils.h (extract_string_maybe_quoted): Declare.
4105
4106 2019-07-11 Tom Tromey <tromey@adacore.com>
4107
4108 * main.c (get_init_files): Use GDBINIT, not gdbinit.
4109 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
4110 * top.h (gdbinit): Don't declare.
4111 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
4112 into...
4113 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
4114 * top.c (gdb_init): Don't call init_cli_cmds.
4115 (gdbinit): Remove.
4116 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
4117
4118 2019-07-11 Tom Tromey <tromey@adacore.com>
4119
4120 * python/py-inferior.c (add_thread_object): Don't use thread_obj
4121 after it has been moved.
4122
4123 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4124
4125 * valops.c (value_must_coerce_to_target): Change return type to
4126 bool.
4127 * value.h (value_must_coerce_to_target): Likewise.
4128
4129 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
4130
4131 * breakpoint.c (is_hardware_watchpoint): Remove
4132 forward-declaration.
4133 (is_masked_watchpoint): Change return type to bool.
4134 (is_tracepoint): Likewise.
4135 (is_breakpoint): Likewise.
4136 (is_hardware_watchpoint): Likewise.
4137 (is_watchpoint): Likewise.
4138 (is_no_memory_software_watchpoint): Likewise.
4139 (is_catchpoint): Likewise.
4140 (breakpoint_1): Make FILTER parameter's return type bool.
4141 is_masked_watchpoint): Change return type to bool.
4142 (save_breakpoints): Make FILTER parameter's return type bool.
4143 * breakpoint.h (is_breakpoint): Change return type to bool.
4144 (is_watchpoint): Likewise.
4145 (is_catchpoint): Likewise.
4146 (is_tracepoint): Likewise.
4147
4148 2019-07-10 Tom Tromey <tom@tromey.com>
4149
4150 * defs.h: Don't include gdbarch.h.
4151 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
4152 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
4153 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
4154 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
4155 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
4156 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
4157 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
4158 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
4159 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
4160 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
4161 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
4162 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
4163 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
4164 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
4165 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
4166 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
4167 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
4168 record-btrace.c, record.h, regcache-dump.c, regcache.h,
4169 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
4170 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
4171 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
4172 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
4173 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
4174 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
4175 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
4176 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
4177 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
4178
4179 2019-07-10 Tom Tromey <tromey@adacore.com>
4180
4181 * ada-lang.h (is_ada_exception_catchpoint): Declare.
4182 * breakpoint.c (init_ada_exception_breakpoint): Register as
4183 bp_catchpoint.
4184 (print_one_breakpoint_location, print_one_breakpoint): Use
4185 is_ada_exception_catchpoint.
4186 * ada-lang.c (class ada_catchpoint_location): Pass
4187 bp_loc_software_breakpoint to bp_location constructor.
4188 (is_ada_exception_catchpoint): New function.
4189
4190 2019-07-10 Tom Tromey <tromey@adacore.com>
4191
4192 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
4193 VEC.
4194 (struct arm_exidx_entry): New method operator<.
4195 (struct arm_exidx_data) <section_maps>: Change type.
4196 (arm_exidx_data_free): Remove.
4197 (arm_exidx_data_key): Change type. Move lower.
4198 (arm_exidx_new_objfile): Update.
4199 (arm_compare_exidx_entries): Remove.
4200 (arm_find_exidx_entry, _initialize_arm_tdep)
4201
4202 2019-07-10 Tom Tromey <tromey@adacore.com>
4203
4204 * solib-spu.c (ocl_program_data_key): Change type.
4205 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
4206 Update.
4207
4208 2019-07-10 Tom Tromey <tromey@adacore.com>
4209
4210 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
4211 (struct solib_aix_inferior_data) <library_list>: Change type.
4212 (solib_aix_inferior_data_handle): Change type.
4213 (get_solib_aix_inferior_data): Update.
4214 (solib_aix_free_library_list): Remove.
4215 (library_list_start_library): Update.
4216 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
4217 return type.
4218 (solib_aix_get_library_list)
4219 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
4220 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
4221
4222 2019-07-10 Tom Tromey <tromey@adacore.com>
4223
4224 * solib-dsbt.c (struct dsbt_info): Add initializers.
4225 (solib_dsbt_pspace_data): Change type.
4226 (dsbt_pspace_data_cleanup): Remove.
4227 (get_dsbt_info, _initialize_dsbt_solib): Update.
4228
4229 2019-07-10 Tom Tromey <tromey@adacore.com>
4230
4231 * spu-tdep.c (spu_overlay_data): Change type.
4232 (spu_get_overlay_table, spu_overlay_new_objfile)
4233 (_initialize_spu_tdep): Update.
4234
4235 2019-07-10 Tom Tromey <tromey@adacore.com>
4236
4237 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
4238 destructor.
4239 (dbx_objfile_data_key): Change type and declare later.
4240 (DBX_SYMFILE_INFO): Rewrite.
4241 * dbxread.c (dbx_objfile_data_key): Change type.
4242 (dbx_symfile_init): Update.
4243 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
4244 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4245 (stabsect_build_psymtabs, _initialize_dbxread): Update.
4246
4247 2019-07-10 Tom Tromey <tromey@adacore.com>
4248
4249 * jit.c (jit_program_space_key): Change type. Move lower.
4250 (get_jit_program_space_data): Update.
4251 (jit_program_space_data_cleanup): Remove.
4252 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
4253 Update.
4254 (struct jit_program_space_data): Add initializers.
4255
4256 2019-07-10 Tom Tromey <tromey@adacore.com>
4257
4258 * solib-darwin.c (struct darwin_info): Add initializers.
4259 (solib_darwin_pspace_data): Change type.
4260 (darwin_pspace_data_cleanup): Remove.
4261 (get_darwin_info, _initialize_darwin_solib): Update.
4262
4263 2019-07-10 Tom Tromey <tromey@adacore.com>
4264
4265 * remote-sim.c (struct sim_inferior_data): Add initializers,
4266 constructor, and destructor.
4267 (sim_inferior_data_key): Change type. Move lower.
4268 (check_for_duplicate_sim_descriptor): Update.
4269 (get_sim_inferior_data): Use new. Update.
4270 (~sim_inferior_data_cleanup): Rename from
4271 sim_inferior_data_cleanup. Simplify.
4272 (gdbsim_close_inferior, simulator_command)
4273 (sim_command_completer, _initialize_remote_sim): Update.
4274 (next_pid, INITIAL_PID): Move earlier.
4275
4276 2019-07-10 Tom Tromey <tromey@adacore.com>
4277
4278 * python/python-internal.h (create_thread_object): Return
4279 gdbpy_ref.
4280 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
4281 * python/py-inferior.c (struct threadlist_entry): Add
4282 constructor.
4283 <thread_obj>: Now a gdbpy_ref.
4284 (thread_to_thread_object): Update.
4285 (add_thread_object): Use new.
4286 (delete_thread_object): Use delete.
4287 (infpy_threads): Update.
4288 (py_free_inferior): Update. Construct "inf_obj" after acquiring
4289 GIL.
4290
4291 2019-07-10 Tom Tromey <tromey@adacore.com>
4292
4293 * valops.c (value_cast): Specialize error message for Ada.
4294
4295 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4296
4297 * breakpoint.c (breakpoint_1): Update doc and parameter names.
4298
4299 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4300
4301 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
4302 bpstat_should_step): Return bool, adjust comments.
4303 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
4304 bpstat_should_step): Likewise.
4305
4306 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4307
4308 * features/Makefile: Use feature target descriptions for Arm.
4309 * features/arm/arm-core.c: Generate new file.
4310 * features/arm/arm-fpa.c: Likewise.
4311 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
4312 * features/arm/arm-m-profile.c: Likewise.
4313 * features/arm/arm-vfpv2.c: Likewise.
4314 * features/arm/arm-vfpv3.c: Likewise.
4315 * features/arm/xscale-iwmmxt.c: Likewise.
4316 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
4317
4318 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4319
4320 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
4321 ptrace earlier.
4322
4323 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4324
4325 * features/aarch64-pauth.c: Regenerate.
4326
4327 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
4328
4329 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
4330 bool.
4331 (bpstat_what): Use false instead of 0.
4332
4333 2019-07-09 Pedro Alves <palves@redhat.com>
4334
4335 * break-catch-throw.c (is_exception_catchpoint): New.
4336 * breakpoint.c (print_one_breakpoint_location): New parameter
4337 'raw_loc'. Handle it. Use
4338 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
4339 looking at the breakpoint's type.
4340 (print_one_breakpoint): If handling "maint info breakpoints", also
4341 print locations of exception catchpoints.
4342 * breakpoint.h (is_exception_catchpoint): Declare.
4343
4344 2019-07-09 Pedro Alves <palves@redhat.com>
4345
4346 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
4347 "addr" field.
4348 (allocate_location_exception_catchpoint): New.
4349 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
4350 (initialize_throw_catchpoint_ops): Install
4351 allocate_location_exception_catchpoint as allocate_location
4352 method.
4353 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
4354 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
4355 bp_loc_other.
4356 (breakpoint_address_is_meaningful): Delete.
4357 (bl_address_is_meaningful): New.
4358 (breakpoint_locations_match): Adjust comment.
4359 (bp_location_from_bp_type): New, factored out of...
4360 (bp_location::bp_location(breakpoint *)): ... this.
4361 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
4362 factored out of...
4363 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
4364 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
4365 breakpoint_address_is_meaningful.
4366 (bp_locations_compare): Adjust comment.
4367 (update_global_location_list): Use bl_address_is_meaningful
4368 instead of breakpoint_address_is_meaningful.
4369 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
4370 explicit.
4371 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
4372 * python/py-breakpoint.c (bppy_get_location): No longer check
4373 whether location is null.
4374
4375 2019-07-09 Pedro Alves <palves@redhat.com>
4376
4377 PR c++/15468
4378 * breakpoint.c (print_one_breakpoint_location): Remove
4379 single-location assert.
4380
4381 2019-07-09 Tom Tromey <tom@tromey.com>
4382
4383 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
4384 * configure: Rebuild.
4385 * configure.ac: Change common to gdbsupport.
4386 * gdbsupport: Rename from common.
4387 * acinclude.m4: Change common to gdbsupport.
4388 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
4389 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
4390 gdbsupport.
4391 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
4392 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
4393 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
4394 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
4395 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
4396 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
4397 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
4398 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
4399 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
4400 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
4401 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
4402 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
4403 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
4404 coff-pe-read.c, command.h, compile/compile-c-support.c,
4405 compile/compile-c.h, compile/compile-cplus-symbols.c,
4406 compile/compile-cplus-types.c, compile/compile-cplus.h,
4407 compile/compile-loc2c.c, compile/compile.c, completer.c,
4408 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
4409 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
4410 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
4411 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
4412 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
4413 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
4414 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
4415 features/aarch64-core.c, features/aarch64-fpu.c,
4416 features/aarch64-pauth.c, features/aarch64-sve.c,
4417 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
4418 features/i386/32bit-core.c, features/i386/32bit-linux.c,
4419 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
4420 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
4421 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
4422 features/i386/64bit-core.c, features/i386/64bit-linux.c,
4423 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
4424 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
4425 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
4426 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
4427 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
4428 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
4429 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
4430 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
4431 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
4432 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
4433 go32-nat.c, guile/guile.c, guile/scm-ports.c,
4434 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
4435 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
4436 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
4437 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
4438 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
4439 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
4440 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
4441 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
4442 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
4443 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
4444 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
4445 minsyms.c, mips-linux-tdep.c, namespace.h,
4446 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
4447 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
4448 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
4449 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
4450 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
4451 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
4452 nat/linux-waitpid.c, nat/mips-linux-watch.c,
4453 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
4454 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
4455 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
4456 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
4457 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
4458 procfs.c, producer.c, progspace.h, psymtab.h,
4459 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
4460 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
4461 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
4462 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
4463 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
4464 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
4465 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
4466 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
4467 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
4468 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
4469 target-memory.c, target.c, target.h, target/waitstatus.c,
4470 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
4471 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
4472 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
4473 unittests/array-view-selftests.c,
4474 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
4475 unittests/common-utils-selftests.c,
4476 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
4477 unittests/format_pieces-selftests.c,
4478 unittests/function-view-selftests.c,
4479 unittests/lookup_name_info-selftests.c,
4480 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
4481 unittests/mkdir-recursive-selftests.c,
4482 unittests/observable-selftests.c,
4483 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
4484 unittests/parse-connection-spec-selftests.c,
4485 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
4486 unittests/scoped_fd-selftests.c,
4487 unittests/scoped_mmap-selftests.c,
4488 unittests/scoped_restore-selftests.c,
4489 unittests/string_view-selftests.c, unittests/style-selftests.c,
4490 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
4491 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
4492 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
4493 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
4494 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
4495 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
4496
4497 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4498
4499 * linespec.c (decode_digits_list_mode): Set explicit_line to a
4500 bool value.
4501 (decode_digits_ordinary): Set explicit_line field in sal.
4502 * symtab.c (skip_prologue_sal): Don't skip prologue for a
4503 symtab_and_line that was set on an explicit line number in
4504 assembler code. Do always update the recorded symtab and line if
4505 we do skip the prologue.
4506
4507 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4508
4509 * breakpoint.c (set_breakpoint_location_function): Remove
4510 explicit_loc parameter.
4511 (momentary_breakpoint_from_master): Update call to
4512 set_breakpoint_location_function.
4513 (add_location_to_breakpoint): Likewise.
4514
4515 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4516
4517 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
4518 required features based on default bfd type when no specific bfd
4519 is present.
4520
4521 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4522
4523 * NEWS: Mention that GDB printf and eval commands can now print
4524 C-style and Ada-style convenience var strings without
4525 calling the inferior.
4526 * printcmd.c (printf_c_string): Locally print GDB internal var
4527 instead of transiting via the inferior.
4528 (printf_wide_c_string): Likewise.
4529
4530 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4531
4532 PR breakpoints/25011
4533 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
4534
4535 2019-07-04 Tom Tromey <tom@tromey.com>
4536
4537 PR tui/24724:
4538 * tui/tui-winsource.c (tui_clear_source_content): Update.
4539 (tui_source_window_base::set_is_exec_point_at): Fix comment.
4540 (tui_update_breakpoint_info): Update.
4541 (tui_set_exec_info_content): Update.
4542 * tui/tui-source.c (tui_set_source_content_nil): Update.
4543 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
4544 has_break.
4545 * tui/tui-data.h (enum tui_bp_flag): New.
4546 (tui_bp_flags): New enum flags type.
4547 (struct tui_source_element) <break_mode>: Change type. Rename
4548 from has_break.
4549 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
4550 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
4551 constants.
4552 * tui/tui-winsource.h: Fix comment.
4553
4554 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4555
4556 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
4557 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
4558 (store_fpregs_to_thread)
4559 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4560 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
4561 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
4562 (IWMMXT_REGS_SIZE): Add define.
4563 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
4564 (fetch_vfp_regs, store_vfp_regs)
4565 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4566 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
4567
4568 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4569
4570 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
4571 defines.
4572 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
4573 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
4574 (ARM_INT_REGISTER_SIZE): ...to this.
4575 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
4576 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
4577 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
4578 (arm_linux_collect_gregset, supply_nwfpe_register)
4579 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
4580 defines.
4581 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
4582 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
4583 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
4584 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
4585 (arm_return_in_memory, arm_store_return_value)
4586 (arm_get_longjmp_target, arm_register_g_packet_guesses)
4587 (arm_record_ld_st_multiple): Likewise.
4588 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
4589 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
4590
4591 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4592
4593 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
4594 AARCH64_DISPLACED_MODIFIED_INSNS.
4595 * aarch64-tdep.c (struct aarch64_displaced_step_data)
4596 (aarch64_displaced_step_copy_insn): Likewise.
4597 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4598 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
4599 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
4600 ARM_DISPLACED_MODIFIED_INSNS.
4601 * arm-tdep.c (arm_gdbarch_init): Likewise.
4602 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4603 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
4604 (struct arm_displaced_step_closure): Use
4605 ARM_DISPLACED_MODIFIED_INSNS.
4606
4607 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4608
4609 * features/Makefile: Remove unused xml files.
4610 * features/aarch64.xml: Remove.
4611 * features/i386/amd64-avx-avx512-linux.xml: Remove.
4612 * features/i386/amd64-avx-avx512.xml: Remove.
4613 * features/i386/amd64-avx-linux.xml: Remove.
4614 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
4615 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
4616 * features/i386/amd64-avx-mpx-linux.xml: Remove.
4617 * features/i386/amd64-avx-mpx.xml: Remove.
4618 * features/i386/amd64-avx.xml: Remove.
4619 * features/i386/amd64-linux.xml: Remove.
4620 * features/i386/amd64-mpx-linux.xml: Remove.
4621 * features/i386/amd64-mpx.xml: Remove.
4622 * features/i386/amd64.xml: Remove.
4623 * features/i386/i386-avx-avx512-linux.xml: Remove.
4624 * features/i386/i386-avx-avx512.xml: Remove.
4625 * features/i386/i386-avx-linux.xml: Remove.
4626 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
4627 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
4628 * features/i386/i386-avx-mpx-linux.xml: Remove.
4629 * features/i386/i386-avx-mpx.xml: Remove.
4630 * features/i386/i386-avx.xml: Remove.
4631 * features/i386/i386-linux.xml: Remove.
4632 * features/i386/i386-mmx-linux.xml: Remove.
4633 * features/i386/i386-mmx.xml: Remove.
4634 * features/i386/i386-mpx-linux.xml: Remove.
4635 * features/i386/i386-mpx.xml: Remove.
4636 * features/i386/i386.xml: Remove.
4637 * features/i386/x32-avx-avx512-linux.xml: Remove.
4638 * features/i386/x32-avx-linux.xml: Remove.
4639 * features/i386/x32-linux.xml: Remove.
4640
4641 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4642
4643 * regformats/aarch64.dat: Remove.
4644 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
4645 * regformats/i386/amd64-avx-linux.dat: Remove.
4646 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
4647 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
4648 * regformats/i386/amd64-linux.dat: Remove.
4649 * regformats/i386/amd64-mpx-linux.dat: Remove.
4650 * regformats/i386/amd64.dat: Remove.
4651 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
4652 * regformats/i386/i386-avx-linux.dat: Remove.
4653 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
4654 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
4655 * regformats/i386/i386-linux.dat: Remove.
4656 * regformats/i386/i386-mmx-linux.dat: Remove.
4657 * regformats/i386/i386-mpx-linux.dat: Remove.
4658 * regformats/i386/i386.dat: Remove.
4659 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
4660 * regformats/i386/x32-avx-linux.dat: Remove.
4661 * regformats/i386/x32-linux.dat: Remove.
4662
4663 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4664
4665 * aarch64-tdep.c: Remove xml self tests.
4666 * amd64-linux-tdep.c: Likewise.
4667 * amd64-tdep.c: Likewise.
4668 * i386-linux-tdep.c: Likewise.
4669 * i386-tdep.c: Likewise.
4670
4671 2019-07-03 Pedro Alves <palves@redhat.com>
4672
4673 PR cli/24732
4674 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
4675 (pipe_cmd_option_defs): New.
4676 (make_pipe_cmd_options_def_group): New.
4677 (pipe_command): Use gdb::option::process_options.
4678 (pipe_command_completer): New function.
4679 (_initialize_cli_cmds): Install completer for "pipe" command.
4680
4681 2019-07-03 Pedro Alves <palves@redhat.com>
4682
4683 * cli/cli-option.c (union option_value) <string>: New field.
4684 (struct option_def_and_value): Add ctor, move ctor, dtor and
4685 use DISABLE_COPY_AND_ASSIGN.
4686 (option_def_and_value::clear_value): New.
4687 (parse_option, save_option_value_in_ctx, get_val_type_str)
4688 (add_setshow_cmds_for_options): Handle var_string.
4689 * cli-option.h (union option_def::var_address) <string>: New
4690 field.
4691 (struct string_option_def): New.
4692 * maint-test-options.c (struct test_options_opts): Add default
4693 ctor and use DISABLE_COPY_AND_ASSIGN.
4694 <string_opt>: New field.
4695 (test_options_opts::~test_options_opts): New.
4696 (test_options_opts::dump): Also dump "-string".
4697 (test_options_option_defs): Install "string.
4698
4699 2019-07-03 Pedro Alves <palves@redhat.com>
4700
4701 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
4702 option_value with a null enumeration.
4703 (complete_options): Save the option values in the context.
4704 (save_option_value_in_ctx): New, factored out from ...
4705 (process_options): ... here.
4706 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
4707 of the function.
4708 * maint-test-options.c (test_options_opts::dump): New, factored
4709 out from ...
4710 (maintenance_test_options_command_mode): ... here.
4711 (maintenance_test_options_command_completion_result): Delete.
4712 (maintenance_test_options_command_completion_text): Update
4713 comment.
4714 (maintenance_show_test_options_completion_result): Change
4715 prototype. Just print
4716 maintenance_test_options_command_completion_text.
4717 (save_completion_result): New.
4718 (maintenance_test_options_completer_mode): Pass options context to
4719 complete_options, and then save a dump.
4720 (_initialize_maint_test_options): Use add_cmd to install "maint
4721 show test-options-completion-result".
4722
4723 2019-07-03 Pedro Alves <palves@redhat.com>
4724
4725 * NEWS (New commands): Mention "with" and "maint with".
4726 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
4727 (with_command, with_command_completer): New.
4728 (pipe_command): Adjust to new repeat_previous
4729 interface.
4730 (_initialize_cli_cmds): Install the "with" command and its "w"
4731 alias.
4732 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
4733 declarations.
4734 * cli/cli-setshow.c (parse_cli_var_uinteger)
4735 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
4736 argument strings for all var_types.
4737 (get_setshow_command_value_string): New, factored out from ...
4738 (do_show_command): ... this.
4739 * cli/cli-setshow.h: Include <string>.
4740 (get_setshow_command_value_string): Declare.
4741 * command.h (repeat_previous): Now returns const char *. Adjust
4742 comment.
4743 * maint.c: Include "cli/cli-cmds.h".
4744 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
4745 (_initialize_maint_cmds): Register the "maintenance with" command.
4746 * top.c (repeat_previous): Move bits from pipe_command here:
4747 Return the saved command line, if any; error out if there's no
4748 command to relaunch.
4749
4750 2019-07-03 Pedro Alves <palves@redhat.com>
4751
4752 * NEWS (New commands): Mention "maint set/show test-settings"
4753 instead of "maint test-settings".
4754 * maint-test-settings.c (maintenance_test_settings_list): Delete.
4755 (maintenance_test_settings_set_list): Rename to ...
4756 (maintenance_set_test_settings_list): ... this.
4757 (maintenance_test_settings_show_list): Rename to ...
4758 (maintenance_show_test_settings_list): ... this.
4759 (maintenance_test_settings_cmd): Delete.
4760 (maintenance_test_settings_set_cmd): ...
4761 (maintenance_set_test_settings_cmd): ... this.
4762 (maintenance_test_settings_show_cmd): ...
4763 (maintenance_show_test_settings_cmd): ... this.
4764 (maintenance_test_settings_show_value_cmd):
4765 (maintenance_show_test_settings_value_cmd): ... this.
4766 (_initialize_maint_test_settings): No longer install the "maint
4767 test-settings" prefix command. Rename "maint test-settings set"
4768 to "maint set test-settings", and "maint test-settings show" to
4769 "maint show test-settings". Adjust all subcommands.
4770
4771 2019-07-03 Pedro Alves <palves@redhat.com>
4772
4773 * maint-test-settings.c: Fix file's intro comment. Replace all
4774 references to "test-options" with references to "test-settings",
4775 in comments.
4776
4777 2019-07-03 Pedro Alves <palves@redhat.com>
4778
4779 * maint-test-settings.c (maintenance_test_settings_xxx)
4780 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
4781 New.
4782 (maintenance_test_settings_enums): Use them.
4783 (maintenance_test_settings_enum): Default to
4784 maintenance_test_settings_xxx.
4785 (_initialize_maint_test_settings): Initialize
4786 MAINTENANCE_TEST_SETTINGS_FILENAME.
4787
4788 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4789
4790 * breakpoint.h (remove_breakpoints_inf): Change return type to
4791 void, move function documentation here.
4792 * breakpoint.c (remove_breakpoints_inf): Change return type to
4793 void, move function documentation to header.
4794
4795 2019-07-02 Pedro Alves <palves@redhat.com>
4796
4797 * NEWS (Completion improvements): Mention "info threads".
4798 * thread.c (struct info_threads_opts, info_threads_option_defs)
4799 (make_info_threads_options_def_group): New.
4800 (info_threads_command): Use gdb::option::process_options.
4801 (info_threads_command_completer): New.
4802 (_initialize_thread): Use gdb::option::build_help to build the
4803 help text for "info threads".
4804
4805 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4806
4807 * defs.h (generic_load): Move from here...
4808 * symfile.h (generic_load): ... to here. Rename name parameter
4809 to args.
4810 * symfile.c (generic_load): Add comment.
4811
4812 2019-07-01 Tom Tromey <tromey@adacore.com>
4813
4814 * dwarf2read.c
4815 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
4816 declaration of without_params. Fix formatting.
4817
4818 2019-07-01 Tom Tromey <tromey@adacore.com>
4819
4820 * ada-exp.y (find_primitive_type): Update.
4821 * ada-lang.h (ada_lookup_symbol): Update.
4822 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
4823 parameter.
4824 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
4825
4826 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4827
4828 PR breakpoints/24541
4829 * gdbarch.c: Regenerate.
4830 * gdbarch.h: Regenerate.
4831 * gdbarch.sh: Add 'stap_adjust_register'.
4832 * i386-tdep.c: Include '<unordered_set>'.
4833 (i386_stap_adjust_register): New function.
4834 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
4835 * stap-probe.c (stap_parse_register_operand): Call
4836 'gdbarch_stap_adjust_register'.
4837
4838 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4839
4840 PR python/24742
4841 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
4842 * python/python.c (do_start_initialization): Use 'xmalloc'
4843 instead of 'PyMem_Malloc'.
4844
4845 2019-06-28 Tom Tromey <tromey@adacore.com>
4846
4847 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
4848 for Ada.
4849
4850 2019-06-27 Tom Tromey <tromey@adacore.com>
4851
4852 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
4853 objfile_key.
4854 (arm_find_mapping_symbol, arm_record_special_symbol)
4855 (_initialize_arm_tdep): Update.
4856 (arm_objfile_data_free): Remove.
4857
4858 2019-06-27 Tom Tromey <tromey@adacore.com>
4859
4860 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
4861 to cp_print_static_field.
4862
4863 2019-06-26 Tom Tromey <tromey@adacore.com>
4864
4865 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
4866 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
4867 declare.
4868
4869 2019-06-26 Alan Hayward <alan.hayward@arm.com>
4870
4871 * features/aarch64-core.c (create_feature_aarch64_core):
4872 Regenerate.
4873 * features/aarch64-core.xml: Add cpsr flags.
4874
4875 2019-06-26 Alan Hayward <alan.hayward@arm.com>
4876
4877 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
4878 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
4879
4880 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4881
4882 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
4883 field.
4884 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
4885 use.
4886 (arm_record_special_symbol): Don't insert new symbol in sorted
4887 position, push it at the end.
4888
4889 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4890
4891 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
4892 (arm_mapping_symbol_s): Remove.
4893 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
4894 (arm_mapping_symbol_vec): New typedef.
4895 (struct arm_per_objfile): Add constructor.
4896 <section_maps>: Change type to
4897 std::unique_ptr<arm_mapping_symbol_vec[]>.
4898 (arm_compare_mapping_symbols): Remove.
4899 (arm_find_mapping_symbol): Adjust to section_maps type change.
4900 (arm_objfile_data_free): Call delete on arm_per_objfile.
4901 (arm_record_special_symbol): Adjust to section_maps type change.
4902 Allocate arm_per_objfile with new.
4903
4904 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4905
4906 * cli/cli-cmds.c (alias_command): Compare the alias prefix
4907 with the command prefix.
4908
4909 2019-06-25 Tom Tromey <tom@tromey.com>
4910
4911 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
4912 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
4913
4914 2019-06-25 Tom Tromey <tom@tromey.com>
4915
4916 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
4917 type.
4918 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
4919 protected.
4920
4921 2019-06-25 Tom Tromey <tom@tromey.com>
4922
4923 * tui/tui-winsource.c
4924 (tui_source_window_base::set_is_exec_point_at): Add check against
4925 LOA_ADDRESS.
4926
4927 2019-06-25 Tom Tromey <tom@tromey.com>
4928
4929 * tui/tui-source.c (tui_set_source_content): Don't check before
4930 xfree.
4931 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
4932
4933 2019-06-25 Tom Tromey <tom@tromey.com>
4934
4935 * tui/tui-winsource.h (tui_update_source_window_as_is)
4936 (tui_alloc_source_buffer, tui_line_is_displayed)
4937 (tui_addr_is_displayed): Change type of win_info.
4938 * tui/tui-winsource.c (tui_update_source_window_as_is)
4939 (tui_clear_source_content, tui_show_source_line)
4940 (tui_show_source_content, tui_source_window_base::refill)
4941 (tui_source_window_base::set_is_exec_point_at)
4942 (tui_source_window_base::set_is_exec_point_at)
4943 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
4944 (tui_alloc_source_buffer, tui_line_is_displayed)
4945 (tui_addr_is_displayed): Change type of win_info. Update.
4946 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4947 (tui_source_window_base::do_make_visible_with_new_height):
4948 Update.
4949 * tui/tui-source.c (tui_set_source_content)
4950 (tui_set_source_content_nil)
4951 (tui_source_window::do_scroll_vertical): Update.
4952 * tui/tui-layout.c (show_layout): Update.
4953 * tui/tui-disasm.c (tui_set_disassem_content)
4954 (tui_disasm_window::do_scroll_vertical): Update.
4955 * tui/tui-data.h (tui_win_content): Remove.
4956 (struct tui_gen_win_info) <content, content_size>: Remove.
4957 (struct tui_source_element): Add initializers and destructor.
4958 (union tui_which_element, struct tui_win_element): Remove.
4959 (struct tui_source_window_base) <content>: New field.
4960 (struct tui_data_window): Remove destructor.
4961 (tui_alloc_content, tui_free_win_content)
4962 (tui_free_all_source_wins_content): Don't declare.
4963 * tui/tui-data.c (tui_initialize_static_data): Update.
4964 (init_content_element, tui_alloc_content): Remove.
4965 (~tui_gen_win_info): Update.
4966 (~tui_data_window, tui_free_all_source_wins_content)
4967 (tui_free_win_content, free_content, free_content_elements):
4968 Remove.
4969
4970 2019-06-25 Tom Tromey <tom@tromey.com>
4971
4972 * tui/tui-winsource.h (tui_clear_source_content)
4973 (tui_erase_source_content, tui_show_source_content): Change type
4974 of win_info.
4975 * tui/tui-winsource.c (tui_clear_source_content)
4976 (tui_erase_source_content, tui_show_source_content): Change type
4977 of win_info.
4978 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4979 * tui/tui-source.h (tui_set_source_content_nil): Change type of
4980 win_info.
4981 * tui/tui-source.c (tui_set_source_content_nil): Change type of
4982 win_info.
4983 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
4984
4985 2019-06-25 Tom Tromey <tom@tromey.com>
4986
4987 * tui/tui-winsource.c (tui_clear_source_content)
4988 (tui_source_window_base::set_is_exec_point_at): Update.
4989 * tui/tui-source.c (tui_set_source_content_nil): Update.
4990 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
4991 a bool.
4992 * tui/tui-data.c (init_content_element): Update.
4993
4994 2019-06-25 Tom Tromey <tom@tromey.com>
4995
4996 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
4997 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
4998 * tui/tui-layout.c (init_and_make_win): Update.
4999 * tui/tui.h (enum tui_win_type): Update.
5000 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
5001 tui_win_is_auxillary.
5002 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
5003 tui_win_is_auxillary.
5004
5005 2019-06-25 Tom Tromey <tom@tromey.com>
5006
5007 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
5008 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
5009 (tui_delete_data_content_windows, tui_display_all_data)
5010 (tui_data_window::do_scroll_vertical, tui_display_data_from):
5011 Update.
5012 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
5013 * tui/tui-regs.c (tui_last_regs_line_no)
5014 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5015 (tui_show_registers): Update.
5016 (tui_show_register_group): Return void. Update.
5017 (tui_display_registers_from, tui_display_reg_element_at_line)
5018 (tui_display_registers_from_line, tui_check_register_values):
5019 Update.
5020 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
5021 member.
5022 (struct tui_data_window) <regs_content>: Now a std::vector.
5023 <regs_content_count>: Remove.
5024 (tui_add_content_elements, tui_free_data_content): Don't declare.
5025 * tui/tui-data.c (tui_data_window::clear_detail): Update.
5026 (init_content_element): Remove DATA_WIN case. Add assert.
5027 (tui_add_content_elements): Remove.
5028 (tui_data_window): Update.
5029 (tui_free_data_content): Remove.
5030 (free_content_elements): Remove DATA_WIN case.
5031
5032 2019-06-25 Tom Tromey <tom@tromey.com>
5033
5034 * tui/tui-data.c (tui_data_item_window): Update.
5035 * tui/tui-windata.h (tui_check_data_values): Don't declare.
5036 * tui/tui-windata.c (tui_display_all_data)
5037 (tui_display_data_from_line): Update.
5038 (tui_check_data_values): Remove.
5039 * tui/tui-regs.c (tui_show_register_group)
5040 (tui_display_reg_element_at_line): Update.
5041 * tui/tui-hooks.c (tui_register_changed)
5042 (tui_refresh_frame_and_register_information): Call
5043 tui_check_register_values.
5044 * tui/tui-data.h (struct tui_data_window) <data_content,
5045 data_content_count, data_type>: Remove.
5046 (enum tui_data_type): Remove.
5047
5048 * tui/tui-data.c (tui_data_window::clear_detail)
5049 (~tui_data_window): Update.
5050
5051 2019-06-25 Tom Tromey <tom@tromey.com>
5052
5053 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
5054 declare.
5055 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
5056 Rename from tui_first_data_item_displayed. Update.
5057 (tui_data_window::refresh_all)
5058 (tui_data_window::do_scroll_vertical): Update.
5059 * tui/tui-data.h (struct tui_data_window)
5060 <first_data_item_displayed>: Declare new method.
5061
5062 2019-06-25 Tom Tromey <tom@tromey.com>
5063
5064 * tui/tui-data.h (tui_init_generic_part): Don't declare.
5065 * tui/tui-data.c (tui_init_generic_part): Remove, moving
5066 contents...
5067 (tui_initialize_static_data): ...here.
5068
5069 2019-06-25 Tom Tromey <tom@tromey.com>
5070
5071 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5072 (tui_display_registers_from, tui_check_register_values): Update.
5073 (tui_display_register): Remove win_info parameter; update.
5074 (tui_get_register): Change type of parameters.
5075 * tui/tui-data.h (struct tui_data_element): Remove.
5076 (union tui_which_element) <data>: Remove.
5077 <data_window>: Change type.
5078 (struct tui_data_item_window): New.
5079 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
5080 case. Add assert.
5081 (~tui_data_item_window): New destructor.
5082 (free_content_elements): Remove DATA_ITEM_WIN case.
5083
5084 2019-06-25 Tom Tromey <tom@tromey.com>
5085
5086 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
5087 Remove.
5088
5089 2019-06-25 Tom Tromey <tom@tromey.com>
5090
5091 * tui/tui-data.h (struct tui_command_element): Remove.
5092 (union tui_which_element) <command>: Remove.
5093 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
5094 assert.
5095 (free_content_elements): Remove CMD_WIN case.
5096
5097 2019-06-25 Tom Tromey <tom@tromey.com>
5098
5099 * tui/tui-layout.c (tui_set_layout): Update.
5100 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
5101 * tui/tui-data.c (layout_def): Update.
5102
5103 2019-06-25 Tom Tromey <tom@tromey.com>
5104
5105 * tui/tui-wingeneral.c (tui_refresh_all): Update.
5106 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5107 (tui_source_window_base::set_new_height): Update.
5108 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
5109 Update.
5110 (tui_set_locator_fullname, tui_set_locator_info)
5111 (tui_show_frame_info): Update.
5112 * tui/tui-source.c (tui_set_source_content)
5113 (tui_source_is_displayed): Update.
5114 * tui/tui-layout.c (show_source_disasm_command, show_data)
5115 (show_source_or_disasm_and_command): Update.
5116 * tui/tui-disasm.c (tui_set_disassem_content)
5117 (tui_get_begin_asm_address): Update.
5118 * tui/tui-data.h (struct tui_locator_element): Remove.
5119 (union tui_which_element) <locator>: Remove.
5120 (struct tui_locator_window): New.
5121 (tui_locator_win_info_ptr): Change return type.
5122 * tui/tui-data.c (_locator): Change type.
5123 (tui_locator_win_info_ptr): Change return type.
5124 (init_content_element): Remove LOCATOR_WIN case. Add assert.
5125 (tui_alloc_content): Add assert.
5126
5127 2019-06-25 Tom Tromey <tom@tromey.com>
5128
5129 * tui/tui-winsource.c
5130 (tui_exec_info_window::maybe_allocate_content): New method.
5131 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
5132 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
5133 (make_source_or_disasm_window): Add cast.
5134 * tui/tui-data.h (union tui_which_element) <simple_string>:
5135 Remove.
5136 (struct tui_source_info): New.
5137 (struct tui_source_window_base) <execution_info>: Change type.
5138 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
5139 case, and add assert.
5140 (tui_alloc_content): Add assert.
5141
5142 2019-06-25 Tom Tromey <tom@tromey.com>
5143
5144 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
5145 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
5146 * tui/tui-data.c (tui_alloc_win_info): Remove.
5147
5148 2019-06-25 Tom Tromey <tom@tromey.com>
5149
5150 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
5151 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
5152 can_highlight.
5153
5154 2019-06-25 Tom Tromey <tom@tromey.com>
5155
5156 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
5157 make_visible_with_new_height method.
5158 (tui_win_info::make_visible_with_new_height): New method.
5159 (tui_source_window_base::do_make_visible_with_new_height)
5160 (tui_data_window::do_make_visible_with_new_height)
5161 (tui_cmd_window::do_make_visible_with_new_height): New methods.
5162 (make_visible_with_new_height): Remove.
5163 (tui_resize_all, tui_adjust_win_heights): Use
5164 make_visible_with_new_height method.
5165 * tui/tui-data.h (struct tui_win_info)
5166 <do_make_visible_with_new_height, make_visible_with_new_height>:
5167 New methods.
5168 (struct tui_source_window_base, struct tui_data_window)
5169 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
5170 methods.
5171
5172 2019-06-25 Tom Tromey <tom@tromey.com>
5173
5174 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
5175 method.
5176 (update_tab_width): Call update_tab_width method.
5177 * tui/tui-data.h (struct tui_win_info)
5178 (struct tui_source_window_base) <update_tab_width>: New methods.
5179
5180 2019-06-25 Tom Tromey <tom@tromey.com>
5181
5182 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
5183 parameter.
5184 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
5185 parameter.
5186 (tui_gen_win_info::make_visible): Update.
5187 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
5188 parameter.
5189 * tui/tui-data.h (enum tui_box): New enum.
5190 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
5191
5192 2019-06-25 Tom Tromey <tom@tromey.com>
5193
5194 * tui/tui-layout.c (make_source_or_disasm_window): Always use
5195 init_and_make_win for EXEC_INFO_WIN.
5196 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
5197 longer inline.
5198 (struct tui_win_info) <~tui_win_info>: Inline.
5199 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5200 Don't declare.
5201 * tui/tui-data.c (source_win, disasm_win): Remove globals.
5202 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5203 Remove.
5204 (tui_initialize_static_data): Update.
5205 (~tui_gen_win_info): Handle more cleanup here.
5206 (~tui_source_window_base): Delete "execution_info".
5207 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
5208
5209 2019-06-25 Tom Tromey <tom@tromey.com>
5210
5211 * tui/tui-layout.c (make_command_window): Don't set
5212 can_highlight.
5213 (show_source_disasm_command): Call the reset method.
5214 (show_data): Don't set can_highlight. Call the reset method.
5215 (tui_gen_win_info::reset): Rename from init_gen_win_info
5216 (init_and_make_win): Simplify. Return tui_gen_win_info.
5217 (show_source_or_disasm_and_command): Call the reset method.
5218 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
5219 (struct tui_cmd_window): Set can_highlight.
5220
5221 2019-06-25 Tom Tromey <tom@tromey.com>
5222
5223 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
5224 from make_visible.
5225 (tui_make_visible, tui_make_invisible): Rewrite.
5226 (tui_win_info::make_visible): Remove.
5227 (tui_source_window_base::make_visible): Update.
5228 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
5229 method. Moved from...
5230 (struct tui_win_info) <make_visible>: ...here.
5231
5232 2019-06-25 Tom Tromey <tom@tromey.com>
5233
5234 * tui/tui-winsource.c
5235 (tui_source_window_base::do_scroll_horizontal): Remove direction
5236 parameter.
5237 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
5238 direction parameter.
5239 * tui/tui-win.c (tui_win_info::forward_scroll)
5240 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5241 (tui_win_info::right_scroll): Update.
5242 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
5243 direction parameter.
5244 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
5245 direction parameter.
5246 * tui/tui-data.h (enum tui_scroll_direction): Remove.
5247 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
5248 Remove direction parameter.
5249 (struct tui_source_window_base, struct tui_source_window)
5250 (struct tui_disasm_window, struct tui_data_window)
5251 (struct tui_cmd_window): Update.
5252
5253 2019-06-25 Tom Tromey <tom@tromey.com>
5254
5255 * tui/tui-winsource.h (tui_set_exec_info_content)
5256 (tui_show_exec_info_content, tui_erase_exec_info_content)
5257 (tui_clear_exec_info_content, tui_update_exec_info): Change
5258 argument to tui_source_window_base.
5259 * tui/tui-winsource.c (tui_set_exec_info_content)
5260 (tui_show_exec_info_content, tui_erase_exec_info_content)
5261 (tui_clear_exec_info_content, tui_update_exec_info): Change
5262 argument to tui_source_window_base.
5263
5264 2019-06-25 Tom Tromey <tom@tromey.com>
5265
5266 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
5267 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
5268
5269 2019-06-25 Tom Tromey <tom@tromey.com>
5270
5271 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
5272 check.
5273
5274 2019-06-25 Tom Tromey <tom@tromey.com>
5275
5276 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
5277 type to void.
5278 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
5279 type to void.
5280 * tui/tui-source.c (tui_set_source_content): Update.
5281 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5282
5283 2019-06-25 Tom Tromey <tom@tromey.com>
5284
5285 * tui/tui-win.c (window_name_completer, tui_set_focus)
5286 (tui_all_windows_info): Use name method.
5287 * tui/tui-data.h (struct tui_gen_win_info)
5288 (struct tui_source_window, struct tui_disasm_window)
5289 (struct tui_data_window, struct tui_cmd_window) <name>: New
5290 method.
5291 (tui_win_name): Don't declare.
5292 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
5293 (tui_win_name): Remove.
5294
5295 2019-06-25 Tom Tromey <tom@tromey.com>
5296
5297 * tui/tui-winsource.h (tui_update_source_window)
5298 (tui_update_source_window_as_is): Change parameter type.
5299 * tui/tui-winsource.c (tui_update_source_window): Change win_info
5300 to be a tui_source_window_base.
5301 (tui_update_source_window_as_is): Likewise.
5302 * tui/tui-win.c (make_visible_with_new_height): Update.
5303
5304 2019-06-25 Tom Tromey <tom@tromey.com>
5305
5306 * tui/tui-winsource.c (tui_erase_source_content)
5307 (tui_show_source_content, tui_show_exec_info_content)
5308 (tui_erase_exec_info_content): Use refresh_window method.
5309 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
5310 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
5311 from tui_refresh_win.
5312 (tui_data_window::refresh_window): New method.
5313 (tui_win_info::refresh, tui_source_window_base::refresh)
5314 (tui_refresh_all): Use refresh_window method.
5315 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
5316 method.
5317 * tui/tui-regs.c (tui_display_register): Call refresh_window
5318 method.
5319 * tui/tui-layout.c (show_source_disasm_command)
5320 (show_source_or_disasm_and_command): Call refresh_window method.
5321 * tui/tui-data.h (struct tui_gen_win_info)
5322 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
5323 New method.
5324
5325 2019-06-25 Tom Tromey <tom@tromey.com>
5326
5327 * tui/tui.c (tui_rl_other_window, tui_enable)
5328 (tui_is_window_visible, tui_get_command_dimension): Update.
5329 * tui/tui-winsource.c (tui_update_source_window_as_is)
5330 (tui_clear_source_content, tui_erase_source_content)
5331 (tui_show_source_line, tui_source_window_base::refill)
5332 (tui_source_window_base::do_scroll_horizontal)
5333 (tui_source_window_base::set_is_exec_point_at)
5334 (tui_update_breakpoint_info, tui_set_exec_info_content)
5335 (tui_alloc_source_buffer, tui_line_is_displayed)
5336 (tui_addr_is_displayed): Update.
5337 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5338 (tui_check_and_display_highlight_if_needed)
5339 (tui_win_info::make_visible, tui_win_info::refresh)
5340 (tui_refresh_all): Update.
5341 * tui/tui-windata.c (tui_first_data_item_displayed)
5342 (tui_delete_data_content_windows, tui_erase_data_content)
5343 (tui_display_all_data, tui_data_window::refresh_all)
5344 (tui_check_data_values): Update.
5345 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
5346 (tui_set_win_focus_to, tui_win_info::forward_scroll)
5347 (tui_win_info::backward_scroll, tui_refresh_all_win)
5348 (tui_resize_all, tui_set_focus, tui_all_windows_info)
5349 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
5350 (tui_source_window_base::set_new_height)
5351 (tui_data_window::set_new_height)
5352 (make_invisible_and_set_new_height)
5353 (make_visible_with_new_height, new_height_ok)
5354 (parse_scrolling_args): Update.
5355 * tui/tui-stack.c (tui_show_frame_info): Update.
5356 * tui/tui-source.c (tui_set_source_content)
5357 (tui_set_source_content_nil, tui_source_is_displayed)
5358 (tui_source_window::do_scroll_vertical): Update.
5359 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5360 (tui_display_registers_from, tui_display_reg_element_at_line)
5361 (tui_check_register_values, tui_reg_command): Update.
5362 * tui/tui-layout.c (tui_default_win_height)
5363 (show_source_disasm_command, show_data, init_and_make_win)
5364 (show_source_or_disasm_and_command): Update.
5365 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
5366 (tui_redisplay_readline, tui_mld_flush)
5367 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
5368 (tui_getc): Update.
5369 * tui/tui-disasm.c (tui_set_disassem_content)
5370 (tui_disasm_window::do_scroll_vertical): Update.
5371 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
5372 Now virtual.
5373 (struct tui_win_info): Derive from tui_gen_win_info.
5374 <~tui_win_info>: Mark as override.
5375 <generic>: Remove member.
5376 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
5377 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
5378 (~tui_data_window, ~tui_win_info)
5379 (tui_free_all_source_wins_content): Update.
5380 * tui/tui-command.c (tui_refresh_cmd_win): Update.
5381
5382 2019-06-25 Tom Tromey <tom@tromey.com>
5383
5384 * tui/tui-layout.c (init_and_make_win): Use new.
5385 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
5386 destructor, initializers.
5387 (tui_alloc_generic_win_info): Don't declare.
5388 * tui/tui-data.c (_locator): Add argument to constructor.
5389 (source_win, disasm_win): New globals.
5390 (exec_info): Remove.
5391 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5392 Update.
5393 (tui_alloc_generic_win_info): Remove.
5394 (init_content_element): Use new.
5395 (tui_win_info::tui_win_info): Update.
5396 (free_content_elements) <case DATA_WIN>: Use delete.
5397
5398 2019-06-25 Tom Tromey <tom@tromey.com>
5399
5400 * tui/tui-wingeneral.c (tui_refresh_win): Update.
5401 * tui/tui-windata.c (tui_first_data_item_displayed)
5402 (tui_delete_data_content_windows): Update.
5403 * tui/tui-win.c (tui_data_window::set_new_height): Update.
5404 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5405 (tui_display_registers_from, tui_check_register_values): Update.
5406 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
5407 pointer.
5408 * tui/tui-data.c (init_content_element): Update. Allocate the new
5409 window.
5410 (tui_free_data_content): Update.
5411 (free_content_elements) <case DATA_WIN>: Free the window.
5412
5413 2019-06-25 Tom Tromey <tom@tromey.com>
5414
5415 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
5416 Update.
5417 * tui/tui-layout.c (make_command_window)
5418 (show_source_disasm_command, show_data, init_and_make_win)
5419 (show_source_or_disasm_and_command): Update.
5420 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
5421 method.
5422 <can_highight, is_highlighted>: Now bool.
5423 (tui_set_win_highlight): Don't declare.
5424 * tui/tui-data.c (tui_set_win_highlight): Remove.
5425
5426 2019-06-25 Tom Tromey <tom@tromey.com>
5427
5428 * tui/tui-wingeneral.c (make_visible): Remove check of window
5429 type.
5430
5431 2019-06-25 Tom Tromey <tom@tromey.com>
5432
5433 * tui/tui-win.c (tui_win_info::max_height)
5434 (tui_cmd_window::max_height): New methods.
5435 (new_height_ok): Call max_height.
5436 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
5437 <max_height>: New method.
5438
5439 2019-06-25 Tom Tromey <tom@tromey.com>
5440
5441 * tui/tui-win.c (tui_source_window_base::set_new_height)
5442 (tui_data_window::set_new_height): New methods.
5443 (make_invisible_and_set_new_height): Call set_new_height method.
5444 * tui/tui-data.h (struct tui_win_info)
5445 (struct tui_source_window_base, struct tui_data_window)
5446 <set_new_height>: New method.
5447
5448 2019-06-25 Tom Tromey <tom@tromey.com>
5449
5450 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
5451 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
5452 tui_refresh_data_win.
5453 * tui/tui-win.c (tui_source_window_base::refresh_all): New
5454 method.
5455 (tui_refresh_all_win): Call the refresh_all method.
5456 (tui_set_focus): Likewise.
5457 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
5458 (struct tui_source_window_base, struct tui_data_window) <refresh>:
5459 Likewise.
5460
5461 2019-06-25 Tom Tromey <tom@tromey.com>
5462
5463 * tui/tui-winsource.h (tui_refill_source_window)
5464 (tui_set_is_exec_point_at): Don't declare.
5465 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5466 (tui_source_window_base::refill): Rename from
5467 tui_refill_source_window.
5468 (tui_source_window_base::do_scroll_horizontal): Update.
5469 (tui_source_window_base::set_is_exec_point_at): Rename from
5470 tui_set_is_exec_point_at.
5471 (tui_update_all_breakpoint_info): Update.
5472 * tui/tui-stack.c (tui_show_frame_info): Update.
5473 * tui/tui-layout.c (show_data): Add cast.
5474 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
5475 * tui/tui-data.h (struct tui_source_window_base) <refill,
5476 set_is_exec_point_at>: New methods.
5477 (tui_source_windows, tui_add_to_source_windows): Update types.
5478 (tui_add_to_source_windows): Remove redundant declaration.
5479 * tui/tui-data.c (source_windows): Store tui_source_window_base.
5480 (tui_source_windows): Change return type.
5481 (tui_clear_source_windows_detail): Update.
5482 (tui_add_to_source_windows): Change type of parameter.
5483 (tui_free_all_source_wins_content): Update.
5484
5485 2019-06-25 Tom Tromey <tom@tromey.com>
5486
5487 * tui/tui-wingeneral.c (tui_win_info::refresh)
5488 (tui_source_window_base::refresh): New methods.
5489 (tui_refresh_all): Call the refresh method.
5490 * tui/tui-data.h (struct tui_win_info)
5491 (struct tui_source_window_base) <refresh>: New method.
5492
5493 2019-06-25 Tom Tromey <tom@tromey.com>
5494
5495 * tui/tui.h (tui_is_window_visible): Return bool.
5496 * tui/tui.c (tui_is_window_visible): Return bool.
5497 * tui/tui-wingeneral.c (tui_make_window, make_visible)
5498 (tui_make_visible, tui_make_invisible)
5499 (tui_win_info::make_visible)
5500 (tui_source_window_base::make_visible, make_all_visible)
5501 (tui_make_all_visible, tui_make_all_invisible): Update.
5502 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
5503 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
5504 bool.
5505 (struct tui_win_info, struct tui_source_window_base)
5506 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
5507 * tui/tui-data.c (tui_init_generic_part): Update.
5508
5509 2019-06-25 Tom Tromey <tom@tromey.com>
5510
5511 * tui/tui-wingeneral.c (tui_win_info::make_visible)
5512 (tui_source_window_base::make_visible): New methods.
5513 (make_all_visible): Make method call.
5514 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
5515 (struct tui_source_window_base, struct tui_cmd_window): Override
5516 make_visible.
5517 (tui_win_is_source_type): Don't declare.
5518 * tui/tui-data.c (tui_win_is_source_type): Remove.
5519
5520 2019-06-25 Tom Tromey <tom@tromey.com>
5521
5522 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
5523 NULL check.
5524
5525 2019-06-25 Tom Tromey <tom@tromey.com>
5526
5527 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
5528 Inline constructor. Add initializers for members.
5529 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
5530 constructors; now inline in class.
5531
5532 2019-06-25 Tom Tromey <tom@tromey.com>
5533
5534 * tui/tui-regs.c (tui_show_registers): Update.
5535 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
5536 bool.
5537 * tui/tui-data.c (tui_data_window::clear_detail)
5538 (tui_data_window): Update.
5539
5540 2019-06-25 Tom Tromey <tom@tromey.com>
5541
5542 * tui/tui-windata.c (tui_display_all_data)
5543 (tui_display_data_from_line, tui_display_data_from)
5544 (tui_check_data_values, tui_data_window::do_scroll_vertical):
5545 Update.
5546 * tui/tui-regs.c (tui_last_regs_line_no)
5547 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5548 (tui_show_registers, tui_show_register_group)
5549 (tui_display_registers_from, tui_display_reg_element_at_line)
5550 (tui_display_registers_from_line, tui_check_register_values)
5551 (tui_reg_next, tui_reg_prev): Update.
5552 * tui/tui-layout.c (tui_set_layout, show_data): Update.
5553 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
5554 tui_data_window.
5555 (struct tui_win_info) <detail>: Remove. Add new fields from
5556 tui_data_info.
5557 (TUI_DATA_WIN): Add cast.
5558 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
5559 (~tui_data_window): Simplify.
5560
5561 2019-06-25 Tom Tromey <tom@tromey.com>
5562
5563 * tui/tui-layout.c (show_source_disasm_command)
5564 (show_source_or_disasm_and_command): Update.
5565 * tui/tui-io.c (update_cmdwin_start_line)
5566 (tui_redisplay_readline): Update.
5567 * tui/tui-data.h (struct tui_command_info): Remove.
5568 (struct tui_win_info) <detail>: Remove command_info member.
5569 (struct tui_data_window) <start_line>: New member, from
5570 tui_command_info.
5571 (TUI_CMD_WIN): Add casts.
5572
5573 2019-06-25 Tom Tromey <tom@tromey.com>
5574
5575 * tui/tui-winsource.c (tui_update_source_window)
5576 (tui_refill_source_window)
5577 (tui_source_window_base::do_scroll_horizontal)
5578 (tui_update_breakpoint_info, tui_set_exec_info_content)
5579 (tui_show_exec_info_content, tui_erase_exec_info_content)
5580 (tui_clear_exec_info_content): Update.
5581 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
5582 Update.
5583 * tui/tui-win.c (make_invisible_and_set_new_height)
5584 (make_visible_with_new_height): Update.
5585 * tui/tui-source.c (tui_set_source_content)
5586 (tui_show_symtab_source): Update.
5587 * tui/tui-layout.c (extract_display_start_addr)
5588 (show_source_disasm_command, show_data)
5589 (make_source_or_disasm_window)
5590 (show_source_or_disasm_and_command): Update.
5591 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
5592 (tui_disasm_window::do_scroll_vertical): Remove shadowing
5593 "gdbarch".
5594 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
5595 to tui_source_window_base.
5596 (struct tui_win_info) <detail>: Remove source_info member.
5597 (struct tui_source_window_base) <has_locator>: Inline.
5598 Move contents from tui_source_info; rename has_locator member to
5599 m_has_locator.
5600 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
5601 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
5602 header file.
5603 (tui_source_window_base::clear_detail, ~tui_source_window_base):
5604 Simplify.
5605 (tui_free_all_source_wins_content): Cast to
5606 tui_source_window_base.
5607
5608 2019-06-25 Tom Tromey <tom@tromey.com>
5609
5610 * tui/tui-win.c (make_invisible_and_set_new_height)
5611 (make_visible_with_new_height): Call has_locator method.
5612 * tui/tui-layout.c (show_source_disasm_command, show_data)
5613 (show_source_or_disasm_and_command): Update for bool change.
5614 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
5615 (tui_win_info) <has_locator>: New method.
5616 (struct tui_source_window_base) <has_locator>: New method.
5617 (tui_win_has_locator): Don't declare.
5618 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
5619 from tui_win_has_locator.
5620 (tui_source_window_base): Use false, not FALSE.
5621
5622 2019-06-25 Tom Tromey <tom@tromey.com>
5623
5624 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
5625 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
5626 clear_detail method directly.
5627 (tui_clear_win_detail): Remove.
5628
5629 2019-06-25 Tom Tromey <tom@tromey.com>
5630
5631 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
5632 "this", not TUI_DISASM_WIN.
5633
5634 2019-06-25 Tom Tromey <tom@tromey.com>
5635
5636 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
5637 declare.
5638 * tui/tui-winsource.c
5639 (tui_source_window_base::do_scroll_horizontal): Rename from
5640 tui_horizontal_source_scroll.
5641 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
5642 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
5643 from tui_vertical_data_scroll.
5644 * tui/tui-win.h (tui_scroll): Don't declare.
5645 * tui/tui-win.c (tui_win_info::forward_scroll)
5646 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5647 (tui_win_info::right_scroll): Rename and update.
5648 (tui_scroll_forward_command, tui_scroll_backward_command)
5649 (tui_scroll_left_command, tui_scroll_right_command): Update.
5650 (tui_scroll): Remove.
5651 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
5652 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
5653 from tui_vertical_source_scroll.
5654 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
5655 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
5656 from tui_vertical_disassem_scroll.
5657 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
5658 do_scroll_horizontal>: New methods.
5659 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
5660 Likewise.
5661 (struct tui_source_window_base): Add do_scroll_horizontal.
5662 (struct tui_source_window, struct tui_disasm_window): Add
5663 do_scroll_vertical.
5664 (struct tui_data_window, struct tui_cmd_window): Add
5665 do_scroll_horizontal and do_scroll_vertical.
5666 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
5667
5668 2019-06-25 Tom Tromey <tom@tromey.com>
5669
5670 * tui/tui-data.h (struct tui_source_window_base): New struct.
5671 (struct tui_source_window): Derive from tui_source_window_base.
5672 (struct tui_disasm_window): New struct.
5673 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
5674 from tui_source_window::clear_detail.
5675 (tui_source_window_base): Rename from tui_source_window.
5676 (~tui_source_window_base): Rename from ~tui_source_window.
5677 (tui_alloc_win_info): Create a tui_disasm_window.
5678
5679 2019-06-25 Tom Tromey <tom@tromey.com>
5680
5681 * tui/tui-data.h (struct tui_source_window)
5682 (struct tui_data_window): Declare destructors.
5683 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
5684 destructors.
5685 (tui_win_info): Simplify.
5686
5687 2019-06-25 Tom Tromey <tom@tromey.com>
5688
5689 * tui/tui-winsource.c (tui_display_main)
5690 (tui_update_source_windows_with_addr)
5691 (tui_update_all_breakpoint_info): Update.
5692 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5693 (new_height_ok, parse_scrolling_args): Update.
5694 * tui/tui-stack.c (tui_show_frame_info): Update.
5695 * tui/tui-data.h (struct tui_list): Remove.
5696 (tui_source_windows): Return a reference to a std::vector.
5697 * tui/tui-data.c (source_windows): Now a std::vector.
5698 (tui_source_windows): Change return type.
5699 (tui_clear_source_windows): Rewrite.
5700 (tui_clear_source_windows_detail, tui_add_to_source_windows)
5701 (tui_free_all_source_wins_content): Rewrite.
5702
5703 2019-06-25 Tom Tromey <tom@tromey.com>
5704
5705 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
5706 (struct tui_data_window, struct tui_cmd_window): Declare
5707 clear_detail method.
5708 * tui/tui-data.c (tui_source_window::clear_detail)
5709 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
5710 methods.
5711 (tui_clear_win_detail): Simplify.
5712
5713 2019-06-25 Tom Tromey <tom@tromey.com>
5714
5715 * tui/tui-layout.c (make_source_window, make_disasm_window)
5716 (make_source_or_disasm_window): Remove win_info_ptr parameter.
5717 Return the new window.
5718 (show_source_disasm_command, show_data)
5719 (show_source_or_disasm_and_command): Update.
5720
5721 2019-06-25 Tom Tromey <tom@tromey.com>
5722
5723 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
5724 parameter. Return the new window.
5725 (show_source_disasm_command): Update and remove NULL check.
5726 (show_source_or_disasm_and_command): Update.
5727
5728 2019-06-25 Tom Tromey <tom@tromey.com>
5729
5730 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
5731
5732 2019-06-25 Tom Tromey <tom@tromey.com>
5733
5734 * tui/tui-data.h (struct tui_win_info): Make constructor
5735 protected. Make destructor virtual. Add initializers.
5736 (tui_source_window, tui_data_window, tui_cmd_window): New
5737 classes.
5738 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
5739 constructor. Add "type" parameter.
5740 (tui_source_window, tui_data_window, tui_cmd_window): New
5741 constructors.
5742 (tui_alloc_win_info): Instantiate the appropriate subclass.
5743
5744 2019-06-25 Tom Tromey <tom@tromey.com>
5745
5746 * tui/tui-win.c (tui_resize_all): Use delete.
5747 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
5748 destructor.
5749 (tui_free_window): Don't declare.
5750 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
5751 Update.
5752
5753 2019-06-25 Tom Tromey <tom@tromey.com>
5754
5755 * tui/tui-data.h (struct tui_win_info): Add constructor.
5756 * tui/tui-data.c (tui_alloc_win_info): Use new.
5757 (tui_free_window): Use delete.
5758
5759 2019-06-22 Tom Tromey <tom@tromey.com>
5760
5761 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
5762 declare.
5763 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
5764
5765 2019-06-22 Tom Tromey <tom@tromey.com>
5766
5767 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
5768 declare.
5769 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
5770
5771 2019-06-22 Tom de Vries <tdevries@suse.de>
5772
5773 * dwarf2read.c (create_addrmap_from_aranges)
5774 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
5775 instead of '%zu'.
5776
5777 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
5778
5779 * dwarf2read.h (dwarf2_section_info_def): Remove.
5780 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
5781 * dwarf2read.c (struct dwo_sections) <types>: Change type to
5782 std::vector<dwarf2_section_info>.
5783 (struct dwo_file) <~dwo_file>: Remove.
5784 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
5785 types field.
5786 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
5787 (dwarf2_read_debug_names): Likewise.
5788 (create_debug_types_hash_table): Change parameter type to
5789 array_view, adjust code accordingly.
5790 (dwarf2_locate_dwo_sections): Adjust to std::vector.
5791 (partial_die_info::fixup): Likewise.
5792 (determine_prefix): Likewise.
5793 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
5794
5795 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5796
5797 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
5798 gdb_bfd_ref_ptr.
5799 <~dwo_file>: Remove call to gdb_bfd_unref.
5800 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
5801 gdb_bfd_ref_ptr::get.
5802
5803 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5804
5805 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
5806 type to htab_up.
5807 * dwarf2read.c (struct dwo_file): Initialize fields.
5808 <~dwo_file>: New.
5809 (free_dwo_file): Remove, move content to ~dwo_file.
5810 (struct dwo_file_deleter): Remove.
5811 (dwo_file_up>: Remove custom deleter.
5812 (free_dwo_files): Remove.
5813 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
5814 dwo_files.
5815 (process_skeletonless_type_units): Call unique_ptr::get.
5816 (allocate_dwo_file_hash_table): Add deleter to created hash
5817 table. Change return type to htab_up.
5818 (lookup_dwo_file_slot): Don't memset dwo_file, call
5819 unique_ptr::get.
5820 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
5821 (create_dwo_unit_in_dwp_v2): Likewise.
5822 (open_and_init_dwo_file): Likewise.
5823 (free_dwo_file_from_slot): Remove.
5824
5825 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5826
5827 * dwarf2read.h (struct dwarf2_section_info) <readin,
5828 is_virtual>: Change type to bool.
5829 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
5830 true instead of 1.
5831
5832 2019-06-19 Tom Tromey <tom@tromey.com>
5833
5834 * tui/tui-data.h (tui_init_content_element): Don't declare.
5835
5836 2019-06-19 Tom Tromey <tom@tromey.com>
5837
5838 * tui/tui-data.h (tui_init_win_info): Don't declare.
5839
5840 2019-06-19 Tom de Vries <tdevries@suse.de>
5841
5842 * dwarf2read.h (abstract_to_concrete): Change type to
5843 std::unordered_map<sect_offset, std::vector<sect_offset>,
5844 gdb::hash_enum<sect_offset>>.
5845
5846 2019-06-19 Tom Tromey <tromey@adacore.com>
5847
5848 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
5849 EVAL_AVOID_SIDE_EFFECTS specially.
5850
5851 2019-06-19 Tom Tromey <tromey@adacore.com>
5852
5853 * source-cache.c (highlighter): New global.
5854 (source_cache::get_source_lines): Create a highlighter on demand.
5855
5856 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
5857
5858 * defs.h (deprecated_interactive_hook): Delete declaration.
5859 * interps.c (clear_interpreter_hooks): Remove use of
5860 deprecated_interactive_hook.
5861 * top.c (deprecated_interactive_hook): Delete definition.
5862 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
5863
5864 2019-06-18 Tom de Vries <tdevries@suse.de>
5865
5866 PR gdb/24515
5867 * dwarf2read.h (abstract_to_concrete): Change type from
5868 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
5869 std::unordered_map<sect_offset, std::vector<sect_offset>>.
5870 * dwarf2read.c (read_variable): Update.
5871 (dwarf2_fetch_die_loc_sect_off): Update.
5872
5873 2019-06-17 Tom de Vries <tdevries@suse.de>
5874
5875 PR gdb/24617
5876 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
5877 accessing parent[parent_len - 1].
5878
5879 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
5880
5881 PR gdb/24364
5882 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
5883 call dtrace_process_dof with NULL dof.
5884
5885 2019-06-16 Tom de Vries <tdevries@suse.de>
5886
5887 PR gdb/24445
5888 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
5889
5890 2019-06-16 Tom Tromey <tom@tromey.com>
5891
5892 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5893 (make_all_visible): Use address of member.
5894
5895 2019-06-16 Tom Tromey <tom@tromey.com>
5896
5897 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
5898 (tui_free_window, free_content, free_content_elements): Remove
5899 unnecessary cast.
5900 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
5901 cast.
5902 * tui/tui-regs.c (tui_show_register_group)
5903 (tui_display_registers_from, tui_display_reg_element_at_line):
5904 Remove unnecessary cast.
5905
5906 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5907
5908 * linux-nat.c (normal_mask): Delete.
5909 (_initialize_linux_nat): Don't initialise normal_mask.
5910
5911 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
5912
5913 PR gdb/24445
5914 * dwarf-index-write.h (write_psymtabs_to_index): Add
5915 dwz_basename parameter.
5916 * dwarf-index-write.c (write_gdbindex): Move file writing to
5917 write_gdbindex_1. Change return type void.
5918 (assert_file_size): Move up, remove filename parameter.
5919 (write_gdbindex_1): New function.
5920 (write_debug_names): Change return type to void, call
5921 assert_file_size.
5922 (struct index_wip_file): New struct.
5923 (write_psymtabs_to_index): Add dwz_basename parameter. Move
5924 file logic to index_wip_file. Write index for dwz file if
5925 needed.
5926 (save_gdb_index_command): Pass basename of dwz file, if present.
5927 * dwarf-index-cache.c (index_cache::store): Obtain and pass
5928 build-id of dwz file, if present.
5929 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
5930 (dwarf2_get_dwz_file): Likewise.
5931 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
5932 (dwarf2_get_dwz_file): Likewise.
5933
5934 2019-06-16 Tom Tromey <tom@tromey.com>
5935
5936 * coffread.c (process_coff_symbol): Use xstrdup.
5937 * value.c (create_internalvar): Use xstrdup.
5938
5939 2019-06-16 Tom Tromey <tom@tromey.com>
5940
5941 * valops.c (value_cast, value_slice): Remove unnecessary cast.
5942 * breakpoint.c (stopin_command, stopat_command)
5943 (until_break_command, decode_location_default): Remove unnecessary
5944 cast.
5945 * utils.c (subset_compare): Remove unnecessary cast.
5946 * ada-lang.c (ada_update_initial_language): Remove unnecessary
5947 cast.
5948 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
5949 cast.
5950 * infcmd.c (path_command): Remove unnecessary cast.
5951 * coffread.c (decode_type): Remove unnecessary cast.
5952 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
5953 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
5954 * tui/tui-stack.c (tui_show_locator_content)
5955 (tui_show_frame_info): Remove unnecessary cast.
5956 * tui/tui-win.c (tui_scroll_forward_command)
5957 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
5958 (parse_scrolling_args): Remove unnecessary cast.
5959 * tui/tui-data.c (init_win_info, tui_del_window)
5960 (tui_free_window, tui_del_data_windows, tui_free_data_content)
5961 (free_content_elements): Remove unnecessary cast.
5962 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
5963 unnecessary cast.
5964 * tui/tui-source.c (tui_set_source_content)
5965 (tui_vertical_source_scroll): Remove unnecessary cast.
5966 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
5967 cast.
5968 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
5969 * tui/tui-regs.c (tui_display_registers_from)
5970 (tui_display_register): Remove unnecessary cast.
5971 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
5972 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
5973 (make_visible): Remove unnecessary cast.
5974 * tui/tui-winsource.c (tui_erase_source_content)
5975 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
5976 unnecessary cast.
5977 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
5978 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
5979 * stabsread.c (read_type, read_array_type, read_range_type):
5980 Remove unnecessary cast.
5981 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
5982 (parse_symbol, parse_type, upgrade_type, parse_external)
5983 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
5984 unnecessary cast.
5985 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
5986
5987 2019-06-16 Tom Tromey <tom@tromey.com>
5988
5989 * tui/tui-data.c (tui_alloc_generic_win_info)
5990 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
5991 checks.
5992
5993 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
5994 Andrew Burgess <andrew.burgess@embecosm.com>
5995
5996 * f-typeprint.c (f_print_type): Don't return early for not
5997 associated or not allocated types.
5998 (f_type_print_varspec_suffix): Add print_rank parameter and print
5999 ranks of array types in case they dangling.
6000 (f_type_print_base): Add print_rank parameter.
6001
6002 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6003
6004 * NEWS: Mention new MI commands.
6005 * break-catch-throw.c (enum exception_event_kind): Move to
6006 breakpoint.h.
6007 (print_mention_exception_catchpoint): Output text as a single
6008 message.
6009 (catch_exception_command_1): Rename to...
6010 (catch_exception_event): ...this, make non-static, update header
6011 command, and change some parameter types.
6012 (catch_catch_command): Update for changes to
6013 catch_exception_command_1.
6014 (catch_throw_command): Likewise.
6015 (catch_rethrow_command): Likewise.
6016 * breakpoint.c (enum exception_event_kind): Delete.
6017 * breakpoint.h (enum exception_event_kind): Moved here from
6018 break-catch-throw.c.
6019 (catch_exception_event): Declare.
6020 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
6021 (mi_cmd_catch_throw): New function.
6022 (mi_cmd_catch_rethrow): New function.
6023 (mi_cmd_catch_catch): New function.
6024 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
6025 'catch-catch' entries.
6026 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
6027 (mi_cmd_catch_rethrow): Declare.
6028 (mi_cmd_catch_catch): Declare.
6029
6030 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6031
6032 * annotate.c (annotate_source_line): Change return type to void,
6033 update implementation to match.
6034 * annotate.h (annotate_source_line): Change return type to void,
6035 update header comment.
6036 * stack.c (print_frame_info): Don't change what frame information
6037 is printed based on whether annotations are on or not.
6038
6039 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6040
6041 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
6042 (annotate_source): Make static.
6043 (annotate_source_line): Moved from source.c and renamed from
6044 identify_source_line. Update the return type.
6045 * annotate.h (annotate_source): Delete declaration.
6046 (annotate_source_line): Declaration moved from source.h, and
6047 renamed from identify_source_line. Return type updated.
6048 * source.c (identify_source_line): Moved to annotate.c and renamed
6049 to annotate_source_line.
6050 (info_line_command): Remove check of annotation_level.
6051 * source.h (identify_source_line): Move declaration to annotate.h
6052 and rename to annotate_source_line.
6053 * stack.c: Add 'annotate.h' include.
6054 (print_frame_info): Remove check of annotation_level before
6055 calling annotate_source_line.
6056
6057 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6058
6059 * source-cache.c (source_cache::get_plain_source_lines): Use
6060 open_source_file_with_line_charpos instead of just
6061 open_source_file, remove call to find_source_lines.
6062 (source_cache::get_source_lines): Likewise.
6063 * source.c (find_source_lines): Make static.
6064 (get_filename_and_charpos): Renamed into...
6065 (open_source_file_with_line_charpos): ..this along with changes to
6066 return a scoped_fd, and some other minor clean ups.
6067 (identify_source_line): Use open_source_file_with_line_charpos.
6068 (search_command_helper): Use open_source_file_with_line_charpos
6069 instead of just open_source_file, remove call to
6070 find_source_lines.
6071 * source.h (open_source_file_with_line_charpos): Declare new
6072 function.
6073 (find_source_lines): Delete declaration.
6074
6075 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6076
6077 * source.c (get_filename_and_charpos): Remove fullname
6078 parameter.
6079 (identify_source_line): Update call to get_filename_and_charpos.
6080
6081 2019-06-14 Tom Tromey <tromey@adacore.com>
6082
6083 PR gdb/24502:
6084 * ui-style.h (skip_ansi_escape): Update comment.
6085 * ui-file.h (class no_terminal_escape_file): New class.
6086 * ui-file.c (no_terminal_escape_file::write)
6087 (no_terminal_escape_file::puts): New methods.
6088 * cli/cli-logging.c (handle_redirections): Use
6089 no_terminal_escape_file.
6090
6091 2019-06-14 Tom Tromey <tromey@adacore.com>
6092
6093 * NEWS: Move convenience variable news above Python news.
6094
6095 2019-06-14 Tom Tromey <tom@tromey.com>
6096
6097 * gnulib: Move directory to top-level.
6098 * configure.ac: Don't configure gnulib.
6099 * configure: Rebuild.
6100 * common/common-defs.h: Use new path to gnulib.
6101 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
6102 (GNULIB_H): Remove.
6103 (INCGNU): Look in new gnulib location.
6104 (HFILES_NO_SRCDIR): Remove gnulib files.
6105 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
6106 (generated_files): Remove GNULIB_H.
6107 ($(LIBGNU), all-lib): Remove targets.
6108 (distclean): Don't mention GNULIB_BUILDDIR.
6109 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
6110
6111 2019-06-14 Tom Tromey <tromey@adacore.com>
6112
6113 * symfile.c (add_symbol_file_command): Remove obsolete comment.
6114 Warn if symbol file does not provide any symbols.
6115
6116 2019-06-14 Tom Tromey <tromey@adacore.com>
6117
6118 * source.c (find_and_open_source): Respect basenames_may_differ.
6119
6120 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
6121
6122 * annotate.c (annotate_breakpoints_invalid): Make use of
6123 scoped_restore_terminal_state.
6124 (annotate_frames_invalid): Likewise.
6125
6126 2019-06-14 Tom Tromey <tromey@adacore.com>
6127
6128 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
6129 allow assignment to an internalvar.
6130
6131 2019-06-14 Tom Tromey <tromey@adacore.com>
6132
6133 * ada-lex.l: Allow "_" in attribute names.
6134
6135 2019-06-14 Tom Tromey <tromey@adacore.com>
6136
6137 PR gdb/24653:
6138 * regcache.c (registers_changed): Don't call alloca.
6139 * top.c (execute_command): Don't call alloca.
6140
6141 2019-06-13 Pedro Alves <palves@redhat.com>
6142
6143 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
6144 'expression'. When parsing an expression, error out if there's
6145 junk after "unlimited".
6146 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6147 (do_set_command): Adjust calls to is_unlimited_literal.
6148
6149 2019-06-13 Pedro Alves <palves@redhat.com>
6150
6151 * compile/compile.c (make_compile_options_def_group): Add braces
6152 around array_view initializer.
6153 * thread.c (make_thread_apply_all_options_def_group)
6154 (make_thread_apply_all_options_def_group): Likewise.
6155
6156 2019-06-13 Pedro Alves <palves@redhat.com>
6157
6158 * NEWS (New commands): Mention "maint test-options
6159 require-delimiter", "maint test-options unknown-is-error", "maint
6160 test-options unknown-is-operand" and "maint show
6161 test-options-completion-result".
6162 (New command options, command completion): New section.
6163 (Completion improvements): New section.
6164 Mention that you can abbreviate "unlimited".
6165
6166 2019-06-13 Pedro Alves <palves@redhat.com>
6167
6168 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
6169 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
6170 * unittests/cli-utils-selftests.c (test_parse_flags)
6171 (test_parse_flags_qcs): Delete.
6172 (test_cli_utils): Don't call deleted functions.
6173
6174 2019-06-13 Pedro Alves <palves@redhat.com>
6175
6176 * thread.c: Include "cli/cli-option.h".
6177 (tp_array_compar_ascending): Global.
6178 (tp_array_compar): Delete function.
6179 (tp_array_compar_ascending, tp_array_compar_descending): New
6180 functions.
6181 (ascending_option_def, qcs_flag_option_def)
6182 (thr_qcs_flags_option_defs)
6183 (make_thread_apply_all_options_def_group)
6184 (make_thread_apply_options_def_group): New.
6185 (thread_apply_all_command): Use gdb::option::process_options.
6186 (thread_apply_command_completer)
6187 (thread_apply_all_command_completer): New.
6188 (thread_apply_command): Use gdb::option::process_options.
6189 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
6190 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
6191 to generate help text of "thread apply". Adjust "taas"'s help.
6192 * tid-parse.c (tid_range_parser::in_thread_range): New method.
6193 * tid-parse.h (tid_range_parser::in_thread_range): New method.
6194
6195 2019-06-13 Pedro Alves <palves@redhat.com>
6196
6197 * thread.c (thread_apply_command): Check for invalid TID with
6198 isdigit instead of !isalpha.
6199
6200 2019-06-13 Pedro Alves <palves@redhat.com>
6201
6202 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
6203 (validate_flags_qcs): New.
6204 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
6205 (validate_flags_qcs): Declare.
6206 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
6207 (make_frame_apply_options_def_group): New.
6208 (frame_apply_command_count): Process options with
6209 gdb::option::process_options.
6210 (frame_apply_completer): New.
6211 (frame_apply_level_completer, frame_apply_all_completer)
6212 (frame_apply_completer): New.
6213 (_initialize_stack): Update help of "frame apply", "frame apply
6214 level", "frame apply all" and "faas" to mention supported options
6215 and install command completers.
6216 * stack.h (frame_apply_all_completer): Declare.
6217 * thread.c: Include "stack.h".
6218 (tfaas_command): Add "--".
6219 (_initialize_thread): Update help "tfaas" to mention supported
6220 options and install command completer.
6221
6222 2019-06-13 Pedro Alves <palves@redhat.com>
6223
6224 * completer.c (complete_nested_command_line): New.
6225 (gdb_completion_word_break_characters_throw): Add assertion.
6226 * completer.h (complete_nested_command_line): Declare.
6227
6228 2019-06-13 Pedro Alves <palves@redhat.com>
6229
6230 * stack.c (parse_backtrace_qualifiers): New.
6231 (backtrace_command): Use it.
6232 (backtrace_command_completer): Complete on qualifiers.
6233
6234 2019-06-13 Pedro Alves <palves@redhat.com>
6235
6236 * frame.c: Include "cli/cli-option.h.
6237 (user_set_backtrace_options): New.
6238 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
6239 Delete.
6240 (get_prev_frame): Adjust.
6241 (boolean_option_def, uinteger_option_def)
6242 (set_backtrace_option_defs): New.
6243 (_initialize_frame): Adjust and use
6244 gdb::option::add_setshow_cmds_for_options to install "set
6245 backtrace past-main" and "set backtrace past-entry".
6246 * frame.h: Include "cli/cli-option.h".
6247 (struct frame_print_options): Forward declare.
6248 (print_frame_arguments_all, print_frame_arguments_scalars)
6249 (print_frame_arguments_none): Declare.
6250 (print_entry_values): Delete declaration.
6251 (struct frame_print_options, user_frame_print_options): New.
6252 (struct set_backtrace_options): New.
6253 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
6254 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
6255 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
6256 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
6257 (list_args_or_locals): Add frame_print_options parameter.
6258 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6259 * python/py-framefilter.c (enumerate_args): Pass down
6260 USER_FRAME_PRINT_OPTIONS.
6261 * stack.c: Include "cli/cli-option.h".
6262 (print_frame_arguments_all, print_frame_arguments_scalars)
6263 (print_frame_arguments_none): Declare.
6264 (print_raw_frame_arguments, print_entry_values): Delete.
6265 (user_frame_print_options): New.
6266 (boolean_option_def, enum_option_def, frame_print_option_defs):
6267 New.
6268 (struct backtrace_cmd_options): New.
6269 (bt_flag_option_def): New.
6270 (backtrace_command_option_defs): New.
6271 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6272 (print_frame_arg, read_frame_arg, print_frame_args)
6273 (print_frame_info, print_frame): Add frame_print_options parameter
6274 and use it.
6275 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
6276 (backtrace_command_1): Add frame_print_options and
6277 backtrace_cmd_options parameters and use them.
6278 (make_backtrace_options_def_group): New.
6279 (backtrace_command): Process command options with
6280 gdb::option::process_options.
6281 (backtrace_command_completer): New.
6282 (_initialize_stack): Extend "backtrace"'s help to mention
6283 supported options. Install completer for "backtrace".
6284 Install some settings commands with add_setshow_cmds_for_options.
6285
6286 2019-06-13 Pedro Alves <palves@redhat.com>
6287
6288 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
6289 and that "set/show print raw frame-arguments" are now deprecated.
6290
6291 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
6292 command.
6293 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
6294 * stack.c (_initialize_stack): Install "set/show print
6295 raw-frame-arguments", and deprecate "set/show print raw
6296 frame-arguments".
6297 * valprint.c (_initialize_valprint): Deprecate "set/show print
6298 raw".
6299
6300 2019-06-13 Pedro Alves <palves@redhat.com>
6301
6302 * compile/compile.c (struct compile_options): New.
6303 (compile_flag_option_def, compile_command_option_defs)
6304 (make_compile_options_def_group): New.
6305 (compile_file_command): Handle options with
6306 gdb::option::process_options.
6307 (compile_file_command_completer): New function.
6308 (compile_code_command): Handle options with
6309 gdb::option::process_options.
6310 (compile_code_command_completer): New function.
6311 (_initialize_compiler): Install completers for "compile code" and
6312 "compile file". Mention available options in "compile code" and
6313 "compile code"'s help.
6314 * completer.c (advance_to_completion_word): New, factored out from
6315 ...
6316 (advance_to_expression_complete_word_point): ... this.
6317 (advance_to_filename_complete_word_point): New.
6318 * completer.h (advance_to_filename_complete_word_point): New
6319 declaration.
6320
6321 2019-06-13 Pedro Alves <palves@redhat.com>
6322
6323 * compile/compile.c: Include "cli/cli-option.h".
6324 (compile_print_value): Scope data pointer is now a
6325 value_print_options pointer; adjust.
6326 (compile_print_command): Process options. Scope data pointer is
6327 now a value_print_options pointer; adjust.
6328 (_initialize_compile): Update "compile print"'s help to include
6329 supported options. Install a completer for "compile print".
6330 * cp-valprint.c (show_vtblprint, show_objectprint)
6331 (show_static_field_print): Delete.
6332 (_initialize_cp_valprint): Don't install "set print
6333 static-members", "set print vtbl", "set print object" here.
6334 * printcmd.c: Include "cli/cli-option.h" and
6335 "common/gdb_optional.h".
6336 (print_command_parse_format): Rework to fill in a
6337 value_print_options instead of a format_data.
6338 (print_value): Change parameter type from format_data pointer to
6339 value_print_options reference. Adjust.
6340 (print_command_1): Process options. Adjust to pass down a
6341 value_print_options.
6342 (print_command_completer): New.
6343 (_initialize_printcmd): Install print_command_completer as
6344 handle_brkchars completer for the "print" command. Update
6345 "print"'s help to include supported options.
6346 * valprint.c: Include "cli/cli-option.h".
6347 (show_vtblprint, show_objectprint, show_static_field_print): Moved
6348 here from cp-valprint.c.
6349 (boolean_option_def, uinteger_option_def)
6350 (value_print_option_defs, make_value_print_options_def_group):
6351 New. Use gdb::option::add_setshow_cmds_for_options to install
6352 "set print elements", "set print null-stop", "set print repeats",
6353 "set print pretty", "set print union", "set print array", "set
6354 print address", "set print symbol", "set print array-indexes".
6355 * valprint.h: Include <string> and "cli/cli-option.h".
6356 (make_value_print_options_def_group): Declare.
6357 (print_value): Change parameter type from format_data pointer to
6358 value_print_options reference.
6359 (print_command_completer): Declare.
6360
6361 2019-06-13 Pedro Alves <palves@redhat.com>
6362
6363 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
6364 (COMMON_SFILES): Add maint-test-settings.c.
6365 * cli/cli-decode.c (boolean_enums): New global, factored out from
6366 ...
6367 (add_setshow_boolean_cmd): ... here.
6368 * cli/cli-decode.h (boolean_enums): Declare.
6369 * cli/cli-option.c: New file.
6370 * cli/cli-option.h: New file.
6371 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
6372 factored out from ...
6373 (parse_cli_boolean_value(const char *)): ... this.
6374 (is_unlimited_literal): Change parameter type to pointer to
6375 pointer. Adjust and advance ARG pointer.
6376 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6377 (parse_cli_var_enum): New, factored out from ...
6378 (do_set_command): ... this. Adjust.
6379 * cli/cli-setshow.h (parse_cli_boolean_value)
6380 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6381 (parse_cli_var_enum): Declare.
6382 * cli/cli-utils.c: Include "cli/cli-option.h".
6383 (get_ulongest): New.
6384 * cli/cli-utils.h (get_ulongest): Declare.
6385 (check_for_argument): New overloads.
6386 * maint-test-options.c: New file.
6387
6388 2019-06-13 Pedro Alves <palves@redhat.com>
6389
6390 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
6391 parse a range if "-" is at the end of the string.
6392
6393 2019-06-13 Pedro Alves <palves@redhat.com>
6394
6395 * cli/cli-setshow.c (parse_auto_binary_operation)
6396 (parse_cli_boolean_value): Don't allow "o".
6397
6398 2019-06-13 Pedro Alves <palves@redhat.com>
6399
6400 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
6401 * NEWS: Mention maint test-settings KIND.
6402 * maint-test-settings.c: New file.
6403
6404 2019-06-13 Pedro Alves <palves@redhat.com>
6405
6406 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
6407 completer.
6408 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
6409 "set" completers.
6410
6411 2019-06-13 Pedro Alves <palves@redhat.com>
6412
6413 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
6414 after item.
6415
6416 2019-06-13 Pedro Alves <palves@redhat.com>
6417
6418 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
6419
6420 2019-06-13 Pedro Alves <palves@redhat.com>
6421
6422 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
6423 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
6424 call.
6425 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
6426 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
6427 calls.
6428 (check_for_argument): Skip spaces after argument.
6429
6430 2019-06-13 Pedro Alves <palves@redhat.com>
6431
6432 * thread.c (thread_apply_command): Adjust TID parsing.
6433 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
6434 detected before end of string.
6435 (tid_is_in_list): Error out if LIST is invalid.
6436
6437 2019-06-13 Pedro Alves <palves@redhat.com>
6438
6439 * completer.c (complete_line_internal_1): Rewind completion word
6440 point.
6441 (completion_tracker::advance_custom_word_point_by): Change
6442 parameter type to int.
6443 * completer.h (completion_tracker::advance_custom_word_point_by):
6444 Likewise.
6445
6446 2019-06-13 Pedro Alves <palves@redhat.com>
6447
6448 * completer.c (advance_to_completion_word): Handle delimiters.
6449
6450 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
6451
6452 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
6453
6454 2019-06-11 Tom Tromey <tom@tromey.com>
6455
6456 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
6457 (xmalloc_failed): Move to alloc.c.
6458 * alloc.c: New file.
6459 * Makefile.in (COMMON_SFILES): Add alloc.c.
6460
6461 2019-06-11 Tom Tromey <tom@tromey.com>
6462
6463 * nat/linux-waitpid.c: Don't include server.h.
6464 (linux_debug): Remove.
6465 (my_waitpid): Update.
6466
6467 2019-06-11 Tom Tromey <tromey@adacore.com>
6468
6469 * infcall.c (_initialize_infcall): Remove trailing newline from
6470 help.
6471 * user-regs.c (_initialize_user_regs): Remove trailing newline
6472 from help.
6473 * typeprint.c (_initialize_typeprint): Remove trailing newline
6474 from help.
6475 * reverse.c (_initialize_reverse): Remove trailing newlines from
6476 help.
6477 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
6478 from help.
6479 * language.c (add_set_language_command): Remove trailing newline
6480 from help.
6481 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
6482 help.
6483 * disasm.c (_initialize_disasm): Remove trailing newline from
6484 help.
6485 * top.c (init_main): Remove trailing newline from help.
6486 * interps.c (_initialize_interpreter): Remove trailing newline
6487 from help.
6488 * btrace.c (_initialize_btrace): Remove trailing newlines from
6489 help.
6490 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
6491 from help.
6492 * python/python.c (_initialize_python): Remove trailing newline
6493 from help.
6494 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
6495 help.
6496 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
6497 from help. Reformat some text.
6498 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
6499 from help.
6500 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
6501 newline from help.
6502
6503 2019-06-11 Tom Tromey <tromey@adacore.com>
6504
6505 * darwin-nat.c (darwin_decode_exception_message)
6506 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
6507
6508 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
6509
6510 * valops.c (value_slice): Check for not allocated or not
6511 associated values.
6512
6513 2019-06-10 Tom de Vries <tdevries@suse.de>
6514
6515 PR gdb/24618
6516 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
6517 sure an empty slot (defined by a 32-bit zero pair) is recognized as
6518 invalid.
6519
6520 2019-06-10 Tom de Vries <tdevries@suse.de>
6521
6522 PR gdb/24611
6523 * linespec.c (linespec_lexer_lex_string): Remove incorrect
6524 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
6525
6526 2019-06-10 Tom de Vries <tdevries@suse.de>
6527
6528 PR symtab/24545
6529 * symtab.c (struct demangled_name_entry): Add language field.
6530 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
6531 static minimal symbol". Set and use language field.
6532
6533 2019-06-10 Tom Tromey <tromey@adacore.com>
6534
6535 * ada-lang.c (_initialize_ada_language): Update help text.
6536
6537 2019-06-10 Tom Tromey <tromey@adacore.com>
6538
6539 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
6540 with a newline.
6541 * guile/guile.c (handle_boot_error): Don't end warning with a
6542 newline.
6543 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
6544 warning with a newline.
6545 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
6546 newline.
6547 (s12z_frame_cache): Likewise.
6548 * dwarf-index-cache.c (index_cache::store): Don't end warning with
6549 a newline.
6550 * solib-svr4.c (disable_probes_interface): Don't end warning with
6551 a newline.
6552 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
6553 newline.
6554 * python/python.c (do_finish_initialization): Don't end warning
6555 with a newline.
6556
6557 2019-06-10 Tom Tromey <tom@tromey.com>
6558
6559 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6560 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
6561 gdbpy_enter.
6562
6563 2019-06-10 Tom Tromey <tromey@adacore.com>
6564
6565 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
6566 data.
6567 (elf_new_init): Don't call stabsread_new_init.
6568 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
6569 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
6570 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
6571
6572 2019-06-10 Tom de Vries <tdevries@suse.de>
6573
6574 PR symtab/16264
6575 PR symtab/24517
6576 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
6577
6578 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
6579
6580 * source.c (find_and_open_source): Also rewrite relative file
6581 names.
6582
6583 2019-04-26 Amos Bird <amosbird@gmail.com>
6584
6585 * annotate.c (annotate_thread_exited): Add "thread-exited"
6586 annotation.
6587
6588 2019-06-06 Tom Tromey <tromey@adacore.com>
6589
6590 * maint.h (class scoped_command_stats): Use
6591 DISABLE_COPY_AND_ASSIGN.
6592 <print_time>: New method.
6593 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
6594 print_time.
6595 (scoped_command_stats::print_time): New method.
6596
6597 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6598
6599 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
6600 instructions of lengths 6 or 8 bytes.
6601
6602 2019-06-04 Pedro Alves <palves@redhat.com>
6603
6604 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
6605
6606 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
6607 * breakpoint.c (condition_completer): Likewise.
6608 * cli/cli-dump.c (scan_expression): Likewise.
6609 * common/filestuff.c (mkdir_recursive): Likewise.
6610 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
6611 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
6612 (gdb_abspath): Likewise.
6613 * compile/compile-cplus-types.c
6614 (compile_cplus_instance::decl_name): Likewise.
6615 * completer.c (complete_explicit_location):
6616 (signal_completer, reg_or_group_completer_1): Likewise.
6617 * cp-support.c (cp_remove_params_if_any): Likewise.
6618 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
6619 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
6620 * infcmd.c (strip_bg_char): Likewise.
6621 * linespec.c (copy_token_string): Likewise.
6622 * mi/mi-main.c (output_cores): Likewise.
6623 * psymtab.c (psymtab_search_name):
6624 * symfile.c (test_set_ext_lang_command): Likewise.
6625 * target.c (target_fileio_read_stralloc): Likewise.
6626 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
6627 * value.c (complete_internalvar): Likewise.
6628
6629 2019-06-04 Christian Biesinger <cbiesinger@google.com>
6630
6631 Add objfile property to gdb.Type.
6632 * NEWS: Mention Python API addition.
6633 * python/py-type.c (typy_get_objfile): New method.
6634
6635 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6636
6637 * NEWS: Mention the new set|show style [title|highlight].
6638 Mention changes to "show style", "help" and "apropos".
6639
6640 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6641
6642 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
6643 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
6644 instead of print_help_for_command.
6645 (print_doc_of_command): New function.
6646 (help_list): Add 'apropos -v word' suggestion.
6647 (print_help_for_command): Style the command name using title style.
6648 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
6649 (_initialize_cli_cmds): Describe -v in apropos_command help.
6650
6651 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6652
6653 * cli/cli-style.h (cli_style_option): Add name in constructor,
6654 add m_name class member, add constructor with intensity,
6655 add name class function.
6656 (cli_style_option::add_setshow_commands): Remove name argument.
6657 (highlight_style, title_style): New styles.
6658 * cli/cli-style.c (do_show): New function that shows a style
6659 characteristic styling the style name with itself.
6660 (set_style_name): New function.
6661 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
6662 Update all callers according to the changes in cli/cli-style.h.
6663 * utils.h (fputs_highlighted): New function.
6664 * utils.c (fputs_highlighted): Likewise.
6665
6666 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6667
6668 * NEWS: Mention new pipe command and new convenience variables.
6669
6670 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6671
6672 * cli/cli-cmds.c (pipe_command): New function.
6673 (_initialize_cli_cmds): Call add_com for pipe_command.
6674 Define | as an alias for pipe.
6675 (exit_status_set_internal_vars): New function.
6676 (shell_escape): Call exit_status_set_internal_vars.
6677 cli/cli-decode.c (find_command_name_length): Recognize | as
6678 a single character command.
6679
6680 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6681
6682 * gdbcmd.h (execute_command_to_ui_file): New declaration.
6683 top.c (execute_command_to_ui_file): New function, mostly a copy
6684 of execute_command_to_string.
6685 (execute_command_to_string): Implement by calling
6686 execute_command_to_ui_file.
6687
6688 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6689
6690 * top.h (saved_command_line): Remove declaration.
6691 * top.c (previous_saved_command_line, previous_repeat_arguments):
6692 New variables.
6693 (saved_command_line): Make static, define together with other
6694 'repeat variables'.
6695 (dont_repeat): Clear repeat_arguments.
6696 (repeat_previous, get_saved_command_line, save_command_line):
6697 New functions.
6698 (gdb_init): Initialize saved_command_line
6699 and previous_saved_command_line.
6700 * main.c (captured_main_1): Remove saved_command_line initialization.
6701 * event-top.c (handle_line_of_input): Update to use
6702 the new 'repeat' related functions instead of direct access to
6703 saved_command_line.
6704 * command.h (repeat_previous, get_saved_command_line,
6705 save_command_line): New declarations.
6706 (dont_repeat): Add comment.
6707
6708 2019-05-30 Tom Tromey <tromey@adacore.com>
6709
6710 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
6711 Fix comment.
6712 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
6713
6714 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
6715
6716 PR cli/24587
6717 * completer.c (complete): Initialize variable word.
6718
6719 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
6720
6721 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6722 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
6723 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
6724 'body' is NULL to the outter 'if', protecting the '!is_define'
6725 situation as well.
6726
6727 2019-05-29 Tom Tromey <tromey@adacore.com>
6728
6729 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
6730 (dwarf_unknown): New function.
6731 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
6732 (dwarf_type_encoding_name): Use dwarf_unknown.
6733
6734 2019-05-29 Tom Tromey <tromey@adacore.com>
6735
6736 PR c++/20020:
6737 * cp-valprint.c (cp_print_value_fields): Call
6738 cp_print_static_field inside "try".
6739
6740 2019-05-29 Tom Tromey <tromey@adacore.com>
6741
6742 * inflow.c (struct terminal_info): Add default operator=.
6743 * configure: Rebuild.
6744 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
6745 -Wdeprecated-copy-dtor, -Wredundant-move.
6746
6747 2019-05-29 Tom Tromey <tromey@adacore.com>
6748
6749 * NEWS: Add entry.
6750 * infcmd.c (print_return_value_1): Handle finish_print
6751 option.
6752 (show_print_finish): New function.
6753 (_initialize_infcmd): Add "set/show print finish" commands.
6754 * valprint.c (user_print_options): Initialize new member.
6755 * valprint.h (struct value_print_options) <finish_print>: New
6756 member.
6757
6758 2019-05-28 Tom Tromey <tromey@adacore.com>
6759
6760 * ada-lang.c (ada_remove_Xbn_suffix)
6761 (find_old_style_renaming_symbol)
6762 (parse_old_style_renaming): Remove.
6763 (ada_find_renaming_symbol): Don't call
6764 find_old_style_renaming_symbol.
6765 (ada_is_renaming_symbol): Rename from
6766 ada_find_renaming_symbol. Remove "block" parameter. Return
6767 bool. Now static.
6768 (ada_read_var_value): Update and simplify.
6769 * ada-exp.y (write_var_or_type): Remove old code.
6770
6771 2019-05-28 Alan Hayward <alan.hayward@arm.com>
6772
6773 PR gdb/25010
6774 * event-top.c: Remove include comment.
6775 * inflow.c (class scoped_ignore_sigttou): Move from here...
6776 * inflow.h (class scoped_ignore_sigttou): ...to here.
6777 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
6778 * top.c: Remove include comment.
6779
6780 2019-05-27 Tom Tromey <tom@tromey.com>
6781
6782 * NEWS: Fix typo.
6783
6784 2019-05-22 Tom Tromey <tromey@adacore.com>
6785
6786 * target.c (target_follow_exec): Constify parameter.
6787 * target-delegates.c: Rebuild.
6788 * remote.c (remote_target::follow_exec): Constify parameter.
6789 * infrun.c (follow_exec): Constify parameter.
6790 * target.h (struct target_ops) <follow_exec>: Constify parameter.
6791 (target_follow_exec): Likewise.
6792
6793 2019-05-22 Alan Hayward <alan.hayward@arm.com>
6794
6795 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
6796 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
6797
6798 2019-05-22 Alan Hayward <alan.hayward@arm.com>
6799
6800 * NEWS: Add debugredirect and testsuite sections.
6801
6802 2019-05-22 Simon Cook <simon.cook@embecosm.com>
6803
6804 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
6805 target descriptions using exclusively floating point register name
6806 aliases.
6807
6808 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
6809
6810 PR gdb/18644:
6811 * f-lang.c (build_fortran_types): Handle the case where
6812 gdbarch_floatformat_for_type returns a nullptr.
6813
6814 2019-05-21 Tom de Vries <tdevries@suse.de>
6815
6816 PR cli/24587
6817 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
6818
6819 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6820
6821 PR gdb/18644:
6822 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
6823 16-byte floats.
6824 * i386-tdep.c (i386_floatformat_for_type): Use
6825 floatformats_ia64_quad for the 16-byte floating point component
6826 within a fortran 32-byte complex number.
6827
6828 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6829
6830 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
6831 delete default constructor.
6832 (find_partial_die): Update to return const struct.
6833 (partial_die_parent_scope): Move variable declaration into scope
6834 of its use and change its type to auto.
6835 (guess_partial_die_structure_name): Likewise.
6836 (partial_die_info::fixup): Likewise.
6837
6838 2019-05-17 Tom Tromey <tromey@adacore.com>
6839
6840 * source.c (find_and_open_source): Remove cast.
6841
6842 2019-05-17 Tom Tromey <tromey@adacore.com>
6843
6844 * annotate.c (annotate_source): Make "filename" const.
6845 * annotate.h (annotate_source): Use const.
6846
6847 2019-05-17 Alan Hayward <alan.hayward@arm.com>
6848
6849 * disasm.c (set_disassembler_options): Send errors to stderr.
6850
6851 2019-05-17 Alan Hayward <alan.hayward@arm.com>
6852
6853 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
6854 (cli_interp_base::set_logging): Check debug_redirect.
6855 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
6856 * cli/cli-logging.c (debug_redirect): Add static variable.
6857 (pop_output_files): Add default param.
6858 (handle_redirections): Print debug setting.
6859 (show_logging_command): Likewise.
6860 (_initialize_cli_logging): Add debugredirect command.
6861 * interps.c (current_interp_set_logging): Add debug_redirect
6862 parameter.
6863 * interps.h (set_logging): Add debug_redirect parameter.
6864 (current_interp_set_logging): Likewise.
6865 * mi/mi-common.h: Likewise.
6866 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
6867
6868 2019-05-17 Alan Hayward <alan.hayward@arm.com>
6869 Tom Tromey <tromey@adacore.com>
6870
6871 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
6872 directly.
6873 * cli/cli-interp.h (make_logging_output): Remove declaration.
6874 * cli/cli-logging.c (make_logging_output): Remove function.
6875 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
6876 directly.
6877 * ui-file.c (tee_file::tee_file): Remove bools.
6878 (tee_file::~tee_file): Remove deletes.
6879 * ui-file.h (tee_file): Remove bools.
6880
6881 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
6882
6883 * mi/mi-cmds.h (mi_cmd_complete): New function.
6884 * mi/mi-main.c (mi_cmd_complete): Likewise.
6885 * mi/mi-cmds.c: Define new MI command -complete.
6886 * NEWS: Mention new -complete command.
6887
6888 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
6889
6890 * completer.h (complete): New function.
6891 * completer.c (complete): Likewise.
6892 * cli/cli-cmds.c: (complete_command): Update to use new complete()
6893 function defined in completer.h.
6894
6895 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
6896
6897 * MAINTAINERS (Write After Approval): Add myself.
6898
6899 2019-05-17 Tom de Vries <tdevries@suse.de>
6900
6901 PR gdb/24094
6902 * dwarf2read.c (struct cu_partial_die_info): New struct.
6903 (find_partial_die): Return cu_partial_die_info.
6904 (partial_die_parent_scope, guess_partial_die_structure_name)
6905 (partial_die_info::fixup): Handle new return type of find_partial_die.
6906
6907 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6908
6909 PR breakpoints/24541
6910 * stap-probe.c (stap_parse_register_operand): Make "regname" an
6911 "std::string", simplifying the algorithm.
6912
6913 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6914
6915 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
6916 (stap_static_probe_ops::get_probes): Likewise.
6917
6918 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6919
6920 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
6921 '-')" and "else if".
6922 (stap_parse_single_operand): Join checks for
6923 "gdbarch_stap_parse_special_token_p" and
6924 "gdbarch_stap_parse_special_token" in the same "if" statement.
6925 Invert check when verifying for operation on register
6926 displacement.
6927
6928 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6929
6930 * stap-probe.c (stap_get_opcode): Update comment.
6931 (stap_get_expected_argument_type): Likewise.
6932 (handle_stap_probe): Likewise.
6933
6934 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6935
6936 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
6937 return type to 'bool'. Adjust comment. Use 'bool' when
6938 appropriate.
6939 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6940 * stap-probe.c (stap_parse_argument_1): Likewise.
6941 (stap_is_operator): Likewise.
6942 (stap_is_generic_prefix): Likewise.
6943 (stap_is_register_prefix): Likewise.
6944 (stap_is_register_indirection_prefix): Likewise.
6945 (stap_is_integer_prefix): Likewise.
6946 (stap_generic_check_suffix): Likewise.
6947 (stap_check_integer_suffix): Likewise.
6948 (stap_check_register_suffix): Likewise.
6949 (stap_check_register_indirection_suffix): Likewise.
6950 (stap_parse_register_operand): Likewise.
6951 (stap_parse_single_operand): Likewise.
6952 (stap_parse_argument_1): Likewise.
6953 (stap_probe::get_argument_count): Likewise.
6954 (stap_is_operator): Likewise.
6955
6956 2019-05-16 Tom Tromey <tromey@adacore.com>
6957
6958 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
6959 keyword to foreach.
6960
6961 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
6962
6963 * linux-thread-db.c (try_thread_db_load_1): Change return type
6964 to bool.
6965 (try_thread_db_load): Likewise.
6966 (try_thread_db_load_from_pdir_1): Likewise.
6967 (try_thread_db_load_from_pdir): Likewise.
6968 (try_thread_db_load_from_sdir): Likewise.
6969 (try_thread_db_load_from_dir): Likewise.
6970 (thread_db_load_search): Likewise.
6971 (has_libpthread): Likewise.
6972 (thread_db_load): Likewise.
6973
6974 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
6975
6976 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6977 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
6978 NULL, and complain/return if that's the case.
6979
6980 2019-05-15 John Darrington <john@darrington.wattle.id.au>
6981
6982 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
6983 (advance, posn, abstract_read_memory): New functions.
6984 [struct mem_read_abstraction]: New struct.
6985 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
6986
6987 2019-05-14 Tom Tromey <tromey@adacore.com>
6988
6989 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
6990 value is not lval_memory.
6991
6992 2019-05-14 Tom Tromey <tromey@adacore.com>
6993
6994 * solib.c (info_sharedlibrary_command): Style the file name.
6995
6996 2019-05-14 Alan Hayward <alan.hayward@arm.com>
6997
6998 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
6999 (aarch64_vnv_type): Likewise.
7000 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
7001 * common/tdesc.c: Likewise.
7002 * common/tdesc.h (enum tdesc_type_kind): Likewise.
7003 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
7004 * features/aarch64-fpu.xml: Add ieee half view.
7005 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
7006 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
7007 * gdbtypes.h (struct builtin_type): Likewise.
7008 (struct objfile_type): Likewise.
7009
7010 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
7011
7012 * language.c (language_sniff_from_mangled_name): Fix "langauge"
7013 typo.
7014 * location.h (string_to_event_location): Likewise.
7015
7016 2019-05-11 Joel Brobecker <brobecker@adacore.com>
7017
7018 GDB 8.3 released.
7019
7020 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
7021
7022 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
7023 New variable declaration.
7024 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
7025 New variable.
7026 (print_one_breakpoint): Use ui_out::test_flags and new global
7027 variable to compute use_fixed_output.
7028 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
7029 Remove.
7030 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
7031 (mi_multi_location_breakpoint_output_fixed): Remove.
7032 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
7033 new variable.
7034 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
7035 fix_multi_location_breakpoint_output flag if version >= 3.
7036 * ui-out.h (enum ui_out_flag)
7037 <fix_multi_location_breakpoint_output>: New enumerator.
7038
7039 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
7040
7041 * contrib/cc-with-tweaks.sh: Validate dwz's work.
7042
7043 2019-05-10 Tom Tromey <tromey@adacore.com>
7044
7045 * ada-lang.c (catch_ada_completer): New function.
7046 (_initialize_ada_language): Use it.
7047
7048 2019-05-10 Tom Tromey <tromey@adacore.com>
7049
7050 * thread.c (print_thread_info): Make "requested_threads" const.
7051 * gdbthread.h (print_thread_info): Make "requested_threads"
7052 const.
7053 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
7054 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
7055
7056 2019-05-08 Tom Tromey <tom@tromey.com>
7057
7058 * gdbtypes.c (objfile_type_data): Change type.
7059 (objfile_type, _initialize_gdbtypes): Update.
7060
7061 2019-05-08 Tom Tromey <tom@tromey.com>
7062
7063 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
7064 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
7065 (_initialize_dwarf2_frame): Update.
7066
7067 2019-05-08 Tom Tromey <tom@tromey.com>
7068
7069 * objc-lang.c (objc_objfile_data): Change type.
7070 (find_methods): Update.
7071 (_initialize_objc_lang): Remove.
7072
7073 2019-05-08 Tom Tromey <tom@tromey.com>
7074
7075 * stabsread.c (rs6000_builtin_type_data): Change type.
7076 (rs6000_builtin_type, _initialize_stabsread): Update.
7077
7078 2019-05-08 Tom Tromey <tom@tromey.com>
7079
7080 * mips-tdep.c (mips_pdr_data): Remove.
7081 (_initialize_mips_tdep): Update.
7082
7083 2019-05-08 Tom Tromey <tom@tromey.com>
7084
7085 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
7086 (hppa_init_objfile_priv_data, read_unwind_info)
7087 (find_unwind_entry, _initialize_hppa_tdep): Update.
7088
7089 2019-05-08 Tom Tromey <tom@tromey.com>
7090
7091 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
7092 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
7093 on obstack.
7094 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
7095
7096 2019-05-08 Tom Tromey <tom@tromey.com>
7097
7098 * mdebugread.c (basic_type_data): Change type.
7099 (basic_type, _initialize_mdebugread): Update.
7100
7101 2019-05-08 Tom Tromey <tom@tromey.com>
7102
7103 * common/gdb_unique_ptr.h (struct noop_deleter): New.
7104
7105 2019-05-08 Tom Tromey <tom@tromey.com>
7106
7107 * nto-tdep.c (nto_inferior_data_reg): Change type.
7108 (nto_inferior_data): Update.
7109 (nto_inferior_data_cleanup, nto_new_inferior_data)
7110 (_initialize_nto_tdep): Remove.
7111 * nto-tdep.h (struct nto_inferior_data): Add initializers.
7112
7113 2019-05-08 Tom Tromey <tom@tromey.com>
7114
7115 * ada-lang.c (struct ada_inferior_data): Add initializers.
7116 (ada_inferior_data): Change type.
7117 (ada_inferior_data_cleanup): Remove.
7118 (get_ada_inferior_data, ada_inferior_exit)
7119 (struct ada_pspace_data): Add initializers, destructor.
7120 (ada_pspace_data_handle): Change type.
7121 (get_ada_pspace_data): Update.
7122 (ada_pspace_data_cleanup): Remove.
7123
7124 2019-05-08 Tom Tromey <tom@tromey.com>
7125
7126 * coffread.c (struct coff_symfile_info): Add initializers.
7127 (coff_objfile_data_key): Move lower. Change type.
7128 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
7129 Update.
7130 (coff_free_info): Remove.
7131
7132 2019-05-08 Tom Tromey <tom@tromey.com>
7133
7134 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
7135 (fbsd_pspace_data_handle): Move lower. Change type.
7136 (get_fbsd_pspace_data): Update.
7137 (fbsd_pspace_data_cleanup): Remove.
7138 (_initialize_fbsd_tdep): Update.
7139
7140 2019-05-08 Tom Tromey <tom@tromey.com>
7141
7142 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
7143 (get_ada_tasks_pspace_data): Update.
7144 (ada_tasks_pspace_data_cleanup): Remove.
7145 (_initialize_tasks): Update.
7146 (ada_tasks_inferior_data_handle): Change type.
7147 (get_ada_tasks_inferior_data): Update.
7148 (ada_tasks_inferior_data_cleanup): Remove.
7149 (struct ada_tasks_pspace_data): Add initializers.
7150
7151 2019-05-08 Tom Tromey <tom@tromey.com>
7152
7153 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
7154 * symfile-debug.c (debug_sym_get_probes): Change type.
7155 * stap-probe.c (handle_stap_probe):
7156 (stap_static_probe_ops::get_probes): Change type.
7157 * probe.h (class static_probe_ops) <get_probes>: Change type.
7158 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
7159 (parse_probes_in_pspace): Update.
7160 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
7161 Update.
7162 (any_static_probe_ops::get_probes): Change type.
7163 * elfread.c (elfread_data): New typedef.
7164 (probe_key): Change type.
7165 (elf_get_probes): Likewise. Update.
7166 (probe_key_free): Remove.
7167 (_initialize_elfread): Update.
7168 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
7169 Change type.
7170 (dtrace_process_dof_probe, dtrace_process_dof)
7171 (dtrace_static_probe_ops::get_probe): Change type.
7172
7173 2019-05-08 Tom Tromey <tom@tromey.com>
7174
7175 * xcoffread.c (struct xcoff_symfile_info): Rename from
7176 coff_symfile_info. Add initializers.
7177 (xcoff_objfile_data_key): Move lower. Change type.
7178 (XCOFF_DATA): Rewrite.
7179 (xcoff_free_info): Remove.
7180 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
7181 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
7182 (xcoff_initial_scan): Update.
7183
7184 2019-05-08 Tom Tromey <tom@tromey.com>
7185
7186 * solib-svr4.c (struct svr4_info): Add initializers and
7187 destructor.
7188 <probes_table>: Now an htab_up.
7189 (solib_svr4_pspace_data): Change type.
7190 (free_probes_table): Simplify.
7191 (~svr4_info): Rename from svr4_pspace_data_cleanup.
7192 (get_svr4_info, probes_table_htab_remove_objfile_probes)
7193 (probes_table_remove_objfile_probes, register_solib_event_probe)
7194 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
7195 (_initialize_svr4_solib): Update.
7196
7197 2019-05-08 Tom Tromey <tom@tromey.com>
7198
7199 * remote.c (remote_pspace_data): Change type.
7200 (remote_pspace_data_cleanup): Remove.
7201 (get_remote_exec_file, set_pspace_remote_exec_file)
7202 (_initialize_remote): Update.
7203
7204 2019-05-08 Tom Tromey <tom@tromey.com>
7205
7206 * breakpoint.c (breakpoint_objfile_key): Change type.
7207 (get_breakpoint_objfile_data): Update.
7208 (free_breakpoint_objfile_data): Remove.
7209 (_initialize_breakpoint): Update.
7210
7211 2019-05-08 Tom Tromey <tom@tromey.com>
7212
7213 * linux-tdep.c (struct linux_info): Add initializers.
7214 (linux_inferior_data): Move. Change type.
7215 (invalidate_linux_cache_inf): Update.
7216 (linux_inferior_data_cleanup): Remove.
7217 (get_linux_inferior_data, _initialize_linux_tdep): Update.
7218
7219 2019-05-08 Tom Tromey <tom@tromey.com>
7220
7221 * auxv.c (auxv_inferior_data): Move. Change type.
7222 (auxv_inferior_data_cleanup): Remove.
7223 (invalidate_auxv_cache_inf): Rewrite.
7224 (get_auxv_inferior_data, _initialize_auxv): Update.
7225
7226 2019-05-08 Tom Tromey <tom@tromey.com>
7227
7228 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
7229 (symfile_debug_objfile_data_key): Change type.
7230 (symfile_debug_installed, debug_qf_has_symbols)
7231 (debug_qf_find_last_source_symtab)
7232 (debug_qf_forget_cached_source_info)
7233 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
7234 (debug_qf_print_stats, debug_qf_dump)
7235 (debug_qf_expand_symtabs_for_function)
7236 (debug_qf_expand_all_symtabs)
7237 (debug_qf_expand_symtabs_with_fullname)
7238 (debug_qf_map_matching_symbols)
7239 (debug_qf_expand_symtabs_matching)
7240 (debug_qf_find_pc_sect_compunit_symtab)
7241 (debug_qf_map_symbol_filenames)
7242 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
7243 (debug_sym_new_init, debug_sym_init, debug_sym_read)
7244 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
7245 (debug_sym_read_linetable, debug_sym_relocate): Update.
7246 (symfile_debug_free_objfile): Remove.
7247 (install_symfile_debug_logging, _initialize_symfile_debug):
7248 Update.
7249
7250 2019-05-08 Tom Tromey <tom@tromey.com>
7251
7252 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
7253 allocate_on_obstack.
7254 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
7255 (get_dwarf2_per_objfile): Update.
7256 (set_dwarf2_per_objfile): Remove.
7257 (dwarf2_has_info, dwarf2_get_section_info): Update.
7258 (dwarf2_free_objfile): Remove.
7259 (_initialize_dwarf2_read): Update.
7260
7261 2019-05-08 Tom Tromey <tom@tromey.com>
7262
7263 * auto-load.c (struct auto_load_pspace_info): Add destructor and
7264 initializers.
7265 <unsupported_script_warning_printed,
7266 script_not_found_warning_printed>: Now bool.
7267 (auto_load_pspace_data): Change type.
7268 (~auto_load_pspace_info): Rename from
7269 auto_load_pspace_data_cleanup.
7270 (get_auto_load_pspace_data, init_loaded_scripts_info)
7271 (clear_section_scripts, maybe_print_unsupported_script_warning)
7272 (maybe_print_script_not_found_warning, _initialize_auto_load):
7273 Update.
7274
7275 2019-05-08 Tom Tromey <tom@tromey.com>
7276
7277 * objfiles.c (objfile_pspace_info): Add destructor and
7278 initializers.
7279 (objfiles_pspace_data): Change type.
7280 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
7281 (get_objfile_pspace_data): Update.
7282 (objfiles_bfd_data): Change type.
7283 (get_objfile_bfd_data): Update.
7284 (objfile_bfd_data_free, _initialize_objfiles): Remove.
7285
7286 2019-05-08 Tom Tromey <tom@tromey.com>
7287
7288 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
7289 Change type.
7290 (get_catch_syscall_inferior_data): Update.
7291 (catch_syscall_inferior_data_cleanup): Remove.
7292 (_initialize_break_catch_syscall): Update.
7293
7294 2019-05-08 Tom Tromey <tom@tromey.com>
7295
7296 * inflow.c (struct terminal_info): Add destructor and
7297 initializers.
7298 (inflow_inferior_data): Change type.
7299 (~terminal_info): Rename from inflow_inferior_data_cleanup.
7300 (get_inflow_inferior_data, inflow_inferior_exit)
7301 (swap_terminal_info, _initialize_inflow): Update.
7302
7303 2019-05-08 Tom Tromey <tom@tromey.com>
7304
7305 * target-dcache.c (target_dcache_cleanup): Remove.
7306 (target_dcache_aspace_key): Change type.
7307 (target_dcache_init_p, target_dcache_invalidate)
7308 (target_dcache_get, target_dcache_get_or_init)
7309 (_initialize_target_dcache): Update.
7310 * dcache.h (struct dcache_deleter): New.
7311
7312 2019-05-08 Tom Tromey <tom@tromey.com>
7313
7314 * symtab.c (struct symbol_cache): Add destructor and
7315 initializers.
7316 (symbol_cache_key): Move. Change type.
7317 (make_symbol_cache, free_symbol_cache): Remove.
7318 (get_symbol_cache): Update.
7319 (symbol_cache_cleanup): Remove.
7320 (ALL_PSPACES, symbol_cache_flush)
7321 (maintenance_print_symbol_cache)
7322 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
7323 Update.
7324
7325 2019-05-08 Tom Tromey <tom@tromey.com>
7326
7327 * symtab.c (struct main_info): Add destructor and initializers.
7328 (main_progspace_key): Move. Change type.
7329 (get_main_info): Update.
7330 (main_info_cleanup): Remove.
7331 (_initialize_symtab): Update.
7332
7333 2019-05-08 Tom Tromey <tom@tromey.com>
7334
7335 * registry.h (DECLARE_REGISTRY): Define the _key class.
7336
7337 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7338
7339 * NEWS: Merge two 'New commands' sections.
7340
7341 2019-05-08 Joel Brobecker <brobecker@adacore.com>
7342
7343 * ada-valprint.c (ada_val_print_gnat_array): Remove language
7344 parameter and use Ada language definition instead.
7345 (ada_val_print_ptr): Remove unused language parameter.
7346 (ada_val_print_num): Remove language parameter and use Ada language
7347 definition instead.
7348 (ada_val_print_enum, ada_val_print_flt): Remove unused language
7349 parameter.
7350 (ada_val_print_struct_union, ada_val_print_ref): Remove language
7351 parameter and use Ada language definition instead.
7352 (ada_val_print_1): Update all ada_val_print_xxx calls.
7353 Remove language parameter.
7354 (ada_val_print): Update ada_val_print_1 call.
7355
7356 2019-05-08 Tom Tromey <tromey@adacore.com>
7357
7358 * remote.c (remote_hw_watchpoint_limit)
7359 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
7360 Now static.
7361
7362 2019-05-08 Tom Tromey <tromey@adacore.com>
7363
7364 * maint.c (_initialize_maint_cmds): Move initialization code to
7365 remote.c.
7366 (watchdog, show_watchdog): Move to remote.c.
7367 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
7368 "watchdog" static.
7369 (_initialize_remote): Move initialization code from maint.c.
7370 * defs.h (watchdog): Don't declare.
7371
7372 2019-05-08 Tom Tromey <tromey@adacore.com>
7373
7374 * tui/tui-interp.c: Include main.h.
7375 * interps.c: Include main.h.
7376 * main.h (interpreter_p): Declare.
7377 * defs.h (interpreter_p): Don't declare.
7378
7379 2019-05-08 Tom Tromey <tromey@adacore.com>
7380
7381 * dwarf2loc.c: Include dwarf2read.h.
7382 * defs.h (read_unsigned_leb128): Don't declare.
7383 * dwarf2read.h (read_unsigned_leb128): Declare.
7384
7385 2019-05-08 Tom Tromey <tromey@adacore.com>
7386
7387 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
7388 method.
7389
7390 2019-05-08 Tom Tromey <tromey@adacore.com>
7391
7392 * utils.c (fputs_maybe_filtered): Reset style after paging, even
7393 when no wrap column is set.
7394
7395 2019-05-08 Tom Tromey <tromey@adacore.com>
7396
7397 * c-lang.c (c_get_string): Handle non-C-style arrays.
7398
7399 2019-05-08 Tom Tromey <tromey@adacore.com>
7400
7401 * typeprint.c (print_offset_data::update): Print the bit offset,
7402 not the number of bits remaining.
7403
7404 2019-05-08 Tom Tromey <tromey@adacore.com>
7405
7406 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
7407 padding at end of comment.
7408
7409 2019-05-08 Tom Tromey <tromey@adacore.com>
7410
7411 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
7412 Compare main types.
7413
7414 2019-05-06 Tom Tromey <tom@tromey.com>
7415
7416 * common/scoped_mmap.c: Include common-defs.h.
7417 * common/scoped_mmap.h: Don't include config.h.
7418
7419 2019-05-04 Tom Tromey <tom@tromey.com>
7420
7421 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
7422 (struct aarch64_call_info): Add initializers.
7423 <si>: Now a std::vector.
7424 (pass_on_stack, aarch64_push_dummy_call): Update.
7425
7426 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
7427 Tom Tromey <tom@tromey.com>
7428
7429 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
7430 (ppc_threads): Now a std::vector. Now static.
7431 (hwdebug_find_thread_points_by_tid)
7432 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
7433 Update.
7434
7435 2019-05-04 Tom Tromey <tom@tromey.com>
7436
7437 * arc-tdep.c (arc_tdesc_init): Return bool.
7438
7439 2019-05-04 Tom Tromey <tom@tromey.com>
7440
7441 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
7442 Use gdb_assert_not_reached.
7443
7444 2019-05-04 Tom Tromey <tom@tromey.com>
7445
7446 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
7447 "false".
7448
7449 2019-05-04 Tom Tromey <tom@tromey.com>
7450
7451 * arc-tdep.c (arc_tdesc_init): Use bool.
7452
7453 2019-05-04 Tom Tromey <tom@tromey.com>
7454
7455 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
7456
7457 2019-05-04 Tom Tromey <tom@tromey.com>
7458
7459 * cli/cli-cmds.c (valid_command_p): Return bool.
7460
7461 2019-05-04 Tom Tromey <tom@tromey.com>
7462
7463 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
7464 * command.h (valid_user_defined_cmd_name_p): Channge return type.
7465
7466 2019-05-04 Raul Tambre <raul@tambre.ee>
7467
7468 * python/lib/gdb/prompt.py (_ExtendedPrompt)
7469 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
7470 operator for comparison.
7471
7472 2019-05-04 Tom Tromey <tom@tromey.com>
7473
7474 * psymtab.c (psymbol_name_matches, match_partial_symbol)
7475 (lookup_partial_symbol, print_partial_symbols)
7476 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
7477 (psymbol_compare): Update.
7478 (add_psymbol_to_bcache): Clear the entire psymbol.
7479 (maintenance_check_psymtabs): Update.
7480 * psympriv.h (struct partial_symbol): Don't derive from
7481 general_symbol_info.
7482 <obj_section, unrelocated_address, address,
7483 set_unrelocated_address>: Update.
7484 <ginfo>: New member.
7485 * dwarf-index-write.c (write_psymbols, debug_names::insert)
7486 (debug_names::write_psymbols): Update.
7487
7488 2019-05-04 Tom de Vries <tdevries@suse.de>
7489
7490 * contrib/cc-with-tweaks.sh: Support -n arg.
7491
7492 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7493
7494 * corelow.c (core_target::detach): Ensure frame cache and
7495 register caches are cleared.
7496 inferior.c (exit_inferior_1): Likewise.
7497
7498 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
7499 Tom Tromey <tom@tromey.com>
7500
7501 * dictionary.c (collate_pending_symbols_by_language): Remove
7502 "struct" from foreach.
7503 * symtab.c (lookup_global_symbol_from_objfile)
7504 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
7505 foreach.
7506 * ser-tcp.c (net_open): Remove "struct" from foreach.
7507 * objfiles.c (objfile_relocate, objfile_rebase)
7508 (objfile_has_symbols): Remove "struct" from foreach.
7509 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
7510 from foreach.
7511 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
7512 foreach.
7513 * darwin-nat.c (thread_info_from_private_thread_info): Remove
7514 "struct" from foreach.
7515 * ada-lang.c (create_excep_cond_exprs)
7516 (ada_exception_catchpoint_cond_string): Remove "struct" from
7517 foreach.
7518
7519 2019-05-03 Tom Tromey <tromey@adacore.com>
7520
7521 * ada-exp.y (convert_char_literal): Check suffix of each
7522 enumerator.
7523
7524 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
7525
7526 PR ada/21406:
7527 * ada-exp.y (yywrap): Don't define.
7528 * ada-lex.l (%option): Add noyywrap
7529 (yywrap): Remove.
7530
7531 2019-05-03 Eli Zaretskii <eliz@gnu.org>
7532
7533 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
7534 _WIN32_WINNT to the XP level, unless already defined to a higher
7535 level.
7536
7537 * unittests/parse-connection-spec-selftests.c:
7538 * ser-tcp.c:
7539 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
7540 override.
7541
7542 * symfile.c (find_separate_debug_file): Remove colon from the
7543 drive spec of DOS/Windows file names of the target, so that the
7544 file name produced from DEBUGDIR and the target's directory will
7545 be valid on DOS/Windows systems.
7546
7547 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
7548
7549 * rust-lang.c (val_print_struct): Handle printing structures
7550 containing strings.
7551
7552 2019-05-02 Tom Tromey <tromey@adacore.com>
7553
7554 * valarith.c (_initialize_valarith): Remove.
7555
7556 2019-05-01 Tom Tromey <tromey@adacore.com>
7557
7558 * ada-lang.c (ada_value_primitive_field): Treat more fields as
7559 bitfields.
7560
7561 2019-05-01 Tom Tromey <tromey@adacore.com>
7562
7563 * ada-lang.c (ada_value_assign): Correctly compute starting offset
7564 for big-endian copies.
7565
7566 2019-04-30 Ali Tamur <tamur@google.com>
7567 * gdb/dwarf2read.c (read_3_bytes): New declaration.
7568 (read_attribute_value): Added DW_FORM_strx1-4 cases.
7569 (read_3_bytes): New function.
7570
7571 2019-04-30 Joel Brobecker <brobecker@adacore.com>
7572
7573 * windows-nat.c (main_thread_id): Delete.
7574 (handle_output_debug_string): Replace main_thread_id by
7575 current_event.dwThreadId.
7576 (fake_create_process): Likewise.
7577 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
7578 Do not set main_thread_id.
7579 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
7580 current_event.dwThreadId.
7581 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
7582
7583 2019-04-30 Joel Brobecker <brobecker@adacore.com>
7584
7585 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
7586 Use current_event.dwThreadId instead of main_thread_id.
7587
7588 2019-04-30 Tom Tromey <tromey@adacore.com>
7589
7590 * ada-lang.c (ada_lookup_simple_minsyms): New function.
7591 (create_excep_cond_exprs): Iterate over program spaces.
7592 (ada_exception_catchpoint_cond_string): Examine all minimal
7593 symbols for exception types.
7594
7595 2019-04-30 Tom Tromey <tromey@adacore.com>
7596
7597 PR c++/24470:
7598 * dwarf2read.c (process_structure_scope): Handle case where type
7599 has template parameters but no symbol was created.
7600
7601 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7602 Chris January <chris.january@arm.com>
7603
7604 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
7605 qualifier.
7606 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
7607
7608 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7609
7610 * f-typeprint.c (f_print_type): Update rules for printing
7611 whitespace.
7612 (f_type_print_varspec_suffix): Likewise.
7613
7614 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7615 Chris January <chris.january@arm.com>
7616
7617 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
7618 function arguments.
7619
7620 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7621
7622 * f-lang.c (build_fortran_types): Change name of void type to
7623 lower case.
7624 * f-typeprint.c (f_type_print_base): Print the name of the void
7625 type, rather than a fixed string.
7626 * f-valprint.c (f_decorations): Use lower case void string.
7627
7628 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7629 Chris January <chris.january@arm.com>
7630
7631 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
7632 types for Fortran.
7633
7634 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7635 Chris January <chris.january@arm.com>
7636 David Lecomber <david.lecomber@arm.com>
7637
7638 * f-exp.y (BINOP_INTRINSIC): New token.
7639 (exp): New parser rule handling BINOP_INTRINSIC.
7640 (f77_keywords): Add new builtin procedures.
7641 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
7642 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7643 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
7644 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7645 (print_unop_subexp_f): New function.
7646 (print_binop_subexp_f): New function.
7647 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7648 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7649 (dump_subexp_body_f): Likewise.
7650 (operator_check_f): Likewise.
7651 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7652 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
7653
7654 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7655
7656 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
7657 UNOP_KIND.
7658 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
7659 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
7660 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
7661 (operator_length_f): New fuction.
7662 (print_subexp_f): New function.
7663 (op_name_f): New function.
7664 (dump_subexp_body_f): New function.
7665 (operator_check_f): New function.
7666 (exp_descriptor_f): Replace standard expression handling functions
7667 with new functions.
7668 * gdb/fortran-operator.def: New file.
7669 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
7670 * gdb/std-operator.def: Remove UNOP_KIND.
7671
7672 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7673
7674 * std-operator.def: Remove unbalanced, stray double quote
7675 character.
7676
7677 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7678 Chris January <chris.january@arm.com>
7679 Daniel Everett <daniel.everett@arm.com>
7680 Nick Forrington <nick.forrington@arm.com>
7681 Richard Bunt <richard.bunt@arm.com>
7682
7683 * cp-valprint.c (cp_print_value_fields): Allow an additional level
7684 of depth when printing anonymous structs or unions.
7685 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
7686 Don't print either the top-level value, or the children if the
7687 max-depth is exceeded.
7688 (ppscm_print_children): When printing the key of a map, allow one
7689 extra level of depth.
7690 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
7691 print either the top-level value, or the children if the max-depth
7692 is exceeded.
7693 (print_children): When printing the key of a map, allow one extra
7694 level of depth.
7695 * python/py-value.c (valpy_format_string): Add max_depth keyword.
7696 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
7697 (user_print_options): Initialise max_depth field.
7698 (val_print_scalar_or_string_type_p): New function.
7699 (val_print): Check to see if the max depth has been reached.
7700 (val_print_check_max_depth): Define new function.
7701 (show_print_max_depth): New function.
7702 (_initialize_valprint): Add 'print max-depth' option.
7703 * valprint.h (struct value_print_options) <max_depth>: New field.
7704 (val_print_check_max_depth): Declare new function.
7705 * NEWS: Document new feature.
7706
7707 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7708
7709 * ada-lang.c (ada_language_defn): Initialise new field.
7710 * c-lang.c (c_is_string_type_p): New function.
7711 (c_language_defn): Initialise new field.
7712 (cplus_language_defn): Initialise new field.
7713 (asm_language_defn): Initialise new field.
7714 (minimal_language_defn): Initialise new field.
7715 * c-lang.h (c_is_string_type_p): Declare new function.
7716 * d-lang.c (d_language_defn): Initialise new field.
7717 * f-lang.c (f_is_string_type_p): New function.
7718 (f_language_defn): Initialise new field.
7719 * go-lang.c (go_is_string_type_p): New function.
7720 (go_language_defn): Initialise new field.
7721 * language.c (default_is_string_type_p): New function.
7722 (unknown_language_defn): Initialise new field.
7723 (auto_language_defn): Initialise new field.
7724 * language.h (struct language_defn) <la_is_string_type_p>: New
7725 member variable.
7726 (default_is_string_type_p): Declare new function.
7727 * m2-lang.c (m2_language_defn): Initialise new field.
7728 * objc-lang.c (objc_language_defn): Initialise new field.
7729 * opencl-lang.c (opencl_language_defn): Initialise new field.
7730 * p-lang.c (pascal_is_string_type_p): New function.
7731 (pascal_language_defn): Initialise new field.
7732 * rust-lang.c (rust_is_string_type_p): New function.
7733 (rust_language_defn): Initialise new field.
7734
7735 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7736
7737 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
7738 New field.
7739 * ada-lang.c (ada_language_defn): Initialise new field.
7740 * c-lang.c (c_language_defn): Likewise.
7741 (cplus_language_defn): Likewise.
7742 (asm_language_defn): Likewise.
7743 (minimal_language_defn): Likewise.
7744 * d-lang.c (d_language_defn): Likewise.
7745 * f-lang.c (f_language_defn): Likewise.
7746 * go-lang.c (go_language_defn): Likewise.
7747 * language.c (unknown_language_defn): Likewise.
7748 (auto_language_defn): Likewise.
7749 * m2-lang.c (m2_language_defn): Likewise.
7750 * objc-lang.c (objc_language_defn): Likewise.
7751 * opencl-lang.c (opencl_language_defn): Likewise.
7752 * p-lang.c (pascal_language_defn): Likewise.
7753 * rust-lang.c (rust_language_defn): Likewise.
7754
7755 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7756
7757 * ada-lang.c (ada_is_character_type): Change return type to bool.
7758 (ada_is_string_type): Likewise.
7759 * ada-lang.h (ada_is_character_type): Update declaration
7760 (ada_is_string_type): Likewise.
7761
7762 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7763
7764 Support style in 'frame|thread apply'
7765
7766 * gdbcmd.h (execute_command_to_string): New term_out parameter.
7767 * record.c (record_start, record_stop): Update callers of
7768 execute_command_to_string with false.
7769 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
7770 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
7771 methods.
7772 (class string_file): New constructor with term_out parameter.
7773 Override methods term_out and can_emit_style_escape. New member
7774 term_out.
7775 (class stdio_file): Override can_emit_style_escape.
7776 (class tee_file): Override term_out and can_emit_style_escape.
7777 * utils.h (can_emit_style_escape): Remove.
7778 * utils.c (can_emit_style_escape): Likewise.
7779 Update all callers of can_emit_style_escape (SOMESTREAM) to
7780 SOMESTREAM->can_emit_style_escape.
7781 * source-cache.c (source_cache::get_source_lines): Likewise.
7782 * stack.c (frame_apply_command_count): Call execute_command_to_string
7783 passing the term_out characteristic of the current gdb_stdout.
7784 * thread.c (thr_try_catch_cmd): Likewise.
7785 * top.c (execute_command_to_string): pass term_out parameter
7786 to construct the string_file for the command output.
7787 * ui-file.c (term_cli_styling): New function (most code moved
7788 from utils.c can_emit_style_escape).
7789 (string_file::string_file, string_file::can_emit_style_escape,
7790 stdio_file::can_emit_style_escape, tee_file::term_out,
7791 tee_file::can_emit_style_escape): New functions.
7792
7793 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7794
7795 * NEWS: Mention the new set|show may-call-functions.
7796 * infcall.c (may_call_functions_p): New variable.
7797 (show_may_call_functions_p): New function.
7798 (call_function_by_hand_dummy): Throws an error if not
7799 may-call-functions.
7800 (_initialize_infcall): Call add_setshow_boolean_cmd for
7801 may-call-functions.
7802
7803 2019-04-25 Keith Seitz <keiths@redhat.com>
7804
7805 PR c++/24367
7806 * cp-support.c (inspect_type): Don't attempt substitutions
7807 of symbol with the same name.
7808
7809 2019-04-25 Tom Tromey <tromey@adacore.com>
7810
7811 PR gdb/24475:
7812 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
7813 static.
7814
7815 2019-04-25 Tom Tromey <tromey@adacore.com>
7816
7817 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
7818 rvalue reference.
7819 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
7820 (gdb_xml_parser::parse): Use std::move.
7821 * python/python-internal.h (gdbpy_convert_exception): Take a const
7822 reference.
7823 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
7824 std::move.
7825 * python/py-utils.c (gdbpy_convert_exception): Take a const
7826 reference.
7827 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7828 Use std::move.
7829 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7830 Use std::move.
7831 * mi/mi-main.c (mi_print_exception): Take a const reference.
7832 * main.c (handle_command_errors): Take a const reference.
7833 * linespec.c (parse_linespec): Use std::move.
7834 * infcall.c (run_inferior_call): Use std::move.
7835 (call_function_by_hand_dummy): Use std::move.
7836 * exec.c (try_open_exec_file): Use std::move.
7837 * exceptions.h (exception_print, exception_fprintf)
7838 (exception_print_same): Update.
7839 * exceptions.c (print_exception, exception_print)
7840 (exception_fprintf, exception_print_same): Change parameters to
7841 const reference.
7842 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
7843 * common/new-op.c: Use std::move.
7844 * common/common-exceptions.h (struct gdb_exception): Add move
7845 constructor.
7846 (struct gdb_exception_error, struct gdb_exception_quit, struct
7847 gdb_quit_bad_alloc): Change constructor to move constructor.
7848 (throw_exception): Change parameter to rvalue reference.
7849 * common/common-exceptions.c (throw_exception): Take rvalue
7850 reference.
7851 * cli/cli-interp.c (safe_execute_command): Use std::move.
7852 * breakpoint.c (insert_bp_location, location_to_sals): Use
7853 std::move.
7854
7855 2019-04-25 Tom Tromey <tromey@adacore.com>
7856
7857 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
7858 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
7859 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
7860 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
7861 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
7862 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
7863 guile/scm-value.c: Use unpack.
7864 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
7865 gdbscm_gdb_exception.
7866 (gdbscm_throw_gdb_exception): Likewise.
7867 (struct gdbscm_gdb_exception): New.
7868 (unpack): New function.
7869 (gdbscm_wrap): Use unpack.
7870
7871 2019-04-25 Tom Tromey <tromey@adacore.com>
7872
7873 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7874 (gdb_rl_callback_handler): Use std::move.
7875 * common/common-exceptions.h (struct gdb_exception): Add move
7876 assignment operator.
7877 (throw_exception_sjlj): Change "exception" to const reference.
7878 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
7879 (throw_exception_sjlj): Change "exception" to const reference.
7880
7881 2019-04-25 Tom Tromey <tromey@adacore.com>
7882
7883 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
7884 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
7885 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7886 Update.
7887 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7888 Update.
7889 * mi/mi-interp.c (mi_interp::exec): Update.
7890 * linespec.c (parse_linespec): Update.
7891 * infcall.c (run_inferior_call): Update.
7892 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
7893 * guile/scm-symbol.c (gdbscm_lookup_symbol)
7894 (gdbscm_lookup_global_symbol): Update.
7895 * guile/scm-param.c (gdbscm_parameter_value): Update.
7896 * guile/scm-frame.c (gdbscm_frame_read_register)
7897 (gdbscm_frame_read_var): Update.
7898 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7899 * exec.c (try_open_exec_file): Update.
7900 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7901 (gdb_rl_callback_handler): Update.
7902 * common/common-exceptions.h (exception_none): Don't declare.
7903 * common/common-exceptions.c (exception_none): Don't define.
7904 (struct catcher) <exception>: Update.
7905 * cli/cli-interp.c (safe_execute_command): Update.
7906 * breakpoint.c (insert_bp_location, location_to_sals): Update.
7907
7908 2019-04-25 Ali Tamur <tamur@google.com>
7909
7910 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
7911 (read_attribute_value): Likewise.
7912 (dwarf2_read_addr_index): Update comment.
7913 (read_str_index): Add DW_FORM_strx.
7914 (dwarf2_string_attr): Likewise.
7915 (dwarf2_const_value_attr): Likewise.
7916 (dump_die_shallow): Likewise.
7917 (dwarf2_fetch_constant_bytes): Likewise.
7918 (skip_form_bytes): Likewise.
7919 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
7920
7921 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7922
7923 PR corefiles/11608
7924 PR corefiles/18187
7925 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
7926 OFFSET. Verify if current mapping contains an ELF header.
7927 (linux_find_memory_regions_full): Adjust call to
7928 dump_mapping_p.
7929
7930 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
7931 Kang Li <kanglictf@gmail.com>
7932
7933 PR gdb/21600
7934
7935 * dwarf2-frame.c (read_initial_length): Be consistent about using
7936 unsigned representation of length.
7937 (decode_frame_entry_1): Likewise. Check for wraparound of
7938 end pointer as well as buffer overflow.
7939
7940 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7941
7942 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
7943 "vq".
7944
7945 2019-04-24 Tom Tromey <tromey@adacore.com>
7946
7947 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
7948
7949 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7950
7951 * s12z-tdep.c (s12z_unwind_pc): Delete.
7952 (s12z_unwind_sp): Delete.
7953 (s12z_gdbarch_init): Don't register deleted functions with
7954 gdbarch.
7955
7956 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7957
7958 * rl78-tdep.c (rl78_unwind_sp): Delete.
7959 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
7960
7961 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7962
7963 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
7964 (xstormy16_unwind_pc): Delete.
7965 (xstormy16_dummy_id): Delete.
7966 (xstormy16_gdbarch_init): Don't register deleted functions with
7967 gdbarch.
7968
7969 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7970
7971 * vax-tdep.c (vax_unwind_pc): Delete.
7972 (vax_gdbarch_init): Don't register deleted function with gdbarch.
7973
7974 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7975
7976 * v850-tdep.c (v850_unwind_sp): Delete.
7977 (v850_unwind_pc): Delete.
7978 (v850_dummy_id): Delete.
7979 (v850_gdbarch_init): Don't register deleted functions with
7980 gdbarch.
7981
7982 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7983
7984 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
7985 (tilegx_unwind_pc): Delete.
7986 (tilegx_unwind_dummy_id): Delete.
7987 (tilegx_gdbarch_init): Don't register deleted functions with
7988 gdbarch.
7989
7990 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7991
7992 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
7993 (tic6x_dummy_id): Delete.
7994 (tic6x_gdbarch_init): Don't register deleted functions with
7995 gdbarch.
7996
7997 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7998
7999 * sparc-tdep.c (sparc_unwind_pc): Delete.
8000 (sparc32_gdbarch_init): Don't register deleted function with
8001 gdbarch.
8002
8003 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8004
8005 * sh-tdep.c (sh_unwind_sp): Delete.
8006 (sh_unwind_pc): Delete.
8007 (sh_dummy_id): Delete.
8008 (sh_gdbarch_init): Don't register deleted functions with
8009 gdbarch.
8010
8011 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8012
8013 * score-tdep.c (score_unwind_sp): Delete.
8014 (score_unwind_pc): Delete.
8015 (score_dummy_id): Delete.
8016 (score_gdbarch_init): Don't register deleted functions with
8017 gdbarch.
8018
8019 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8020
8021 * rx-tdep.c (rx_unwind_pc): Delete.
8022 (rx_unwind_sp): Delete.
8023 (rx_dummy_id): Delete.
8024 (rx_gdbarch_init): Don't register deleted functions with
8025 gdbarch. Update comment.
8026
8027 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8028
8029 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
8030 (rs6000_dummy_id): Delete.
8031 (rs6000_gdbarch_init): Don't register deleted functions with
8032 gdbarch.
8033
8034 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8035
8036 * or1k-tdep.c (or1k_dummy_id): Delete.
8037 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
8038
8039 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8040
8041 * nios2-tdep.c (nios2_dummy_id): Delete.
8042 (nios2_unwind_sp): Delete.
8043 (nios2_gdbarch_init): Don't register deleted functions with
8044 gdbarch.
8045
8046 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8047
8048 * nds32-tdep.c (nds32_dummy_id): Delete.
8049 (nds32_unwind_pc): Delete.
8050 (nds32_unwind_sp): Delete.
8051 (nds32_gdbarch_init): Don't register deleted functions with
8052 gdbarch.
8053
8054 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8055
8056 * msp430-tdep.c (msp430_unwind_pc): Delete.
8057 (msp430_unwind_sp): Delete.
8058 (msp430_dummy_id): Delete.
8059 (msp430_gdbarch_init): Don't register deleted functions with
8060 gdbarch.
8061
8062 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8063
8064 * moxie-tdep.c (moxie_unwind_sp): Delete.
8065 (moxie_unwind_pc): Delete.
8066 (moxie_dummy_id): Delete.
8067 (moxie_gdbarch_init): Don't register deleted functions with
8068 gdbarch.
8069
8070 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8071
8072 * mn10300-tdep.c (mn10300_dummy_id): Delete.
8073 (mn10300_unwind_pc): Delete.
8074 (mn10300_unwind_sp): Delete.
8075 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
8076 mn10300_unwind_sp.
8077 (mn10300_frame_unwind_init): Don't register deleted functions with
8078 gdbarch.
8079
8080 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8081
8082 * mep-tdep.c (mep_unwind_pc): Delete.
8083 (mep_unwind_sp): Delete.
8084 (mep_dummy_id): Delete.
8085 (mep_gdbarch_init): Don't register deleted functions with
8086 gdbarch.
8087
8088 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8089
8090 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
8091 (m68hc11_unwind_sp): Delete.
8092 (m68hc11_gdbarch_init): Don't register deleted functions with
8093 gdbarch.
8094
8095 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8096
8097 * m32r-tdep.c (m32r_unwind_sp): Delete.
8098 (m32r_unwind_pc): Delete.
8099 (m32r_dummy_id): Delete.
8100 (m32r_gdbarch_init): Don't register deleted functions with
8101 gdbarch.
8102
8103 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8104
8105 * m32c-tdep.c (m32c_unwind_pc): Delete.
8106 (m32c_unwind_sp): Delete.
8107 (m32c_dummy_id): Delete.
8108 (m32c_gdbarch_init): Don't register deleted functions with
8109 gdbarch.
8110
8111 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8112
8113 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
8114 (lm32_unwind_pc): Delete.
8115 (lm32_dummy_id): Delete.
8116 (lm32_gdbarch_init): Don't register deleted functions with
8117 gdbarch.
8118
8119 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8120
8121 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
8122 (iq2000_unwind_pc): Delete.
8123 (iq2000_dummy_id): Delete.
8124 (iq2000_gdbarch_init): Don't register deleted functions with
8125 gdbarch.
8126
8127 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8128
8129 * nds32-tdep.c (nds32_type_align): Delete.
8130 (nds32_push_dummy_call): Use type_align instead.
8131
8132 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8133
8134 * arm-tdep.c (arm_type_align): Only handle vector override case.
8135 (arm_push_dummy_call): Use type_align.
8136 (arm_gdbarch_init): Register arm_type_align gdbarch function.
8137
8138 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8139
8140 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
8141 case.
8142 (pass_on_stack): Use type_align.
8143 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
8144 function.
8145
8146 2019-04-23 Tom Tromey <tromey@adacore.com>
8147
8148 * dwarf2read.c (line_header::file_name_at): Remove unused
8149 overload.
8150
8151 2019-04-23 Tom de Vries <tdevries@suse.de>
8152
8153 PR gdb/24438
8154 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
8155 invocation.
8156
8157
8158 2019-03-27 Ali Tamur <tamur@google.com>
8159
8160 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
8161 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
8162 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
8163 (dwarf_expr_context::get_addr_index): Likewise
8164 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
8165 (symbol_needs_eval_context::get_addr_index): Likewise
8166 (disassemble_dwarf_expression): Add DW_OP_addrx
8167 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
8168 (read_cutu_die_from_dwo): Update comment
8169 (skip_one_die): Add DW_FORM_addrx
8170 (read_attribute_value): Likewise
8171 (var_decode_location): Add DW_OP_addrx
8172 (dwarf2_const_value_attr): Add DW_FORM_addrx
8173 (dump_die_shallow): Likewise
8174 (dwarf2_fetch_constant_bytes): Likewise
8175 (decode_locdesc): Add DW_OP_addrx
8176 (skip_form_bytes): Add DW_FORM_addrx
8177
8178 2019-04-22 Ali Tamur <tamur@google.com>
8179
8180 * MAINTAINERS (Write After Approval): Add self.
8181
8182 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
8183
8184 * solib-svr4.c (get_svr4_info): Add pspace parameter.
8185 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
8186 (open_symbol_file_object): Likewise.
8187 (svr4_default_sos): Add info parameter.
8188 (svr4_read_so_list): Likewise.
8189 (svr4_current_sos_direct): Adjust functions calls to pass down
8190 info.
8191 (svr4_current_sos_1): Add info parameter.
8192 (svr4_current_sos): Call get_svr4_info, pass info down to
8193 svr4_current_sos_1.
8194 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
8195 get_svr4_info.
8196 (svr4_in_dynsym_resolve_code): Pass current_program_space to
8197 get_svr4_info.
8198 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
8199 to get_svr4_info.
8200 (probes_table_remove_objfile_probes): Likewise.
8201 (register_solib_event_probe): Add info parameter.
8202 (solist_update_incremental): Pass info parameter down to
8203 svr4_read_so_list.
8204 (disable_probes_interface): Add info parameter.
8205 (svr4_handle_solib_event): Pass current_program_space to
8206 get_svr4_info. Adjust disable_probes_interface cleanup.
8207 (svr4_create_probe_breakpoints): Add info parameter, pass it
8208 down to register_solib_event_probe.
8209 (svr4_create_solib_event_breakpoints): Add info parameter,
8210 pass it down to svr4_create_probe_breakpoints.
8211 (enable_break): Pass info down to
8212 svr4_create_solib_event_breakpoints.
8213 (svr4_solib_create_inferior_hook): Pass current_program_space to
8214 get_svr4_info.
8215 (svr4_clear_solib): Likewise.
8216
8217 2019-04-22 Pedro Alves <palves@redhat.com>
8218
8219 * solib-svr4.c (svr4_free_objfile_observer): New.
8220 (probe_and_action::objfile): New field.
8221 (probes_table_htab_remove_objfile_probes)
8222 (probes_table_remove_objfile_probes): New functions.
8223 (register_solib_event_probe): Add 'objfile' parameter. Store it
8224 in the new probe_and_action. Don't store the probe in 'lookup'.
8225 (svr4_create_probe_breakpoints): Pass objfile to
8226 register_solib_event_probe.
8227 (_initialize_svr4_solib): Register a free_objfile observer.
8228
8229 2019-04-19 Tom Tromey <tom@tromey.com>
8230
8231 * common/queue.h: Remove.
8232
8233 2019-04-19 Tom Tromey <tom@tromey.com>
8234
8235 * event-loop.c: Don't include "common/queue.h".
8236
8237 2019-04-19 Tom Tromey <tom@tromey.com>
8238
8239 * remote.c (remote_target): Use delete.
8240 * remote-notif.h: Include <list>, not "common/queue.h".
8241 (notif_client_p): Remove typedef.
8242 (remote_notif_state): Add constructor, destructor, initializer.
8243 <notif_queue>: Now a std::list.
8244 (remote_notif_state_xfree): Don't declare.
8245 * remote-notif.c (remote_notif_process, handle_notification)
8246 (remote_notif_state_allocate): Update.
8247 (~remote_notif_state): Rename from remote_notif_state_xfree.
8248
8249 2019-04-19 Tom Tromey <tom@tromey.com>
8250
8251 * symfile.c (reread_symbols): Update.
8252 * objfiles.c (objfile_register_static_link)
8253 (objfile_lookup_static_link): Update
8254 (~objfile) Don't delete static_links.
8255 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
8256
8257 2019-04-19 Tom Tromey <tom@tromey.com>
8258
8259 * type-stack.h (struct type_stack) <insert>: Constify string.
8260 * type-stack.c (type_stack::insert): Constify string.
8261 * gdbtypes.h (lookup_template_type): Update.
8262 (address_space_name_to_int): Update.
8263 * gdbtypes.c (address_space_name_to_int): Make space_identifier
8264 const.
8265 (lookup_template_type): Make name const.
8266 * c-exp.y: Update rules.
8267 (lex_one_token, classify_name, classify_inner_name)
8268 (c_print_token): Update.
8269 * p-exp.y: Update rules.
8270 (yylex): Update.
8271 * f-exp.y: Update rules.
8272 (yylex): Update.
8273 * d-exp.y: Update rules.
8274 (lex_one_token, classify_name, classify_inner_name): Update.
8275 * parse.c (write_dollar_variable, copy_name): Return std::string.
8276 * parser-defs.h (copy_name): Change return type.
8277 * m2-exp.y: Update rules.
8278 (yylex): Update.
8279 * go-exp.y (lex_one_token): Update.
8280 Update rules.
8281 (classify_unsafe_function, classify_packaged_name)
8282 (classify_name, yylex): Update.
8283
8284 2019-04-19 Sergei Trofimovich <siarheit@google.com>
8285
8286 * configure.ac: add --enable-source-highlight switch.
8287 * configure: Regenerate.
8288 * top.c (print_gdb_version): plumb --enable-source-highlight
8289 status to "show configuration".
8290
8291 2019-04-19 Tom Tromey <tromey@adacore.com>
8292
8293 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
8294 Check ADA_TYPE_P.
8295 (empty_record, ada_template_to_fixed_record_type_1)
8296 (template_to_static_fixed_type)
8297 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
8298 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
8299 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
8300 macros.
8301
8302 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
8303
8304 PR symtab/24423:
8305 * source.c (print_source_lines_base): Advance "iter" when a
8306 control character is seen.
8307
8308 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8309
8310 * inferior.h (struct infcall_suspend_state_deleter):
8311 Catch exception in destructor to avoid crash.
8312
8313 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8314
8315 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
8316 close to the add_com "shell".
8317
8318 2019-04-18 Tom Tromey <tromey@adacore.com>
8319
8320 * process-stratum-target.h (class process_stratum_target)
8321 <stratum>: Add "final".
8322
8323 2019-04-17 Tom Tromey <tromey@adacore.com>
8324
8325 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
8326 against nullptr before use.
8327
8328 2019-04-17 Alan Hayward <alan.hayward@arm.com>
8329
8330 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
8331
8332 2019-04-17 Jim Wilson <jimw@sifive.com>
8333 Andrew Burgess <andrew.burgess@embecosm.com>
8334
8335 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
8336 code read might fail, assume 4-byte breakpoint in that case.
8337
8338 2019-04-15 Leszek Swirski <leszeks@google.com>
8339
8340 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
8341 rather than a hand-rolled POD check when checking for forced MEMORY
8342 classification.
8343
8344 2019-04-15 Alan Hayward <alan.hayward@arm.com>
8345
8346 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
8347 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
8348 function.
8349 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
8350 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
8351 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
8352 declaration.
8353
8354 2019-04-15 Alan Hayward <alan.hayward@arm.com>
8355
8356 * aarch64-linux-nat.c
8357 (aarch64_linux_nat_target::thread_architecture): Add override.
8358 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
8359 each VQ.
8360
8361 2019-04-15 Alan Hayward <alan.hayward@arm.com>
8362
8363 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
8364
8365 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
8366
8367 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
8368 target types of size 96-bits, add some additional comments, and
8369 check that the builtin type we found was the correct size.
8370
8371 2019-04-12 Eli Zaretskii <eliz@gnu.org>
8372
8373 * utils.c (prompt_for_continue): Don't restore the styling at the
8374 end, as applied_style has the wrong value. This fixes styling in
8375 long lists of file names that are interrupted by the "Continue?"
8376 prompt.
8377
8378 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
8379
8380 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
8381 * c-lang.c (c_language_defn): Likewise.
8382 (cplus_language_defn): Likewise.
8383 (asm_language_defn): Likewise.
8384 (minimal_language_defn): Likewise.
8385 * d-lang.c (d_language_defn): Likewise.
8386 * f-lang.c (f_language_defn): Likewise.
8387 * go-lang.c (go_language_defn): Likewise.
8388 * language.c (unknown_language_defn): Likewise.
8389 (auto_language_defn): Likewise.
8390 * language.h (struct language_defn): Remove la_magic field.
8391 (LANG_MAGIC): Delete.
8392 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
8393 * objc-lang.c (objc_language_defn): Likewise.
8394 * opencl-lang.c (opencl_language_defn): Likewise.
8395 * p-lang.c (pascal_language_defn): Likewise.
8396 * rust-lang.c (rust_language_defn): Likewise.
8397
8398 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8399
8400 * riscv-tdep.c (riscv_type_align): New function.
8401 (riscv_type_alignment): Delete.
8402 (riscv_arg_location): Use 'type_align'.
8403 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
8404
8405 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8406
8407 * gdbtypes.c (type_align): A struct with no non-static fields also
8408 has alignment of 1.
8409
8410 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8411
8412 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
8413 component to 0.
8414 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
8415 member.
8416 (riscv_struct_info::analyse): New implementation using new
8417 analyse_inner member function.
8418 (riscv_struct_info::field_offset): New member function.
8419 (riscv_struct_info::m_offsets): New member variable.
8420 (riscv_struct_info::analyse_inner): New private member function,
8421 takes the old implementation of riscv_struct_info::analyse but
8422 extended to track field offsets.
8423 (riscv_call_arg_struct): Update the struct folding special cases
8424 to handle cases where empty C++ structs, which are non-zero
8425 length, are found.
8426 (riscv_arg_location): Initialise the length of each location, a
8427 non-zero length now indicates the location is in use.
8428 (riscv_push_dummy_call): Allow for the first location having a
8429 non-zero offset when setting up arguments.
8430 (riscv_return_value): Likewise, but for return values.
8431
8432 2019-04-11 Tom Tromey <tromey@adacore.com>
8433
8434 * utils.c (internal_vproblem): Make "msg" const.
8435
8436 2019-04-11 Alan Hayward <alan.hayward@arm.com>
8437
8438 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
8439 * trad-frame.c (trad_frame_reset_saved_regs): New function.
8440 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
8441 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
8442
8443 2019-04-10 Kevin Buettner <kevinb@redhat.com>
8444
8445 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
8446 function.
8447 (fill_gregset): Call amd64_linux_collect_native_gregset instead
8448 of amd64_collect_native_gregset.
8449 (amd64_linux_nat_target::store_registers): Likewise.
8450
8451 2019-04-10 Tom Tromey <tom@tromey.com>
8452
8453 * symtab.c (lookup_global_symbol_from_objfile)
8454 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
8455 * objfiles.h (class separate_debug_iterator): New.
8456 (class separate_debug_range): New.
8457 (struct objfile) <separate_debug_objfiles>: New method.
8458 (objfile_separate_debug_iterate): Don't declare.
8459 * objfiles.c (separate_debug_iterator::operator++): Rename from
8460 objfile_separate_debug_iterate.
8461 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
8462 iterator.
8463 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
8464 iterator.
8465
8466 2019-04-10 Tom Tromey <tom@tromey.com>
8467
8468 * symfile.c (reread_symbols): Remove old comment.
8469 * objfiles.c (free_all_objfiles): Fix a typo.
8470
8471 2019-04-10 Tom Tromey <tom@tromey.com>
8472
8473 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
8474 * minsyms.c (lookup_minimal_symbol): Use foreach.
8475 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8476 (lookup_minimal_symbol_solib_trampoline): Likewise.
8477 * symfile.c (reread_symbols): Use foreach.
8478
8479 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
8480 Tom Tromey <tromey@adacore.com>
8481
8482 PR rust/24414:
8483 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
8484 (rust_lex_int_test): Change "value" to be LONGEST.
8485 (rust_lex_tests): Add test for long integer literal.
8486
8487 2019-04-09 Tom Tromey <tromey@adacore.com>
8488
8489 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
8490 to bool.
8491 (extended_remote_target::attach): Update.
8492 (remote_target::remote_notice_new_inferior): Update.
8493 (remote_target::add_current_inferior_and_thread): Update.
8494 * inferior.c (exit_inferior_1): Use "false".
8495 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
8496
8497 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
8498
8499 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
8500 the "start" command.
8501
8502 2019-04-08 Kevin Buettner <kevinb@redhat.com>
8503
8504 * python/py-inferior.c (infpy_thread_from_thread_handle):
8505 Adjust comments to reflect renaming of thread_from_thread_handle
8506 to thread_from_handle. Adjust keywords. Fix type error message.
8507 (inferior_object_methods): Add thread_from_handle. Retain
8508 thread_from_thread_handle, but mark it as deprecated.
8509
8510 2019-04-08 Kevin Buettner <kevinb@redhat.com>
8511
8512 * gdbthread.h (find_thread_by_handle): Revise declaration.
8513 * thread.c (find_thread_by_handle): Likewise. Adjust
8514 implementation too.
8515 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
8516 support for buffer objects as handles.
8517
8518 2019-04-08 Kevin Buettner <kevinb@redhat.com>
8519
8520 * python/py-infthread.c (thpy_thread_handle): New function.
8521 (thread_object_methods): Register thpy_thread_handle.
8522
8523 2019-04-08 Kevin Buettner <kevinb@redhat.com>
8524
8525 * gdbthread.h (thread_to_thread_handle): Declare.
8526 * thread.c (gdbtypes.h): Include.
8527 (thread_to_thread_handle): New function.
8528
8529 * target.h (struct target_ops): Add thread_info_to_thread_handle.
8530 (target_thread_info_to_thread_handle): Declare.
8531 * target.c (target_thread_info_to_thread_handle): New function.
8532 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
8533 * target-delegates.c: Regenerate.
8534
8535 * linux-thread-db.c (class thread_db_target): Add method
8536 thread_info_to_thread_handle.
8537 (thread_db_target::thread_info_to_thread_handle): Define.
8538 * remote.c (class remote_target): Add new method
8539 thread_info_to_thread_handle.
8540 (remote_target::thread_info_to_thread_handle): Define.
8541
8542 2019-04-08 Pedro Alves <palves@redhat.com>
8543
8544 * common/common-exceptions.c (throw_exception): Don't create
8545 named object to throw; throw directly.
8546 (throw_it): Likewise. Don't initialize gdb_exception::message
8547 here, with new; pass FMT and AP to the ctor instead.
8548 * common/common-exceptions.h: Include <string>.
8549 (gdb_exception::gdb_exception(enum return_reason, enum errors,
8550 const char *, va_list)): New ctor. Use std::make_shared.
8551 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
8552 errors)): Delete.
8553 (gdb_exception_error::gdb_exception_error(enum errors, const char
8554 *, va_list)): New.
8555 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
8556 Add assertion.
8557 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
8558 errors)): Delete.
8559 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
8560 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
8561 Add assertion.
8562
8563 2019-04-08 Tom Tromey <tom@tromey.com>
8564
8565 * valops.c (value_rtti_indirect_type): Replace throw_exception
8566 with throw.
8567 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
8568 with throw.
8569 * thread.c (thr_try_catch_cmd): Replace throw_exception with
8570 throw.
8571 * target.c (target_translate_tls_address): Replace throw_exception
8572 with throw.
8573 * stack.c (frame_apply_command_count): Replace throw_exception
8574 with throw.
8575 * solib-spu.c (append_ocl_sos): Replace throw_exception with
8576 throw.
8577 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
8578 with throw.
8579 * rs6000-tdep.c (rs6000_frame_cache)
8580 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
8581 * remote.c: Replace throw_exception with throw.
8582 * record-full.c (record_full_message, record_full_wait_1)
8583 (record_full_restore): Replace throw_exception with throw.
8584 * record-btrace.c:
8585 (get_thread_current_frame_id, record_btrace_start_replaying)
8586 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
8587 (cmd_record_btrace_start): Replace throw_exception with throw.
8588 * parse.c (parse_exp_in_context_1): Replace throw_exception with
8589 throw.
8590 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
8591 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
8592 * linespec.c:
8593 (find_linespec_symbols): Replace throw_exception with throw.
8594 * infrun.c (displaced_step_prepare, resume): Replace
8595 throw_exception with throw.
8596 * infcmd.c (post_create_inferior): Replace throw_exception with
8597 throw.
8598 * inf-loop.c (inferior_event_handler): Replace throw_exception
8599 with throw.
8600 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
8601 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
8602 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
8603 (get_prev_frame_always, get_frame_pc_if_available)
8604 (get_frame_address_in_block_if_available, get_frame_language):
8605 Replace throw_exception with throw.
8606 * frame-unwind.c (frame_unwind_try_unwinder): Replace
8607 throw_exception with throw.
8608 * eval.c (fetch_subexp_value, evaluate_var_value)
8609 (evaluate_funcall, evaluate_subexp_standard): Replace
8610 throw_exception with throw.
8611 * dwarf2loc.c (call_site_find_chain)
8612 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
8613 Replace throw_exception with throw.
8614 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
8615 with throw.
8616 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
8617 throw.
8618 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
8619 * completer.c (complete_line_internal): Replace throw_exception
8620 with throw.
8621 * compile/compile-object-run.c (compile_object_run): Replace
8622 throw_exception with throw.
8623 * cli/cli-script.c (process_next_line): Replace throw_exception
8624 with throw.
8625 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
8626 (btrace_enable, btrace_maint_update_pt_packets): Replace
8627 throw_exception with throw.
8628 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
8629 throw_exception with throw.
8630 * break-catch-throw.c (re_set_exception_catchpoint): Replace
8631 throw_exception with throw.
8632 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
8633 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
8634 * aarch64-tdep.c (aarch64_make_prologue_cache)
8635 (aarch64_make_stub_cache): Replace throw_exception with throw.
8636
8637 2019-04-08 Tom Tromey <tom@tromey.com>
8638
8639 * common/common-exceptions.c (throw_exception): Rename from
8640 throw_exception_cxx. Remove old copy. Make argument const.
8641 (throw_it): Create and throw exception objects directly.
8642 * common/common-exceptions.h (throw_exception): Make argument
8643 const.
8644 (struct gdb_exception_error): Add constructor.
8645 (struct gdb_exception_quit): Add constructor.
8646
8647 2019-04-08 Tom Tromey <tom@tromey.com>
8648
8649 * common/common-exceptions.h (exception_rethrow): Don't declare.
8650 (TRY_SJLJ): Update comment.
8651 (TRY, CATCH, END_CATCH): Remove.
8652 * common/common-exceptions.c (exception_rethrow): Remove.
8653
8654 2019-04-08 Tom Tromey <tom@tromey.com>
8655
8656 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
8657 Remove.
8658 (gdb_exception_error): Rename from
8659 gdb_exception_RETURN_MASK_ERROR.
8660 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
8661 (gdb_quit_bad_alloc): Update.
8662 * aarch64-tdep.c: Update.
8663 * ada-lang.c: Update.
8664 * ada-typeprint.c: Update.
8665 * ada-valprint.c: Update.
8666 * amd64-tdep.c: Update.
8667 * arch-utils.c: Update.
8668 * break-catch-throw.c: Update.
8669 * breakpoint.c: Update.
8670 * btrace.c: Update.
8671 * c-varobj.c: Update.
8672 * cli/cli-cmds.c: Update.
8673 * cli/cli-interp.c: Update.
8674 * cli/cli-script.c: Update.
8675 * common/common-exceptions.c: Update.
8676 * common/new-op.c: Update.
8677 * common/selftest.c: Update.
8678 * compile/compile-c-symbols.c: Update.
8679 * compile/compile-cplus-symbols.c: Update.
8680 * compile/compile-object-load.c: Update.
8681 * compile/compile-object-run.c: Update.
8682 * completer.c: Update.
8683 * corelow.c: Update.
8684 * cp-abi.c: Update.
8685 * cp-support.c: Update.
8686 * cp-valprint.c: Update.
8687 * darwin-nat.c: Update.
8688 * disasm-selftests.c: Update.
8689 * dtrace-probe.c: Update.
8690 * dwarf-index-cache.c: Update.
8691 * dwarf-index-write.c: Update.
8692 * dwarf2-frame-tailcall.c: Update.
8693 * dwarf2-frame.c: Update.
8694 * dwarf2loc.c: Update.
8695 * dwarf2read.c: Update.
8696 * eval.c: Update.
8697 * event-loop.c: Update.
8698 * event-top.c: Update.
8699 * exec.c: Update.
8700 * f-valprint.c: Update.
8701 * fbsd-tdep.c: Update.
8702 * frame-unwind.c: Update.
8703 * frame.c: Update.
8704 * gdbtypes.c: Update.
8705 * gnu-v3-abi.c: Update.
8706 * guile/guile-internal.h: Update.
8707 * guile/scm-block.c: Update.
8708 * guile/scm-breakpoint.c: Update.
8709 * guile/scm-cmd.c: Update.
8710 * guile/scm-disasm.c: Update.
8711 * guile/scm-frame.c: Update.
8712 * guile/scm-lazy-string.c: Update.
8713 * guile/scm-math.c: Update.
8714 * guile/scm-param.c: Update.
8715 * guile/scm-ports.c: Update.
8716 * guile/scm-pretty-print.c: Update.
8717 * guile/scm-symbol.c: Update.
8718 * guile/scm-symtab.c: Update.
8719 * guile/scm-type.c: Update.
8720 * guile/scm-value.c: Update.
8721 * i386-linux-tdep.c: Update.
8722 * i386-tdep.c: Update.
8723 * inf-loop.c: Update.
8724 * infcall.c: Update.
8725 * infcmd.c: Update.
8726 * infrun.c: Update.
8727 * jit.c: Update.
8728 * language.c: Update.
8729 * linespec.c: Update.
8730 * linux-fork.c: Update.
8731 * linux-nat.c: Update.
8732 * linux-tdep.c: Update.
8733 * linux-thread-db.c: Update.
8734 * main.c: Update.
8735 * mi/mi-cmd-break.c: Update.
8736 * mi/mi-cmd-stack.c: Update.
8737 * mi/mi-interp.c: Update.
8738 * mi/mi-main.c: Update.
8739 * objc-lang.c: Update.
8740 * p-valprint.c: Update.
8741 * parse.c: Update.
8742 * ppc-linux-tdep.c: Update.
8743 * printcmd.c: Update.
8744 * python/py-arch.c: Update.
8745 * python/py-breakpoint.c: Update.
8746 * python/py-cmd.c: Update.
8747 * python/py-finishbreakpoint.c: Update.
8748 * python/py-frame.c: Update.
8749 * python/py-framefilter.c: Update.
8750 * python/py-gdb-readline.c: Update.
8751 * python/py-inferior.c: Update.
8752 * python/py-infthread.c: Update.
8753 * python/py-lazy-string.c: Update.
8754 * python/py-linetable.c: Update.
8755 * python/py-objfile.c: Update.
8756 * python/py-param.c: Update.
8757 * python/py-prettyprint.c: Update.
8758 * python/py-progspace.c: Update.
8759 * python/py-record-btrace.c: Update.
8760 * python/py-record.c: Update.
8761 * python/py-symbol.c: Update.
8762 * python/py-type.c: Update.
8763 * python/py-unwind.c: Update.
8764 * python/py-utils.c: Update.
8765 * python/py-value.c: Update.
8766 * python/python.c: Update.
8767 * record-btrace.c: Update.
8768 * record-full.c: Update.
8769 * remote-fileio.c: Update.
8770 * remote.c: Update.
8771 * riscv-tdep.c: Update.
8772 * rs6000-aix-tdep.c: Update.
8773 * rs6000-tdep.c: Update.
8774 * rust-exp.y: Update.
8775 * rust-lang.c: Update.
8776 * s390-tdep.c: Update.
8777 * selftest-arch.c: Update.
8778 * solib-dsbt.c: Update.
8779 * solib-frv.c: Update.
8780 * solib-spu.c: Update.
8781 * solib-svr4.c: Update.
8782 * solib.c: Update.
8783 * sparc64-linux-tdep.c: Update.
8784 * stack.c: Update.
8785 * symfile-mem.c: Update.
8786 * symmisc.c: Update.
8787 * target.c: Update.
8788 * thread.c: Update.
8789 * top.c: Update.
8790 * tracefile-tfile.c: Update.
8791 * tui/tui.c: Update.
8792 * typeprint.c: Update.
8793 * unittests/cli-utils-selftests.c: Update.
8794 * unittests/parse-connection-spec-selftests.c: Update.
8795 * valops.c: Update.
8796 * valprint.c: Update.
8797 * value.c: Update.
8798 * varobj.c: Update.
8799 * windows-nat.c: Update.
8800 * x86-linux-nat.c: Update.
8801 * xml-support.c: Update.
8802
8803 2019-04-08 Tom Tromey <tom@tromey.com>
8804
8805 * xml-support.c: Use C++ exception handling.
8806 * x86-linux-nat.c: Use C++ exception handling.
8807 * windows-nat.c: Use C++ exception handling.
8808 * varobj.c: Use C++ exception handling.
8809 * value.c: Use C++ exception handling.
8810 * valprint.c: Use C++ exception handling.
8811 * valops.c: Use C++ exception handling.
8812 * unittests/parse-connection-spec-selftests.c: Use C++ exception
8813 handling.
8814 * unittests/cli-utils-selftests.c: Use C++ exception handling.
8815 * typeprint.c: Use C++ exception handling.
8816 * tui/tui.c: Use C++ exception handling.
8817 * tracefile-tfile.c: Use C++ exception handling.
8818 * top.c: Use C++ exception handling.
8819 * thread.c: Use C++ exception handling.
8820 * target.c: Use C++ exception handling.
8821 * symmisc.c: Use C++ exception handling.
8822 * symfile-mem.c: Use C++ exception handling.
8823 * stack.c: Use C++ exception handling.
8824 * sparc64-linux-tdep.c: Use C++ exception handling.
8825 * solib.c: Use C++ exception handling.
8826 * solib-svr4.c: Use C++ exception handling.
8827 * solib-spu.c: Use C++ exception handling.
8828 * solib-frv.c: Use C++ exception handling.
8829 * solib-dsbt.c: Use C++ exception handling.
8830 * selftest-arch.c: Use C++ exception handling.
8831 * s390-tdep.c: Use C++ exception handling.
8832 * rust-lang.c: Use C++ exception handling.
8833 * rust-exp.y: Use C++ exception handling.
8834 * rs6000-tdep.c: Use C++ exception handling.
8835 * rs6000-aix-tdep.c: Use C++ exception handling.
8836 * riscv-tdep.c: Use C++ exception handling.
8837 * remote.c: Use C++ exception handling.
8838 * remote-fileio.c: Use C++ exception handling.
8839 * record-full.c: Use C++ exception handling.
8840 * record-btrace.c: Use C++ exception handling.
8841 * python/python.c: Use C++ exception handling.
8842 * python/py-value.c: Use C++ exception handling.
8843 * python/py-utils.c: Use C++ exception handling.
8844 * python/py-unwind.c: Use C++ exception handling.
8845 * python/py-type.c: Use C++ exception handling.
8846 * python/py-symbol.c: Use C++ exception handling.
8847 * python/py-record.c: Use C++ exception handling.
8848 * python/py-record-btrace.c: Use C++ exception handling.
8849 * python/py-progspace.c: Use C++ exception handling.
8850 * python/py-prettyprint.c: Use C++ exception handling.
8851 * python/py-param.c: Use C++ exception handling.
8852 * python/py-objfile.c: Use C++ exception handling.
8853 * python/py-linetable.c: Use C++ exception handling.
8854 * python/py-lazy-string.c: Use C++ exception handling.
8855 * python/py-infthread.c: Use C++ exception handling.
8856 * python/py-inferior.c: Use C++ exception handling.
8857 * python/py-gdb-readline.c: Use C++ exception handling.
8858 * python/py-framefilter.c: Use C++ exception handling.
8859 * python/py-frame.c: Use C++ exception handling.
8860 * python/py-finishbreakpoint.c: Use C++ exception handling.
8861 * python/py-cmd.c: Use C++ exception handling.
8862 * python/py-breakpoint.c: Use C++ exception handling.
8863 * python/py-arch.c: Use C++ exception handling.
8864 * printcmd.c: Use C++ exception handling.
8865 * ppc-linux-tdep.c: Use C++ exception handling.
8866 * parse.c: Use C++ exception handling.
8867 * p-valprint.c: Use C++ exception handling.
8868 * objc-lang.c: Use C++ exception handling.
8869 * mi/mi-main.c: Use C++ exception handling.
8870 * mi/mi-interp.c: Use C++ exception handling.
8871 * mi/mi-cmd-stack.c: Use C++ exception handling.
8872 * mi/mi-cmd-break.c: Use C++ exception handling.
8873 * main.c: Use C++ exception handling.
8874 * linux-thread-db.c: Use C++ exception handling.
8875 * linux-tdep.c: Use C++ exception handling.
8876 * linux-nat.c: Use C++ exception handling.
8877 * linux-fork.c: Use C++ exception handling.
8878 * linespec.c: Use C++ exception handling.
8879 * language.c: Use C++ exception handling.
8880 * jit.c: Use C++ exception handling.
8881 * infrun.c: Use C++ exception handling.
8882 * infcmd.c: Use C++ exception handling.
8883 * infcall.c: Use C++ exception handling.
8884 * inf-loop.c: Use C++ exception handling.
8885 * i386-tdep.c: Use C++ exception handling.
8886 * i386-linux-tdep.c: Use C++ exception handling.
8887 * guile/scm-value.c: Use C++ exception handling.
8888 * guile/scm-type.c: Use C++ exception handling.
8889 * guile/scm-symtab.c: Use C++ exception handling.
8890 * guile/scm-symbol.c: Use C++ exception handling.
8891 * guile/scm-pretty-print.c: Use C++ exception handling.
8892 * guile/scm-ports.c: Use C++ exception handling.
8893 * guile/scm-param.c: Use C++ exception handling.
8894 * guile/scm-math.c: Use C++ exception handling.
8895 * guile/scm-lazy-string.c: Use C++ exception handling.
8896 * guile/scm-frame.c: Use C++ exception handling.
8897 * guile/scm-disasm.c: Use C++ exception handling.
8898 * guile/scm-cmd.c: Use C++ exception handling.
8899 * guile/scm-breakpoint.c: Use C++ exception handling.
8900 * guile/scm-block.c: Use C++ exception handling.
8901 * guile/guile-internal.h: Use C++ exception handling.
8902 * gnu-v3-abi.c: Use C++ exception handling.
8903 * gdbtypes.c: Use C++ exception handling.
8904 * frame.c: Use C++ exception handling.
8905 * frame-unwind.c: Use C++ exception handling.
8906 * fbsd-tdep.c: Use C++ exception handling.
8907 * f-valprint.c: Use C++ exception handling.
8908 * exec.c: Use C++ exception handling.
8909 * event-top.c: Use C++ exception handling.
8910 * event-loop.c: Use C++ exception handling.
8911 * eval.c: Use C++ exception handling.
8912 * dwarf2read.c: Use C++ exception handling.
8913 * dwarf2loc.c: Use C++ exception handling.
8914 * dwarf2-frame.c: Use C++ exception handling.
8915 * dwarf2-frame-tailcall.c: Use C++ exception handling.
8916 * dwarf-index-write.c: Use C++ exception handling.
8917 * dwarf-index-cache.c: Use C++ exception handling.
8918 * dtrace-probe.c: Use C++ exception handling.
8919 * disasm-selftests.c: Use C++ exception handling.
8920 * darwin-nat.c: Use C++ exception handling.
8921 * cp-valprint.c: Use C++ exception handling.
8922 * cp-support.c: Use C++ exception handling.
8923 * cp-abi.c: Use C++ exception handling.
8924 * corelow.c: Use C++ exception handling.
8925 * completer.c: Use C++ exception handling.
8926 * compile/compile-object-run.c: Use C++ exception handling.
8927 * compile/compile-object-load.c: Use C++ exception handling.
8928 * compile/compile-cplus-symbols.c: Use C++ exception handling.
8929 * compile/compile-c-symbols.c: Use C++ exception handling.
8930 * common/selftest.c: Use C++ exception handling.
8931 * common/new-op.c: Use C++ exception handling.
8932 * cli/cli-script.c: Use C++ exception handling.
8933 * cli/cli-interp.c: Use C++ exception handling.
8934 * cli/cli-cmds.c: Use C++ exception handling.
8935 * c-varobj.c: Use C++ exception handling.
8936 * btrace.c: Use C++ exception handling.
8937 * breakpoint.c: Use C++ exception handling.
8938 * break-catch-throw.c: Use C++ exception handling.
8939 * arch-utils.c: Use C++ exception handling.
8940 * amd64-tdep.c: Use C++ exception handling.
8941 * ada-valprint.c: Use C++ exception handling.
8942 * ada-typeprint.c: Use C++ exception handling.
8943 * ada-lang.c: Use C++ exception handling.
8944 * aarch64-tdep.c: Use C++ exception handling.
8945
8946 2019-04-08 Tom Tromey <tom@tromey.com>
8947
8948 * xml-support.c (gdb_xml_parser::parse): Update.
8949 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8950 * value.c (show_convenience): Update.
8951 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
8952 (test_parse_flags_qcs): Update.
8953 * thread.c (thr_try_catch_cmd): Update.
8954 * target.c (target_translate_tls_address): Update.
8955 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
8956 (info_frame_command_core, frame_apply_command_count): Update.
8957 * rust-exp.y (rust_lex_exception_test): Update.
8958 * riscv-tdep.c (riscv_print_one_register_info): Update.
8959 * remote.c (remote_target::enable_btrace): Update.
8960 * record-btrace.c (record_btrace_enable_warn): Update.
8961 * python/py-utils.c (gdbpy_convert_exception): Update.
8962 * printcmd.c (do_one_display, print_variable_and_value): Update.
8963 * mi/mi-main.c (mi_print_exception): Update.
8964 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
8965 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
8966 * linux-nat.c (linux_nat_target::attach): Update.
8967 * linux-fork.c (class scoped_switch_fork_info): Update.
8968 * infrun.c (displaced_step_prepare): Update.
8969 * infcall.c (call_function_by_hand_dummy): Update.
8970 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
8971 * gnu-v3-abi.c (print_one_vtable): Update.
8972 * frame.c (get_prev_frame_always): Update.
8973 * f-valprint.c (info_common_command_for_block): Update.
8974 * exec.c (try_open_exec_file): Update.
8975 * exceptions.c (print_exception, exception_print)
8976 (exception_fprintf, exception_print_same): Update.
8977 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
8978 * dwarf-index-cache.c (index_cache::store)
8979 (index_cache::lookup_gdb_index): Update.
8980 * darwin-nat.c (maybe_cache_shell): Update.
8981 * cp-valprint.c (cp_print_value_fields): Update.
8982 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
8983 (gcc_cplus_symbol_address): Update.
8984 * compile/compile-c-symbols.c (gcc_convert_symbol)
8985 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
8986 * common/selftest.c: Update.
8987 * common/common-exceptions.h (struct gdb_exception) <message>: Now
8988 a std::string.
8989 (exception_try_scope_entry, exception_try_scope_exit): Don't
8990 declare.
8991 (struct exception_try_scope): Remove.
8992 (TRY): Don't use exception_try_scope.
8993 (struct gdb_exception): Add constructor, operator=.
8994 <what>: New method.
8995 (struct gdb_exception_RETURN_MASK_ALL)
8996 (struct gdb_exception_RETURN_MASK_ERROR)
8997 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
8998 (struct gdb_quit_bad_alloc): Update.
8999 * common/common-exceptions.c (exception_none): Change
9000 initializer.
9001 (struct catcher) <state, exception>: Initialize inline.
9002 <prev>: Remove member.
9003 (current_catcher): Remove.
9004 (catchers): New global.
9005 (exceptions_state_mc_init): Simplify.
9006 (catcher_pop): Remove.
9007 (exceptions_state_mc, exceptions_state_mc_catch): Update.
9008 (try_scope_depth, exception_try_scope_entry)
9009 (exception_try_scope_exit): Remove.
9010 (throw_exception_sjlj): Update.
9011 (exception_messages, exception_messages_size): Remove.
9012 (throw_it): Simplify.
9013 (gdb_exception_sliced_copy): Remove.
9014 (throw_exception_cxx): Update.
9015 * cli/cli-script.c (script_from_file): Update.
9016 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
9017 Update.
9018 * ada-valprint.c (ada_val_print): Update.
9019 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
9020 (create_excep_cond_exprs): Update.
9021
9022 2019-04-08 Tom Tromey <tom@tromey.com>
9023
9024 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
9025 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
9026 (TRY, CATCH, END_CATCH): Remove some definitions.
9027 * common/common-exceptions.c: Don't use GDB_XCPT.
9028 (catcher_list_size): Remove.
9029 (throw_exception, throw_it): Simplify.
9030
9031 2019-04-05 Tom Tromey <tom@tromey.com>
9032
9033 Revert the header-sorting patch.
9034 * ft32-tdep.c: Revert.
9035 * frv-tdep.c: Revert.
9036 * frv-linux-tdep.c: Revert.
9037 * frame.c: Revert.
9038 * frame-unwind.c: Revert.
9039 * frame-base.c: Revert.
9040 * fork-child.c: Revert.
9041 * findvar.c: Revert.
9042 * findcmd.c: Revert.
9043 * filesystem.c: Revert.
9044 * filename-seen-cache.h: Revert.
9045 * filename-seen-cache.c: Revert.
9046 * fbsd-tdep.c: Revert.
9047 * fbsd-nat.h: Revert.
9048 * fbsd-nat.c: Revert.
9049 * f-valprint.c: Revert.
9050 * f-typeprint.c: Revert.
9051 * f-lang.c: Revert.
9052 * extension.h: Revert.
9053 * extension.c: Revert.
9054 * extension-priv.h: Revert.
9055 * expprint.c: Revert.
9056 * exec.h: Revert.
9057 * exec.c: Revert.
9058 * exceptions.c: Revert.
9059 * event-top.c: Revert.
9060 * event-loop.c: Revert.
9061 * eval.c: Revert.
9062 * elfread.c: Revert.
9063 * dwarf2read.h: Revert.
9064 * dwarf2read.c: Revert.
9065 * dwarf2loc.c: Revert.
9066 * dwarf2expr.h: Revert.
9067 * dwarf2expr.c: Revert.
9068 * dwarf2-frame.c: Revert.
9069 * dwarf2-frame-tailcall.c: Revert.
9070 * dwarf-index-write.h: Revert.
9071 * dwarf-index-write.c: Revert.
9072 * dwarf-index-common.c: Revert.
9073 * dwarf-index-cache.h: Revert.
9074 * dwarf-index-cache.c: Revert.
9075 * dummy-frame.c: Revert.
9076 * dtrace-probe.c: Revert.
9077 * disasm.h: Revert.
9078 * disasm.c: Revert.
9079 * disasm-selftests.c: Revert.
9080 * dictionary.c: Revert.
9081 * dicos-tdep.c: Revert.
9082 * demangle.c: Revert.
9083 * dcache.h: Revert.
9084 * dcache.c: Revert.
9085 * darwin-nat.h: Revert.
9086 * darwin-nat.c: Revert.
9087 * darwin-nat-info.c: Revert.
9088 * d-valprint.c: Revert.
9089 * d-namespace.c: Revert.
9090 * d-lang.c: Revert.
9091 * ctf.c: Revert.
9092 * csky-tdep.c: Revert.
9093 * csky-linux-tdep.c: Revert.
9094 * cris-tdep.c: Revert.
9095 * cris-linux-tdep.c: Revert.
9096 * cp-valprint.c: Revert.
9097 * cp-support.c: Revert.
9098 * cp-namespace.c: Revert.
9099 * cp-abi.c: Revert.
9100 * corelow.c: Revert.
9101 * corefile.c: Revert.
9102 * continuations.c: Revert.
9103 * completer.h: Revert.
9104 * completer.c: Revert.
9105 * complaints.c: Revert.
9106 * coffread.c: Revert.
9107 * coff-pe-read.c: Revert.
9108 * cli-out.h: Revert.
9109 * cli-out.c: Revert.
9110 * charset.c: Revert.
9111 * c-varobj.c: Revert.
9112 * c-valprint.c: Revert.
9113 * c-typeprint.c: Revert.
9114 * c-lang.c: Revert.
9115 * buildsym.c: Revert.
9116 * buildsym-legacy.c: Revert.
9117 * build-id.h: Revert.
9118 * build-id.c: Revert.
9119 * btrace.c: Revert.
9120 * bsd-uthread.c: Revert.
9121 * breakpoint.h: Revert.
9122 * breakpoint.c: Revert.
9123 * break-catch-throw.c: Revert.
9124 * break-catch-syscall.c: Revert.
9125 * break-catch-sig.c: Revert.
9126 * blockframe.c: Revert.
9127 * block.c: Revert.
9128 * bfin-tdep.c: Revert.
9129 * bfin-linux-tdep.c: Revert.
9130 * bfd-target.c: Revert.
9131 * bcache.c: Revert.
9132 * ax-general.c: Revert.
9133 * ax-gdb.h: Revert.
9134 * ax-gdb.c: Revert.
9135 * avr-tdep.c: Revert.
9136 * auxv.c: Revert.
9137 * auto-load.c: Revert.
9138 * arm-wince-tdep.c: Revert.
9139 * arm-tdep.c: Revert.
9140 * arm-symbian-tdep.c: Revert.
9141 * arm-pikeos-tdep.c: Revert.
9142 * arm-obsd-tdep.c: Revert.
9143 * arm-nbsd-tdep.c: Revert.
9144 * arm-nbsd-nat.c: Revert.
9145 * arm-linux-tdep.c: Revert.
9146 * arm-linux-nat.c: Revert.
9147 * arm-fbsd-tdep.c: Revert.
9148 * arm-fbsd-nat.c: Revert.
9149 * arm-bsd-tdep.c: Revert.
9150 * arch-utils.c: Revert.
9151 * arc-tdep.c: Revert.
9152 * arc-newlib-tdep.c: Revert.
9153 * annotate.h: Revert.
9154 * annotate.c: Revert.
9155 * amd64-windows-tdep.c: Revert.
9156 * amd64-windows-nat.c: Revert.
9157 * amd64-tdep.c: Revert.
9158 * amd64-sol2-tdep.c: Revert.
9159 * amd64-obsd-tdep.c: Revert.
9160 * amd64-obsd-nat.c: Revert.
9161 * amd64-nbsd-tdep.c: Revert.
9162 * amd64-nbsd-nat.c: Revert.
9163 * amd64-nat.c: Revert.
9164 * amd64-linux-tdep.c: Revert.
9165 * amd64-linux-nat.c: Revert.
9166 * amd64-fbsd-tdep.c: Revert.
9167 * amd64-fbsd-nat.c: Revert.
9168 * amd64-dicos-tdep.c: Revert.
9169 * amd64-darwin-tdep.c: Revert.
9170 * amd64-bsd-nat.c: Revert.
9171 * alpha-tdep.c: Revert.
9172 * alpha-obsd-tdep.c: Revert.
9173 * alpha-nbsd-tdep.c: Revert.
9174 * alpha-mdebug-tdep.c: Revert.
9175 * alpha-linux-tdep.c: Revert.
9176 * alpha-linux-nat.c: Revert.
9177 * alpha-bsd-tdep.c: Revert.
9178 * alpha-bsd-nat.c: Revert.
9179 * aix-thread.c: Revert.
9180 * agent.c: Revert.
9181 * addrmap.c: Revert.
9182 * ada-varobj.c: Revert.
9183 * ada-valprint.c: Revert.
9184 * ada-typeprint.c: Revert.
9185 * ada-tasks.c: Revert.
9186 * ada-lang.c: Revert.
9187 * aarch64-tdep.c: Revert.
9188 * aarch64-ravenscar-thread.c: Revert.
9189 * aarch64-newlib-tdep.c: Revert.
9190 * aarch64-linux-tdep.c: Revert.
9191 * aarch64-linux-nat.c: Revert.
9192 * aarch64-fbsd-tdep.c: Revert.
9193 * aarch64-fbsd-nat.c: Revert.
9194 * aarch32-linux-nat.c: Revert.
9195
9196 2019-04-05 Tom Tromey <tom@tromey.com>
9197
9198 * ft32-tdep.c: Sort headers.
9199 * frv-tdep.c: Sort headers.
9200 * frv-linux-tdep.c: Sort headers.
9201 * frame.c: Sort headers.
9202 * frame-unwind.c: Sort headers.
9203 * frame-base.c: Sort headers.
9204 * fork-child.c: Sort headers.
9205 * findvar.c: Sort headers.
9206 * findcmd.c: Sort headers.
9207 * filesystem.c: Sort headers.
9208 * filename-seen-cache.h: Sort headers.
9209 * filename-seen-cache.c: Sort headers.
9210 * fbsd-tdep.c: Sort headers.
9211 * fbsd-nat.h: Sort headers.
9212 * fbsd-nat.c: Sort headers.
9213 * f-valprint.c: Sort headers.
9214 * f-typeprint.c: Sort headers.
9215 * f-lang.c: Sort headers.
9216 * extension.h: Sort headers.
9217 * extension.c: Sort headers.
9218 * extension-priv.h: Sort headers.
9219 * expprint.c: Sort headers.
9220 * exec.h: Sort headers.
9221 * exec.c: Sort headers.
9222 * exceptions.c: Sort headers.
9223 * event-top.c: Sort headers.
9224 * event-loop.c: Sort headers.
9225 * eval.c: Sort headers.
9226 * elfread.c: Sort headers.
9227 * dwarf2read.h: Sort headers.
9228 * dwarf2read.c: Sort headers.
9229 * dwarf2loc.c: Sort headers.
9230 * dwarf2expr.h: Sort headers.
9231 * dwarf2expr.c: Sort headers.
9232 * dwarf2-frame.c: Sort headers.
9233 * dwarf2-frame-tailcall.c: Sort headers.
9234 * dwarf-index-write.h: Sort headers.
9235 * dwarf-index-write.c: Sort headers.
9236 * dwarf-index-common.c: Sort headers.
9237 * dwarf-index-cache.h: Sort headers.
9238 * dwarf-index-cache.c: Sort headers.
9239 * dummy-frame.c: Sort headers.
9240 * dtrace-probe.c: Sort headers.
9241 * disasm.h: Sort headers.
9242 * disasm.c: Sort headers.
9243 * disasm-selftests.c: Sort headers.
9244 * dictionary.c: Sort headers.
9245 * dicos-tdep.c: Sort headers.
9246 * demangle.c: Sort headers.
9247 * dcache.h: Sort headers.
9248 * dcache.c: Sort headers.
9249 * darwin-nat.h: Sort headers.
9250 * darwin-nat.c: Sort headers.
9251 * darwin-nat-info.c: Sort headers.
9252 * d-valprint.c: Sort headers.
9253 * d-namespace.c: Sort headers.
9254 * d-lang.c: Sort headers.
9255 * ctf.c: Sort headers.
9256 * csky-tdep.c: Sort headers.
9257 * csky-linux-tdep.c: Sort headers.
9258 * cris-tdep.c: Sort headers.
9259 * cris-linux-tdep.c: Sort headers.
9260 * cp-valprint.c: Sort headers.
9261 * cp-support.c: Sort headers.
9262 * cp-namespace.c: Sort headers.
9263 * cp-abi.c: Sort headers.
9264 * corelow.c: Sort headers.
9265 * corefile.c: Sort headers.
9266 * continuations.c: Sort headers.
9267 * completer.h: Sort headers.
9268 * completer.c: Sort headers.
9269 * complaints.c: Sort headers.
9270 * coffread.c: Sort headers.
9271 * coff-pe-read.c: Sort headers.
9272 * cli-out.h: Sort headers.
9273 * cli-out.c: Sort headers.
9274 * charset.c: Sort headers.
9275 * c-varobj.c: Sort headers.
9276 * c-valprint.c: Sort headers.
9277 * c-typeprint.c: Sort headers.
9278 * c-lang.c: Sort headers.
9279 * buildsym.c: Sort headers.
9280 * buildsym-legacy.c: Sort headers.
9281 * build-id.h: Sort headers.
9282 * build-id.c: Sort headers.
9283 * btrace.c: Sort headers.
9284 * bsd-uthread.c: Sort headers.
9285 * breakpoint.h: Sort headers.
9286 * breakpoint.c: Sort headers.
9287 * break-catch-throw.c: Sort headers.
9288 * break-catch-syscall.c: Sort headers.
9289 * break-catch-sig.c: Sort headers.
9290 * blockframe.c: Sort headers.
9291 * block.c: Sort headers.
9292 * bfin-tdep.c: Sort headers.
9293 * bfin-linux-tdep.c: Sort headers.
9294 * bfd-target.c: Sort headers.
9295 * bcache.c: Sort headers.
9296 * ax-general.c: Sort headers.
9297 * ax-gdb.h: Sort headers.
9298 * ax-gdb.c: Sort headers.
9299 * avr-tdep.c: Sort headers.
9300 * auxv.c: Sort headers.
9301 * auto-load.c: Sort headers.
9302 * arm-wince-tdep.c: Sort headers.
9303 * arm-tdep.c: Sort headers.
9304 * arm-symbian-tdep.c: Sort headers.
9305 * arm-pikeos-tdep.c: Sort headers.
9306 * arm-obsd-tdep.c: Sort headers.
9307 * arm-nbsd-tdep.c: Sort headers.
9308 * arm-nbsd-nat.c: Sort headers.
9309 * arm-linux-tdep.c: Sort headers.
9310 * arm-linux-nat.c: Sort headers.
9311 * arm-fbsd-tdep.c: Sort headers.
9312 * arm-fbsd-nat.c: Sort headers.
9313 * arm-bsd-tdep.c: Sort headers.
9314 * arch-utils.c: Sort headers.
9315 * arc-tdep.c: Sort headers.
9316 * arc-newlib-tdep.c: Sort headers.
9317 * annotate.h: Sort headers.
9318 * annotate.c: Sort headers.
9319 * amd64-windows-tdep.c: Sort headers.
9320 * amd64-windows-nat.c: Sort headers.
9321 * amd64-tdep.c: Sort headers.
9322 * amd64-sol2-tdep.c: Sort headers.
9323 * amd64-obsd-tdep.c: Sort headers.
9324 * amd64-obsd-nat.c: Sort headers.
9325 * amd64-nbsd-tdep.c: Sort headers.
9326 * amd64-nbsd-nat.c: Sort headers.
9327 * amd64-nat.c: Sort headers.
9328 * amd64-linux-tdep.c: Sort headers.
9329 * amd64-linux-nat.c: Sort headers.
9330 * amd64-fbsd-tdep.c: Sort headers.
9331 * amd64-fbsd-nat.c: Sort headers.
9332 * amd64-dicos-tdep.c: Sort headers.
9333 * amd64-darwin-tdep.c: Sort headers.
9334 * amd64-bsd-nat.c: Sort headers.
9335 * alpha-tdep.c: Sort headers.
9336 * alpha-obsd-tdep.c: Sort headers.
9337 * alpha-nbsd-tdep.c: Sort headers.
9338 * alpha-mdebug-tdep.c: Sort headers.
9339 * alpha-linux-tdep.c: Sort headers.
9340 * alpha-linux-nat.c: Sort headers.
9341 * alpha-bsd-tdep.c: Sort headers.
9342 * alpha-bsd-nat.c: Sort headers.
9343 * aix-thread.c: Sort headers.
9344 * agent.c: Sort headers.
9345 * addrmap.c: Sort headers.
9346 * ada-varobj.c: Sort headers.
9347 * ada-valprint.c: Sort headers.
9348 * ada-typeprint.c: Sort headers.
9349 * ada-tasks.c: Sort headers.
9350 * ada-lang.c: Sort headers.
9351 * aarch64-tdep.c: Sort headers.
9352 * aarch64-ravenscar-thread.c: Sort headers.
9353 * aarch64-newlib-tdep.c: Sort headers.
9354 * aarch64-linux-tdep.c: Sort headers.
9355 * aarch64-linux-nat.c: Sort headers.
9356 * aarch64-fbsd-tdep.c: Sort headers.
9357 * aarch64-fbsd-nat.c: Sort headers.
9358 * aarch32-linux-nat.c: Sort headers.
9359
9360 2019-04-04 Tom Tromey <tom@tromey.com>
9361
9362 * varobj.c (varobj_create): Update.
9363 * rust-exp.y (struct rust_parser) <update_innermost_block,
9364 lookup_symbol>: New methods.
9365 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
9366 Rename.
9367 (rust_parser::rust_lookup_type)
9368 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9369 * printcmd.c (display_command, do_one_display): Update.
9370 * parser-defs.h (struct parser_state) <parser_state>: Add
9371 "tracker" parameter.
9372 (block_tracker): New member.
9373 (class innermost_block_tracker) <innermost_block_tracker>: Add
9374 "types" parameter.
9375 <reset>: Remove method.
9376 (innermost_block): Don't declare.
9377 (null_post_parser): Update.
9378 * parse.c (innermost_block): Remove global.
9379 (write_dollar_variable): Update.
9380 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
9381 Remove "tracker_types" parameter.
9382 (parse_expression): Add "tracker" parameter.
9383 (parse_expression_for_completion): Update.
9384 (null_post_parser): Add "tracker" parameter.
9385 * p-exp.y: Update rules.
9386 * m2-exp.y: Update rules.
9387 * language.h (struct language_defn) <la_post_parser>: Add
9388 "tracker" parameter.
9389 * go-exp.y: Update rules.
9390 * f-exp.y: Update rules.
9391 * expression.h (parse_expression, parse_exp_1): Add "tracker"
9392 parameter.
9393 * d-exp.y: Update rules.
9394 * c-exp.y: Update rules.
9395 * breakpoint.c (set_breakpoint_condition): Create an
9396 innermost_block_tracker.
9397 (watch_command_1): Likewise.
9398 * ada-lang.c (resolve): Add "tracker" parameter.
9399 (resolve_subexp): Likewise.
9400 * ada-exp.y (write_var_from_sym): Update.
9401
9402 2019-04-04 Tom Tromey <tom@tromey.com>
9403
9404 * type-stack.h: New file.
9405 * type-stack.c: New file.
9406 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
9407 type-stack.h.
9408 (insert_into_type_stack, insert_type, push_type, push_type_int)
9409 (insert_type_address_space, pop_type, pop_type_int)
9410 (pop_typelist, pop_type_stack, append_type_stack)
9411 (push_type_stack, get_type_stack, push_typelist)
9412 (follow_type_instance_flags, follow_types): Don't declare.
9413 * parse.c (type_stack): Remove global.
9414 (parse_exp_in_context): Update.
9415 (insert_into_type_stack, insert_type, push_type, push_type_int)
9416 (insert_type_address_space, pop_type, pop_type_int)
9417 (pop_typelist, pop_type_stack, append_type_stack)
9418 (push_type_stack, get_type_stack, push_typelist)
9419 (follow_type_instance_flags, follow_types): Remove (moved to
9420 type-stack.c).
9421 * f-exp.y (type_stack): New global.
9422 Update rules.
9423 (push_kind_type, f_parse): Update.
9424 * d-exp.y (type_stack): New global.
9425 Update rules.
9426 (d_parse): Update.
9427 * c-exp.y (struct c_parse_state) <type_stack>: New member.
9428 Update rules.
9429 * Makefile.in (COMMON_SFILES): Add type-stack.c.
9430 (HFILES_NO_SRCDIR): Add type-stack.h.
9431
9432 2019-04-04 Tom Tromey <tom@tromey.com>
9433
9434 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
9435 (rust_parser::convert_ast_to_expression, rust_parse)
9436 (rust_lex_test_completion, rust_lex_tests): Update.
9437 * parser-defs.h (struct expr_completion_state): New.
9438 (struct parser_state) <parser_state>: Add completion parameter.
9439 <mark_struct_expression, mark_completion_tag>: New methods.
9440 <parse_completion, m_completion_state>: New members.
9441 (prefixify_expression, null_post_parser): Update.
9442 (mark_struct_expression, mark_completion_tag): Don't declare.
9443 * parse.c (parse_completion, expout_last_struct)
9444 (expout_tag_completion_type, expout_completion_name): Remove
9445 globals.
9446 (parser_state::mark_struct_expression)
9447 (parser_state::mark_completion_tag): Now methods.
9448 (prefixify_expression): Add last_struct parameter.
9449 (prefixify_subexp): Likewise.
9450 (parse_exp_1): Update.
9451 (parse_exp_in_context): Add cstate parameter. Update.
9452 (parse_expression_for_completion): Create an
9453 expr_completion_state.
9454 (null_post_parser): Add "completion" parameter.
9455 * p-exp.y: Update rules.
9456 (yylex): Update.
9457 * language.h (struct language_defn) <la_post_parser>: Add
9458 "completing" parameter.
9459 * go-exp.y: Update rules.
9460 (lex_one_token): Update.
9461 * expression.h (parse_completion): Don't declare.
9462 * d-exp.y: Update rules.
9463 (lex_one_token): Update rules.
9464 * c-exp.y: Update rules.
9465 (lex_one_token): Update.
9466 * ada-lang.c (resolve): Add "parse_completion" parameter.
9467 (resolve_subexp): Likewise.
9468 (ada_resolve_function): Likewise.
9469
9470 2019-04-04 Tom Tromey <tom@tromey.com>
9471
9472 * parser-defs.h (struct parser_state) <start_arglist,
9473 end_arglist>: New methods.
9474 <arglist_len, m_funcall_chain>: New members.
9475 (arglist_len, start_arglist, end_arglist): Don't declare.
9476 * parse.c (arglist_len, funcall_chain): Remove global.
9477 (start_arglist, end_arglist): Remove functions.
9478 (parse_exp_in_context): Update.
9479 * p-exp.y: Update rules.
9480 * m2-exp.y: Update rules.
9481 * go-exp.y: Update rules.
9482 * f-exp.y: Update rules.
9483 * d-exp.y: Update rules.
9484 * c-exp.y: Update rules.
9485
9486 2019-04-04 Tom Tromey <tom@tromey.com>
9487
9488 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
9489 lex_operator, push_back>: New methods.
9490 Update all rules.
9491 (rust_parser::lex_hex, lex_escape): Rename and update.
9492 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
9493 (rust_parser::lex_operator): Rename and update.
9494 (rust_parser::lex_number, rustyylex, rustyyerror)
9495 (rust_lex_test_init, rust_lex_test_sequence)
9496 (rust_lex_test_push_back, rust_lex_tests): Update.
9497 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
9498 parameter.
9499 <lexptr, prev_lexptr>: New members.
9500 (lexptr, prev_lexptr): Don't declare.
9501 * parse.c (lexptr, prev_lexptr): Remove globals.
9502 (parse_exp_in_context): Update.
9503 * p-exp.y (yylex, yyerror): Update.
9504 * m2-exp.y (parse_number, yylex, yyerror): Update.
9505 * go-exp.y (lex_one_token, yyerror): Update.
9506 * f-exp.y (match_string_literal, yylex, yyerror): Update.
9507 * d-exp.y (lex_one_token, yyerror): Update.
9508 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
9509 (lex_one_token, yyerror): Update.
9510 * ada-lex.l (YY_INPUT): Update.
9511 (rewind_to_char): Update.
9512 * ada-exp.y (yyerror): Update.
9513
9514 2019-04-04 Tom Tromey <tom@tromey.com>
9515
9516 * rust-exp.y (rustyylex, rust_lex_tests): Update.
9517 * parser-defs.h (struct parser_state) <parser_state>: Add new
9518 parameter.
9519 <comma_terminates>: New member.
9520 (comma_terminates): Don't declare global.
9521 * parse.c (comma_terminates): Remove global.
9522 (parse_exp_in_context): Update.
9523 * p-exp.y (yylex): Update.
9524 * m2-exp.y (yylex): Update.
9525 * go-exp.y (lex_one_token): Update.
9526 * f-exp.y (yylex): Update.
9527 * d-exp.y (lex_one_token): Update.
9528 * c-exp.y (lex_one_token): Update.
9529 * ada-lex.l: Update.
9530
9531 2019-04-04 Tom Tromey <tom@tromey.com>
9532
9533 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
9534 (rustyylex, rust_lex_test_init, rust_lex_test_one)
9535 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
9536 * parser-defs.h (paren_depth): Don't declare.
9537 * parse.c (paren_depth): Remove global.
9538 (parse_exp_in_context): Update.
9539 * p-exp.y (paren_depth): New global.
9540 (pascal_parse): Initialize it.
9541 * m2-exp.y (paren_depth): New global.
9542 (m2_parse): Initialize it.
9543 * go-exp.y (paren_depth): New global.
9544 (go_parse): Initialize it.
9545 * f-exp.y (paren_depth): New global.
9546 (f_parse): Initialize it.
9547 * d-exp.y (paren_depth): New global.
9548 (d_parse): Initialize it.
9549 * c-exp.y (paren_depth): New global.
9550 (c_parse): Initialize it.
9551 * ada-lex.l (paren_depth): New global.
9552 (lexer_init): Initialize it.
9553
9554 2019-04-04 Tom Tromey <tom@tromey.com>
9555
9556 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
9557 (rust_parser::convert_ast_to_type)
9558 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9559 * parser-defs.h (struct parser_state) <parser_state>: Add
9560 parameters. Initialize new members.
9561 <expression_context_block, expression_context_pc>: New members.
9562 * parse.c (expression_context_block, expression_context_pc):
9563 Remove globals.
9564 (parse_exp_in_context): Update.
9565 * p-exp.y: Update all rules.
9566 (yylex): Update.
9567 * m2-exp.y: Update all rules.
9568 (yylex): Update.
9569 * go-exp.y (yylex): Update.
9570 * f-exp.y (yylex): Update.
9571 * d-exp.y: Update all rules.
9572 (yylex): Update.
9573 * c-exp.y: Update all rules.
9574 (lex_one_token, classify_name, yylex, c_parse): Update.
9575 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
9576
9577 2019-04-04 Tom Tromey <tom@tromey.com>
9578
9579 * gdbarch.h, gdbarch.c: Rebuild.
9580 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
9581 * stap-probe.h:
9582 (struct stap_parse_info): Replace "parser_state" with
9583 "expr_builder".
9584 * parser-defs.h (struct expr_builder): Rename from "parser_state".
9585 (parser_state): New class.
9586 * parse.c (expr_builder): Rename.
9587 (expr_builder::release): Rename.
9588 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
9589 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
9590 (write_exp_elt_longcst, write_exp_elt_floatcst)
9591 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
9592 (write_exp_string_vector, write_exp_bitstring)
9593 (write_exp_msymbol, mark_struct_expression)
9594 (write_dollar_variable)
9595 (insert_type_address_space, increase_expout_size): Replace
9596 "parser_state" with "expr_builder".
9597 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
9598 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
9599 "parser_state" with "expr_builder".
9600
9601 2019-04-04 Tom Tromey <tom@tromey.com>
9602
9603 * rust-exp.y: Replace "parse_language" with method call.
9604 * p-exp.y:
9605 (yylex): Replace "parse_language" with method call.
9606 * m2-exp.y:
9607 (yylex): Replace "parse_language" with method call.
9608 * go-exp.y (classify_name): Replace "parse_language" with method
9609 call.
9610 * f-exp.y (yylex): Replace "parse_language" with method call.
9611 * d-exp.y (lex_one_token): Replace "parse_language" with method
9612 call.
9613 * c-exp.y:
9614 (lex_one_token, classify_name, yylex): Replace "parse_language"
9615 with method call.
9616 * ada-exp.y (find_primitive_type, type_char)
9617 (type_system_address): Replace "parse_language" with method call.
9618
9619 2019-04-04 Tom Tromey <tom@tromey.com>
9620
9621 * rust-exp.y: Replace "parse_gdbarch" with method call.
9622 * parse.c (write_dollar_variable, insert_type_address_space):
9623 Replace "parse_gdbarch" with method call.
9624 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
9625 call.
9626 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
9627 call.
9628 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
9629 "parse_gdbarch" with method call.
9630 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
9631 with method call.
9632 * f-exp.y (parse_type, parse_f_type, yylex): Replace
9633 "parse_gdbarch" with method call.
9634 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
9635 "parse_gdbarch" with method call.
9636 * c-exp.y (parse_type, parse_number, classify_name): Replace
9637 "parse_gdbarch" with method call.
9638 * ada-lex.l: Replace "parse_gdbarch" with method call.
9639 * ada-exp.y (parse_type, find_primitive_type, type_char)
9640 (type_system_address): Replace "parse_gdbarch" with method call.
9641
9642 2019-04-04 Tom Tromey <tom@tromey.com>
9643
9644 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
9645 * stap-probe.c (stap_parse_argument): Update.
9646 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
9647 initial_size parameter.
9648 * rust-exp.y (rust_lex_tests): Update.
9649 * parse.c (parser_state): Update.
9650 (parse_exp_in_context): Update.
9651 * parser-defs.h (struct parser_state) <parser_state>: Remove
9652 "initial_size" parameter.
9653
9654 2019-04-04 Tom Tromey <tom@tromey.com>
9655
9656 * parser-defs.h (increase_expout_size): Don't declare.
9657 * parse.c (increase_expout_size): Now static.
9658
9659 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
9660
9661 * gnu-nat.c (gnu_nat_target::wait): Fix
9662 target_waitstatus_to_string call.
9663
9664 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9665
9666 * eval.c (evaluate_subexp_standard): Handle internal functions
9667 during Fortran function call handling.
9668
9669 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9670
9671 * NEWS: Mention new internal functions.
9672 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
9673 (read_base_type): Use dwarf2_init_complex_target_type.
9674 * value.c (creal_internal_fn): New function.
9675 (cimag_internal_fn): New function.
9676 (_initialize_values): Register new internal functions.
9677
9678 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9679
9680 * infrun.c (stop_all_threads): If debug_infrun, always
9681 trace the wait status after wait_one, using
9682 target_waitstatus_to_string and target_pid_to_str.
9683 (handle_inferior_event): Replace various trace of
9684 wait status kind by a single trace.
9685 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
9686 wait status kind image by target_waitstatus_to_string.
9687 * target/waitstatus.c (target_waitstatus_to_string): Fix
9688 obsolete comment.
9689
9690 2019-04-01 Tom Tromey <tromey@adacore.com>
9691
9692 PR symtab/23331:
9693 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
9694
9695 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
9696 Pedro Alves <palves@redhat.com>
9697
9698 * top.c (quit_force): Call 'finalize_values'.
9699 * value.c (finalize_values): New function.
9700 * value.h (finalize_values): Declare.
9701
9702 2019-03-30 Eli Zaretskii <eliz@gnu.org>
9703
9704 * NEWS: Announce $_gdb_major and $_gdb_minor.
9705
9706 * top.c (init_gdb_version_vars): New function.
9707 (gdb_init): Call init_gdb_version_vars.
9708
9709 2019-03-29 Tom Tromey <tromey@adacore.com>
9710
9711 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
9712 help text. Remove dead code.
9713
9714 2019-03-29 Keith Seitz <keiths@redhat.com>
9715
9716 From Siddhesh Poyarekar:
9717 * f-lang.h (f77_get_upperbound): Return LONGEST.
9718 (f77_get_lowerbound): Likewise.
9719 * f-typeprint.c (f_type_print_varspec_suffix): Expand
9720 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
9721 print them.
9722 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
9723 plongest to format print it.
9724 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
9725 (f77_get_upperbound): Likewise.
9726 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
9727 LOWER_BOUND to LONGEST.
9728 (f77_create_arrayprint_offset_tbl): Likewise.
9729
9730 2019-03-29 Keith Seitz <keiths@redhat.com>
9731
9732 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
9733 %s/pulongest for TYPE_LENGTH instead of %d in format
9734 strings.
9735 * ada-typerint.c (ada_print_type): Likewise.
9736 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
9737 * compile/compile-c-support.c (generate_register_struct): Likewise.
9738 * gdbtypes.c (recursive_dump_type): Likewise.
9739 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
9740 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
9741 instead of %d in format strings.
9742 * riscv-tdep.c (riscv_type_alignment): Cast second argument
9743 to std::min to ULONGEST.
9744 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
9745 instead of %d in format strings.
9746 * tracepoint.c (info_scope_command): Likewise.
9747 * typeprint.c (print_offset_data::update)
9748 (print_offset_data::finish): Likewise.
9749 * xtensa-tdep.c (xtensa_store_return_value)
9750 (xtensa_push_dummy_call): Likewise.
9751
9752 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
9753
9754 * windows-nat.c (display_selector): Fixed format specifications
9755 for 64-bit Cygwin.
9756
9757 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9758
9759 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
9760
9761 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
9762
9763 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
9764 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
9765 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
9766 (nios2_linux_init_abi): Install it.
9767
9768 2019-03-28 Alan Hayward <alan.hayward@arm.com>
9769
9770 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
9771
9772 2019-03-28 Alan Hayward <alan.hayward@arm.com>
9773
9774 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
9775
9776 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9777 Tom Tromey <tromey@adacore.com>
9778
9779 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
9780
9781 2019-03-26 Joel Brobecker <brobecker@adacore.com>
9782
9783 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
9784 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
9785 method to compute the bounds of range types. Also print "[evaluated]"
9786 if the bounds' values come from a dynamic evaluation.
9787
9788 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
9789
9790 * cp-valprint.c (cp_print_value_fields): Don't print trailing
9791 whitespace when pretty printing is on.
9792
9793 2019-03-26 Alan Hayward <alan.hayward@arm.com>
9794
9795 * ppc-linux-nat.c: Add include.
9796
9797 2019-03-26 Alan Hayward <alan.hayward@arm.com>
9798
9799 * NEWS: Mention AArch64 Pointer Authentication.
9800
9801 2019-03-26 Alan Hayward <alan.hayward@arm.com>
9802
9803 * arm-linux-nat.c: Add include.
9804
9805 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
9806
9807 * source-cache.c (source_cache::get_source_lines): Re-read
9808 fullname after calling open_source_file.
9809
9810 2019-03-25 John Baldwin <jhb@FreeBSD.org>
9811
9812 * NEWS: Mention TLS support for FreeBSD.
9813
9814 2019-03-25 Tom Tromey <tromey@adacore.com>
9815
9816 * minsyms.c (BUNCH_SIZE): Update comment.
9817 (~minimal_symbol_reader): Remove old comment.
9818 (compact_minimal_symbols): Update comment.
9819 (minimal_symbol_reader::install): Remove old comment. Update
9820 other comments.
9821
9822 2019-03-25 Alan Hayward <alan.hayward@arm.com>
9823
9824 * s390-linux-nat.c: Add include.
9825
9826 2019-03-25 Alan Hayward <alan.hayward@arm.com>
9827
9828 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
9829 Call linux_get_hwcap.
9830 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
9831 Likewise.
9832 (aarch64_linux_get_hwcap): Remove function.
9833 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
9834 declaration.
9835 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
9836 linux_get_hwcap.
9837 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
9838 * linux-tdep.c (linux_get_hwcap): Add function.
9839 (linux_get_hwcap2): Likewise.
9840 * linux-tdep.h (linux_get_hwcap): Add declaration.
9841 (linux_get_hwcap2): Likewise.
9842 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
9843 (ppc_linux_get_hwcap2): Likewise.
9844 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
9845 linux_get_hwcap.
9846 (ppc_linux_nat_target::insert_watchpoint): Likewise.
9847 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
9848 (ppc_linux_nat_target::read_description): Likewise.
9849 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
9850 * s390-linux-nat.c: Likewise.
9851 * s390-linux-tdep.c (s390_core_read_description): Likewise.
9852
9853 2019-03-24 Tom Tromey <tom@tromey.com>
9854
9855 * ada-lang.c (standard_lookup): Simplify initialization.
9856 (ada_lookup_symbol_nonlocal): Simplify return.
9857 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
9858 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
9859 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
9860 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
9861 initialization.
9862 * solib.c (solib_global_lookup): Simplify.
9863 * symtab.c (null_block_symbol): Remove.
9864 (symbol_cache_lookup): Simplify returns.
9865 (lookup_language_this): Simplify returns.
9866 (lookup_symbol_aux): Simplify return.
9867 (lookup_local_symbol): Simplify returns.
9868 (lookup_global_symbol_from_objfile): Simplify return.
9869 (lookup_symbol_in_objfile_symtabs)
9870 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
9871 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
9872 (lookup_static_symbol, lookup_global_symbol): Simplify return.
9873 * cp-namespace.c (cp_lookup_bare_symbol)
9874 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
9875 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
9876 (cp_lookup_nested_symbol): Don't use null_block_symbol.
9877 (cp_lookup_symbol_via_imports): Simplify initialization.
9878 (find_symbol_in_baseclass): Likewise.
9879 * symtab.h (null_block_symbol): Remove.
9880 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
9881 (d_lookup_nested_symbol, d_lookup_symbol_imports)
9882 (d_lookup_symbol_module): Likewise.
9883 (find_symbol_in_baseclass): Simplify initialization.
9884
9885 2019-03-24 Tom Tromey <tom@tromey.com>
9886
9887 * expression.h: Don't include symtab.h.
9888 (struct block): Forward declare.
9889
9890 2019-03-24 Tom Tromey <tom@tromey.com>
9891
9892 * c-exp.y (typebase): Remove casts.
9893 * gdbtypes.c (lookup_unsigned_typename, )
9894 (lookup_signed_typename): Remove cast.
9895 * eval.c (parse_to_comma_and_eval): Remove cast.
9896 * parse.c (write_dollar_variable): Remove cast.
9897 * block.h (struct block) <superblock>: Now const.
9898 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
9899 * psymtab.c (psym_map_matching_symbols): Make "block" const.
9900 (map_block): Make "block" const.
9901 * symfile.h (struct quick_symbol_functions)
9902 <map_matching_symbols>: Constify block argument to "callback".
9903 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
9904 const.
9905 (find_pc_sect_compunit_symtab): Make "b" const.
9906 (find_symbol_at_address): Likewise.
9907 (search_symbols): Likewise.
9908 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
9909 (dw2_debug_names_lookup_symbol): Likewise.
9910 (dw2_map_matching_symbols): Update.
9911 * p-valprint.c (pascal_val_print): Remove "block".
9912 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
9913 (aux_add_nonlocal_symbols): Make "block" const.
9914 (resolve_subexp): Remove cast.
9915 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
9916 const.
9917 (iterate_over_file_blocks): Likewise.
9918 * f-exp.y (%union) <bval>: Remove.
9919 * coffread.c (patch_opaque_types): Make "b" const.
9920 * spu-tdep.c (spu_catch_start): Make "block" const.
9921 * c-valprint.c (print_unpacked_pointer): Remove "block".
9922 * symmisc.c (dump_symtab_1): Make "b" const.
9923 (block_depth): Make "block" const.
9924 * d-exp.y (%union) <bval>: Remove.
9925 * cp-support.h (cp_lookup_rtti_type): Update.
9926 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
9927 * psymtab.c (psym_lookup_symbol): Make "block" const.
9928 (maintenance_check_psymtabs): Make "b" const.
9929 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
9930 (enumerate_locals, enumerate_args): Update.
9931 * python/py-symtab.c (stpy_global_block): Make "block" const.
9932 (stpy_static_block): Likewise.
9933 * inline-frame.c (block_starting_point_at): Make "new_block"
9934 const.
9935 * block.c (find_block_in_blockvector): Make return type const.
9936 (blockvector_for_pc_sect): Make "b" const.
9937 (find_block_in_blockvector): Make "b" const.
9938
9939 2019-03-23 Tom Tromey <tom@tromey.com>
9940
9941 * varobj.c (varobj_create): Update.
9942 * symfile.c (clear_symtab_users): Don't reset innermost_block.
9943 * printcmd.c (display_command, do_one_display): Don't reset
9944 innermost_block.
9945 * parser-defs.h (enum innermost_block_tracker_type): Move to
9946 expression.h.
9947 (innermost_block): Update comment.
9948 * parse.c (parse_exp_1): Add tracker_types parameter.
9949 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
9950 tracker_types parameter. Reset innermost_block.
9951 (parse_exp_in_context): Remove.
9952 (parse_expression_for_completion): Update.
9953 * objfiles.c (~objfile): Don't reset expression_context_block or
9954 innermost_block.
9955 * expression.h (enum innermost_block_tracker_type): Move from
9956 parser-defs.h.
9957 (parse_exp_1): Add tracker_types parameter.
9958 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
9959 reset innermost_block.
9960
9961 2019-03-23 Tom Tromey <tom@tromey.com>
9962
9963 * objfiles.h: Include bcache.h.
9964
9965 2019-03-23 Tom Tromey <tom@tromey.com>
9966
9967 * linespec.c (get_current_search_block): Use
9968 scoped_restore_current_language.
9969 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
9970
9971 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9972 Jiong Wang <jiong.wang@arm.com>
9973
9974 * aarch64-linux-tdep.c
9975 (aarch64_linux_iterate_over_regset_sections): Check for pauth
9976 section.
9977 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
9978
9979 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9980 Jiong Wang <jiong.wang@arm.com>
9981
9982 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
9983 instructions.
9984 (aarch64_analyze_prologue_test): Add PACIASP test.
9985 (aarch64_prologue_prev_register): Unmask PC value.
9986
9987 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9988 Jiong Wang <jiong.wang@arm.com>
9989
9990 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
9991 (aarch64_dwarf2_prev_register): Unmask PC value.
9992 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
9993 (aarch64_execute_dwarf_cfa_vendor_op): Check for
9994 DW_CFA_AARCH64_negate_ra_state.
9995 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
9996
9997 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9998 Jiong Wang <jiong.wang@arm.com>
9999
10000 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
10001 registers.
10002 (aarch64_pseudo_register_name): Likewise.
10003 (aarch64_pseudo_register_type): Likewise.
10004 (aarch64_pseudo_register_reggroup_p): Likewise.
10005 (aarch64_gdbarch_init): Add pauth registers.
10006 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
10007 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
10008 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
10009 (struct gdbarch_tdep): Add regnum for ra_state.
10010
10011 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10012 Jiong Wang <jiong.wang@arm.com>
10013
10014 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
10015
10016 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10017 Jiong Wang <jiong.wang@arm.com>
10018
10019 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
10020 function.
10021 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
10022 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
10023 (aarch64_gdbarch_init): Add puth registers.
10024 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
10025 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
10026 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
10027
10028 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10029 Jiong Wang <jiong.wang@arm.com>
10030
10031 * aarch64-linux-nat.c
10032 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
10033 * aarch64-linux-tdep.c
10034 (aarch64_linux_core_read_description): Likewise.
10035 (aarch64_linux_get_hwcap): New function.
10036 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
10037 (aarch64_linux_get_hwcap): New declaration.
10038
10039 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10040 Jiong Wang <jiong.wang@arm.com>
10041
10042 * aarch64-linux-nat.c
10043 (aarch64_linux_nat_target::read_description): Add pauth param.
10044 * aarch64-linux-tdep.c
10045 (aarch64_linux_core_read_description): Likewise.
10046 * aarch64-tdep.c (struct target_desc): Add in pauth.
10047 (aarch64_read_description): Add pauth param.
10048 (aarch64_gdbarch_init): Likewise.
10049 * aarch64-tdep.h (aarch64_read_description): Likewise.
10050 * arch/aarch64.c (aarch64_create_target_description): Likewise.
10051 * arch/aarch64.h (aarch64_create_target_description): Likewise.
10052 * features/Makefile: Add new files.
10053 * features/aarch64-pauth.c: New file.
10054 * features/aarch64-pauth.xml: New file.
10055
10056 2019-03-20 Tom Tromey <tromey@adacore.com>
10057
10058 * infrun.c (handle_inferior_event): Rename from
10059 handle_inferior_event_1. Create a scoped_value_mark.
10060 (handle_inferior_event): Remove.
10061
10062 2019-03-19 Tom Tromey <tromey@adacore.com>
10063
10064 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
10065 * infrun.h (print_stop_event): Add "displays" parameter.
10066 * infrun.c (print_stop_event): Add "displays" parameter.
10067
10068 2019-03-19 Pedro Alves <palves@redhat.com>
10069
10070 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
10071 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
10072 to -1. Fix TABs vs spaces.
10073 (tui_ui_out::tui_ui_out): Don't initialize fields here.
10074 * tui/tui-out.h (tui_ui_out) Add intro comments.
10075 <m_line, m_start_of_line>: In-class initialize, and add describing
10076 comment.
10077
10078 2019-03-18 Alan Hayward <alan.hayward@arm.com>
10079
10080 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
10081 variable names.
10082 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
10083
10084 2019-03-18 Pedro Alves <palves@redhat.com>
10085 Eli Zaretskii <eliz@gnu.org>
10086
10087 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
10088 m_line and m_start_of_line.
10089
10090 2019-03-18 Eli Zaretskii <eliz@gnu.org>
10091
10092 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
10093 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
10094 it returns a newline. This fixes a regression in TU mode, whereby
10095 the next line is output on the same screen line as the user input.
10096
10097 2019-03-18 Tom Tromey <tromey@adacore.com>
10098
10099 * minsyms.c (minimal_symbol_reader::install): Remove call to
10100 obstack_blank.
10101
10102 2019-03-18 Pedro Alves <palves@redhat.com>
10103
10104 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
10105 New globals.
10106 (apply_style): New, factored out from ...
10107 (apply_ansi_escape): ... this. Handle reverse video mode.
10108 (tui_set_reverse_mode): New function.
10109 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
10110 * tui/tui-winsource.c (tui_show_source_line): Use
10111 tui_set_reverse_mode instead of setting A_STANDOUT.
10112 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
10113 New setter methods.
10114
10115 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
10116
10117 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
10118 Handle tabs.
10119
10120 2019-03-18 Tom Tromey <tromey@adacore.com>
10121
10122 * ada-lang.c (empty_array): Add "high" parameter.
10123 (ada_evaluate_subexp): Update.
10124
10125 2019-03-17 Sergei Trofimovich <siarheit@google.com>
10126
10127 * unittests/string_view-selftests.c: Define
10128 _initialize_string_view_selftests unconditionally.
10129
10130 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10131
10132 PR gdb/24350
10133 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
10134
10135 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10136
10137 PR gdb/24351
10138 * windows-nat.c (display_selector): Fix format specifiers.
10139
10140 2019-03-17 Eli Zaretskii <eliz@gnu.org>
10141
10142 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
10143 tui_refill_source_window instead of tui_refresh_win, to update the
10144 current execution line. This fixes redisplay of the current line
10145 when stepping through the code with "next" or "step".
10146
10147 2019-03-16 Eli Zaretskii <eliz@gnu.org>
10148
10149 * source-cache.c (source_cache::get_source_lines): Call
10150 find_source_lines to initialize s->nlines. This fixes vertical
10151 scrolling of TUI source window when the DOWN arrow is pressed.
10152
10153 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10154
10155 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
10156 linux-thread-db.c (_initialize_thread_db): Likewise.
10157
10158 2019-03-16 Eli Zaretskii <eliz@gnu.org>
10159
10160 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
10161 wclrtoeol in tui_show_source_line". This reverts changes made in
10162 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
10163
10164 2019-03-15 Tom Tromey <tom@tromey.com>
10165
10166 * symtab.h (struct minimal_symbol): Derive from
10167 general_symbol_info.
10168 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
10169 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10170 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10171 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10172 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
10173 (MSYMBOL_SEARCH_NAME): Update.
10174 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
10175 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
10176 * minsyms.c (minimal_symbol_reader::record_full): Update.
10177
10178 2019-03-15 Tom Tromey <tom@tromey.com>
10179
10180 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
10181
10182 2019-03-15 Tom Tromey <tom@tromey.com>
10183
10184 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
10185 unique_xmalloc_ptr.
10186 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
10187 Update.
10188 * minsyms.c (lookup_minimal_symbol_by_pc_section)
10189 (build_minimal_symbol_hash_tables)
10190 (minimal_symbol_reader::install): Update.
10191
10192 2019-03-15 Tom Tromey <tom@tromey.com>
10193
10194 * symtab.c (create_demangled_names_hash): Update.
10195 (symbol_set_names): Update.
10196 * objfiles.h (struct objfile_per_bfd_storage)
10197 <demangled_names_hash>: Now an htab_up.
10198 * objfiles.c (objfile_per_bfd_storage): Simplify.
10199
10200 2019-03-15 Tom Tromey <tom@tromey.com>
10201
10202 * objfiles.h (struct objfile_per_bfd_storage): Declare
10203 destructor.
10204 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
10205 New.
10206 (get_objfile_bfd_data): Use new. Don't initialize
10207 language_of_main.
10208 (free_objfile_per_bfd_storage): Remove.
10209 (objfile_bfd_data_free, objfile::~objfile): Use delete.
10210
10211 2019-03-15 Tom Tromey <tom@tromey.com>
10212
10213 * symfile.c (reread_symbols): Update.
10214 * objfiles.c (objfile::objfile): Update.
10215 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
10216 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
10217 comment.
10218 (minimal_symbol_reader::install): Update.
10219 (terminate_minimal_symbol_table): Remove.
10220 * jit.c (jit_object_close_impl): Update.
10221
10222 2019-03-15 Tom Tromey <tom@tromey.com>
10223
10224 * minsyms.c (minimal_symbol_reader::record_full): Remove some
10225 initializations.
10226
10227 2019-03-15 Tom Tromey <tom@tromey.com>
10228
10229 * objfiles.h (struct objfile_per_bfd_storage)
10230 <demangled_hash_languages>: Now a bitset.
10231 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
10232 (lookup_minimal_symbol): Update.
10233
10234 2019-03-15 Tom Tromey <tom@tromey.com>
10235
10236 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
10237 Don't return the symbol.
10238 * coffread.c (record_minimal_symbol): Use record_full.
10239
10240 2019-03-14 Eli Zaretskii <eliz@gnu.org>
10241
10242 The MS-Windows port of ncurses fails to switch to a color pair if
10243 one or both of the colors are the implicit default colors. This
10244 change records the default colors when TUI is initialized, and
10245 then specifies them explicitly when a color pair uses the default
10246 colors. This allows color styling in TUI mode on MS-Windows.
10247
10248 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
10249 ncurses_norm_attr.
10250 (tui_initialize_io) [__MINGW32__]: Record the default terminal
10251 colors in ncurses_norm_attr.
10252 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
10253 "none", replace it with the default color recorded in
10254 ncurses_norm_attr.
10255
10256 2019-03-14 Tom Tromey <tromey@adacore.com>
10257
10258 * source-cache.h (class source_cache) <get_source_lines>: Return
10259 std::string.
10260 * source-cache.c (source_cache::extract_lines): Handle case where
10261 first_pos==npos. Return std::string.
10262 (source_cache::get_source_lines): Update.
10263
10264 2019-03-14 Tom Tromey <tromey@adacore.com>
10265
10266 * NEWS: Add item for "style sources" commands.
10267 * source-cache.c (source_cache::get_source_lines): Check
10268 source_styling.
10269 * cli/cli-style.c (source_styling): New global.
10270 (_initialize_cli_style): Add "style sources" commands.
10271 (show_style_sources): New function.
10272 * cli/cli-style.h (source_styling): Declare.
10273
10274 2019-03-14 Pedro Alves <palves@redhat.com>
10275 Tom Tromey <tromey@adacore.com>
10276
10277 * tui/tui-winsource.h (tui_refill_source_window): Declare.
10278 * tui/tui-winsource.c (tui_refill_source_window): New function,
10279 from...
10280 (tui_horizontal_source_scroll): ... here. Move some logic.
10281 * cli/cli-style.c (set_style_enabled): Notify new observable.
10282 * tui/tui-hooks.c (tui_redisplay_source): New function.
10283 (tui_attach_detach_observers): Attach or detach
10284 tui_redisplay_source.
10285 * observable.h (source_styling_changed): New observable.
10286 * observable.c: Define source_styling_changed observable.
10287
10288 2019-03-13 Tom Tromey <tromey@adacore.com>
10289
10290 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
10291 (i386_gnu_nat_target::store_registers): Update.
10292 * target-debug.h (target_debug_print_std_string): New macro.
10293 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10294 * windows-tdep.c (display_one_tib): Update.
10295 * tui/tui-stack.c (tui_make_status_line): Update.
10296 * top.c (print_inferior_quit_action): Update.
10297 * thread.c (thr_try_catch_cmd): Update.
10298 (add_thread_with_info): Update.
10299 (thread_target_id_str): Update.
10300 (thr_try_catch_cmd): Update.
10301 (thread_command): Update.
10302 (thread_find_command): Update.
10303 * record-btrace.c (record_btrace_target::info_record)
10304 (record_btrace_resume_thread, record_btrace_target::resume)
10305 (record_btrace_cancel_resume, record_btrace_step_thread)
10306 (record_btrace_target::wait, record_btrace_target::wait)
10307 (record_btrace_target::wait, record_btrace_target::stop): Update.
10308 * progspace.c (print_program_space): Update.
10309 * process-stratum-target.c
10310 (process_stratum_target::thread_address_space): Update.
10311 * linux-fork.c (linux_fork_mourn_inferior)
10312 (detach_checkpoint_command, info_checkpoints_command)
10313 (linux_fork_context): Update.
10314 (linux_fork_detach): Update.
10315 (class scoped_switch_fork_info): Update.
10316 (delete_checkpoint_command): Update.
10317 * infrun.c (follow_fork_inferior): Update.
10318 (follow_fork_inferior): Update.
10319 (proceed_after_vfork_done): Update.
10320 (handle_vfork_child_exec_or_exit): Update.
10321 (follow_exec): Update.
10322 (displaced_step_prepare_throw): Update.
10323 (displaced_step_restore): Update.
10324 (start_step_over): Update.
10325 (resume_1): Update.
10326 (clear_proceed_status_thread): Update.
10327 (proceed): Update.
10328 (print_target_wait_results): Update.
10329 (do_target_wait): Update.
10330 (context_switch): Update.
10331 (stop_all_threads): Update.
10332 (restart_threads): Update.
10333 (finish_step_over): Update.
10334 (handle_signal_stop): Update.
10335 (switch_back_to_stepped_thread): Update.
10336 (keep_going_pass_signal): Update.
10337 (print_exited_reason): Update.
10338 (normal_stop): Update.
10339 * inferior.c (inferior_pid_to_str): Change return type.
10340 (print_selected_inferior): Update.
10341 (add_inferior): Update.
10342 (detach_inferior): Update.
10343 * dummy-frame.c (fprint_dummy_frames): Update.
10344 * dcache.c (dcache_info_1): Update.
10345 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
10346 (btrace_fetch, btrace_clear): Update.
10347 * linux-tdep.c (linux_core_pid_to_str): Change return type.
10348 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
10349 type.
10350 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
10351 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
10352 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
10353 * gdbarch.c, gdbarch.h: Rebuild.
10354 * gdbarch.sh (core_pid_to_str): Change return type.
10355 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
10356 return type.
10357 (windows_nat_target::pid_to_str): Change return type.
10358 (windows_delete_thread): Update.
10359 (windows_nat_target::attach): Update.
10360 (windows_nat_target::files_info): Update.
10361 * target-delegates.c: Rebuild.
10362 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
10363 return type.
10364 (sol_thread_target::pid_to_str): Change return type.
10365 * remote.c (class remote_target) <pid_to_str>: Change return
10366 type.
10367 (remote_target::pid_to_str): Change return type.
10368 (extended_remote_target::attach, remote_target::remote_stop_ns)
10369 (remote_target::remote_notif_remove_queued_reply)
10370 (remote_target::push_stop_reply, remote_target::disable_btrace):
10371 Update.
10372 (extended_remote_target::attach): Update.
10373 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
10374 type.
10375 (gdbsim_target::pid_to_str): Change return type.
10376 * ravenscar-thread.c (struct ravenscar_thread_target)
10377 <pid_to_str>: Change return type.
10378 (ravenscar_thread_target::pid_to_str): Change return type.
10379 * procfs.c (class procfs_target) <pid_to_str>: Change return
10380 type.
10381 (procfs_target::pid_to_str): Change return type.
10382 (procfs_target::attach): Update.
10383 (procfs_target::detach): Update.
10384 (procfs_target::fetch_registers): Update.
10385 (procfs_target::store_registers): Update.
10386 (procfs_target::wait): Update.
10387 (procfs_target::files_info): Update.
10388 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
10389 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
10390 return type.
10391 (nto_procfs_target::pid_to_str): Change return type.
10392 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
10393 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
10394 return type.
10395 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
10396 (exit_lwp): Update.
10397 (attach_proc_task_lwp_callback, get_detach_signal)
10398 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
10399 (linux_nat_target::resume, wait_lwp, stop_callback)
10400 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
10401 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
10402 (linux_nat_wait_1, resume_stopped_resumed_lwps)
10403 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
10404 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
10405 type.
10406 (inf_ptrace_target::attach): Update.
10407 (inf_ptrace_target::files_info): Update.
10408 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
10409 type.
10410 (go32_nat_target::pid_to_str): Change return type.
10411 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
10412 (gnu_nat_target::wait): Update.
10413 (gnu_nat_target::wait): Update.
10414 (gnu_nat_target::resume): Update.
10415 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
10416 (fbsd_nat_target::wait): Update.
10417 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
10418 type.
10419 (darwin_nat_target::attach): Update.
10420 * corelow.c (class core_target) <pid_to_str>: Change return type.
10421 (core_target::pid_to_str): Change return type.
10422 * target.c (normal_pid_to_str): Change return type.
10423 (default_pid_to_str): Likewise.
10424 (target_pid_to_str): Change return type.
10425 (target_translate_tls_address): Update.
10426 (target_announce_detach): Update.
10427 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
10428 return type.
10429 (bsd_uthread_target::pid_to_str): Change return type.
10430 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
10431 type.
10432 (bsd_kvm_target::pid_to_str): Change return type.
10433 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
10434 return type.
10435 (aix_thread_target::pid_to_str): Change return type.
10436 * target.h (struct target_ops) <pid_to_str>: Change return type.
10437 (target_pid_to_str, normal_pid_to_str): Likewise.
10438 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
10439 type.
10440 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
10441 type.
10442 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
10443 return type.
10444 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
10445 type.
10446 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
10447 type.
10448 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
10449 return type.
10450
10451 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
10452
10453 * NEWS: Mention that the new default MI version is 3. Mention
10454 changes to the output of commands and events that deal with
10455 multi-location breakpoints.
10456 * breakpoint.c: Include "mi/mi-out.h".
10457 (print_one_breakpoint): Change output syntax if using MI version
10458 >= 3.
10459 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
10460 New.
10461 (mi_multi_location_breakpoint_output_fixed): New.
10462 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
10463 (mi_cmd_fix_multi_location_breakpoint_output): New.
10464 (mi_multi_location_breakpoint_output_fixed): New.
10465 * mi/mi-cmds.c (mi_cmds): Register command
10466 -fix-multi-location-breakpoint-output.
10467 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
10468 interpreter "mi".
10469
10470 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10471
10472 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
10473 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
10474 instantiate mi_ui_out based on interpreter name.
10475 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
10476 * mi/mi-main.c (mi_load_progress): Likewise.
10477
10478 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10479
10480 * NEWS: Combine separate "New targets" sections for 8.3.
10481
10482 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10483
10484 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
10485 (ppcfbsd_init_abi): Install gdbarch
10486 "fetch_tls_load_module_address" and "get_thread_local_address"
10487 methods.
10488
10489 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10490
10491 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
10492 (riscv_fbsd_init_abi): Install gdbarch
10493 "fetch_tls_load_module_address" and "get_thread_local_address"
10494 methods.
10495
10496 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10497
10498 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
10499 (i386fbsd_init_abi): Install gdbarch
10500 "fetch_tls_load_module_address" and "get_thread_local_address"
10501 methods.
10502
10503 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10504
10505 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
10506 (amd64fbsd_init_abi): Install gdbarch
10507 "fetch_tls_load_module_address" and "get_thread_local_address"
10508 methods.
10509
10510 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10511
10512 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
10513 (struct fbsd_pspace_data): New type.
10514 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
10515 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
10516 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
10517 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
10518 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
10519
10520 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10521
10522 * gdbtypes.c (lookup_struct_elt): New function.
10523 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
10524 * gdbtypes.h (struct struct_elt): New type.
10525 (lookup_struct_elt): New prototype.
10526
10527 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10528
10529 * gdbtypes.c (lookup_struct_elt_type): Update comment and
10530 remove disabled code block.
10531
10532 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10533
10534 * gdbarch.sh (get_thread_local_address): New method.
10535 * gdbarch.h, gdbarch.c: Regenerate.
10536 * target.c (target_translate_tls_address): Use
10537 gdbarch_get_thread_local_address if present instead of
10538 target::get_thread_local_address.
10539
10540 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10541
10542 * target.h (target::get_thread_local_address): Update comment.
10543
10544 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10545
10546 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
10547 objfile->separate_debug_objfile_backlink if not NULL.
10548
10549 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10550
10551 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10552 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
10553 (amd64bsd_store_inferior_registers): Likewise.
10554 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10555 Enable segment base registers.
10556 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
10557 PT_GETFSBASE and PT_GETGSBASE.
10558 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
10559 PT_SETGSBASE.
10560 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
10561 segment base registers.
10562 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10563
10564 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10565
10566 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10567 Update calls to i386_target_description to add 'segments'
10568 parameter.
10569 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
10570 add segment base registers.
10571 * arch/i386.c (i386_create_target_description): Add 'segments'
10572 parameter to enable segment base registers.
10573 * arch/i386.h (i386_create_target_description): Likewise.
10574 * features/i386/32bit-segments.xml: New file.
10575 * features/i386/32bit-segments.c: Generate.
10576 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
10577 call to i386_target_description to add 'segments' parameter.
10578 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10579 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
10580 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
10581 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
10582 if feature is present.
10583 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
10584 Add 'segments' parameter to call to i386_target_description.
10585 (i386_target_description): Add 'segments' parameter to enable
10586 segment base registers.
10587 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
10588 to call to i386_target_description.
10589 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
10590 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
10591 Define I386_NUM_REGS.
10592 (i386_target_description): Add 'segments' parameter to enable
10593 segment base registers.
10594
10595 2019-03-12 Eli Zaretskii <eliz@gnu.org>
10596
10597 PR/24325
10598 * source-cache.c: #undef open and close, to avoid unresolved
10599 externals during linking.
10600
10601 2019-03-12 Tom Tromey <tromey@adacore.com>
10602
10603 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
10604 const. Add initializers.
10605 (_initialize_remote): Don't initialize ptid globals.
10606
10607 2019-03-12 Pedro Alves <palves@redhat.com>
10608
10609 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
10610
10611 2019-03-12 Pedro Alves <palves@redhat.com>
10612
10613 * cp-name-parser.y (main): Remove unused 'len' variable.
10614
10615 2019-03-12 Tom Tromey <tromey@adacore.com>
10616
10617 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
10618 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
10619
10620 2019-03-12 Tom Tromey <tromey@adacore.com>
10621
10622 * linux-nat.c (iterate_over_lwps): Update.
10623 (stop_callback): Remove parameter.
10624 (stop_wait_callback, detach_callback, resume_set_callback)
10625 (select_singlestep_lwp_callback, set_ignore_sigint)
10626 (status_callback, resumed_callback, resume_clear_callback)
10627 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
10628 data parameter.
10629 (linux_nat_target::detach, linux_nat_target::resume)
10630 (linux_stop_and_wait_all_lwps, select_event_lwp)
10631 (linux_nat_filter_event, linux_nat_wait_1)
10632 (linux_nat_target::kill, linux_nat_target::stop)
10633 (linux_nat_target::stop): Update.
10634 (linux_nat_resume_callback): Change type.
10635 (resume_stopped_resumed_lwps, count_events_callback)
10636 (select_event_lwp_callback): Likewise.
10637 (linux_stop_lwp, linux_nat_stop_lwp): Update.
10638 * arm-linux-nat.c (struct update_registers_data): Remove.
10639 (update_registers_callback): Change type.
10640 (arm_linux_insert_hw_breakpoint1): Update.
10641 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
10642 parameter.
10643 (x86_linux_dr_set_addr): Update.
10644 (x86_linux_dr_set_control): Update.
10645 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
10646 (iterate_over_lwps): Use gdb::function_view.
10647 * nat/aarch64-linux-hw-point.c (struct
10648 aarch64_dr_update_callback_param): Remove.
10649 (debug_reg_change_callback): Change type.
10650 (aarch64_notify_debug_reg_change): Update.
10651 * s390-linux-nat.c (s390_refresh_per_info): Update.
10652
10653 2019-03-11 Tom Tromey <tromey@adacore.com>
10654
10655 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
10656 redundant assignment to "this_cu".
10657
10658 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10659
10660 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
10661
10662 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10663
10664 * gdbtypes.c (rank_one_type_parm_set): New function extracted
10665 from...
10666 (rank_one_type): ... this.
10667
10668 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10669
10670 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
10671 from...
10672 (rank_one_type): ... this.
10673
10674 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10675
10676 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
10677 from...
10678 (rank_one_type): ... this.
10679
10680 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10681
10682 * gdbtypes.c (rank_one_type_parm_float): New function extracted
10683 from...
10684 (rank_one_type): ... this.
10685
10686 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10687
10688 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
10689 from...
10690 (rank_one_type): ... this.
10691
10692 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10693
10694 * gdbtypes.c (rank_one_type_parm_range): New function extracted
10695 from...
10696 (rank_one_type): ... this.
10697
10698 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10699
10700 * gdbtypes.c (rank_one_type_parm_char): New function extracted
10701 from...
10702 (rank_one_type): ... this.
10703
10704 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10705
10706 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
10707 from...
10708 (rank_one_type): ... this.
10709
10710 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10711
10712 * gdbtypes.c (rank_one_type_parm_int): New function extracted
10713 from...
10714 (rank_one_type): ... this.
10715
10716 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10717
10718 * gdbtypes.c (rank_one_type_parm_func): New function extracted
10719 from...
10720 (rank_one_type): ... this.
10721
10722 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10723
10724 * gdbtypes.c (rank_one_type_parm_array): New function extracted
10725 from...
10726 (rank_one_type): ... this.
10727
10728 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10729
10730 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
10731 from...
10732 (rank_one_type): ... this.
10733
10734 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10735
10736 * inferior.c (initialize_inferiors): Ensure 'help set/show print
10737 inferior-events' shows the example events.
10738
10739 2019-03-08 Eli Zaretskii <eliz@gnu.org>
10740
10741 Support styling on native MS-Windows console
10742
10743 PR/24315
10744 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
10745 on MS-Windows if $TERM is not defined.
10746
10747 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
10748
10749 * posix-hdep.c (gdb_console_fputs):
10750 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
10751 functions.
10752 * ui-file.h (gdb_console_fputs): Add prototype.
10753
10754 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
10755 back to fputs only if the former returns zero.
10756
10757 2019-03-07 Tom Tromey <tom@tromey.com>
10758
10759 * symmisc.c (print_symbol_bcache_statistics): Update.
10760 (print_objfile_statistics): Update.
10761 * symfile.c (allocate_symtab): Update.
10762 * stabsread.c: Don't include bcache.h.
10763 * psymtab.h (struct psymbol_bcache): Don't declare.
10764 (class psymtab_storage) <psymbol_cache>: Now a bcache.
10765 (psymbol_bcache_init, psymbol_bcache_free)
10766 (psymbol_bcache_get_bcache): Don't declare.
10767 * psymtab.c (struct psymbol_bcache): Remove.
10768 (psymtab_storage::psymtab_storage): Update.
10769 (psymtab_storage::~psymtab_storage): Update.
10770 (psymbol_bcache_init, psymbol_bcache_free)
10771 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
10772 (add_psymbol_to_bcache): Update.
10773 (allocate_psymtab): Update.
10774 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10775 macro_cache>: No longer pointers.
10776 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
10777 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
10778 * macrotab.c (macro_bcache): Update.
10779 * macroexp.c: Don't include bcache.h.
10780 * gdbtypes.c (check_types_worklist): Update.
10781 (types_deeply_equal): Remove TRY/CATCH. Update.
10782 * elfread.c (elf_symtab_read): Update.
10783 * dwarf2read.c: Don't include bcache.h.
10784 * buildsym.c (buildsym_compunit::get_macro_table): Update.
10785 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
10786 (print_bcache_statistics, bcache_memory_used): Don't declare.
10787 (struct bcache): Move from bcache.c. Add constructor, destructor,
10788 methods. Rename all data members.
10789 * bcache.c (struct bcache): Move to bcache.h.
10790 (bcache::expand_hash_table): Rename from expand_hash_table.
10791 (bcache): Remove.
10792 (bcache::insert): Rename from bcache_full.
10793 (bcache::compare): Rename from bcache_compare.
10794 (bcache_xmalloc): Remove.
10795 (bcache::~bcache): Rename from bcache_xfree.
10796 (bcache::print_statistics): Rename from print_bcache_statistics.
10797 (bcache::memory_used): Rename from bcache_memory_used.
10798
10799 2019-03-07 Pedro Alves <palves@redhat.com>
10800
10801 * infrun.c (normal_stop): Also check for
10802 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
10803
10804 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10805
10806 * f-lang.c (value_from_host_double): Moved to...
10807 * value.c (value_from_host_double): ...here.
10808 * value.h (value_from_host_double): Declare.
10809 * guile/scm-math.c (vlscm_convert_typed_number): Use
10810 value_from_host_double.
10811 (vlscm_convert_number): Likewise.
10812 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
10813 * python/py-value.c (convert_value_from_python): Likewise.
10814
10815 2019-03-06 Tom Tromey <tom@tromey.com>
10816
10817 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
10818
10819 2019-03-06 Tom Tromey <tom@tromey.com>
10820
10821 * utils.h (free_current_contents): Don't declare.
10822 * utils.c (free_current_contents): Remove.
10823
10824 2019-03-06 Tom Tromey <tom@tromey.com>
10825
10826 * top.c (quit_force): Update.
10827 * main.c (captured_command_loop): Update.
10828 * common/new-op.c (operator new): Update.
10829 * common/common-exceptions.c (struct catcher)
10830 <save_cleanup_chain>: Remove member.
10831 (exceptions_state_mc_init): Update.
10832 (exception_try_scope_entry): Return nullptr.
10833 (exception_try_scope_exit, exception_rethrow)
10834 (throw_exception_sjlj, throw_exception_cxx): Update.
10835 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
10836 (all_cleanups, do_cleanups, discard_cleanups)
10837 (discard_final_cleanups, save_cleanups, save_final_cleanups)
10838 (restore_cleanups, restore_final_cleanups): Don't declare.
10839 (do_final_cleanups): Remove parameter.
10840 * common/cleanups.c (cleanup_chain, make_cleanup)
10841 (make_cleanup_dtor, all_cleanups, do_cleanups)
10842 (discard_my_cleanups, discard_cleanups)
10843 (discard_final_cleanups, save_my_cleanups, save_cleanups)
10844 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
10845 (null_cleanup): Remove.
10846 (do_final_cleanups): Remove parameter.
10847
10848 2019-03-06 Tom Tromey <tom@tromey.com>
10849
10850 * remote.c (remote_target::remote_parse_stop_reply): Use
10851 unique_xmalloc_ptr.
10852
10853 2019-03-06 Tom Tromey <tom@tromey.com>
10854
10855 * stabsread.c (struct stabs_field_info): Rename from field_info.
10856 <list, fnlist>: Add initializers.
10857 <obstack>: New member.
10858 (read_member_functions, read_struct_fields, read_baseclasses):
10859 Allocate on obstack. Don't use cleanups.
10860 (read_one_struct_field, read_member_functions, read_struct_fields)
10861 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
10862 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
10863 (read_struct_type): Update.
10864
10865 2019-03-06 Tom Tromey <tom@tromey.com>
10866
10867 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
10868 * common/filestuff.h (make_cleanup_close): Don't declare.
10869 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
10870 Remove.
10871
10872 2019-03-06 Tom Tromey <tom@tromey.com>
10873
10874 * solib-aix.c: Use make_scope_exit.
10875
10876 2019-03-06 Tom Tromey <tom@tromey.com>
10877
10878 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
10879 Use make_scope_exit.
10880
10881 2019-03-06 Tom Tromey <tom@tromey.com>
10882
10883 * solib-svr4.c (disable_probes_interface): Remove parameter.
10884 (svr4_handle_solib_event): Use make_scope_exit.
10885
10886 2019-03-06 Tom Tromey <tom@tromey.com>
10887
10888 * remote.c (struct stop_reply_deleter): Remove.
10889 (stop_reply_up): Update.
10890 (struct stop_reply): Derive from notif_event. Don't typedef.
10891 <regcache>: Now a std::vector.
10892 (stop_reply_xfree): Remove.
10893 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
10894 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
10895 (remote_target::discard_pending_stop_replies): Use delete.
10896 (remote_target::remote_parse_stop_reply): Update.
10897 (remote_target::process_stop_reply): Update.
10898 * remote-notif.h (struct notif_event): Add virtual destructor.
10899 Remove "dtr" member.
10900 (struct notif_client) <alloc_event>: Return a unique_ptr.
10901 (notif_event_xfree): Don't declare.
10902 (notif_event_up): New typedef.
10903 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
10904 (notif_event_xfree, do_notif_event_xfree): Remove.
10905 (remote_notif_state_xfree): Update.
10906
10907 2019-03-06 Tom Tromey <tom@tromey.com>
10908
10909 * infrun.c (displaced_step_clear_cleanup): Now a
10910 forward_scope_exit type.
10911 (displaced_step_prepare_throw): Update.
10912 (displaced_step_fixup): Update.
10913
10914 2019-03-06 Tom Tromey <tom@tromey.com>
10915
10916 * inferior.h (class inferior): Update comment.
10917 * gdbthread.h (class thread_info): Update comment.
10918
10919 2019-03-06 Joel Brobecker <brobecker@adacore.com>
10920 Tom Tromey <tom@tromey.com>
10921
10922 * stabsread.h (struct stab_section_list): Remove.
10923 (coffstab_build_psymtabs): Update.
10924 * dbxread.c (symbuf_sections): Now a std::vector.
10925 (sect_idx): New global.
10926 (fill_symbuf): Update.
10927 (coffstab_build_psymtabs): Change type of stabsects parameter.
10928 Update.
10929 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
10930 std::vector.
10931 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
10932 (coff_locate_sections): Update.
10933 (coff_symfile_read): Remove cleanups. Update.
10934 (init_stringtab): Add storage parameter.
10935 (free_stringtab, free_stringtab_cleanup): Remove.
10936 (init_lineno): Add storage parameter.
10937 (free_linetab, free_linetab_cleanup): Remove.
10938
10939 2019-03-06 Pedro Alves <palves@redhat.com>
10940
10941 * linux-fork.c (fork_info::clobber_regs): Delete.
10942 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
10943 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
10944 comment. Adjust.
10945 (scoped_switch_fork_info::scoped_switch_fork_info)
10946 (checkpoint_command, linux_fork_context): Adjust
10947 fork_save_infrun_state calls.
10948
10949 2019-03-06 Pedro Alves <palves@redhat.com>
10950
10951 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
10952 (inf_has_multiple_threads): Return 'bool' and rewrite using
10953 inferior_info::threads().
10954
10955 2019-03-06 Pedro Alves <palves@redhat.com>
10956
10957 * linux-fork.c: Include <list>.
10958 (fork_list): Now a std::list instance.
10959 (fork_info): Add ctor, dtor, and in-class initialize all fields.
10960 (forks_exist_p, find_last_fork): Adjust.
10961 (new_fork): Delete.
10962 (one_fork_p): New.
10963 (add_fork): Adjust.
10964 (free_fork): Delete, folded into fork_info::~fork_info().
10965 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
10966 Adjust.
10967 (init_fork_list): Delete.
10968 (linux_fork_killall, linux_fork_mourn_inferior)
10969 (linux_fork_detach, info_checkpoints_command): Adjust.
10970 (_initialize_linux_fork): No longer call init_fork_list.
10971
10972 2019-03-06 Pedro Alves <palves@redhat.com>
10973
10974 * linux-fork.c (new_fork): New, split out of ...
10975 (add_fork): ... this. Return void. Move "first fork" special
10976 case from here, to ...
10977 (checkpoint_command): ... here.
10978 * linux-linux.h (add_fork): Return void.
10979
10980 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10981
10982 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
10983
10984 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10985 Chris January <chris.january@arm.com>
10986 David Lecomber <david.lecomber@arm.com>
10987
10988 * f-exp.y: New token, UNOP_INTRINSIC.
10989 (exp): New pattern using UNOP_INTRINSIC token.
10990 (f77_keywords): Add 'abs' keyword.
10991 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
10992 (value_from_host_double): New function.
10993 (evaluate_subexp_f): Support UNOP_ABS.
10994
10995 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10996
10997 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
10998 types.
10999
11000 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11001
11002 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
11003 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
11004 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
11005
11006 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11007
11008 * f-exp.y (convert_to_kind_type): Handle more type kinds.
11009
11010 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11011 Chris January <chris.january@arm.com>
11012
11013 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
11014 * f-exp.y: Define 'KIND' token.
11015 (exp): New pattern for KIND expressions.
11016 (ptype): Handle types with a kind extension.
11017 (direct_abs_decl): Extend to spot kind extensions.
11018 (f77_keywords): Add 'kind' to the list.
11019 (push_kind_type): New function.
11020 (convert_to_kind_type): New function.
11021 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
11022 * parse.c (operator_length_standard): Likewise.
11023 * parser-defs.h (enum type_pieces): Add tp_kind.
11024 * std-operator.def: Add UNOP_KIND.
11025
11026 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11027
11028 * f-exp.y (f_parse): Set yydebug.
11029
11030 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11031
11032 * f-lang.c (evaluate_subexp_f): New function.
11033 (exp_descriptor_f): New global.
11034 (f_language_defn): Use exp_descriptor_f instead of
11035 exp_descriptor_standard.
11036
11037 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11038
11039 * f-exp.y (struct token): Add comments.
11040 (dot_ops): Remove uppercase versions and the end marker.
11041 (f77_keywords): Likewise.
11042 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
11043 entries in the dot_ops array are case insensitive, and use
11044 strncasecmp to compare strings. Also some whitespace cleanup in
11045 this area. Similar for the f77_keywords array, except entries in
11046 this list might be case sensitive.
11047
11048 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11049
11050 * f-exp.y (struct f77_boolean_val): Add comments.
11051 (boolean_values): Remove uppercase versions, and end marker.
11052 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
11053 and use strncasecmp to achieve case insensitivity. Additionally,
11054 perform whitespace cleanup around this code.
11055
11056 2019-03-06 Tom Tromey <tromey@adacore.com>
11057
11058 * remote-sim.c (gdbsim_target_open): Use result of
11059 gdb_argv::release.
11060
11061 2019-03-06 Richard Bunt <richard.bunt@arm.com>
11062 Dirk Schubert <dirk.schubert@arm.com>
11063 Chris January <chris.january@arm.com>
11064
11065 * eval.c (evaluate_subexp_standard): Call Fortran argument
11066 wrapping logic.
11067 * f-lang.c (struct value): A value which can be passed into a
11068 Fortran function call.
11069 (fortran_argument_convert): Wrap Fortran arguments in a pointer
11070 where appropriate.
11071 (struct type): Value ready for a Fortran function call.
11072 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
11073 is needed.
11074 * f-lang.h (fortran_argument_convert): Declaration.
11075 (fortran_preserve_arg_pointer): Declaration.
11076 * infcall.c (value_arg_coerce): Call Fortran argument logic.
11077
11078 2019-03-05 Tom Tromey <tromey@adacore.com>
11079
11080 * python/py-prettyprint.c (print_string_repr): Remove #if.
11081 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
11082
11083 2019-03-05 Tom Tromey <tromey@adacore.com>
11084
11085 * target.c (the_dummy_target): Move later. Change type to
11086 "dummy_target".
11087 (initialize_targets): Don't initialize the_dummy_target.
11088
11089 2019-03-05 Tom Tromey <tromey@adacore.com>
11090
11091 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
11092 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
11093
11094 2019-03-05 Tom Tromey <tromey@adacore.com>
11095
11096 * windows-nat.c (windows_nat_target::attach)
11097 (windows_nat_target::detach): Don't call gdb_flush.
11098 * valprint.c (generic_val_print, val_print, val_print_string):
11099 Don't call gdb_flush.
11100 * utils.c (defaulted_query): Don't call gdb_flush.
11101 * typeprint.c (print_type_scalar): Don't call gdb_flush.
11102 * target.c (target_announce_detach): Don't call gdb_flush.
11103 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
11104 * remote.c (extended_remote_target::attach): Don't call
11105 gdb_flush.
11106 * procfs.c (procfs_target::detach): Don't call gdb_flush.
11107 * printcmd.c (do_examine): Don't call gdb_flush.
11108 (info_display_command): Don't call gdb_flush.
11109 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
11110 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
11111 * memattr.c (info_mem_command): Don't call gdb_flush.
11112 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
11113 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
11114 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
11115 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
11116 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
11117 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
11118 (gnu_nat_target::detach): Don't call gdb_flush.
11119 * f-valprint.c (f_val_print): Don't call gdb_flush.
11120 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
11121 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
11122 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
11123 gdb_flush.
11124 * c-valprint.c (c_val_print): Don't call gdb_flush.
11125 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
11126
11127 2019-03-05 Tom Tromey <tromey@adacore.com>
11128
11129 * varobj.c (update_dynamic_varobj_children): Update.
11130 (install_default_visualizer): Use reset, not release.
11131 * value.c (set_internalvar): Update.
11132 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
11133 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
11134 ATTRIBUTE_UNUSED_RESULT.
11135
11136 2019-03-05 Tom Tromey <tromey@adacore.com>
11137
11138 * remote.c (class scoped_remote_fd) <release>: Add
11139 ATTRIBUTE_UNUSED_RESULT.
11140
11141 2019-03-05 Tom Tromey <tromey@adacore.com>
11142
11143 * macroexp.c (struct macro_buffer) <release>: Add
11144 ATTRIBUTE_UNUSED_RESULT.
11145
11146 2019-03-05 Tom Tromey <tromey@adacore.com>
11147
11148 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
11149 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
11150 ATTRIBUTE_UNUSED_RESULT.
11151
11152 2019-03-05 Tom Tromey <tromey@adacore.com>
11153
11154 * common/scoped_fd.h (class scoped_fd) <release>: Add
11155 ATTRIBUTE_UNUSED_RESULT.
11156
11157 2019-03-05 Tom Tromey <tromey@adacore.com>
11158
11159 * parser-defs.h (struct parser_state) <release>: Add
11160 ATTRIBUTE_UNUSED_RESULT.
11161
11162 2019-03-05 Tom Tromey <tromey@adacore.com>
11163
11164 * utils.h (class gdb_argv) <release>: Add
11165 ATTRIBUTE_UNUSED_RESULT.
11166 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
11167
11168 2019-03-02 Eli Zaretskii <eliz@gnu.org>
11169
11170 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
11171 for-loop range, to avoid compiler warnings.
11172
11173 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
11174 avoid compiler warnings about unused variables.
11175
11176 * NEWS: Mention end of support for native debugging on MS-Windows
11177 before XP.
11178
11179 PR gdb/24292
11180 * common/netstuff.c:
11181 * gdbserver/gdbreplay.c
11182 * gdbserver/remote-utils.c:
11183 * ser-tcp.c:
11184 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
11185 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
11186 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
11187 'getaddrinfo' and 'freeaddrinfo' were not available before
11188 Windows XP, and mingw.org's MinGW headers by default define
11189 _WIN32_WINNT to 0x500.
11190
11191 2019-03-01 Gary Benson <gbenson@redhat.com>
11192
11193 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
11194
11195 2019-02-28 Brian Vandenberg <phantall@gmail.com>
11196 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11197
11198 PR gdb/8527
11199 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
11200 set_sigint_trap, clear_sigint_trap.
11201
11202 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11203
11204 * target.c (target_detach): Clear the regcache and the
11205 frame cache.
11206
11207 2019-02-27 Pedro Alves <palves@redhat.com>
11208
11209 * utils.c (set_screen_size): When we cap the height/width sizes,
11210 tweak the corresponding command variable to show "unlimited":
11211
11212 2019-02-27 Saagar Jha <saagar@saagarjha.com>
11213 Pedro Alves <palves@redhat.com>
11214
11215 * utils.c (set_screen_size): Reduce "infinite" rows and columns
11216 before calling rl_set_screen_size.
11217
11218 2019-02-27 Tom Tromey <tromey@adacore.com>
11219
11220 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
11221 define.
11222 * python/py-value.c: Remove Python 2.4 workaround.
11223 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
11224 workaround.
11225 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
11226 Python 2.4 workaround.
11227 * python/python-internal.h: Remove Python 2.4 comment.
11228 (Py_ssize_t): Don't define.
11229 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
11230 (gdb_Py_DECREF): Remove Python 2.4 workaround.
11231 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
11232 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
11233 * python/python.c (do_start_initialization): Remove Python 2.4
11234 workaround.
11235 * python/py-prettyprint.c (class dummy_python_frame): Remove.
11236 (print_children): Remove Python 2.4 workaround.
11237 * python/py-inferior.c (buffer_procs): Remove Python 2.4
11238 workaround.
11239 (CHARBUFFERPROC_NAME): Remove.
11240 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
11241 Python 2.4 workaround.
11242
11243 2019-02-27 Kevin Buettner <kevinb@redhat.com>
11244
11245 * NEWS: Note minimum Python version.
11246
11247 2019-02-27 Kevin Buettner <kevinb@redhat.com>
11248
11249 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
11250 code from these functions. Remove corresponding ifdefs. Use
11251 Py_buffer_up instead of explicit calls to PyBuffer_Release.
11252 Remove gotos and target of gotos.
11253 (infpy_search_memory): Likewise.
11254
11255 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11256
11257 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
11258 (hppa_gdbarch_init): Don't register deleted functions with
11259 gdbarch.
11260
11261 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11262
11263 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
11264 (h8300_unwind_sp): Delete.
11265 (h8300_dummy_id): Delete.
11266 (h8300_gdbarch_init): Don't register deleted functions with
11267 gdbarch.
11268
11269 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11270
11271 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
11272 (ft32_unwind_pc): Delete.
11273 (ft32_unwind_sp): Delete.
11274 (ft32_gdbarch_init): Don't register deleted functions with
11275 gdbarch.
11276
11277 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11278
11279 * gdb/frv-tdep.c (frv_dummy_id): Delete.
11280 (frv_unwind_pc): Delete.
11281 (frv_unwind_sp): Delete.
11282 (frv_gdbarch_init): Don't register deleted functions with
11283 gdbarch.
11284
11285 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11286
11287 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
11288 (riscv_unwind_pc): Delete.
11289 (riscv_unwind_sp): Delete.
11290 (riscv_gdbarch_init): Don't register deleted functions with
11291 gdbarch.
11292
11293 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11294
11295 * gdb/csky-tdep.c (csky_dummy_id): Delete.
11296 (csky_unwind_pc): Delete.
11297 (csky_unwind_sp): Delete.
11298 (csky_gdbarch_init): Don't register deleted functions with
11299 gdbarch.
11300
11301 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11302
11303 * gdb/cris-tdep.c (cris_dummy_id): Delete.
11304 (cris_unwind_pc): Delete.
11305 (cris_unwind_sp): Delete.
11306 (cris_gdbarch_init): Don't register deleted functions with
11307 gdbarch.
11308
11309 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11310
11311 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
11312 (bfin_unwind_pc): Delete.
11313 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
11314
11315 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11316
11317 * gdb/arm-tdep.c (arm_dummy_id): Delete.
11318 (arm_unwind_pc): Delete.
11319 (arm_unwind_sp): Delete.
11320 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
11321
11322 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11323
11324 * gdb/arc-tdep.c (arc_dummy_id): Delete.
11325 (arc_unwind_pc): Delete.
11326 (arc_unwind_sp): Delete.
11327 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
11328
11329 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11330
11331 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
11332 (alpha_unwind_pc): Delete.
11333 (alpha_gdbarch_init): Don't register deleted functions with
11334 gdbarch.
11335
11336 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11337
11338 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
11339 (aarch64_unwind_pc): Delete.
11340 (aarch64_unwind_sp): Delete.
11341 (aarch64_gdbarch_init): Don't register deleted functions with
11342 gdbarch.
11343
11344 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11345
11346 * gdbtypes.c (type_align): Don't consider static members when
11347 computing structure alignment.
11348
11349 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11350
11351 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
11352 return 0 for other types.
11353 * arch-utils.c (default_type_align): Always return 0.
11354 * gdbarch.h: Regenerate.
11355 * gdbarch.sh (type_align): Extend comment.
11356 * gdbtypes.c (type_align): Add additional comments, always call
11357 gdbarch_type_align before applying the default rules.
11358 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
11359 generic code will then apply a suitable default.
11360 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
11361 types, return 0 for other types.
11362
11363 2019-02-27 Joel Brobecker <brobecker@adacore.com>
11364
11365 * NEWS: Create a new section for the next release branch.
11366 Rename the section of the current branch, now that it has
11367 been cut.
11368
11369 2019-02-27 Joel Brobecker <brobecker@adacore.com>
11370
11371 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
11372 * version.in: Bump version to 8.3.50.DATE-git.
11373
11374 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
11375
11376 * aix-thread.c (ptid_cmp): Remove unused variable.
11377 (get_signaled_thread): Likewise.
11378 (store_regs_user_thread): Likewise.
11379 (store_regs_kernel_thread): Likewise.
11380 (fetch_regs_kernel_thread): Remove shadowed variable.
11381
11382 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
11383
11384 * features/riscv/32bit-cpu.xml: Add register numbers.
11385 * features/riscv/32bit-fpu.c: Regenerate.
11386 * features/riscv/32bit-fpu.xml: Add register numbers.
11387 * features/riscv/64bit-cpu.xml: Add register numbers.
11388 * features/riscv/64bit-fpu.c: Regenerate.
11389 * features/riscv/64bit-fpu.xml: Add register numbers.
11390
11391 2019-02-26 Kevin Buettner <kevinb@redhat.com>
11392
11393 * NEWS: Mention two argument form of gdb.Value constructor.
11394 * python/py-value.c (convert_buffer_and_type_to_value): New
11395 function.
11396 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
11397 Add support for handling an optional second argument. Call
11398 convert_buffer_and_type_to_value as appropriate.
11399 * python/python-internal.h (Py_buffer_deleter): New struct.
11400 (Py_buffer_up): New typedef.
11401
11402 2019-02-25 John Baldwin <jhb@FreeBSD.org>
11403
11404 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
11405 instead of releasing ownership.
11406
11407 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
11408
11409 * dwarf2read.c (open_and_init_dwp_file): Call
11410 elf_numsections instead of bfd_count_sections to initialize
11411 dwp_file->num_sections.
11412
11413 2019-02-25 Tom Tromey <tromey@adacore.com>
11414
11415 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
11416
11417 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
11418
11419 * gcore.in: Add '--readnever' option when invoking GDB.
11420
11421 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11422
11423 * MAINTAINERS: Update my email address.
11424
11425 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11426
11427 * build-id.c (build_id_to_debug_bfd_1): New function.
11428 (build_id_to_debug_bfd): Look for separate debug file in
11429 sysroot.
11430
11431 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
11432
11433 * gdbarch.sh: Update the copyright year range that is placed into
11434 generated files.
11435
11436 2019-02-22 Keith Seitz <keiths@redhat.com>
11437
11438 PR symtab/23853
11439 * linespec.c (create_sals_line_offset): Search for the default
11440 symtab's filename instead of its fullname.
11441
11442 2019-02-21 Alan Hayward <alan.hayward@arm.com>
11443
11444 * NEWS: Update style defaults.
11445
11446 2019-02-21 Alan Hayward <alan.hayward@arm.com>
11447
11448 * main.c (captured_main_1): Disable styling in batch mode.
11449
11450 2019-02-20 Tom Tromey <tom@tromey.com>
11451
11452 * symtab.c (symtab_symbol_info): Fix typos.
11453
11454 2019-02-20 Tom Tromey <tromey@adacore.com>
11455
11456 * findcmd.c (_initialize_mem_search): Use upper case for
11457 metasyntactic variables.
11458
11459 2019-02-20 Alan Hayward <alan.hayward@arm.com>
11460
11461 * aarch64-tdep.c (aarch64_add_reggroups): New function.
11462 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
11463
11464 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
11465
11466 * top.h (source_file_name): Change to std::string.
11467 * top.c (source_file_name): Likewise.
11468 (command_line_input): Adjust.
11469 * cli/cli-script.c (script_from_file): Adjust.
11470
11471 2019-02-19 Tom Tromey <tromey@adacore.com>
11472
11473 * ravenscar-thread.c
11474 (ravenscar_thread_target::update_thread_list): Don't call
11475 ada_build_task_list.
11476 * ada-lang.h (ada_build_task_list): Don't declare.
11477 * ada-tasks.c (struct ada_tasks_inferior_data)
11478 <task_list_valid_p>: Now bool.
11479 (read_known_tasks, ada_task_list_changed)
11480 (ada_tasks_invalidate_inferior_data): Update.
11481 (read_known_tasks_array): Return bool.
11482 (read_known_tasks_list): Likewise.
11483 (read_known_tasks): Return void.
11484 (ada_build_task_list): Now static.
11485
11486 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
11487
11488 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
11489 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
11490
11491 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11492
11493 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
11494 variant for ada_tasks_pspace_data_handle and
11495 ada_tasks_inferior_data_handle.
11496 (ada_tasks_pspace_data_cleanup): New function.
11497 (ada_tasks_inferior_data_cleanup): New function.
11498
11499 2019-02-17 Tom Tromey <tom@tromey.com>
11500
11501 * macrotab.h (macro_source_fullname): Return a std::string.
11502 * macrotab.c (macro_include, check_for_redefinition)
11503 (macro_undef, macro_lookup_definition, foreach_macro)
11504 (foreach_macro_in_scope): Update.
11505 (macro_source_fullname): Return a std::string.
11506 * macrocmd.c (show_pp_source_pos): Update.
11507
11508 2019-02-17 Tom Tromey <tom@tromey.com>
11509
11510 * macrocmd.c (show_pp_source_pos): Style the file names.
11511
11512 2019-02-17 Tom Tromey <tom@tromey.com>
11513
11514 PR tui/24197:
11515 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
11516
11517 2019-02-17 Tom Tromey <tom@tromey.com>
11518
11519 * ada-lang.c (user_select_syms): Use filtered printing.
11520 * utils.c (wrap_style): New global.
11521 (desired_style): Remove.
11522 (emit_style_escape): Add stream parameter.
11523 (set_output_style, reset_terminal_style, prompt_for_continue):
11524 Update.
11525 (flush_wrap_buffer): Only flush gdb_stdout.
11526 (wrap_here): Set wrap_style.
11527 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
11528 treat escape sequences as a character. Change when wrap buffer is
11529 flushed.
11530 (fputs_styled): Do not set the output style when the default is
11531 requested.
11532 * ui-style.h (struct ui_file_style) <is_default>: New method.
11533 * source.c (print_source_lines_base): Emit escape sequences in one
11534 piece.
11535
11536 2019-02-17 Joel Brobecker <brobecker@adacore.com>
11537
11538 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
11539 integers and enumeration types.
11540
11541 2019-02-17 Joel Brobecker <brobecker@adacore.com>
11542
11543 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
11544 instead of lookup_symbol_in_language
11545 (do_exact_match): New function.
11546 (ada_get_symbol_name_matcher): Return do_exact_match when
11547 doing a verbatim match.
11548
11549 2019-02-15 Tom Tromey <tromey@adacore.com>
11550
11551 * ravenscar-thread.c (ravenscar_thread_target::resume)
11552 (ravenscar_thread_target::wait): Special case wildcard requests.
11553
11554 2019-02-15 Tom Tromey <tromey@adacore.com>
11555
11556 * ravenscar-thread.c (base_ptid): Remove.
11557 (struct ravenscar_thread_target) <close>: New method.
11558 <m_base_ptid>: New member.
11559 <update_inferior_ptid, active_task, task_is_currently_active,
11560 runtime_initialized>: Declare methods.
11561 <ravenscar_thread_target>: Add constructor.
11562 (ravenscar_thread_target::task_is_currently_active)
11563 (ravenscar_thread_target::update_inferior_ptid)
11564 (ravenscar_runtime_initialized): Rename. Now methods.
11565 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
11566 (ravenscar_thread_target::update_thread_list): Update.
11567 (ravenscar_thread_target::active_task): Now method.
11568 (ravenscar_thread_target::store_registers)
11569 (ravenscar_thread_target::prepare_to_store)
11570 (ravenscar_thread_target::prepare_to_store)
11571 (ravenscar_thread_target::mourn_inferior): Update.
11572 (ravenscar_inferior_created): Use "new" to create target.
11573 (ravenscar_thread_target::get_ada_task_ptid): Update.
11574 (_initialize_ravenscar): Don't initialize base_ptid.
11575 (ravenscar_ops): Remove global.
11576
11577 2019-02-15 Tom Tromey <tromey@adacore.com>
11578
11579 * target.h (push_target): Declare new overload.
11580 * target.c (push_target): New overload, taking an rvalue reference.
11581 * remote.c (remote_target::open_1): Use push_target overload.
11582 * corelow.c (core_target_open): Use push_target overload.
11583
11584 2019-02-15 Tom Tromey <tromey@adacore.com>
11585
11586 * ravenscar-thread.c (is_ravenscar_task)
11587 (ravenscar_task_is_currently_active): Return bool.
11588 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
11589 (_initialize_ravenscar): Remove "(void)".
11590 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
11591 Return bool.
11592
11593 2019-02-15 Tom Tromey <tromey@adacore.com>
11594
11595 * ravenscar-thread.c (ravenscar_runtime_initializer)
11596 (has_ravenscar_runtime, get_running_thread_id)
11597 (ravenscar_thread_target::resume): Fix indentation.
11598
11599 2019-02-15 Tom Tromey <tromey@adacore.com>
11600
11601 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
11602 from ravenscar_arch_ops.
11603 (sparc_ravenscar_ops::fetch_registers)
11604 (sparc_ravenscar_ops::store_registers): Now methods.
11605 (sparc_ravenscar_prepare_to_store): Remove.
11606 (sparc_ravenscar_ops): Redefine.
11607 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
11608 methods and destructor. Remove members.
11609 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
11610 (ravenscar_thread_target::store_registers)
11611 (ravenscar_thread_target::prepare_to_store): Update.
11612 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
11613 Remove.
11614 (struct ppc_ravenscar_powerpc_ops): Derive from
11615 ravenscar_arch_ops.
11616 (ppc_ravenscar_powerpc_ops::fetch_registers)
11617 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
11618 (ppc_ravenscar_powerpc_ops): Redefine.
11619 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
11620 (ppc_ravenscar_e500_ops::fetch_registers)
11621 (ppc_ravenscar_e500_ops::store_registers): Now methods.
11622 (ppc_ravenscar_e500_ops): Redefine.
11623 * aarch64-ravenscar-thread.c
11624 (aarch64_ravenscar_generic_prepare_to_store): Remove.
11625 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
11626 (aarch64_ravenscar_fetch_registers)
11627 (aarch64_ravenscar_store_registers): Now methods.
11628 (aarch64_ravenscar_ops): Redefine.
11629
11630 2019-02-15 Tom Tromey <tromey@adacore.com>
11631
11632 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
11633 (ravenscar_thread_target::stopped_by_hw_breakpoint)
11634 (ravenscar_thread_target::stopped_by_watchpoint)
11635 (ravenscar_thread_target::stopped_data_address)
11636 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
11637
11638 2019-02-15 Tom Tromey <tromey@adacore.com>
11639
11640 * ravenscar-thread.c: Fix some typos.
11641
11642 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11643 Tom Tromey <tromey@adacore.com>
11644
11645 * ada-lang.c (ada_exception_sal): Change addr_string to a
11646 std::string.
11647 (create_ada_exception_catchpoint): Update.
11648
11649 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11650 Tom Tromey <tromey@adacore.com>
11651
11652 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
11653 (bp_location_ops): Remove.
11654 (base_breakpoint_allocate_location): Update.
11655 (free_bp_location): Update.
11656 * ada-lang.c (class ada_catchpoint_location)
11657 <ada_catchpoint_location>: Remove ops parameter.
11658 (ada_catchpoint_location_dtor): Remove.
11659 (ada_catchpoint_location_ops): Remove.
11660 (allocate_location_exception): Update.
11661 * breakpoint.h (struct bp_location_ops): Remove.
11662 (class bp_location) <bp_location>: Remove bp_location_ops
11663 parameter.
11664 <~bp_location>: Add destructor.
11665 <ops>: Remove.
11666
11667 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11668 Pedro Alves <palves@redhat.com>
11669
11670 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
11671 'PATH_MAX'.
11672
11673 2019-02-14 David Michael <fedora.dm0@gmail.com>
11674 Samuel Thibault <samuel.thibault@gnu.org>
11675 Thomas Schwinge <thomas@codesourcery.com>
11676
11677 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
11678 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
11679
11680 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11681
11682 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
11683 (check_empty): Use "const char *".
11684
11685 * gnu-nat.c (gnu_nat_target::detach): Instead of
11686 'detach_inferior (pid)' call
11687 'detach_inferior (find_inferior_pid (pid))'.
11688
11689 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
11690 'nat/fork-inferior.o'.
11691 * gnu-nat.c: #include "nat/fork-inferior.h".
11692
11693 * gnu-nat.c (gnu_nat_target::detach): Instead of
11694 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
11695 * gnu-nat.h: #include "inf-child.h".
11696 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
11697 'i386_gnu_nat_target::fetch_registers'.
11698 (gnu_store_registers): Rename/move to
11699 'i386_gnu_nat_target::store_registers'.
11700
11701 * config/i386/nm-i386gnu.h: Don't "#include" any files.
11702 * gnu-nat.h (mach_thread_info): New function.
11703 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
11704
11705 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
11706
11707 2019-02-14 Frederic Konrad <konrad@adacore.com>
11708
11709 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
11710
11711 2019-02-14 Joel Brobecker <brobecker@adacore.com>
11712
11713 * windows-nat.c (windows_add_thread): Add new parameter
11714 "main_thread_p" with default value set to false. Update
11715 function documentation as well as all callers.
11716 (windows_delete_thread): Likewise.
11717 (fake_create_process): Update call to windows_add_thread.
11718 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
11719 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
11720 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
11721 call to windows_delete_thread.
11722
11723 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
11724
11725 * MAINTAINERS: Add Andrew Burgess as global maintainer.
11726
11727 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11728
11729 * symfile.c (find_separate_debug_file): Use canonical path of
11730 sysroot with child_path instead of gdb_sysroot if it is valid.
11731
11732 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11733
11734 * symfile.c (find_separate_debug_file): Use child_path to
11735 determine if an object file is under a sysroot.
11736
11737 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11738
11739 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11740 unittests/child-path-selftests.c.
11741 * common/pathstuff.c (child_path): New function.
11742 * common/pathstuff.h (child_path): New prototype.
11743 * unittests/child-path-selftests.c: New file.
11744
11745 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11746
11747 * symfile.c (find_separate_debug_file): Look for separate debug
11748 files in debug directories under the sysroot.
11749
11750 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11751
11752 * symtab.h (struct minimal_symbol data_p): New const method.
11753 (struct minimal_symbol text_p): Likewise.
11754 * symtab.c (output_source_filename): Use file name style
11755 to print file name.
11756 (print_symbol_info): Likewise.
11757 (print_msymbol_info): Use address style to print addresses.
11758 Use function name style to print executable text symbols.
11759 (expand_symtab_containing_pc): Use data_p.
11760 (find_pc_sect_compunit_symtab): Likewise.
11761
11762 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11763
11764 * breakpoint.c (describe_other_breakpoints): Use address style
11765 to print addresses.
11766 (say_where): Likewise.
11767
11768 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11769
11770 * ada-typeprint.c (print_func_type): Print function name
11771 style to print function name.
11772 * c-typeprint.c (c_print_type_1): Likewise.
11773
11774 2019-02-11 Alan Hayward <alan.hayward@arm.com>
11775
11776 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
11777 for execve.
11778
11779 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11780
11781 * c-exp.y (direct_abs_decl): Use emplace_back to record the
11782 type_stack.
11783
11784 2019-02-10 Joel Brobecker <brobecker@adacore.com>
11785
11786 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
11787 TYPE_CODE_REF types.
11788
11789 2019-02-08 Jim Wilson <jimw@sifive.com>
11790
11791 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
11792 (riscv_linux_fregset): New.
11793 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
11794
11795 2019-02-07 Tom Tromey <tom@tromey.com>
11796
11797 * thread.c (thread_cancel_execution_command): Update.
11798 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
11799 methods.
11800 (struct thread_fsm_ops): Remove.
11801 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
11802 (thread_fsm_should_stop, thread_fsm_return_value)
11803 (thread_fsm_set_finished, thread_fsm_finished_p)
11804 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
11805 Don't declare.
11806 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
11807 * infrun.c (clear_proceed_status_thread)
11808 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
11809 (print_stop_event): Update.
11810 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
11811 Add constructor.
11812 (step_command_fsm_ops): Remove.
11813 (new_step_command_fsm): Remove.
11814 (step_1): Update.
11815 (step_command_fsm::should_stop): Rename from
11816 step_command_fsm_should_stop.
11817 (step_command_fsm::clean_up): Rename from
11818 step_command_fsm_clean_up.
11819 (step_command_fsm::do_async_reply_reason): Rename from
11820 step_command_fsm_async_reply_reason.
11821 (struct until_next_fsm): Inherit from thread_fsm. Add
11822 constructor.
11823 (until_next_fsm_ops): Remove.
11824 (new_until_next_fsm): Remove.
11825 (until_next_fsm::should_stop): Rename from
11826 until_next_fsm_should_stop.
11827 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
11828 (until_next_fsm::do_async_reply_reason): Rename from
11829 until_next_fsm_async_reply_reason.
11830 (struct finish_command_fsm): Inherit from thread_fsm. Add
11831 constructor. Change type of breakpoint.
11832 (finish_command_fsm_ops): Remove.
11833 (new_finish_command_fsm): Remove.
11834 (finish_command_fsm::should_stop): Rename from
11835 finish_command_fsm_should_stop.
11836 (finish_command_fsm::clean_up): Rename from
11837 finish_command_fsm_clean_up.
11838 (finish_command_fsm::return_value): Rename from
11839 finish_command_fsm_return_value.
11840 (finish_command_fsm::do_async_reply_reason): Rename from
11841 finish_command_fsm_async_reply_reason.
11842 (finish_command): Update.
11843 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
11844 Add constructor.
11845 (call_thread_fsm_ops): Remove.
11846 (call_thread_fsm::call_thread_fsm): Rename from
11847 new_call_thread_fsm.
11848 (call_thread_fsm::should_stop): Rename from
11849 call_thread_fsm_should_stop.
11850 (call_thread_fsm::should_notify_stop): Rename from
11851 call_thread_fsm_should_notify_stop.
11852 (run_inferior_call, call_function_by_hand_dummy): Update.
11853 * cli/cli-interp.c (should_print_stop_to_console): Update.
11854 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
11855 Add constructor. Change type of location_breakpoint,
11856 caller_breakpoint.
11857 (until_break_fsm_ops): Remove.
11858 (new_until_break_fsm): Remove.
11859 (until_break_fsm::should_stop): Rename from
11860 until_break_fsm_should_stop.
11861 (until_break_fsm::clean_up): Rename from
11862 until_break_fsm_clean_up.
11863 (until_break_fsm::do_async_reply_reason): Rename from
11864 until_break_fsm_async_reply_reason.
11865 (until_break_command): Update.
11866 * thread-fsm.c: Remove.
11867 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
11868
11869 2019-02-07 Tom Tromey <tom@tromey.com>
11870
11871 * yy-remap.h: Add include guard.
11872 * xtensa-tdep.h: Add include guard.
11873 * xcoffread.h: Rename include guard.
11874 * varobj-iter.h: Add include guard.
11875 * tui/tui.h: Rename include guard.
11876 * tui/tui-winsource.h: Rename include guard.
11877 * tui/tui-wingeneral.h: Rename include guard.
11878 * tui/tui-windata.h: Rename include guard.
11879 * tui/tui-win.h: Rename include guard.
11880 * tui/tui-stack.h: Rename include guard.
11881 * tui/tui-source.h: Rename include guard.
11882 * tui/tui-regs.h: Rename include guard.
11883 * tui/tui-out.h: Rename include guard.
11884 * tui/tui-layout.h: Rename include guard.
11885 * tui/tui-io.h: Rename include guard.
11886 * tui/tui-hooks.h: Rename include guard.
11887 * tui/tui-file.h: Rename include guard.
11888 * tui/tui-disasm.h: Rename include guard.
11889 * tui/tui-data.h: Rename include guard.
11890 * tui/tui-command.h: Rename include guard.
11891 * tic6x-tdep.h: Add include guard.
11892 * target/waitstatus.h: Rename include guard.
11893 * target/wait.h: Rename include guard.
11894 * target/target.h: Rename include guard.
11895 * target/resume.h: Rename include guard.
11896 * target-float.h: Rename include guard.
11897 * stabsread.h: Add include guard.
11898 * rs6000-tdep.h: Add include guard.
11899 * riscv-fbsd-tdep.h: Add include guard.
11900 * regformats/regdef.h: Rename include guard.
11901 * record.h: Rename include guard.
11902 * python/python.h: Rename include guard.
11903 * python/python-internal.h: Rename include guard.
11904 * python/py-stopevent.h: Rename include guard.
11905 * python/py-ref.h: Rename include guard.
11906 * python/py-record.h: Rename include guard.
11907 * python/py-record-full.h: Rename include guard.
11908 * python/py-record-btrace.h: Rename include guard.
11909 * python/py-instruction.h: Rename include guard.
11910 * python/py-events.h: Rename include guard.
11911 * python/py-event.h: Rename include guard.
11912 * procfs.h: Add include guard.
11913 * proc-utils.h: Add include guard.
11914 * p-lang.h: Add include guard.
11915 * or1k-tdep.h: Rename include guard.
11916 * observable.h: Rename include guard.
11917 * nto-tdep.h: Rename include guard.
11918 * nat/x86-linux.h: Rename include guard.
11919 * nat/x86-linux-dregs.h: Rename include guard.
11920 * nat/x86-gcc-cpuid.h: Add include guard.
11921 * nat/x86-dregs.h: Rename include guard.
11922 * nat/x86-cpuid.h: Rename include guard.
11923 * nat/ppc-linux.h: Rename include guard.
11924 * nat/mips-linux-watch.h: Rename include guard.
11925 * nat/linux-waitpid.h: Rename include guard.
11926 * nat/linux-ptrace.h: Rename include guard.
11927 * nat/linux-procfs.h: Rename include guard.
11928 * nat/linux-osdata.h: Rename include guard.
11929 * nat/linux-nat.h: Rename include guard.
11930 * nat/linux-namespaces.h: Rename include guard.
11931 * nat/linux-btrace.h: Rename include guard.
11932 * nat/glibc_thread_db.h: Rename include guard.
11933 * nat/gdb_thread_db.h: Rename include guard.
11934 * nat/gdb_ptrace.h: Rename include guard.
11935 * nat/fork-inferior.h: Rename include guard.
11936 * nat/amd64-linux-siginfo.h: Rename include guard.
11937 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
11938 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
11939 * nat/aarch64-linux.h: Rename include guard.
11940 * nat/aarch64-linux-hw-point.h: Rename include guard.
11941 * mn10300-tdep.h: Add include guard.
11942 * mips-linux-tdep.h: Add include guard.
11943 * mi/mi-parse.h: Rename include guard.
11944 * mi/mi-out.h: Rename include guard.
11945 * mi/mi-main.h: Rename include guard.
11946 * mi/mi-interp.h: Rename include guard.
11947 * mi/mi-getopt.h: Rename include guard.
11948 * mi/mi-console.h: Rename include guard.
11949 * mi/mi-common.h: Rename include guard.
11950 * mi/mi-cmds.h: Rename include guard.
11951 * mi/mi-cmd-break.h: Rename include guard.
11952 * m2-lang.h: Add include guard.
11953 * location.h: Rename include guard.
11954 * linux-record.h: Rename include guard.
11955 * linux-nat.h: Add include guard.
11956 * linux-fork.h: Add include guard.
11957 * i386-darwin-tdep.h: Rename include guard.
11958 * hppa-linux-offsets.h: Add include guard.
11959 * guile/guile.h: Rename include guard.
11960 * guile/guile-internal.h: Rename include guard.
11961 * gnu-nat.h: Rename include guard.
11962 * gdb-stabs.h: Rename include guard.
11963 * frv-tdep.h: Add include guard.
11964 * f-lang.h: Add include guard.
11965 * event-loop.h: Add include guard.
11966 * darwin-nat.h: Rename include guard.
11967 * cp-abi.h: Rename include guard.
11968 * config/sparc/nm-sol2.h: Rename include guard.
11969 * config/nm-nto.h: Rename include guard.
11970 * config/nm-linux.h: Add include guard.
11971 * config/i386/nm-i386gnu.h: Rename include guard.
11972 * config/djgpp/nl_types.h: Rename include guard.
11973 * config/djgpp/langinfo.h: Rename include guard.
11974 * compile/gcc-cp-plugin.h: Add include guard.
11975 * compile/gcc-c-plugin.h: Add include guard.
11976 * compile/compile.h: Rename include guard.
11977 * compile/compile-object-run.h: Rename include guard.
11978 * compile/compile-object-load.h: Rename include guard.
11979 * compile/compile-internal.h: Rename include guard.
11980 * compile/compile-cplus.h: Rename include guard.
11981 * compile/compile-c.h: Rename include guard.
11982 * common/xml-utils.h: Rename include guard.
11983 * common/x86-xstate.h: Rename include guard.
11984 * common/version.h: Rename include guard.
11985 * common/vec.h: Rename include guard.
11986 * common/tdesc.h: Rename include guard.
11987 * common/selftest.h: Rename include guard.
11988 * common/scoped_restore.h: Rename include guard.
11989 * common/scoped_mmap.h: Rename include guard.
11990 * common/scoped_fd.h: Rename include guard.
11991 * common/safe-iterator.h: Rename include guard.
11992 * common/run-time-clock.h: Rename include guard.
11993 * common/refcounted-object.h: Rename include guard.
11994 * common/queue.h: Rename include guard.
11995 * common/ptid.h: Rename include guard.
11996 * common/print-utils.h: Rename include guard.
11997 * common/preprocessor.h: Rename include guard.
11998 * common/pathstuff.h: Rename include guard.
11999 * common/observable.h: Rename include guard.
12000 * common/netstuff.h: Rename include guard.
12001 * common/job-control.h: Rename include guard.
12002 * common/host-defs.h: Rename include guard.
12003 * common/gdb_wait.h: Rename include guard.
12004 * common/gdb_vecs.h: Rename include guard.
12005 * common/gdb_unlinker.h: Rename include guard.
12006 * common/gdb_unique_ptr.h: Rename include guard.
12007 * common/gdb_tilde_expand.h: Rename include guard.
12008 * common/gdb_sys_time.h: Rename include guard.
12009 * common/gdb_string_view.h: Rename include guard.
12010 * common/gdb_splay_tree.h: Rename include guard.
12011 * common/gdb_setjmp.h: Rename include guard.
12012 * common/gdb_ref_ptr.h: Rename include guard.
12013 * common/gdb_optional.h: Rename include guard.
12014 * common/gdb_locale.h: Rename include guard.
12015 * common/gdb_assert.h: Rename include guard.
12016 * common/filtered-iterator.h: Rename include guard.
12017 * common/filestuff.h: Rename include guard.
12018 * common/fileio.h: Rename include guard.
12019 * common/environ.h: Rename include guard.
12020 * common/common-utils.h: Rename include guard.
12021 * common/common-types.h: Rename include guard.
12022 * common/common-regcache.h: Rename include guard.
12023 * common/common-inferior.h: Rename include guard.
12024 * common/common-gdbthread.h: Rename include guard.
12025 * common/common-exceptions.h: Rename include guard.
12026 * common/common-defs.h: Rename include guard.
12027 * common/common-debug.h: Rename include guard.
12028 * common/cleanups.h: Rename include guard.
12029 * common/buffer.h: Rename include guard.
12030 * common/btrace-common.h: Rename include guard.
12031 * common/break-common.h: Rename include guard.
12032 * cli/cli-utils.h: Rename include guard.
12033 * cli/cli-style.h: Rename include guard.
12034 * cli/cli-setshow.h: Rename include guard.
12035 * cli/cli-script.h: Rename include guard.
12036 * cli/cli-interp.h: Rename include guard.
12037 * cli/cli-decode.h: Rename include guard.
12038 * cli/cli-cmds.h: Rename include guard.
12039 * charset-list.h: Add include guard.
12040 * buildsym-legacy.h: Rename include guard.
12041 * bfin-tdep.h: Add include guard.
12042 * ax.h: Rename include guard.
12043 * arm-linux-tdep.h: Add include guard.
12044 * arm-fbsd-tdep.h: Add include guard.
12045 * arch/xtensa.h: Rename include guard.
12046 * arch/tic6x.h: Add include guard.
12047 * arch/i386.h: Add include guard.
12048 * arch/arm.h: Rename include guard.
12049 * arch/arm-linux.h: Rename include guard.
12050 * arch/arm-get-next-pcs.h: Rename include guard.
12051 * arch/amd64.h: Add include guard.
12052 * arch/aarch64-insn.h: Rename include guard.
12053 * arch-utils.h: Rename include guard.
12054 * annotate.h: Add include guard.
12055 * amd64-darwin-tdep.h: Rename include guard.
12056 * aarch64-linux-tdep.h: Add include guard.
12057 * aarch64-fbsd-tdep.h: Add include guard.
12058 * aarch32-linux-nat.h: Add include guard.
12059
12060 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12061
12062 * macrotab.c (macro_define_internal): New function that
12063 factorizes macro_define_object_internal and macro_define_function
12064 code.
12065 (macro_define_object_internal): Use macro_define_internal.
12066 (macro_define_function): Likewise.
12067
12068 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12069
12070 * macrocmd.c (extract_identifier): Return
12071 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
12072 callers.
12073
12074 2019-02-06 John Baldwin <jhb@FreeBSD.org>
12075
12076 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
12077
12078 2019-02-05 Tom Tromey <tom@tromey.com>
12079
12080 * target.c (target_stack::unpush): Move assertion earlier.
12081
12082 2019-01-30 Tom Tromey <tom@tromey.com>
12083
12084 PR python/23615:
12085 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
12086 (gdbpy_parse_and_eval): Likewise.
12087 * python/python-internal.h (gdbpy_allow_threads): New class.
12088
12089 2019-01-28 John Baldwin <jhb@FreeBSD.org>
12090
12091 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
12092 (aarch64_fbsd_fpregmap): Move earlier.
12093 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
12094 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12095 instead of individual calls to trad_frame_set_reg_addr.
12096 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
12097 earlier.
12098 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
12099 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12100 instead of individual calls to trad_frame_set_reg_addr.
12101
12102 2019-01-28 Alan Hayward <alan.hayward@arm.com>
12103
12104 * CONTRIBUTE: Replace contribution list with wiki link.
12105
12106 2019-01-25 Tom Tromey <tom@tromey.com>
12107
12108 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
12109
12110 2019-01-25 Tom Tromey <tom@tromey.com>
12111
12112 * xtensa-linux-nat.c: Fix common/ includes.
12113 * xml-support.h: Fix common/ includes.
12114 * xml-support.c: Fix common/ includes.
12115 * x86-linux-nat.c: Fix common/ includes.
12116 * windows-nat.c: Fix common/ includes.
12117 * varobj.h: Fix common/ includes.
12118 * varobj.c: Fix common/ includes.
12119 * value.c: Fix common/ includes.
12120 * valops.c: Fix common/ includes.
12121 * utils.c: Fix common/ includes.
12122 * unittests/xml-utils-selftests.c: Fix common/ includes.
12123 * unittests/utils-selftests.c: Fix common/ includes.
12124 * unittests/unpack-selftests.c: Fix common/ includes.
12125 * unittests/tracepoint-selftests.c: Fix common/ includes.
12126 * unittests/style-selftests.c: Fix common/ includes.
12127 * unittests/string_view-selftests.c: Fix common/ includes.
12128 * unittests/scoped_restore-selftests.c: Fix common/ includes.
12129 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
12130 * unittests/scoped_fd-selftests.c: Fix common/ includes.
12131 * unittests/rsp-low-selftests.c: Fix common/ includes.
12132 * unittests/parse-connection-spec-selftests.c: Fix common/
12133 includes.
12134 * unittests/optional-selftests.c: Fix common/ includes.
12135 * unittests/offset-type-selftests.c: Fix common/ includes.
12136 * unittests/observable-selftests.c: Fix common/ includes.
12137 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
12138 * unittests/memrange-selftests.c: Fix common/ includes.
12139 * unittests/memory-map-selftests.c: Fix common/ includes.
12140 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
12141 * unittests/function-view-selftests.c: Fix common/ includes.
12142 * unittests/environ-selftests.c: Fix common/ includes.
12143 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
12144 * unittests/common-utils-selftests.c: Fix common/ includes.
12145 * unittests/cli-utils-selftests.c: Fix common/ includes.
12146 * unittests/array-view-selftests.c: Fix common/ includes.
12147 * ui-file.c: Fix common/ includes.
12148 * tui/tui-io.c: Fix common/ includes.
12149 * tracepoint.h: Fix common/ includes.
12150 * tracepoint.c: Fix common/ includes.
12151 * tracefile-tfile.c: Fix common/ includes.
12152 * top.h: Fix common/ includes.
12153 * top.c: Fix common/ includes.
12154 * thread.c: Fix common/ includes.
12155 * target/waitstatus.h: Fix common/ includes.
12156 * target/waitstatus.c: Fix common/ includes.
12157 * target.h: Fix common/ includes.
12158 * target.c: Fix common/ includes.
12159 * target-memory.c: Fix common/ includes.
12160 * target-descriptions.c: Fix common/ includes.
12161 * symtab.h: Fix common/ includes.
12162 * symfile.c: Fix common/ includes.
12163 * stap-probe.c: Fix common/ includes.
12164 * spu-linux-nat.c: Fix common/ includes.
12165 * sparc-nat.c: Fix common/ includes.
12166 * source.c: Fix common/ includes.
12167 * solib.c: Fix common/ includes.
12168 * solib-target.c: Fix common/ includes.
12169 * ser-unix.c: Fix common/ includes.
12170 * ser-tcp.c: Fix common/ includes.
12171 * ser-pipe.c: Fix common/ includes.
12172 * ser-base.c: Fix common/ includes.
12173 * selftest-arch.c: Fix common/ includes.
12174 * s12z-tdep.c: Fix common/ includes.
12175 * rust-exp.y: Fix common/ includes.
12176 * rs6000-aix-tdep.c: Fix common/ includes.
12177 * riscv-tdep.c: Fix common/ includes.
12178 * remote.c: Fix common/ includes.
12179 * remote-notif.h: Fix common/ includes.
12180 * remote-fileio.h: Fix common/ includes.
12181 * remote-fileio.c: Fix common/ includes.
12182 * regcache.h: Fix common/ includes.
12183 * regcache.c: Fix common/ includes.
12184 * record-btrace.c: Fix common/ includes.
12185 * python/python.c: Fix common/ includes.
12186 * python/py-type.c: Fix common/ includes.
12187 * python/py-inferior.c: Fix common/ includes.
12188 * progspace.h: Fix common/ includes.
12189 * producer.c: Fix common/ includes.
12190 * procfs.c: Fix common/ includes.
12191 * proc-api.c: Fix common/ includes.
12192 * printcmd.c: Fix common/ includes.
12193 * ppc-linux-nat.c: Fix common/ includes.
12194 * parser-defs.h: Fix common/ includes.
12195 * osdata.c: Fix common/ includes.
12196 * obsd-nat.c: Fix common/ includes.
12197 * nat/x86-linux.c: Fix common/ includes.
12198 * nat/x86-linux-dregs.c: Fix common/ includes.
12199 * nat/x86-dregs.h: Fix common/ includes.
12200 * nat/x86-dregs.c: Fix common/ includes.
12201 * nat/ppc-linux.c: Fix common/ includes.
12202 * nat/mips-linux-watch.h: Fix common/ includes.
12203 * nat/mips-linux-watch.c: Fix common/ includes.
12204 * nat/linux-waitpid.c: Fix common/ includes.
12205 * nat/linux-ptrace.h: Fix common/ includes.
12206 * nat/linux-ptrace.c: Fix common/ includes.
12207 * nat/linux-procfs.c: Fix common/ includes.
12208 * nat/linux-personality.c: Fix common/ includes.
12209 * nat/linux-osdata.c: Fix common/ includes.
12210 * nat/linux-namespaces.c: Fix common/ includes.
12211 * nat/linux-btrace.h: Fix common/ includes.
12212 * nat/linux-btrace.c: Fix common/ includes.
12213 * nat/fork-inferior.c: Fix common/ includes.
12214 * nat/amd64-linux-siginfo.c: Fix common/ includes.
12215 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
12216 * nat/aarch64-linux.c: Fix common/ includes.
12217 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
12218 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
12219 * namespace.h: Fix common/ includes.
12220 * mips-linux-tdep.c: Fix common/ includes.
12221 * minsyms.c: Fix common/ includes.
12222 * mi/mi-parse.h: Fix common/ includes.
12223 * mi/mi-main.c: Fix common/ includes.
12224 * mi/mi-cmd-env.c: Fix common/ includes.
12225 * memrange.h: Fix common/ includes.
12226 * memattr.c: Fix common/ includes.
12227 * maint.h: Fix common/ includes.
12228 * maint.c: Fix common/ includes.
12229 * main.c: Fix common/ includes.
12230 * machoread.c: Fix common/ includes.
12231 * location.c: Fix common/ includes.
12232 * linux-thread-db.c: Fix common/ includes.
12233 * linux-nat.c: Fix common/ includes.
12234 * linux-fork.c: Fix common/ includes.
12235 * inline-frame.c: Fix common/ includes.
12236 * infrun.c: Fix common/ includes.
12237 * inflow.c: Fix common/ includes.
12238 * inferior.h: Fix common/ includes.
12239 * inferior.c: Fix common/ includes.
12240 * infcmd.c: Fix common/ includes.
12241 * inf-ptrace.c: Fix common/ includes.
12242 * inf-child.c: Fix common/ includes.
12243 * ia64-linux-nat.c: Fix common/ includes.
12244 * i387-tdep.c: Fix common/ includes.
12245 * i386-tdep.c: Fix common/ includes.
12246 * i386-linux-tdep.c: Fix common/ includes.
12247 * i386-linux-nat.c: Fix common/ includes.
12248 * i386-go32-tdep.c: Fix common/ includes.
12249 * i386-fbsd-tdep.c: Fix common/ includes.
12250 * i386-fbsd-nat.c: Fix common/ includes.
12251 * guile/scm-type.c: Fix common/ includes.
12252 * guile/guile.c: Fix common/ includes.
12253 * go32-nat.c: Fix common/ includes.
12254 * gnu-nat.c: Fix common/ includes.
12255 * gdbthread.h: Fix common/ includes.
12256 * gdbarch-selftests.c: Fix common/ includes.
12257 * gdb_usleep.c: Fix common/ includes.
12258 * gdb_select.h: Fix common/ includes.
12259 * gdb_bfd.c: Fix common/ includes.
12260 * gcore.c: Fix common/ includes.
12261 * fork-child.c: Fix common/ includes.
12262 * findvar.c: Fix common/ includes.
12263 * fbsd-nat.c: Fix common/ includes.
12264 * event-top.c: Fix common/ includes.
12265 * event-loop.c: Fix common/ includes.
12266 * dwarf2read.c: Fix common/ includes.
12267 * dwarf2loc.c: Fix common/ includes.
12268 * dwarf2-frame.c: Fix common/ includes.
12269 * dwarf-index-cache.c: Fix common/ includes.
12270 * dtrace-probe.c: Fix common/ includes.
12271 * disasm-selftests.c: Fix common/ includes.
12272 * defs.h: Fix common/ includes.
12273 * csky-tdep.c: Fix common/ includes.
12274 * cp-valprint.c: Fix common/ includes.
12275 * cp-support.h: Fix common/ includes.
12276 * cp-support.c: Fix common/ includes.
12277 * corelow.c: Fix common/ includes.
12278 * completer.h: Fix common/ includes.
12279 * completer.c: Fix common/ includes.
12280 * compile/compile.c: Fix common/ includes.
12281 * compile/compile-loc2c.c: Fix common/ includes.
12282 * compile/compile-cplus-types.c: Fix common/ includes.
12283 * compile/compile-cplus-symbols.c: Fix common/ includes.
12284 * command.h: Fix common/ includes.
12285 * cli/cli-dump.c: Fix common/ includes.
12286 * cli/cli-cmds.c: Fix common/ includes.
12287 * charset.c: Fix common/ includes.
12288 * build-id.c: Fix common/ includes.
12289 * btrace.h: Fix common/ includes.
12290 * btrace.c: Fix common/ includes.
12291 * breakpoint.h: Fix common/ includes.
12292 * breakpoint.c: Fix common/ includes.
12293 * ax.h:
12294 (enum agent_op): Fix common/ includes.
12295 * ax-general.c (struct aop_map): Fix common/ includes.
12296 * ax-gdb.c: Fix common/ includes.
12297 * auxv.c: Fix common/ includes.
12298 * auto-load.c: Fix common/ includes.
12299 * arm-tdep.c: Fix common/ includes.
12300 * arch/riscv.c: Fix common/ includes.
12301 * arch/ppc-linux-common.c: Fix common/ includes.
12302 * arch/i386.c: Fix common/ includes.
12303 * arch/arm.c: Fix common/ includes.
12304 * arch/arm-linux.c: Fix common/ includes.
12305 * arch/arm-get-next-pcs.c: Fix common/ includes.
12306 * arch/amd64.c: Fix common/ includes.
12307 * arch/aarch64.c: Fix common/ includes.
12308 * arch/aarch64-insn.c: Fix common/ includes.
12309 * arch-utils.c: Fix common/ includes.
12310 * amd64-windows-tdep.c: Fix common/ includes.
12311 * amd64-tdep.c: Fix common/ includes.
12312 * amd64-sol2-tdep.c: Fix common/ includes.
12313 * amd64-obsd-tdep.c: Fix common/ includes.
12314 * amd64-nbsd-tdep.c: Fix common/ includes.
12315 * amd64-linux-tdep.c: Fix common/ includes.
12316 * amd64-linux-nat.c: Fix common/ includes.
12317 * amd64-fbsd-tdep.c: Fix common/ includes.
12318 * amd64-fbsd-nat.c: Fix common/ includes.
12319 * amd64-dicos-tdep.c: Fix common/ includes.
12320 * amd64-darwin-tdep.c: Fix common/ includes.
12321 * agent.c: Fix common/ includes.
12322 * ada-lang.h: Fix common/ includes.
12323 * ada-lang.c: Fix common/ includes.
12324 * aarch64-tdep.c: Fix common/ includes.
12325
12326 2019-01-25 Tom Tromey <tom@tromey.com>
12327
12328 * common/create-version.sh: Use common/version.h.
12329
12330 2019-01-24 Pedro Alves <palves@redhat.com>
12331
12332 * infrun.c (signal_stop, signal_print, signal_program)
12333 (signal_catch, signal_pass): Now arrays instead of pointers.
12334 (update_signals_program_target, do_target_resume)
12335 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
12336 * linux-nat.c (linux_nat_target::pass_signals)
12337 (linux_nat_target::create_inferior, linux_nat_target::attach):
12338 Adjust.
12339 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
12340 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
12341 * procfs.c (procfs_target::pass_signals): Adjust.
12342 * record-full.c (record_full_target::resume): Adjust.
12343 * remote.c (remote_target::pass_signals)
12344 (remote_target::program_signals): Adjust.
12345 * target-debug.h (target_debug_print_signals): Now takes a
12346 gdb::array_view as parameter. Adjust.
12347 * target.h (target_ops) <pass_signals, program_signals>: Replace
12348 pointer and length parameters with gdb::array_view.
12349 (target_pass_signals, target_program_signals): Likewise.
12350 * target-delegates.c: Regenerate.
12351
12352 2019-01-24 Pedro Alves <palves@redhat.com>
12353
12354 * common/forward-scope-exit.h
12355 (forward_scope_exit::forward_scope_exit): Pass arguments to
12356 m_bind_function directly, instead of creating a std::bind and
12357 copying that.
12358
12359 2019-01-24 Alan Hayward <alan.hayward@arm.com>
12360
12361 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12362 for static members.
12363 (pass_in_v_vfp_candidate): Likewise.
12364
12365 2019-01-23 Tom Tromey <tom@tromey.com>
12366 Pedro Alves <palves@redhat.com>
12367
12368 * regcache.c (class regcache_invalidator): Remove.
12369 (regcache::raw_write): Use make_scope_exit.
12370
12371 2019-01-23 Tom Tromey <tom@tromey.com>
12372
12373 * ui-out.h (class ui_out_emit_type): Update comment.
12374
12375 2019-01-23 Tom Tromey <tom@tromey.com>
12376
12377 * infrun.c (fetch_inferior_event): Update comment.
12378
12379 2019-01-23 Tom Tromey <tom@tromey.com>
12380 Pedro Alves <palves@redhat.com>
12381
12382 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
12383 parameter.
12384 (fetch_inferior_event): Use SCOPE_EXIT.
12385
12386
12387 2019-01-23 Tom Tromey <tom@tromey.com>
12388 Pedro Alves <palves@redhat.com>
12389
12390 * infrun.c (disable_thread_events): Delete.
12391 (stop_all_threads): Use SCOPE_EXIT.
12392
12393 2019-01-23 Tom Tromey <tom@tromey.com>
12394 Pedro Alves <palves@redhat.com>
12395
12396 * symfile.c: Include forward-scope-exit.h.
12397 (clear_symtab_users_cleanup): Replace forward declaration with
12398 a FORWARD_SCOPE_EXIT.
12399 (syms_from_objfile_1): Use the forward_scope_exit and
12400 gdb::optional instead of cleanup_function.
12401 (reread_symbols): Use the forward_scope_exit instead of
12402 cleanup_function.
12403 (clear_symtab_users_cleanup): Remove function.
12404
12405 2019-01-23 Tom Tromey <tom@tromey.com>
12406 Pedro Alves <palves@redhat.com>
12407
12408 * linux-nat.c: Include scope-exit.h.
12409 (cleanup_target_stop): Remove.
12410 (linux_nat_target::static_tracepoint_markers_by_strid): Use
12411 SCOPE_EXIT.
12412
12413 2019-01-23 Tom Tromey <tom@tromey.com>
12414 Pedro Alves <palves@redhat.com>
12415
12416 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
12417 (call_function_by_hand_dummy): Use SCOPE_EXIT.
12418
12419 2019-01-23 Tom Tromey <tom@tromey.com>
12420 Andrew Burgess <andrew.burgess@embecosm.com>
12421 Pedro Alves <palves@redhat.com>
12422
12423 * infrun.c (fetch_inferior_event): Use scope_exit.
12424 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
12425 * top.c (execute_command): Use scope_exit.
12426 * breakpoint.c (bpstat_do_actions): Use scope_exit.
12427 * utils.c (do_bpstat_clear_actions_cleanup)
12428 (make_bpstat_clear_actions_cleanup): Remove.
12429
12430 2019-01-23 Tom Tromey <tom@tromey.com>
12431 Pedro Alves <palves@redhat.com>
12432
12433 * infrun.c: Include "common/scope-exit.h"
12434 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
12435 (wait_for_inferior): Use SCOPE_EXIT.
12436 (fetch_inferior_event): Use scope_exit.
12437
12438 2019-01-23 Tom Tromey <tom@tromey.com>
12439 Pedro Alves <palves@redhat.com>
12440
12441 * breakpoint.c (create_breakpoint): Remove cleanup.
12442
12443 2019-01-23 Tom Tromey <tom@tromey.com>
12444 Andrew Burgess <andrew.burgess@embecosm.com>
12445 Pedro Alves <palves@redhat.com>
12446
12447 2019-01-23 Pedro Alves <palves@redhat.com>
12448
12449 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
12450
12451 2019-01-23 Pedro Alves <palves@redhat.com>
12452 Andrew Burgess <andrew.burgess@embecosm.com>
12453
12454 * gdbthread.h: Include "common/forward-scope-exit.h".
12455 (scoped_finish_thread_state): Redefine custom class in terms of
12456 forward_scope_exit.
12457
12458 2019-01-23 Pedro Alves <palves@redhat.com>
12459 Andrew Burgess <andrew.burgess@embecosm.com>
12460
12461 * common/forward-scope-exit.h: New file.
12462
12463 2019-01-23 Pedro Alves <palves@redhat.com>
12464 Andrew Burgess <andrew.burgess@embecosm.com>
12465 Tom Tromey <tom@tromey.com>
12466
12467 * common/scope-exit.h: New file.
12468
12469 2019-01-23 Pedro Alves <palves@redhat.com>
12470
12471 * common/preprocessor.h (ESC): Rename to ...
12472 (ESC_PARENS): ... this.
12473 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
12474 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
12475
12476 2019-01-23 Tom Tromey <tom@tromey.com>
12477
12478 * language.h (class scoped_switch_to_sym_language_if_auto):
12479 Initialize m_lang in both cases.
12480
12481 2019-01-23 Alan Hayward <alan.hayward@arm.com>
12482
12483 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
12484 with XCNEW.
12485
12486 2019-01-22 Tom Tromey <tom@tromey.com>
12487
12488 * corelow.c: Do not include sys/file.h.
12489
12490 2019-01-22 Tom Tromey <tom@tromey.com>
12491
12492 * tui/tui-wingeneral.h: Include gdb_curses.h.
12493
12494 2019-01-22 Tom Tromey <tom@tromey.com>
12495
12496 * source-cache.h (class source_cache) <get_source_lines,
12497 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
12498
12499 2019-01-22 Tom Tromey <tom@tromey.com>
12500
12501 * remote-fileio.h (struct remote_target): Declare.
12502
12503 2019-01-22 Tom Tromey <tom@tromey.com>
12504
12505 * python/py-arch.c: Do not include py-ref.h.
12506 * python/py-bpevent.c: Do not include py-ref.h.
12507 * python/py-cmd.c: Do not include py-ref.h.
12508 * python/py-continueevent.c: Do not include py-ref.h.
12509 * python/py-event.h: Do not include py-ref.h.
12510 * python/py-evtregistry.c: Do not include py-ref.h.
12511 * python/py-finishbreakpoint.c: Do not include py-ref.h.
12512 * python/py-frame.c: Do not include py-ref.h.
12513 * python/py-framefilter.c: Do not include py-ref.h.
12514 * python/py-function.c: Do not include py-ref.h.
12515 * python/py-infevents.c: Do not include py-ref.h.
12516 * python/py-linetable.c: Do not include py-ref.h.
12517 * python/py-objfile.c: Do not include py-ref.h.
12518 * python/py-param.c: Do not include py-ref.h.
12519 * python/py-prettyprint.c: Do not include py-ref.h.
12520 * python/py-progspace.c: Do not include py-ref.h.
12521 * python/py-symbol.c: Do not include py-ref.h.
12522 * python/py-symtab.c: Do not include py-ref.h.
12523 * python/py-type.c: Do not include py-ref.h.
12524 * python/py-unwind.c: Do not include py-ref.h.
12525 * python/py-utils.c: Do not include py-ref.h.
12526 * python/py-value.c: Do not include py-ref.h.
12527 * python/py-varobj.c: Do not include py-ref.h.
12528 * python/py-xmethods.c: Do not include py-ref.h.
12529 * python/python.c: Do not include py-ref.h.
12530 * varobj.c: Do not include py-ref.h.
12531
12532 2019-01-22 Tom Tromey <tom@tromey.com>
12533
12534 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
12535 keyword for bcache.
12536
12537 2019-01-22 Tom Tromey <tom@tromey.com>
12538
12539 * compile/compile-cplus-types.c: Remove a comment by #include.
12540
12541 2019-01-22 Tom Tromey <tom@tromey.com>
12542
12543 * compile/gcc-c-plugin.h: Include compile-internal.h.
12544
12545 2019-01-22 Tom Tromey <tom@tromey.com>
12546
12547 * stabsread.c (EXTERN): Do not define.
12548 (symnum, next_symbol_text_func, processing_gcc_compilation)
12549 (within_function, global_sym_chain, global_stabs)
12550 (previous_stab_code, this_object_header_files)
12551 (n_this_object_header_files)
12552 (n_allocated_this_object_header_files): Define.
12553 * stabsread.h (EXTERN): Never define. Use "extern".
12554
12555 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12556
12557 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
12558 history_value.
12559
12560 2019-01-21 Tom Tromey <tom@tromey.com>
12561
12562 * ui-out.c: Fix includes.
12563 * tui/tui-source.c: Fix includes.
12564 * target.c: Fix includes.
12565 * remote.c: Fix includes.
12566 * regcache.c: Fix includes.
12567 * python/py-block.c: Fix includes.
12568 * printcmd.c: Fix includes.
12569 * or1k-tdep.c: Fix includes.
12570 * mi/mi-main.c: Fix includes.
12571 * m32r-tdep.c: Fix includes.
12572 * csky-tdep.c: Fix includes.
12573 * compile/compile-cplus-types.c: Fix includes.
12574 * cli/cli-interp.c: Fix includes.
12575
12576 2019-01-21 Alan Hayward <alan.hayward@arm.com>
12577
12578 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12579 for padding.
12580
12581 2019-01-16 Tom Tromey <tom@tromey.com>
12582
12583 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
12584 earlier.
12585 (struct objfile) <msymbols_range>: Move from top level.
12586 <msymbols>: New method.
12587 (class objfile_msymbols): Remove.
12588 * symtab.c (default_collect_symbol_completion_matches_break_on):
12589 Update.
12590 * symmisc.c (dump_msymbols): Update.
12591 * stabsread.c (scan_file_globals): Update.
12592 * objc-lang.c (info_selectors_command, info_classes_command)
12593 (find_methods): Update.
12594 * minsyms.c (find_solib_trampoline_target): Update.
12595 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
12596 * coffread.c (coff_symfile_read): Update.
12597 * ada-lang.c (ada_lookup_simple_minsym)
12598 (ada_collect_symbol_completion_matches): Update.
12599
12600 2019-01-16 Tom Tromey <tom@tromey.com>
12601
12602 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
12603 type. Remove no-argument constructor.
12604 <iterator::operator++>: Simplify.
12605 <begin>: Update.
12606 <end>: Use minimal_symbol_count.
12607
12608 2019-01-16 Tom Tromey <tom@tromey.com>
12609
12610 * objfiles.h (struct objfile) <psymtabs>: New method.
12611 (class objfile_psymtabs): Remove.
12612 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
12613 typedef.
12614 <range>: New method.
12615 (require_partial_symbols): Change return type.
12616 * psymtab.c (require_partial_symbols)
12617 (psym_expand_symtabs_matching): Update.
12618 * mdebugread.c (parse_partial_symbols): Update.
12619 * dbxread.c (dbx_end_psymtab): Update.
12620
12621 2019-01-15 Tom Tromey <tom@tromey.com>
12622
12623 * symtab.c (lookup_objfile_from_block)
12624 (lookup_symbol_in_objfile_symtabs)
12625 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
12626 (find_line_symtab, info_sources_command)
12627 (default_collect_symbol_completion_matches_break_on)
12628 (make_source_files_completion_list): Update.
12629 * symmisc.c (print_objfile_statistics, dump_objfile)
12630 (maintenance_print_symbols, maintenance_info_symtabs)
12631 (maintenance_check_symtabs, maintenance_info_line_tables):
12632 Update.
12633 * source.c (select_source_symtab)
12634 (forget_cached_source_info_for_objfile): Update.
12635 * objfiles.h (class objfile_compunits): Remove.
12636 (struct objfile) <compunits_range>: New typedef.
12637 (compunits): New method.
12638 * objfiles.c (objfile_relocate1): Update.
12639 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12640 * maint.c (count_symtabs_and_blocks): Update.
12641 * linespec.c (iterate_over_all_matching_symtabs): Update.
12642 * cp-support.c (add_symbol_overload_list_qualified): Update.
12643 * coffread.c (coff_symtab_read): Update.
12644 * ada-lang.c (add_nonlocal_symbols)
12645 (ada_collect_symbol_completion_matches)
12646 (ada_add_global_exceptions): Update.
12647
12648 2019-01-15 Tom Tromey <tom@tromey.com>
12649
12650 * progspace.h (program_space) <objfiles_safe_range>: New
12651 typedef.
12652 <objfiles_safe>: New method.
12653 * objfiles.h (class all_objfiles_safe): Remove.
12654 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
12655 * jit.c (jit_inferior_exit_hook): Update.
12656
12657 2019-01-17 Tom Tromey <tom@tromey.com>
12658
12659 * progspace.h (program_space) <objfiles_range>: New typedef.
12660 <objfiles>: New method.
12661 <objfiles_head>: Rename from objfiles.
12662 (object_files): Update.
12663 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
12664 * guile/scm-pretty-print.c
12665 (ppscm_find_pretty_printer_from_objfiles): Update.
12666 * guile/scm-objfile.c (gdbscm_objfiles): Update.
12667 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
12668 Update.
12669 * python/py-progspace.c (pspy_get_objfiles): Update.
12670 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12671 Update.
12672 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12673 (objfpy_lookup_objfile_by_build_id): Update.
12674 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12675 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12676 Update.
12677 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12678 (expand_symtab_containing_pc, lookup_objfile_from_block)
12679 (lookup_static_symbol, basic_lookup_transparent_type)
12680 (find_pc_sect_compunit_symtab, find_symbol_at_address)
12681 (find_line_symtab, info_sources_command)
12682 (default_collect_symbol_completion_matches_break_on)
12683 (make_source_files_completion_list, find_main_name): Update.
12684 * symmisc.c (print_symbol_bcache_statistics)
12685 (print_objfile_statistics, maintenance_print_symbols)
12686 (maintenance_print_msymbols, maintenance_print_objfiles)
12687 (maintenance_info_symtabs, maintenance_check_symtabs)
12688 (maintenance_expand_symtabs, maintenance_info_line_tables):
12689 Update.
12690 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
12691 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
12692 (map_overlay_command, unmap_overlay_command)
12693 (simple_overlay_update, expand_symtabs_matching)
12694 (map_symbol_filenames): Update.
12695 * symfile-debug.c (set_debug_symfile): Update.
12696 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
12697 Update.
12698 * source.c (select_source_symtab, forget_cached_source_info):
12699 Update.
12700 * solib.c (solib_read_symbols): Update.
12701 * solib-spu.c (append_ocl_sos): Update.
12702 * psymtab.c (maintenance_print_psymbols)
12703 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
12704 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
12705 * printcmd.c (info_symbol_command): Update.
12706 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
12707 Update.
12708 * objfiles.h (class all_objfiles): Remove.
12709 * objfiles.c (have_partial_symbols, have_full_symbols)
12710 (have_minimal_symbols, qsort_cmp, update_section_map)
12711 (shared_objfile_contains_address_p)
12712 (default_iterate_over_objfiles_in_search_order): Update.
12713 * objc-lang.c (info_selectors_command, info_classes_command)
12714 (find_methods): Update.
12715 * minsyms.c (find_solib_trampoline_target): Update.
12716 * maint.c (maintenance_info_sections)
12717 (maintenance_translate_address, count_symtabs_and_blocks):
12718 Update.
12719 * main.c (captured_main_1): Update.
12720 * linux-thread-db.c (try_thread_db_load_from_pdir)
12721 (has_libpthread): Update.
12722 * linespec.c (iterate_over_all_matching_symtabs)
12723 (search_minsyms_for_name): Update.
12724 * jit.c (jit_find_objf_with_entry_addr): Update.
12725 * hppa-tdep.c (find_unwind_entry)
12726 (hppa_lookup_stub_minimal_symbol): Update.
12727 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
12728 Update.
12729 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12730 (elf_gnu_ifunc_resolve_by_got): Update.
12731 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
12732 * dwarf-index-write.c (save_gdb_index_command): Update.
12733 * cp-support.c (add_symbol_overload_list_qualified): Update.
12734 * breakpoint.c (create_overlay_event_breakpoint)
12735 (create_longjmp_master_breakpoint)
12736 (create_std_terminate_master_breakpoint)
12737 (create_exception_master_breakpoint): Update.
12738 * blockframe.c (find_pc_partial_function): Update.
12739 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
12740 (ada_collect_symbol_completion_matches)
12741 (ada_add_global_exceptions): Update.
12742
12743 2019-01-17 Tom Tromey <tom@tromey.com>
12744
12745 * solib-target.c (lm_info_target_p): Remove typedef. Don't
12746 declare VEC.
12747 (solib_target_parse_libraries): Change return type.
12748 (library_list_start_segment, library_list_start_section)
12749 (library_list_end_library, library_list_start_library); Update.
12750 (solib_target_free_library_list): Remove.
12751 (solib_target_parse_libraries): Remove cleanup. Change return
12752 type.
12753 (solib_target_current_sos): Update.
12754
12755 2019-01-17 Tom Tromey <tromey@bapiya>
12756
12757 * valprint.c: Replace "the the" with "the".
12758 * symtab.c: Replace "the the" with "the".
12759 * solib.c: Replace "the the" with "the".
12760 * solib-dsbt.c: Replace "the the" with "the".
12761 * linespec.c: Replace "the the" with "the".
12762 * dwarf2loc.h: Replace "the the" with "the".
12763 * amd64-windows-tdep.c: Replace "the the" with "the".
12764 * aarch64-tdep.c: Replace "the the" with "the".
12765
12766 2019-01-16 Keith Seitz <keiths@redhat.com>
12767
12768 PR gdb/23773
12769 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
12770 <builder>: Rename to ..
12771 <m_builder>: ... this and make private.
12772 (dwarf2_cu::get_builder): New method. Change all users of
12773 `builder' to use this method.
12774 (dwarf2_start_symtab): Move to ...
12775 (dwarf2_cu::start_symtab): ... here. Update all callers
12776 (setup_type_unit_groups): Move to ...
12777 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
12778 callers.
12779 (dwarf2_cu::reset_builder): New method.
12780 (process_full_compunit, process_full_type_unit): Use
12781 dwarf2_cu::reset_builder.
12782 (follow_die_offset): Record the ancestor CU if it is different
12783 from the followed DIE's CU.
12784 (follow_die_sig_1): Likewise.
12785
12786 2019-01-15 Tom Tromey <tom@tromey.com>
12787
12788 * remote.c (class remote_state) <buf>: Now a char_vector.
12789 <buf_size>: Remove.
12790 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
12791 parameter.
12792 (remote_target::getpkt_or_notif_sane_1)
12793 (remote_target::getpkt_sane)
12794 (remote_target::getpkt_or_notif_sane): Likewise.
12795 (class remote_target) <putpkt>: New overload.
12796 (remote_target::read_frame): Change type of "buf_p". Remove
12797 sizeof_p parameter.
12798 (packet_ok): New overload.
12799 (packet_check_result): New overload.
12800 Update all uses.
12801
12802 2019-01-14 Tom Tromey <tom@tromey.com>
12803
12804 * remote-notif.c (handle_notification, remote_notif_ack)
12805 (remote_notif_parse): Make "buf" const.
12806 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
12807 const.
12808 (remote_notif_parse, remote_notif_ack, handle_notification):
12809 Likewise.
12810 * remote.c (remote_notif_stop_parse): Make "buf" const.
12811 (remote_target::remote_parse_stop_reply): Make "buf" const.
12812 (remote_notif_stop_ack): Make "buf" const.
12813
12814 2019-01-14 Tom Tromey <tom@tromey.com>
12815
12816 * remote.c (remote_console_output): Make parameter const.
12817
12818 2019-01-14 Tom Tromey <tom@tromey.com>
12819
12820 * target-debug.h (target_debug_print_signals): Constify.
12821 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
12822 * procfs.c (procfs_target::pass_signals): Update.
12823 * linux-nat.c (linux_nat_target::pass_signals): Update.
12824 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
12825 * target-delegates.c: Rebuild.
12826 * remote.c (remote_target::program_signals): Update.
12827 (remote_target::pass_signals): Update.
12828 * target.c (target_pass_signals): Constify argument.
12829 (target_program_signals): Likewise.
12830 * target.h (struct target_ops) <pass_signals, program_signals>:
12831 Constify argument.
12832 (target_pass_signals, target_program_signals): Constify argument.
12833
12834 2019-01-14 Tom Tromey <tom@tromey.com>
12835
12836 PR tui/28819:
12837 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
12838
12839 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12840
12841 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
12842 field.
12843 * rs6000-tdep.c: Include reggroups.h.
12844 (IS_V_ALIAS_PSEUDOREG): Define.
12845 (rs6000_register_name): Return names for the "vX" aliases.
12846 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
12847 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
12848 aliases. Call default_register_reggroup_p for all other
12849 pseudo-registers.
12850 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
12851 New functions.
12852 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
12853 Handle "vX" aliases.
12854 (v_alias_pseudo_register_collect): New function.
12855 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
12856 (rs6000_gdbarch_init): Initialize "vX" aliases as
12857 pseudo-registers. Restore registration of
12858 rs6000_pseudo_register_reggroup_p with
12859 set_tdesc_pseudo_register_reggroup_p.
12860
12861 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
12862
12863 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
12864 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
12865 set_gdbarch_num_pseudo_regs.
12866
12867 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12868
12869 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
12870 Remove arg prefixname, add do_set and do_show.
12871 Add member functions set_list and show_list.
12872 * cli/cli-style.c (class cli_style_option): Update accordingly.
12873 (style_set_list): Move to file scope.
12874 (style_show_list): Likewise.
12875 (set_style): Call help_list.
12876 (show_style): Call cmd_show_list.
12877 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
12878 Update to use the new macro.
12879
12880 2019-10-12 Joel Brobecker <brobecker@adacore.com>
12881
12882 * ada-lang.c (_initialize_ada_language): Expand the help text
12883 for the "catch exception" command.
12884
12885 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12886
12887 * symtab.c (matching_obj_sections): Initialize obj,
12888 declare it closer to its usage.
12889
12890 2019-01-10 Tom Tromey <tom@tromey.com>
12891
12892 * thread-iter.h (inf_threads_iterator): Use next_iterator.
12893 (basic_inf_threads_range): Remove.
12894 (inf_threads_range, inf_non_exited_threads_range)
12895 (safe_inf_threads_range): Use next_adapter.
12896
12897 2019-01-10 Keith Seitz <keiths@redhat.com>
12898
12899 PR gdb/23712
12900 PR symtab/23010
12901 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
12902 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
12903
12904 2019-01-10 Keith Seitz <keiths@redhat.com>
12905
12906 PR gdb/23712
12907 PR symtab/23010
12908 * dictionary.c (pending_to_vector): Remove.
12909 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12910 Remove _1 suffix, replacing functions of the same name. Update
12911 all callers.
12912 (dict_create_hashed, dict_create_hashed_expandable)
12913 (dict_create_linear, dict_create_linear_expandable, dict_free)
12914 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
12915 Make functions static.
12916
12917 2019-01-10 Keith Seitz <keiths@redhat.com>
12918
12919 PR gdb/23712
12920 PR symtab/23010
12921 * dictionary.h (struct dictionary): Replace declaration with
12922 multidictionary.
12923 (dict_create_hashed, dict_create_hashed_expandable)
12924 (dict_create_linear, dict_create_linear_expandable)
12925 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
12926 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
12927 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
12928 taking multidictionary argument.
12929 [ALL_DICT_SYMBOLS]: Update for multidictionary.
12930 * block.h (struct block) <dict>: Change to multidictionary
12931 and rename `multidict'.
12932 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
12933 symmisc.c: Update all dictionary references to multidictionary.
12934
12935 2019-01-10 Keith Seitz <keiths@redhat.com>
12936
12937 PR gdb/23712
12938 PR symtab/23010
12939 * dictionary.c: Include unordered_map.
12940 (pending_to_vector): New function.
12941 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12942 Rewrite the non-"_1" functions to take vector instead
12943 of linked list.
12944 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
12945 "new" _1 versions of the same name.
12946 (multidictionary): Define.
12947 (std::hash<enum language): New definition.
12948 (collate_pending_symbols_by_language, mdict_create_hashed)
12949 (mdict_create_hashed_expandable, mdict_create_linear)
12950 (mdict_create_linear_expandable, mdict_free)
12951 (find_language_dictionary, create_new_language_dictionary)
12952 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
12953 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
12954 (mdict_size, mdict_empty): New functions.
12955 * dictionary.h (mdict_iterator): Define.
12956
12957 2019-01-10 Pedro Alves <palves@redhat.com>
12958
12959 * breakpoint.c (read_uploaded_action)
12960 (create_tracepoint_from_upload): Adjust to use
12961 gdb::unique_xmalloc_ptr.
12962 * ctf.c (ctf_write_uploaded_tp):
12963 (SET_ARRAY_FIELD): Use emplace_back.
12964 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
12965 * tracefile-tfile.c (tfile_write_uploaded_tp):
12966 * tracepoint.c (parse_tracepoint_definition): Adjust to use
12967 gdb::unique_xmalloc_ptr.
12968 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
12969 at_string, cond_string, cmd_strings>: Replace char pointers
12970 with gdb::unique_xmalloc_ptr.
12971
12972 2019-01-10 Pedro Alves <palves@redhat.com>
12973
12974 * solib-target.c (library_list_start_library): Don't xstrdup name.
12975
12976 2019-01-10 Pedro Alves <palves@redhat.com>
12977
12978 * mdebugread.c (parse_partial_symbols): Use
12979 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
12980
12981 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12982
12983 * linux-fork.c (scoped_switch_fork_info)
12984 <~scoped_switch_fork_info>: Fix incorrect variable name.
12985
12986 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12987
12988 * linux-fork.c (scoped_switch_fork_info)
12989 <scoped_switch_fork_info>: Make explicit.
12990 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
12991
12992 2019-01-10 Tom Tromey <tom@tromey.com>
12993
12994 * objfiles.h (objfile::reset_psymtabs): Update.
12995 * objfiles.c (objfile::objfile): Update.
12996 * psymtab.h (psymtab_storage::obstack): Update.
12997 (psymtab_storage::m_obstack): Use gdb::optional.
12998 (class psymtab_storage): Update comment. Remove objfile
12999 parameter.
13000 * psymtab.c (psymtab_storage::psymtab_storage): Update.
13001
13002 2019-01-10 Tom Tromey <tom@tromey.com>
13003
13004 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
13005 <free_psymtabs>: Now private.
13006 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
13007 (allocate_psymtab): Use new method.
13008
13009 2019-01-10 Tom Tromey <tom@tromey.com>
13010
13011 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
13012 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
13013 * mdebugread.c (parse_partial_symbols): Use
13014 allocate_dependencies.
13015 * dwarf2read.c (dwarf2_create_include_psymtab): Use
13016 allocate_dependencies.
13017 (process_psymtab_comp_unit_reader)
13018 (build_type_psymtab_dependencies): Likewise.
13019 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
13020
13021 2019-01-10 Tom Tromey <tom@tromey.com>
13022
13023 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
13024 PSYMBOL_SET_LANGUAGE.
13025 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
13026
13027 2019-01-10 Tom Tromey <tom@tromey.com>
13028
13029 * psymtab.h (psymtab_storage::obstack): New method.
13030 <m_obstack>: Rename from obstack; now private.
13031 * psymtab.c (psymtab_storage): Update.
13032 * dwarf2read.c (create_addrmap_from_index)
13033 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
13034 Update.
13035
13036 2019-01-10 Tom Tromey <tom@tromey.com>
13037
13038 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
13039 * objfiles.h (objfile::reset_psymtabs): New method.
13040
13041 2019-01-10 Tom Tromey <tom@tromey.com>
13042
13043 * symmisc.c (print_symbol_bcache_statistics): Update.
13044 (print_objfile_statistics): Update.
13045 * symfile.c (reread_symbols): Update.
13046 * psymtab.h (class psymtab_storage): New.
13047 * psymtab.c (psymtab_storage): New constructor.
13048 (~psymtab_storage): New destructor.
13049 (require_partial_symbols): Update.
13050 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
13051 (find_pc_sect_psymtab, find_pc_sect_psymbol)
13052 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
13053 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
13054 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
13055 (start_psymtab_common, end_psymtab_common)
13056 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
13057 (allocate_psymtab): Update.
13058 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
13059 Update.
13060 (dump_psymtab_addrmap, maintenance_print_psymbols)
13061 (maintenance_check_psymtabs): Update.
13062 (class objfile_psymtabs): Move to objfiles.h.
13063 * psympriv.h (discard_psymtab): Now inline.
13064 (psymtab_discarder::psymtab_discarder): Update.
13065 (psymtab_discarder::~psymtab_discarder): Update.
13066 (ALL_OBJFILE_PSYMTABS): Rewrite.
13067 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
13068 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
13069 Remove fields.
13070 <partial_symtabs>: New field.
13071 (class objfile_psymtabs): Move from psymtab.h. Update.
13072 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
13073 psymbol_cache.
13074 (objfile::~objfile): Don't destroy psymbol_cache.
13075 * mdebugread.c (parse_partial_symbols): Update.
13076 * dwarf2read.c (create_addrmap_from_index)
13077 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13078 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
13079 (add_partial_subprogram, dwarf2_ranges_read): Update.
13080 * dwarf-index-write.c (write_address_map)
13081 (write_one_signatured_type, recursively_write_psymbols)
13082 (class debug_names, class debug_names, write_psymtabs_to_index):
13083 Update.
13084
13085 2019-01-10 Tom Tromey <tom@tromey.com>
13086
13087 * symtab.h (SYMBOL_SET_NAMES): Update.
13088 (symbol_set_names): Update.
13089 (MSYMBOL_SET_NAMES): Update.
13090 * symtab.c (symbol_set_names): Change argument to be an
13091 objfile_per_bfd_storage.
13092 * psymtab.c (add_psymbol_to_bcache): Update.
13093 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
13094
13095 2019-01-10 Tom Tromey <tom@tromey.com>
13096
13097 * symtab.c (create_demangled_names_hash): Change argument to be an
13098 objfile_per_bfd_storage.
13099 (symbol_set_names): Update.
13100
13101 2019-01-10 Tom Tromey <tom@tromey.com>
13102
13103 * xcoffread.c (xcoff_initial_scan): Unconditionally call
13104 init_psymbol_list.
13105 * psymtab.c (init_psymbol_list): Do nothing if already called.
13106 * psympriv.h (init_psymbol_list): Add comment.
13107 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
13108 init_psymbol_list.
13109 * dbxread.c (dbx_symfile_read): Unconditionally call
13110 init_psymbol_list.
13111
13112 2019-01-10 Tom Tromey <tom@tromey.com>
13113
13114 * xcoffread.c (scan_xcoff_symtab): Update.
13115 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
13116 "where".
13117 * mdebugread.c (parse_partial_symbols)
13118 (handle_psymbol_enumerators): Update.
13119 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
13120 * dbxread.c (read_dbx_symtab): Update.
13121 * psympriv.h (psymbol_placement): New enum.
13122 (add_psymbol_to_list): Update.
13123
13124 2019-01-10 Tom Tromey <tom@tromey.com>
13125
13126 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
13127 static_psymbols parameters.
13128 (scan_xcoff_symtab): Update.
13129 * psymtab.c (start_psymtab_common): Remove global_psymbols and
13130 static_psymbols parameters.
13131 * psympriv.h (start_psymtab_common): Update.
13132 * mdebugread.c (parse_partial_symbols): Update.
13133 * dwarf2read.c (create_partial_symtab): Update.
13134 * dbxread.c (read_dbx_symtab): Update.
13135 (start_psymtab): Remove global_psymbols and static_psymbols
13136 parameters.
13137
13138 2019-01-10 Tom Tromey <tom@tromey.com>
13139
13140 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
13141 * psymtab.c (allocate_psymtab): Add comment.
13142 * psympriv.h (allocate_psymtab): Add comment.
13143 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
13144 initializations.
13145 * dbxread.c (dbx_end_psymtab): Remove some initializations.
13146
13147 2019-01-10 Tom Tromey <tom@tromey.com>
13148
13149 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13150 Don't declare.
13151 * mipsread.c: Include mdebugread.h.
13152 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13153 Declare.
13154 * elfread.c: Include mdebugread.h.
13155
13156 2019-01-09 Tom Tromey <tom@tromey.com>
13157
13158 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
13159 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
13160 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
13161 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
13162 (psym_lookup_symbol, psym_find_last_source_symtab)
13163 (psym_forget_cached_source_info, psym_print_stats)
13164 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
13165 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
13166 (psym_map_matching_symbols, psym_expand_symtabs_matching)
13167 (psym_find_compunit_symtab_by_address)
13168 (maintenance_print_psymbols, maintenance_info_psymtabs)
13169 (maintenance_check_psymtabs): Use ranged for.
13170 * psymtab.h (class objfile_psymtabs): New.
13171 (require_partial_symbols): Return objfile_psymtabs.
13172 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
13173
13174 2019-01-09 Tom Tromey <tom@tromey.com>
13175
13176 * symfile.c (overlay_invalidate_all, find_pc_overlay)
13177 (find_pc_mapped_section, list_overlays_command)
13178 (map_overlay_command, unmap_overlay_command)
13179 (simple_overlay_update): Use all_objfiles.
13180 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
13181 * printcmd.c (info_symbol_command): Use all_objfiles.
13182 * objfiles.h (ALL_OBJSECTIONS): Remove.
13183 * maint.c (maintenance_translate_address): Use all_objfiles.
13184 * gcore.c (gcore_create_callback): Use all_objfiles.
13185 (objfile_find_memory_regions): Likewise.
13186
13187 2019-01-09 Tom Tromey <tom@tromey.com>
13188
13189 * symtab.c (find_line_symtab, info_sources_command)
13190 (make_source_files_completion_list): Use objfile_compunits.
13191 * source.c (select_source_symtab): Use objfile_compunits.
13192 * objfiles.h (struct objfile): Update comment.
13193 (ALL_OBJFILES): Remove.
13194 (ALL_FILETABS): Remove.
13195 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
13196 objfile_compunits.
13197
13198 2019-01-09 Tom Tromey <tom@tromey.com>
13199
13200 * symmisc.c (print_objfile_statistics, dump_objfile)
13201 (maintenance_print_symbols): Use compunit_filetabs.
13202 * source.c (forget_cached_source_info_for_objfile): Use
13203 compunit_filetabs.
13204 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
13205 (ALL_FILETABS): Use compunit_filetabs.
13206 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
13207 * coffread.c (coff_symtab_read): Use compunit_filetabs.
13208
13209 2019-01-09 Tom Tromey <tom@tromey.com>
13210
13211 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
13212 (compunit_filetabs): New.
13213 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
13214 compunit_filetabs.
13215 (info_sources_command, make_source_files_completion_list): Remove
13216 declaration.
13217 * symmisc.c (print_objfile_statistics, dump_objfile)
13218 (maintenance_print_symbols): Remove declaration.
13219 (maintenance_info_symtabs): Use compunit_filetabs.
13220 (maintenance_info_line_tables): Likewise.
13221 * source.c (select_source_symtab): Change local variable name.
13222 (forget_cached_source_info_for_objfile): Remove declaration.
13223 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
13224 * objfiles.c (objfile_relocate1): Remove declaration.
13225 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13226 declaration.
13227 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
13228 * coffread.c (coff_symtab_read): Remove declaration.
13229 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
13230 compunit_filetabs.
13231
13232 2019-01-09 Tom Tromey <tom@tromey.com>
13233
13234 * symtab.c (lookup_objfile_from_block)
13235 (find_pc_sect_compunit_symtab, search_symbols)
13236 (default_collect_symbol_completion_matches_break_on): Use
13237 objfile_compunits.
13238 * objfiles.h (ALL_COMPUNITS): Remove.
13239 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
13240 * cp-support.c (add_symbol_overload_list_qualified): Use
13241 objfile_compunits.
13242 * ada-lang.c (ada_collect_symbol_completion_matches)
13243 (ada_add_global_exceptions): Use objfile_compunits.
13244
13245 2019-01-09 Tom Tromey <tom@tromey.com>
13246
13247 * source.c (select_source_symtab)
13248 (forget_cached_source_info_for_objfile): Remove declaration.
13249 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13250 declaration.
13251 * maint.c (count_symtabs_and_blocks): Remove declaration.
13252 * cp-support.c (add_symbol_overload_list_qualified): Remove
13253 declaration.
13254 * coffread.c (coff_symtab_read): Remove declaration.
13255 * symtab.c (lookup_symbol_in_objfile_symtabs)
13256 (basic_lookup_transparent_type_1): Use objfile_compunits.
13257 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
13258 (info_sources_command, search_symbols)
13259 (default_collect_symbol_completion_matches_break_on)
13260 (make_source_files_completion_list): Remove declaration.
13261 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
13262 (ada_collect_symbol_completion_matches)
13263 (ada_add_global_exceptions): Remove declaration.
13264 * linespec.c (iterate_over_all_matching_symtabs): Use
13265 objfile_compunits.
13266 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
13267 (class objfile_compunits): New.
13268 (ALL_COMPUNITS): Use objfile_compunits.
13269 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
13270 (maintenance_check_symtabs, maintenance_info_line_tables): Use
13271 objfile_compunits.
13272 * objfiles.c (objfile_relocate1): Use objfile_compunits.
13273
13274 2019-01-09 Tom Tromey <tom@tromey.com>
13275
13276 * symtab.c (search_symbols)
13277 (default_collect_symbol_completion_matches_break_on): Use
13278 objfile_msymbols.
13279 * ada-lang.c (ada_lookup_simple_minsym)
13280 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
13281 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
13282 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
13283 objfile_msymbols.
13284 * coffread.c (coff_symfile_read): Use objfile_msymbols.
13285 * symmisc.c (dump_msymbols): Use objfile_msymbols.
13286 * objc-lang.c (find_methods): Use objfile_msymbols.
13287 (info_selectors_command, info_classes_command): Likewise.
13288 * stabsread.c (scan_file_globals): Use objfile_msymbols.
13289 * objfiles.h (class objfile_msymbols): New.
13290 (ALL_OBJFILE_MSYMBOLS): Remove.
13291 (ALL_MSYMBOLS): Remove.
13292
13293 2019-01-09 Tom Tromey <tom@tromey.com>
13294
13295 * common/next-iterator.h (next_adapter): Add Iterator template
13296 parameter.
13297 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
13298 (class all_objfiles_safe): New.
13299 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
13300 * objfiles.c (put_objfile_before): Update comment.
13301 (add_separate_debug_objfile): Likewise.
13302 (free_all_objfiles): Use all_objfiles_safe.
13303 (objfile_purge_solibs): Likewise.
13304
13305 2019-01-09 Tom Tromey <tom@tromey.com>
13306
13307 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13308 (expand_symtab_containing_pc, lookup_static_symbol)
13309 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
13310 (find_symbol_at_address, find_line_symtab, find_main_name): Use
13311 all_objfiles.
13312 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
13313 * breakpoint.c (create_overlay_event_breakpoint)
13314 (create_longjmp_master_breakpoint)
13315 (create_std_terminate_master_breakpoint)
13316 (create_exception_master_breakpoint): Use all_objfiles.
13317 * linux-thread-db.c (try_thread_db_load_from_pdir)
13318 (has_libpthread): Use all_objfiles.
13319 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
13320 * linespec.c (iterate_over_all_matching_symtabs)
13321 (search_minsyms_for_name): Use all_objfiles.
13322 * maint.c (maintenance_info_sections): Use all_objfiles.
13323 * main.c (captured_main_1): Use all_objfiles.
13324 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
13325 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
13326 * guile/scm-pretty-print.c
13327 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
13328 * solib-spu.c (append_ocl_sos): Use all_objfiles.
13329 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
13330 (maintenance_print_msymbols): Use all_objfiles.
13331 * source.c (select_source_symtab): Use all_objfiles.
13332 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
13333 * symfile.c (remove_symbol_file_command)
13334 (expand_symtabs_matching, map_symbol_filenames): Use
13335 all_objfiles.
13336 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
13337 all_objfiles.
13338 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
13339 * objc-lang.c (find_methods): Use all_objfiles.
13340 * objfiles.c (have_partial_symbols, have_full_symbols)
13341 (have_minimal_symbols, qsort_cmp)
13342 (default_iterate_over_objfiles_in_search_order): Use
13343 all_objfiles.
13344 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
13345 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
13346 (maintenance_check_psymtabs): Use all_objfiles.
13347 (ALL_PSYMTABS): Remove.
13348 * compile/compile-object-run.c (do_module_cleanup): Use
13349 all_objfiles.
13350 * blockframe.c (find_pc_partial_function): Use all_objfiles.
13351 * cp-support.c (add_symbol_overload_list_qualified): Use
13352 all_objfiles.
13353 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13354 Use all_objfiles.
13355 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
13356 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
13357 all_objfiles.
13358 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13359 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
13360 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13361 Uses all_objfiles.
13362 * solib.c (solib_read_symbols): Use all_objfiles
13363
13364 2019-01-09 Tom Tromey <tom@tromey.com>
13365
13366 * probe.c (parse_probes_in_pspace): Use all_objfiles.
13367 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
13368 all_objfiles.
13369 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
13370 * symmisc.c (print_symbol_bcache_statistics)
13371 (print_objfile_statistics, maintenance_print_objfiles)
13372 (maintenance_info_symtabs, maintenance_check_symtabs)
13373 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
13374 all_objfiles.
13375 * source.c (forget_cached_source_info): Use all_objfiles.
13376 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
13377 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13378 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
13379 * objfiles.c (update_section_map): Use all_objfiles.
13380 (shared_objfile_contains_address_p): Likewise.
13381 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
13382 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
13383
13384 2019-01-09 Tom Tromey <tom@tromey.com>
13385
13386 * common/next-iterator.h: New file.
13387 * objfiles.h (class all_objfiles): New.
13388 (struct objfile_iterator): New.
13389
13390 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13391
13392 * NEWS: Move the description of the changed "frame", "select-frame",
13393 and "info frame" commands to the Changed commands section.
13394
13395 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
13396
13397 * gdbtypes.c (check_stub_method_group): Remove handling of old
13398 mangling schemes.
13399 * linespec.c (find_methods): Likewise.
13400 * stabsread.c (read_member_functions): Likewise.
13401 * valops.c (search_struct_method): Likewise.
13402 (value_struct_elt_for_reference): Likewise.
13403 * NEWS: Mention this change.
13404
13405 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13406
13407 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
13408 print_source_lines.
13409 * source.c (print_source_lines_base): Update line number check.
13410 (print_source_lines): New function.
13411 (source_lines_range::source_lines_range): New function.
13412 * source.h (class source_lines_range): New class.
13413 (print_source_lines): New declaration.
13414
13415 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13416
13417 * linespec.c (linespec_state_destructor): Free self->canonical_names.
13418
13419 2019-01-08 Tom Tromey <tom@tromey.com>
13420 Simon Marchi <simon.marchi@ericsson.com>
13421
13422 PR gdb/24060
13423 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
13424 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
13425 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13426 * f-exp.y (DOLLAR_VARIABLE): Likewise.
13427 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
13428 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13429
13430 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13431
13432 * source.c (select_source_symtab): Move header comment to
13433 declaration in source.h.
13434 (forget_cached_source_info_for_objfile): Likewise.
13435 (forget_cached_source_info): Likewise.
13436 (identify_source_line): Likewise.
13437 * source.h (identify_source_line): Move declaration from symtab.h
13438 and add comment from source.c
13439 (print_source_lines): Likewise.
13440 (forget_cached_source_info_for_objfile): Likewise.
13441 (forget_cached_source_info): Likewise.
13442 (select_source_symtab): Likewise.
13443 (enum print_source_lines_flag): Move definition from symtab.h.
13444 * symtab.h (identify_source_line): Move declaration to source.h.
13445 (print_source_lines): Likewise.
13446 (forget_cached_source_info_for_objfile): Likewise.
13447 (forget_cached_source_info): Likewise.
13448 (select_source_symtab): Likewise.
13449 (enum print_source_lines_flag): Move definition to source.h.
13450 * tui/tui-hooks.c: Add 'source.h' include.
13451
13452 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13453
13454 * source.c (print_source_lines_base): Handle requests to print
13455 reverse line number sequences, and guard against empty lines
13456 string.
13457
13458 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13459
13460 * source.c (print_source_lines_base): Fix skip of '\r' if next
13461 character is '\n'.
13462
13463 2019-01-06 Tom Tromey <tom@tromey.com>
13464
13465 * c-exp.y (struct c_parse_state) <macro_original_text,
13466 expansion_obstack>: New member.
13467 (macro_original_text, expansion_obstack): Remove globals.
13468 (scan_macro_expansion, scanning_macro_expansion)
13469 (finished_macro_expansion): Update.
13470 (scan_macro_cleanup): Remove.
13471 (yylex, c_parse): Update.
13472
13473 2019-01-06 Tom Tromey <tom@tromey.com>
13474
13475 * c-exp.y (struct c_parse_state) <strings>: New member.
13476 (operator_stoken): Update.
13477
13478 2019-01-06 Tom Tromey <tom@tromey.com>
13479
13480 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
13481 (union type_stack_elt) <typelist_val>: Now a pointer to
13482 std::vector.
13483 (type_stack_cleanup): Don't declare.
13484 (push_typelist): Update.
13485 * parse.c (pop_typelist): Return a std::vector.
13486 (push_typelist): Take a std::vector.
13487 (follow_types): Update. Do not free args.
13488 (type_stack_cleanup): Remove.
13489 * c-exp.y (struct c_parse_state): New.
13490 (cpstate): New global.
13491 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
13492 (nonempty_typelist): Update.
13493 (func_mod): Create a new vector.
13494 (c_parse): Create a c_parse_state.
13495 (check_parameter_typelist): Do not delete params.
13496 (function_method): Update. Do not delete type_list.
13497
13498 2019-01-06 Tom Tromey <tom@tromey.com>
13499
13500 PR gdb/28155:
13501 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
13502 check_typedef.
13503 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
13504 (print_return_value): Likewise.
13505
13506 2019-01-05 Tom Tromey <tom@tromey.com>
13507
13508 * contrib/cleanup_check.py: Remove.
13509 * contrib/gcc-with-excheck: Remove.
13510 * contrib/exsummary.py: Remove.
13511 * contrib/excheck.py: Remove.
13512
13513 2019-01-05 Joel Brobecker <brobecker@adacore.com>
13514
13515 * thread.c (delete_thread_1): Add gdb_assert that THR is not
13516 NULL. Initialize tpprev to NULL instead of assigning it
13517 to NULL on the next statement.
13518 * windows-nat.c (windows_delete_thread): Remove check for
13519 main_thread_id before printing thread exit notifications.
13520 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
13521 Remove thread ID check against main_thread_id.
13522 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
13523 windows_delete_thread.
13524 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
13525
13526 2019-01-04 Tom Tromey <tom@tromey.com>
13527
13528 * compile/compile.c (_initialize_compile): Use upper case for
13529 metasyntactic variables.
13530 * symmisc.c (_initialize_symmisc): Use upper case for
13531 metasyntactic variables.
13532 * psymtab.c (_initialize_psymtab): Use upper case for
13533 metasyntactic variables.
13534 * demangle.c (demangle_command): Use upper case for metasyntactic
13535 variables.
13536 (_initialize_demangler): Likewise.
13537 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
13538 variables.
13539
13540 2019-01-03 Tom Tromey <tom@tromey.com>
13541
13542 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
13543
13544 2019-01-03 Tom Tromey <tom@tromey.com>
13545
13546 * python/py-symtab.c (salpy_str): Update.
13547 (struct salpy_sal_object) <symtab>: Now a PyObject.
13548 (salpy_dealloc): Update.
13549 (del_objfile_sal): Use gdbpy_ref.
13550
13551 2019-01-03 Tom Tromey <tom@tromey.com>
13552
13553 * python/py-type.c (convert_field): Use new_reference. Return
13554 gdbpy_ref.
13555 (make_fielditem): Return gdbpy_ref.
13556 (typy_fields): Update.
13557 (typy_getitem): Update.
13558 (field_name): Return gdbpy_ref. Use new_reference.
13559 (typy_iterator_iternext): Update.
13560
13561 2019-01-03 Tom Tromey <tom@tromey.com>
13562
13563 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
13564
13565 2019-01-03 Tom Tromey <tom@tromey.com>
13566
13567 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
13568 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
13569 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
13570 (pspy_set_frame_filters, pspy_set_frame_unwinders)
13571 (pspy_set_type_printers): Likewise.
13572 * python/py-function.c (fnpy_init): Use gdbpy_ref.
13573 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
13574 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
13575 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
13576 (objfpy_set_type_printers): Likewise.
13577
13578 2019-01-03 Tom Tromey <tom@tromey.com>
13579
13580 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
13581 (gdbpy_print_stack): Use gdbpy_err_fetch.
13582 * python/python-internal.h (class gdbpy_err_fetch): New class.
13583 (class gdbpy_enter) <m_error_type, m_error_value,
13584 m_error_traceback>: Remove.
13585 <m_error>: New member.
13586 (gdbpy_exception_to_string): Don't declare.
13587 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
13588 * python/py-value.c (convert_value_from_python): Use
13589 gdbpy_err_fetch.
13590 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
13591 gdbpy_exception_to_string.
13592 (gdbpy_handle_exception): Use gdbpy_err_fetch.
13593 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
13594 gdbpy_err_fetch.
13595
13596 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13597
13598 * linux-nat.c (delete_lwp_cleanup): Delete.
13599 (struct lwp_deleter): New struct.
13600 (lwp_info_up): New typedef.
13601 (linux_nat_target::follow_fork): Delete cleanup, and make use of
13602 lwp_info_up.
13603
13604 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13605
13606 * linux-fork.c (class scoped_switch_fork_info): New class.
13607 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
13608
13609 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13610
13611 * valops.c (find_overload_match): Remove use of null_cleanup, and
13612 calls to do_cleanups.
13613
13614 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13615
13616 * compile/compile-cplus-types.c
13617 (compile_cplus_instance::decl_name): Handle changes to
13618 cp_func_name.
13619 * cp-support.c (cp_func_name): Update header comment, update
13620 return type.
13621 * cp-support.h (cp_func_name): Update return type in declaration.
13622 * valops.c (find_overload_match): Move temp_func local to top
13623 level of function and change its type. Use temp_func to hold and
13624 delete temporary string obtained from cp_func_name.
13625
13626 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13627
13628 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
13629 gdb::char_vector, remove cleanup, and update uses of `msg`.
13630
13631 2019-01-03 Jim Wilson <jimw@sifive.com>
13632
13633 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
13634
13635 2019-01-02 Tom Tromey <tom@tromey.com>
13636
13637 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
13638 (tdesc_parse_xml): Remove cleanups.
13639 * target-descriptions.h (make_cleanup_free_target_description):
13640 Don't declare.
13641 (target_desc_deleter): New struct.
13642 (target_desc_up): New typedef.
13643 * target-descriptions.c (target_desc_deleter::operator()): Rename
13644 from free_target_description.
13645 (make_cleanup_free_target_description): Remove.
13646
13647 2019-01-02 Tom Tromey <tom@tromey.com>
13648
13649 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
13650 constructor, destructor.
13651 (linespec_parser): Remove typedef.
13652 (~linespec_parser): Rename from linespec_parser_delete.
13653 (linespec_lex_to_end, linespec_complete_label)
13654 (linespec_complete): Update.
13655 (decode_line_full): Remove cleanups.
13656 (decode_line_1): Update.
13657
13658 2019-01-02 Tom Tromey <tom@tromey.com>
13659
13660 * python/python-internal.h (inferior_to_inferior_object): Change
13661 return type.
13662 * python/py-exitedevent.c (create_exited_event_object): Update.
13663 * python/py-inferior.c (inferior_to_inferior_object): Return
13664 gdbpy_ref.
13665 (python_new_inferior, python_inferior_deleted)
13666 (thread_to_thread_object, delete_thread_object)
13667 (build_inferior_list, gdbpy_selected_inferior): Update.
13668 * python/py-infthread.c (create_thread_object): Update. Also fail
13669 if inferior_to_inferior_object fails.
13670
13671 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
13672
13673 * inferior.h (class inferior) <displaced_step_state>: New field.
13674 * infrun.h (struct displaced_step_state): Move here from
13675 infrun.c. Initialize fields, add constructor.
13676 <inf>: Remove field.
13677 <reset>: New method.
13678 * infrun.c (struct displaced_step_inferior_state): Move to
13679 infrun.h.
13680 (displaced_step_inferior_states): Remove.
13681 (get_displaced_stepping_state): Adust.
13682 (displaced_step_in_progress_any_inferior): Adjust.
13683 (displaced_step_in_progress_thread): Adjust.
13684 (displaced_step_in_progress): Adjust.
13685 (add_displaced_stepping_state): Remove.
13686 (get_displaced_step_closure_by_addr): Adjust.
13687 (remove_displaced_stepping_state): Remove.
13688 (infrun_inferior_exit): Call displaced_step_state.reset.
13689 (use_displaced_stepping): Don't check for NULL.
13690 (displaced_step_prepare_throw): Call
13691 get_displaced_stepping_state.
13692 (displaced_step_fixup): Don't check for NULL.
13693 (prepare_for_detach): Don't check for NULL.
13694
13695 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13696
13697 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
13698 in case of call that did not complete.
13699
13700 2019-01-02 Andrey Utkin <autkin@undo.io>
13701
13702 * symfile.c (find_separate_debug_file): Fix search of debug files for
13703 remote debuggee.
13704
13705 2019-01-02 Tom Tromey <tom@tromey.com>
13706
13707 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
13708 indentation.
13709 * python/py-frame.c (frapy_older): Remove cast.
13710 (frapy_newer): Likewise.
13711 * python/py-breakpoint.c (local_setattro): Remove cast.
13712 * python/py-arch.c (archpy_name): Remove local variable.
13713 * python/py-type.c (gdbpy_lookup_type): Remove cast.
13714
13715 2019-01-02 Joel Brobecker <brobecker@adacore.com>
13716
13717 * unittests/basic_string_view/element_access/char/empty.cc:
13718 Fix year range in copyright header.
13719
13720 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
13721
13722 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
13723 Delete.
13724 <operator==>: Update with for removed field.
13725 <hash>: Likewise.
13726 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
13727 <isa_features>: ...this.
13728 <abi_features>: New field.
13729 (riscv_isa_flen): Update comment.
13730 (riscv_abi_xlen): New declaration.
13731 (riscv_abi_flen): New declaration.
13732 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
13733 isa_features.
13734 (riscv_abi_xlen): New function.
13735 (riscv_isa_flen): Update to get answer from isa_features.
13736 (riscv_abi_flen): New function.
13737 (riscv_has_fp_abi): Update to get answer from abi_features.
13738 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
13739 xlen and flen.
13740 (riscv_call_info) <xlen, flen>: Update comment.
13741 (riscv_call_arg_struct): Remove invalid assertions
13742 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
13743 is removed.
13744 (riscv_gdbarch_init): Gather isa features and abi features
13745 separately, ensure both match on the gdbarch when reusing an old
13746 gdbarch. Relax an error check to allow 32-bit abi float to run on
13747 a target with 64-bit float hardware.
13748
13749 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13750
13751 * source.c (search_command_helper): Stop reverse search
13752 when line 1 has been searched.
13753
13754 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13755
13756 * record-full.c (record_full_base_target::close): Rewrite
13757 record_full_core_buf_list free logic.
13758
13759 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13760
13761 * break-catch-syscall.c (print_one_catch_syscall): xfree
13762 the last text.
13763
13764 2019-01-01 Joel Brobecker <brobecker@adacore.com>
13765
13766 * top.c (print_gdb_version): Update Copyright year in version
13767 message.
13768
13769 2019-01-01 Joel Brobecker <brobecker@adacore.com>
13770
13771 Update copyright year range in all GDB files.
13772
13773 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
13774
13775 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
13776
13777 For older changes see ChangeLog-2018.
13778 \f
13779 Local Variables:
13780 mode: change-log
13781 left-margin: 8
13782 fill-column: 74
13783 version-control: never
13784 coding: utf-8
13785 End:
13786
This page took 0.299836 seconds and 5 git commands to generate.