Mention PR gdb/25010 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 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
4533
4534 2019-07-04 Tom Tromey <tom@tromey.com>
4535
4536 PR tui/24724:
4537 * tui/tui-winsource.c (tui_clear_source_content): Update.
4538 (tui_source_window_base::set_is_exec_point_at): Fix comment.
4539 (tui_update_breakpoint_info): Update.
4540 (tui_set_exec_info_content): Update.
4541 * tui/tui-source.c (tui_set_source_content_nil): Update.
4542 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
4543 has_break.
4544 * tui/tui-data.h (enum tui_bp_flag): New.
4545 (tui_bp_flags): New enum flags type.
4546 (struct tui_source_element) <break_mode>: Change type. Rename
4547 from has_break.
4548 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
4549 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
4550 constants.
4551 * tui/tui-winsource.h: Fix comment.
4552
4553 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4554
4555 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
4556 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
4557 (store_fpregs_to_thread)
4558 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4559 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
4560 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
4561 (IWMMXT_REGS_SIZE): Add define.
4562 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
4563 (fetch_vfp_regs, store_vfp_regs)
4564 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4565 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
4566
4567 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4568
4569 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
4570 defines.
4571 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
4572 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
4573 (ARM_INT_REGISTER_SIZE): ...to this.
4574 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
4575 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
4576 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
4577 (arm_linux_collect_gregset, supply_nwfpe_register)
4578 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
4579 defines.
4580 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
4581 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
4582 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
4583 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
4584 (arm_return_in_memory, arm_store_return_value)
4585 (arm_get_longjmp_target, arm_register_g_packet_guesses)
4586 (arm_record_ld_st_multiple): Likewise.
4587 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
4588 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
4589
4590 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4591
4592 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
4593 AARCH64_DISPLACED_MODIFIED_INSNS.
4594 * aarch64-tdep.c (struct aarch64_displaced_step_data)
4595 (aarch64_displaced_step_copy_insn): Likewise.
4596 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4597 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
4598 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
4599 ARM_DISPLACED_MODIFIED_INSNS.
4600 * arm-tdep.c (arm_gdbarch_init): Likewise.
4601 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4602 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
4603 (struct arm_displaced_step_closure): Use
4604 ARM_DISPLACED_MODIFIED_INSNS.
4605
4606 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4607
4608 * features/Makefile: Remove unused xml files.
4609 * features/aarch64.xml: Remove.
4610 * features/i386/amd64-avx-avx512-linux.xml: Remove.
4611 * features/i386/amd64-avx-avx512.xml: Remove.
4612 * features/i386/amd64-avx-linux.xml: Remove.
4613 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
4614 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
4615 * features/i386/amd64-avx-mpx-linux.xml: Remove.
4616 * features/i386/amd64-avx-mpx.xml: Remove.
4617 * features/i386/amd64-avx.xml: Remove.
4618 * features/i386/amd64-linux.xml: Remove.
4619 * features/i386/amd64-mpx-linux.xml: Remove.
4620 * features/i386/amd64-mpx.xml: Remove.
4621 * features/i386/amd64.xml: Remove.
4622 * features/i386/i386-avx-avx512-linux.xml: Remove.
4623 * features/i386/i386-avx-avx512.xml: Remove.
4624 * features/i386/i386-avx-linux.xml: Remove.
4625 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
4626 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
4627 * features/i386/i386-avx-mpx-linux.xml: Remove.
4628 * features/i386/i386-avx-mpx.xml: Remove.
4629 * features/i386/i386-avx.xml: Remove.
4630 * features/i386/i386-linux.xml: Remove.
4631 * features/i386/i386-mmx-linux.xml: Remove.
4632 * features/i386/i386-mmx.xml: Remove.
4633 * features/i386/i386-mpx-linux.xml: Remove.
4634 * features/i386/i386-mpx.xml: Remove.
4635 * features/i386/i386.xml: Remove.
4636 * features/i386/x32-avx-avx512-linux.xml: Remove.
4637 * features/i386/x32-avx-linux.xml: Remove.
4638 * features/i386/x32-linux.xml: Remove.
4639
4640 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4641
4642 * regformats/aarch64.dat: Remove.
4643 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
4644 * regformats/i386/amd64-avx-linux.dat: Remove.
4645 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
4646 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
4647 * regformats/i386/amd64-linux.dat: Remove.
4648 * regformats/i386/amd64-mpx-linux.dat: Remove.
4649 * regformats/i386/amd64.dat: Remove.
4650 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
4651 * regformats/i386/i386-avx-linux.dat: Remove.
4652 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
4653 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
4654 * regformats/i386/i386-linux.dat: Remove.
4655 * regformats/i386/i386-mmx-linux.dat: Remove.
4656 * regformats/i386/i386-mpx-linux.dat: Remove.
4657 * regformats/i386/i386.dat: Remove.
4658 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
4659 * regformats/i386/x32-avx-linux.dat: Remove.
4660 * regformats/i386/x32-linux.dat: Remove.
4661
4662 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4663
4664 * aarch64-tdep.c: Remove xml self tests.
4665 * amd64-linux-tdep.c: Likewise.
4666 * amd64-tdep.c: Likewise.
4667 * i386-linux-tdep.c: Likewise.
4668 * i386-tdep.c: Likewise.
4669
4670 2019-07-03 Pedro Alves <palves@redhat.com>
4671
4672 PR cli/24732
4673 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
4674 (pipe_cmd_option_defs): New.
4675 (make_pipe_cmd_options_def_group): New.
4676 (pipe_command): Use gdb::option::process_options.
4677 (pipe_command_completer): New function.
4678 (_initialize_cli_cmds): Install completer for "pipe" command.
4679
4680 2019-07-03 Pedro Alves <palves@redhat.com>
4681
4682 * cli/cli-option.c (union option_value) <string>: New field.
4683 (struct option_def_and_value): Add ctor, move ctor, dtor and
4684 use DISABLE_COPY_AND_ASSIGN.
4685 (option_def_and_value::clear_value): New.
4686 (parse_option, save_option_value_in_ctx, get_val_type_str)
4687 (add_setshow_cmds_for_options): Handle var_string.
4688 * cli-option.h (union option_def::var_address) <string>: New
4689 field.
4690 (struct string_option_def): New.
4691 * maint-test-options.c (struct test_options_opts): Add default
4692 ctor and use DISABLE_COPY_AND_ASSIGN.
4693 <string_opt>: New field.
4694 (test_options_opts::~test_options_opts): New.
4695 (test_options_opts::dump): Also dump "-string".
4696 (test_options_option_defs): Install "string.
4697
4698 2019-07-03 Pedro Alves <palves@redhat.com>
4699
4700 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
4701 option_value with a null enumeration.
4702 (complete_options): Save the option values in the context.
4703 (save_option_value_in_ctx): New, factored out from ...
4704 (process_options): ... here.
4705 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
4706 of the function.
4707 * maint-test-options.c (test_options_opts::dump): New, factored
4708 out from ...
4709 (maintenance_test_options_command_mode): ... here.
4710 (maintenance_test_options_command_completion_result): Delete.
4711 (maintenance_test_options_command_completion_text): Update
4712 comment.
4713 (maintenance_show_test_options_completion_result): Change
4714 prototype. Just print
4715 maintenance_test_options_command_completion_text.
4716 (save_completion_result): New.
4717 (maintenance_test_options_completer_mode): Pass options context to
4718 complete_options, and then save a dump.
4719 (_initialize_maint_test_options): Use add_cmd to install "maint
4720 show test-options-completion-result".
4721
4722 2019-07-03 Pedro Alves <palves@redhat.com>
4723
4724 * NEWS (New commands): Mention "with" and "maint with".
4725 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
4726 (with_command, with_command_completer): New.
4727 (pipe_command): Adjust to new repeat_previous
4728 interface.
4729 (_initialize_cli_cmds): Install the "with" command and its "w"
4730 alias.
4731 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
4732 declarations.
4733 * cli/cli-setshow.c (parse_cli_var_uinteger)
4734 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
4735 argument strings for all var_types.
4736 (get_setshow_command_value_string): New, factored out from ...
4737 (do_show_command): ... this.
4738 * cli/cli-setshow.h: Include <string>.
4739 (get_setshow_command_value_string): Declare.
4740 * command.h (repeat_previous): Now returns const char *. Adjust
4741 comment.
4742 * maint.c: Include "cli/cli-cmds.h".
4743 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
4744 (_initialize_maint_cmds): Register the "maintenance with" command.
4745 * top.c (repeat_previous): Move bits from pipe_command here:
4746 Return the saved command line, if any; error out if there's no
4747 command to relaunch.
4748
4749 2019-07-03 Pedro Alves <palves@redhat.com>
4750
4751 * NEWS (New commands): Mention "maint set/show test-settings"
4752 instead of "maint test-settings".
4753 * maint-test-settings.c (maintenance_test_settings_list): Delete.
4754 (maintenance_test_settings_set_list): Rename to ...
4755 (maintenance_set_test_settings_list): ... this.
4756 (maintenance_test_settings_show_list): Rename to ...
4757 (maintenance_show_test_settings_list): ... this.
4758 (maintenance_test_settings_cmd): Delete.
4759 (maintenance_test_settings_set_cmd): ...
4760 (maintenance_set_test_settings_cmd): ... this.
4761 (maintenance_test_settings_show_cmd): ...
4762 (maintenance_show_test_settings_cmd): ... this.
4763 (maintenance_test_settings_show_value_cmd):
4764 (maintenance_show_test_settings_value_cmd): ... this.
4765 (_initialize_maint_test_settings): No longer install the "maint
4766 test-settings" prefix command. Rename "maint test-settings set"
4767 to "maint set test-settings", and "maint test-settings show" to
4768 "maint show test-settings". Adjust all subcommands.
4769
4770 2019-07-03 Pedro Alves <palves@redhat.com>
4771
4772 * maint-test-settings.c: Fix file's intro comment. Replace all
4773 references to "test-options" with references to "test-settings",
4774 in comments.
4775
4776 2019-07-03 Pedro Alves <palves@redhat.com>
4777
4778 * maint-test-settings.c (maintenance_test_settings_xxx)
4779 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
4780 New.
4781 (maintenance_test_settings_enums): Use them.
4782 (maintenance_test_settings_enum): Default to
4783 maintenance_test_settings_xxx.
4784 (_initialize_maint_test_settings): Initialize
4785 MAINTENANCE_TEST_SETTINGS_FILENAME.
4786
4787 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4788
4789 * breakpoint.h (remove_breakpoints_inf): Change return type to
4790 void, move function documentation here.
4791 * breakpoint.c (remove_breakpoints_inf): Change return type to
4792 void, move function documentation to header.
4793
4794 2019-07-02 Pedro Alves <palves@redhat.com>
4795
4796 * NEWS (Completion improvements): Mention "info threads".
4797 * thread.c (struct info_threads_opts, info_threads_option_defs)
4798 (make_info_threads_options_def_group): New.
4799 (info_threads_command): Use gdb::option::process_options.
4800 (info_threads_command_completer): New.
4801 (_initialize_thread): Use gdb::option::build_help to build the
4802 help text for "info threads".
4803
4804 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4805
4806 * defs.h (generic_load): Move from here...
4807 * symfile.h (generic_load): ... to here. Rename name parameter
4808 to args.
4809 * symfile.c (generic_load): Add comment.
4810
4811 2019-07-01 Tom Tromey <tromey@adacore.com>
4812
4813 * dwarf2read.c
4814 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
4815 declaration of without_params. Fix formatting.
4816
4817 2019-07-01 Tom Tromey <tromey@adacore.com>
4818
4819 * ada-exp.y (find_primitive_type): Update.
4820 * ada-lang.h (ada_lookup_symbol): Update.
4821 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
4822 parameter.
4823 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
4824
4825 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4826
4827 PR breakpoints/24541
4828 * gdbarch.c: Regenerate.
4829 * gdbarch.h: Regenerate.
4830 * gdbarch.sh: Add 'stap_adjust_register'.
4831 * i386-tdep.c: Include '<unordered_set>'.
4832 (i386_stap_adjust_register): New function.
4833 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
4834 * stap-probe.c (stap_parse_register_operand): Call
4835 'gdbarch_stap_adjust_register'.
4836
4837 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4838
4839 PR python/24742
4840 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
4841 * python/python.c (do_start_initialization): Use 'xmalloc'
4842 instead of 'PyMem_Malloc'.
4843
4844 2019-06-28 Tom Tromey <tromey@adacore.com>
4845
4846 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
4847 for Ada.
4848
4849 2019-06-27 Tom Tromey <tromey@adacore.com>
4850
4851 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
4852 objfile_key.
4853 (arm_find_mapping_symbol, arm_record_special_symbol)
4854 (_initialize_arm_tdep): Update.
4855 (arm_objfile_data_free): Remove.
4856
4857 2019-06-27 Tom Tromey <tromey@adacore.com>
4858
4859 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
4860 to cp_print_static_field.
4861
4862 2019-06-26 Tom Tromey <tromey@adacore.com>
4863
4864 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
4865 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
4866 declare.
4867
4868 2019-06-26 Alan Hayward <alan.hayward@arm.com>
4869
4870 * features/aarch64-core.c (create_feature_aarch64_core):
4871 Regenerate.
4872 * features/aarch64-core.xml: Add cpsr flags.
4873
4874 2019-06-26 Alan Hayward <alan.hayward@arm.com>
4875
4876 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
4877 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
4878
4879 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4880
4881 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
4882 field.
4883 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
4884 use.
4885 (arm_record_special_symbol): Don't insert new symbol in sorted
4886 position, push it at the end.
4887
4888 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4889
4890 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
4891 (arm_mapping_symbol_s): Remove.
4892 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
4893 (arm_mapping_symbol_vec): New typedef.
4894 (struct arm_per_objfile): Add constructor.
4895 <section_maps>: Change type to
4896 std::unique_ptr<arm_mapping_symbol_vec[]>.
4897 (arm_compare_mapping_symbols): Remove.
4898 (arm_find_mapping_symbol): Adjust to section_maps type change.
4899 (arm_objfile_data_free): Call delete on arm_per_objfile.
4900 (arm_record_special_symbol): Adjust to section_maps type change.
4901 Allocate arm_per_objfile with new.
4902
4903 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4904
4905 * cli/cli-cmds.c (alias_command): Compare the alias prefix
4906 with the command prefix.
4907
4908 2019-06-25 Tom Tromey <tom@tromey.com>
4909
4910 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
4911 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
4912
4913 2019-06-25 Tom Tromey <tom@tromey.com>
4914
4915 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
4916 type.
4917 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
4918 protected.
4919
4920 2019-06-25 Tom Tromey <tom@tromey.com>
4921
4922 * tui/tui-winsource.c
4923 (tui_source_window_base::set_is_exec_point_at): Add check against
4924 LOA_ADDRESS.
4925
4926 2019-06-25 Tom Tromey <tom@tromey.com>
4927
4928 * tui/tui-source.c (tui_set_source_content): Don't check before
4929 xfree.
4930 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
4931
4932 2019-06-25 Tom Tromey <tom@tromey.com>
4933
4934 * tui/tui-winsource.h (tui_update_source_window_as_is)
4935 (tui_alloc_source_buffer, tui_line_is_displayed)
4936 (tui_addr_is_displayed): Change type of win_info.
4937 * tui/tui-winsource.c (tui_update_source_window_as_is)
4938 (tui_clear_source_content, tui_show_source_line)
4939 (tui_show_source_content, tui_source_window_base::refill)
4940 (tui_source_window_base::set_is_exec_point_at)
4941 (tui_source_window_base::set_is_exec_point_at)
4942 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
4943 (tui_alloc_source_buffer, tui_line_is_displayed)
4944 (tui_addr_is_displayed): Change type of win_info. Update.
4945 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4946 (tui_source_window_base::do_make_visible_with_new_height):
4947 Update.
4948 * tui/tui-source.c (tui_set_source_content)
4949 (tui_set_source_content_nil)
4950 (tui_source_window::do_scroll_vertical): Update.
4951 * tui/tui-layout.c (show_layout): Update.
4952 * tui/tui-disasm.c (tui_set_disassem_content)
4953 (tui_disasm_window::do_scroll_vertical): Update.
4954 * tui/tui-data.h (tui_win_content): Remove.
4955 (struct tui_gen_win_info) <content, content_size>: Remove.
4956 (struct tui_source_element): Add initializers and destructor.
4957 (union tui_which_element, struct tui_win_element): Remove.
4958 (struct tui_source_window_base) <content>: New field.
4959 (struct tui_data_window): Remove destructor.
4960 (tui_alloc_content, tui_free_win_content)
4961 (tui_free_all_source_wins_content): Don't declare.
4962 * tui/tui-data.c (tui_initialize_static_data): Update.
4963 (init_content_element, tui_alloc_content): Remove.
4964 (~tui_gen_win_info): Update.
4965 (~tui_data_window, tui_free_all_source_wins_content)
4966 (tui_free_win_content, free_content, free_content_elements):
4967 Remove.
4968
4969 2019-06-25 Tom Tromey <tom@tromey.com>
4970
4971 * tui/tui-winsource.h (tui_clear_source_content)
4972 (tui_erase_source_content, tui_show_source_content): Change type
4973 of win_info.
4974 * tui/tui-winsource.c (tui_clear_source_content)
4975 (tui_erase_source_content, tui_show_source_content): Change type
4976 of win_info.
4977 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4978 * tui/tui-source.h (tui_set_source_content_nil): Change type of
4979 win_info.
4980 * tui/tui-source.c (tui_set_source_content_nil): Change type of
4981 win_info.
4982 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
4983
4984 2019-06-25 Tom Tromey <tom@tromey.com>
4985
4986 * tui/tui-winsource.c (tui_clear_source_content)
4987 (tui_source_window_base::set_is_exec_point_at): Update.
4988 * tui/tui-source.c (tui_set_source_content_nil): Update.
4989 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
4990 a bool.
4991 * tui/tui-data.c (init_content_element): Update.
4992
4993 2019-06-25 Tom Tromey <tom@tromey.com>
4994
4995 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
4996 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
4997 * tui/tui-layout.c (init_and_make_win): Update.
4998 * tui/tui.h (enum tui_win_type): Update.
4999 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
5000 tui_win_is_auxillary.
5001 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
5002 tui_win_is_auxillary.
5003
5004 2019-06-25 Tom Tromey <tom@tromey.com>
5005
5006 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
5007 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
5008 (tui_delete_data_content_windows, tui_display_all_data)
5009 (tui_data_window::do_scroll_vertical, tui_display_data_from):
5010 Update.
5011 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
5012 * tui/tui-regs.c (tui_last_regs_line_no)
5013 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5014 (tui_show_registers): Update.
5015 (tui_show_register_group): Return void. Update.
5016 (tui_display_registers_from, tui_display_reg_element_at_line)
5017 (tui_display_registers_from_line, tui_check_register_values):
5018 Update.
5019 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
5020 member.
5021 (struct tui_data_window) <regs_content>: Now a std::vector.
5022 <regs_content_count>: Remove.
5023 (tui_add_content_elements, tui_free_data_content): Don't declare.
5024 * tui/tui-data.c (tui_data_window::clear_detail): Update.
5025 (init_content_element): Remove DATA_WIN case. Add assert.
5026 (tui_add_content_elements): Remove.
5027 (tui_data_window): Update.
5028 (tui_free_data_content): Remove.
5029 (free_content_elements): Remove DATA_WIN case.
5030
5031 2019-06-25 Tom Tromey <tom@tromey.com>
5032
5033 * tui/tui-data.c (tui_data_item_window): Update.
5034 * tui/tui-windata.h (tui_check_data_values): Don't declare.
5035 * tui/tui-windata.c (tui_display_all_data)
5036 (tui_display_data_from_line): Update.
5037 (tui_check_data_values): Remove.
5038 * tui/tui-regs.c (tui_show_register_group)
5039 (tui_display_reg_element_at_line): Update.
5040 * tui/tui-hooks.c (tui_register_changed)
5041 (tui_refresh_frame_and_register_information): Call
5042 tui_check_register_values.
5043 * tui/tui-data.h (struct tui_data_window) <data_content,
5044 data_content_count, data_type>: Remove.
5045 (enum tui_data_type): Remove.
5046
5047 * tui/tui-data.c (tui_data_window::clear_detail)
5048 (~tui_data_window): Update.
5049
5050 2019-06-25 Tom Tromey <tom@tromey.com>
5051
5052 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
5053 declare.
5054 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
5055 Rename from tui_first_data_item_displayed. Update.
5056 (tui_data_window::refresh_all)
5057 (tui_data_window::do_scroll_vertical): Update.
5058 * tui/tui-data.h (struct tui_data_window)
5059 <first_data_item_displayed>: Declare new method.
5060
5061 2019-06-25 Tom Tromey <tom@tromey.com>
5062
5063 * tui/tui-data.h (tui_init_generic_part): Don't declare.
5064 * tui/tui-data.c (tui_init_generic_part): Remove, moving
5065 contents...
5066 (tui_initialize_static_data): ...here.
5067
5068 2019-06-25 Tom Tromey <tom@tromey.com>
5069
5070 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5071 (tui_display_registers_from, tui_check_register_values): Update.
5072 (tui_display_register): Remove win_info parameter; update.
5073 (tui_get_register): Change type of parameters.
5074 * tui/tui-data.h (struct tui_data_element): Remove.
5075 (union tui_which_element) <data>: Remove.
5076 <data_window>: Change type.
5077 (struct tui_data_item_window): New.
5078 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
5079 case. Add assert.
5080 (~tui_data_item_window): New destructor.
5081 (free_content_elements): Remove DATA_ITEM_WIN case.
5082
5083 2019-06-25 Tom Tromey <tom@tromey.com>
5084
5085 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
5086 Remove.
5087
5088 2019-06-25 Tom Tromey <tom@tromey.com>
5089
5090 * tui/tui-data.h (struct tui_command_element): Remove.
5091 (union tui_which_element) <command>: Remove.
5092 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
5093 assert.
5094 (free_content_elements): Remove CMD_WIN case.
5095
5096 2019-06-25 Tom Tromey <tom@tromey.com>
5097
5098 * tui/tui-layout.c (tui_set_layout): Update.
5099 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
5100 * tui/tui-data.c (layout_def): Update.
5101
5102 2019-06-25 Tom Tromey <tom@tromey.com>
5103
5104 * tui/tui-wingeneral.c (tui_refresh_all): Update.
5105 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5106 (tui_source_window_base::set_new_height): Update.
5107 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
5108 Update.
5109 (tui_set_locator_fullname, tui_set_locator_info)
5110 (tui_show_frame_info): Update.
5111 * tui/tui-source.c (tui_set_source_content)
5112 (tui_source_is_displayed): Update.
5113 * tui/tui-layout.c (show_source_disasm_command, show_data)
5114 (show_source_or_disasm_and_command): Update.
5115 * tui/tui-disasm.c (tui_set_disassem_content)
5116 (tui_get_begin_asm_address): Update.
5117 * tui/tui-data.h (struct tui_locator_element): Remove.
5118 (union tui_which_element) <locator>: Remove.
5119 (struct tui_locator_window): New.
5120 (tui_locator_win_info_ptr): Change return type.
5121 * tui/tui-data.c (_locator): Change type.
5122 (tui_locator_win_info_ptr): Change return type.
5123 (init_content_element): Remove LOCATOR_WIN case. Add assert.
5124 (tui_alloc_content): Add assert.
5125
5126 2019-06-25 Tom Tromey <tom@tromey.com>
5127
5128 * tui/tui-winsource.c
5129 (tui_exec_info_window::maybe_allocate_content): New method.
5130 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
5131 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
5132 (make_source_or_disasm_window): Add cast.
5133 * tui/tui-data.h (union tui_which_element) <simple_string>:
5134 Remove.
5135 (struct tui_source_info): New.
5136 (struct tui_source_window_base) <execution_info>: Change type.
5137 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
5138 case, and add assert.
5139 (tui_alloc_content): Add assert.
5140
5141 2019-06-25 Tom Tromey <tom@tromey.com>
5142
5143 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
5144 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
5145 * tui/tui-data.c (tui_alloc_win_info): Remove.
5146
5147 2019-06-25 Tom Tromey <tom@tromey.com>
5148
5149 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
5150 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
5151 can_highlight.
5152
5153 2019-06-25 Tom Tromey <tom@tromey.com>
5154
5155 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
5156 make_visible_with_new_height method.
5157 (tui_win_info::make_visible_with_new_height): New method.
5158 (tui_source_window_base::do_make_visible_with_new_height)
5159 (tui_data_window::do_make_visible_with_new_height)
5160 (tui_cmd_window::do_make_visible_with_new_height): New methods.
5161 (make_visible_with_new_height): Remove.
5162 (tui_resize_all, tui_adjust_win_heights): Use
5163 make_visible_with_new_height method.
5164 * tui/tui-data.h (struct tui_win_info)
5165 <do_make_visible_with_new_height, make_visible_with_new_height>:
5166 New methods.
5167 (struct tui_source_window_base, struct tui_data_window)
5168 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
5169 methods.
5170
5171 2019-06-25 Tom Tromey <tom@tromey.com>
5172
5173 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
5174 method.
5175 (update_tab_width): Call update_tab_width method.
5176 * tui/tui-data.h (struct tui_win_info)
5177 (struct tui_source_window_base) <update_tab_width>: New methods.
5178
5179 2019-06-25 Tom Tromey <tom@tromey.com>
5180
5181 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
5182 parameter.
5183 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
5184 parameter.
5185 (tui_gen_win_info::make_visible): Update.
5186 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
5187 parameter.
5188 * tui/tui-data.h (enum tui_box): New enum.
5189 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
5190
5191 2019-06-25 Tom Tromey <tom@tromey.com>
5192
5193 * tui/tui-layout.c (make_source_or_disasm_window): Always use
5194 init_and_make_win for EXEC_INFO_WIN.
5195 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
5196 longer inline.
5197 (struct tui_win_info) <~tui_win_info>: Inline.
5198 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5199 Don't declare.
5200 * tui/tui-data.c (source_win, disasm_win): Remove globals.
5201 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5202 Remove.
5203 (tui_initialize_static_data): Update.
5204 (~tui_gen_win_info): Handle more cleanup here.
5205 (~tui_source_window_base): Delete "execution_info".
5206 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
5207
5208 2019-06-25 Tom Tromey <tom@tromey.com>
5209
5210 * tui/tui-layout.c (make_command_window): Don't set
5211 can_highlight.
5212 (show_source_disasm_command): Call the reset method.
5213 (show_data): Don't set can_highlight. Call the reset method.
5214 (tui_gen_win_info::reset): Rename from init_gen_win_info
5215 (init_and_make_win): Simplify. Return tui_gen_win_info.
5216 (show_source_or_disasm_and_command): Call the reset method.
5217 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
5218 (struct tui_cmd_window): Set can_highlight.
5219
5220 2019-06-25 Tom Tromey <tom@tromey.com>
5221
5222 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
5223 from make_visible.
5224 (tui_make_visible, tui_make_invisible): Rewrite.
5225 (tui_win_info::make_visible): Remove.
5226 (tui_source_window_base::make_visible): Update.
5227 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
5228 method. Moved from...
5229 (struct tui_win_info) <make_visible>: ...here.
5230
5231 2019-06-25 Tom Tromey <tom@tromey.com>
5232
5233 * tui/tui-winsource.c
5234 (tui_source_window_base::do_scroll_horizontal): Remove direction
5235 parameter.
5236 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
5237 direction parameter.
5238 * tui/tui-win.c (tui_win_info::forward_scroll)
5239 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5240 (tui_win_info::right_scroll): Update.
5241 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
5242 direction parameter.
5243 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
5244 direction parameter.
5245 * tui/tui-data.h (enum tui_scroll_direction): Remove.
5246 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
5247 Remove direction parameter.
5248 (struct tui_source_window_base, struct tui_source_window)
5249 (struct tui_disasm_window, struct tui_data_window)
5250 (struct tui_cmd_window): Update.
5251
5252 2019-06-25 Tom Tromey <tom@tromey.com>
5253
5254 * tui/tui-winsource.h (tui_set_exec_info_content)
5255 (tui_show_exec_info_content, tui_erase_exec_info_content)
5256 (tui_clear_exec_info_content, tui_update_exec_info): Change
5257 argument to tui_source_window_base.
5258 * tui/tui-winsource.c (tui_set_exec_info_content)
5259 (tui_show_exec_info_content, tui_erase_exec_info_content)
5260 (tui_clear_exec_info_content, tui_update_exec_info): Change
5261 argument to tui_source_window_base.
5262
5263 2019-06-25 Tom Tromey <tom@tromey.com>
5264
5265 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
5266 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
5267
5268 2019-06-25 Tom Tromey <tom@tromey.com>
5269
5270 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
5271 check.
5272
5273 2019-06-25 Tom Tromey <tom@tromey.com>
5274
5275 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
5276 type to void.
5277 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
5278 type to void.
5279 * tui/tui-source.c (tui_set_source_content): Update.
5280 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5281
5282 2019-06-25 Tom Tromey <tom@tromey.com>
5283
5284 * tui/tui-win.c (window_name_completer, tui_set_focus)
5285 (tui_all_windows_info): Use name method.
5286 * tui/tui-data.h (struct tui_gen_win_info)
5287 (struct tui_source_window, struct tui_disasm_window)
5288 (struct tui_data_window, struct tui_cmd_window) <name>: New
5289 method.
5290 (tui_win_name): Don't declare.
5291 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
5292 (tui_win_name): Remove.
5293
5294 2019-06-25 Tom Tromey <tom@tromey.com>
5295
5296 * tui/tui-winsource.h (tui_update_source_window)
5297 (tui_update_source_window_as_is): Change parameter type.
5298 * tui/tui-winsource.c (tui_update_source_window): Change win_info
5299 to be a tui_source_window_base.
5300 (tui_update_source_window_as_is): Likewise.
5301 * tui/tui-win.c (make_visible_with_new_height): Update.
5302
5303 2019-06-25 Tom Tromey <tom@tromey.com>
5304
5305 * tui/tui-winsource.c (tui_erase_source_content)
5306 (tui_show_source_content, tui_show_exec_info_content)
5307 (tui_erase_exec_info_content): Use refresh_window method.
5308 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
5309 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
5310 from tui_refresh_win.
5311 (tui_data_window::refresh_window): New method.
5312 (tui_win_info::refresh, tui_source_window_base::refresh)
5313 (tui_refresh_all): Use refresh_window method.
5314 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
5315 method.
5316 * tui/tui-regs.c (tui_display_register): Call refresh_window
5317 method.
5318 * tui/tui-layout.c (show_source_disasm_command)
5319 (show_source_or_disasm_and_command): Call refresh_window method.
5320 * tui/tui-data.h (struct tui_gen_win_info)
5321 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
5322 New method.
5323
5324 2019-06-25 Tom Tromey <tom@tromey.com>
5325
5326 * tui/tui.c (tui_rl_other_window, tui_enable)
5327 (tui_is_window_visible, tui_get_command_dimension): Update.
5328 * tui/tui-winsource.c (tui_update_source_window_as_is)
5329 (tui_clear_source_content, tui_erase_source_content)
5330 (tui_show_source_line, tui_source_window_base::refill)
5331 (tui_source_window_base::do_scroll_horizontal)
5332 (tui_source_window_base::set_is_exec_point_at)
5333 (tui_update_breakpoint_info, tui_set_exec_info_content)
5334 (tui_alloc_source_buffer, tui_line_is_displayed)
5335 (tui_addr_is_displayed): Update.
5336 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5337 (tui_check_and_display_highlight_if_needed)
5338 (tui_win_info::make_visible, tui_win_info::refresh)
5339 (tui_refresh_all): Update.
5340 * tui/tui-windata.c (tui_first_data_item_displayed)
5341 (tui_delete_data_content_windows, tui_erase_data_content)
5342 (tui_display_all_data, tui_data_window::refresh_all)
5343 (tui_check_data_values): Update.
5344 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
5345 (tui_set_win_focus_to, tui_win_info::forward_scroll)
5346 (tui_win_info::backward_scroll, tui_refresh_all_win)
5347 (tui_resize_all, tui_set_focus, tui_all_windows_info)
5348 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
5349 (tui_source_window_base::set_new_height)
5350 (tui_data_window::set_new_height)
5351 (make_invisible_and_set_new_height)
5352 (make_visible_with_new_height, new_height_ok)
5353 (parse_scrolling_args): Update.
5354 * tui/tui-stack.c (tui_show_frame_info): Update.
5355 * tui/tui-source.c (tui_set_source_content)
5356 (tui_set_source_content_nil, tui_source_is_displayed)
5357 (tui_source_window::do_scroll_vertical): Update.
5358 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5359 (tui_display_registers_from, tui_display_reg_element_at_line)
5360 (tui_check_register_values, tui_reg_command): Update.
5361 * tui/tui-layout.c (tui_default_win_height)
5362 (show_source_disasm_command, show_data, init_and_make_win)
5363 (show_source_or_disasm_and_command): Update.
5364 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
5365 (tui_redisplay_readline, tui_mld_flush)
5366 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
5367 (tui_getc): Update.
5368 * tui/tui-disasm.c (tui_set_disassem_content)
5369 (tui_disasm_window::do_scroll_vertical): Update.
5370 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
5371 Now virtual.
5372 (struct tui_win_info): Derive from tui_gen_win_info.
5373 <~tui_win_info>: Mark as override.
5374 <generic>: Remove member.
5375 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
5376 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
5377 (~tui_data_window, ~tui_win_info)
5378 (tui_free_all_source_wins_content): Update.
5379 * tui/tui-command.c (tui_refresh_cmd_win): Update.
5380
5381 2019-06-25 Tom Tromey <tom@tromey.com>
5382
5383 * tui/tui-layout.c (init_and_make_win): Use new.
5384 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
5385 destructor, initializers.
5386 (tui_alloc_generic_win_info): Don't declare.
5387 * tui/tui-data.c (_locator): Add argument to constructor.
5388 (source_win, disasm_win): New globals.
5389 (exec_info): Remove.
5390 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5391 Update.
5392 (tui_alloc_generic_win_info): Remove.
5393 (init_content_element): Use new.
5394 (tui_win_info::tui_win_info): Update.
5395 (free_content_elements) <case DATA_WIN>: Use delete.
5396
5397 2019-06-25 Tom Tromey <tom@tromey.com>
5398
5399 * tui/tui-wingeneral.c (tui_refresh_win): Update.
5400 * tui/tui-windata.c (tui_first_data_item_displayed)
5401 (tui_delete_data_content_windows): Update.
5402 * tui/tui-win.c (tui_data_window::set_new_height): Update.
5403 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5404 (tui_display_registers_from, tui_check_register_values): Update.
5405 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
5406 pointer.
5407 * tui/tui-data.c (init_content_element): Update. Allocate the new
5408 window.
5409 (tui_free_data_content): Update.
5410 (free_content_elements) <case DATA_WIN>: Free the window.
5411
5412 2019-06-25 Tom Tromey <tom@tromey.com>
5413
5414 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
5415 Update.
5416 * tui/tui-layout.c (make_command_window)
5417 (show_source_disasm_command, show_data, init_and_make_win)
5418 (show_source_or_disasm_and_command): Update.
5419 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
5420 method.
5421 <can_highight, is_highlighted>: Now bool.
5422 (tui_set_win_highlight): Don't declare.
5423 * tui/tui-data.c (tui_set_win_highlight): Remove.
5424
5425 2019-06-25 Tom Tromey <tom@tromey.com>
5426
5427 * tui/tui-wingeneral.c (make_visible): Remove check of window
5428 type.
5429
5430 2019-06-25 Tom Tromey <tom@tromey.com>
5431
5432 * tui/tui-win.c (tui_win_info::max_height)
5433 (tui_cmd_window::max_height): New methods.
5434 (new_height_ok): Call max_height.
5435 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
5436 <max_height>: New method.
5437
5438 2019-06-25 Tom Tromey <tom@tromey.com>
5439
5440 * tui/tui-win.c (tui_source_window_base::set_new_height)
5441 (tui_data_window::set_new_height): New methods.
5442 (make_invisible_and_set_new_height): Call set_new_height method.
5443 * tui/tui-data.h (struct tui_win_info)
5444 (struct tui_source_window_base, struct tui_data_window)
5445 <set_new_height>: New method.
5446
5447 2019-06-25 Tom Tromey <tom@tromey.com>
5448
5449 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
5450 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
5451 tui_refresh_data_win.
5452 * tui/tui-win.c (tui_source_window_base::refresh_all): New
5453 method.
5454 (tui_refresh_all_win): Call the refresh_all method.
5455 (tui_set_focus): Likewise.
5456 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
5457 (struct tui_source_window_base, struct tui_data_window) <refresh>:
5458 Likewise.
5459
5460 2019-06-25 Tom Tromey <tom@tromey.com>
5461
5462 * tui/tui-winsource.h (tui_refill_source_window)
5463 (tui_set_is_exec_point_at): Don't declare.
5464 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5465 (tui_source_window_base::refill): Rename from
5466 tui_refill_source_window.
5467 (tui_source_window_base::do_scroll_horizontal): Update.
5468 (tui_source_window_base::set_is_exec_point_at): Rename from
5469 tui_set_is_exec_point_at.
5470 (tui_update_all_breakpoint_info): Update.
5471 * tui/tui-stack.c (tui_show_frame_info): Update.
5472 * tui/tui-layout.c (show_data): Add cast.
5473 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
5474 * tui/tui-data.h (struct tui_source_window_base) <refill,
5475 set_is_exec_point_at>: New methods.
5476 (tui_source_windows, tui_add_to_source_windows): Update types.
5477 (tui_add_to_source_windows): Remove redundant declaration.
5478 * tui/tui-data.c (source_windows): Store tui_source_window_base.
5479 (tui_source_windows): Change return type.
5480 (tui_clear_source_windows_detail): Update.
5481 (tui_add_to_source_windows): Change type of parameter.
5482 (tui_free_all_source_wins_content): Update.
5483
5484 2019-06-25 Tom Tromey <tom@tromey.com>
5485
5486 * tui/tui-wingeneral.c (tui_win_info::refresh)
5487 (tui_source_window_base::refresh): New methods.
5488 (tui_refresh_all): Call the refresh method.
5489 * tui/tui-data.h (struct tui_win_info)
5490 (struct tui_source_window_base) <refresh>: New method.
5491
5492 2019-06-25 Tom Tromey <tom@tromey.com>
5493
5494 * tui/tui.h (tui_is_window_visible): Return bool.
5495 * tui/tui.c (tui_is_window_visible): Return bool.
5496 * tui/tui-wingeneral.c (tui_make_window, make_visible)
5497 (tui_make_visible, tui_make_invisible)
5498 (tui_win_info::make_visible)
5499 (tui_source_window_base::make_visible, make_all_visible)
5500 (tui_make_all_visible, tui_make_all_invisible): Update.
5501 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
5502 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
5503 bool.
5504 (struct tui_win_info, struct tui_source_window_base)
5505 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
5506 * tui/tui-data.c (tui_init_generic_part): Update.
5507
5508 2019-06-25 Tom Tromey <tom@tromey.com>
5509
5510 * tui/tui-wingeneral.c (tui_win_info::make_visible)
5511 (tui_source_window_base::make_visible): New methods.
5512 (make_all_visible): Make method call.
5513 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
5514 (struct tui_source_window_base, struct tui_cmd_window): Override
5515 make_visible.
5516 (tui_win_is_source_type): Don't declare.
5517 * tui/tui-data.c (tui_win_is_source_type): Remove.
5518
5519 2019-06-25 Tom Tromey <tom@tromey.com>
5520
5521 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
5522 NULL check.
5523
5524 2019-06-25 Tom Tromey <tom@tromey.com>
5525
5526 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
5527 Inline constructor. Add initializers for members.
5528 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
5529 constructors; now inline in class.
5530
5531 2019-06-25 Tom Tromey <tom@tromey.com>
5532
5533 * tui/tui-regs.c (tui_show_registers): Update.
5534 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
5535 bool.
5536 * tui/tui-data.c (tui_data_window::clear_detail)
5537 (tui_data_window): Update.
5538
5539 2019-06-25 Tom Tromey <tom@tromey.com>
5540
5541 * tui/tui-windata.c (tui_display_all_data)
5542 (tui_display_data_from_line, tui_display_data_from)
5543 (tui_check_data_values, tui_data_window::do_scroll_vertical):
5544 Update.
5545 * tui/tui-regs.c (tui_last_regs_line_no)
5546 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5547 (tui_show_registers, tui_show_register_group)
5548 (tui_display_registers_from, tui_display_reg_element_at_line)
5549 (tui_display_registers_from_line, tui_check_register_values)
5550 (tui_reg_next, tui_reg_prev): Update.
5551 * tui/tui-layout.c (tui_set_layout, show_data): Update.
5552 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
5553 tui_data_window.
5554 (struct tui_win_info) <detail>: Remove. Add new fields from
5555 tui_data_info.
5556 (TUI_DATA_WIN): Add cast.
5557 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
5558 (~tui_data_window): Simplify.
5559
5560 2019-06-25 Tom Tromey <tom@tromey.com>
5561
5562 * tui/tui-layout.c (show_source_disasm_command)
5563 (show_source_or_disasm_and_command): Update.
5564 * tui/tui-io.c (update_cmdwin_start_line)
5565 (tui_redisplay_readline): Update.
5566 * tui/tui-data.h (struct tui_command_info): Remove.
5567 (struct tui_win_info) <detail>: Remove command_info member.
5568 (struct tui_data_window) <start_line>: New member, from
5569 tui_command_info.
5570 (TUI_CMD_WIN): Add casts.
5571
5572 2019-06-25 Tom Tromey <tom@tromey.com>
5573
5574 * tui/tui-winsource.c (tui_update_source_window)
5575 (tui_refill_source_window)
5576 (tui_source_window_base::do_scroll_horizontal)
5577 (tui_update_breakpoint_info, tui_set_exec_info_content)
5578 (tui_show_exec_info_content, tui_erase_exec_info_content)
5579 (tui_clear_exec_info_content): Update.
5580 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
5581 Update.
5582 * tui/tui-win.c (make_invisible_and_set_new_height)
5583 (make_visible_with_new_height): Update.
5584 * tui/tui-source.c (tui_set_source_content)
5585 (tui_show_symtab_source): Update.
5586 * tui/tui-layout.c (extract_display_start_addr)
5587 (show_source_disasm_command, show_data)
5588 (make_source_or_disasm_window)
5589 (show_source_or_disasm_and_command): Update.
5590 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
5591 (tui_disasm_window::do_scroll_vertical): Remove shadowing
5592 "gdbarch".
5593 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
5594 to tui_source_window_base.
5595 (struct tui_win_info) <detail>: Remove source_info member.
5596 (struct tui_source_window_base) <has_locator>: Inline.
5597 Move contents from tui_source_info; rename has_locator member to
5598 m_has_locator.
5599 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
5600 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
5601 header file.
5602 (tui_source_window_base::clear_detail, ~tui_source_window_base):
5603 Simplify.
5604 (tui_free_all_source_wins_content): Cast to
5605 tui_source_window_base.
5606
5607 2019-06-25 Tom Tromey <tom@tromey.com>
5608
5609 * tui/tui-win.c (make_invisible_and_set_new_height)
5610 (make_visible_with_new_height): Call has_locator method.
5611 * tui/tui-layout.c (show_source_disasm_command, show_data)
5612 (show_source_or_disasm_and_command): Update for bool change.
5613 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
5614 (tui_win_info) <has_locator>: New method.
5615 (struct tui_source_window_base) <has_locator>: New method.
5616 (tui_win_has_locator): Don't declare.
5617 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
5618 from tui_win_has_locator.
5619 (tui_source_window_base): Use false, not FALSE.
5620
5621 2019-06-25 Tom Tromey <tom@tromey.com>
5622
5623 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
5624 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
5625 clear_detail method directly.
5626 (tui_clear_win_detail): Remove.
5627
5628 2019-06-25 Tom Tromey <tom@tromey.com>
5629
5630 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
5631 "this", not TUI_DISASM_WIN.
5632
5633 2019-06-25 Tom Tromey <tom@tromey.com>
5634
5635 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
5636 declare.
5637 * tui/tui-winsource.c
5638 (tui_source_window_base::do_scroll_horizontal): Rename from
5639 tui_horizontal_source_scroll.
5640 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
5641 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
5642 from tui_vertical_data_scroll.
5643 * tui/tui-win.h (tui_scroll): Don't declare.
5644 * tui/tui-win.c (tui_win_info::forward_scroll)
5645 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5646 (tui_win_info::right_scroll): Rename and update.
5647 (tui_scroll_forward_command, tui_scroll_backward_command)
5648 (tui_scroll_left_command, tui_scroll_right_command): Update.
5649 (tui_scroll): Remove.
5650 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
5651 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
5652 from tui_vertical_source_scroll.
5653 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
5654 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
5655 from tui_vertical_disassem_scroll.
5656 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
5657 do_scroll_horizontal>: New methods.
5658 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
5659 Likewise.
5660 (struct tui_source_window_base): Add do_scroll_horizontal.
5661 (struct tui_source_window, struct tui_disasm_window): Add
5662 do_scroll_vertical.
5663 (struct tui_data_window, struct tui_cmd_window): Add
5664 do_scroll_horizontal and do_scroll_vertical.
5665 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
5666
5667 2019-06-25 Tom Tromey <tom@tromey.com>
5668
5669 * tui/tui-data.h (struct tui_source_window_base): New struct.
5670 (struct tui_source_window): Derive from tui_source_window_base.
5671 (struct tui_disasm_window): New struct.
5672 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
5673 from tui_source_window::clear_detail.
5674 (tui_source_window_base): Rename from tui_source_window.
5675 (~tui_source_window_base): Rename from ~tui_source_window.
5676 (tui_alloc_win_info): Create a tui_disasm_window.
5677
5678 2019-06-25 Tom Tromey <tom@tromey.com>
5679
5680 * tui/tui-data.h (struct tui_source_window)
5681 (struct tui_data_window): Declare destructors.
5682 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
5683 destructors.
5684 (tui_win_info): Simplify.
5685
5686 2019-06-25 Tom Tromey <tom@tromey.com>
5687
5688 * tui/tui-winsource.c (tui_display_main)
5689 (tui_update_source_windows_with_addr)
5690 (tui_update_all_breakpoint_info): Update.
5691 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5692 (new_height_ok, parse_scrolling_args): Update.
5693 * tui/tui-stack.c (tui_show_frame_info): Update.
5694 * tui/tui-data.h (struct tui_list): Remove.
5695 (tui_source_windows): Return a reference to a std::vector.
5696 * tui/tui-data.c (source_windows): Now a std::vector.
5697 (tui_source_windows): Change return type.
5698 (tui_clear_source_windows): Rewrite.
5699 (tui_clear_source_windows_detail, tui_add_to_source_windows)
5700 (tui_free_all_source_wins_content): Rewrite.
5701
5702 2019-06-25 Tom Tromey <tom@tromey.com>
5703
5704 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
5705 (struct tui_data_window, struct tui_cmd_window): Declare
5706 clear_detail method.
5707 * tui/tui-data.c (tui_source_window::clear_detail)
5708 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
5709 methods.
5710 (tui_clear_win_detail): Simplify.
5711
5712 2019-06-25 Tom Tromey <tom@tromey.com>
5713
5714 * tui/tui-layout.c (make_source_window, make_disasm_window)
5715 (make_source_or_disasm_window): Remove win_info_ptr parameter.
5716 Return the new window.
5717 (show_source_disasm_command, show_data)
5718 (show_source_or_disasm_and_command): Update.
5719
5720 2019-06-25 Tom Tromey <tom@tromey.com>
5721
5722 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
5723 parameter. Return the new window.
5724 (show_source_disasm_command): Update and remove NULL check.
5725 (show_source_or_disasm_and_command): Update.
5726
5727 2019-06-25 Tom Tromey <tom@tromey.com>
5728
5729 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
5730
5731 2019-06-25 Tom Tromey <tom@tromey.com>
5732
5733 * tui/tui-data.h (struct tui_win_info): Make constructor
5734 protected. Make destructor virtual. Add initializers.
5735 (tui_source_window, tui_data_window, tui_cmd_window): New
5736 classes.
5737 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
5738 constructor. Add "type" parameter.
5739 (tui_source_window, tui_data_window, tui_cmd_window): New
5740 constructors.
5741 (tui_alloc_win_info): Instantiate the appropriate subclass.
5742
5743 2019-06-25 Tom Tromey <tom@tromey.com>
5744
5745 * tui/tui-win.c (tui_resize_all): Use delete.
5746 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
5747 destructor.
5748 (tui_free_window): Don't declare.
5749 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
5750 Update.
5751
5752 2019-06-25 Tom Tromey <tom@tromey.com>
5753
5754 * tui/tui-data.h (struct tui_win_info): Add constructor.
5755 * tui/tui-data.c (tui_alloc_win_info): Use new.
5756 (tui_free_window): Use delete.
5757
5758 2019-06-22 Tom Tromey <tom@tromey.com>
5759
5760 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
5761 declare.
5762 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
5763
5764 2019-06-22 Tom Tromey <tom@tromey.com>
5765
5766 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
5767 declare.
5768 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
5769
5770 2019-06-22 Tom de Vries <tdevries@suse.de>
5771
5772 * dwarf2read.c (create_addrmap_from_aranges)
5773 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
5774 instead of '%zu'.
5775
5776 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
5777
5778 * dwarf2read.h (dwarf2_section_info_def): Remove.
5779 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
5780 * dwarf2read.c (struct dwo_sections) <types>: Change type to
5781 std::vector<dwarf2_section_info>.
5782 (struct dwo_file) <~dwo_file>: Remove.
5783 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
5784 types field.
5785 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
5786 (dwarf2_read_debug_names): Likewise.
5787 (create_debug_types_hash_table): Change parameter type to
5788 array_view, adjust code accordingly.
5789 (dwarf2_locate_dwo_sections): Adjust to std::vector.
5790 (partial_die_info::fixup): Likewise.
5791 (determine_prefix): Likewise.
5792 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
5793
5794 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5795
5796 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
5797 gdb_bfd_ref_ptr.
5798 <~dwo_file>: Remove call to gdb_bfd_unref.
5799 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
5800 gdb_bfd_ref_ptr::get.
5801
5802 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5803
5804 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
5805 type to htab_up.
5806 * dwarf2read.c (struct dwo_file): Initialize fields.
5807 <~dwo_file>: New.
5808 (free_dwo_file): Remove, move content to ~dwo_file.
5809 (struct dwo_file_deleter): Remove.
5810 (dwo_file_up>: Remove custom deleter.
5811 (free_dwo_files): Remove.
5812 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
5813 dwo_files.
5814 (process_skeletonless_type_units): Call unique_ptr::get.
5815 (allocate_dwo_file_hash_table): Add deleter to created hash
5816 table. Change return type to htab_up.
5817 (lookup_dwo_file_slot): Don't memset dwo_file, call
5818 unique_ptr::get.
5819 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
5820 (create_dwo_unit_in_dwp_v2): Likewise.
5821 (open_and_init_dwo_file): Likewise.
5822 (free_dwo_file_from_slot): Remove.
5823
5824 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5825
5826 * dwarf2read.h (struct dwarf2_section_info) <readin,
5827 is_virtual>: Change type to bool.
5828 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
5829 true instead of 1.
5830
5831 2019-06-19 Tom Tromey <tom@tromey.com>
5832
5833 * tui/tui-data.h (tui_init_content_element): Don't declare.
5834
5835 2019-06-19 Tom Tromey <tom@tromey.com>
5836
5837 * tui/tui-data.h (tui_init_win_info): Don't declare.
5838
5839 2019-06-19 Tom de Vries <tdevries@suse.de>
5840
5841 * dwarf2read.h (abstract_to_concrete): Change type to
5842 std::unordered_map<sect_offset, std::vector<sect_offset>,
5843 gdb::hash_enum<sect_offset>>.
5844
5845 2019-06-19 Tom Tromey <tromey@adacore.com>
5846
5847 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
5848 EVAL_AVOID_SIDE_EFFECTS specially.
5849
5850 2019-06-19 Tom Tromey <tromey@adacore.com>
5851
5852 * source-cache.c (highlighter): New global.
5853 (source_cache::get_source_lines): Create a highlighter on demand.
5854
5855 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
5856
5857 * defs.h (deprecated_interactive_hook): Delete declaration.
5858 * interps.c (clear_interpreter_hooks): Remove use of
5859 deprecated_interactive_hook.
5860 * top.c (deprecated_interactive_hook): Delete definition.
5861 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
5862
5863 2019-06-18 Tom de Vries <tdevries@suse.de>
5864
5865 PR gdb/24515
5866 * dwarf2read.h (abstract_to_concrete): Change type from
5867 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
5868 std::unordered_map<sect_offset, std::vector<sect_offset>>.
5869 * dwarf2read.c (read_variable): Update.
5870 (dwarf2_fetch_die_loc_sect_off): Update.
5871
5872 2019-06-17 Tom de Vries <tdevries@suse.de>
5873
5874 PR gdb/24617
5875 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
5876 accessing parent[parent_len - 1].
5877
5878 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
5879
5880 PR gdb/24364
5881 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
5882 call dtrace_process_dof with NULL dof.
5883
5884 2019-06-16 Tom de Vries <tdevries@suse.de>
5885
5886 PR gdb/24445
5887 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
5888
5889 2019-06-16 Tom Tromey <tom@tromey.com>
5890
5891 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5892 (make_all_visible): Use address of member.
5893
5894 2019-06-16 Tom Tromey <tom@tromey.com>
5895
5896 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
5897 (tui_free_window, free_content, free_content_elements): Remove
5898 unnecessary cast.
5899 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
5900 cast.
5901 * tui/tui-regs.c (tui_show_register_group)
5902 (tui_display_registers_from, tui_display_reg_element_at_line):
5903 Remove unnecessary cast.
5904
5905 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5906
5907 * linux-nat.c (normal_mask): Delete.
5908 (_initialize_linux_nat): Don't initialise normal_mask.
5909
5910 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
5911
5912 PR gdb/24445
5913 * dwarf-index-write.h (write_psymtabs_to_index): Add
5914 dwz_basename parameter.
5915 * dwarf-index-write.c (write_gdbindex): Move file writing to
5916 write_gdbindex_1. Change return type void.
5917 (assert_file_size): Move up, remove filename parameter.
5918 (write_gdbindex_1): New function.
5919 (write_debug_names): Change return type to void, call
5920 assert_file_size.
5921 (struct index_wip_file): New struct.
5922 (write_psymtabs_to_index): Add dwz_basename parameter. Move
5923 file logic to index_wip_file. Write index for dwz file if
5924 needed.
5925 (save_gdb_index_command): Pass basename of dwz file, if present.
5926 * dwarf-index-cache.c (index_cache::store): Obtain and pass
5927 build-id of dwz file, if present.
5928 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
5929 (dwarf2_get_dwz_file): Likewise.
5930 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
5931 (dwarf2_get_dwz_file): Likewise.
5932
5933 2019-06-16 Tom Tromey <tom@tromey.com>
5934
5935 * coffread.c (process_coff_symbol): Use xstrdup.
5936 * value.c (create_internalvar): Use xstrdup.
5937
5938 2019-06-16 Tom Tromey <tom@tromey.com>
5939
5940 * valops.c (value_cast, value_slice): Remove unnecessary cast.
5941 * breakpoint.c (stopin_command, stopat_command)
5942 (until_break_command, decode_location_default): Remove unnecessary
5943 cast.
5944 * utils.c (subset_compare): Remove unnecessary cast.
5945 * ada-lang.c (ada_update_initial_language): Remove unnecessary
5946 cast.
5947 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
5948 cast.
5949 * infcmd.c (path_command): Remove unnecessary cast.
5950 * coffread.c (decode_type): Remove unnecessary cast.
5951 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
5952 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
5953 * tui/tui-stack.c (tui_show_locator_content)
5954 (tui_show_frame_info): Remove unnecessary cast.
5955 * tui/tui-win.c (tui_scroll_forward_command)
5956 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
5957 (parse_scrolling_args): Remove unnecessary cast.
5958 * tui/tui-data.c (init_win_info, tui_del_window)
5959 (tui_free_window, tui_del_data_windows, tui_free_data_content)
5960 (free_content_elements): Remove unnecessary cast.
5961 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
5962 unnecessary cast.
5963 * tui/tui-source.c (tui_set_source_content)
5964 (tui_vertical_source_scroll): Remove unnecessary cast.
5965 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
5966 cast.
5967 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
5968 * tui/tui-regs.c (tui_display_registers_from)
5969 (tui_display_register): Remove unnecessary cast.
5970 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
5971 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
5972 (make_visible): Remove unnecessary cast.
5973 * tui/tui-winsource.c (tui_erase_source_content)
5974 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
5975 unnecessary cast.
5976 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
5977 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
5978 * stabsread.c (read_type, read_array_type, read_range_type):
5979 Remove unnecessary cast.
5980 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
5981 (parse_symbol, parse_type, upgrade_type, parse_external)
5982 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
5983 unnecessary cast.
5984 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
5985
5986 2019-06-16 Tom Tromey <tom@tromey.com>
5987
5988 * tui/tui-data.c (tui_alloc_generic_win_info)
5989 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
5990 checks.
5991
5992 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
5993 Andrew Burgess <andrew.burgess@embecosm.com>
5994
5995 * f-typeprint.c (f_print_type): Don't return early for not
5996 associated or not allocated types.
5997 (f_type_print_varspec_suffix): Add print_rank parameter and print
5998 ranks of array types in case they dangling.
5999 (f_type_print_base): Add print_rank parameter.
6000
6001 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6002
6003 * NEWS: Mention new MI commands.
6004 * break-catch-throw.c (enum exception_event_kind): Move to
6005 breakpoint.h.
6006 (print_mention_exception_catchpoint): Output text as a single
6007 message.
6008 (catch_exception_command_1): Rename to...
6009 (catch_exception_event): ...this, make non-static, update header
6010 command, and change some parameter types.
6011 (catch_catch_command): Update for changes to
6012 catch_exception_command_1.
6013 (catch_throw_command): Likewise.
6014 (catch_rethrow_command): Likewise.
6015 * breakpoint.c (enum exception_event_kind): Delete.
6016 * breakpoint.h (enum exception_event_kind): Moved here from
6017 break-catch-throw.c.
6018 (catch_exception_event): Declare.
6019 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
6020 (mi_cmd_catch_throw): New function.
6021 (mi_cmd_catch_rethrow): New function.
6022 (mi_cmd_catch_catch): New function.
6023 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
6024 'catch-catch' entries.
6025 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
6026 (mi_cmd_catch_rethrow): Declare.
6027 (mi_cmd_catch_catch): Declare.
6028
6029 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6030
6031 * annotate.c (annotate_source_line): Change return type to void,
6032 update implementation to match.
6033 * annotate.h (annotate_source_line): Change return type to void,
6034 update header comment.
6035 * stack.c (print_frame_info): Don't change what frame information
6036 is printed based on whether annotations are on or not.
6037
6038 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6039
6040 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
6041 (annotate_source): Make static.
6042 (annotate_source_line): Moved from source.c and renamed from
6043 identify_source_line. Update the return type.
6044 * annotate.h (annotate_source): Delete declaration.
6045 (annotate_source_line): Declaration moved from source.h, and
6046 renamed from identify_source_line. Return type updated.
6047 * source.c (identify_source_line): Moved to annotate.c and renamed
6048 to annotate_source_line.
6049 (info_line_command): Remove check of annotation_level.
6050 * source.h (identify_source_line): Move declaration to annotate.h
6051 and rename to annotate_source_line.
6052 * stack.c: Add 'annotate.h' include.
6053 (print_frame_info): Remove check of annotation_level before
6054 calling annotate_source_line.
6055
6056 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6057
6058 * source-cache.c (source_cache::get_plain_source_lines): Use
6059 open_source_file_with_line_charpos instead of just
6060 open_source_file, remove call to find_source_lines.
6061 (source_cache::get_source_lines): Likewise.
6062 * source.c (find_source_lines): Make static.
6063 (get_filename_and_charpos): Renamed into...
6064 (open_source_file_with_line_charpos): ..this along with changes to
6065 return a scoped_fd, and some other minor clean ups.
6066 (identify_source_line): Use open_source_file_with_line_charpos.
6067 (search_command_helper): Use open_source_file_with_line_charpos
6068 instead of just open_source_file, remove call to
6069 find_source_lines.
6070 * source.h (open_source_file_with_line_charpos): Declare new
6071 function.
6072 (find_source_lines): Delete declaration.
6073
6074 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6075
6076 * source.c (get_filename_and_charpos): Remove fullname
6077 parameter.
6078 (identify_source_line): Update call to get_filename_and_charpos.
6079
6080 2019-06-14 Tom Tromey <tromey@adacore.com>
6081
6082 PR gdb/24502:
6083 * ui-style.h (skip_ansi_escape): Update comment.
6084 * ui-file.h (class no_terminal_escape_file): New class.
6085 * ui-file.c (no_terminal_escape_file::write)
6086 (no_terminal_escape_file::puts): New methods.
6087 * cli/cli-logging.c (handle_redirections): Use
6088 no_terminal_escape_file.
6089
6090 2019-06-14 Tom Tromey <tromey@adacore.com>
6091
6092 * NEWS: Move convenience variable news above Python news.
6093
6094 2019-06-14 Tom Tromey <tom@tromey.com>
6095
6096 * gnulib: Move directory to top-level.
6097 * configure.ac: Don't configure gnulib.
6098 * configure: Rebuild.
6099 * common/common-defs.h: Use new path to gnulib.
6100 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
6101 (GNULIB_H): Remove.
6102 (INCGNU): Look in new gnulib location.
6103 (HFILES_NO_SRCDIR): Remove gnulib files.
6104 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
6105 (generated_files): Remove GNULIB_H.
6106 ($(LIBGNU), all-lib): Remove targets.
6107 (distclean): Don't mention GNULIB_BUILDDIR.
6108 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
6109
6110 2019-06-14 Tom Tromey <tromey@adacore.com>
6111
6112 * symfile.c (add_symbol_file_command): Remove obsolete comment.
6113 Warn if symbol file does not provide any symbols.
6114
6115 2019-06-14 Tom Tromey <tromey@adacore.com>
6116
6117 * source.c (find_and_open_source): Respect basenames_may_differ.
6118
6119 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
6120
6121 * annotate.c (annotate_breakpoints_invalid): Make use of
6122 scoped_restore_terminal_state.
6123 (annotate_frames_invalid): Likewise.
6124
6125 2019-06-14 Tom Tromey <tromey@adacore.com>
6126
6127 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
6128 allow assignment to an internalvar.
6129
6130 2019-06-14 Tom Tromey <tromey@adacore.com>
6131
6132 * ada-lex.l: Allow "_" in attribute names.
6133
6134 2019-06-14 Tom Tromey <tromey@adacore.com>
6135
6136 PR gdb/24653:
6137 * regcache.c (registers_changed): Don't call alloca.
6138 * top.c (execute_command): Don't call alloca.
6139
6140 2019-06-13 Pedro Alves <palves@redhat.com>
6141
6142 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
6143 'expression'. When parsing an expression, error out if there's
6144 junk after "unlimited".
6145 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6146 (do_set_command): Adjust calls to is_unlimited_literal.
6147
6148 2019-06-13 Pedro Alves <palves@redhat.com>
6149
6150 * compile/compile.c (make_compile_options_def_group): Add braces
6151 around array_view initializer.
6152 * thread.c (make_thread_apply_all_options_def_group)
6153 (make_thread_apply_all_options_def_group): Likewise.
6154
6155 2019-06-13 Pedro Alves <palves@redhat.com>
6156
6157 * NEWS (New commands): Mention "maint test-options
6158 require-delimiter", "maint test-options unknown-is-error", "maint
6159 test-options unknown-is-operand" and "maint show
6160 test-options-completion-result".
6161 (New command options, command completion): New section.
6162 (Completion improvements): New section.
6163 Mention that you can abbreviate "unlimited".
6164
6165 2019-06-13 Pedro Alves <palves@redhat.com>
6166
6167 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
6168 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
6169 * unittests/cli-utils-selftests.c (test_parse_flags)
6170 (test_parse_flags_qcs): Delete.
6171 (test_cli_utils): Don't call deleted functions.
6172
6173 2019-06-13 Pedro Alves <palves@redhat.com>
6174
6175 * thread.c: Include "cli/cli-option.h".
6176 (tp_array_compar_ascending): Global.
6177 (tp_array_compar): Delete function.
6178 (tp_array_compar_ascending, tp_array_compar_descending): New
6179 functions.
6180 (ascending_option_def, qcs_flag_option_def)
6181 (thr_qcs_flags_option_defs)
6182 (make_thread_apply_all_options_def_group)
6183 (make_thread_apply_options_def_group): New.
6184 (thread_apply_all_command): Use gdb::option::process_options.
6185 (thread_apply_command_completer)
6186 (thread_apply_all_command_completer): New.
6187 (thread_apply_command): Use gdb::option::process_options.
6188 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
6189 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
6190 to generate help text of "thread apply". Adjust "taas"'s help.
6191 * tid-parse.c (tid_range_parser::in_thread_range): New method.
6192 * tid-parse.h (tid_range_parser::in_thread_range): New method.
6193
6194 2019-06-13 Pedro Alves <palves@redhat.com>
6195
6196 * thread.c (thread_apply_command): Check for invalid TID with
6197 isdigit instead of !isalpha.
6198
6199 2019-06-13 Pedro Alves <palves@redhat.com>
6200
6201 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
6202 (validate_flags_qcs): New.
6203 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
6204 (validate_flags_qcs): Declare.
6205 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
6206 (make_frame_apply_options_def_group): New.
6207 (frame_apply_command_count): Process options with
6208 gdb::option::process_options.
6209 (frame_apply_completer): New.
6210 (frame_apply_level_completer, frame_apply_all_completer)
6211 (frame_apply_completer): New.
6212 (_initialize_stack): Update help of "frame apply", "frame apply
6213 level", "frame apply all" and "faas" to mention supported options
6214 and install command completers.
6215 * stack.h (frame_apply_all_completer): Declare.
6216 * thread.c: Include "stack.h".
6217 (tfaas_command): Add "--".
6218 (_initialize_thread): Update help "tfaas" to mention supported
6219 options and install command completer.
6220
6221 2019-06-13 Pedro Alves <palves@redhat.com>
6222
6223 * completer.c (complete_nested_command_line): New.
6224 (gdb_completion_word_break_characters_throw): Add assertion.
6225 * completer.h (complete_nested_command_line): Declare.
6226
6227 2019-06-13 Pedro Alves <palves@redhat.com>
6228
6229 * stack.c (parse_backtrace_qualifiers): New.
6230 (backtrace_command): Use it.
6231 (backtrace_command_completer): Complete on qualifiers.
6232
6233 2019-06-13 Pedro Alves <palves@redhat.com>
6234
6235 * frame.c: Include "cli/cli-option.h.
6236 (user_set_backtrace_options): New.
6237 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
6238 Delete.
6239 (get_prev_frame): Adjust.
6240 (boolean_option_def, uinteger_option_def)
6241 (set_backtrace_option_defs): New.
6242 (_initialize_frame): Adjust and use
6243 gdb::option::add_setshow_cmds_for_options to install "set
6244 backtrace past-main" and "set backtrace past-entry".
6245 * frame.h: Include "cli/cli-option.h".
6246 (struct frame_print_options): Forward declare.
6247 (print_frame_arguments_all, print_frame_arguments_scalars)
6248 (print_frame_arguments_none): Declare.
6249 (print_entry_values): Delete declaration.
6250 (struct frame_print_options, user_frame_print_options): New.
6251 (struct set_backtrace_options): New.
6252 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
6253 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
6254 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
6255 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
6256 (list_args_or_locals): Add frame_print_options parameter.
6257 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6258 * python/py-framefilter.c (enumerate_args): Pass down
6259 USER_FRAME_PRINT_OPTIONS.
6260 * stack.c: Include "cli/cli-option.h".
6261 (print_frame_arguments_all, print_frame_arguments_scalars)
6262 (print_frame_arguments_none): Declare.
6263 (print_raw_frame_arguments, print_entry_values): Delete.
6264 (user_frame_print_options): New.
6265 (boolean_option_def, enum_option_def, frame_print_option_defs):
6266 New.
6267 (struct backtrace_cmd_options): New.
6268 (bt_flag_option_def): New.
6269 (backtrace_command_option_defs): New.
6270 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6271 (print_frame_arg, read_frame_arg, print_frame_args)
6272 (print_frame_info, print_frame): Add frame_print_options parameter
6273 and use it.
6274 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
6275 (backtrace_command_1): Add frame_print_options and
6276 backtrace_cmd_options parameters and use them.
6277 (make_backtrace_options_def_group): New.
6278 (backtrace_command): Process command options with
6279 gdb::option::process_options.
6280 (backtrace_command_completer): New.
6281 (_initialize_stack): Extend "backtrace"'s help to mention
6282 supported options. Install completer for "backtrace".
6283 Install some settings commands with add_setshow_cmds_for_options.
6284
6285 2019-06-13 Pedro Alves <palves@redhat.com>
6286
6287 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
6288 and that "set/show print raw frame-arguments" are now deprecated.
6289
6290 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
6291 command.
6292 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
6293 * stack.c (_initialize_stack): Install "set/show print
6294 raw-frame-arguments", and deprecate "set/show print raw
6295 frame-arguments".
6296 * valprint.c (_initialize_valprint): Deprecate "set/show print
6297 raw".
6298
6299 2019-06-13 Pedro Alves <palves@redhat.com>
6300
6301 * compile/compile.c (struct compile_options): New.
6302 (compile_flag_option_def, compile_command_option_defs)
6303 (make_compile_options_def_group): New.
6304 (compile_file_command): Handle options with
6305 gdb::option::process_options.
6306 (compile_file_command_completer): New function.
6307 (compile_code_command): Handle options with
6308 gdb::option::process_options.
6309 (compile_code_command_completer): New function.
6310 (_initialize_compiler): Install completers for "compile code" and
6311 "compile file". Mention available options in "compile code" and
6312 "compile code"'s help.
6313 * completer.c (advance_to_completion_word): New, factored out from
6314 ...
6315 (advance_to_expression_complete_word_point): ... this.
6316 (advance_to_filename_complete_word_point): New.
6317 * completer.h (advance_to_filename_complete_word_point): New
6318 declaration.
6319
6320 2019-06-13 Pedro Alves <palves@redhat.com>
6321
6322 * compile/compile.c: Include "cli/cli-option.h".
6323 (compile_print_value): Scope data pointer is now a
6324 value_print_options pointer; adjust.
6325 (compile_print_command): Process options. Scope data pointer is
6326 now a value_print_options pointer; adjust.
6327 (_initialize_compile): Update "compile print"'s help to include
6328 supported options. Install a completer for "compile print".
6329 * cp-valprint.c (show_vtblprint, show_objectprint)
6330 (show_static_field_print): Delete.
6331 (_initialize_cp_valprint): Don't install "set print
6332 static-members", "set print vtbl", "set print object" here.
6333 * printcmd.c: Include "cli/cli-option.h" and
6334 "common/gdb_optional.h".
6335 (print_command_parse_format): Rework to fill in a
6336 value_print_options instead of a format_data.
6337 (print_value): Change parameter type from format_data pointer to
6338 value_print_options reference. Adjust.
6339 (print_command_1): Process options. Adjust to pass down a
6340 value_print_options.
6341 (print_command_completer): New.
6342 (_initialize_printcmd): Install print_command_completer as
6343 handle_brkchars completer for the "print" command. Update
6344 "print"'s help to include supported options.
6345 * valprint.c: Include "cli/cli-option.h".
6346 (show_vtblprint, show_objectprint, show_static_field_print): Moved
6347 here from cp-valprint.c.
6348 (boolean_option_def, uinteger_option_def)
6349 (value_print_option_defs, make_value_print_options_def_group):
6350 New. Use gdb::option::add_setshow_cmds_for_options to install
6351 "set print elements", "set print null-stop", "set print repeats",
6352 "set print pretty", "set print union", "set print array", "set
6353 print address", "set print symbol", "set print array-indexes".
6354 * valprint.h: Include <string> and "cli/cli-option.h".
6355 (make_value_print_options_def_group): Declare.
6356 (print_value): Change parameter type from format_data pointer to
6357 value_print_options reference.
6358 (print_command_completer): Declare.
6359
6360 2019-06-13 Pedro Alves <palves@redhat.com>
6361
6362 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
6363 (COMMON_SFILES): Add maint-test-settings.c.
6364 * cli/cli-decode.c (boolean_enums): New global, factored out from
6365 ...
6366 (add_setshow_boolean_cmd): ... here.
6367 * cli/cli-decode.h (boolean_enums): Declare.
6368 * cli/cli-option.c: New file.
6369 * cli/cli-option.h: New file.
6370 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
6371 factored out from ...
6372 (parse_cli_boolean_value(const char *)): ... this.
6373 (is_unlimited_literal): Change parameter type to pointer to
6374 pointer. Adjust and advance ARG pointer.
6375 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6376 (parse_cli_var_enum): New, factored out from ...
6377 (do_set_command): ... this. Adjust.
6378 * cli/cli-setshow.h (parse_cli_boolean_value)
6379 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6380 (parse_cli_var_enum): Declare.
6381 * cli/cli-utils.c: Include "cli/cli-option.h".
6382 (get_ulongest): New.
6383 * cli/cli-utils.h (get_ulongest): Declare.
6384 (check_for_argument): New overloads.
6385 * maint-test-options.c: New file.
6386
6387 2019-06-13 Pedro Alves <palves@redhat.com>
6388
6389 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
6390 parse a range if "-" is at the end of the string.
6391
6392 2019-06-13 Pedro Alves <palves@redhat.com>
6393
6394 * cli/cli-setshow.c (parse_auto_binary_operation)
6395 (parse_cli_boolean_value): Don't allow "o".
6396
6397 2019-06-13 Pedro Alves <palves@redhat.com>
6398
6399 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
6400 * NEWS: Mention maint test-settings KIND.
6401 * maint-test-settings.c: New file.
6402
6403 2019-06-13 Pedro Alves <palves@redhat.com>
6404
6405 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
6406 completer.
6407 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
6408 "set" completers.
6409
6410 2019-06-13 Pedro Alves <palves@redhat.com>
6411
6412 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
6413 after item.
6414
6415 2019-06-13 Pedro Alves <palves@redhat.com>
6416
6417 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
6418
6419 2019-06-13 Pedro Alves <palves@redhat.com>
6420
6421 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
6422 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
6423 call.
6424 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
6425 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
6426 calls.
6427 (check_for_argument): Skip spaces after argument.
6428
6429 2019-06-13 Pedro Alves <palves@redhat.com>
6430
6431 * thread.c (thread_apply_command): Adjust TID parsing.
6432 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
6433 detected before end of string.
6434 (tid_is_in_list): Error out if LIST is invalid.
6435
6436 2019-06-13 Pedro Alves <palves@redhat.com>
6437
6438 * completer.c (complete_line_internal_1): Rewind completion word
6439 point.
6440 (completion_tracker::advance_custom_word_point_by): Change
6441 parameter type to int.
6442 * completer.h (completion_tracker::advance_custom_word_point_by):
6443 Likewise.
6444
6445 2019-06-13 Pedro Alves <palves@redhat.com>
6446
6447 * completer.c (advance_to_completion_word): Handle delimiters.
6448
6449 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
6450
6451 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
6452
6453 2019-06-11 Tom Tromey <tom@tromey.com>
6454
6455 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
6456 (xmalloc_failed): Move to alloc.c.
6457 * alloc.c: New file.
6458 * Makefile.in (COMMON_SFILES): Add alloc.c.
6459
6460 2019-06-11 Tom Tromey <tom@tromey.com>
6461
6462 * nat/linux-waitpid.c: Don't include server.h.
6463 (linux_debug): Remove.
6464 (my_waitpid): Update.
6465
6466 2019-06-11 Tom Tromey <tromey@adacore.com>
6467
6468 * infcall.c (_initialize_infcall): Remove trailing newline from
6469 help.
6470 * user-regs.c (_initialize_user_regs): Remove trailing newline
6471 from help.
6472 * typeprint.c (_initialize_typeprint): Remove trailing newline
6473 from help.
6474 * reverse.c (_initialize_reverse): Remove trailing newlines from
6475 help.
6476 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
6477 from help.
6478 * language.c (add_set_language_command): Remove trailing newline
6479 from help.
6480 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
6481 help.
6482 * disasm.c (_initialize_disasm): Remove trailing newline from
6483 help.
6484 * top.c (init_main): Remove trailing newline from help.
6485 * interps.c (_initialize_interpreter): Remove trailing newline
6486 from help.
6487 * btrace.c (_initialize_btrace): Remove trailing newlines from
6488 help.
6489 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
6490 from help.
6491 * python/python.c (_initialize_python): Remove trailing newline
6492 from help.
6493 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
6494 help.
6495 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
6496 from help. Reformat some text.
6497 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
6498 from help.
6499 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
6500 newline from help.
6501
6502 2019-06-11 Tom Tromey <tromey@adacore.com>
6503
6504 * darwin-nat.c (darwin_decode_exception_message)
6505 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
6506
6507 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
6508
6509 * valops.c (value_slice): Check for not allocated or not
6510 associated values.
6511
6512 2019-06-10 Tom de Vries <tdevries@suse.de>
6513
6514 PR gdb/24618
6515 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
6516 sure an empty slot (defined by a 32-bit zero pair) is recognized as
6517 invalid.
6518
6519 2019-06-10 Tom de Vries <tdevries@suse.de>
6520
6521 PR gdb/24611
6522 * linespec.c (linespec_lexer_lex_string): Remove incorrect
6523 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
6524
6525 2019-06-10 Tom de Vries <tdevries@suse.de>
6526
6527 PR symtab/24545
6528 * symtab.c (struct demangled_name_entry): Add language field.
6529 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
6530 static minimal symbol". Set and use language field.
6531
6532 2019-06-10 Tom Tromey <tromey@adacore.com>
6533
6534 * ada-lang.c (_initialize_ada_language): Update help text.
6535
6536 2019-06-10 Tom Tromey <tromey@adacore.com>
6537
6538 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
6539 with a newline.
6540 * guile/guile.c (handle_boot_error): Don't end warning with a
6541 newline.
6542 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
6543 warning with a newline.
6544 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
6545 newline.
6546 (s12z_frame_cache): Likewise.
6547 * dwarf-index-cache.c (index_cache::store): Don't end warning with
6548 a newline.
6549 * solib-svr4.c (disable_probes_interface): Don't end warning with
6550 a newline.
6551 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
6552 newline.
6553 * python/python.c (do_finish_initialization): Don't end warning
6554 with a newline.
6555
6556 2019-06-10 Tom Tromey <tom@tromey.com>
6557
6558 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6559 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
6560 gdbpy_enter.
6561
6562 2019-06-10 Tom Tromey <tromey@adacore.com>
6563
6564 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
6565 data.
6566 (elf_new_init): Don't call stabsread_new_init.
6567 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
6568 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
6569 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
6570
6571 2019-06-10 Tom de Vries <tdevries@suse.de>
6572
6573 PR symtab/16264
6574 PR symtab/24517
6575 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
6576
6577 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
6578
6579 * source.c (find_and_open_source): Also rewrite relative file
6580 names.
6581
6582 2019-04-26 Amos Bird <amosbird@gmail.com>
6583
6584 * annotate.c (annotate_thread_exited): Add "thread-exited"
6585 annotation.
6586
6587 2019-06-06 Tom Tromey <tromey@adacore.com>
6588
6589 * maint.h (class scoped_command_stats): Use
6590 DISABLE_COPY_AND_ASSIGN.
6591 <print_time>: New method.
6592 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
6593 print_time.
6594 (scoped_command_stats::print_time): New method.
6595
6596 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6597
6598 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
6599 instructions of lengths 6 or 8 bytes.
6600
6601 2019-06-04 Pedro Alves <palves@redhat.com>
6602
6603 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
6604
6605 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
6606 * breakpoint.c (condition_completer): Likewise.
6607 * cli/cli-dump.c (scan_expression): Likewise.
6608 * common/filestuff.c (mkdir_recursive): Likewise.
6609 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
6610 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
6611 (gdb_abspath): Likewise.
6612 * compile/compile-cplus-types.c
6613 (compile_cplus_instance::decl_name): Likewise.
6614 * completer.c (complete_explicit_location):
6615 (signal_completer, reg_or_group_completer_1): Likewise.
6616 * cp-support.c (cp_remove_params_if_any): Likewise.
6617 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
6618 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
6619 * infcmd.c (strip_bg_char): Likewise.
6620 * linespec.c (copy_token_string): Likewise.
6621 * mi/mi-main.c (output_cores): Likewise.
6622 * psymtab.c (psymtab_search_name):
6623 * symfile.c (test_set_ext_lang_command): Likewise.
6624 * target.c (target_fileio_read_stralloc): Likewise.
6625 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
6626 * value.c (complete_internalvar): Likewise.
6627
6628 2019-06-04 Christian Biesinger <cbiesinger@google.com>
6629
6630 Add objfile property to gdb.Type.
6631 * NEWS: Mention Python API addition.
6632 * python/py-type.c (typy_get_objfile): New method.
6633
6634 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6635
6636 * NEWS: Mention the new set|show style [title|highlight].
6637 Mention changes to "show style", "help" and "apropos".
6638
6639 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6640
6641 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
6642 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
6643 instead of print_help_for_command.
6644 (print_doc_of_command): New function.
6645 (help_list): Add 'apropos -v word' suggestion.
6646 (print_help_for_command): Style the command name using title style.
6647 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
6648 (_initialize_cli_cmds): Describe -v in apropos_command help.
6649
6650 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6651
6652 * cli/cli-style.h (cli_style_option): Add name in constructor,
6653 add m_name class member, add constructor with intensity,
6654 add name class function.
6655 (cli_style_option::add_setshow_commands): Remove name argument.
6656 (highlight_style, title_style): New styles.
6657 * cli/cli-style.c (do_show): New function that shows a style
6658 characteristic styling the style name with itself.
6659 (set_style_name): New function.
6660 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
6661 Update all callers according to the changes in cli/cli-style.h.
6662 * utils.h (fputs_highlighted): New function.
6663 * utils.c (fputs_highlighted): Likewise.
6664
6665 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6666
6667 * NEWS: Mention new pipe command and new convenience variables.
6668
6669 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6670
6671 * cli/cli-cmds.c (pipe_command): New function.
6672 (_initialize_cli_cmds): Call add_com for pipe_command.
6673 Define | as an alias for pipe.
6674 (exit_status_set_internal_vars): New function.
6675 (shell_escape): Call exit_status_set_internal_vars.
6676 cli/cli-decode.c (find_command_name_length): Recognize | as
6677 a single character command.
6678
6679 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6680
6681 * gdbcmd.h (execute_command_to_ui_file): New declaration.
6682 top.c (execute_command_to_ui_file): New function, mostly a copy
6683 of execute_command_to_string.
6684 (execute_command_to_string): Implement by calling
6685 execute_command_to_ui_file.
6686
6687 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6688
6689 * top.h (saved_command_line): Remove declaration.
6690 * top.c (previous_saved_command_line, previous_repeat_arguments):
6691 New variables.
6692 (saved_command_line): Make static, define together with other
6693 'repeat variables'.
6694 (dont_repeat): Clear repeat_arguments.
6695 (repeat_previous, get_saved_command_line, save_command_line):
6696 New functions.
6697 (gdb_init): Initialize saved_command_line
6698 and previous_saved_command_line.
6699 * main.c (captured_main_1): Remove saved_command_line initialization.
6700 * event-top.c (handle_line_of_input): Update to use
6701 the new 'repeat' related functions instead of direct access to
6702 saved_command_line.
6703 * command.h (repeat_previous, get_saved_command_line,
6704 save_command_line): New declarations.
6705 (dont_repeat): Add comment.
6706
6707 2019-05-30 Tom Tromey <tromey@adacore.com>
6708
6709 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
6710 Fix comment.
6711 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
6712
6713 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
6714
6715 PR cli/24587
6716 * completer.c (complete): Initialize variable word.
6717
6718 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
6719
6720 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6721 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
6722 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
6723 'body' is NULL to the outter 'if', protecting the '!is_define'
6724 situation as well.
6725
6726 2019-05-29 Tom Tromey <tromey@adacore.com>
6727
6728 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
6729 (dwarf_unknown): New function.
6730 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
6731 (dwarf_type_encoding_name): Use dwarf_unknown.
6732
6733 2019-05-29 Tom Tromey <tromey@adacore.com>
6734
6735 PR c++/20020:
6736 * cp-valprint.c (cp_print_value_fields): Call
6737 cp_print_static_field inside "try".
6738
6739 2019-05-29 Tom Tromey <tromey@adacore.com>
6740
6741 * inflow.c (struct terminal_info): Add default operator=.
6742 * configure: Rebuild.
6743 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
6744 -Wdeprecated-copy-dtor, -Wredundant-move.
6745
6746 2019-05-29 Tom Tromey <tromey@adacore.com>
6747
6748 * NEWS: Add entry.
6749 * infcmd.c (print_return_value_1): Handle finish_print
6750 option.
6751 (show_print_finish): New function.
6752 (_initialize_infcmd): Add "set/show print finish" commands.
6753 * valprint.c (user_print_options): Initialize new member.
6754 * valprint.h (struct value_print_options) <finish_print>: New
6755 member.
6756
6757 2019-05-28 Tom Tromey <tromey@adacore.com>
6758
6759 * ada-lang.c (ada_remove_Xbn_suffix)
6760 (find_old_style_renaming_symbol)
6761 (parse_old_style_renaming): Remove.
6762 (ada_find_renaming_symbol): Don't call
6763 find_old_style_renaming_symbol.
6764 (ada_is_renaming_symbol): Rename from
6765 ada_find_renaming_symbol. Remove "block" parameter. Return
6766 bool. Now static.
6767 (ada_read_var_value): Update and simplify.
6768 * ada-exp.y (write_var_or_type): Remove old code.
6769
6770 2019-05-28 Alan Hayward <alan.hayward@arm.com>
6771
6772 PR gdb/25010
6773 * event-top.c: Remove include comment.
6774 * inflow.c (class scoped_ignore_sigttou): Move from here...
6775 * inflow.h (class scoped_ignore_sigttou): ...to here.
6776 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
6777 * top.c: Remove include comment.
6778
6779 2019-05-27 Tom Tromey <tom@tromey.com>
6780
6781 * NEWS: Fix typo.
6782
6783 2019-05-22 Tom Tromey <tromey@adacore.com>
6784
6785 * target.c (target_follow_exec): Constify parameter.
6786 * target-delegates.c: Rebuild.
6787 * remote.c (remote_target::follow_exec): Constify parameter.
6788 * infrun.c (follow_exec): Constify parameter.
6789 * target.h (struct target_ops) <follow_exec>: Constify parameter.
6790 (target_follow_exec): Likewise.
6791
6792 2019-05-22 Alan Hayward <alan.hayward@arm.com>
6793
6794 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
6795 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
6796
6797 2019-05-22 Alan Hayward <alan.hayward@arm.com>
6798
6799 * NEWS: Add debugredirect and testsuite sections.
6800
6801 2019-05-22 Simon Cook <simon.cook@embecosm.com>
6802
6803 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
6804 target descriptions using exclusively floating point register name
6805 aliases.
6806
6807 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
6808
6809 PR gdb/18644:
6810 * f-lang.c (build_fortran_types): Handle the case where
6811 gdbarch_floatformat_for_type returns a nullptr.
6812
6813 2019-05-21 Tom de Vries <tdevries@suse.de>
6814
6815 PR cli/24587
6816 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
6817
6818 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6819
6820 PR gdb/18644:
6821 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
6822 16-byte floats.
6823 * i386-tdep.c (i386_floatformat_for_type): Use
6824 floatformats_ia64_quad for the 16-byte floating point component
6825 within a fortran 32-byte complex number.
6826
6827 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6828
6829 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
6830 delete default constructor.
6831 (find_partial_die): Update to return const struct.
6832 (partial_die_parent_scope): Move variable declaration into scope
6833 of its use and change its type to auto.
6834 (guess_partial_die_structure_name): Likewise.
6835 (partial_die_info::fixup): Likewise.
6836
6837 2019-05-17 Tom Tromey <tromey@adacore.com>
6838
6839 * source.c (find_and_open_source): Remove cast.
6840
6841 2019-05-17 Tom Tromey <tromey@adacore.com>
6842
6843 * annotate.c (annotate_source): Make "filename" const.
6844 * annotate.h (annotate_source): Use const.
6845
6846 2019-05-17 Alan Hayward <alan.hayward@arm.com>
6847
6848 * disasm.c (set_disassembler_options): Send errors to stderr.
6849
6850 2019-05-17 Alan Hayward <alan.hayward@arm.com>
6851
6852 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
6853 (cli_interp_base::set_logging): Check debug_redirect.
6854 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
6855 * cli/cli-logging.c (debug_redirect): Add static variable.
6856 (pop_output_files): Add default param.
6857 (handle_redirections): Print debug setting.
6858 (show_logging_command): Likewise.
6859 (_initialize_cli_logging): Add debugredirect command.
6860 * interps.c (current_interp_set_logging): Add debug_redirect
6861 parameter.
6862 * interps.h (set_logging): Add debug_redirect parameter.
6863 (current_interp_set_logging): Likewise.
6864 * mi/mi-common.h: Likewise.
6865 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
6866
6867 2019-05-17 Alan Hayward <alan.hayward@arm.com>
6868 Tom Tromey <tromey@adacore.com>
6869
6870 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
6871 directly.
6872 * cli/cli-interp.h (make_logging_output): Remove declaration.
6873 * cli/cli-logging.c (make_logging_output): Remove function.
6874 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
6875 directly.
6876 * ui-file.c (tee_file::tee_file): Remove bools.
6877 (tee_file::~tee_file): Remove deletes.
6878 * ui-file.h (tee_file): Remove bools.
6879
6880 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
6881
6882 * mi/mi-cmds.h (mi_cmd_complete): New function.
6883 * mi/mi-main.c (mi_cmd_complete): Likewise.
6884 * mi/mi-cmds.c: Define new MI command -complete.
6885 * NEWS: Mention new -complete command.
6886
6887 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
6888
6889 * completer.h (complete): New function.
6890 * completer.c (complete): Likewise.
6891 * cli/cli-cmds.c: (complete_command): Update to use new complete()
6892 function defined in completer.h.
6893
6894 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
6895
6896 * MAINTAINERS (Write After Approval): Add myself.
6897
6898 2019-05-17 Tom de Vries <tdevries@suse.de>
6899
6900 PR gdb/24094
6901 * dwarf2read.c (struct cu_partial_die_info): New struct.
6902 (find_partial_die): Return cu_partial_die_info.
6903 (partial_die_parent_scope, guess_partial_die_structure_name)
6904 (partial_die_info::fixup): Handle new return type of find_partial_die.
6905
6906 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6907
6908 PR breakpoints/24541
6909 * stap-probe.c (stap_parse_register_operand): Make "regname" an
6910 "std::string", simplifying the algorithm.
6911
6912 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6913
6914 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
6915 (stap_static_probe_ops::get_probes): Likewise.
6916
6917 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6918
6919 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
6920 '-')" and "else if".
6921 (stap_parse_single_operand): Join checks for
6922 "gdbarch_stap_parse_special_token_p" and
6923 "gdbarch_stap_parse_special_token" in the same "if" statement.
6924 Invert check when verifying for operation on register
6925 displacement.
6926
6927 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6928
6929 * stap-probe.c (stap_get_opcode): Update comment.
6930 (stap_get_expected_argument_type): Likewise.
6931 (handle_stap_probe): Likewise.
6932
6933 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6934
6935 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
6936 return type to 'bool'. Adjust comment. Use 'bool' when
6937 appropriate.
6938 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6939 * stap-probe.c (stap_parse_argument_1): Likewise.
6940 (stap_is_operator): Likewise.
6941 (stap_is_generic_prefix): Likewise.
6942 (stap_is_register_prefix): Likewise.
6943 (stap_is_register_indirection_prefix): Likewise.
6944 (stap_is_integer_prefix): Likewise.
6945 (stap_generic_check_suffix): Likewise.
6946 (stap_check_integer_suffix): Likewise.
6947 (stap_check_register_suffix): Likewise.
6948 (stap_check_register_indirection_suffix): Likewise.
6949 (stap_parse_register_operand): Likewise.
6950 (stap_parse_single_operand): Likewise.
6951 (stap_parse_argument_1): Likewise.
6952 (stap_probe::get_argument_count): Likewise.
6953 (stap_is_operator): Likewise.
6954
6955 2019-05-16 Tom Tromey <tromey@adacore.com>
6956
6957 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
6958 keyword to foreach.
6959
6960 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
6961
6962 * linux-thread-db.c (try_thread_db_load_1): Change return type
6963 to bool.
6964 (try_thread_db_load): Likewise.
6965 (try_thread_db_load_from_pdir_1): Likewise.
6966 (try_thread_db_load_from_pdir): Likewise.
6967 (try_thread_db_load_from_sdir): Likewise.
6968 (try_thread_db_load_from_dir): Likewise.
6969 (thread_db_load_search): Likewise.
6970 (has_libpthread): Likewise.
6971 (thread_db_load): Likewise.
6972
6973 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
6974
6975 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6976 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
6977 NULL, and complain/return if that's the case.
6978
6979 2019-05-15 John Darrington <john@darrington.wattle.id.au>
6980
6981 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
6982 (advance, posn, abstract_read_memory): New functions.
6983 [struct mem_read_abstraction]: New struct.
6984 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
6985
6986 2019-05-14 Tom Tromey <tromey@adacore.com>
6987
6988 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
6989 value is not lval_memory.
6990
6991 2019-05-14 Tom Tromey <tromey@adacore.com>
6992
6993 * solib.c (info_sharedlibrary_command): Style the file name.
6994
6995 2019-05-14 Alan Hayward <alan.hayward@arm.com>
6996
6997 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
6998 (aarch64_vnv_type): Likewise.
6999 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
7000 * common/tdesc.c: Likewise.
7001 * common/tdesc.h (enum tdesc_type_kind): Likewise.
7002 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
7003 * features/aarch64-fpu.xml: Add ieee half view.
7004 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
7005 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
7006 * gdbtypes.h (struct builtin_type): Likewise.
7007 (struct objfile_type): Likewise.
7008
7009 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
7010
7011 * language.c (language_sniff_from_mangled_name): Fix "langauge"
7012 typo.
7013 * location.h (string_to_event_location): Likewise.
7014
7015 2019-05-11 Joel Brobecker <brobecker@adacore.com>
7016
7017 GDB 8.3 released.
7018
7019 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
7020
7021 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
7022 New variable declaration.
7023 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
7024 New variable.
7025 (print_one_breakpoint): Use ui_out::test_flags and new global
7026 variable to compute use_fixed_output.
7027 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
7028 Remove.
7029 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
7030 (mi_multi_location_breakpoint_output_fixed): Remove.
7031 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
7032 new variable.
7033 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
7034 fix_multi_location_breakpoint_output flag if version >= 3.
7035 * ui-out.h (enum ui_out_flag)
7036 <fix_multi_location_breakpoint_output>: New enumerator.
7037
7038 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
7039
7040 * contrib/cc-with-tweaks.sh: Validate dwz's work.
7041
7042 2019-05-10 Tom Tromey <tromey@adacore.com>
7043
7044 * ada-lang.c (catch_ada_completer): New function.
7045 (_initialize_ada_language): Use it.
7046
7047 2019-05-10 Tom Tromey <tromey@adacore.com>
7048
7049 * thread.c (print_thread_info): Make "requested_threads" const.
7050 * gdbthread.h (print_thread_info): Make "requested_threads"
7051 const.
7052 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
7053 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
7054
7055 2019-05-08 Tom Tromey <tom@tromey.com>
7056
7057 * gdbtypes.c (objfile_type_data): Change type.
7058 (objfile_type, _initialize_gdbtypes): Update.
7059
7060 2019-05-08 Tom Tromey <tom@tromey.com>
7061
7062 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
7063 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
7064 (_initialize_dwarf2_frame): Update.
7065
7066 2019-05-08 Tom Tromey <tom@tromey.com>
7067
7068 * objc-lang.c (objc_objfile_data): Change type.
7069 (find_methods): Update.
7070 (_initialize_objc_lang): Remove.
7071
7072 2019-05-08 Tom Tromey <tom@tromey.com>
7073
7074 * stabsread.c (rs6000_builtin_type_data): Change type.
7075 (rs6000_builtin_type, _initialize_stabsread): Update.
7076
7077 2019-05-08 Tom Tromey <tom@tromey.com>
7078
7079 * mips-tdep.c (mips_pdr_data): Remove.
7080 (_initialize_mips_tdep): Update.
7081
7082 2019-05-08 Tom Tromey <tom@tromey.com>
7083
7084 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
7085 (hppa_init_objfile_priv_data, read_unwind_info)
7086 (find_unwind_entry, _initialize_hppa_tdep): Update.
7087
7088 2019-05-08 Tom Tromey <tom@tromey.com>
7089
7090 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
7091 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
7092 on obstack.
7093 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
7094
7095 2019-05-08 Tom Tromey <tom@tromey.com>
7096
7097 * mdebugread.c (basic_type_data): Change type.
7098 (basic_type, _initialize_mdebugread): Update.
7099
7100 2019-05-08 Tom Tromey <tom@tromey.com>
7101
7102 * common/gdb_unique_ptr.h (struct noop_deleter): New.
7103
7104 2019-05-08 Tom Tromey <tom@tromey.com>
7105
7106 * nto-tdep.c (nto_inferior_data_reg): Change type.
7107 (nto_inferior_data): Update.
7108 (nto_inferior_data_cleanup, nto_new_inferior_data)
7109 (_initialize_nto_tdep): Remove.
7110 * nto-tdep.h (struct nto_inferior_data): Add initializers.
7111
7112 2019-05-08 Tom Tromey <tom@tromey.com>
7113
7114 * ada-lang.c (struct ada_inferior_data): Add initializers.
7115 (ada_inferior_data): Change type.
7116 (ada_inferior_data_cleanup): Remove.
7117 (get_ada_inferior_data, ada_inferior_exit)
7118 (struct ada_pspace_data): Add initializers, destructor.
7119 (ada_pspace_data_handle): Change type.
7120 (get_ada_pspace_data): Update.
7121 (ada_pspace_data_cleanup): Remove.
7122
7123 2019-05-08 Tom Tromey <tom@tromey.com>
7124
7125 * coffread.c (struct coff_symfile_info): Add initializers.
7126 (coff_objfile_data_key): Move lower. Change type.
7127 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
7128 Update.
7129 (coff_free_info): Remove.
7130
7131 2019-05-08 Tom Tromey <tom@tromey.com>
7132
7133 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
7134 (fbsd_pspace_data_handle): Move lower. Change type.
7135 (get_fbsd_pspace_data): Update.
7136 (fbsd_pspace_data_cleanup): Remove.
7137 (_initialize_fbsd_tdep): Update.
7138
7139 2019-05-08 Tom Tromey <tom@tromey.com>
7140
7141 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
7142 (get_ada_tasks_pspace_data): Update.
7143 (ada_tasks_pspace_data_cleanup): Remove.
7144 (_initialize_tasks): Update.
7145 (ada_tasks_inferior_data_handle): Change type.
7146 (get_ada_tasks_inferior_data): Update.
7147 (ada_tasks_inferior_data_cleanup): Remove.
7148 (struct ada_tasks_pspace_data): Add initializers.
7149
7150 2019-05-08 Tom Tromey <tom@tromey.com>
7151
7152 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
7153 * symfile-debug.c (debug_sym_get_probes): Change type.
7154 * stap-probe.c (handle_stap_probe):
7155 (stap_static_probe_ops::get_probes): Change type.
7156 * probe.h (class static_probe_ops) <get_probes>: Change type.
7157 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
7158 (parse_probes_in_pspace): Update.
7159 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
7160 Update.
7161 (any_static_probe_ops::get_probes): Change type.
7162 * elfread.c (elfread_data): New typedef.
7163 (probe_key): Change type.
7164 (elf_get_probes): Likewise. Update.
7165 (probe_key_free): Remove.
7166 (_initialize_elfread): Update.
7167 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
7168 Change type.
7169 (dtrace_process_dof_probe, dtrace_process_dof)
7170 (dtrace_static_probe_ops::get_probe): Change type.
7171
7172 2019-05-08 Tom Tromey <tom@tromey.com>
7173
7174 * xcoffread.c (struct xcoff_symfile_info): Rename from
7175 coff_symfile_info. Add initializers.
7176 (xcoff_objfile_data_key): Move lower. Change type.
7177 (XCOFF_DATA): Rewrite.
7178 (xcoff_free_info): Remove.
7179 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
7180 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
7181 (xcoff_initial_scan): Update.
7182
7183 2019-05-08 Tom Tromey <tom@tromey.com>
7184
7185 * solib-svr4.c (struct svr4_info): Add initializers and
7186 destructor.
7187 <probes_table>: Now an htab_up.
7188 (solib_svr4_pspace_data): Change type.
7189 (free_probes_table): Simplify.
7190 (~svr4_info): Rename from svr4_pspace_data_cleanup.
7191 (get_svr4_info, probes_table_htab_remove_objfile_probes)
7192 (probes_table_remove_objfile_probes, register_solib_event_probe)
7193 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
7194 (_initialize_svr4_solib): Update.
7195
7196 2019-05-08 Tom Tromey <tom@tromey.com>
7197
7198 * remote.c (remote_pspace_data): Change type.
7199 (remote_pspace_data_cleanup): Remove.
7200 (get_remote_exec_file, set_pspace_remote_exec_file)
7201 (_initialize_remote): Update.
7202
7203 2019-05-08 Tom Tromey <tom@tromey.com>
7204
7205 * breakpoint.c (breakpoint_objfile_key): Change type.
7206 (get_breakpoint_objfile_data): Update.
7207 (free_breakpoint_objfile_data): Remove.
7208 (_initialize_breakpoint): Update.
7209
7210 2019-05-08 Tom Tromey <tom@tromey.com>
7211
7212 * linux-tdep.c (struct linux_info): Add initializers.
7213 (linux_inferior_data): Move. Change type.
7214 (invalidate_linux_cache_inf): Update.
7215 (linux_inferior_data_cleanup): Remove.
7216 (get_linux_inferior_data, _initialize_linux_tdep): Update.
7217
7218 2019-05-08 Tom Tromey <tom@tromey.com>
7219
7220 * auxv.c (auxv_inferior_data): Move. Change type.
7221 (auxv_inferior_data_cleanup): Remove.
7222 (invalidate_auxv_cache_inf): Rewrite.
7223 (get_auxv_inferior_data, _initialize_auxv): Update.
7224
7225 2019-05-08 Tom Tromey <tom@tromey.com>
7226
7227 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
7228 (symfile_debug_objfile_data_key): Change type.
7229 (symfile_debug_installed, debug_qf_has_symbols)
7230 (debug_qf_find_last_source_symtab)
7231 (debug_qf_forget_cached_source_info)
7232 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
7233 (debug_qf_print_stats, debug_qf_dump)
7234 (debug_qf_expand_symtabs_for_function)
7235 (debug_qf_expand_all_symtabs)
7236 (debug_qf_expand_symtabs_with_fullname)
7237 (debug_qf_map_matching_symbols)
7238 (debug_qf_expand_symtabs_matching)
7239 (debug_qf_find_pc_sect_compunit_symtab)
7240 (debug_qf_map_symbol_filenames)
7241 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
7242 (debug_sym_new_init, debug_sym_init, debug_sym_read)
7243 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
7244 (debug_sym_read_linetable, debug_sym_relocate): Update.
7245 (symfile_debug_free_objfile): Remove.
7246 (install_symfile_debug_logging, _initialize_symfile_debug):
7247 Update.
7248
7249 2019-05-08 Tom Tromey <tom@tromey.com>
7250
7251 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
7252 allocate_on_obstack.
7253 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
7254 (get_dwarf2_per_objfile): Update.
7255 (set_dwarf2_per_objfile): Remove.
7256 (dwarf2_has_info, dwarf2_get_section_info): Update.
7257 (dwarf2_free_objfile): Remove.
7258 (_initialize_dwarf2_read): Update.
7259
7260 2019-05-08 Tom Tromey <tom@tromey.com>
7261
7262 * auto-load.c (struct auto_load_pspace_info): Add destructor and
7263 initializers.
7264 <unsupported_script_warning_printed,
7265 script_not_found_warning_printed>: Now bool.
7266 (auto_load_pspace_data): Change type.
7267 (~auto_load_pspace_info): Rename from
7268 auto_load_pspace_data_cleanup.
7269 (get_auto_load_pspace_data, init_loaded_scripts_info)
7270 (clear_section_scripts, maybe_print_unsupported_script_warning)
7271 (maybe_print_script_not_found_warning, _initialize_auto_load):
7272 Update.
7273
7274 2019-05-08 Tom Tromey <tom@tromey.com>
7275
7276 * objfiles.c (objfile_pspace_info): Add destructor and
7277 initializers.
7278 (objfiles_pspace_data): Change type.
7279 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
7280 (get_objfile_pspace_data): Update.
7281 (objfiles_bfd_data): Change type.
7282 (get_objfile_bfd_data): Update.
7283 (objfile_bfd_data_free, _initialize_objfiles): Remove.
7284
7285 2019-05-08 Tom Tromey <tom@tromey.com>
7286
7287 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
7288 Change type.
7289 (get_catch_syscall_inferior_data): Update.
7290 (catch_syscall_inferior_data_cleanup): Remove.
7291 (_initialize_break_catch_syscall): Update.
7292
7293 2019-05-08 Tom Tromey <tom@tromey.com>
7294
7295 * inflow.c (struct terminal_info): Add destructor and
7296 initializers.
7297 (inflow_inferior_data): Change type.
7298 (~terminal_info): Rename from inflow_inferior_data_cleanup.
7299 (get_inflow_inferior_data, inflow_inferior_exit)
7300 (swap_terminal_info, _initialize_inflow): Update.
7301
7302 2019-05-08 Tom Tromey <tom@tromey.com>
7303
7304 * target-dcache.c (target_dcache_cleanup): Remove.
7305 (target_dcache_aspace_key): Change type.
7306 (target_dcache_init_p, target_dcache_invalidate)
7307 (target_dcache_get, target_dcache_get_or_init)
7308 (_initialize_target_dcache): Update.
7309 * dcache.h (struct dcache_deleter): New.
7310
7311 2019-05-08 Tom Tromey <tom@tromey.com>
7312
7313 * symtab.c (struct symbol_cache): Add destructor and
7314 initializers.
7315 (symbol_cache_key): Move. Change type.
7316 (make_symbol_cache, free_symbol_cache): Remove.
7317 (get_symbol_cache): Update.
7318 (symbol_cache_cleanup): Remove.
7319 (ALL_PSPACES, symbol_cache_flush)
7320 (maintenance_print_symbol_cache)
7321 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
7322 Update.
7323
7324 2019-05-08 Tom Tromey <tom@tromey.com>
7325
7326 * symtab.c (struct main_info): Add destructor and initializers.
7327 (main_progspace_key): Move. Change type.
7328 (get_main_info): Update.
7329 (main_info_cleanup): Remove.
7330 (_initialize_symtab): Update.
7331
7332 2019-05-08 Tom Tromey <tom@tromey.com>
7333
7334 * registry.h (DECLARE_REGISTRY): Define the _key class.
7335
7336 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7337
7338 * NEWS: Merge two 'New commands' sections.
7339
7340 2019-05-08 Joel Brobecker <brobecker@adacore.com>
7341
7342 * ada-valprint.c (ada_val_print_gnat_array): Remove language
7343 parameter and use Ada language definition instead.
7344 (ada_val_print_ptr): Remove unused language parameter.
7345 (ada_val_print_num): Remove language parameter and use Ada language
7346 definition instead.
7347 (ada_val_print_enum, ada_val_print_flt): Remove unused language
7348 parameter.
7349 (ada_val_print_struct_union, ada_val_print_ref): Remove language
7350 parameter and use Ada language definition instead.
7351 (ada_val_print_1): Update all ada_val_print_xxx calls.
7352 Remove language parameter.
7353 (ada_val_print): Update ada_val_print_1 call.
7354
7355 2019-05-08 Tom Tromey <tromey@adacore.com>
7356
7357 * remote.c (remote_hw_watchpoint_limit)
7358 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
7359 Now static.
7360
7361 2019-05-08 Tom Tromey <tromey@adacore.com>
7362
7363 * maint.c (_initialize_maint_cmds): Move initialization code to
7364 remote.c.
7365 (watchdog, show_watchdog): Move to remote.c.
7366 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
7367 "watchdog" static.
7368 (_initialize_remote): Move initialization code from maint.c.
7369 * defs.h (watchdog): Don't declare.
7370
7371 2019-05-08 Tom Tromey <tromey@adacore.com>
7372
7373 * tui/tui-interp.c: Include main.h.
7374 * interps.c: Include main.h.
7375 * main.h (interpreter_p): Declare.
7376 * defs.h (interpreter_p): Don't declare.
7377
7378 2019-05-08 Tom Tromey <tromey@adacore.com>
7379
7380 * dwarf2loc.c: Include dwarf2read.h.
7381 * defs.h (read_unsigned_leb128): Don't declare.
7382 * dwarf2read.h (read_unsigned_leb128): Declare.
7383
7384 2019-05-08 Tom Tromey <tromey@adacore.com>
7385
7386 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
7387 method.
7388
7389 2019-05-08 Tom Tromey <tromey@adacore.com>
7390
7391 * utils.c (fputs_maybe_filtered): Reset style after paging, even
7392 when no wrap column is set.
7393
7394 2019-05-08 Tom Tromey <tromey@adacore.com>
7395
7396 * c-lang.c (c_get_string): Handle non-C-style arrays.
7397
7398 2019-05-08 Tom Tromey <tromey@adacore.com>
7399
7400 * typeprint.c (print_offset_data::update): Print the bit offset,
7401 not the number of bits remaining.
7402
7403 2019-05-08 Tom Tromey <tromey@adacore.com>
7404
7405 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
7406 padding at end of comment.
7407
7408 2019-05-08 Tom Tromey <tromey@adacore.com>
7409
7410 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
7411 Compare main types.
7412
7413 2019-05-06 Tom Tromey <tom@tromey.com>
7414
7415 * common/scoped_mmap.c: Include common-defs.h.
7416 * common/scoped_mmap.h: Don't include config.h.
7417
7418 2019-05-04 Tom Tromey <tom@tromey.com>
7419
7420 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
7421 (struct aarch64_call_info): Add initializers.
7422 <si>: Now a std::vector.
7423 (pass_on_stack, aarch64_push_dummy_call): Update.
7424
7425 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
7426 Tom Tromey <tom@tromey.com>
7427
7428 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
7429 (ppc_threads): Now a std::vector. Now static.
7430 (hwdebug_find_thread_points_by_tid)
7431 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
7432 Update.
7433
7434 2019-05-04 Tom Tromey <tom@tromey.com>
7435
7436 * arc-tdep.c (arc_tdesc_init): Return bool.
7437
7438 2019-05-04 Tom Tromey <tom@tromey.com>
7439
7440 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
7441 Use gdb_assert_not_reached.
7442
7443 2019-05-04 Tom Tromey <tom@tromey.com>
7444
7445 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
7446 "false".
7447
7448 2019-05-04 Tom Tromey <tom@tromey.com>
7449
7450 * arc-tdep.c (arc_tdesc_init): Use bool.
7451
7452 2019-05-04 Tom Tromey <tom@tromey.com>
7453
7454 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
7455
7456 2019-05-04 Tom Tromey <tom@tromey.com>
7457
7458 * cli/cli-cmds.c (valid_command_p): Return bool.
7459
7460 2019-05-04 Tom Tromey <tom@tromey.com>
7461
7462 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
7463 * command.h (valid_user_defined_cmd_name_p): Channge return type.
7464
7465 2019-05-04 Raul Tambre <raul@tambre.ee>
7466
7467 * python/lib/gdb/prompt.py (_ExtendedPrompt)
7468 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
7469 operator for comparison.
7470
7471 2019-05-04 Tom Tromey <tom@tromey.com>
7472
7473 * psymtab.c (psymbol_name_matches, match_partial_symbol)
7474 (lookup_partial_symbol, print_partial_symbols)
7475 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
7476 (psymbol_compare): Update.
7477 (add_psymbol_to_bcache): Clear the entire psymbol.
7478 (maintenance_check_psymtabs): Update.
7479 * psympriv.h (struct partial_symbol): Don't derive from
7480 general_symbol_info.
7481 <obj_section, unrelocated_address, address,
7482 set_unrelocated_address>: Update.
7483 <ginfo>: New member.
7484 * dwarf-index-write.c (write_psymbols, debug_names::insert)
7485 (debug_names::write_psymbols): Update.
7486
7487 2019-05-04 Tom de Vries <tdevries@suse.de>
7488
7489 * contrib/cc-with-tweaks.sh: Support -n arg.
7490
7491 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7492
7493 * corelow.c (core_target::detach): Ensure frame cache and
7494 register caches are cleared.
7495 inferior.c (exit_inferior_1): Likewise.
7496
7497 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
7498 Tom Tromey <tom@tromey.com>
7499
7500 * dictionary.c (collate_pending_symbols_by_language): Remove
7501 "struct" from foreach.
7502 * symtab.c (lookup_global_symbol_from_objfile)
7503 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
7504 foreach.
7505 * ser-tcp.c (net_open): Remove "struct" from foreach.
7506 * objfiles.c (objfile_relocate, objfile_rebase)
7507 (objfile_has_symbols): Remove "struct" from foreach.
7508 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
7509 from foreach.
7510 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
7511 foreach.
7512 * darwin-nat.c (thread_info_from_private_thread_info): Remove
7513 "struct" from foreach.
7514 * ada-lang.c (create_excep_cond_exprs)
7515 (ada_exception_catchpoint_cond_string): Remove "struct" from
7516 foreach.
7517
7518 2019-05-03 Tom Tromey <tromey@adacore.com>
7519
7520 * ada-exp.y (convert_char_literal): Check suffix of each
7521 enumerator.
7522
7523 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
7524
7525 PR ada/21406:
7526 * ada-exp.y (yywrap): Don't define.
7527 * ada-lex.l (%option): Add noyywrap
7528 (yywrap): Remove.
7529
7530 2019-05-03 Eli Zaretskii <eliz@gnu.org>
7531
7532 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
7533 _WIN32_WINNT to the XP level, unless already defined to a higher
7534 level.
7535
7536 * unittests/parse-connection-spec-selftests.c:
7537 * ser-tcp.c:
7538 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
7539 override.
7540
7541 * symfile.c (find_separate_debug_file): Remove colon from the
7542 drive spec of DOS/Windows file names of the target, so that the
7543 file name produced from DEBUGDIR and the target's directory will
7544 be valid on DOS/Windows systems.
7545
7546 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
7547
7548 * rust-lang.c (val_print_struct): Handle printing structures
7549 containing strings.
7550
7551 2019-05-02 Tom Tromey <tromey@adacore.com>
7552
7553 * valarith.c (_initialize_valarith): Remove.
7554
7555 2019-05-01 Tom Tromey <tromey@adacore.com>
7556
7557 * ada-lang.c (ada_value_primitive_field): Treat more fields as
7558 bitfields.
7559
7560 2019-05-01 Tom Tromey <tromey@adacore.com>
7561
7562 * ada-lang.c (ada_value_assign): Correctly compute starting offset
7563 for big-endian copies.
7564
7565 2019-04-30 Ali Tamur <tamur@google.com>
7566 * gdb/dwarf2read.c (read_3_bytes): New declaration.
7567 (read_attribute_value): Added DW_FORM_strx1-4 cases.
7568 (read_3_bytes): New function.
7569
7570 2019-04-30 Joel Brobecker <brobecker@adacore.com>
7571
7572 * windows-nat.c (main_thread_id): Delete.
7573 (handle_output_debug_string): Replace main_thread_id by
7574 current_event.dwThreadId.
7575 (fake_create_process): Likewise.
7576 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
7577 Do not set main_thread_id.
7578 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
7579 current_event.dwThreadId.
7580 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
7581
7582 2019-04-30 Joel Brobecker <brobecker@adacore.com>
7583
7584 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
7585 Use current_event.dwThreadId instead of main_thread_id.
7586
7587 2019-04-30 Tom Tromey <tromey@adacore.com>
7588
7589 * ada-lang.c (ada_lookup_simple_minsyms): New function.
7590 (create_excep_cond_exprs): Iterate over program spaces.
7591 (ada_exception_catchpoint_cond_string): Examine all minimal
7592 symbols for exception types.
7593
7594 2019-04-30 Tom Tromey <tromey@adacore.com>
7595
7596 PR c++/24470:
7597 * dwarf2read.c (process_structure_scope): Handle case where type
7598 has template parameters but no symbol was created.
7599
7600 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7601 Chris January <chris.january@arm.com>
7602
7603 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
7604 qualifier.
7605 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
7606
7607 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7608
7609 * f-typeprint.c (f_print_type): Update rules for printing
7610 whitespace.
7611 (f_type_print_varspec_suffix): Likewise.
7612
7613 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7614 Chris January <chris.january@arm.com>
7615
7616 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
7617 function arguments.
7618
7619 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7620
7621 * f-lang.c (build_fortran_types): Change name of void type to
7622 lower case.
7623 * f-typeprint.c (f_type_print_base): Print the name of the void
7624 type, rather than a fixed string.
7625 * f-valprint.c (f_decorations): Use lower case void string.
7626
7627 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7628 Chris January <chris.january@arm.com>
7629
7630 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
7631 types for Fortran.
7632
7633 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7634 Chris January <chris.january@arm.com>
7635 David Lecomber <david.lecomber@arm.com>
7636
7637 * f-exp.y (BINOP_INTRINSIC): New token.
7638 (exp): New parser rule handling BINOP_INTRINSIC.
7639 (f77_keywords): Add new builtin procedures.
7640 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
7641 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7642 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
7643 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7644 (print_unop_subexp_f): New function.
7645 (print_binop_subexp_f): New function.
7646 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7647 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7648 (dump_subexp_body_f): Likewise.
7649 (operator_check_f): Likewise.
7650 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7651 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
7652
7653 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7654
7655 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
7656 UNOP_KIND.
7657 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
7658 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
7659 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
7660 (operator_length_f): New fuction.
7661 (print_subexp_f): New function.
7662 (op_name_f): New function.
7663 (dump_subexp_body_f): New function.
7664 (operator_check_f): New function.
7665 (exp_descriptor_f): Replace standard expression handling functions
7666 with new functions.
7667 * gdb/fortran-operator.def: New file.
7668 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
7669 * gdb/std-operator.def: Remove UNOP_KIND.
7670
7671 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7672
7673 * std-operator.def: Remove unbalanced, stray double quote
7674 character.
7675
7676 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7677 Chris January <chris.january@arm.com>
7678 Daniel Everett <daniel.everett@arm.com>
7679 Nick Forrington <nick.forrington@arm.com>
7680 Richard Bunt <richard.bunt@arm.com>
7681
7682 * cp-valprint.c (cp_print_value_fields): Allow an additional level
7683 of depth when printing anonymous structs or unions.
7684 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
7685 Don't print either the top-level value, or the children if the
7686 max-depth is exceeded.
7687 (ppscm_print_children): When printing the key of a map, allow one
7688 extra level of depth.
7689 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
7690 print either the top-level value, or the children if the max-depth
7691 is exceeded.
7692 (print_children): When printing the key of a map, allow one extra
7693 level of depth.
7694 * python/py-value.c (valpy_format_string): Add max_depth keyword.
7695 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
7696 (user_print_options): Initialise max_depth field.
7697 (val_print_scalar_or_string_type_p): New function.
7698 (val_print): Check to see if the max depth has been reached.
7699 (val_print_check_max_depth): Define new function.
7700 (show_print_max_depth): New function.
7701 (_initialize_valprint): Add 'print max-depth' option.
7702 * valprint.h (struct value_print_options) <max_depth>: New field.
7703 (val_print_check_max_depth): Declare new function.
7704 * NEWS: Document new feature.
7705
7706 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7707
7708 * ada-lang.c (ada_language_defn): Initialise new field.
7709 * c-lang.c (c_is_string_type_p): New function.
7710 (c_language_defn): Initialise new field.
7711 (cplus_language_defn): Initialise new field.
7712 (asm_language_defn): Initialise new field.
7713 (minimal_language_defn): Initialise new field.
7714 * c-lang.h (c_is_string_type_p): Declare new function.
7715 * d-lang.c (d_language_defn): Initialise new field.
7716 * f-lang.c (f_is_string_type_p): New function.
7717 (f_language_defn): Initialise new field.
7718 * go-lang.c (go_is_string_type_p): New function.
7719 (go_language_defn): Initialise new field.
7720 * language.c (default_is_string_type_p): New function.
7721 (unknown_language_defn): Initialise new field.
7722 (auto_language_defn): Initialise new field.
7723 * language.h (struct language_defn) <la_is_string_type_p>: New
7724 member variable.
7725 (default_is_string_type_p): Declare new function.
7726 * m2-lang.c (m2_language_defn): Initialise new field.
7727 * objc-lang.c (objc_language_defn): Initialise new field.
7728 * opencl-lang.c (opencl_language_defn): Initialise new field.
7729 * p-lang.c (pascal_is_string_type_p): New function.
7730 (pascal_language_defn): Initialise new field.
7731 * rust-lang.c (rust_is_string_type_p): New function.
7732 (rust_language_defn): Initialise new field.
7733
7734 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7735
7736 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
7737 New field.
7738 * ada-lang.c (ada_language_defn): Initialise new field.
7739 * c-lang.c (c_language_defn): Likewise.
7740 (cplus_language_defn): Likewise.
7741 (asm_language_defn): Likewise.
7742 (minimal_language_defn): Likewise.
7743 * d-lang.c (d_language_defn): Likewise.
7744 * f-lang.c (f_language_defn): Likewise.
7745 * go-lang.c (go_language_defn): Likewise.
7746 * language.c (unknown_language_defn): Likewise.
7747 (auto_language_defn): Likewise.
7748 * m2-lang.c (m2_language_defn): Likewise.
7749 * objc-lang.c (objc_language_defn): Likewise.
7750 * opencl-lang.c (opencl_language_defn): Likewise.
7751 * p-lang.c (pascal_language_defn): Likewise.
7752 * rust-lang.c (rust_language_defn): Likewise.
7753
7754 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7755
7756 * ada-lang.c (ada_is_character_type): Change return type to bool.
7757 (ada_is_string_type): Likewise.
7758 * ada-lang.h (ada_is_character_type): Update declaration
7759 (ada_is_string_type): Likewise.
7760
7761 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7762
7763 Support style in 'frame|thread apply'
7764
7765 * gdbcmd.h (execute_command_to_string): New term_out parameter.
7766 * record.c (record_start, record_stop): Update callers of
7767 execute_command_to_string with false.
7768 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
7769 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
7770 methods.
7771 (class string_file): New constructor with term_out parameter.
7772 Override methods term_out and can_emit_style_escape. New member
7773 term_out.
7774 (class stdio_file): Override can_emit_style_escape.
7775 (class tee_file): Override term_out and can_emit_style_escape.
7776 * utils.h (can_emit_style_escape): Remove.
7777 * utils.c (can_emit_style_escape): Likewise.
7778 Update all callers of can_emit_style_escape (SOMESTREAM) to
7779 SOMESTREAM->can_emit_style_escape.
7780 * source-cache.c (source_cache::get_source_lines): Likewise.
7781 * stack.c (frame_apply_command_count): Call execute_command_to_string
7782 passing the term_out characteristic of the current gdb_stdout.
7783 * thread.c (thr_try_catch_cmd): Likewise.
7784 * top.c (execute_command_to_string): pass term_out parameter
7785 to construct the string_file for the command output.
7786 * ui-file.c (term_cli_styling): New function (most code moved
7787 from utils.c can_emit_style_escape).
7788 (string_file::string_file, string_file::can_emit_style_escape,
7789 stdio_file::can_emit_style_escape, tee_file::term_out,
7790 tee_file::can_emit_style_escape): New functions.
7791
7792 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7793
7794 * NEWS: Mention the new set|show may-call-functions.
7795 * infcall.c (may_call_functions_p): New variable.
7796 (show_may_call_functions_p): New function.
7797 (call_function_by_hand_dummy): Throws an error if not
7798 may-call-functions.
7799 (_initialize_infcall): Call add_setshow_boolean_cmd for
7800 may-call-functions.
7801
7802 2019-04-25 Keith Seitz <keiths@redhat.com>
7803
7804 PR c++/24367
7805 * cp-support.c (inspect_type): Don't attempt substitutions
7806 of symbol with the same name.
7807
7808 2019-04-25 Tom Tromey <tromey@adacore.com>
7809
7810 PR gdb/24475:
7811 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
7812 static.
7813
7814 2019-04-25 Tom Tromey <tromey@adacore.com>
7815
7816 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
7817 rvalue reference.
7818 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
7819 (gdb_xml_parser::parse): Use std::move.
7820 * python/python-internal.h (gdbpy_convert_exception): Take a const
7821 reference.
7822 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
7823 std::move.
7824 * python/py-utils.c (gdbpy_convert_exception): Take a const
7825 reference.
7826 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7827 Use std::move.
7828 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7829 Use std::move.
7830 * mi/mi-main.c (mi_print_exception): Take a const reference.
7831 * main.c (handle_command_errors): Take a const reference.
7832 * linespec.c (parse_linespec): Use std::move.
7833 * infcall.c (run_inferior_call): Use std::move.
7834 (call_function_by_hand_dummy): Use std::move.
7835 * exec.c (try_open_exec_file): Use std::move.
7836 * exceptions.h (exception_print, exception_fprintf)
7837 (exception_print_same): Update.
7838 * exceptions.c (print_exception, exception_print)
7839 (exception_fprintf, exception_print_same): Change parameters to
7840 const reference.
7841 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
7842 * common/new-op.c: Use std::move.
7843 * common/common-exceptions.h (struct gdb_exception): Add move
7844 constructor.
7845 (struct gdb_exception_error, struct gdb_exception_quit, struct
7846 gdb_quit_bad_alloc): Change constructor to move constructor.
7847 (throw_exception): Change parameter to rvalue reference.
7848 * common/common-exceptions.c (throw_exception): Take rvalue
7849 reference.
7850 * cli/cli-interp.c (safe_execute_command): Use std::move.
7851 * breakpoint.c (insert_bp_location, location_to_sals): Use
7852 std::move.
7853
7854 2019-04-25 Tom Tromey <tromey@adacore.com>
7855
7856 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
7857 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
7858 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
7859 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
7860 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
7861 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
7862 guile/scm-value.c: Use unpack.
7863 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
7864 gdbscm_gdb_exception.
7865 (gdbscm_throw_gdb_exception): Likewise.
7866 (struct gdbscm_gdb_exception): New.
7867 (unpack): New function.
7868 (gdbscm_wrap): Use unpack.
7869
7870 2019-04-25 Tom Tromey <tromey@adacore.com>
7871
7872 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7873 (gdb_rl_callback_handler): Use std::move.
7874 * common/common-exceptions.h (struct gdb_exception): Add move
7875 assignment operator.
7876 (throw_exception_sjlj): Change "exception" to const reference.
7877 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
7878 (throw_exception_sjlj): Change "exception" to const reference.
7879
7880 2019-04-25 Tom Tromey <tromey@adacore.com>
7881
7882 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
7883 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
7884 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7885 Update.
7886 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7887 Update.
7888 * mi/mi-interp.c (mi_interp::exec): Update.
7889 * linespec.c (parse_linespec): Update.
7890 * infcall.c (run_inferior_call): Update.
7891 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
7892 * guile/scm-symbol.c (gdbscm_lookup_symbol)
7893 (gdbscm_lookup_global_symbol): Update.
7894 * guile/scm-param.c (gdbscm_parameter_value): Update.
7895 * guile/scm-frame.c (gdbscm_frame_read_register)
7896 (gdbscm_frame_read_var): Update.
7897 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7898 * exec.c (try_open_exec_file): Update.
7899 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7900 (gdb_rl_callback_handler): Update.
7901 * common/common-exceptions.h (exception_none): Don't declare.
7902 * common/common-exceptions.c (exception_none): Don't define.
7903 (struct catcher) <exception>: Update.
7904 * cli/cli-interp.c (safe_execute_command): Update.
7905 * breakpoint.c (insert_bp_location, location_to_sals): Update.
7906
7907 2019-04-25 Ali Tamur <tamur@google.com>
7908
7909 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
7910 (read_attribute_value): Likewise.
7911 (dwarf2_read_addr_index): Update comment.
7912 (read_str_index): Add DW_FORM_strx.
7913 (dwarf2_string_attr): Likewise.
7914 (dwarf2_const_value_attr): Likewise.
7915 (dump_die_shallow): Likewise.
7916 (dwarf2_fetch_constant_bytes): Likewise.
7917 (skip_form_bytes): Likewise.
7918 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
7919
7920 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7921
7922 PR corefiles/11608
7923 PR corefiles/18187
7924 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
7925 OFFSET. Verify if current mapping contains an ELF header.
7926 (linux_find_memory_regions_full): Adjust call to
7927 dump_mapping_p.
7928
7929 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
7930 Kang Li <kanglictf@gmail.com>
7931
7932 PR gdb/21600
7933
7934 * dwarf2-frame.c (read_initial_length): Be consistent about using
7935 unsigned representation of length.
7936 (decode_frame_entry_1): Likewise. Check for wraparound of
7937 end pointer as well as buffer overflow.
7938
7939 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7940
7941 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
7942 "vq".
7943
7944 2019-04-24 Tom Tromey <tromey@adacore.com>
7945
7946 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
7947
7948 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7949
7950 * s12z-tdep.c (s12z_unwind_pc): Delete.
7951 (s12z_unwind_sp): Delete.
7952 (s12z_gdbarch_init): Don't register deleted functions with
7953 gdbarch.
7954
7955 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7956
7957 * rl78-tdep.c (rl78_unwind_sp): Delete.
7958 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
7959
7960 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7961
7962 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
7963 (xstormy16_unwind_pc): Delete.
7964 (xstormy16_dummy_id): Delete.
7965 (xstormy16_gdbarch_init): Don't register deleted functions with
7966 gdbarch.
7967
7968 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7969
7970 * vax-tdep.c (vax_unwind_pc): Delete.
7971 (vax_gdbarch_init): Don't register deleted function with gdbarch.
7972
7973 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7974
7975 * v850-tdep.c (v850_unwind_sp): Delete.
7976 (v850_unwind_pc): Delete.
7977 (v850_dummy_id): Delete.
7978 (v850_gdbarch_init): Don't register deleted functions with
7979 gdbarch.
7980
7981 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7982
7983 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
7984 (tilegx_unwind_pc): Delete.
7985 (tilegx_unwind_dummy_id): Delete.
7986 (tilegx_gdbarch_init): Don't register deleted functions with
7987 gdbarch.
7988
7989 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7990
7991 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
7992 (tic6x_dummy_id): Delete.
7993 (tic6x_gdbarch_init): Don't register deleted functions with
7994 gdbarch.
7995
7996 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7997
7998 * sparc-tdep.c (sparc_unwind_pc): Delete.
7999 (sparc32_gdbarch_init): Don't register deleted function with
8000 gdbarch.
8001
8002 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8003
8004 * sh-tdep.c (sh_unwind_sp): Delete.
8005 (sh_unwind_pc): Delete.
8006 (sh_dummy_id): Delete.
8007 (sh_gdbarch_init): Don't register deleted functions with
8008 gdbarch.
8009
8010 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8011
8012 * score-tdep.c (score_unwind_sp): Delete.
8013 (score_unwind_pc): Delete.
8014 (score_dummy_id): Delete.
8015 (score_gdbarch_init): Don't register deleted functions with
8016 gdbarch.
8017
8018 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8019
8020 * rx-tdep.c (rx_unwind_pc): Delete.
8021 (rx_unwind_sp): Delete.
8022 (rx_dummy_id): Delete.
8023 (rx_gdbarch_init): Don't register deleted functions with
8024 gdbarch. Update comment.
8025
8026 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8027
8028 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
8029 (rs6000_dummy_id): Delete.
8030 (rs6000_gdbarch_init): Don't register deleted functions with
8031 gdbarch.
8032
8033 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8034
8035 * or1k-tdep.c (or1k_dummy_id): Delete.
8036 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
8037
8038 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8039
8040 * nios2-tdep.c (nios2_dummy_id): Delete.
8041 (nios2_unwind_sp): Delete.
8042 (nios2_gdbarch_init): Don't register deleted functions with
8043 gdbarch.
8044
8045 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8046
8047 * nds32-tdep.c (nds32_dummy_id): Delete.
8048 (nds32_unwind_pc): Delete.
8049 (nds32_unwind_sp): Delete.
8050 (nds32_gdbarch_init): Don't register deleted functions with
8051 gdbarch.
8052
8053 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8054
8055 * msp430-tdep.c (msp430_unwind_pc): Delete.
8056 (msp430_unwind_sp): Delete.
8057 (msp430_dummy_id): Delete.
8058 (msp430_gdbarch_init): Don't register deleted functions with
8059 gdbarch.
8060
8061 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8062
8063 * moxie-tdep.c (moxie_unwind_sp): Delete.
8064 (moxie_unwind_pc): Delete.
8065 (moxie_dummy_id): Delete.
8066 (moxie_gdbarch_init): Don't register deleted functions with
8067 gdbarch.
8068
8069 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8070
8071 * mn10300-tdep.c (mn10300_dummy_id): Delete.
8072 (mn10300_unwind_pc): Delete.
8073 (mn10300_unwind_sp): Delete.
8074 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
8075 mn10300_unwind_sp.
8076 (mn10300_frame_unwind_init): Don't register deleted functions with
8077 gdbarch.
8078
8079 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8080
8081 * mep-tdep.c (mep_unwind_pc): Delete.
8082 (mep_unwind_sp): Delete.
8083 (mep_dummy_id): Delete.
8084 (mep_gdbarch_init): Don't register deleted functions with
8085 gdbarch.
8086
8087 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8088
8089 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
8090 (m68hc11_unwind_sp): Delete.
8091 (m68hc11_gdbarch_init): Don't register deleted functions with
8092 gdbarch.
8093
8094 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8095
8096 * m32r-tdep.c (m32r_unwind_sp): Delete.
8097 (m32r_unwind_pc): Delete.
8098 (m32r_dummy_id): Delete.
8099 (m32r_gdbarch_init): Don't register deleted functions with
8100 gdbarch.
8101
8102 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8103
8104 * m32c-tdep.c (m32c_unwind_pc): Delete.
8105 (m32c_unwind_sp): Delete.
8106 (m32c_dummy_id): Delete.
8107 (m32c_gdbarch_init): Don't register deleted functions with
8108 gdbarch.
8109
8110 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8111
8112 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
8113 (lm32_unwind_pc): Delete.
8114 (lm32_dummy_id): Delete.
8115 (lm32_gdbarch_init): Don't register deleted functions with
8116 gdbarch.
8117
8118 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8119
8120 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
8121 (iq2000_unwind_pc): Delete.
8122 (iq2000_dummy_id): Delete.
8123 (iq2000_gdbarch_init): Don't register deleted functions with
8124 gdbarch.
8125
8126 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8127
8128 * nds32-tdep.c (nds32_type_align): Delete.
8129 (nds32_push_dummy_call): Use type_align instead.
8130
8131 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8132
8133 * arm-tdep.c (arm_type_align): Only handle vector override case.
8134 (arm_push_dummy_call): Use type_align.
8135 (arm_gdbarch_init): Register arm_type_align gdbarch function.
8136
8137 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8138
8139 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
8140 case.
8141 (pass_on_stack): Use type_align.
8142 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
8143 function.
8144
8145 2019-04-23 Tom Tromey <tromey@adacore.com>
8146
8147 * dwarf2read.c (line_header::file_name_at): Remove unused
8148 overload.
8149
8150 2019-04-23 Tom de Vries <tdevries@suse.de>
8151
8152 PR gdb/24438
8153 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
8154 invocation.
8155
8156
8157 2019-03-27 Ali Tamur <tamur@google.com>
8158
8159 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
8160 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
8161 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
8162 (dwarf_expr_context::get_addr_index): Likewise
8163 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
8164 (symbol_needs_eval_context::get_addr_index): Likewise
8165 (disassemble_dwarf_expression): Add DW_OP_addrx
8166 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
8167 (read_cutu_die_from_dwo): Update comment
8168 (skip_one_die): Add DW_FORM_addrx
8169 (read_attribute_value): Likewise
8170 (var_decode_location): Add DW_OP_addrx
8171 (dwarf2_const_value_attr): Add DW_FORM_addrx
8172 (dump_die_shallow): Likewise
8173 (dwarf2_fetch_constant_bytes): Likewise
8174 (decode_locdesc): Add DW_OP_addrx
8175 (skip_form_bytes): Add DW_FORM_addrx
8176
8177 2019-04-22 Ali Tamur <tamur@google.com>
8178
8179 * MAINTAINERS (Write After Approval): Add self.
8180
8181 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
8182
8183 * solib-svr4.c (get_svr4_info): Add pspace parameter.
8184 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
8185 (open_symbol_file_object): Likewise.
8186 (svr4_default_sos): Add info parameter.
8187 (svr4_read_so_list): Likewise.
8188 (svr4_current_sos_direct): Adjust functions calls to pass down
8189 info.
8190 (svr4_current_sos_1): Add info parameter.
8191 (svr4_current_sos): Call get_svr4_info, pass info down to
8192 svr4_current_sos_1.
8193 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
8194 get_svr4_info.
8195 (svr4_in_dynsym_resolve_code): Pass current_program_space to
8196 get_svr4_info.
8197 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
8198 to get_svr4_info.
8199 (probes_table_remove_objfile_probes): Likewise.
8200 (register_solib_event_probe): Add info parameter.
8201 (solist_update_incremental): Pass info parameter down to
8202 svr4_read_so_list.
8203 (disable_probes_interface): Add info parameter.
8204 (svr4_handle_solib_event): Pass current_program_space to
8205 get_svr4_info. Adjust disable_probes_interface cleanup.
8206 (svr4_create_probe_breakpoints): Add info parameter, pass it
8207 down to register_solib_event_probe.
8208 (svr4_create_solib_event_breakpoints): Add info parameter,
8209 pass it down to svr4_create_probe_breakpoints.
8210 (enable_break): Pass info down to
8211 svr4_create_solib_event_breakpoints.
8212 (svr4_solib_create_inferior_hook): Pass current_program_space to
8213 get_svr4_info.
8214 (svr4_clear_solib): Likewise.
8215
8216 2019-04-22 Pedro Alves <palves@redhat.com>
8217
8218 * solib-svr4.c (svr4_free_objfile_observer): New.
8219 (probe_and_action::objfile): New field.
8220 (probes_table_htab_remove_objfile_probes)
8221 (probes_table_remove_objfile_probes): New functions.
8222 (register_solib_event_probe): Add 'objfile' parameter. Store it
8223 in the new probe_and_action. Don't store the probe in 'lookup'.
8224 (svr4_create_probe_breakpoints): Pass objfile to
8225 register_solib_event_probe.
8226 (_initialize_svr4_solib): Register a free_objfile observer.
8227
8228 2019-04-19 Tom Tromey <tom@tromey.com>
8229
8230 * common/queue.h: Remove.
8231
8232 2019-04-19 Tom Tromey <tom@tromey.com>
8233
8234 * event-loop.c: Don't include "common/queue.h".
8235
8236 2019-04-19 Tom Tromey <tom@tromey.com>
8237
8238 * remote.c (remote_target): Use delete.
8239 * remote-notif.h: Include <list>, not "common/queue.h".
8240 (notif_client_p): Remove typedef.
8241 (remote_notif_state): Add constructor, destructor, initializer.
8242 <notif_queue>: Now a std::list.
8243 (remote_notif_state_xfree): Don't declare.
8244 * remote-notif.c (remote_notif_process, handle_notification)
8245 (remote_notif_state_allocate): Update.
8246 (~remote_notif_state): Rename from remote_notif_state_xfree.
8247
8248 2019-04-19 Tom Tromey <tom@tromey.com>
8249
8250 * symfile.c (reread_symbols): Update.
8251 * objfiles.c (objfile_register_static_link)
8252 (objfile_lookup_static_link): Update
8253 (~objfile) Don't delete static_links.
8254 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
8255
8256 2019-04-19 Tom Tromey <tom@tromey.com>
8257
8258 * type-stack.h (struct type_stack) <insert>: Constify string.
8259 * type-stack.c (type_stack::insert): Constify string.
8260 * gdbtypes.h (lookup_template_type): Update.
8261 (address_space_name_to_int): Update.
8262 * gdbtypes.c (address_space_name_to_int): Make space_identifier
8263 const.
8264 (lookup_template_type): Make name const.
8265 * c-exp.y: Update rules.
8266 (lex_one_token, classify_name, classify_inner_name)
8267 (c_print_token): Update.
8268 * p-exp.y: Update rules.
8269 (yylex): Update.
8270 * f-exp.y: Update rules.
8271 (yylex): Update.
8272 * d-exp.y: Update rules.
8273 (lex_one_token, classify_name, classify_inner_name): Update.
8274 * parse.c (write_dollar_variable, copy_name): Return std::string.
8275 * parser-defs.h (copy_name): Change return type.
8276 * m2-exp.y: Update rules.
8277 (yylex): Update.
8278 * go-exp.y (lex_one_token): Update.
8279 Update rules.
8280 (classify_unsafe_function, classify_packaged_name)
8281 (classify_name, yylex): Update.
8282
8283 2019-04-19 Sergei Trofimovich <siarheit@google.com>
8284
8285 * configure.ac: add --enable-source-highlight switch.
8286 * configure: Regenerate.
8287 * top.c (print_gdb_version): plumb --enable-source-highlight
8288 status to "show configuration".
8289
8290 2019-04-19 Tom Tromey <tromey@adacore.com>
8291
8292 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
8293 Check ADA_TYPE_P.
8294 (empty_record, ada_template_to_fixed_record_type_1)
8295 (template_to_static_fixed_type)
8296 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
8297 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
8298 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
8299 macros.
8300
8301 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
8302
8303 PR symtab/24423:
8304 * source.c (print_source_lines_base): Advance "iter" when a
8305 control character is seen.
8306
8307 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8308
8309 * inferior.h (struct infcall_suspend_state_deleter):
8310 Catch exception in destructor to avoid crash.
8311
8312 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8313
8314 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
8315 close to the add_com "shell".
8316
8317 2019-04-18 Tom Tromey <tromey@adacore.com>
8318
8319 * process-stratum-target.h (class process_stratum_target)
8320 <stratum>: Add "final".
8321
8322 2019-04-17 Tom Tromey <tromey@adacore.com>
8323
8324 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
8325 against nullptr before use.
8326
8327 2019-04-17 Alan Hayward <alan.hayward@arm.com>
8328
8329 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
8330
8331 2019-04-17 Jim Wilson <jimw@sifive.com>
8332 Andrew Burgess <andrew.burgess@embecosm.com>
8333
8334 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
8335 code read might fail, assume 4-byte breakpoint in that case.
8336
8337 2019-04-15 Leszek Swirski <leszeks@google.com>
8338
8339 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
8340 rather than a hand-rolled POD check when checking for forced MEMORY
8341 classification.
8342
8343 2019-04-15 Alan Hayward <alan.hayward@arm.com>
8344
8345 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
8346 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
8347 function.
8348 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
8349 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
8350 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
8351 declaration.
8352
8353 2019-04-15 Alan Hayward <alan.hayward@arm.com>
8354
8355 * aarch64-linux-nat.c
8356 (aarch64_linux_nat_target::thread_architecture): Add override.
8357 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
8358 each VQ.
8359
8360 2019-04-15 Alan Hayward <alan.hayward@arm.com>
8361
8362 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
8363
8364 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
8365
8366 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
8367 target types of size 96-bits, add some additional comments, and
8368 check that the builtin type we found was the correct size.
8369
8370 2019-04-12 Eli Zaretskii <eliz@gnu.org>
8371
8372 * utils.c (prompt_for_continue): Don't restore the styling at the
8373 end, as applied_style has the wrong value. This fixes styling in
8374 long lists of file names that are interrupted by the "Continue?"
8375 prompt.
8376
8377 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
8378
8379 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
8380 * c-lang.c (c_language_defn): Likewise.
8381 (cplus_language_defn): Likewise.
8382 (asm_language_defn): Likewise.
8383 (minimal_language_defn): Likewise.
8384 * d-lang.c (d_language_defn): Likewise.
8385 * f-lang.c (f_language_defn): Likewise.
8386 * go-lang.c (go_language_defn): Likewise.
8387 * language.c (unknown_language_defn): Likewise.
8388 (auto_language_defn): Likewise.
8389 * language.h (struct language_defn): Remove la_magic field.
8390 (LANG_MAGIC): Delete.
8391 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
8392 * objc-lang.c (objc_language_defn): Likewise.
8393 * opencl-lang.c (opencl_language_defn): Likewise.
8394 * p-lang.c (pascal_language_defn): Likewise.
8395 * rust-lang.c (rust_language_defn): Likewise.
8396
8397 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8398
8399 * riscv-tdep.c (riscv_type_align): New function.
8400 (riscv_type_alignment): Delete.
8401 (riscv_arg_location): Use 'type_align'.
8402 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
8403
8404 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8405
8406 * gdbtypes.c (type_align): A struct with no non-static fields also
8407 has alignment of 1.
8408
8409 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8410
8411 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
8412 component to 0.
8413 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
8414 member.
8415 (riscv_struct_info::analyse): New implementation using new
8416 analyse_inner member function.
8417 (riscv_struct_info::field_offset): New member function.
8418 (riscv_struct_info::m_offsets): New member variable.
8419 (riscv_struct_info::analyse_inner): New private member function,
8420 takes the old implementation of riscv_struct_info::analyse but
8421 extended to track field offsets.
8422 (riscv_call_arg_struct): Update the struct folding special cases
8423 to handle cases where empty C++ structs, which are non-zero
8424 length, are found.
8425 (riscv_arg_location): Initialise the length of each location, a
8426 non-zero length now indicates the location is in use.
8427 (riscv_push_dummy_call): Allow for the first location having a
8428 non-zero offset when setting up arguments.
8429 (riscv_return_value): Likewise, but for return values.
8430
8431 2019-04-11 Tom Tromey <tromey@adacore.com>
8432
8433 * utils.c (internal_vproblem): Make "msg" const.
8434
8435 2019-04-11 Alan Hayward <alan.hayward@arm.com>
8436
8437 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
8438 * trad-frame.c (trad_frame_reset_saved_regs): New function.
8439 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
8440 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
8441
8442 2019-04-10 Kevin Buettner <kevinb@redhat.com>
8443
8444 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
8445 function.
8446 (fill_gregset): Call amd64_linux_collect_native_gregset instead
8447 of amd64_collect_native_gregset.
8448 (amd64_linux_nat_target::store_registers): Likewise.
8449
8450 2019-04-10 Tom Tromey <tom@tromey.com>
8451
8452 * symtab.c (lookup_global_symbol_from_objfile)
8453 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
8454 * objfiles.h (class separate_debug_iterator): New.
8455 (class separate_debug_range): New.
8456 (struct objfile) <separate_debug_objfiles>: New method.
8457 (objfile_separate_debug_iterate): Don't declare.
8458 * objfiles.c (separate_debug_iterator::operator++): Rename from
8459 objfile_separate_debug_iterate.
8460 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
8461 iterator.
8462 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
8463 iterator.
8464
8465 2019-04-10 Tom Tromey <tom@tromey.com>
8466
8467 * symfile.c (reread_symbols): Remove old comment.
8468 * objfiles.c (free_all_objfiles): Fix a typo.
8469
8470 2019-04-10 Tom Tromey <tom@tromey.com>
8471
8472 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
8473 * minsyms.c (lookup_minimal_symbol): Use foreach.
8474 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8475 (lookup_minimal_symbol_solib_trampoline): Likewise.
8476 * symfile.c (reread_symbols): Use foreach.
8477
8478 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
8479 Tom Tromey <tromey@adacore.com>
8480
8481 PR rust/24414:
8482 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
8483 (rust_lex_int_test): Change "value" to be LONGEST.
8484 (rust_lex_tests): Add test for long integer literal.
8485
8486 2019-04-09 Tom Tromey <tromey@adacore.com>
8487
8488 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
8489 to bool.
8490 (extended_remote_target::attach): Update.
8491 (remote_target::remote_notice_new_inferior): Update.
8492 (remote_target::add_current_inferior_and_thread): Update.
8493 * inferior.c (exit_inferior_1): Use "false".
8494 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
8495
8496 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
8497
8498 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
8499 the "start" command.
8500
8501 2019-04-08 Kevin Buettner <kevinb@redhat.com>
8502
8503 * python/py-inferior.c (infpy_thread_from_thread_handle):
8504 Adjust comments to reflect renaming of thread_from_thread_handle
8505 to thread_from_handle. Adjust keywords. Fix type error message.
8506 (inferior_object_methods): Add thread_from_handle. Retain
8507 thread_from_thread_handle, but mark it as deprecated.
8508
8509 2019-04-08 Kevin Buettner <kevinb@redhat.com>
8510
8511 * gdbthread.h (find_thread_by_handle): Revise declaration.
8512 * thread.c (find_thread_by_handle): Likewise. Adjust
8513 implementation too.
8514 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
8515 support for buffer objects as handles.
8516
8517 2019-04-08 Kevin Buettner <kevinb@redhat.com>
8518
8519 * python/py-infthread.c (thpy_thread_handle): New function.
8520 (thread_object_methods): Register thpy_thread_handle.
8521
8522 2019-04-08 Kevin Buettner <kevinb@redhat.com>
8523
8524 * gdbthread.h (thread_to_thread_handle): Declare.
8525 * thread.c (gdbtypes.h): Include.
8526 (thread_to_thread_handle): New function.
8527
8528 * target.h (struct target_ops): Add thread_info_to_thread_handle.
8529 (target_thread_info_to_thread_handle): Declare.
8530 * target.c (target_thread_info_to_thread_handle): New function.
8531 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
8532 * target-delegates.c: Regenerate.
8533
8534 * linux-thread-db.c (class thread_db_target): Add method
8535 thread_info_to_thread_handle.
8536 (thread_db_target::thread_info_to_thread_handle): Define.
8537 * remote.c (class remote_target): Add new method
8538 thread_info_to_thread_handle.
8539 (remote_target::thread_info_to_thread_handle): Define.
8540
8541 2019-04-08 Pedro Alves <palves@redhat.com>
8542
8543 * common/common-exceptions.c (throw_exception): Don't create
8544 named object to throw; throw directly.
8545 (throw_it): Likewise. Don't initialize gdb_exception::message
8546 here, with new; pass FMT and AP to the ctor instead.
8547 * common/common-exceptions.h: Include <string>.
8548 (gdb_exception::gdb_exception(enum return_reason, enum errors,
8549 const char *, va_list)): New ctor. Use std::make_shared.
8550 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
8551 errors)): Delete.
8552 (gdb_exception_error::gdb_exception_error(enum errors, const char
8553 *, va_list)): New.
8554 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
8555 Add assertion.
8556 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
8557 errors)): Delete.
8558 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
8559 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
8560 Add assertion.
8561
8562 2019-04-08 Tom Tromey <tom@tromey.com>
8563
8564 * valops.c (value_rtti_indirect_type): Replace throw_exception
8565 with throw.
8566 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
8567 with throw.
8568 * thread.c (thr_try_catch_cmd): Replace throw_exception with
8569 throw.
8570 * target.c (target_translate_tls_address): Replace throw_exception
8571 with throw.
8572 * stack.c (frame_apply_command_count): Replace throw_exception
8573 with throw.
8574 * solib-spu.c (append_ocl_sos): Replace throw_exception with
8575 throw.
8576 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
8577 with throw.
8578 * rs6000-tdep.c (rs6000_frame_cache)
8579 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
8580 * remote.c: Replace throw_exception with throw.
8581 * record-full.c (record_full_message, record_full_wait_1)
8582 (record_full_restore): Replace throw_exception with throw.
8583 * record-btrace.c:
8584 (get_thread_current_frame_id, record_btrace_start_replaying)
8585 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
8586 (cmd_record_btrace_start): Replace throw_exception with throw.
8587 * parse.c (parse_exp_in_context_1): Replace throw_exception with
8588 throw.
8589 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
8590 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
8591 * linespec.c:
8592 (find_linespec_symbols): Replace throw_exception with throw.
8593 * infrun.c (displaced_step_prepare, resume): Replace
8594 throw_exception with throw.
8595 * infcmd.c (post_create_inferior): Replace throw_exception with
8596 throw.
8597 * inf-loop.c (inferior_event_handler): Replace throw_exception
8598 with throw.
8599 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
8600 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
8601 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
8602 (get_prev_frame_always, get_frame_pc_if_available)
8603 (get_frame_address_in_block_if_available, get_frame_language):
8604 Replace throw_exception with throw.
8605 * frame-unwind.c (frame_unwind_try_unwinder): Replace
8606 throw_exception with throw.
8607 * eval.c (fetch_subexp_value, evaluate_var_value)
8608 (evaluate_funcall, evaluate_subexp_standard): Replace
8609 throw_exception with throw.
8610 * dwarf2loc.c (call_site_find_chain)
8611 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
8612 Replace throw_exception with throw.
8613 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
8614 with throw.
8615 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
8616 throw.
8617 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
8618 * completer.c (complete_line_internal): Replace throw_exception
8619 with throw.
8620 * compile/compile-object-run.c (compile_object_run): Replace
8621 throw_exception with throw.
8622 * cli/cli-script.c (process_next_line): Replace throw_exception
8623 with throw.
8624 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
8625 (btrace_enable, btrace_maint_update_pt_packets): Replace
8626 throw_exception with throw.
8627 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
8628 throw_exception with throw.
8629 * break-catch-throw.c (re_set_exception_catchpoint): Replace
8630 throw_exception with throw.
8631 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
8632 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
8633 * aarch64-tdep.c (aarch64_make_prologue_cache)
8634 (aarch64_make_stub_cache): Replace throw_exception with throw.
8635
8636 2019-04-08 Tom Tromey <tom@tromey.com>
8637
8638 * common/common-exceptions.c (throw_exception): Rename from
8639 throw_exception_cxx. Remove old copy. Make argument const.
8640 (throw_it): Create and throw exception objects directly.
8641 * common/common-exceptions.h (throw_exception): Make argument
8642 const.
8643 (struct gdb_exception_error): Add constructor.
8644 (struct gdb_exception_quit): Add constructor.
8645
8646 2019-04-08 Tom Tromey <tom@tromey.com>
8647
8648 * common/common-exceptions.h (exception_rethrow): Don't declare.
8649 (TRY_SJLJ): Update comment.
8650 (TRY, CATCH, END_CATCH): Remove.
8651 * common/common-exceptions.c (exception_rethrow): Remove.
8652
8653 2019-04-08 Tom Tromey <tom@tromey.com>
8654
8655 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
8656 Remove.
8657 (gdb_exception_error): Rename from
8658 gdb_exception_RETURN_MASK_ERROR.
8659 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
8660 (gdb_quit_bad_alloc): Update.
8661 * aarch64-tdep.c: Update.
8662 * ada-lang.c: Update.
8663 * ada-typeprint.c: Update.
8664 * ada-valprint.c: Update.
8665 * amd64-tdep.c: Update.
8666 * arch-utils.c: Update.
8667 * break-catch-throw.c: Update.
8668 * breakpoint.c: Update.
8669 * btrace.c: Update.
8670 * c-varobj.c: Update.
8671 * cli/cli-cmds.c: Update.
8672 * cli/cli-interp.c: Update.
8673 * cli/cli-script.c: Update.
8674 * common/common-exceptions.c: Update.
8675 * common/new-op.c: Update.
8676 * common/selftest.c: Update.
8677 * compile/compile-c-symbols.c: Update.
8678 * compile/compile-cplus-symbols.c: Update.
8679 * compile/compile-object-load.c: Update.
8680 * compile/compile-object-run.c: Update.
8681 * completer.c: Update.
8682 * corelow.c: Update.
8683 * cp-abi.c: Update.
8684 * cp-support.c: Update.
8685 * cp-valprint.c: Update.
8686 * darwin-nat.c: Update.
8687 * disasm-selftests.c: Update.
8688 * dtrace-probe.c: Update.
8689 * dwarf-index-cache.c: Update.
8690 * dwarf-index-write.c: Update.
8691 * dwarf2-frame-tailcall.c: Update.
8692 * dwarf2-frame.c: Update.
8693 * dwarf2loc.c: Update.
8694 * dwarf2read.c: Update.
8695 * eval.c: Update.
8696 * event-loop.c: Update.
8697 * event-top.c: Update.
8698 * exec.c: Update.
8699 * f-valprint.c: Update.
8700 * fbsd-tdep.c: Update.
8701 * frame-unwind.c: Update.
8702 * frame.c: Update.
8703 * gdbtypes.c: Update.
8704 * gnu-v3-abi.c: Update.
8705 * guile/guile-internal.h: Update.
8706 * guile/scm-block.c: Update.
8707 * guile/scm-breakpoint.c: Update.
8708 * guile/scm-cmd.c: Update.
8709 * guile/scm-disasm.c: Update.
8710 * guile/scm-frame.c: Update.
8711 * guile/scm-lazy-string.c: Update.
8712 * guile/scm-math.c: Update.
8713 * guile/scm-param.c: Update.
8714 * guile/scm-ports.c: Update.
8715 * guile/scm-pretty-print.c: Update.
8716 * guile/scm-symbol.c: Update.
8717 * guile/scm-symtab.c: Update.
8718 * guile/scm-type.c: Update.
8719 * guile/scm-value.c: Update.
8720 * i386-linux-tdep.c: Update.
8721 * i386-tdep.c: Update.
8722 * inf-loop.c: Update.
8723 * infcall.c: Update.
8724 * infcmd.c: Update.
8725 * infrun.c: Update.
8726 * jit.c: Update.
8727 * language.c: Update.
8728 * linespec.c: Update.
8729 * linux-fork.c: Update.
8730 * linux-nat.c: Update.
8731 * linux-tdep.c: Update.
8732 * linux-thread-db.c: Update.
8733 * main.c: Update.
8734 * mi/mi-cmd-break.c: Update.
8735 * mi/mi-cmd-stack.c: Update.
8736 * mi/mi-interp.c: Update.
8737 * mi/mi-main.c: Update.
8738 * objc-lang.c: Update.
8739 * p-valprint.c: Update.
8740 * parse.c: Update.
8741 * ppc-linux-tdep.c: Update.
8742 * printcmd.c: Update.
8743 * python/py-arch.c: Update.
8744 * python/py-breakpoint.c: Update.
8745 * python/py-cmd.c: Update.
8746 * python/py-finishbreakpoint.c: Update.
8747 * python/py-frame.c: Update.
8748 * python/py-framefilter.c: Update.
8749 * python/py-gdb-readline.c: Update.
8750 * python/py-inferior.c: Update.
8751 * python/py-infthread.c: Update.
8752 * python/py-lazy-string.c: Update.
8753 * python/py-linetable.c: Update.
8754 * python/py-objfile.c: Update.
8755 * python/py-param.c: Update.
8756 * python/py-prettyprint.c: Update.
8757 * python/py-progspace.c: Update.
8758 * python/py-record-btrace.c: Update.
8759 * python/py-record.c: Update.
8760 * python/py-symbol.c: Update.
8761 * python/py-type.c: Update.
8762 * python/py-unwind.c: Update.
8763 * python/py-utils.c: Update.
8764 * python/py-value.c: Update.
8765 * python/python.c: Update.
8766 * record-btrace.c: Update.
8767 * record-full.c: Update.
8768 * remote-fileio.c: Update.
8769 * remote.c: Update.
8770 * riscv-tdep.c: Update.
8771 * rs6000-aix-tdep.c: Update.
8772 * rs6000-tdep.c: Update.
8773 * rust-exp.y: Update.
8774 * rust-lang.c: Update.
8775 * s390-tdep.c: Update.
8776 * selftest-arch.c: Update.
8777 * solib-dsbt.c: Update.
8778 * solib-frv.c: Update.
8779 * solib-spu.c: Update.
8780 * solib-svr4.c: Update.
8781 * solib.c: Update.
8782 * sparc64-linux-tdep.c: Update.
8783 * stack.c: Update.
8784 * symfile-mem.c: Update.
8785 * symmisc.c: Update.
8786 * target.c: Update.
8787 * thread.c: Update.
8788 * top.c: Update.
8789 * tracefile-tfile.c: Update.
8790 * tui/tui.c: Update.
8791 * typeprint.c: Update.
8792 * unittests/cli-utils-selftests.c: Update.
8793 * unittests/parse-connection-spec-selftests.c: Update.
8794 * valops.c: Update.
8795 * valprint.c: Update.
8796 * value.c: Update.
8797 * varobj.c: Update.
8798 * windows-nat.c: Update.
8799 * x86-linux-nat.c: Update.
8800 * xml-support.c: Update.
8801
8802 2019-04-08 Tom Tromey <tom@tromey.com>
8803
8804 * xml-support.c: Use C++ exception handling.
8805 * x86-linux-nat.c: Use C++ exception handling.
8806 * windows-nat.c: Use C++ exception handling.
8807 * varobj.c: Use C++ exception handling.
8808 * value.c: Use C++ exception handling.
8809 * valprint.c: Use C++ exception handling.
8810 * valops.c: Use C++ exception handling.
8811 * unittests/parse-connection-spec-selftests.c: Use C++ exception
8812 handling.
8813 * unittests/cli-utils-selftests.c: Use C++ exception handling.
8814 * typeprint.c: Use C++ exception handling.
8815 * tui/tui.c: Use C++ exception handling.
8816 * tracefile-tfile.c: Use C++ exception handling.
8817 * top.c: Use C++ exception handling.
8818 * thread.c: Use C++ exception handling.
8819 * target.c: Use C++ exception handling.
8820 * symmisc.c: Use C++ exception handling.
8821 * symfile-mem.c: Use C++ exception handling.
8822 * stack.c: Use C++ exception handling.
8823 * sparc64-linux-tdep.c: Use C++ exception handling.
8824 * solib.c: Use C++ exception handling.
8825 * solib-svr4.c: Use C++ exception handling.
8826 * solib-spu.c: Use C++ exception handling.
8827 * solib-frv.c: Use C++ exception handling.
8828 * solib-dsbt.c: Use C++ exception handling.
8829 * selftest-arch.c: Use C++ exception handling.
8830 * s390-tdep.c: Use C++ exception handling.
8831 * rust-lang.c: Use C++ exception handling.
8832 * rust-exp.y: Use C++ exception handling.
8833 * rs6000-tdep.c: Use C++ exception handling.
8834 * rs6000-aix-tdep.c: Use C++ exception handling.
8835 * riscv-tdep.c: Use C++ exception handling.
8836 * remote.c: Use C++ exception handling.
8837 * remote-fileio.c: Use C++ exception handling.
8838 * record-full.c: Use C++ exception handling.
8839 * record-btrace.c: Use C++ exception handling.
8840 * python/python.c: Use C++ exception handling.
8841 * python/py-value.c: Use C++ exception handling.
8842 * python/py-utils.c: Use C++ exception handling.
8843 * python/py-unwind.c: Use C++ exception handling.
8844 * python/py-type.c: Use C++ exception handling.
8845 * python/py-symbol.c: Use C++ exception handling.
8846 * python/py-record.c: Use C++ exception handling.
8847 * python/py-record-btrace.c: Use C++ exception handling.
8848 * python/py-progspace.c: Use C++ exception handling.
8849 * python/py-prettyprint.c: Use C++ exception handling.
8850 * python/py-param.c: Use C++ exception handling.
8851 * python/py-objfile.c: Use C++ exception handling.
8852 * python/py-linetable.c: Use C++ exception handling.
8853 * python/py-lazy-string.c: Use C++ exception handling.
8854 * python/py-infthread.c: Use C++ exception handling.
8855 * python/py-inferior.c: Use C++ exception handling.
8856 * python/py-gdb-readline.c: Use C++ exception handling.
8857 * python/py-framefilter.c: Use C++ exception handling.
8858 * python/py-frame.c: Use C++ exception handling.
8859 * python/py-finishbreakpoint.c: Use C++ exception handling.
8860 * python/py-cmd.c: Use C++ exception handling.
8861 * python/py-breakpoint.c: Use C++ exception handling.
8862 * python/py-arch.c: Use C++ exception handling.
8863 * printcmd.c: Use C++ exception handling.
8864 * ppc-linux-tdep.c: Use C++ exception handling.
8865 * parse.c: Use C++ exception handling.
8866 * p-valprint.c: Use C++ exception handling.
8867 * objc-lang.c: Use C++ exception handling.
8868 * mi/mi-main.c: Use C++ exception handling.
8869 * mi/mi-interp.c: Use C++ exception handling.
8870 * mi/mi-cmd-stack.c: Use C++ exception handling.
8871 * mi/mi-cmd-break.c: Use C++ exception handling.
8872 * main.c: Use C++ exception handling.
8873 * linux-thread-db.c: Use C++ exception handling.
8874 * linux-tdep.c: Use C++ exception handling.
8875 * linux-nat.c: Use C++ exception handling.
8876 * linux-fork.c: Use C++ exception handling.
8877 * linespec.c: Use C++ exception handling.
8878 * language.c: Use C++ exception handling.
8879 * jit.c: Use C++ exception handling.
8880 * infrun.c: Use C++ exception handling.
8881 * infcmd.c: Use C++ exception handling.
8882 * infcall.c: Use C++ exception handling.
8883 * inf-loop.c: Use C++ exception handling.
8884 * i386-tdep.c: Use C++ exception handling.
8885 * i386-linux-tdep.c: Use C++ exception handling.
8886 * guile/scm-value.c: Use C++ exception handling.
8887 * guile/scm-type.c: Use C++ exception handling.
8888 * guile/scm-symtab.c: Use C++ exception handling.
8889 * guile/scm-symbol.c: Use C++ exception handling.
8890 * guile/scm-pretty-print.c: Use C++ exception handling.
8891 * guile/scm-ports.c: Use C++ exception handling.
8892 * guile/scm-param.c: Use C++ exception handling.
8893 * guile/scm-math.c: Use C++ exception handling.
8894 * guile/scm-lazy-string.c: Use C++ exception handling.
8895 * guile/scm-frame.c: Use C++ exception handling.
8896 * guile/scm-disasm.c: Use C++ exception handling.
8897 * guile/scm-cmd.c: Use C++ exception handling.
8898 * guile/scm-breakpoint.c: Use C++ exception handling.
8899 * guile/scm-block.c: Use C++ exception handling.
8900 * guile/guile-internal.h: Use C++ exception handling.
8901 * gnu-v3-abi.c: Use C++ exception handling.
8902 * gdbtypes.c: Use C++ exception handling.
8903 * frame.c: Use C++ exception handling.
8904 * frame-unwind.c: Use C++ exception handling.
8905 * fbsd-tdep.c: Use C++ exception handling.
8906 * f-valprint.c: Use C++ exception handling.
8907 * exec.c: Use C++ exception handling.
8908 * event-top.c: Use C++ exception handling.
8909 * event-loop.c: Use C++ exception handling.
8910 * eval.c: Use C++ exception handling.
8911 * dwarf2read.c: Use C++ exception handling.
8912 * dwarf2loc.c: Use C++ exception handling.
8913 * dwarf2-frame.c: Use C++ exception handling.
8914 * dwarf2-frame-tailcall.c: Use C++ exception handling.
8915 * dwarf-index-write.c: Use C++ exception handling.
8916 * dwarf-index-cache.c: Use C++ exception handling.
8917 * dtrace-probe.c: Use C++ exception handling.
8918 * disasm-selftests.c: Use C++ exception handling.
8919 * darwin-nat.c: Use C++ exception handling.
8920 * cp-valprint.c: Use C++ exception handling.
8921 * cp-support.c: Use C++ exception handling.
8922 * cp-abi.c: Use C++ exception handling.
8923 * corelow.c: Use C++ exception handling.
8924 * completer.c: Use C++ exception handling.
8925 * compile/compile-object-run.c: Use C++ exception handling.
8926 * compile/compile-object-load.c: Use C++ exception handling.
8927 * compile/compile-cplus-symbols.c: Use C++ exception handling.
8928 * compile/compile-c-symbols.c: Use C++ exception handling.
8929 * common/selftest.c: Use C++ exception handling.
8930 * common/new-op.c: Use C++ exception handling.
8931 * cli/cli-script.c: Use C++ exception handling.
8932 * cli/cli-interp.c: Use C++ exception handling.
8933 * cli/cli-cmds.c: Use C++ exception handling.
8934 * c-varobj.c: Use C++ exception handling.
8935 * btrace.c: Use C++ exception handling.
8936 * breakpoint.c: Use C++ exception handling.
8937 * break-catch-throw.c: Use C++ exception handling.
8938 * arch-utils.c: Use C++ exception handling.
8939 * amd64-tdep.c: Use C++ exception handling.
8940 * ada-valprint.c: Use C++ exception handling.
8941 * ada-typeprint.c: Use C++ exception handling.
8942 * ada-lang.c: Use C++ exception handling.
8943 * aarch64-tdep.c: Use C++ exception handling.
8944
8945 2019-04-08 Tom Tromey <tom@tromey.com>
8946
8947 * xml-support.c (gdb_xml_parser::parse): Update.
8948 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8949 * value.c (show_convenience): Update.
8950 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
8951 (test_parse_flags_qcs): Update.
8952 * thread.c (thr_try_catch_cmd): Update.
8953 * target.c (target_translate_tls_address): Update.
8954 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
8955 (info_frame_command_core, frame_apply_command_count): Update.
8956 * rust-exp.y (rust_lex_exception_test): Update.
8957 * riscv-tdep.c (riscv_print_one_register_info): Update.
8958 * remote.c (remote_target::enable_btrace): Update.
8959 * record-btrace.c (record_btrace_enable_warn): Update.
8960 * python/py-utils.c (gdbpy_convert_exception): Update.
8961 * printcmd.c (do_one_display, print_variable_and_value): Update.
8962 * mi/mi-main.c (mi_print_exception): Update.
8963 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
8964 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
8965 * linux-nat.c (linux_nat_target::attach): Update.
8966 * linux-fork.c (class scoped_switch_fork_info): Update.
8967 * infrun.c (displaced_step_prepare): Update.
8968 * infcall.c (call_function_by_hand_dummy): Update.
8969 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
8970 * gnu-v3-abi.c (print_one_vtable): Update.
8971 * frame.c (get_prev_frame_always): Update.
8972 * f-valprint.c (info_common_command_for_block): Update.
8973 * exec.c (try_open_exec_file): Update.
8974 * exceptions.c (print_exception, exception_print)
8975 (exception_fprintf, exception_print_same): Update.
8976 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
8977 * dwarf-index-cache.c (index_cache::store)
8978 (index_cache::lookup_gdb_index): Update.
8979 * darwin-nat.c (maybe_cache_shell): Update.
8980 * cp-valprint.c (cp_print_value_fields): Update.
8981 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
8982 (gcc_cplus_symbol_address): Update.
8983 * compile/compile-c-symbols.c (gcc_convert_symbol)
8984 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
8985 * common/selftest.c: Update.
8986 * common/common-exceptions.h (struct gdb_exception) <message>: Now
8987 a std::string.
8988 (exception_try_scope_entry, exception_try_scope_exit): Don't
8989 declare.
8990 (struct exception_try_scope): Remove.
8991 (TRY): Don't use exception_try_scope.
8992 (struct gdb_exception): Add constructor, operator=.
8993 <what>: New method.
8994 (struct gdb_exception_RETURN_MASK_ALL)
8995 (struct gdb_exception_RETURN_MASK_ERROR)
8996 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
8997 (struct gdb_quit_bad_alloc): Update.
8998 * common/common-exceptions.c (exception_none): Change
8999 initializer.
9000 (struct catcher) <state, exception>: Initialize inline.
9001 <prev>: Remove member.
9002 (current_catcher): Remove.
9003 (catchers): New global.
9004 (exceptions_state_mc_init): Simplify.
9005 (catcher_pop): Remove.
9006 (exceptions_state_mc, exceptions_state_mc_catch): Update.
9007 (try_scope_depth, exception_try_scope_entry)
9008 (exception_try_scope_exit): Remove.
9009 (throw_exception_sjlj): Update.
9010 (exception_messages, exception_messages_size): Remove.
9011 (throw_it): Simplify.
9012 (gdb_exception_sliced_copy): Remove.
9013 (throw_exception_cxx): Update.
9014 * cli/cli-script.c (script_from_file): Update.
9015 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
9016 Update.
9017 * ada-valprint.c (ada_val_print): Update.
9018 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
9019 (create_excep_cond_exprs): Update.
9020
9021 2019-04-08 Tom Tromey <tom@tromey.com>
9022
9023 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
9024 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
9025 (TRY, CATCH, END_CATCH): Remove some definitions.
9026 * common/common-exceptions.c: Don't use GDB_XCPT.
9027 (catcher_list_size): Remove.
9028 (throw_exception, throw_it): Simplify.
9029
9030 2019-04-05 Tom Tromey <tom@tromey.com>
9031
9032 Revert the header-sorting patch.
9033 * ft32-tdep.c: Revert.
9034 * frv-tdep.c: Revert.
9035 * frv-linux-tdep.c: Revert.
9036 * frame.c: Revert.
9037 * frame-unwind.c: Revert.
9038 * frame-base.c: Revert.
9039 * fork-child.c: Revert.
9040 * findvar.c: Revert.
9041 * findcmd.c: Revert.
9042 * filesystem.c: Revert.
9043 * filename-seen-cache.h: Revert.
9044 * filename-seen-cache.c: Revert.
9045 * fbsd-tdep.c: Revert.
9046 * fbsd-nat.h: Revert.
9047 * fbsd-nat.c: Revert.
9048 * f-valprint.c: Revert.
9049 * f-typeprint.c: Revert.
9050 * f-lang.c: Revert.
9051 * extension.h: Revert.
9052 * extension.c: Revert.
9053 * extension-priv.h: Revert.
9054 * expprint.c: Revert.
9055 * exec.h: Revert.
9056 * exec.c: Revert.
9057 * exceptions.c: Revert.
9058 * event-top.c: Revert.
9059 * event-loop.c: Revert.
9060 * eval.c: Revert.
9061 * elfread.c: Revert.
9062 * dwarf2read.h: Revert.
9063 * dwarf2read.c: Revert.
9064 * dwarf2loc.c: Revert.
9065 * dwarf2expr.h: Revert.
9066 * dwarf2expr.c: Revert.
9067 * dwarf2-frame.c: Revert.
9068 * dwarf2-frame-tailcall.c: Revert.
9069 * dwarf-index-write.h: Revert.
9070 * dwarf-index-write.c: Revert.
9071 * dwarf-index-common.c: Revert.
9072 * dwarf-index-cache.h: Revert.
9073 * dwarf-index-cache.c: Revert.
9074 * dummy-frame.c: Revert.
9075 * dtrace-probe.c: Revert.
9076 * disasm.h: Revert.
9077 * disasm.c: Revert.
9078 * disasm-selftests.c: Revert.
9079 * dictionary.c: Revert.
9080 * dicos-tdep.c: Revert.
9081 * demangle.c: Revert.
9082 * dcache.h: Revert.
9083 * dcache.c: Revert.
9084 * darwin-nat.h: Revert.
9085 * darwin-nat.c: Revert.
9086 * darwin-nat-info.c: Revert.
9087 * d-valprint.c: Revert.
9088 * d-namespace.c: Revert.
9089 * d-lang.c: Revert.
9090 * ctf.c: Revert.
9091 * csky-tdep.c: Revert.
9092 * csky-linux-tdep.c: Revert.
9093 * cris-tdep.c: Revert.
9094 * cris-linux-tdep.c: Revert.
9095 * cp-valprint.c: Revert.
9096 * cp-support.c: Revert.
9097 * cp-namespace.c: Revert.
9098 * cp-abi.c: Revert.
9099 * corelow.c: Revert.
9100 * corefile.c: Revert.
9101 * continuations.c: Revert.
9102 * completer.h: Revert.
9103 * completer.c: Revert.
9104 * complaints.c: Revert.
9105 * coffread.c: Revert.
9106 * coff-pe-read.c: Revert.
9107 * cli-out.h: Revert.
9108 * cli-out.c: Revert.
9109 * charset.c: Revert.
9110 * c-varobj.c: Revert.
9111 * c-valprint.c: Revert.
9112 * c-typeprint.c: Revert.
9113 * c-lang.c: Revert.
9114 * buildsym.c: Revert.
9115 * buildsym-legacy.c: Revert.
9116 * build-id.h: Revert.
9117 * build-id.c: Revert.
9118 * btrace.c: Revert.
9119 * bsd-uthread.c: Revert.
9120 * breakpoint.h: Revert.
9121 * breakpoint.c: Revert.
9122 * break-catch-throw.c: Revert.
9123 * break-catch-syscall.c: Revert.
9124 * break-catch-sig.c: Revert.
9125 * blockframe.c: Revert.
9126 * block.c: Revert.
9127 * bfin-tdep.c: Revert.
9128 * bfin-linux-tdep.c: Revert.
9129 * bfd-target.c: Revert.
9130 * bcache.c: Revert.
9131 * ax-general.c: Revert.
9132 * ax-gdb.h: Revert.
9133 * ax-gdb.c: Revert.
9134 * avr-tdep.c: Revert.
9135 * auxv.c: Revert.
9136 * auto-load.c: Revert.
9137 * arm-wince-tdep.c: Revert.
9138 * arm-tdep.c: Revert.
9139 * arm-symbian-tdep.c: Revert.
9140 * arm-pikeos-tdep.c: Revert.
9141 * arm-obsd-tdep.c: Revert.
9142 * arm-nbsd-tdep.c: Revert.
9143 * arm-nbsd-nat.c: Revert.
9144 * arm-linux-tdep.c: Revert.
9145 * arm-linux-nat.c: Revert.
9146 * arm-fbsd-tdep.c: Revert.
9147 * arm-fbsd-nat.c: Revert.
9148 * arm-bsd-tdep.c: Revert.
9149 * arch-utils.c: Revert.
9150 * arc-tdep.c: Revert.
9151 * arc-newlib-tdep.c: Revert.
9152 * annotate.h: Revert.
9153 * annotate.c: Revert.
9154 * amd64-windows-tdep.c: Revert.
9155 * amd64-windows-nat.c: Revert.
9156 * amd64-tdep.c: Revert.
9157 * amd64-sol2-tdep.c: Revert.
9158 * amd64-obsd-tdep.c: Revert.
9159 * amd64-obsd-nat.c: Revert.
9160 * amd64-nbsd-tdep.c: Revert.
9161 * amd64-nbsd-nat.c: Revert.
9162 * amd64-nat.c: Revert.
9163 * amd64-linux-tdep.c: Revert.
9164 * amd64-linux-nat.c: Revert.
9165 * amd64-fbsd-tdep.c: Revert.
9166 * amd64-fbsd-nat.c: Revert.
9167 * amd64-dicos-tdep.c: Revert.
9168 * amd64-darwin-tdep.c: Revert.
9169 * amd64-bsd-nat.c: Revert.
9170 * alpha-tdep.c: Revert.
9171 * alpha-obsd-tdep.c: Revert.
9172 * alpha-nbsd-tdep.c: Revert.
9173 * alpha-mdebug-tdep.c: Revert.
9174 * alpha-linux-tdep.c: Revert.
9175 * alpha-linux-nat.c: Revert.
9176 * alpha-bsd-tdep.c: Revert.
9177 * alpha-bsd-nat.c: Revert.
9178 * aix-thread.c: Revert.
9179 * agent.c: Revert.
9180 * addrmap.c: Revert.
9181 * ada-varobj.c: Revert.
9182 * ada-valprint.c: Revert.
9183 * ada-typeprint.c: Revert.
9184 * ada-tasks.c: Revert.
9185 * ada-lang.c: Revert.
9186 * aarch64-tdep.c: Revert.
9187 * aarch64-ravenscar-thread.c: Revert.
9188 * aarch64-newlib-tdep.c: Revert.
9189 * aarch64-linux-tdep.c: Revert.
9190 * aarch64-linux-nat.c: Revert.
9191 * aarch64-fbsd-tdep.c: Revert.
9192 * aarch64-fbsd-nat.c: Revert.
9193 * aarch32-linux-nat.c: Revert.
9194
9195 2019-04-05 Tom Tromey <tom@tromey.com>
9196
9197 * ft32-tdep.c: Sort headers.
9198 * frv-tdep.c: Sort headers.
9199 * frv-linux-tdep.c: Sort headers.
9200 * frame.c: Sort headers.
9201 * frame-unwind.c: Sort headers.
9202 * frame-base.c: Sort headers.
9203 * fork-child.c: Sort headers.
9204 * findvar.c: Sort headers.
9205 * findcmd.c: Sort headers.
9206 * filesystem.c: Sort headers.
9207 * filename-seen-cache.h: Sort headers.
9208 * filename-seen-cache.c: Sort headers.
9209 * fbsd-tdep.c: Sort headers.
9210 * fbsd-nat.h: Sort headers.
9211 * fbsd-nat.c: Sort headers.
9212 * f-valprint.c: Sort headers.
9213 * f-typeprint.c: Sort headers.
9214 * f-lang.c: Sort headers.
9215 * extension.h: Sort headers.
9216 * extension.c: Sort headers.
9217 * extension-priv.h: Sort headers.
9218 * expprint.c: Sort headers.
9219 * exec.h: Sort headers.
9220 * exec.c: Sort headers.
9221 * exceptions.c: Sort headers.
9222 * event-top.c: Sort headers.
9223 * event-loop.c: Sort headers.
9224 * eval.c: Sort headers.
9225 * elfread.c: Sort headers.
9226 * dwarf2read.h: Sort headers.
9227 * dwarf2read.c: Sort headers.
9228 * dwarf2loc.c: Sort headers.
9229 * dwarf2expr.h: Sort headers.
9230 * dwarf2expr.c: Sort headers.
9231 * dwarf2-frame.c: Sort headers.
9232 * dwarf2-frame-tailcall.c: Sort headers.
9233 * dwarf-index-write.h: Sort headers.
9234 * dwarf-index-write.c: Sort headers.
9235 * dwarf-index-common.c: Sort headers.
9236 * dwarf-index-cache.h: Sort headers.
9237 * dwarf-index-cache.c: Sort headers.
9238 * dummy-frame.c: Sort headers.
9239 * dtrace-probe.c: Sort headers.
9240 * disasm.h: Sort headers.
9241 * disasm.c: Sort headers.
9242 * disasm-selftests.c: Sort headers.
9243 * dictionary.c: Sort headers.
9244 * dicos-tdep.c: Sort headers.
9245 * demangle.c: Sort headers.
9246 * dcache.h: Sort headers.
9247 * dcache.c: Sort headers.
9248 * darwin-nat.h: Sort headers.
9249 * darwin-nat.c: Sort headers.
9250 * darwin-nat-info.c: Sort headers.
9251 * d-valprint.c: Sort headers.
9252 * d-namespace.c: Sort headers.
9253 * d-lang.c: Sort headers.
9254 * ctf.c: Sort headers.
9255 * csky-tdep.c: Sort headers.
9256 * csky-linux-tdep.c: Sort headers.
9257 * cris-tdep.c: Sort headers.
9258 * cris-linux-tdep.c: Sort headers.
9259 * cp-valprint.c: Sort headers.
9260 * cp-support.c: Sort headers.
9261 * cp-namespace.c: Sort headers.
9262 * cp-abi.c: Sort headers.
9263 * corelow.c: Sort headers.
9264 * corefile.c: Sort headers.
9265 * continuations.c: Sort headers.
9266 * completer.h: Sort headers.
9267 * completer.c: Sort headers.
9268 * complaints.c: Sort headers.
9269 * coffread.c: Sort headers.
9270 * coff-pe-read.c: Sort headers.
9271 * cli-out.h: Sort headers.
9272 * cli-out.c: Sort headers.
9273 * charset.c: Sort headers.
9274 * c-varobj.c: Sort headers.
9275 * c-valprint.c: Sort headers.
9276 * c-typeprint.c: Sort headers.
9277 * c-lang.c: Sort headers.
9278 * buildsym.c: Sort headers.
9279 * buildsym-legacy.c: Sort headers.
9280 * build-id.h: Sort headers.
9281 * build-id.c: Sort headers.
9282 * btrace.c: Sort headers.
9283 * bsd-uthread.c: Sort headers.
9284 * breakpoint.h: Sort headers.
9285 * breakpoint.c: Sort headers.
9286 * break-catch-throw.c: Sort headers.
9287 * break-catch-syscall.c: Sort headers.
9288 * break-catch-sig.c: Sort headers.
9289 * blockframe.c: Sort headers.
9290 * block.c: Sort headers.
9291 * bfin-tdep.c: Sort headers.
9292 * bfin-linux-tdep.c: Sort headers.
9293 * bfd-target.c: Sort headers.
9294 * bcache.c: Sort headers.
9295 * ax-general.c: Sort headers.
9296 * ax-gdb.h: Sort headers.
9297 * ax-gdb.c: Sort headers.
9298 * avr-tdep.c: Sort headers.
9299 * auxv.c: Sort headers.
9300 * auto-load.c: Sort headers.
9301 * arm-wince-tdep.c: Sort headers.
9302 * arm-tdep.c: Sort headers.
9303 * arm-symbian-tdep.c: Sort headers.
9304 * arm-pikeos-tdep.c: Sort headers.
9305 * arm-obsd-tdep.c: Sort headers.
9306 * arm-nbsd-tdep.c: Sort headers.
9307 * arm-nbsd-nat.c: Sort headers.
9308 * arm-linux-tdep.c: Sort headers.
9309 * arm-linux-nat.c: Sort headers.
9310 * arm-fbsd-tdep.c: Sort headers.
9311 * arm-fbsd-nat.c: Sort headers.
9312 * arm-bsd-tdep.c: Sort headers.
9313 * arch-utils.c: Sort headers.
9314 * arc-tdep.c: Sort headers.
9315 * arc-newlib-tdep.c: Sort headers.
9316 * annotate.h: Sort headers.
9317 * annotate.c: Sort headers.
9318 * amd64-windows-tdep.c: Sort headers.
9319 * amd64-windows-nat.c: Sort headers.
9320 * amd64-tdep.c: Sort headers.
9321 * amd64-sol2-tdep.c: Sort headers.
9322 * amd64-obsd-tdep.c: Sort headers.
9323 * amd64-obsd-nat.c: Sort headers.
9324 * amd64-nbsd-tdep.c: Sort headers.
9325 * amd64-nbsd-nat.c: Sort headers.
9326 * amd64-nat.c: Sort headers.
9327 * amd64-linux-tdep.c: Sort headers.
9328 * amd64-linux-nat.c: Sort headers.
9329 * amd64-fbsd-tdep.c: Sort headers.
9330 * amd64-fbsd-nat.c: Sort headers.
9331 * amd64-dicos-tdep.c: Sort headers.
9332 * amd64-darwin-tdep.c: Sort headers.
9333 * amd64-bsd-nat.c: Sort headers.
9334 * alpha-tdep.c: Sort headers.
9335 * alpha-obsd-tdep.c: Sort headers.
9336 * alpha-nbsd-tdep.c: Sort headers.
9337 * alpha-mdebug-tdep.c: Sort headers.
9338 * alpha-linux-tdep.c: Sort headers.
9339 * alpha-linux-nat.c: Sort headers.
9340 * alpha-bsd-tdep.c: Sort headers.
9341 * alpha-bsd-nat.c: Sort headers.
9342 * aix-thread.c: Sort headers.
9343 * agent.c: Sort headers.
9344 * addrmap.c: Sort headers.
9345 * ada-varobj.c: Sort headers.
9346 * ada-valprint.c: Sort headers.
9347 * ada-typeprint.c: Sort headers.
9348 * ada-tasks.c: Sort headers.
9349 * ada-lang.c: Sort headers.
9350 * aarch64-tdep.c: Sort headers.
9351 * aarch64-ravenscar-thread.c: Sort headers.
9352 * aarch64-newlib-tdep.c: Sort headers.
9353 * aarch64-linux-tdep.c: Sort headers.
9354 * aarch64-linux-nat.c: Sort headers.
9355 * aarch64-fbsd-tdep.c: Sort headers.
9356 * aarch64-fbsd-nat.c: Sort headers.
9357 * aarch32-linux-nat.c: Sort headers.
9358
9359 2019-04-04 Tom Tromey <tom@tromey.com>
9360
9361 * varobj.c (varobj_create): Update.
9362 * rust-exp.y (struct rust_parser) <update_innermost_block,
9363 lookup_symbol>: New methods.
9364 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
9365 Rename.
9366 (rust_parser::rust_lookup_type)
9367 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9368 * printcmd.c (display_command, do_one_display): Update.
9369 * parser-defs.h (struct parser_state) <parser_state>: Add
9370 "tracker" parameter.
9371 (block_tracker): New member.
9372 (class innermost_block_tracker) <innermost_block_tracker>: Add
9373 "types" parameter.
9374 <reset>: Remove method.
9375 (innermost_block): Don't declare.
9376 (null_post_parser): Update.
9377 * parse.c (innermost_block): Remove global.
9378 (write_dollar_variable): Update.
9379 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
9380 Remove "tracker_types" parameter.
9381 (parse_expression): Add "tracker" parameter.
9382 (parse_expression_for_completion): Update.
9383 (null_post_parser): Add "tracker" parameter.
9384 * p-exp.y: Update rules.
9385 * m2-exp.y: Update rules.
9386 * language.h (struct language_defn) <la_post_parser>: Add
9387 "tracker" parameter.
9388 * go-exp.y: Update rules.
9389 * f-exp.y: Update rules.
9390 * expression.h (parse_expression, parse_exp_1): Add "tracker"
9391 parameter.
9392 * d-exp.y: Update rules.
9393 * c-exp.y: Update rules.
9394 * breakpoint.c (set_breakpoint_condition): Create an
9395 innermost_block_tracker.
9396 (watch_command_1): Likewise.
9397 * ada-lang.c (resolve): Add "tracker" parameter.
9398 (resolve_subexp): Likewise.
9399 * ada-exp.y (write_var_from_sym): Update.
9400
9401 2019-04-04 Tom Tromey <tom@tromey.com>
9402
9403 * type-stack.h: New file.
9404 * type-stack.c: New file.
9405 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
9406 type-stack.h.
9407 (insert_into_type_stack, insert_type, push_type, push_type_int)
9408 (insert_type_address_space, pop_type, pop_type_int)
9409 (pop_typelist, pop_type_stack, append_type_stack)
9410 (push_type_stack, get_type_stack, push_typelist)
9411 (follow_type_instance_flags, follow_types): Don't declare.
9412 * parse.c (type_stack): Remove global.
9413 (parse_exp_in_context): Update.
9414 (insert_into_type_stack, insert_type, push_type, push_type_int)
9415 (insert_type_address_space, pop_type, pop_type_int)
9416 (pop_typelist, pop_type_stack, append_type_stack)
9417 (push_type_stack, get_type_stack, push_typelist)
9418 (follow_type_instance_flags, follow_types): Remove (moved to
9419 type-stack.c).
9420 * f-exp.y (type_stack): New global.
9421 Update rules.
9422 (push_kind_type, f_parse): Update.
9423 * d-exp.y (type_stack): New global.
9424 Update rules.
9425 (d_parse): Update.
9426 * c-exp.y (struct c_parse_state) <type_stack>: New member.
9427 Update rules.
9428 * Makefile.in (COMMON_SFILES): Add type-stack.c.
9429 (HFILES_NO_SRCDIR): Add type-stack.h.
9430
9431 2019-04-04 Tom Tromey <tom@tromey.com>
9432
9433 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
9434 (rust_parser::convert_ast_to_expression, rust_parse)
9435 (rust_lex_test_completion, rust_lex_tests): Update.
9436 * parser-defs.h (struct expr_completion_state): New.
9437 (struct parser_state) <parser_state>: Add completion parameter.
9438 <mark_struct_expression, mark_completion_tag>: New methods.
9439 <parse_completion, m_completion_state>: New members.
9440 (prefixify_expression, null_post_parser): Update.
9441 (mark_struct_expression, mark_completion_tag): Don't declare.
9442 * parse.c (parse_completion, expout_last_struct)
9443 (expout_tag_completion_type, expout_completion_name): Remove
9444 globals.
9445 (parser_state::mark_struct_expression)
9446 (parser_state::mark_completion_tag): Now methods.
9447 (prefixify_expression): Add last_struct parameter.
9448 (prefixify_subexp): Likewise.
9449 (parse_exp_1): Update.
9450 (parse_exp_in_context): Add cstate parameter. Update.
9451 (parse_expression_for_completion): Create an
9452 expr_completion_state.
9453 (null_post_parser): Add "completion" parameter.
9454 * p-exp.y: Update rules.
9455 (yylex): Update.
9456 * language.h (struct language_defn) <la_post_parser>: Add
9457 "completing" parameter.
9458 * go-exp.y: Update rules.
9459 (lex_one_token): Update.
9460 * expression.h (parse_completion): Don't declare.
9461 * d-exp.y: Update rules.
9462 (lex_one_token): Update rules.
9463 * c-exp.y: Update rules.
9464 (lex_one_token): Update.
9465 * ada-lang.c (resolve): Add "parse_completion" parameter.
9466 (resolve_subexp): Likewise.
9467 (ada_resolve_function): Likewise.
9468
9469 2019-04-04 Tom Tromey <tom@tromey.com>
9470
9471 * parser-defs.h (struct parser_state) <start_arglist,
9472 end_arglist>: New methods.
9473 <arglist_len, m_funcall_chain>: New members.
9474 (arglist_len, start_arglist, end_arglist): Don't declare.
9475 * parse.c (arglist_len, funcall_chain): Remove global.
9476 (start_arglist, end_arglist): Remove functions.
9477 (parse_exp_in_context): Update.
9478 * p-exp.y: Update rules.
9479 * m2-exp.y: Update rules.
9480 * go-exp.y: Update rules.
9481 * f-exp.y: Update rules.
9482 * d-exp.y: Update rules.
9483 * c-exp.y: Update rules.
9484
9485 2019-04-04 Tom Tromey <tom@tromey.com>
9486
9487 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
9488 lex_operator, push_back>: New methods.
9489 Update all rules.
9490 (rust_parser::lex_hex, lex_escape): Rename and update.
9491 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
9492 (rust_parser::lex_operator): Rename and update.
9493 (rust_parser::lex_number, rustyylex, rustyyerror)
9494 (rust_lex_test_init, rust_lex_test_sequence)
9495 (rust_lex_test_push_back, rust_lex_tests): Update.
9496 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
9497 parameter.
9498 <lexptr, prev_lexptr>: New members.
9499 (lexptr, prev_lexptr): Don't declare.
9500 * parse.c (lexptr, prev_lexptr): Remove globals.
9501 (parse_exp_in_context): Update.
9502 * p-exp.y (yylex, yyerror): Update.
9503 * m2-exp.y (parse_number, yylex, yyerror): Update.
9504 * go-exp.y (lex_one_token, yyerror): Update.
9505 * f-exp.y (match_string_literal, yylex, yyerror): Update.
9506 * d-exp.y (lex_one_token, yyerror): Update.
9507 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
9508 (lex_one_token, yyerror): Update.
9509 * ada-lex.l (YY_INPUT): Update.
9510 (rewind_to_char): Update.
9511 * ada-exp.y (yyerror): Update.
9512
9513 2019-04-04 Tom Tromey <tom@tromey.com>
9514
9515 * rust-exp.y (rustyylex, rust_lex_tests): Update.
9516 * parser-defs.h (struct parser_state) <parser_state>: Add new
9517 parameter.
9518 <comma_terminates>: New member.
9519 (comma_terminates): Don't declare global.
9520 * parse.c (comma_terminates): Remove global.
9521 (parse_exp_in_context): Update.
9522 * p-exp.y (yylex): Update.
9523 * m2-exp.y (yylex): Update.
9524 * go-exp.y (lex_one_token): Update.
9525 * f-exp.y (yylex): Update.
9526 * d-exp.y (lex_one_token): Update.
9527 * c-exp.y (lex_one_token): Update.
9528 * ada-lex.l: Update.
9529
9530 2019-04-04 Tom Tromey <tom@tromey.com>
9531
9532 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
9533 (rustyylex, rust_lex_test_init, rust_lex_test_one)
9534 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
9535 * parser-defs.h (paren_depth): Don't declare.
9536 * parse.c (paren_depth): Remove global.
9537 (parse_exp_in_context): Update.
9538 * p-exp.y (paren_depth): New global.
9539 (pascal_parse): Initialize it.
9540 * m2-exp.y (paren_depth): New global.
9541 (m2_parse): Initialize it.
9542 * go-exp.y (paren_depth): New global.
9543 (go_parse): Initialize it.
9544 * f-exp.y (paren_depth): New global.
9545 (f_parse): Initialize it.
9546 * d-exp.y (paren_depth): New global.
9547 (d_parse): Initialize it.
9548 * c-exp.y (paren_depth): New global.
9549 (c_parse): Initialize it.
9550 * ada-lex.l (paren_depth): New global.
9551 (lexer_init): Initialize it.
9552
9553 2019-04-04 Tom Tromey <tom@tromey.com>
9554
9555 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
9556 (rust_parser::convert_ast_to_type)
9557 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9558 * parser-defs.h (struct parser_state) <parser_state>: Add
9559 parameters. Initialize new members.
9560 <expression_context_block, expression_context_pc>: New members.
9561 * parse.c (expression_context_block, expression_context_pc):
9562 Remove globals.
9563 (parse_exp_in_context): Update.
9564 * p-exp.y: Update all rules.
9565 (yylex): Update.
9566 * m2-exp.y: Update all rules.
9567 (yylex): Update.
9568 * go-exp.y (yylex): Update.
9569 * f-exp.y (yylex): Update.
9570 * d-exp.y: Update all rules.
9571 (yylex): Update.
9572 * c-exp.y: Update all rules.
9573 (lex_one_token, classify_name, yylex, c_parse): Update.
9574 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
9575
9576 2019-04-04 Tom Tromey <tom@tromey.com>
9577
9578 * gdbarch.h, gdbarch.c: Rebuild.
9579 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
9580 * stap-probe.h:
9581 (struct stap_parse_info): Replace "parser_state" with
9582 "expr_builder".
9583 * parser-defs.h (struct expr_builder): Rename from "parser_state".
9584 (parser_state): New class.
9585 * parse.c (expr_builder): Rename.
9586 (expr_builder::release): Rename.
9587 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
9588 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
9589 (write_exp_elt_longcst, write_exp_elt_floatcst)
9590 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
9591 (write_exp_string_vector, write_exp_bitstring)
9592 (write_exp_msymbol, mark_struct_expression)
9593 (write_dollar_variable)
9594 (insert_type_address_space, increase_expout_size): Replace
9595 "parser_state" with "expr_builder".
9596 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
9597 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
9598 "parser_state" with "expr_builder".
9599
9600 2019-04-04 Tom Tromey <tom@tromey.com>
9601
9602 * rust-exp.y: Replace "parse_language" with method call.
9603 * p-exp.y:
9604 (yylex): Replace "parse_language" with method call.
9605 * m2-exp.y:
9606 (yylex): Replace "parse_language" with method call.
9607 * go-exp.y (classify_name): Replace "parse_language" with method
9608 call.
9609 * f-exp.y (yylex): Replace "parse_language" with method call.
9610 * d-exp.y (lex_one_token): Replace "parse_language" with method
9611 call.
9612 * c-exp.y:
9613 (lex_one_token, classify_name, yylex): Replace "parse_language"
9614 with method call.
9615 * ada-exp.y (find_primitive_type, type_char)
9616 (type_system_address): Replace "parse_language" with method call.
9617
9618 2019-04-04 Tom Tromey <tom@tromey.com>
9619
9620 * rust-exp.y: Replace "parse_gdbarch" with method call.
9621 * parse.c (write_dollar_variable, insert_type_address_space):
9622 Replace "parse_gdbarch" with method call.
9623 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
9624 call.
9625 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
9626 call.
9627 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
9628 "parse_gdbarch" with method call.
9629 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
9630 with method call.
9631 * f-exp.y (parse_type, parse_f_type, yylex): Replace
9632 "parse_gdbarch" with method call.
9633 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
9634 "parse_gdbarch" with method call.
9635 * c-exp.y (parse_type, parse_number, classify_name): Replace
9636 "parse_gdbarch" with method call.
9637 * ada-lex.l: Replace "parse_gdbarch" with method call.
9638 * ada-exp.y (parse_type, find_primitive_type, type_char)
9639 (type_system_address): Replace "parse_gdbarch" with method call.
9640
9641 2019-04-04 Tom Tromey <tom@tromey.com>
9642
9643 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
9644 * stap-probe.c (stap_parse_argument): Update.
9645 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
9646 initial_size parameter.
9647 * rust-exp.y (rust_lex_tests): Update.
9648 * parse.c (parser_state): Update.
9649 (parse_exp_in_context): Update.
9650 * parser-defs.h (struct parser_state) <parser_state>: Remove
9651 "initial_size" parameter.
9652
9653 2019-04-04 Tom Tromey <tom@tromey.com>
9654
9655 * parser-defs.h (increase_expout_size): Don't declare.
9656 * parse.c (increase_expout_size): Now static.
9657
9658 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
9659
9660 * gnu-nat.c (gnu_nat_target::wait): Fix
9661 target_waitstatus_to_string call.
9662
9663 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9664
9665 * eval.c (evaluate_subexp_standard): Handle internal functions
9666 during Fortran function call handling.
9667
9668 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9669
9670 * NEWS: Mention new internal functions.
9671 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
9672 (read_base_type): Use dwarf2_init_complex_target_type.
9673 * value.c (creal_internal_fn): New function.
9674 (cimag_internal_fn): New function.
9675 (_initialize_values): Register new internal functions.
9676
9677 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9678
9679 * infrun.c (stop_all_threads): If debug_infrun, always
9680 trace the wait status after wait_one, using
9681 target_waitstatus_to_string and target_pid_to_str.
9682 (handle_inferior_event): Replace various trace of
9683 wait status kind by a single trace.
9684 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
9685 wait status kind image by target_waitstatus_to_string.
9686 * target/waitstatus.c (target_waitstatus_to_string): Fix
9687 obsolete comment.
9688
9689 2019-04-01 Tom Tromey <tromey@adacore.com>
9690
9691 PR symtab/23331:
9692 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
9693
9694 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
9695 Pedro Alves <palves@redhat.com>
9696
9697 * top.c (quit_force): Call 'finalize_values'.
9698 * value.c (finalize_values): New function.
9699 * value.h (finalize_values): Declare.
9700
9701 2019-03-30 Eli Zaretskii <eliz@gnu.org>
9702
9703 * NEWS: Announce $_gdb_major and $_gdb_minor.
9704
9705 * top.c (init_gdb_version_vars): New function.
9706 (gdb_init): Call init_gdb_version_vars.
9707
9708 2019-03-29 Tom Tromey <tromey@adacore.com>
9709
9710 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
9711 help text. Remove dead code.
9712
9713 2019-03-29 Keith Seitz <keiths@redhat.com>
9714
9715 From Siddhesh Poyarekar:
9716 * f-lang.h (f77_get_upperbound): Return LONGEST.
9717 (f77_get_lowerbound): Likewise.
9718 * f-typeprint.c (f_type_print_varspec_suffix): Expand
9719 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
9720 print them.
9721 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
9722 plongest to format print it.
9723 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
9724 (f77_get_upperbound): Likewise.
9725 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
9726 LOWER_BOUND to LONGEST.
9727 (f77_create_arrayprint_offset_tbl): Likewise.
9728
9729 2019-03-29 Keith Seitz <keiths@redhat.com>
9730
9731 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
9732 %s/pulongest for TYPE_LENGTH instead of %d in format
9733 strings.
9734 * ada-typerint.c (ada_print_type): Likewise.
9735 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
9736 * compile/compile-c-support.c (generate_register_struct): Likewise.
9737 * gdbtypes.c (recursive_dump_type): Likewise.
9738 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
9739 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
9740 instead of %d in format strings.
9741 * riscv-tdep.c (riscv_type_alignment): Cast second argument
9742 to std::min to ULONGEST.
9743 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
9744 instead of %d in format strings.
9745 * tracepoint.c (info_scope_command): Likewise.
9746 * typeprint.c (print_offset_data::update)
9747 (print_offset_data::finish): Likewise.
9748 * xtensa-tdep.c (xtensa_store_return_value)
9749 (xtensa_push_dummy_call): Likewise.
9750
9751 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
9752
9753 * windows-nat.c (display_selector): Fixed format specifications
9754 for 64-bit Cygwin.
9755
9756 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9757
9758 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
9759
9760 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
9761
9762 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
9763 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
9764 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
9765 (nios2_linux_init_abi): Install it.
9766
9767 2019-03-28 Alan Hayward <alan.hayward@arm.com>
9768
9769 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
9770
9771 2019-03-28 Alan Hayward <alan.hayward@arm.com>
9772
9773 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
9774
9775 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9776 Tom Tromey <tromey@adacore.com>
9777
9778 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
9779
9780 2019-03-26 Joel Brobecker <brobecker@adacore.com>
9781
9782 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
9783 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
9784 method to compute the bounds of range types. Also print "[evaluated]"
9785 if the bounds' values come from a dynamic evaluation.
9786
9787 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
9788
9789 * cp-valprint.c (cp_print_value_fields): Don't print trailing
9790 whitespace when pretty printing is on.
9791
9792 2019-03-26 Alan Hayward <alan.hayward@arm.com>
9793
9794 * ppc-linux-nat.c: Add include.
9795
9796 2019-03-26 Alan Hayward <alan.hayward@arm.com>
9797
9798 * NEWS: Mention AArch64 Pointer Authentication.
9799
9800 2019-03-26 Alan Hayward <alan.hayward@arm.com>
9801
9802 * arm-linux-nat.c: Add include.
9803
9804 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
9805
9806 * source-cache.c (source_cache::get_source_lines): Re-read
9807 fullname after calling open_source_file.
9808
9809 2019-03-25 John Baldwin <jhb@FreeBSD.org>
9810
9811 * NEWS: Mention TLS support for FreeBSD.
9812
9813 2019-03-25 Tom Tromey <tromey@adacore.com>
9814
9815 * minsyms.c (BUNCH_SIZE): Update comment.
9816 (~minimal_symbol_reader): Remove old comment.
9817 (compact_minimal_symbols): Update comment.
9818 (minimal_symbol_reader::install): Remove old comment. Update
9819 other comments.
9820
9821 2019-03-25 Alan Hayward <alan.hayward@arm.com>
9822
9823 * s390-linux-nat.c: Add include.
9824
9825 2019-03-25 Alan Hayward <alan.hayward@arm.com>
9826
9827 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
9828 Call linux_get_hwcap.
9829 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
9830 Likewise.
9831 (aarch64_linux_get_hwcap): Remove function.
9832 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
9833 declaration.
9834 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
9835 linux_get_hwcap.
9836 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
9837 * linux-tdep.c (linux_get_hwcap): Add function.
9838 (linux_get_hwcap2): Likewise.
9839 * linux-tdep.h (linux_get_hwcap): Add declaration.
9840 (linux_get_hwcap2): Likewise.
9841 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
9842 (ppc_linux_get_hwcap2): Likewise.
9843 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
9844 linux_get_hwcap.
9845 (ppc_linux_nat_target::insert_watchpoint): Likewise.
9846 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
9847 (ppc_linux_nat_target::read_description): Likewise.
9848 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
9849 * s390-linux-nat.c: Likewise.
9850 * s390-linux-tdep.c (s390_core_read_description): Likewise.
9851
9852 2019-03-24 Tom Tromey <tom@tromey.com>
9853
9854 * ada-lang.c (standard_lookup): Simplify initialization.
9855 (ada_lookup_symbol_nonlocal): Simplify return.
9856 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
9857 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
9858 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
9859 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
9860 initialization.
9861 * solib.c (solib_global_lookup): Simplify.
9862 * symtab.c (null_block_symbol): Remove.
9863 (symbol_cache_lookup): Simplify returns.
9864 (lookup_language_this): Simplify returns.
9865 (lookup_symbol_aux): Simplify return.
9866 (lookup_local_symbol): Simplify returns.
9867 (lookup_global_symbol_from_objfile): Simplify return.
9868 (lookup_symbol_in_objfile_symtabs)
9869 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
9870 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
9871 (lookup_static_symbol, lookup_global_symbol): Simplify return.
9872 * cp-namespace.c (cp_lookup_bare_symbol)
9873 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
9874 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
9875 (cp_lookup_nested_symbol): Don't use null_block_symbol.
9876 (cp_lookup_symbol_via_imports): Simplify initialization.
9877 (find_symbol_in_baseclass): Likewise.
9878 * symtab.h (null_block_symbol): Remove.
9879 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
9880 (d_lookup_nested_symbol, d_lookup_symbol_imports)
9881 (d_lookup_symbol_module): Likewise.
9882 (find_symbol_in_baseclass): Simplify initialization.
9883
9884 2019-03-24 Tom Tromey <tom@tromey.com>
9885
9886 * expression.h: Don't include symtab.h.
9887 (struct block): Forward declare.
9888
9889 2019-03-24 Tom Tromey <tom@tromey.com>
9890
9891 * c-exp.y (typebase): Remove casts.
9892 * gdbtypes.c (lookup_unsigned_typename, )
9893 (lookup_signed_typename): Remove cast.
9894 * eval.c (parse_to_comma_and_eval): Remove cast.
9895 * parse.c (write_dollar_variable): Remove cast.
9896 * block.h (struct block) <superblock>: Now const.
9897 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
9898 * psymtab.c (psym_map_matching_symbols): Make "block" const.
9899 (map_block): Make "block" const.
9900 * symfile.h (struct quick_symbol_functions)
9901 <map_matching_symbols>: Constify block argument to "callback".
9902 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
9903 const.
9904 (find_pc_sect_compunit_symtab): Make "b" const.
9905 (find_symbol_at_address): Likewise.
9906 (search_symbols): Likewise.
9907 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
9908 (dw2_debug_names_lookup_symbol): Likewise.
9909 (dw2_map_matching_symbols): Update.
9910 * p-valprint.c (pascal_val_print): Remove "block".
9911 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
9912 (aux_add_nonlocal_symbols): Make "block" const.
9913 (resolve_subexp): Remove cast.
9914 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
9915 const.
9916 (iterate_over_file_blocks): Likewise.
9917 * f-exp.y (%union) <bval>: Remove.
9918 * coffread.c (patch_opaque_types): Make "b" const.
9919 * spu-tdep.c (spu_catch_start): Make "block" const.
9920 * c-valprint.c (print_unpacked_pointer): Remove "block".
9921 * symmisc.c (dump_symtab_1): Make "b" const.
9922 (block_depth): Make "block" const.
9923 * d-exp.y (%union) <bval>: Remove.
9924 * cp-support.h (cp_lookup_rtti_type): Update.
9925 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
9926 * psymtab.c (psym_lookup_symbol): Make "block" const.
9927 (maintenance_check_psymtabs): Make "b" const.
9928 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
9929 (enumerate_locals, enumerate_args): Update.
9930 * python/py-symtab.c (stpy_global_block): Make "block" const.
9931 (stpy_static_block): Likewise.
9932 * inline-frame.c (block_starting_point_at): Make "new_block"
9933 const.
9934 * block.c (find_block_in_blockvector): Make return type const.
9935 (blockvector_for_pc_sect): Make "b" const.
9936 (find_block_in_blockvector): Make "b" const.
9937
9938 2019-03-23 Tom Tromey <tom@tromey.com>
9939
9940 * varobj.c (varobj_create): Update.
9941 * symfile.c (clear_symtab_users): Don't reset innermost_block.
9942 * printcmd.c (display_command, do_one_display): Don't reset
9943 innermost_block.
9944 * parser-defs.h (enum innermost_block_tracker_type): Move to
9945 expression.h.
9946 (innermost_block): Update comment.
9947 * parse.c (parse_exp_1): Add tracker_types parameter.
9948 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
9949 tracker_types parameter. Reset innermost_block.
9950 (parse_exp_in_context): Remove.
9951 (parse_expression_for_completion): Update.
9952 * objfiles.c (~objfile): Don't reset expression_context_block or
9953 innermost_block.
9954 * expression.h (enum innermost_block_tracker_type): Move from
9955 parser-defs.h.
9956 (parse_exp_1): Add tracker_types parameter.
9957 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
9958 reset innermost_block.
9959
9960 2019-03-23 Tom Tromey <tom@tromey.com>
9961
9962 * objfiles.h: Include bcache.h.
9963
9964 2019-03-23 Tom Tromey <tom@tromey.com>
9965
9966 * linespec.c (get_current_search_block): Use
9967 scoped_restore_current_language.
9968 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
9969
9970 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9971 Jiong Wang <jiong.wang@arm.com>
9972
9973 * aarch64-linux-tdep.c
9974 (aarch64_linux_iterate_over_regset_sections): Check for pauth
9975 section.
9976 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
9977
9978 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9979 Jiong Wang <jiong.wang@arm.com>
9980
9981 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
9982 instructions.
9983 (aarch64_analyze_prologue_test): Add PACIASP test.
9984 (aarch64_prologue_prev_register): Unmask PC value.
9985
9986 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9987 Jiong Wang <jiong.wang@arm.com>
9988
9989 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
9990 (aarch64_dwarf2_prev_register): Unmask PC value.
9991 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
9992 (aarch64_execute_dwarf_cfa_vendor_op): Check for
9993 DW_CFA_AARCH64_negate_ra_state.
9994 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
9995
9996 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9997 Jiong Wang <jiong.wang@arm.com>
9998
9999 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
10000 registers.
10001 (aarch64_pseudo_register_name): Likewise.
10002 (aarch64_pseudo_register_type): Likewise.
10003 (aarch64_pseudo_register_reggroup_p): Likewise.
10004 (aarch64_gdbarch_init): Add pauth registers.
10005 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
10006 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
10007 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
10008 (struct gdbarch_tdep): Add regnum for ra_state.
10009
10010 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10011 Jiong Wang <jiong.wang@arm.com>
10012
10013 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
10014
10015 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10016 Jiong Wang <jiong.wang@arm.com>
10017
10018 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
10019 function.
10020 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
10021 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
10022 (aarch64_gdbarch_init): Add puth registers.
10023 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
10024 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
10025 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
10026
10027 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10028 Jiong Wang <jiong.wang@arm.com>
10029
10030 * aarch64-linux-nat.c
10031 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
10032 * aarch64-linux-tdep.c
10033 (aarch64_linux_core_read_description): Likewise.
10034 (aarch64_linux_get_hwcap): New function.
10035 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
10036 (aarch64_linux_get_hwcap): New declaration.
10037
10038 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10039 Jiong Wang <jiong.wang@arm.com>
10040
10041 * aarch64-linux-nat.c
10042 (aarch64_linux_nat_target::read_description): Add pauth param.
10043 * aarch64-linux-tdep.c
10044 (aarch64_linux_core_read_description): Likewise.
10045 * aarch64-tdep.c (struct target_desc): Add in pauth.
10046 (aarch64_read_description): Add pauth param.
10047 (aarch64_gdbarch_init): Likewise.
10048 * aarch64-tdep.h (aarch64_read_description): Likewise.
10049 * arch/aarch64.c (aarch64_create_target_description): Likewise.
10050 * arch/aarch64.h (aarch64_create_target_description): Likewise.
10051 * features/Makefile: Add new files.
10052 * features/aarch64-pauth.c: New file.
10053 * features/aarch64-pauth.xml: New file.
10054
10055 2019-03-20 Tom Tromey <tromey@adacore.com>
10056
10057 * infrun.c (handle_inferior_event): Rename from
10058 handle_inferior_event_1. Create a scoped_value_mark.
10059 (handle_inferior_event): Remove.
10060
10061 2019-03-19 Tom Tromey <tromey@adacore.com>
10062
10063 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
10064 * infrun.h (print_stop_event): Add "displays" parameter.
10065 * infrun.c (print_stop_event): Add "displays" parameter.
10066
10067 2019-03-19 Pedro Alves <palves@redhat.com>
10068
10069 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
10070 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
10071 to -1. Fix TABs vs spaces.
10072 (tui_ui_out::tui_ui_out): Don't initialize fields here.
10073 * tui/tui-out.h (tui_ui_out) Add intro comments.
10074 <m_line, m_start_of_line>: In-class initialize, and add describing
10075 comment.
10076
10077 2019-03-18 Alan Hayward <alan.hayward@arm.com>
10078
10079 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
10080 variable names.
10081 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
10082
10083 2019-03-18 Pedro Alves <palves@redhat.com>
10084 Eli Zaretskii <eliz@gnu.org>
10085
10086 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
10087 m_line and m_start_of_line.
10088
10089 2019-03-18 Eli Zaretskii <eliz@gnu.org>
10090
10091 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
10092 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
10093 it returns a newline. This fixes a regression in TU mode, whereby
10094 the next line is output on the same screen line as the user input.
10095
10096 2019-03-18 Tom Tromey <tromey@adacore.com>
10097
10098 * minsyms.c (minimal_symbol_reader::install): Remove call to
10099 obstack_blank.
10100
10101 2019-03-18 Pedro Alves <palves@redhat.com>
10102
10103 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
10104 New globals.
10105 (apply_style): New, factored out from ...
10106 (apply_ansi_escape): ... this. Handle reverse video mode.
10107 (tui_set_reverse_mode): New function.
10108 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
10109 * tui/tui-winsource.c (tui_show_source_line): Use
10110 tui_set_reverse_mode instead of setting A_STANDOUT.
10111 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
10112 New setter methods.
10113
10114 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
10115
10116 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
10117 Handle tabs.
10118
10119 2019-03-18 Tom Tromey <tromey@adacore.com>
10120
10121 * ada-lang.c (empty_array): Add "high" parameter.
10122 (ada_evaluate_subexp): Update.
10123
10124 2019-03-17 Sergei Trofimovich <siarheit@google.com>
10125
10126 * unittests/string_view-selftests.c: Define
10127 _initialize_string_view_selftests unconditionally.
10128
10129 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10130
10131 PR gdb/24350
10132 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
10133
10134 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10135
10136 PR gdb/24351
10137 * windows-nat.c (display_selector): Fix format specifiers.
10138
10139 2019-03-17 Eli Zaretskii <eliz@gnu.org>
10140
10141 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
10142 tui_refill_source_window instead of tui_refresh_win, to update the
10143 current execution line. This fixes redisplay of the current line
10144 when stepping through the code with "next" or "step".
10145
10146 2019-03-16 Eli Zaretskii <eliz@gnu.org>
10147
10148 * source-cache.c (source_cache::get_source_lines): Call
10149 find_source_lines to initialize s->nlines. This fixes vertical
10150 scrolling of TUI source window when the DOWN arrow is pressed.
10151
10152 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10153
10154 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
10155 linux-thread-db.c (_initialize_thread_db): Likewise.
10156
10157 2019-03-16 Eli Zaretskii <eliz@gnu.org>
10158
10159 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
10160 wclrtoeol in tui_show_source_line". This reverts changes made in
10161 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
10162
10163 2019-03-15 Tom Tromey <tom@tromey.com>
10164
10165 * symtab.h (struct minimal_symbol): Derive from
10166 general_symbol_info.
10167 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
10168 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10169 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10170 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10171 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
10172 (MSYMBOL_SEARCH_NAME): Update.
10173 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
10174 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
10175 * minsyms.c (minimal_symbol_reader::record_full): Update.
10176
10177 2019-03-15 Tom Tromey <tom@tromey.com>
10178
10179 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
10180
10181 2019-03-15 Tom Tromey <tom@tromey.com>
10182
10183 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
10184 unique_xmalloc_ptr.
10185 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
10186 Update.
10187 * minsyms.c (lookup_minimal_symbol_by_pc_section)
10188 (build_minimal_symbol_hash_tables)
10189 (minimal_symbol_reader::install): Update.
10190
10191 2019-03-15 Tom Tromey <tom@tromey.com>
10192
10193 * symtab.c (create_demangled_names_hash): Update.
10194 (symbol_set_names): Update.
10195 * objfiles.h (struct objfile_per_bfd_storage)
10196 <demangled_names_hash>: Now an htab_up.
10197 * objfiles.c (objfile_per_bfd_storage): Simplify.
10198
10199 2019-03-15 Tom Tromey <tom@tromey.com>
10200
10201 * objfiles.h (struct objfile_per_bfd_storage): Declare
10202 destructor.
10203 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
10204 New.
10205 (get_objfile_bfd_data): Use new. Don't initialize
10206 language_of_main.
10207 (free_objfile_per_bfd_storage): Remove.
10208 (objfile_bfd_data_free, objfile::~objfile): Use delete.
10209
10210 2019-03-15 Tom Tromey <tom@tromey.com>
10211
10212 * symfile.c (reread_symbols): Update.
10213 * objfiles.c (objfile::objfile): Update.
10214 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
10215 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
10216 comment.
10217 (minimal_symbol_reader::install): Update.
10218 (terminate_minimal_symbol_table): Remove.
10219 * jit.c (jit_object_close_impl): Update.
10220
10221 2019-03-15 Tom Tromey <tom@tromey.com>
10222
10223 * minsyms.c (minimal_symbol_reader::record_full): Remove some
10224 initializations.
10225
10226 2019-03-15 Tom Tromey <tom@tromey.com>
10227
10228 * objfiles.h (struct objfile_per_bfd_storage)
10229 <demangled_hash_languages>: Now a bitset.
10230 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
10231 (lookup_minimal_symbol): Update.
10232
10233 2019-03-15 Tom Tromey <tom@tromey.com>
10234
10235 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
10236 Don't return the symbol.
10237 * coffread.c (record_minimal_symbol): Use record_full.
10238
10239 2019-03-14 Eli Zaretskii <eliz@gnu.org>
10240
10241 The MS-Windows port of ncurses fails to switch to a color pair if
10242 one or both of the colors are the implicit default colors. This
10243 change records the default colors when TUI is initialized, and
10244 then specifies them explicitly when a color pair uses the default
10245 colors. This allows color styling in TUI mode on MS-Windows.
10246
10247 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
10248 ncurses_norm_attr.
10249 (tui_initialize_io) [__MINGW32__]: Record the default terminal
10250 colors in ncurses_norm_attr.
10251 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
10252 "none", replace it with the default color recorded in
10253 ncurses_norm_attr.
10254
10255 2019-03-14 Tom Tromey <tromey@adacore.com>
10256
10257 * source-cache.h (class source_cache) <get_source_lines>: Return
10258 std::string.
10259 * source-cache.c (source_cache::extract_lines): Handle case where
10260 first_pos==npos. Return std::string.
10261 (source_cache::get_source_lines): Update.
10262
10263 2019-03-14 Tom Tromey <tromey@adacore.com>
10264
10265 * NEWS: Add item for "style sources" commands.
10266 * source-cache.c (source_cache::get_source_lines): Check
10267 source_styling.
10268 * cli/cli-style.c (source_styling): New global.
10269 (_initialize_cli_style): Add "style sources" commands.
10270 (show_style_sources): New function.
10271 * cli/cli-style.h (source_styling): Declare.
10272
10273 2019-03-14 Pedro Alves <palves@redhat.com>
10274 Tom Tromey <tromey@adacore.com>
10275
10276 * tui/tui-winsource.h (tui_refill_source_window): Declare.
10277 * tui/tui-winsource.c (tui_refill_source_window): New function,
10278 from...
10279 (tui_horizontal_source_scroll): ... here. Move some logic.
10280 * cli/cli-style.c (set_style_enabled): Notify new observable.
10281 * tui/tui-hooks.c (tui_redisplay_source): New function.
10282 (tui_attach_detach_observers): Attach or detach
10283 tui_redisplay_source.
10284 * observable.h (source_styling_changed): New observable.
10285 * observable.c: Define source_styling_changed observable.
10286
10287 2019-03-13 Tom Tromey <tromey@adacore.com>
10288
10289 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
10290 (i386_gnu_nat_target::store_registers): Update.
10291 * target-debug.h (target_debug_print_std_string): New macro.
10292 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10293 * windows-tdep.c (display_one_tib): Update.
10294 * tui/tui-stack.c (tui_make_status_line): Update.
10295 * top.c (print_inferior_quit_action): Update.
10296 * thread.c (thr_try_catch_cmd): Update.
10297 (add_thread_with_info): Update.
10298 (thread_target_id_str): Update.
10299 (thr_try_catch_cmd): Update.
10300 (thread_command): Update.
10301 (thread_find_command): Update.
10302 * record-btrace.c (record_btrace_target::info_record)
10303 (record_btrace_resume_thread, record_btrace_target::resume)
10304 (record_btrace_cancel_resume, record_btrace_step_thread)
10305 (record_btrace_target::wait, record_btrace_target::wait)
10306 (record_btrace_target::wait, record_btrace_target::stop): Update.
10307 * progspace.c (print_program_space): Update.
10308 * process-stratum-target.c
10309 (process_stratum_target::thread_address_space): Update.
10310 * linux-fork.c (linux_fork_mourn_inferior)
10311 (detach_checkpoint_command, info_checkpoints_command)
10312 (linux_fork_context): Update.
10313 (linux_fork_detach): Update.
10314 (class scoped_switch_fork_info): Update.
10315 (delete_checkpoint_command): Update.
10316 * infrun.c (follow_fork_inferior): Update.
10317 (follow_fork_inferior): Update.
10318 (proceed_after_vfork_done): Update.
10319 (handle_vfork_child_exec_or_exit): Update.
10320 (follow_exec): Update.
10321 (displaced_step_prepare_throw): Update.
10322 (displaced_step_restore): Update.
10323 (start_step_over): Update.
10324 (resume_1): Update.
10325 (clear_proceed_status_thread): Update.
10326 (proceed): Update.
10327 (print_target_wait_results): Update.
10328 (do_target_wait): Update.
10329 (context_switch): Update.
10330 (stop_all_threads): Update.
10331 (restart_threads): Update.
10332 (finish_step_over): Update.
10333 (handle_signal_stop): Update.
10334 (switch_back_to_stepped_thread): Update.
10335 (keep_going_pass_signal): Update.
10336 (print_exited_reason): Update.
10337 (normal_stop): Update.
10338 * inferior.c (inferior_pid_to_str): Change return type.
10339 (print_selected_inferior): Update.
10340 (add_inferior): Update.
10341 (detach_inferior): Update.
10342 * dummy-frame.c (fprint_dummy_frames): Update.
10343 * dcache.c (dcache_info_1): Update.
10344 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
10345 (btrace_fetch, btrace_clear): Update.
10346 * linux-tdep.c (linux_core_pid_to_str): Change return type.
10347 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
10348 type.
10349 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
10350 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
10351 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
10352 * gdbarch.c, gdbarch.h: Rebuild.
10353 * gdbarch.sh (core_pid_to_str): Change return type.
10354 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
10355 return type.
10356 (windows_nat_target::pid_to_str): Change return type.
10357 (windows_delete_thread): Update.
10358 (windows_nat_target::attach): Update.
10359 (windows_nat_target::files_info): Update.
10360 * target-delegates.c: Rebuild.
10361 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
10362 return type.
10363 (sol_thread_target::pid_to_str): Change return type.
10364 * remote.c (class remote_target) <pid_to_str>: Change return
10365 type.
10366 (remote_target::pid_to_str): Change return type.
10367 (extended_remote_target::attach, remote_target::remote_stop_ns)
10368 (remote_target::remote_notif_remove_queued_reply)
10369 (remote_target::push_stop_reply, remote_target::disable_btrace):
10370 Update.
10371 (extended_remote_target::attach): Update.
10372 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
10373 type.
10374 (gdbsim_target::pid_to_str): Change return type.
10375 * ravenscar-thread.c (struct ravenscar_thread_target)
10376 <pid_to_str>: Change return type.
10377 (ravenscar_thread_target::pid_to_str): Change return type.
10378 * procfs.c (class procfs_target) <pid_to_str>: Change return
10379 type.
10380 (procfs_target::pid_to_str): Change return type.
10381 (procfs_target::attach): Update.
10382 (procfs_target::detach): Update.
10383 (procfs_target::fetch_registers): Update.
10384 (procfs_target::store_registers): Update.
10385 (procfs_target::wait): Update.
10386 (procfs_target::files_info): Update.
10387 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
10388 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
10389 return type.
10390 (nto_procfs_target::pid_to_str): Change return type.
10391 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
10392 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
10393 return type.
10394 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
10395 (exit_lwp): Update.
10396 (attach_proc_task_lwp_callback, get_detach_signal)
10397 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
10398 (linux_nat_target::resume, wait_lwp, stop_callback)
10399 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
10400 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
10401 (linux_nat_wait_1, resume_stopped_resumed_lwps)
10402 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
10403 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
10404 type.
10405 (inf_ptrace_target::attach): Update.
10406 (inf_ptrace_target::files_info): Update.
10407 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
10408 type.
10409 (go32_nat_target::pid_to_str): Change return type.
10410 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
10411 (gnu_nat_target::wait): Update.
10412 (gnu_nat_target::wait): Update.
10413 (gnu_nat_target::resume): Update.
10414 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
10415 (fbsd_nat_target::wait): Update.
10416 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
10417 type.
10418 (darwin_nat_target::attach): Update.
10419 * corelow.c (class core_target) <pid_to_str>: Change return type.
10420 (core_target::pid_to_str): Change return type.
10421 * target.c (normal_pid_to_str): Change return type.
10422 (default_pid_to_str): Likewise.
10423 (target_pid_to_str): Change return type.
10424 (target_translate_tls_address): Update.
10425 (target_announce_detach): Update.
10426 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
10427 return type.
10428 (bsd_uthread_target::pid_to_str): Change return type.
10429 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
10430 type.
10431 (bsd_kvm_target::pid_to_str): Change return type.
10432 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
10433 return type.
10434 (aix_thread_target::pid_to_str): Change return type.
10435 * target.h (struct target_ops) <pid_to_str>: Change return type.
10436 (target_pid_to_str, normal_pid_to_str): Likewise.
10437 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
10438 type.
10439 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
10440 type.
10441 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
10442 return type.
10443 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
10444 type.
10445 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
10446 type.
10447 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
10448 return type.
10449
10450 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
10451
10452 * NEWS: Mention that the new default MI version is 3. Mention
10453 changes to the output of commands and events that deal with
10454 multi-location breakpoints.
10455 * breakpoint.c: Include "mi/mi-out.h".
10456 (print_one_breakpoint): Change output syntax if using MI version
10457 >= 3.
10458 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
10459 New.
10460 (mi_multi_location_breakpoint_output_fixed): New.
10461 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
10462 (mi_cmd_fix_multi_location_breakpoint_output): New.
10463 (mi_multi_location_breakpoint_output_fixed): New.
10464 * mi/mi-cmds.c (mi_cmds): Register command
10465 -fix-multi-location-breakpoint-output.
10466 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
10467 interpreter "mi".
10468
10469 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10470
10471 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
10472 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
10473 instantiate mi_ui_out based on interpreter name.
10474 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
10475 * mi/mi-main.c (mi_load_progress): Likewise.
10476
10477 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10478
10479 * NEWS: Combine separate "New targets" sections for 8.3.
10480
10481 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10482
10483 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
10484 (ppcfbsd_init_abi): Install gdbarch
10485 "fetch_tls_load_module_address" and "get_thread_local_address"
10486 methods.
10487
10488 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10489
10490 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
10491 (riscv_fbsd_init_abi): Install gdbarch
10492 "fetch_tls_load_module_address" and "get_thread_local_address"
10493 methods.
10494
10495 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10496
10497 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
10498 (i386fbsd_init_abi): Install gdbarch
10499 "fetch_tls_load_module_address" and "get_thread_local_address"
10500 methods.
10501
10502 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10503
10504 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
10505 (amd64fbsd_init_abi): Install gdbarch
10506 "fetch_tls_load_module_address" and "get_thread_local_address"
10507 methods.
10508
10509 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10510
10511 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
10512 (struct fbsd_pspace_data): New type.
10513 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
10514 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
10515 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
10516 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
10517 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
10518
10519 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10520
10521 * gdbtypes.c (lookup_struct_elt): New function.
10522 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
10523 * gdbtypes.h (struct struct_elt): New type.
10524 (lookup_struct_elt): New prototype.
10525
10526 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10527
10528 * gdbtypes.c (lookup_struct_elt_type): Update comment and
10529 remove disabled code block.
10530
10531 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10532
10533 * gdbarch.sh (get_thread_local_address): New method.
10534 * gdbarch.h, gdbarch.c: Regenerate.
10535 * target.c (target_translate_tls_address): Use
10536 gdbarch_get_thread_local_address if present instead of
10537 target::get_thread_local_address.
10538
10539 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10540
10541 * target.h (target::get_thread_local_address): Update comment.
10542
10543 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10544
10545 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
10546 objfile->separate_debug_objfile_backlink if not NULL.
10547
10548 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10549
10550 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10551 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
10552 (amd64bsd_store_inferior_registers): Likewise.
10553 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10554 Enable segment base registers.
10555 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
10556 PT_GETFSBASE and PT_GETGSBASE.
10557 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
10558 PT_SETGSBASE.
10559 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
10560 segment base registers.
10561 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10562
10563 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10564
10565 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10566 Update calls to i386_target_description to add 'segments'
10567 parameter.
10568 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
10569 add segment base registers.
10570 * arch/i386.c (i386_create_target_description): Add 'segments'
10571 parameter to enable segment base registers.
10572 * arch/i386.h (i386_create_target_description): Likewise.
10573 * features/i386/32bit-segments.xml: New file.
10574 * features/i386/32bit-segments.c: Generate.
10575 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
10576 call to i386_target_description to add 'segments' parameter.
10577 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10578 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
10579 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
10580 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
10581 if feature is present.
10582 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
10583 Add 'segments' parameter to call to i386_target_description.
10584 (i386_target_description): Add 'segments' parameter to enable
10585 segment base registers.
10586 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
10587 to call to i386_target_description.
10588 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
10589 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
10590 Define I386_NUM_REGS.
10591 (i386_target_description): Add 'segments' parameter to enable
10592 segment base registers.
10593
10594 2019-03-12 Eli Zaretskii <eliz@gnu.org>
10595
10596 PR/24325
10597 * source-cache.c: #undef open and close, to avoid unresolved
10598 externals during linking.
10599
10600 2019-03-12 Tom Tromey <tromey@adacore.com>
10601
10602 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
10603 const. Add initializers.
10604 (_initialize_remote): Don't initialize ptid globals.
10605
10606 2019-03-12 Pedro Alves <palves@redhat.com>
10607
10608 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
10609
10610 2019-03-12 Pedro Alves <palves@redhat.com>
10611
10612 * cp-name-parser.y (main): Remove unused 'len' variable.
10613
10614 2019-03-12 Tom Tromey <tromey@adacore.com>
10615
10616 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
10617 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
10618
10619 2019-03-12 Tom Tromey <tromey@adacore.com>
10620
10621 * linux-nat.c (iterate_over_lwps): Update.
10622 (stop_callback): Remove parameter.
10623 (stop_wait_callback, detach_callback, resume_set_callback)
10624 (select_singlestep_lwp_callback, set_ignore_sigint)
10625 (status_callback, resumed_callback, resume_clear_callback)
10626 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
10627 data parameter.
10628 (linux_nat_target::detach, linux_nat_target::resume)
10629 (linux_stop_and_wait_all_lwps, select_event_lwp)
10630 (linux_nat_filter_event, linux_nat_wait_1)
10631 (linux_nat_target::kill, linux_nat_target::stop)
10632 (linux_nat_target::stop): Update.
10633 (linux_nat_resume_callback): Change type.
10634 (resume_stopped_resumed_lwps, count_events_callback)
10635 (select_event_lwp_callback): Likewise.
10636 (linux_stop_lwp, linux_nat_stop_lwp): Update.
10637 * arm-linux-nat.c (struct update_registers_data): Remove.
10638 (update_registers_callback): Change type.
10639 (arm_linux_insert_hw_breakpoint1): Update.
10640 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
10641 parameter.
10642 (x86_linux_dr_set_addr): Update.
10643 (x86_linux_dr_set_control): Update.
10644 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
10645 (iterate_over_lwps): Use gdb::function_view.
10646 * nat/aarch64-linux-hw-point.c (struct
10647 aarch64_dr_update_callback_param): Remove.
10648 (debug_reg_change_callback): Change type.
10649 (aarch64_notify_debug_reg_change): Update.
10650 * s390-linux-nat.c (s390_refresh_per_info): Update.
10651
10652 2019-03-11 Tom Tromey <tromey@adacore.com>
10653
10654 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
10655 redundant assignment to "this_cu".
10656
10657 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10658
10659 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
10660
10661 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10662
10663 * gdbtypes.c (rank_one_type_parm_set): New function extracted
10664 from...
10665 (rank_one_type): ... this.
10666
10667 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10668
10669 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
10670 from...
10671 (rank_one_type): ... this.
10672
10673 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10674
10675 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
10676 from...
10677 (rank_one_type): ... this.
10678
10679 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10680
10681 * gdbtypes.c (rank_one_type_parm_float): New function extracted
10682 from...
10683 (rank_one_type): ... this.
10684
10685 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10686
10687 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
10688 from...
10689 (rank_one_type): ... this.
10690
10691 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10692
10693 * gdbtypes.c (rank_one_type_parm_range): New function extracted
10694 from...
10695 (rank_one_type): ... this.
10696
10697 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10698
10699 * gdbtypes.c (rank_one_type_parm_char): New function extracted
10700 from...
10701 (rank_one_type): ... this.
10702
10703 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10704
10705 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
10706 from...
10707 (rank_one_type): ... this.
10708
10709 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10710
10711 * gdbtypes.c (rank_one_type_parm_int): New function extracted
10712 from...
10713 (rank_one_type): ... this.
10714
10715 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10716
10717 * gdbtypes.c (rank_one_type_parm_func): New function extracted
10718 from...
10719 (rank_one_type): ... this.
10720
10721 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10722
10723 * gdbtypes.c (rank_one_type_parm_array): New function extracted
10724 from...
10725 (rank_one_type): ... this.
10726
10727 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10728
10729 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
10730 from...
10731 (rank_one_type): ... this.
10732
10733 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10734
10735 * inferior.c (initialize_inferiors): Ensure 'help set/show print
10736 inferior-events' shows the example events.
10737
10738 2019-03-08 Eli Zaretskii <eliz@gnu.org>
10739
10740 Support styling on native MS-Windows console
10741
10742 PR/24315
10743 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
10744 on MS-Windows if $TERM is not defined.
10745
10746 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
10747
10748 * posix-hdep.c (gdb_console_fputs):
10749 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
10750 functions.
10751 * ui-file.h (gdb_console_fputs): Add prototype.
10752
10753 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
10754 back to fputs only if the former returns zero.
10755
10756 2019-03-07 Tom Tromey <tom@tromey.com>
10757
10758 * symmisc.c (print_symbol_bcache_statistics): Update.
10759 (print_objfile_statistics): Update.
10760 * symfile.c (allocate_symtab): Update.
10761 * stabsread.c: Don't include bcache.h.
10762 * psymtab.h (struct psymbol_bcache): Don't declare.
10763 (class psymtab_storage) <psymbol_cache>: Now a bcache.
10764 (psymbol_bcache_init, psymbol_bcache_free)
10765 (psymbol_bcache_get_bcache): Don't declare.
10766 * psymtab.c (struct psymbol_bcache): Remove.
10767 (psymtab_storage::psymtab_storage): Update.
10768 (psymtab_storage::~psymtab_storage): Update.
10769 (psymbol_bcache_init, psymbol_bcache_free)
10770 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
10771 (add_psymbol_to_bcache): Update.
10772 (allocate_psymtab): Update.
10773 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10774 macro_cache>: No longer pointers.
10775 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
10776 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
10777 * macrotab.c (macro_bcache): Update.
10778 * macroexp.c: Don't include bcache.h.
10779 * gdbtypes.c (check_types_worklist): Update.
10780 (types_deeply_equal): Remove TRY/CATCH. Update.
10781 * elfread.c (elf_symtab_read): Update.
10782 * dwarf2read.c: Don't include bcache.h.
10783 * buildsym.c (buildsym_compunit::get_macro_table): Update.
10784 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
10785 (print_bcache_statistics, bcache_memory_used): Don't declare.
10786 (struct bcache): Move from bcache.c. Add constructor, destructor,
10787 methods. Rename all data members.
10788 * bcache.c (struct bcache): Move to bcache.h.
10789 (bcache::expand_hash_table): Rename from expand_hash_table.
10790 (bcache): Remove.
10791 (bcache::insert): Rename from bcache_full.
10792 (bcache::compare): Rename from bcache_compare.
10793 (bcache_xmalloc): Remove.
10794 (bcache::~bcache): Rename from bcache_xfree.
10795 (bcache::print_statistics): Rename from print_bcache_statistics.
10796 (bcache::memory_used): Rename from bcache_memory_used.
10797
10798 2019-03-07 Pedro Alves <palves@redhat.com>
10799
10800 * infrun.c (normal_stop): Also check for
10801 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
10802
10803 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10804
10805 * f-lang.c (value_from_host_double): Moved to...
10806 * value.c (value_from_host_double): ...here.
10807 * value.h (value_from_host_double): Declare.
10808 * guile/scm-math.c (vlscm_convert_typed_number): Use
10809 value_from_host_double.
10810 (vlscm_convert_number): Likewise.
10811 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
10812 * python/py-value.c (convert_value_from_python): Likewise.
10813
10814 2019-03-06 Tom Tromey <tom@tromey.com>
10815
10816 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
10817
10818 2019-03-06 Tom Tromey <tom@tromey.com>
10819
10820 * utils.h (free_current_contents): Don't declare.
10821 * utils.c (free_current_contents): Remove.
10822
10823 2019-03-06 Tom Tromey <tom@tromey.com>
10824
10825 * top.c (quit_force): Update.
10826 * main.c (captured_command_loop): Update.
10827 * common/new-op.c (operator new): Update.
10828 * common/common-exceptions.c (struct catcher)
10829 <save_cleanup_chain>: Remove member.
10830 (exceptions_state_mc_init): Update.
10831 (exception_try_scope_entry): Return nullptr.
10832 (exception_try_scope_exit, exception_rethrow)
10833 (throw_exception_sjlj, throw_exception_cxx): Update.
10834 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
10835 (all_cleanups, do_cleanups, discard_cleanups)
10836 (discard_final_cleanups, save_cleanups, save_final_cleanups)
10837 (restore_cleanups, restore_final_cleanups): Don't declare.
10838 (do_final_cleanups): Remove parameter.
10839 * common/cleanups.c (cleanup_chain, make_cleanup)
10840 (make_cleanup_dtor, all_cleanups, do_cleanups)
10841 (discard_my_cleanups, discard_cleanups)
10842 (discard_final_cleanups, save_my_cleanups, save_cleanups)
10843 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
10844 (null_cleanup): Remove.
10845 (do_final_cleanups): Remove parameter.
10846
10847 2019-03-06 Tom Tromey <tom@tromey.com>
10848
10849 * remote.c (remote_target::remote_parse_stop_reply): Use
10850 unique_xmalloc_ptr.
10851
10852 2019-03-06 Tom Tromey <tom@tromey.com>
10853
10854 * stabsread.c (struct stabs_field_info): Rename from field_info.
10855 <list, fnlist>: Add initializers.
10856 <obstack>: New member.
10857 (read_member_functions, read_struct_fields, read_baseclasses):
10858 Allocate on obstack. Don't use cleanups.
10859 (read_one_struct_field, read_member_functions, read_struct_fields)
10860 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
10861 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
10862 (read_struct_type): Update.
10863
10864 2019-03-06 Tom Tromey <tom@tromey.com>
10865
10866 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
10867 * common/filestuff.h (make_cleanup_close): Don't declare.
10868 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
10869 Remove.
10870
10871 2019-03-06 Tom Tromey <tom@tromey.com>
10872
10873 * solib-aix.c: Use make_scope_exit.
10874
10875 2019-03-06 Tom Tromey <tom@tromey.com>
10876
10877 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
10878 Use make_scope_exit.
10879
10880 2019-03-06 Tom Tromey <tom@tromey.com>
10881
10882 * solib-svr4.c (disable_probes_interface): Remove parameter.
10883 (svr4_handle_solib_event): Use make_scope_exit.
10884
10885 2019-03-06 Tom Tromey <tom@tromey.com>
10886
10887 * remote.c (struct stop_reply_deleter): Remove.
10888 (stop_reply_up): Update.
10889 (struct stop_reply): Derive from notif_event. Don't typedef.
10890 <regcache>: Now a std::vector.
10891 (stop_reply_xfree): Remove.
10892 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
10893 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
10894 (remote_target::discard_pending_stop_replies): Use delete.
10895 (remote_target::remote_parse_stop_reply): Update.
10896 (remote_target::process_stop_reply): Update.
10897 * remote-notif.h (struct notif_event): Add virtual destructor.
10898 Remove "dtr" member.
10899 (struct notif_client) <alloc_event>: Return a unique_ptr.
10900 (notif_event_xfree): Don't declare.
10901 (notif_event_up): New typedef.
10902 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
10903 (notif_event_xfree, do_notif_event_xfree): Remove.
10904 (remote_notif_state_xfree): Update.
10905
10906 2019-03-06 Tom Tromey <tom@tromey.com>
10907
10908 * infrun.c (displaced_step_clear_cleanup): Now a
10909 forward_scope_exit type.
10910 (displaced_step_prepare_throw): Update.
10911 (displaced_step_fixup): Update.
10912
10913 2019-03-06 Tom Tromey <tom@tromey.com>
10914
10915 * inferior.h (class inferior): Update comment.
10916 * gdbthread.h (class thread_info): Update comment.
10917
10918 2019-03-06 Joel Brobecker <brobecker@adacore.com>
10919 Tom Tromey <tom@tromey.com>
10920
10921 * stabsread.h (struct stab_section_list): Remove.
10922 (coffstab_build_psymtabs): Update.
10923 * dbxread.c (symbuf_sections): Now a std::vector.
10924 (sect_idx): New global.
10925 (fill_symbuf): Update.
10926 (coffstab_build_psymtabs): Change type of stabsects parameter.
10927 Update.
10928 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
10929 std::vector.
10930 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
10931 (coff_locate_sections): Update.
10932 (coff_symfile_read): Remove cleanups. Update.
10933 (init_stringtab): Add storage parameter.
10934 (free_stringtab, free_stringtab_cleanup): Remove.
10935 (init_lineno): Add storage parameter.
10936 (free_linetab, free_linetab_cleanup): Remove.
10937
10938 2019-03-06 Pedro Alves <palves@redhat.com>
10939
10940 * linux-fork.c (fork_info::clobber_regs): Delete.
10941 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
10942 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
10943 comment. Adjust.
10944 (scoped_switch_fork_info::scoped_switch_fork_info)
10945 (checkpoint_command, linux_fork_context): Adjust
10946 fork_save_infrun_state calls.
10947
10948 2019-03-06 Pedro Alves <palves@redhat.com>
10949
10950 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
10951 (inf_has_multiple_threads): Return 'bool' and rewrite using
10952 inferior_info::threads().
10953
10954 2019-03-06 Pedro Alves <palves@redhat.com>
10955
10956 * linux-fork.c: Include <list>.
10957 (fork_list): Now a std::list instance.
10958 (fork_info): Add ctor, dtor, and in-class initialize all fields.
10959 (forks_exist_p, find_last_fork): Adjust.
10960 (new_fork): Delete.
10961 (one_fork_p): New.
10962 (add_fork): Adjust.
10963 (free_fork): Delete, folded into fork_info::~fork_info().
10964 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
10965 Adjust.
10966 (init_fork_list): Delete.
10967 (linux_fork_killall, linux_fork_mourn_inferior)
10968 (linux_fork_detach, info_checkpoints_command): Adjust.
10969 (_initialize_linux_fork): No longer call init_fork_list.
10970
10971 2019-03-06 Pedro Alves <palves@redhat.com>
10972
10973 * linux-fork.c (new_fork): New, split out of ...
10974 (add_fork): ... this. Return void. Move "first fork" special
10975 case from here, to ...
10976 (checkpoint_command): ... here.
10977 * linux-linux.h (add_fork): Return void.
10978
10979 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10980
10981 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
10982
10983 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10984 Chris January <chris.january@arm.com>
10985 David Lecomber <david.lecomber@arm.com>
10986
10987 * f-exp.y: New token, UNOP_INTRINSIC.
10988 (exp): New pattern using UNOP_INTRINSIC token.
10989 (f77_keywords): Add 'abs' keyword.
10990 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
10991 (value_from_host_double): New function.
10992 (evaluate_subexp_f): Support UNOP_ABS.
10993
10994 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10995
10996 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
10997 types.
10998
10999 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11000
11001 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
11002 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
11003 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
11004
11005 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11006
11007 * f-exp.y (convert_to_kind_type): Handle more type kinds.
11008
11009 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11010 Chris January <chris.january@arm.com>
11011
11012 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
11013 * f-exp.y: Define 'KIND' token.
11014 (exp): New pattern for KIND expressions.
11015 (ptype): Handle types with a kind extension.
11016 (direct_abs_decl): Extend to spot kind extensions.
11017 (f77_keywords): Add 'kind' to the list.
11018 (push_kind_type): New function.
11019 (convert_to_kind_type): New function.
11020 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
11021 * parse.c (operator_length_standard): Likewise.
11022 * parser-defs.h (enum type_pieces): Add tp_kind.
11023 * std-operator.def: Add UNOP_KIND.
11024
11025 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11026
11027 * f-exp.y (f_parse): Set yydebug.
11028
11029 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11030
11031 * f-lang.c (evaluate_subexp_f): New function.
11032 (exp_descriptor_f): New global.
11033 (f_language_defn): Use exp_descriptor_f instead of
11034 exp_descriptor_standard.
11035
11036 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11037
11038 * f-exp.y (struct token): Add comments.
11039 (dot_ops): Remove uppercase versions and the end marker.
11040 (f77_keywords): Likewise.
11041 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
11042 entries in the dot_ops array are case insensitive, and use
11043 strncasecmp to compare strings. Also some whitespace cleanup in
11044 this area. Similar for the f77_keywords array, except entries in
11045 this list might be case sensitive.
11046
11047 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11048
11049 * f-exp.y (struct f77_boolean_val): Add comments.
11050 (boolean_values): Remove uppercase versions, and end marker.
11051 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
11052 and use strncasecmp to achieve case insensitivity. Additionally,
11053 perform whitespace cleanup around this code.
11054
11055 2019-03-06 Tom Tromey <tromey@adacore.com>
11056
11057 * remote-sim.c (gdbsim_target_open): Use result of
11058 gdb_argv::release.
11059
11060 2019-03-06 Richard Bunt <richard.bunt@arm.com>
11061 Dirk Schubert <dirk.schubert@arm.com>
11062 Chris January <chris.january@arm.com>
11063
11064 * eval.c (evaluate_subexp_standard): Call Fortran argument
11065 wrapping logic.
11066 * f-lang.c (struct value): A value which can be passed into a
11067 Fortran function call.
11068 (fortran_argument_convert): Wrap Fortran arguments in a pointer
11069 where appropriate.
11070 (struct type): Value ready for a Fortran function call.
11071 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
11072 is needed.
11073 * f-lang.h (fortran_argument_convert): Declaration.
11074 (fortran_preserve_arg_pointer): Declaration.
11075 * infcall.c (value_arg_coerce): Call Fortran argument logic.
11076
11077 2019-03-05 Tom Tromey <tromey@adacore.com>
11078
11079 * python/py-prettyprint.c (print_string_repr): Remove #if.
11080 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
11081
11082 2019-03-05 Tom Tromey <tromey@adacore.com>
11083
11084 * target.c (the_dummy_target): Move later. Change type to
11085 "dummy_target".
11086 (initialize_targets): Don't initialize the_dummy_target.
11087
11088 2019-03-05 Tom Tromey <tromey@adacore.com>
11089
11090 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
11091 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
11092
11093 2019-03-05 Tom Tromey <tromey@adacore.com>
11094
11095 * windows-nat.c (windows_nat_target::attach)
11096 (windows_nat_target::detach): Don't call gdb_flush.
11097 * valprint.c (generic_val_print, val_print, val_print_string):
11098 Don't call gdb_flush.
11099 * utils.c (defaulted_query): Don't call gdb_flush.
11100 * typeprint.c (print_type_scalar): Don't call gdb_flush.
11101 * target.c (target_announce_detach): Don't call gdb_flush.
11102 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
11103 * remote.c (extended_remote_target::attach): Don't call
11104 gdb_flush.
11105 * procfs.c (procfs_target::detach): Don't call gdb_flush.
11106 * printcmd.c (do_examine): Don't call gdb_flush.
11107 (info_display_command): Don't call gdb_flush.
11108 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
11109 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
11110 * memattr.c (info_mem_command): Don't call gdb_flush.
11111 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
11112 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
11113 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
11114 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
11115 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
11116 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
11117 (gnu_nat_target::detach): Don't call gdb_flush.
11118 * f-valprint.c (f_val_print): Don't call gdb_flush.
11119 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
11120 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
11121 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
11122 gdb_flush.
11123 * c-valprint.c (c_val_print): Don't call gdb_flush.
11124 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
11125
11126 2019-03-05 Tom Tromey <tromey@adacore.com>
11127
11128 * varobj.c (update_dynamic_varobj_children): Update.
11129 (install_default_visualizer): Use reset, not release.
11130 * value.c (set_internalvar): Update.
11131 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
11132 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
11133 ATTRIBUTE_UNUSED_RESULT.
11134
11135 2019-03-05 Tom Tromey <tromey@adacore.com>
11136
11137 * remote.c (class scoped_remote_fd) <release>: Add
11138 ATTRIBUTE_UNUSED_RESULT.
11139
11140 2019-03-05 Tom Tromey <tromey@adacore.com>
11141
11142 * macroexp.c (struct macro_buffer) <release>: Add
11143 ATTRIBUTE_UNUSED_RESULT.
11144
11145 2019-03-05 Tom Tromey <tromey@adacore.com>
11146
11147 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
11148 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
11149 ATTRIBUTE_UNUSED_RESULT.
11150
11151 2019-03-05 Tom Tromey <tromey@adacore.com>
11152
11153 * common/scoped_fd.h (class scoped_fd) <release>: Add
11154 ATTRIBUTE_UNUSED_RESULT.
11155
11156 2019-03-05 Tom Tromey <tromey@adacore.com>
11157
11158 * parser-defs.h (struct parser_state) <release>: Add
11159 ATTRIBUTE_UNUSED_RESULT.
11160
11161 2019-03-05 Tom Tromey <tromey@adacore.com>
11162
11163 * utils.h (class gdb_argv) <release>: Add
11164 ATTRIBUTE_UNUSED_RESULT.
11165 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
11166
11167 2019-03-02 Eli Zaretskii <eliz@gnu.org>
11168
11169 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
11170 for-loop range, to avoid compiler warnings.
11171
11172 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
11173 avoid compiler warnings about unused variables.
11174
11175 * NEWS: Mention end of support for native debugging on MS-Windows
11176 before XP.
11177
11178 PR gdb/24292
11179 * common/netstuff.c:
11180 * gdbserver/gdbreplay.c
11181 * gdbserver/remote-utils.c:
11182 * ser-tcp.c:
11183 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
11184 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
11185 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
11186 'getaddrinfo' and 'freeaddrinfo' were not available before
11187 Windows XP, and mingw.org's MinGW headers by default define
11188 _WIN32_WINNT to 0x500.
11189
11190 2019-03-01 Gary Benson <gbenson@redhat.com>
11191
11192 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
11193
11194 2019-02-28 Brian Vandenberg <phantall@gmail.com>
11195 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11196
11197 PR gdb/8527
11198 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
11199 set_sigint_trap, clear_sigint_trap.
11200
11201 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11202
11203 * target.c (target_detach): Clear the regcache and the
11204 frame cache.
11205
11206 2019-02-27 Pedro Alves <palves@redhat.com>
11207
11208 * utils.c (set_screen_size): When we cap the height/width sizes,
11209 tweak the corresponding command variable to show "unlimited":
11210
11211 2019-02-27 Saagar Jha <saagar@saagarjha.com>
11212 Pedro Alves <palves@redhat.com>
11213
11214 * utils.c (set_screen_size): Reduce "infinite" rows and columns
11215 before calling rl_set_screen_size.
11216
11217 2019-02-27 Tom Tromey <tromey@adacore.com>
11218
11219 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
11220 define.
11221 * python/py-value.c: Remove Python 2.4 workaround.
11222 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
11223 workaround.
11224 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
11225 Python 2.4 workaround.
11226 * python/python-internal.h: Remove Python 2.4 comment.
11227 (Py_ssize_t): Don't define.
11228 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
11229 (gdb_Py_DECREF): Remove Python 2.4 workaround.
11230 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
11231 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
11232 * python/python.c (do_start_initialization): Remove Python 2.4
11233 workaround.
11234 * python/py-prettyprint.c (class dummy_python_frame): Remove.
11235 (print_children): Remove Python 2.4 workaround.
11236 * python/py-inferior.c (buffer_procs): Remove Python 2.4
11237 workaround.
11238 (CHARBUFFERPROC_NAME): Remove.
11239 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
11240 Python 2.4 workaround.
11241
11242 2019-02-27 Kevin Buettner <kevinb@redhat.com>
11243
11244 * NEWS: Note minimum Python version.
11245
11246 2019-02-27 Kevin Buettner <kevinb@redhat.com>
11247
11248 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
11249 code from these functions. Remove corresponding ifdefs. Use
11250 Py_buffer_up instead of explicit calls to PyBuffer_Release.
11251 Remove gotos and target of gotos.
11252 (infpy_search_memory): Likewise.
11253
11254 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11255
11256 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
11257 (hppa_gdbarch_init): Don't register deleted functions with
11258 gdbarch.
11259
11260 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11261
11262 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
11263 (h8300_unwind_sp): Delete.
11264 (h8300_dummy_id): Delete.
11265 (h8300_gdbarch_init): Don't register deleted functions with
11266 gdbarch.
11267
11268 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11269
11270 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
11271 (ft32_unwind_pc): Delete.
11272 (ft32_unwind_sp): Delete.
11273 (ft32_gdbarch_init): Don't register deleted functions with
11274 gdbarch.
11275
11276 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11277
11278 * gdb/frv-tdep.c (frv_dummy_id): Delete.
11279 (frv_unwind_pc): Delete.
11280 (frv_unwind_sp): Delete.
11281 (frv_gdbarch_init): Don't register deleted functions with
11282 gdbarch.
11283
11284 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11285
11286 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
11287 (riscv_unwind_pc): Delete.
11288 (riscv_unwind_sp): Delete.
11289 (riscv_gdbarch_init): Don't register deleted functions with
11290 gdbarch.
11291
11292 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11293
11294 * gdb/csky-tdep.c (csky_dummy_id): Delete.
11295 (csky_unwind_pc): Delete.
11296 (csky_unwind_sp): Delete.
11297 (csky_gdbarch_init): Don't register deleted functions with
11298 gdbarch.
11299
11300 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11301
11302 * gdb/cris-tdep.c (cris_dummy_id): Delete.
11303 (cris_unwind_pc): Delete.
11304 (cris_unwind_sp): Delete.
11305 (cris_gdbarch_init): Don't register deleted functions with
11306 gdbarch.
11307
11308 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11309
11310 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
11311 (bfin_unwind_pc): Delete.
11312 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
11313
11314 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11315
11316 * gdb/arm-tdep.c (arm_dummy_id): Delete.
11317 (arm_unwind_pc): Delete.
11318 (arm_unwind_sp): Delete.
11319 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
11320
11321 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11322
11323 * gdb/arc-tdep.c (arc_dummy_id): Delete.
11324 (arc_unwind_pc): Delete.
11325 (arc_unwind_sp): Delete.
11326 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
11327
11328 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11329
11330 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
11331 (alpha_unwind_pc): Delete.
11332 (alpha_gdbarch_init): Don't register deleted functions with
11333 gdbarch.
11334
11335 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11336
11337 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
11338 (aarch64_unwind_pc): Delete.
11339 (aarch64_unwind_sp): Delete.
11340 (aarch64_gdbarch_init): Don't register deleted functions with
11341 gdbarch.
11342
11343 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11344
11345 * gdbtypes.c (type_align): Don't consider static members when
11346 computing structure alignment.
11347
11348 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11349
11350 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
11351 return 0 for other types.
11352 * arch-utils.c (default_type_align): Always return 0.
11353 * gdbarch.h: Regenerate.
11354 * gdbarch.sh (type_align): Extend comment.
11355 * gdbtypes.c (type_align): Add additional comments, always call
11356 gdbarch_type_align before applying the default rules.
11357 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
11358 generic code will then apply a suitable default.
11359 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
11360 types, return 0 for other types.
11361
11362 2019-02-27 Joel Brobecker <brobecker@adacore.com>
11363
11364 * NEWS: Create a new section for the next release branch.
11365 Rename the section of the current branch, now that it has
11366 been cut.
11367
11368 2019-02-27 Joel Brobecker <brobecker@adacore.com>
11369
11370 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
11371 * version.in: Bump version to 8.3.50.DATE-git.
11372
11373 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
11374
11375 * aix-thread.c (ptid_cmp): Remove unused variable.
11376 (get_signaled_thread): Likewise.
11377 (store_regs_user_thread): Likewise.
11378 (store_regs_kernel_thread): Likewise.
11379 (fetch_regs_kernel_thread): Remove shadowed variable.
11380
11381 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
11382
11383 * features/riscv/32bit-cpu.xml: Add register numbers.
11384 * features/riscv/32bit-fpu.c: Regenerate.
11385 * features/riscv/32bit-fpu.xml: Add register numbers.
11386 * features/riscv/64bit-cpu.xml: Add register numbers.
11387 * features/riscv/64bit-fpu.c: Regenerate.
11388 * features/riscv/64bit-fpu.xml: Add register numbers.
11389
11390 2019-02-26 Kevin Buettner <kevinb@redhat.com>
11391
11392 * NEWS: Mention two argument form of gdb.Value constructor.
11393 * python/py-value.c (convert_buffer_and_type_to_value): New
11394 function.
11395 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
11396 Add support for handling an optional second argument. Call
11397 convert_buffer_and_type_to_value as appropriate.
11398 * python/python-internal.h (Py_buffer_deleter): New struct.
11399 (Py_buffer_up): New typedef.
11400
11401 2019-02-25 John Baldwin <jhb@FreeBSD.org>
11402
11403 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
11404 instead of releasing ownership.
11405
11406 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
11407
11408 * dwarf2read.c (open_and_init_dwp_file): Call
11409 elf_numsections instead of bfd_count_sections to initialize
11410 dwp_file->num_sections.
11411
11412 2019-02-25 Tom Tromey <tromey@adacore.com>
11413
11414 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
11415
11416 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
11417
11418 * gcore.in: Add '--readnever' option when invoking GDB.
11419
11420 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11421
11422 * MAINTAINERS: Update my email address.
11423
11424 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11425
11426 * build-id.c (build_id_to_debug_bfd_1): New function.
11427 (build_id_to_debug_bfd): Look for separate debug file in
11428 sysroot.
11429
11430 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
11431
11432 * gdbarch.sh: Update the copyright year range that is placed into
11433 generated files.
11434
11435 2019-02-22 Keith Seitz <keiths@redhat.com>
11436
11437 PR symtab/23853
11438 * linespec.c (create_sals_line_offset): Search for the default
11439 symtab's filename instead of its fullname.
11440
11441 2019-02-21 Alan Hayward <alan.hayward@arm.com>
11442
11443 * NEWS: Update style defaults.
11444
11445 2019-02-21 Alan Hayward <alan.hayward@arm.com>
11446
11447 * main.c (captured_main_1): Disable styling in batch mode.
11448
11449 2019-02-20 Tom Tromey <tom@tromey.com>
11450
11451 * symtab.c (symtab_symbol_info): Fix typos.
11452
11453 2019-02-20 Tom Tromey <tromey@adacore.com>
11454
11455 * findcmd.c (_initialize_mem_search): Use upper case for
11456 metasyntactic variables.
11457
11458 2019-02-20 Alan Hayward <alan.hayward@arm.com>
11459
11460 * aarch64-tdep.c (aarch64_add_reggroups): New function.
11461 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
11462
11463 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
11464
11465 * top.h (source_file_name): Change to std::string.
11466 * top.c (source_file_name): Likewise.
11467 (command_line_input): Adjust.
11468 * cli/cli-script.c (script_from_file): Adjust.
11469
11470 2019-02-19 Tom Tromey <tromey@adacore.com>
11471
11472 * ravenscar-thread.c
11473 (ravenscar_thread_target::update_thread_list): Don't call
11474 ada_build_task_list.
11475 * ada-lang.h (ada_build_task_list): Don't declare.
11476 * ada-tasks.c (struct ada_tasks_inferior_data)
11477 <task_list_valid_p>: Now bool.
11478 (read_known_tasks, ada_task_list_changed)
11479 (ada_tasks_invalidate_inferior_data): Update.
11480 (read_known_tasks_array): Return bool.
11481 (read_known_tasks_list): Likewise.
11482 (read_known_tasks): Return void.
11483 (ada_build_task_list): Now static.
11484
11485 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
11486
11487 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
11488 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
11489
11490 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11491
11492 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
11493 variant for ada_tasks_pspace_data_handle and
11494 ada_tasks_inferior_data_handle.
11495 (ada_tasks_pspace_data_cleanup): New function.
11496 (ada_tasks_inferior_data_cleanup): New function.
11497
11498 2019-02-17 Tom Tromey <tom@tromey.com>
11499
11500 * macrotab.h (macro_source_fullname): Return a std::string.
11501 * macrotab.c (macro_include, check_for_redefinition)
11502 (macro_undef, macro_lookup_definition, foreach_macro)
11503 (foreach_macro_in_scope): Update.
11504 (macro_source_fullname): Return a std::string.
11505 * macrocmd.c (show_pp_source_pos): Update.
11506
11507 2019-02-17 Tom Tromey <tom@tromey.com>
11508
11509 * macrocmd.c (show_pp_source_pos): Style the file names.
11510
11511 2019-02-17 Tom Tromey <tom@tromey.com>
11512
11513 PR tui/24197:
11514 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
11515
11516 2019-02-17 Tom Tromey <tom@tromey.com>
11517
11518 * ada-lang.c (user_select_syms): Use filtered printing.
11519 * utils.c (wrap_style): New global.
11520 (desired_style): Remove.
11521 (emit_style_escape): Add stream parameter.
11522 (set_output_style, reset_terminal_style, prompt_for_continue):
11523 Update.
11524 (flush_wrap_buffer): Only flush gdb_stdout.
11525 (wrap_here): Set wrap_style.
11526 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
11527 treat escape sequences as a character. Change when wrap buffer is
11528 flushed.
11529 (fputs_styled): Do not set the output style when the default is
11530 requested.
11531 * ui-style.h (struct ui_file_style) <is_default>: New method.
11532 * source.c (print_source_lines_base): Emit escape sequences in one
11533 piece.
11534
11535 2019-02-17 Joel Brobecker <brobecker@adacore.com>
11536
11537 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
11538 integers and enumeration types.
11539
11540 2019-02-17 Joel Brobecker <brobecker@adacore.com>
11541
11542 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
11543 instead of lookup_symbol_in_language
11544 (do_exact_match): New function.
11545 (ada_get_symbol_name_matcher): Return do_exact_match when
11546 doing a verbatim match.
11547
11548 2019-02-15 Tom Tromey <tromey@adacore.com>
11549
11550 * ravenscar-thread.c (ravenscar_thread_target::resume)
11551 (ravenscar_thread_target::wait): Special case wildcard requests.
11552
11553 2019-02-15 Tom Tromey <tromey@adacore.com>
11554
11555 * ravenscar-thread.c (base_ptid): Remove.
11556 (struct ravenscar_thread_target) <close>: New method.
11557 <m_base_ptid>: New member.
11558 <update_inferior_ptid, active_task, task_is_currently_active,
11559 runtime_initialized>: Declare methods.
11560 <ravenscar_thread_target>: Add constructor.
11561 (ravenscar_thread_target::task_is_currently_active)
11562 (ravenscar_thread_target::update_inferior_ptid)
11563 (ravenscar_runtime_initialized): Rename. Now methods.
11564 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
11565 (ravenscar_thread_target::update_thread_list): Update.
11566 (ravenscar_thread_target::active_task): Now method.
11567 (ravenscar_thread_target::store_registers)
11568 (ravenscar_thread_target::prepare_to_store)
11569 (ravenscar_thread_target::prepare_to_store)
11570 (ravenscar_thread_target::mourn_inferior): Update.
11571 (ravenscar_inferior_created): Use "new" to create target.
11572 (ravenscar_thread_target::get_ada_task_ptid): Update.
11573 (_initialize_ravenscar): Don't initialize base_ptid.
11574 (ravenscar_ops): Remove global.
11575
11576 2019-02-15 Tom Tromey <tromey@adacore.com>
11577
11578 * target.h (push_target): Declare new overload.
11579 * target.c (push_target): New overload, taking an rvalue reference.
11580 * remote.c (remote_target::open_1): Use push_target overload.
11581 * corelow.c (core_target_open): Use push_target overload.
11582
11583 2019-02-15 Tom Tromey <tromey@adacore.com>
11584
11585 * ravenscar-thread.c (is_ravenscar_task)
11586 (ravenscar_task_is_currently_active): Return bool.
11587 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
11588 (_initialize_ravenscar): Remove "(void)".
11589 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
11590 Return bool.
11591
11592 2019-02-15 Tom Tromey <tromey@adacore.com>
11593
11594 * ravenscar-thread.c (ravenscar_runtime_initializer)
11595 (has_ravenscar_runtime, get_running_thread_id)
11596 (ravenscar_thread_target::resume): Fix indentation.
11597
11598 2019-02-15 Tom Tromey <tromey@adacore.com>
11599
11600 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
11601 from ravenscar_arch_ops.
11602 (sparc_ravenscar_ops::fetch_registers)
11603 (sparc_ravenscar_ops::store_registers): Now methods.
11604 (sparc_ravenscar_prepare_to_store): Remove.
11605 (sparc_ravenscar_ops): Redefine.
11606 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
11607 methods and destructor. Remove members.
11608 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
11609 (ravenscar_thread_target::store_registers)
11610 (ravenscar_thread_target::prepare_to_store): Update.
11611 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
11612 Remove.
11613 (struct ppc_ravenscar_powerpc_ops): Derive from
11614 ravenscar_arch_ops.
11615 (ppc_ravenscar_powerpc_ops::fetch_registers)
11616 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
11617 (ppc_ravenscar_powerpc_ops): Redefine.
11618 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
11619 (ppc_ravenscar_e500_ops::fetch_registers)
11620 (ppc_ravenscar_e500_ops::store_registers): Now methods.
11621 (ppc_ravenscar_e500_ops): Redefine.
11622 * aarch64-ravenscar-thread.c
11623 (aarch64_ravenscar_generic_prepare_to_store): Remove.
11624 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
11625 (aarch64_ravenscar_fetch_registers)
11626 (aarch64_ravenscar_store_registers): Now methods.
11627 (aarch64_ravenscar_ops): Redefine.
11628
11629 2019-02-15 Tom Tromey <tromey@adacore.com>
11630
11631 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
11632 (ravenscar_thread_target::stopped_by_hw_breakpoint)
11633 (ravenscar_thread_target::stopped_by_watchpoint)
11634 (ravenscar_thread_target::stopped_data_address)
11635 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
11636
11637 2019-02-15 Tom Tromey <tromey@adacore.com>
11638
11639 * ravenscar-thread.c: Fix some typos.
11640
11641 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11642 Tom Tromey <tromey@adacore.com>
11643
11644 * ada-lang.c (ada_exception_sal): Change addr_string to a
11645 std::string.
11646 (create_ada_exception_catchpoint): Update.
11647
11648 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11649 Tom Tromey <tromey@adacore.com>
11650
11651 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
11652 (bp_location_ops): Remove.
11653 (base_breakpoint_allocate_location): Update.
11654 (free_bp_location): Update.
11655 * ada-lang.c (class ada_catchpoint_location)
11656 <ada_catchpoint_location>: Remove ops parameter.
11657 (ada_catchpoint_location_dtor): Remove.
11658 (ada_catchpoint_location_ops): Remove.
11659 (allocate_location_exception): Update.
11660 * breakpoint.h (struct bp_location_ops): Remove.
11661 (class bp_location) <bp_location>: Remove bp_location_ops
11662 parameter.
11663 <~bp_location>: Add destructor.
11664 <ops>: Remove.
11665
11666 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11667 Pedro Alves <palves@redhat.com>
11668
11669 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
11670 'PATH_MAX'.
11671
11672 2019-02-14 David Michael <fedora.dm0@gmail.com>
11673 Samuel Thibault <samuel.thibault@gnu.org>
11674 Thomas Schwinge <thomas@codesourcery.com>
11675
11676 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
11677 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
11678
11679 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11680
11681 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
11682 (check_empty): Use "const char *".
11683
11684 * gnu-nat.c (gnu_nat_target::detach): Instead of
11685 'detach_inferior (pid)' call
11686 'detach_inferior (find_inferior_pid (pid))'.
11687
11688 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
11689 'nat/fork-inferior.o'.
11690 * gnu-nat.c: #include "nat/fork-inferior.h".
11691
11692 * gnu-nat.c (gnu_nat_target::detach): Instead of
11693 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
11694 * gnu-nat.h: #include "inf-child.h".
11695 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
11696 'i386_gnu_nat_target::fetch_registers'.
11697 (gnu_store_registers): Rename/move to
11698 'i386_gnu_nat_target::store_registers'.
11699
11700 * config/i386/nm-i386gnu.h: Don't "#include" any files.
11701 * gnu-nat.h (mach_thread_info): New function.
11702 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
11703
11704 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
11705
11706 2019-02-14 Frederic Konrad <konrad@adacore.com>
11707
11708 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
11709
11710 2019-02-14 Joel Brobecker <brobecker@adacore.com>
11711
11712 * windows-nat.c (windows_add_thread): Add new parameter
11713 "main_thread_p" with default value set to false. Update
11714 function documentation as well as all callers.
11715 (windows_delete_thread): Likewise.
11716 (fake_create_process): Update call to windows_add_thread.
11717 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
11718 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
11719 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
11720 call to windows_delete_thread.
11721
11722 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
11723
11724 * MAINTAINERS: Add Andrew Burgess as global maintainer.
11725
11726 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11727
11728 * symfile.c (find_separate_debug_file): Use canonical path of
11729 sysroot with child_path instead of gdb_sysroot if it is valid.
11730
11731 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11732
11733 * symfile.c (find_separate_debug_file): Use child_path to
11734 determine if an object file is under a sysroot.
11735
11736 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11737
11738 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11739 unittests/child-path-selftests.c.
11740 * common/pathstuff.c (child_path): New function.
11741 * common/pathstuff.h (child_path): New prototype.
11742 * unittests/child-path-selftests.c: New file.
11743
11744 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11745
11746 * symfile.c (find_separate_debug_file): Look for separate debug
11747 files in debug directories under the sysroot.
11748
11749 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11750
11751 * symtab.h (struct minimal_symbol data_p): New const method.
11752 (struct minimal_symbol text_p): Likewise.
11753 * symtab.c (output_source_filename): Use file name style
11754 to print file name.
11755 (print_symbol_info): Likewise.
11756 (print_msymbol_info): Use address style to print addresses.
11757 Use function name style to print executable text symbols.
11758 (expand_symtab_containing_pc): Use data_p.
11759 (find_pc_sect_compunit_symtab): Likewise.
11760
11761 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11762
11763 * breakpoint.c (describe_other_breakpoints): Use address style
11764 to print addresses.
11765 (say_where): Likewise.
11766
11767 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11768
11769 * ada-typeprint.c (print_func_type): Print function name
11770 style to print function name.
11771 * c-typeprint.c (c_print_type_1): Likewise.
11772
11773 2019-02-11 Alan Hayward <alan.hayward@arm.com>
11774
11775 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
11776 for execve.
11777
11778 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11779
11780 * c-exp.y (direct_abs_decl): Use emplace_back to record the
11781 type_stack.
11782
11783 2019-02-10 Joel Brobecker <brobecker@adacore.com>
11784
11785 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
11786 TYPE_CODE_REF types.
11787
11788 2019-02-08 Jim Wilson <jimw@sifive.com>
11789
11790 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
11791 (riscv_linux_fregset): New.
11792 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
11793
11794 2019-02-07 Tom Tromey <tom@tromey.com>
11795
11796 * thread.c (thread_cancel_execution_command): Update.
11797 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
11798 methods.
11799 (struct thread_fsm_ops): Remove.
11800 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
11801 (thread_fsm_should_stop, thread_fsm_return_value)
11802 (thread_fsm_set_finished, thread_fsm_finished_p)
11803 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
11804 Don't declare.
11805 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
11806 * infrun.c (clear_proceed_status_thread)
11807 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
11808 (print_stop_event): Update.
11809 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
11810 Add constructor.
11811 (step_command_fsm_ops): Remove.
11812 (new_step_command_fsm): Remove.
11813 (step_1): Update.
11814 (step_command_fsm::should_stop): Rename from
11815 step_command_fsm_should_stop.
11816 (step_command_fsm::clean_up): Rename from
11817 step_command_fsm_clean_up.
11818 (step_command_fsm::do_async_reply_reason): Rename from
11819 step_command_fsm_async_reply_reason.
11820 (struct until_next_fsm): Inherit from thread_fsm. Add
11821 constructor.
11822 (until_next_fsm_ops): Remove.
11823 (new_until_next_fsm): Remove.
11824 (until_next_fsm::should_stop): Rename from
11825 until_next_fsm_should_stop.
11826 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
11827 (until_next_fsm::do_async_reply_reason): Rename from
11828 until_next_fsm_async_reply_reason.
11829 (struct finish_command_fsm): Inherit from thread_fsm. Add
11830 constructor. Change type of breakpoint.
11831 (finish_command_fsm_ops): Remove.
11832 (new_finish_command_fsm): Remove.
11833 (finish_command_fsm::should_stop): Rename from
11834 finish_command_fsm_should_stop.
11835 (finish_command_fsm::clean_up): Rename from
11836 finish_command_fsm_clean_up.
11837 (finish_command_fsm::return_value): Rename from
11838 finish_command_fsm_return_value.
11839 (finish_command_fsm::do_async_reply_reason): Rename from
11840 finish_command_fsm_async_reply_reason.
11841 (finish_command): Update.
11842 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
11843 Add constructor.
11844 (call_thread_fsm_ops): Remove.
11845 (call_thread_fsm::call_thread_fsm): Rename from
11846 new_call_thread_fsm.
11847 (call_thread_fsm::should_stop): Rename from
11848 call_thread_fsm_should_stop.
11849 (call_thread_fsm::should_notify_stop): Rename from
11850 call_thread_fsm_should_notify_stop.
11851 (run_inferior_call, call_function_by_hand_dummy): Update.
11852 * cli/cli-interp.c (should_print_stop_to_console): Update.
11853 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
11854 Add constructor. Change type of location_breakpoint,
11855 caller_breakpoint.
11856 (until_break_fsm_ops): Remove.
11857 (new_until_break_fsm): Remove.
11858 (until_break_fsm::should_stop): Rename from
11859 until_break_fsm_should_stop.
11860 (until_break_fsm::clean_up): Rename from
11861 until_break_fsm_clean_up.
11862 (until_break_fsm::do_async_reply_reason): Rename from
11863 until_break_fsm_async_reply_reason.
11864 (until_break_command): Update.
11865 * thread-fsm.c: Remove.
11866 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
11867
11868 2019-02-07 Tom Tromey <tom@tromey.com>
11869
11870 * yy-remap.h: Add include guard.
11871 * xtensa-tdep.h: Add include guard.
11872 * xcoffread.h: Rename include guard.
11873 * varobj-iter.h: Add include guard.
11874 * tui/tui.h: Rename include guard.
11875 * tui/tui-winsource.h: Rename include guard.
11876 * tui/tui-wingeneral.h: Rename include guard.
11877 * tui/tui-windata.h: Rename include guard.
11878 * tui/tui-win.h: Rename include guard.
11879 * tui/tui-stack.h: Rename include guard.
11880 * tui/tui-source.h: Rename include guard.
11881 * tui/tui-regs.h: Rename include guard.
11882 * tui/tui-out.h: Rename include guard.
11883 * tui/tui-layout.h: Rename include guard.
11884 * tui/tui-io.h: Rename include guard.
11885 * tui/tui-hooks.h: Rename include guard.
11886 * tui/tui-file.h: Rename include guard.
11887 * tui/tui-disasm.h: Rename include guard.
11888 * tui/tui-data.h: Rename include guard.
11889 * tui/tui-command.h: Rename include guard.
11890 * tic6x-tdep.h: Add include guard.
11891 * target/waitstatus.h: Rename include guard.
11892 * target/wait.h: Rename include guard.
11893 * target/target.h: Rename include guard.
11894 * target/resume.h: Rename include guard.
11895 * target-float.h: Rename include guard.
11896 * stabsread.h: Add include guard.
11897 * rs6000-tdep.h: Add include guard.
11898 * riscv-fbsd-tdep.h: Add include guard.
11899 * regformats/regdef.h: Rename include guard.
11900 * record.h: Rename include guard.
11901 * python/python.h: Rename include guard.
11902 * python/python-internal.h: Rename include guard.
11903 * python/py-stopevent.h: Rename include guard.
11904 * python/py-ref.h: Rename include guard.
11905 * python/py-record.h: Rename include guard.
11906 * python/py-record-full.h: Rename include guard.
11907 * python/py-record-btrace.h: Rename include guard.
11908 * python/py-instruction.h: Rename include guard.
11909 * python/py-events.h: Rename include guard.
11910 * python/py-event.h: Rename include guard.
11911 * procfs.h: Add include guard.
11912 * proc-utils.h: Add include guard.
11913 * p-lang.h: Add include guard.
11914 * or1k-tdep.h: Rename include guard.
11915 * observable.h: Rename include guard.
11916 * nto-tdep.h: Rename include guard.
11917 * nat/x86-linux.h: Rename include guard.
11918 * nat/x86-linux-dregs.h: Rename include guard.
11919 * nat/x86-gcc-cpuid.h: Add include guard.
11920 * nat/x86-dregs.h: Rename include guard.
11921 * nat/x86-cpuid.h: Rename include guard.
11922 * nat/ppc-linux.h: Rename include guard.
11923 * nat/mips-linux-watch.h: Rename include guard.
11924 * nat/linux-waitpid.h: Rename include guard.
11925 * nat/linux-ptrace.h: Rename include guard.
11926 * nat/linux-procfs.h: Rename include guard.
11927 * nat/linux-osdata.h: Rename include guard.
11928 * nat/linux-nat.h: Rename include guard.
11929 * nat/linux-namespaces.h: Rename include guard.
11930 * nat/linux-btrace.h: Rename include guard.
11931 * nat/glibc_thread_db.h: Rename include guard.
11932 * nat/gdb_thread_db.h: Rename include guard.
11933 * nat/gdb_ptrace.h: Rename include guard.
11934 * nat/fork-inferior.h: Rename include guard.
11935 * nat/amd64-linux-siginfo.h: Rename include guard.
11936 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
11937 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
11938 * nat/aarch64-linux.h: Rename include guard.
11939 * nat/aarch64-linux-hw-point.h: Rename include guard.
11940 * mn10300-tdep.h: Add include guard.
11941 * mips-linux-tdep.h: Add include guard.
11942 * mi/mi-parse.h: Rename include guard.
11943 * mi/mi-out.h: Rename include guard.
11944 * mi/mi-main.h: Rename include guard.
11945 * mi/mi-interp.h: Rename include guard.
11946 * mi/mi-getopt.h: Rename include guard.
11947 * mi/mi-console.h: Rename include guard.
11948 * mi/mi-common.h: Rename include guard.
11949 * mi/mi-cmds.h: Rename include guard.
11950 * mi/mi-cmd-break.h: Rename include guard.
11951 * m2-lang.h: Add include guard.
11952 * location.h: Rename include guard.
11953 * linux-record.h: Rename include guard.
11954 * linux-nat.h: Add include guard.
11955 * linux-fork.h: Add include guard.
11956 * i386-darwin-tdep.h: Rename include guard.
11957 * hppa-linux-offsets.h: Add include guard.
11958 * guile/guile.h: Rename include guard.
11959 * guile/guile-internal.h: Rename include guard.
11960 * gnu-nat.h: Rename include guard.
11961 * gdb-stabs.h: Rename include guard.
11962 * frv-tdep.h: Add include guard.
11963 * f-lang.h: Add include guard.
11964 * event-loop.h: Add include guard.
11965 * darwin-nat.h: Rename include guard.
11966 * cp-abi.h: Rename include guard.
11967 * config/sparc/nm-sol2.h: Rename include guard.
11968 * config/nm-nto.h: Rename include guard.
11969 * config/nm-linux.h: Add include guard.
11970 * config/i386/nm-i386gnu.h: Rename include guard.
11971 * config/djgpp/nl_types.h: Rename include guard.
11972 * config/djgpp/langinfo.h: Rename include guard.
11973 * compile/gcc-cp-plugin.h: Add include guard.
11974 * compile/gcc-c-plugin.h: Add include guard.
11975 * compile/compile.h: Rename include guard.
11976 * compile/compile-object-run.h: Rename include guard.
11977 * compile/compile-object-load.h: Rename include guard.
11978 * compile/compile-internal.h: Rename include guard.
11979 * compile/compile-cplus.h: Rename include guard.
11980 * compile/compile-c.h: Rename include guard.
11981 * common/xml-utils.h: Rename include guard.
11982 * common/x86-xstate.h: Rename include guard.
11983 * common/version.h: Rename include guard.
11984 * common/vec.h: Rename include guard.
11985 * common/tdesc.h: Rename include guard.
11986 * common/selftest.h: Rename include guard.
11987 * common/scoped_restore.h: Rename include guard.
11988 * common/scoped_mmap.h: Rename include guard.
11989 * common/scoped_fd.h: Rename include guard.
11990 * common/safe-iterator.h: Rename include guard.
11991 * common/run-time-clock.h: Rename include guard.
11992 * common/refcounted-object.h: Rename include guard.
11993 * common/queue.h: Rename include guard.
11994 * common/ptid.h: Rename include guard.
11995 * common/print-utils.h: Rename include guard.
11996 * common/preprocessor.h: Rename include guard.
11997 * common/pathstuff.h: Rename include guard.
11998 * common/observable.h: Rename include guard.
11999 * common/netstuff.h: Rename include guard.
12000 * common/job-control.h: Rename include guard.
12001 * common/host-defs.h: Rename include guard.
12002 * common/gdb_wait.h: Rename include guard.
12003 * common/gdb_vecs.h: Rename include guard.
12004 * common/gdb_unlinker.h: Rename include guard.
12005 * common/gdb_unique_ptr.h: Rename include guard.
12006 * common/gdb_tilde_expand.h: Rename include guard.
12007 * common/gdb_sys_time.h: Rename include guard.
12008 * common/gdb_string_view.h: Rename include guard.
12009 * common/gdb_splay_tree.h: Rename include guard.
12010 * common/gdb_setjmp.h: Rename include guard.
12011 * common/gdb_ref_ptr.h: Rename include guard.
12012 * common/gdb_optional.h: Rename include guard.
12013 * common/gdb_locale.h: Rename include guard.
12014 * common/gdb_assert.h: Rename include guard.
12015 * common/filtered-iterator.h: Rename include guard.
12016 * common/filestuff.h: Rename include guard.
12017 * common/fileio.h: Rename include guard.
12018 * common/environ.h: Rename include guard.
12019 * common/common-utils.h: Rename include guard.
12020 * common/common-types.h: Rename include guard.
12021 * common/common-regcache.h: Rename include guard.
12022 * common/common-inferior.h: Rename include guard.
12023 * common/common-gdbthread.h: Rename include guard.
12024 * common/common-exceptions.h: Rename include guard.
12025 * common/common-defs.h: Rename include guard.
12026 * common/common-debug.h: Rename include guard.
12027 * common/cleanups.h: Rename include guard.
12028 * common/buffer.h: Rename include guard.
12029 * common/btrace-common.h: Rename include guard.
12030 * common/break-common.h: Rename include guard.
12031 * cli/cli-utils.h: Rename include guard.
12032 * cli/cli-style.h: Rename include guard.
12033 * cli/cli-setshow.h: Rename include guard.
12034 * cli/cli-script.h: Rename include guard.
12035 * cli/cli-interp.h: Rename include guard.
12036 * cli/cli-decode.h: Rename include guard.
12037 * cli/cli-cmds.h: Rename include guard.
12038 * charset-list.h: Add include guard.
12039 * buildsym-legacy.h: Rename include guard.
12040 * bfin-tdep.h: Add include guard.
12041 * ax.h: Rename include guard.
12042 * arm-linux-tdep.h: Add include guard.
12043 * arm-fbsd-tdep.h: Add include guard.
12044 * arch/xtensa.h: Rename include guard.
12045 * arch/tic6x.h: Add include guard.
12046 * arch/i386.h: Add include guard.
12047 * arch/arm.h: Rename include guard.
12048 * arch/arm-linux.h: Rename include guard.
12049 * arch/arm-get-next-pcs.h: Rename include guard.
12050 * arch/amd64.h: Add include guard.
12051 * arch/aarch64-insn.h: Rename include guard.
12052 * arch-utils.h: Rename include guard.
12053 * annotate.h: Add include guard.
12054 * amd64-darwin-tdep.h: Rename include guard.
12055 * aarch64-linux-tdep.h: Add include guard.
12056 * aarch64-fbsd-tdep.h: Add include guard.
12057 * aarch32-linux-nat.h: Add include guard.
12058
12059 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12060
12061 * macrotab.c (macro_define_internal): New function that
12062 factorizes macro_define_object_internal and macro_define_function
12063 code.
12064 (macro_define_object_internal): Use macro_define_internal.
12065 (macro_define_function): Likewise.
12066
12067 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12068
12069 * macrocmd.c (extract_identifier): Return
12070 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
12071 callers.
12072
12073 2019-02-06 John Baldwin <jhb@FreeBSD.org>
12074
12075 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
12076
12077 2019-02-05 Tom Tromey <tom@tromey.com>
12078
12079 * target.c (target_stack::unpush): Move assertion earlier.
12080
12081 2019-01-30 Tom Tromey <tom@tromey.com>
12082
12083 PR python/23615:
12084 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
12085 (gdbpy_parse_and_eval): Likewise.
12086 * python/python-internal.h (gdbpy_allow_threads): New class.
12087
12088 2019-01-28 John Baldwin <jhb@FreeBSD.org>
12089
12090 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
12091 (aarch64_fbsd_fpregmap): Move earlier.
12092 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
12093 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12094 instead of individual calls to trad_frame_set_reg_addr.
12095 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
12096 earlier.
12097 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
12098 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12099 instead of individual calls to trad_frame_set_reg_addr.
12100
12101 2019-01-28 Alan Hayward <alan.hayward@arm.com>
12102
12103 * CONTRIBUTE: Replace contribution list with wiki link.
12104
12105 2019-01-25 Tom Tromey <tom@tromey.com>
12106
12107 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
12108
12109 2019-01-25 Tom Tromey <tom@tromey.com>
12110
12111 * xtensa-linux-nat.c: Fix common/ includes.
12112 * xml-support.h: Fix common/ includes.
12113 * xml-support.c: Fix common/ includes.
12114 * x86-linux-nat.c: Fix common/ includes.
12115 * windows-nat.c: Fix common/ includes.
12116 * varobj.h: Fix common/ includes.
12117 * varobj.c: Fix common/ includes.
12118 * value.c: Fix common/ includes.
12119 * valops.c: Fix common/ includes.
12120 * utils.c: Fix common/ includes.
12121 * unittests/xml-utils-selftests.c: Fix common/ includes.
12122 * unittests/utils-selftests.c: Fix common/ includes.
12123 * unittests/unpack-selftests.c: Fix common/ includes.
12124 * unittests/tracepoint-selftests.c: Fix common/ includes.
12125 * unittests/style-selftests.c: Fix common/ includes.
12126 * unittests/string_view-selftests.c: Fix common/ includes.
12127 * unittests/scoped_restore-selftests.c: Fix common/ includes.
12128 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
12129 * unittests/scoped_fd-selftests.c: Fix common/ includes.
12130 * unittests/rsp-low-selftests.c: Fix common/ includes.
12131 * unittests/parse-connection-spec-selftests.c: Fix common/
12132 includes.
12133 * unittests/optional-selftests.c: Fix common/ includes.
12134 * unittests/offset-type-selftests.c: Fix common/ includes.
12135 * unittests/observable-selftests.c: Fix common/ includes.
12136 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
12137 * unittests/memrange-selftests.c: Fix common/ includes.
12138 * unittests/memory-map-selftests.c: Fix common/ includes.
12139 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
12140 * unittests/function-view-selftests.c: Fix common/ includes.
12141 * unittests/environ-selftests.c: Fix common/ includes.
12142 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
12143 * unittests/common-utils-selftests.c: Fix common/ includes.
12144 * unittests/cli-utils-selftests.c: Fix common/ includes.
12145 * unittests/array-view-selftests.c: Fix common/ includes.
12146 * ui-file.c: Fix common/ includes.
12147 * tui/tui-io.c: Fix common/ includes.
12148 * tracepoint.h: Fix common/ includes.
12149 * tracepoint.c: Fix common/ includes.
12150 * tracefile-tfile.c: Fix common/ includes.
12151 * top.h: Fix common/ includes.
12152 * top.c: Fix common/ includes.
12153 * thread.c: Fix common/ includes.
12154 * target/waitstatus.h: Fix common/ includes.
12155 * target/waitstatus.c: Fix common/ includes.
12156 * target.h: Fix common/ includes.
12157 * target.c: Fix common/ includes.
12158 * target-memory.c: Fix common/ includes.
12159 * target-descriptions.c: Fix common/ includes.
12160 * symtab.h: Fix common/ includes.
12161 * symfile.c: Fix common/ includes.
12162 * stap-probe.c: Fix common/ includes.
12163 * spu-linux-nat.c: Fix common/ includes.
12164 * sparc-nat.c: Fix common/ includes.
12165 * source.c: Fix common/ includes.
12166 * solib.c: Fix common/ includes.
12167 * solib-target.c: Fix common/ includes.
12168 * ser-unix.c: Fix common/ includes.
12169 * ser-tcp.c: Fix common/ includes.
12170 * ser-pipe.c: Fix common/ includes.
12171 * ser-base.c: Fix common/ includes.
12172 * selftest-arch.c: Fix common/ includes.
12173 * s12z-tdep.c: Fix common/ includes.
12174 * rust-exp.y: Fix common/ includes.
12175 * rs6000-aix-tdep.c: Fix common/ includes.
12176 * riscv-tdep.c: Fix common/ includes.
12177 * remote.c: Fix common/ includes.
12178 * remote-notif.h: Fix common/ includes.
12179 * remote-fileio.h: Fix common/ includes.
12180 * remote-fileio.c: Fix common/ includes.
12181 * regcache.h: Fix common/ includes.
12182 * regcache.c: Fix common/ includes.
12183 * record-btrace.c: Fix common/ includes.
12184 * python/python.c: Fix common/ includes.
12185 * python/py-type.c: Fix common/ includes.
12186 * python/py-inferior.c: Fix common/ includes.
12187 * progspace.h: Fix common/ includes.
12188 * producer.c: Fix common/ includes.
12189 * procfs.c: Fix common/ includes.
12190 * proc-api.c: Fix common/ includes.
12191 * printcmd.c: Fix common/ includes.
12192 * ppc-linux-nat.c: Fix common/ includes.
12193 * parser-defs.h: Fix common/ includes.
12194 * osdata.c: Fix common/ includes.
12195 * obsd-nat.c: Fix common/ includes.
12196 * nat/x86-linux.c: Fix common/ includes.
12197 * nat/x86-linux-dregs.c: Fix common/ includes.
12198 * nat/x86-dregs.h: Fix common/ includes.
12199 * nat/x86-dregs.c: Fix common/ includes.
12200 * nat/ppc-linux.c: Fix common/ includes.
12201 * nat/mips-linux-watch.h: Fix common/ includes.
12202 * nat/mips-linux-watch.c: Fix common/ includes.
12203 * nat/linux-waitpid.c: Fix common/ includes.
12204 * nat/linux-ptrace.h: Fix common/ includes.
12205 * nat/linux-ptrace.c: Fix common/ includes.
12206 * nat/linux-procfs.c: Fix common/ includes.
12207 * nat/linux-personality.c: Fix common/ includes.
12208 * nat/linux-osdata.c: Fix common/ includes.
12209 * nat/linux-namespaces.c: Fix common/ includes.
12210 * nat/linux-btrace.h: Fix common/ includes.
12211 * nat/linux-btrace.c: Fix common/ includes.
12212 * nat/fork-inferior.c: Fix common/ includes.
12213 * nat/amd64-linux-siginfo.c: Fix common/ includes.
12214 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
12215 * nat/aarch64-linux.c: Fix common/ includes.
12216 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
12217 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
12218 * namespace.h: Fix common/ includes.
12219 * mips-linux-tdep.c: Fix common/ includes.
12220 * minsyms.c: Fix common/ includes.
12221 * mi/mi-parse.h: Fix common/ includes.
12222 * mi/mi-main.c: Fix common/ includes.
12223 * mi/mi-cmd-env.c: Fix common/ includes.
12224 * memrange.h: Fix common/ includes.
12225 * memattr.c: Fix common/ includes.
12226 * maint.h: Fix common/ includes.
12227 * maint.c: Fix common/ includes.
12228 * main.c: Fix common/ includes.
12229 * machoread.c: Fix common/ includes.
12230 * location.c: Fix common/ includes.
12231 * linux-thread-db.c: Fix common/ includes.
12232 * linux-nat.c: Fix common/ includes.
12233 * linux-fork.c: Fix common/ includes.
12234 * inline-frame.c: Fix common/ includes.
12235 * infrun.c: Fix common/ includes.
12236 * inflow.c: Fix common/ includes.
12237 * inferior.h: Fix common/ includes.
12238 * inferior.c: Fix common/ includes.
12239 * infcmd.c: Fix common/ includes.
12240 * inf-ptrace.c: Fix common/ includes.
12241 * inf-child.c: Fix common/ includes.
12242 * ia64-linux-nat.c: Fix common/ includes.
12243 * i387-tdep.c: Fix common/ includes.
12244 * i386-tdep.c: Fix common/ includes.
12245 * i386-linux-tdep.c: Fix common/ includes.
12246 * i386-linux-nat.c: Fix common/ includes.
12247 * i386-go32-tdep.c: Fix common/ includes.
12248 * i386-fbsd-tdep.c: Fix common/ includes.
12249 * i386-fbsd-nat.c: Fix common/ includes.
12250 * guile/scm-type.c: Fix common/ includes.
12251 * guile/guile.c: Fix common/ includes.
12252 * go32-nat.c: Fix common/ includes.
12253 * gnu-nat.c: Fix common/ includes.
12254 * gdbthread.h: Fix common/ includes.
12255 * gdbarch-selftests.c: Fix common/ includes.
12256 * gdb_usleep.c: Fix common/ includes.
12257 * gdb_select.h: Fix common/ includes.
12258 * gdb_bfd.c: Fix common/ includes.
12259 * gcore.c: Fix common/ includes.
12260 * fork-child.c: Fix common/ includes.
12261 * findvar.c: Fix common/ includes.
12262 * fbsd-nat.c: Fix common/ includes.
12263 * event-top.c: Fix common/ includes.
12264 * event-loop.c: Fix common/ includes.
12265 * dwarf2read.c: Fix common/ includes.
12266 * dwarf2loc.c: Fix common/ includes.
12267 * dwarf2-frame.c: Fix common/ includes.
12268 * dwarf-index-cache.c: Fix common/ includes.
12269 * dtrace-probe.c: Fix common/ includes.
12270 * disasm-selftests.c: Fix common/ includes.
12271 * defs.h: Fix common/ includes.
12272 * csky-tdep.c: Fix common/ includes.
12273 * cp-valprint.c: Fix common/ includes.
12274 * cp-support.h: Fix common/ includes.
12275 * cp-support.c: Fix common/ includes.
12276 * corelow.c: Fix common/ includes.
12277 * completer.h: Fix common/ includes.
12278 * completer.c: Fix common/ includes.
12279 * compile/compile.c: Fix common/ includes.
12280 * compile/compile-loc2c.c: Fix common/ includes.
12281 * compile/compile-cplus-types.c: Fix common/ includes.
12282 * compile/compile-cplus-symbols.c: Fix common/ includes.
12283 * command.h: Fix common/ includes.
12284 * cli/cli-dump.c: Fix common/ includes.
12285 * cli/cli-cmds.c: Fix common/ includes.
12286 * charset.c: Fix common/ includes.
12287 * build-id.c: Fix common/ includes.
12288 * btrace.h: Fix common/ includes.
12289 * btrace.c: Fix common/ includes.
12290 * breakpoint.h: Fix common/ includes.
12291 * breakpoint.c: Fix common/ includes.
12292 * ax.h:
12293 (enum agent_op): Fix common/ includes.
12294 * ax-general.c (struct aop_map): Fix common/ includes.
12295 * ax-gdb.c: Fix common/ includes.
12296 * auxv.c: Fix common/ includes.
12297 * auto-load.c: Fix common/ includes.
12298 * arm-tdep.c: Fix common/ includes.
12299 * arch/riscv.c: Fix common/ includes.
12300 * arch/ppc-linux-common.c: Fix common/ includes.
12301 * arch/i386.c: Fix common/ includes.
12302 * arch/arm.c: Fix common/ includes.
12303 * arch/arm-linux.c: Fix common/ includes.
12304 * arch/arm-get-next-pcs.c: Fix common/ includes.
12305 * arch/amd64.c: Fix common/ includes.
12306 * arch/aarch64.c: Fix common/ includes.
12307 * arch/aarch64-insn.c: Fix common/ includes.
12308 * arch-utils.c: Fix common/ includes.
12309 * amd64-windows-tdep.c: Fix common/ includes.
12310 * amd64-tdep.c: Fix common/ includes.
12311 * amd64-sol2-tdep.c: Fix common/ includes.
12312 * amd64-obsd-tdep.c: Fix common/ includes.
12313 * amd64-nbsd-tdep.c: Fix common/ includes.
12314 * amd64-linux-tdep.c: Fix common/ includes.
12315 * amd64-linux-nat.c: Fix common/ includes.
12316 * amd64-fbsd-tdep.c: Fix common/ includes.
12317 * amd64-fbsd-nat.c: Fix common/ includes.
12318 * amd64-dicos-tdep.c: Fix common/ includes.
12319 * amd64-darwin-tdep.c: Fix common/ includes.
12320 * agent.c: Fix common/ includes.
12321 * ada-lang.h: Fix common/ includes.
12322 * ada-lang.c: Fix common/ includes.
12323 * aarch64-tdep.c: Fix common/ includes.
12324
12325 2019-01-25 Tom Tromey <tom@tromey.com>
12326
12327 * common/create-version.sh: Use common/version.h.
12328
12329 2019-01-24 Pedro Alves <palves@redhat.com>
12330
12331 * infrun.c (signal_stop, signal_print, signal_program)
12332 (signal_catch, signal_pass): Now arrays instead of pointers.
12333 (update_signals_program_target, do_target_resume)
12334 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
12335 * linux-nat.c (linux_nat_target::pass_signals)
12336 (linux_nat_target::create_inferior, linux_nat_target::attach):
12337 Adjust.
12338 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
12339 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
12340 * procfs.c (procfs_target::pass_signals): Adjust.
12341 * record-full.c (record_full_target::resume): Adjust.
12342 * remote.c (remote_target::pass_signals)
12343 (remote_target::program_signals): Adjust.
12344 * target-debug.h (target_debug_print_signals): Now takes a
12345 gdb::array_view as parameter. Adjust.
12346 * target.h (target_ops) <pass_signals, program_signals>: Replace
12347 pointer and length parameters with gdb::array_view.
12348 (target_pass_signals, target_program_signals): Likewise.
12349 * target-delegates.c: Regenerate.
12350
12351 2019-01-24 Pedro Alves <palves@redhat.com>
12352
12353 * common/forward-scope-exit.h
12354 (forward_scope_exit::forward_scope_exit): Pass arguments to
12355 m_bind_function directly, instead of creating a std::bind and
12356 copying that.
12357
12358 2019-01-24 Alan Hayward <alan.hayward@arm.com>
12359
12360 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12361 for static members.
12362 (pass_in_v_vfp_candidate): Likewise.
12363
12364 2019-01-23 Tom Tromey <tom@tromey.com>
12365 Pedro Alves <palves@redhat.com>
12366
12367 * regcache.c (class regcache_invalidator): Remove.
12368 (regcache::raw_write): Use make_scope_exit.
12369
12370 2019-01-23 Tom Tromey <tom@tromey.com>
12371
12372 * ui-out.h (class ui_out_emit_type): Update comment.
12373
12374 2019-01-23 Tom Tromey <tom@tromey.com>
12375
12376 * infrun.c (fetch_inferior_event): Update comment.
12377
12378 2019-01-23 Tom Tromey <tom@tromey.com>
12379 Pedro Alves <palves@redhat.com>
12380
12381 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
12382 parameter.
12383 (fetch_inferior_event): Use SCOPE_EXIT.
12384
12385
12386 2019-01-23 Tom Tromey <tom@tromey.com>
12387 Pedro Alves <palves@redhat.com>
12388
12389 * infrun.c (disable_thread_events): Delete.
12390 (stop_all_threads): Use SCOPE_EXIT.
12391
12392 2019-01-23 Tom Tromey <tom@tromey.com>
12393 Pedro Alves <palves@redhat.com>
12394
12395 * symfile.c: Include forward-scope-exit.h.
12396 (clear_symtab_users_cleanup): Replace forward declaration with
12397 a FORWARD_SCOPE_EXIT.
12398 (syms_from_objfile_1): Use the forward_scope_exit and
12399 gdb::optional instead of cleanup_function.
12400 (reread_symbols): Use the forward_scope_exit instead of
12401 cleanup_function.
12402 (clear_symtab_users_cleanup): Remove function.
12403
12404 2019-01-23 Tom Tromey <tom@tromey.com>
12405 Pedro Alves <palves@redhat.com>
12406
12407 * linux-nat.c: Include scope-exit.h.
12408 (cleanup_target_stop): Remove.
12409 (linux_nat_target::static_tracepoint_markers_by_strid): Use
12410 SCOPE_EXIT.
12411
12412 2019-01-23 Tom Tromey <tom@tromey.com>
12413 Pedro Alves <palves@redhat.com>
12414
12415 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
12416 (call_function_by_hand_dummy): Use SCOPE_EXIT.
12417
12418 2019-01-23 Tom Tromey <tom@tromey.com>
12419 Andrew Burgess <andrew.burgess@embecosm.com>
12420 Pedro Alves <palves@redhat.com>
12421
12422 * infrun.c (fetch_inferior_event): Use scope_exit.
12423 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
12424 * top.c (execute_command): Use scope_exit.
12425 * breakpoint.c (bpstat_do_actions): Use scope_exit.
12426 * utils.c (do_bpstat_clear_actions_cleanup)
12427 (make_bpstat_clear_actions_cleanup): Remove.
12428
12429 2019-01-23 Tom Tromey <tom@tromey.com>
12430 Pedro Alves <palves@redhat.com>
12431
12432 * infrun.c: Include "common/scope-exit.h"
12433 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
12434 (wait_for_inferior): Use SCOPE_EXIT.
12435 (fetch_inferior_event): Use scope_exit.
12436
12437 2019-01-23 Tom Tromey <tom@tromey.com>
12438 Pedro Alves <palves@redhat.com>
12439
12440 * breakpoint.c (create_breakpoint): Remove cleanup.
12441
12442 2019-01-23 Tom Tromey <tom@tromey.com>
12443 Andrew Burgess <andrew.burgess@embecosm.com>
12444 Pedro Alves <palves@redhat.com>
12445
12446 2019-01-23 Pedro Alves <palves@redhat.com>
12447
12448 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
12449
12450 2019-01-23 Pedro Alves <palves@redhat.com>
12451 Andrew Burgess <andrew.burgess@embecosm.com>
12452
12453 * gdbthread.h: Include "common/forward-scope-exit.h".
12454 (scoped_finish_thread_state): Redefine custom class in terms of
12455 forward_scope_exit.
12456
12457 2019-01-23 Pedro Alves <palves@redhat.com>
12458 Andrew Burgess <andrew.burgess@embecosm.com>
12459
12460 * common/forward-scope-exit.h: New file.
12461
12462 2019-01-23 Pedro Alves <palves@redhat.com>
12463 Andrew Burgess <andrew.burgess@embecosm.com>
12464 Tom Tromey <tom@tromey.com>
12465
12466 * common/scope-exit.h: New file.
12467
12468 2019-01-23 Pedro Alves <palves@redhat.com>
12469
12470 * common/preprocessor.h (ESC): Rename to ...
12471 (ESC_PARENS): ... this.
12472 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
12473 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
12474
12475 2019-01-23 Tom Tromey <tom@tromey.com>
12476
12477 * language.h (class scoped_switch_to_sym_language_if_auto):
12478 Initialize m_lang in both cases.
12479
12480 2019-01-23 Alan Hayward <alan.hayward@arm.com>
12481
12482 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
12483 with XCNEW.
12484
12485 2019-01-22 Tom Tromey <tom@tromey.com>
12486
12487 * corelow.c: Do not include sys/file.h.
12488
12489 2019-01-22 Tom Tromey <tom@tromey.com>
12490
12491 * tui/tui-wingeneral.h: Include gdb_curses.h.
12492
12493 2019-01-22 Tom Tromey <tom@tromey.com>
12494
12495 * source-cache.h (class source_cache) <get_source_lines,
12496 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
12497
12498 2019-01-22 Tom Tromey <tom@tromey.com>
12499
12500 * remote-fileio.h (struct remote_target): Declare.
12501
12502 2019-01-22 Tom Tromey <tom@tromey.com>
12503
12504 * python/py-arch.c: Do not include py-ref.h.
12505 * python/py-bpevent.c: Do not include py-ref.h.
12506 * python/py-cmd.c: Do not include py-ref.h.
12507 * python/py-continueevent.c: Do not include py-ref.h.
12508 * python/py-event.h: Do not include py-ref.h.
12509 * python/py-evtregistry.c: Do not include py-ref.h.
12510 * python/py-finishbreakpoint.c: Do not include py-ref.h.
12511 * python/py-frame.c: Do not include py-ref.h.
12512 * python/py-framefilter.c: Do not include py-ref.h.
12513 * python/py-function.c: Do not include py-ref.h.
12514 * python/py-infevents.c: Do not include py-ref.h.
12515 * python/py-linetable.c: Do not include py-ref.h.
12516 * python/py-objfile.c: Do not include py-ref.h.
12517 * python/py-param.c: Do not include py-ref.h.
12518 * python/py-prettyprint.c: Do not include py-ref.h.
12519 * python/py-progspace.c: Do not include py-ref.h.
12520 * python/py-symbol.c: Do not include py-ref.h.
12521 * python/py-symtab.c: Do not include py-ref.h.
12522 * python/py-type.c: Do not include py-ref.h.
12523 * python/py-unwind.c: Do not include py-ref.h.
12524 * python/py-utils.c: Do not include py-ref.h.
12525 * python/py-value.c: Do not include py-ref.h.
12526 * python/py-varobj.c: Do not include py-ref.h.
12527 * python/py-xmethods.c: Do not include py-ref.h.
12528 * python/python.c: Do not include py-ref.h.
12529 * varobj.c: Do not include py-ref.h.
12530
12531 2019-01-22 Tom Tromey <tom@tromey.com>
12532
12533 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
12534 keyword for bcache.
12535
12536 2019-01-22 Tom Tromey <tom@tromey.com>
12537
12538 * compile/compile-cplus-types.c: Remove a comment by #include.
12539
12540 2019-01-22 Tom Tromey <tom@tromey.com>
12541
12542 * compile/gcc-c-plugin.h: Include compile-internal.h.
12543
12544 2019-01-22 Tom Tromey <tom@tromey.com>
12545
12546 * stabsread.c (EXTERN): Do not define.
12547 (symnum, next_symbol_text_func, processing_gcc_compilation)
12548 (within_function, global_sym_chain, global_stabs)
12549 (previous_stab_code, this_object_header_files)
12550 (n_this_object_header_files)
12551 (n_allocated_this_object_header_files): Define.
12552 * stabsread.h (EXTERN): Never define. Use "extern".
12553
12554 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12555
12556 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
12557 history_value.
12558
12559 2019-01-21 Tom Tromey <tom@tromey.com>
12560
12561 * ui-out.c: Fix includes.
12562 * tui/tui-source.c: Fix includes.
12563 * target.c: Fix includes.
12564 * remote.c: Fix includes.
12565 * regcache.c: Fix includes.
12566 * python/py-block.c: Fix includes.
12567 * printcmd.c: Fix includes.
12568 * or1k-tdep.c: Fix includes.
12569 * mi/mi-main.c: Fix includes.
12570 * m32r-tdep.c: Fix includes.
12571 * csky-tdep.c: Fix includes.
12572 * compile/compile-cplus-types.c: Fix includes.
12573 * cli/cli-interp.c: Fix includes.
12574
12575 2019-01-21 Alan Hayward <alan.hayward@arm.com>
12576
12577 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12578 for padding.
12579
12580 2019-01-16 Tom Tromey <tom@tromey.com>
12581
12582 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
12583 earlier.
12584 (struct objfile) <msymbols_range>: Move from top level.
12585 <msymbols>: New method.
12586 (class objfile_msymbols): Remove.
12587 * symtab.c (default_collect_symbol_completion_matches_break_on):
12588 Update.
12589 * symmisc.c (dump_msymbols): Update.
12590 * stabsread.c (scan_file_globals): Update.
12591 * objc-lang.c (info_selectors_command, info_classes_command)
12592 (find_methods): Update.
12593 * minsyms.c (find_solib_trampoline_target): Update.
12594 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
12595 * coffread.c (coff_symfile_read): Update.
12596 * ada-lang.c (ada_lookup_simple_minsym)
12597 (ada_collect_symbol_completion_matches): Update.
12598
12599 2019-01-16 Tom Tromey <tom@tromey.com>
12600
12601 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
12602 type. Remove no-argument constructor.
12603 <iterator::operator++>: Simplify.
12604 <begin>: Update.
12605 <end>: Use minimal_symbol_count.
12606
12607 2019-01-16 Tom Tromey <tom@tromey.com>
12608
12609 * objfiles.h (struct objfile) <psymtabs>: New method.
12610 (class objfile_psymtabs): Remove.
12611 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
12612 typedef.
12613 <range>: New method.
12614 (require_partial_symbols): Change return type.
12615 * psymtab.c (require_partial_symbols)
12616 (psym_expand_symtabs_matching): Update.
12617 * mdebugread.c (parse_partial_symbols): Update.
12618 * dbxread.c (dbx_end_psymtab): Update.
12619
12620 2019-01-15 Tom Tromey <tom@tromey.com>
12621
12622 * symtab.c (lookup_objfile_from_block)
12623 (lookup_symbol_in_objfile_symtabs)
12624 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
12625 (find_line_symtab, info_sources_command)
12626 (default_collect_symbol_completion_matches_break_on)
12627 (make_source_files_completion_list): Update.
12628 * symmisc.c (print_objfile_statistics, dump_objfile)
12629 (maintenance_print_symbols, maintenance_info_symtabs)
12630 (maintenance_check_symtabs, maintenance_info_line_tables):
12631 Update.
12632 * source.c (select_source_symtab)
12633 (forget_cached_source_info_for_objfile): Update.
12634 * objfiles.h (class objfile_compunits): Remove.
12635 (struct objfile) <compunits_range>: New typedef.
12636 (compunits): New method.
12637 * objfiles.c (objfile_relocate1): Update.
12638 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12639 * maint.c (count_symtabs_and_blocks): Update.
12640 * linespec.c (iterate_over_all_matching_symtabs): Update.
12641 * cp-support.c (add_symbol_overload_list_qualified): Update.
12642 * coffread.c (coff_symtab_read): Update.
12643 * ada-lang.c (add_nonlocal_symbols)
12644 (ada_collect_symbol_completion_matches)
12645 (ada_add_global_exceptions): Update.
12646
12647 2019-01-15 Tom Tromey <tom@tromey.com>
12648
12649 * progspace.h (program_space) <objfiles_safe_range>: New
12650 typedef.
12651 <objfiles_safe>: New method.
12652 * objfiles.h (class all_objfiles_safe): Remove.
12653 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
12654 * jit.c (jit_inferior_exit_hook): Update.
12655
12656 2019-01-17 Tom Tromey <tom@tromey.com>
12657
12658 * progspace.h (program_space) <objfiles_range>: New typedef.
12659 <objfiles>: New method.
12660 <objfiles_head>: Rename from objfiles.
12661 (object_files): Update.
12662 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
12663 * guile/scm-pretty-print.c
12664 (ppscm_find_pretty_printer_from_objfiles): Update.
12665 * guile/scm-objfile.c (gdbscm_objfiles): Update.
12666 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
12667 Update.
12668 * python/py-progspace.c (pspy_get_objfiles): Update.
12669 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12670 Update.
12671 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12672 (objfpy_lookup_objfile_by_build_id): Update.
12673 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12674 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12675 Update.
12676 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12677 (expand_symtab_containing_pc, lookup_objfile_from_block)
12678 (lookup_static_symbol, basic_lookup_transparent_type)
12679 (find_pc_sect_compunit_symtab, find_symbol_at_address)
12680 (find_line_symtab, info_sources_command)
12681 (default_collect_symbol_completion_matches_break_on)
12682 (make_source_files_completion_list, find_main_name): Update.
12683 * symmisc.c (print_symbol_bcache_statistics)
12684 (print_objfile_statistics, maintenance_print_symbols)
12685 (maintenance_print_msymbols, maintenance_print_objfiles)
12686 (maintenance_info_symtabs, maintenance_check_symtabs)
12687 (maintenance_expand_symtabs, maintenance_info_line_tables):
12688 Update.
12689 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
12690 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
12691 (map_overlay_command, unmap_overlay_command)
12692 (simple_overlay_update, expand_symtabs_matching)
12693 (map_symbol_filenames): Update.
12694 * symfile-debug.c (set_debug_symfile): Update.
12695 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
12696 Update.
12697 * source.c (select_source_symtab, forget_cached_source_info):
12698 Update.
12699 * solib.c (solib_read_symbols): Update.
12700 * solib-spu.c (append_ocl_sos): Update.
12701 * psymtab.c (maintenance_print_psymbols)
12702 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
12703 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
12704 * printcmd.c (info_symbol_command): Update.
12705 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
12706 Update.
12707 * objfiles.h (class all_objfiles): Remove.
12708 * objfiles.c (have_partial_symbols, have_full_symbols)
12709 (have_minimal_symbols, qsort_cmp, update_section_map)
12710 (shared_objfile_contains_address_p)
12711 (default_iterate_over_objfiles_in_search_order): Update.
12712 * objc-lang.c (info_selectors_command, info_classes_command)
12713 (find_methods): Update.
12714 * minsyms.c (find_solib_trampoline_target): Update.
12715 * maint.c (maintenance_info_sections)
12716 (maintenance_translate_address, count_symtabs_and_blocks):
12717 Update.
12718 * main.c (captured_main_1): Update.
12719 * linux-thread-db.c (try_thread_db_load_from_pdir)
12720 (has_libpthread): Update.
12721 * linespec.c (iterate_over_all_matching_symtabs)
12722 (search_minsyms_for_name): Update.
12723 * jit.c (jit_find_objf_with_entry_addr): Update.
12724 * hppa-tdep.c (find_unwind_entry)
12725 (hppa_lookup_stub_minimal_symbol): Update.
12726 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
12727 Update.
12728 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12729 (elf_gnu_ifunc_resolve_by_got): Update.
12730 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
12731 * dwarf-index-write.c (save_gdb_index_command): Update.
12732 * cp-support.c (add_symbol_overload_list_qualified): Update.
12733 * breakpoint.c (create_overlay_event_breakpoint)
12734 (create_longjmp_master_breakpoint)
12735 (create_std_terminate_master_breakpoint)
12736 (create_exception_master_breakpoint): Update.
12737 * blockframe.c (find_pc_partial_function): Update.
12738 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
12739 (ada_collect_symbol_completion_matches)
12740 (ada_add_global_exceptions): Update.
12741
12742 2019-01-17 Tom Tromey <tom@tromey.com>
12743
12744 * solib-target.c (lm_info_target_p): Remove typedef. Don't
12745 declare VEC.
12746 (solib_target_parse_libraries): Change return type.
12747 (library_list_start_segment, library_list_start_section)
12748 (library_list_end_library, library_list_start_library); Update.
12749 (solib_target_free_library_list): Remove.
12750 (solib_target_parse_libraries): Remove cleanup. Change return
12751 type.
12752 (solib_target_current_sos): Update.
12753
12754 2019-01-17 Tom Tromey <tromey@bapiya>
12755
12756 * valprint.c: Replace "the the" with "the".
12757 * symtab.c: Replace "the the" with "the".
12758 * solib.c: Replace "the the" with "the".
12759 * solib-dsbt.c: Replace "the the" with "the".
12760 * linespec.c: Replace "the the" with "the".
12761 * dwarf2loc.h: Replace "the the" with "the".
12762 * amd64-windows-tdep.c: Replace "the the" with "the".
12763 * aarch64-tdep.c: Replace "the the" with "the".
12764
12765 2019-01-16 Keith Seitz <keiths@redhat.com>
12766
12767 PR gdb/23773
12768 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
12769 <builder>: Rename to ..
12770 <m_builder>: ... this and make private.
12771 (dwarf2_cu::get_builder): New method. Change all users of
12772 `builder' to use this method.
12773 (dwarf2_start_symtab): Move to ...
12774 (dwarf2_cu::start_symtab): ... here. Update all callers
12775 (setup_type_unit_groups): Move to ...
12776 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
12777 callers.
12778 (dwarf2_cu::reset_builder): New method.
12779 (process_full_compunit, process_full_type_unit): Use
12780 dwarf2_cu::reset_builder.
12781 (follow_die_offset): Record the ancestor CU if it is different
12782 from the followed DIE's CU.
12783 (follow_die_sig_1): Likewise.
12784
12785 2019-01-15 Tom Tromey <tom@tromey.com>
12786
12787 * remote.c (class remote_state) <buf>: Now a char_vector.
12788 <buf_size>: Remove.
12789 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
12790 parameter.
12791 (remote_target::getpkt_or_notif_sane_1)
12792 (remote_target::getpkt_sane)
12793 (remote_target::getpkt_or_notif_sane): Likewise.
12794 (class remote_target) <putpkt>: New overload.
12795 (remote_target::read_frame): Change type of "buf_p". Remove
12796 sizeof_p parameter.
12797 (packet_ok): New overload.
12798 (packet_check_result): New overload.
12799 Update all uses.
12800
12801 2019-01-14 Tom Tromey <tom@tromey.com>
12802
12803 * remote-notif.c (handle_notification, remote_notif_ack)
12804 (remote_notif_parse): Make "buf" const.
12805 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
12806 const.
12807 (remote_notif_parse, remote_notif_ack, handle_notification):
12808 Likewise.
12809 * remote.c (remote_notif_stop_parse): Make "buf" const.
12810 (remote_target::remote_parse_stop_reply): Make "buf" const.
12811 (remote_notif_stop_ack): Make "buf" const.
12812
12813 2019-01-14 Tom Tromey <tom@tromey.com>
12814
12815 * remote.c (remote_console_output): Make parameter const.
12816
12817 2019-01-14 Tom Tromey <tom@tromey.com>
12818
12819 * target-debug.h (target_debug_print_signals): Constify.
12820 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
12821 * procfs.c (procfs_target::pass_signals): Update.
12822 * linux-nat.c (linux_nat_target::pass_signals): Update.
12823 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
12824 * target-delegates.c: Rebuild.
12825 * remote.c (remote_target::program_signals): Update.
12826 (remote_target::pass_signals): Update.
12827 * target.c (target_pass_signals): Constify argument.
12828 (target_program_signals): Likewise.
12829 * target.h (struct target_ops) <pass_signals, program_signals>:
12830 Constify argument.
12831 (target_pass_signals, target_program_signals): Constify argument.
12832
12833 2019-01-14 Tom Tromey <tom@tromey.com>
12834
12835 PR tui/28819:
12836 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
12837
12838 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12839
12840 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
12841 field.
12842 * rs6000-tdep.c: Include reggroups.h.
12843 (IS_V_ALIAS_PSEUDOREG): Define.
12844 (rs6000_register_name): Return names for the "vX" aliases.
12845 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
12846 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
12847 aliases. Call default_register_reggroup_p for all other
12848 pseudo-registers.
12849 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
12850 New functions.
12851 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
12852 Handle "vX" aliases.
12853 (v_alias_pseudo_register_collect): New function.
12854 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
12855 (rs6000_gdbarch_init): Initialize "vX" aliases as
12856 pseudo-registers. Restore registration of
12857 rs6000_pseudo_register_reggroup_p with
12858 set_tdesc_pseudo_register_reggroup_p.
12859
12860 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
12861
12862 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
12863 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
12864 set_gdbarch_num_pseudo_regs.
12865
12866 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12867
12868 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
12869 Remove arg prefixname, add do_set and do_show.
12870 Add member functions set_list and show_list.
12871 * cli/cli-style.c (class cli_style_option): Update accordingly.
12872 (style_set_list): Move to file scope.
12873 (style_show_list): Likewise.
12874 (set_style): Call help_list.
12875 (show_style): Call cmd_show_list.
12876 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
12877 Update to use the new macro.
12878
12879 2019-10-12 Joel Brobecker <brobecker@adacore.com>
12880
12881 * ada-lang.c (_initialize_ada_language): Expand the help text
12882 for the "catch exception" command.
12883
12884 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12885
12886 * symtab.c (matching_obj_sections): Initialize obj,
12887 declare it closer to its usage.
12888
12889 2019-01-10 Tom Tromey <tom@tromey.com>
12890
12891 * thread-iter.h (inf_threads_iterator): Use next_iterator.
12892 (basic_inf_threads_range): Remove.
12893 (inf_threads_range, inf_non_exited_threads_range)
12894 (safe_inf_threads_range): Use next_adapter.
12895
12896 2019-01-10 Keith Seitz <keiths@redhat.com>
12897
12898 PR gdb/23712
12899 PR symtab/23010
12900 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
12901 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
12902
12903 2019-01-10 Keith Seitz <keiths@redhat.com>
12904
12905 PR gdb/23712
12906 PR symtab/23010
12907 * dictionary.c (pending_to_vector): Remove.
12908 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12909 Remove _1 suffix, replacing functions of the same name. Update
12910 all callers.
12911 (dict_create_hashed, dict_create_hashed_expandable)
12912 (dict_create_linear, dict_create_linear_expandable, dict_free)
12913 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
12914 Make functions static.
12915
12916 2019-01-10 Keith Seitz <keiths@redhat.com>
12917
12918 PR gdb/23712
12919 PR symtab/23010
12920 * dictionary.h (struct dictionary): Replace declaration with
12921 multidictionary.
12922 (dict_create_hashed, dict_create_hashed_expandable)
12923 (dict_create_linear, dict_create_linear_expandable)
12924 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
12925 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
12926 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
12927 taking multidictionary argument.
12928 [ALL_DICT_SYMBOLS]: Update for multidictionary.
12929 * block.h (struct block) <dict>: Change to multidictionary
12930 and rename `multidict'.
12931 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
12932 symmisc.c: Update all dictionary references to multidictionary.
12933
12934 2019-01-10 Keith Seitz <keiths@redhat.com>
12935
12936 PR gdb/23712
12937 PR symtab/23010
12938 * dictionary.c: Include unordered_map.
12939 (pending_to_vector): New function.
12940 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12941 Rewrite the non-"_1" functions to take vector instead
12942 of linked list.
12943 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
12944 "new" _1 versions of the same name.
12945 (multidictionary): Define.
12946 (std::hash<enum language): New definition.
12947 (collate_pending_symbols_by_language, mdict_create_hashed)
12948 (mdict_create_hashed_expandable, mdict_create_linear)
12949 (mdict_create_linear_expandable, mdict_free)
12950 (find_language_dictionary, create_new_language_dictionary)
12951 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
12952 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
12953 (mdict_size, mdict_empty): New functions.
12954 * dictionary.h (mdict_iterator): Define.
12955
12956 2019-01-10 Pedro Alves <palves@redhat.com>
12957
12958 * breakpoint.c (read_uploaded_action)
12959 (create_tracepoint_from_upload): Adjust to use
12960 gdb::unique_xmalloc_ptr.
12961 * ctf.c (ctf_write_uploaded_tp):
12962 (SET_ARRAY_FIELD): Use emplace_back.
12963 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
12964 * tracefile-tfile.c (tfile_write_uploaded_tp):
12965 * tracepoint.c (parse_tracepoint_definition): Adjust to use
12966 gdb::unique_xmalloc_ptr.
12967 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
12968 at_string, cond_string, cmd_strings>: Replace char pointers
12969 with gdb::unique_xmalloc_ptr.
12970
12971 2019-01-10 Pedro Alves <palves@redhat.com>
12972
12973 * solib-target.c (library_list_start_library): Don't xstrdup name.
12974
12975 2019-01-10 Pedro Alves <palves@redhat.com>
12976
12977 * mdebugread.c (parse_partial_symbols): Use
12978 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
12979
12980 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12981
12982 * linux-fork.c (scoped_switch_fork_info)
12983 <~scoped_switch_fork_info>: Fix incorrect variable name.
12984
12985 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12986
12987 * linux-fork.c (scoped_switch_fork_info)
12988 <scoped_switch_fork_info>: Make explicit.
12989 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
12990
12991 2019-01-10 Tom Tromey <tom@tromey.com>
12992
12993 * objfiles.h (objfile::reset_psymtabs): Update.
12994 * objfiles.c (objfile::objfile): Update.
12995 * psymtab.h (psymtab_storage::obstack): Update.
12996 (psymtab_storage::m_obstack): Use gdb::optional.
12997 (class psymtab_storage): Update comment. Remove objfile
12998 parameter.
12999 * psymtab.c (psymtab_storage::psymtab_storage): Update.
13000
13001 2019-01-10 Tom Tromey <tom@tromey.com>
13002
13003 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
13004 <free_psymtabs>: Now private.
13005 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
13006 (allocate_psymtab): Use new method.
13007
13008 2019-01-10 Tom Tromey <tom@tromey.com>
13009
13010 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
13011 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
13012 * mdebugread.c (parse_partial_symbols): Use
13013 allocate_dependencies.
13014 * dwarf2read.c (dwarf2_create_include_psymtab): Use
13015 allocate_dependencies.
13016 (process_psymtab_comp_unit_reader)
13017 (build_type_psymtab_dependencies): Likewise.
13018 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
13019
13020 2019-01-10 Tom Tromey <tom@tromey.com>
13021
13022 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
13023 PSYMBOL_SET_LANGUAGE.
13024 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
13025
13026 2019-01-10 Tom Tromey <tom@tromey.com>
13027
13028 * psymtab.h (psymtab_storage::obstack): New method.
13029 <m_obstack>: Rename from obstack; now private.
13030 * psymtab.c (psymtab_storage): Update.
13031 * dwarf2read.c (create_addrmap_from_index)
13032 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
13033 Update.
13034
13035 2019-01-10 Tom Tromey <tom@tromey.com>
13036
13037 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
13038 * objfiles.h (objfile::reset_psymtabs): New method.
13039
13040 2019-01-10 Tom Tromey <tom@tromey.com>
13041
13042 * symmisc.c (print_symbol_bcache_statistics): Update.
13043 (print_objfile_statistics): Update.
13044 * symfile.c (reread_symbols): Update.
13045 * psymtab.h (class psymtab_storage): New.
13046 * psymtab.c (psymtab_storage): New constructor.
13047 (~psymtab_storage): New destructor.
13048 (require_partial_symbols): Update.
13049 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
13050 (find_pc_sect_psymtab, find_pc_sect_psymbol)
13051 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
13052 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
13053 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
13054 (start_psymtab_common, end_psymtab_common)
13055 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
13056 (allocate_psymtab): Update.
13057 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
13058 Update.
13059 (dump_psymtab_addrmap, maintenance_print_psymbols)
13060 (maintenance_check_psymtabs): Update.
13061 (class objfile_psymtabs): Move to objfiles.h.
13062 * psympriv.h (discard_psymtab): Now inline.
13063 (psymtab_discarder::psymtab_discarder): Update.
13064 (psymtab_discarder::~psymtab_discarder): Update.
13065 (ALL_OBJFILE_PSYMTABS): Rewrite.
13066 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
13067 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
13068 Remove fields.
13069 <partial_symtabs>: New field.
13070 (class objfile_psymtabs): Move from psymtab.h. Update.
13071 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
13072 psymbol_cache.
13073 (objfile::~objfile): Don't destroy psymbol_cache.
13074 * mdebugread.c (parse_partial_symbols): Update.
13075 * dwarf2read.c (create_addrmap_from_index)
13076 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13077 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
13078 (add_partial_subprogram, dwarf2_ranges_read): Update.
13079 * dwarf-index-write.c (write_address_map)
13080 (write_one_signatured_type, recursively_write_psymbols)
13081 (class debug_names, class debug_names, write_psymtabs_to_index):
13082 Update.
13083
13084 2019-01-10 Tom Tromey <tom@tromey.com>
13085
13086 * symtab.h (SYMBOL_SET_NAMES): Update.
13087 (symbol_set_names): Update.
13088 (MSYMBOL_SET_NAMES): Update.
13089 * symtab.c (symbol_set_names): Change argument to be an
13090 objfile_per_bfd_storage.
13091 * psymtab.c (add_psymbol_to_bcache): Update.
13092 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
13093
13094 2019-01-10 Tom Tromey <tom@tromey.com>
13095
13096 * symtab.c (create_demangled_names_hash): Change argument to be an
13097 objfile_per_bfd_storage.
13098 (symbol_set_names): Update.
13099
13100 2019-01-10 Tom Tromey <tom@tromey.com>
13101
13102 * xcoffread.c (xcoff_initial_scan): Unconditionally call
13103 init_psymbol_list.
13104 * psymtab.c (init_psymbol_list): Do nothing if already called.
13105 * psympriv.h (init_psymbol_list): Add comment.
13106 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
13107 init_psymbol_list.
13108 * dbxread.c (dbx_symfile_read): Unconditionally call
13109 init_psymbol_list.
13110
13111 2019-01-10 Tom Tromey <tom@tromey.com>
13112
13113 * xcoffread.c (scan_xcoff_symtab): Update.
13114 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
13115 "where".
13116 * mdebugread.c (parse_partial_symbols)
13117 (handle_psymbol_enumerators): Update.
13118 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
13119 * dbxread.c (read_dbx_symtab): Update.
13120 * psympriv.h (psymbol_placement): New enum.
13121 (add_psymbol_to_list): Update.
13122
13123 2019-01-10 Tom Tromey <tom@tromey.com>
13124
13125 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
13126 static_psymbols parameters.
13127 (scan_xcoff_symtab): Update.
13128 * psymtab.c (start_psymtab_common): Remove global_psymbols and
13129 static_psymbols parameters.
13130 * psympriv.h (start_psymtab_common): Update.
13131 * mdebugread.c (parse_partial_symbols): Update.
13132 * dwarf2read.c (create_partial_symtab): Update.
13133 * dbxread.c (read_dbx_symtab): Update.
13134 (start_psymtab): Remove global_psymbols and static_psymbols
13135 parameters.
13136
13137 2019-01-10 Tom Tromey <tom@tromey.com>
13138
13139 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
13140 * psymtab.c (allocate_psymtab): Add comment.
13141 * psympriv.h (allocate_psymtab): Add comment.
13142 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
13143 initializations.
13144 * dbxread.c (dbx_end_psymtab): Remove some initializations.
13145
13146 2019-01-10 Tom Tromey <tom@tromey.com>
13147
13148 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13149 Don't declare.
13150 * mipsread.c: Include mdebugread.h.
13151 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13152 Declare.
13153 * elfread.c: Include mdebugread.h.
13154
13155 2019-01-09 Tom Tromey <tom@tromey.com>
13156
13157 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
13158 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
13159 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
13160 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
13161 (psym_lookup_symbol, psym_find_last_source_symtab)
13162 (psym_forget_cached_source_info, psym_print_stats)
13163 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
13164 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
13165 (psym_map_matching_symbols, psym_expand_symtabs_matching)
13166 (psym_find_compunit_symtab_by_address)
13167 (maintenance_print_psymbols, maintenance_info_psymtabs)
13168 (maintenance_check_psymtabs): Use ranged for.
13169 * psymtab.h (class objfile_psymtabs): New.
13170 (require_partial_symbols): Return objfile_psymtabs.
13171 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
13172
13173 2019-01-09 Tom Tromey <tom@tromey.com>
13174
13175 * symfile.c (overlay_invalidate_all, find_pc_overlay)
13176 (find_pc_mapped_section, list_overlays_command)
13177 (map_overlay_command, unmap_overlay_command)
13178 (simple_overlay_update): Use all_objfiles.
13179 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
13180 * printcmd.c (info_symbol_command): Use all_objfiles.
13181 * objfiles.h (ALL_OBJSECTIONS): Remove.
13182 * maint.c (maintenance_translate_address): Use all_objfiles.
13183 * gcore.c (gcore_create_callback): Use all_objfiles.
13184 (objfile_find_memory_regions): Likewise.
13185
13186 2019-01-09 Tom Tromey <tom@tromey.com>
13187
13188 * symtab.c (find_line_symtab, info_sources_command)
13189 (make_source_files_completion_list): Use objfile_compunits.
13190 * source.c (select_source_symtab): Use objfile_compunits.
13191 * objfiles.h (struct objfile): Update comment.
13192 (ALL_OBJFILES): Remove.
13193 (ALL_FILETABS): Remove.
13194 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
13195 objfile_compunits.
13196
13197 2019-01-09 Tom Tromey <tom@tromey.com>
13198
13199 * symmisc.c (print_objfile_statistics, dump_objfile)
13200 (maintenance_print_symbols): Use compunit_filetabs.
13201 * source.c (forget_cached_source_info_for_objfile): Use
13202 compunit_filetabs.
13203 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
13204 (ALL_FILETABS): Use compunit_filetabs.
13205 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
13206 * coffread.c (coff_symtab_read): Use compunit_filetabs.
13207
13208 2019-01-09 Tom Tromey <tom@tromey.com>
13209
13210 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
13211 (compunit_filetabs): New.
13212 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
13213 compunit_filetabs.
13214 (info_sources_command, make_source_files_completion_list): Remove
13215 declaration.
13216 * symmisc.c (print_objfile_statistics, dump_objfile)
13217 (maintenance_print_symbols): Remove declaration.
13218 (maintenance_info_symtabs): Use compunit_filetabs.
13219 (maintenance_info_line_tables): Likewise.
13220 * source.c (select_source_symtab): Change local variable name.
13221 (forget_cached_source_info_for_objfile): Remove declaration.
13222 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
13223 * objfiles.c (objfile_relocate1): Remove declaration.
13224 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13225 declaration.
13226 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
13227 * coffread.c (coff_symtab_read): Remove declaration.
13228 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
13229 compunit_filetabs.
13230
13231 2019-01-09 Tom Tromey <tom@tromey.com>
13232
13233 * symtab.c (lookup_objfile_from_block)
13234 (find_pc_sect_compunit_symtab, search_symbols)
13235 (default_collect_symbol_completion_matches_break_on): Use
13236 objfile_compunits.
13237 * objfiles.h (ALL_COMPUNITS): Remove.
13238 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
13239 * cp-support.c (add_symbol_overload_list_qualified): Use
13240 objfile_compunits.
13241 * ada-lang.c (ada_collect_symbol_completion_matches)
13242 (ada_add_global_exceptions): Use objfile_compunits.
13243
13244 2019-01-09 Tom Tromey <tom@tromey.com>
13245
13246 * source.c (select_source_symtab)
13247 (forget_cached_source_info_for_objfile): Remove declaration.
13248 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13249 declaration.
13250 * maint.c (count_symtabs_and_blocks): Remove declaration.
13251 * cp-support.c (add_symbol_overload_list_qualified): Remove
13252 declaration.
13253 * coffread.c (coff_symtab_read): Remove declaration.
13254 * symtab.c (lookup_symbol_in_objfile_symtabs)
13255 (basic_lookup_transparent_type_1): Use objfile_compunits.
13256 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
13257 (info_sources_command, search_symbols)
13258 (default_collect_symbol_completion_matches_break_on)
13259 (make_source_files_completion_list): Remove declaration.
13260 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
13261 (ada_collect_symbol_completion_matches)
13262 (ada_add_global_exceptions): Remove declaration.
13263 * linespec.c (iterate_over_all_matching_symtabs): Use
13264 objfile_compunits.
13265 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
13266 (class objfile_compunits): New.
13267 (ALL_COMPUNITS): Use objfile_compunits.
13268 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
13269 (maintenance_check_symtabs, maintenance_info_line_tables): Use
13270 objfile_compunits.
13271 * objfiles.c (objfile_relocate1): Use objfile_compunits.
13272
13273 2019-01-09 Tom Tromey <tom@tromey.com>
13274
13275 * symtab.c (search_symbols)
13276 (default_collect_symbol_completion_matches_break_on): Use
13277 objfile_msymbols.
13278 * ada-lang.c (ada_lookup_simple_minsym)
13279 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
13280 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
13281 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
13282 objfile_msymbols.
13283 * coffread.c (coff_symfile_read): Use objfile_msymbols.
13284 * symmisc.c (dump_msymbols): Use objfile_msymbols.
13285 * objc-lang.c (find_methods): Use objfile_msymbols.
13286 (info_selectors_command, info_classes_command): Likewise.
13287 * stabsread.c (scan_file_globals): Use objfile_msymbols.
13288 * objfiles.h (class objfile_msymbols): New.
13289 (ALL_OBJFILE_MSYMBOLS): Remove.
13290 (ALL_MSYMBOLS): Remove.
13291
13292 2019-01-09 Tom Tromey <tom@tromey.com>
13293
13294 * common/next-iterator.h (next_adapter): Add Iterator template
13295 parameter.
13296 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
13297 (class all_objfiles_safe): New.
13298 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
13299 * objfiles.c (put_objfile_before): Update comment.
13300 (add_separate_debug_objfile): Likewise.
13301 (free_all_objfiles): Use all_objfiles_safe.
13302 (objfile_purge_solibs): Likewise.
13303
13304 2019-01-09 Tom Tromey <tom@tromey.com>
13305
13306 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13307 (expand_symtab_containing_pc, lookup_static_symbol)
13308 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
13309 (find_symbol_at_address, find_line_symtab, find_main_name): Use
13310 all_objfiles.
13311 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
13312 * breakpoint.c (create_overlay_event_breakpoint)
13313 (create_longjmp_master_breakpoint)
13314 (create_std_terminate_master_breakpoint)
13315 (create_exception_master_breakpoint): Use all_objfiles.
13316 * linux-thread-db.c (try_thread_db_load_from_pdir)
13317 (has_libpthread): Use all_objfiles.
13318 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
13319 * linespec.c (iterate_over_all_matching_symtabs)
13320 (search_minsyms_for_name): Use all_objfiles.
13321 * maint.c (maintenance_info_sections): Use all_objfiles.
13322 * main.c (captured_main_1): Use all_objfiles.
13323 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
13324 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
13325 * guile/scm-pretty-print.c
13326 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
13327 * solib-spu.c (append_ocl_sos): Use all_objfiles.
13328 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
13329 (maintenance_print_msymbols): Use all_objfiles.
13330 * source.c (select_source_symtab): Use all_objfiles.
13331 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
13332 * symfile.c (remove_symbol_file_command)
13333 (expand_symtabs_matching, map_symbol_filenames): Use
13334 all_objfiles.
13335 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
13336 all_objfiles.
13337 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
13338 * objc-lang.c (find_methods): Use all_objfiles.
13339 * objfiles.c (have_partial_symbols, have_full_symbols)
13340 (have_minimal_symbols, qsort_cmp)
13341 (default_iterate_over_objfiles_in_search_order): Use
13342 all_objfiles.
13343 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
13344 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
13345 (maintenance_check_psymtabs): Use all_objfiles.
13346 (ALL_PSYMTABS): Remove.
13347 * compile/compile-object-run.c (do_module_cleanup): Use
13348 all_objfiles.
13349 * blockframe.c (find_pc_partial_function): Use all_objfiles.
13350 * cp-support.c (add_symbol_overload_list_qualified): Use
13351 all_objfiles.
13352 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13353 Use all_objfiles.
13354 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
13355 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
13356 all_objfiles.
13357 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13358 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
13359 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13360 Uses all_objfiles.
13361 * solib.c (solib_read_symbols): Use all_objfiles
13362
13363 2019-01-09 Tom Tromey <tom@tromey.com>
13364
13365 * probe.c (parse_probes_in_pspace): Use all_objfiles.
13366 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
13367 all_objfiles.
13368 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
13369 * symmisc.c (print_symbol_bcache_statistics)
13370 (print_objfile_statistics, maintenance_print_objfiles)
13371 (maintenance_info_symtabs, maintenance_check_symtabs)
13372 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
13373 all_objfiles.
13374 * source.c (forget_cached_source_info): Use all_objfiles.
13375 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
13376 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13377 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
13378 * objfiles.c (update_section_map): Use all_objfiles.
13379 (shared_objfile_contains_address_p): Likewise.
13380 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
13381 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
13382
13383 2019-01-09 Tom Tromey <tom@tromey.com>
13384
13385 * common/next-iterator.h: New file.
13386 * objfiles.h (class all_objfiles): New.
13387 (struct objfile_iterator): New.
13388
13389 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13390
13391 * NEWS: Move the description of the changed "frame", "select-frame",
13392 and "info frame" commands to the Changed commands section.
13393
13394 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
13395
13396 * gdbtypes.c (check_stub_method_group): Remove handling of old
13397 mangling schemes.
13398 * linespec.c (find_methods): Likewise.
13399 * stabsread.c (read_member_functions): Likewise.
13400 * valops.c (search_struct_method): Likewise.
13401 (value_struct_elt_for_reference): Likewise.
13402 * NEWS: Mention this change.
13403
13404 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13405
13406 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
13407 print_source_lines.
13408 * source.c (print_source_lines_base): Update line number check.
13409 (print_source_lines): New function.
13410 (source_lines_range::source_lines_range): New function.
13411 * source.h (class source_lines_range): New class.
13412 (print_source_lines): New declaration.
13413
13414 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13415
13416 * linespec.c (linespec_state_destructor): Free self->canonical_names.
13417
13418 2019-01-08 Tom Tromey <tom@tromey.com>
13419 Simon Marchi <simon.marchi@ericsson.com>
13420
13421 PR gdb/24060
13422 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
13423 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
13424 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13425 * f-exp.y (DOLLAR_VARIABLE): Likewise.
13426 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
13427 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13428
13429 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13430
13431 * source.c (select_source_symtab): Move header comment to
13432 declaration in source.h.
13433 (forget_cached_source_info_for_objfile): Likewise.
13434 (forget_cached_source_info): Likewise.
13435 (identify_source_line): Likewise.
13436 * source.h (identify_source_line): Move declaration from symtab.h
13437 and add comment from source.c
13438 (print_source_lines): Likewise.
13439 (forget_cached_source_info_for_objfile): Likewise.
13440 (forget_cached_source_info): Likewise.
13441 (select_source_symtab): Likewise.
13442 (enum print_source_lines_flag): Move definition from symtab.h.
13443 * symtab.h (identify_source_line): Move declaration to source.h.
13444 (print_source_lines): Likewise.
13445 (forget_cached_source_info_for_objfile): Likewise.
13446 (forget_cached_source_info): Likewise.
13447 (select_source_symtab): Likewise.
13448 (enum print_source_lines_flag): Move definition to source.h.
13449 * tui/tui-hooks.c: Add 'source.h' include.
13450
13451 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13452
13453 * source.c (print_source_lines_base): Handle requests to print
13454 reverse line number sequences, and guard against empty lines
13455 string.
13456
13457 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13458
13459 * source.c (print_source_lines_base): Fix skip of '\r' if next
13460 character is '\n'.
13461
13462 2019-01-06 Tom Tromey <tom@tromey.com>
13463
13464 * c-exp.y (struct c_parse_state) <macro_original_text,
13465 expansion_obstack>: New member.
13466 (macro_original_text, expansion_obstack): Remove globals.
13467 (scan_macro_expansion, scanning_macro_expansion)
13468 (finished_macro_expansion): Update.
13469 (scan_macro_cleanup): Remove.
13470 (yylex, c_parse): Update.
13471
13472 2019-01-06 Tom Tromey <tom@tromey.com>
13473
13474 * c-exp.y (struct c_parse_state) <strings>: New member.
13475 (operator_stoken): Update.
13476
13477 2019-01-06 Tom Tromey <tom@tromey.com>
13478
13479 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
13480 (union type_stack_elt) <typelist_val>: Now a pointer to
13481 std::vector.
13482 (type_stack_cleanup): Don't declare.
13483 (push_typelist): Update.
13484 * parse.c (pop_typelist): Return a std::vector.
13485 (push_typelist): Take a std::vector.
13486 (follow_types): Update. Do not free args.
13487 (type_stack_cleanup): Remove.
13488 * c-exp.y (struct c_parse_state): New.
13489 (cpstate): New global.
13490 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
13491 (nonempty_typelist): Update.
13492 (func_mod): Create a new vector.
13493 (c_parse): Create a c_parse_state.
13494 (check_parameter_typelist): Do not delete params.
13495 (function_method): Update. Do not delete type_list.
13496
13497 2019-01-06 Tom Tromey <tom@tromey.com>
13498
13499 PR gdb/28155:
13500 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
13501 check_typedef.
13502 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
13503 (print_return_value): Likewise.
13504
13505 2019-01-05 Tom Tromey <tom@tromey.com>
13506
13507 * contrib/cleanup_check.py: Remove.
13508 * contrib/gcc-with-excheck: Remove.
13509 * contrib/exsummary.py: Remove.
13510 * contrib/excheck.py: Remove.
13511
13512 2019-01-05 Joel Brobecker <brobecker@adacore.com>
13513
13514 * thread.c (delete_thread_1): Add gdb_assert that THR is not
13515 NULL. Initialize tpprev to NULL instead of assigning it
13516 to NULL on the next statement.
13517 * windows-nat.c (windows_delete_thread): Remove check for
13518 main_thread_id before printing thread exit notifications.
13519 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
13520 Remove thread ID check against main_thread_id.
13521 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
13522 windows_delete_thread.
13523 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
13524
13525 2019-01-04 Tom Tromey <tom@tromey.com>
13526
13527 * compile/compile.c (_initialize_compile): Use upper case for
13528 metasyntactic variables.
13529 * symmisc.c (_initialize_symmisc): Use upper case for
13530 metasyntactic variables.
13531 * psymtab.c (_initialize_psymtab): Use upper case for
13532 metasyntactic variables.
13533 * demangle.c (demangle_command): Use upper case for metasyntactic
13534 variables.
13535 (_initialize_demangler): Likewise.
13536 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
13537 variables.
13538
13539 2019-01-03 Tom Tromey <tom@tromey.com>
13540
13541 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
13542
13543 2019-01-03 Tom Tromey <tom@tromey.com>
13544
13545 * python/py-symtab.c (salpy_str): Update.
13546 (struct salpy_sal_object) <symtab>: Now a PyObject.
13547 (salpy_dealloc): Update.
13548 (del_objfile_sal): Use gdbpy_ref.
13549
13550 2019-01-03 Tom Tromey <tom@tromey.com>
13551
13552 * python/py-type.c (convert_field): Use new_reference. Return
13553 gdbpy_ref.
13554 (make_fielditem): Return gdbpy_ref.
13555 (typy_fields): Update.
13556 (typy_getitem): Update.
13557 (field_name): Return gdbpy_ref. Use new_reference.
13558 (typy_iterator_iternext): Update.
13559
13560 2019-01-03 Tom Tromey <tom@tromey.com>
13561
13562 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
13563
13564 2019-01-03 Tom Tromey <tom@tromey.com>
13565
13566 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
13567 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
13568 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
13569 (pspy_set_frame_filters, pspy_set_frame_unwinders)
13570 (pspy_set_type_printers): Likewise.
13571 * python/py-function.c (fnpy_init): Use gdbpy_ref.
13572 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
13573 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
13574 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
13575 (objfpy_set_type_printers): Likewise.
13576
13577 2019-01-03 Tom Tromey <tom@tromey.com>
13578
13579 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
13580 (gdbpy_print_stack): Use gdbpy_err_fetch.
13581 * python/python-internal.h (class gdbpy_err_fetch): New class.
13582 (class gdbpy_enter) <m_error_type, m_error_value,
13583 m_error_traceback>: Remove.
13584 <m_error>: New member.
13585 (gdbpy_exception_to_string): Don't declare.
13586 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
13587 * python/py-value.c (convert_value_from_python): Use
13588 gdbpy_err_fetch.
13589 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
13590 gdbpy_exception_to_string.
13591 (gdbpy_handle_exception): Use gdbpy_err_fetch.
13592 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
13593 gdbpy_err_fetch.
13594
13595 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13596
13597 * linux-nat.c (delete_lwp_cleanup): Delete.
13598 (struct lwp_deleter): New struct.
13599 (lwp_info_up): New typedef.
13600 (linux_nat_target::follow_fork): Delete cleanup, and make use of
13601 lwp_info_up.
13602
13603 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13604
13605 * linux-fork.c (class scoped_switch_fork_info): New class.
13606 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
13607
13608 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13609
13610 * valops.c (find_overload_match): Remove use of null_cleanup, and
13611 calls to do_cleanups.
13612
13613 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13614
13615 * compile/compile-cplus-types.c
13616 (compile_cplus_instance::decl_name): Handle changes to
13617 cp_func_name.
13618 * cp-support.c (cp_func_name): Update header comment, update
13619 return type.
13620 * cp-support.h (cp_func_name): Update return type in declaration.
13621 * valops.c (find_overload_match): Move temp_func local to top
13622 level of function and change its type. Use temp_func to hold and
13623 delete temporary string obtained from cp_func_name.
13624
13625 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13626
13627 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
13628 gdb::char_vector, remove cleanup, and update uses of `msg`.
13629
13630 2019-01-03 Jim Wilson <jimw@sifive.com>
13631
13632 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
13633
13634 2019-01-02 Tom Tromey <tom@tromey.com>
13635
13636 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
13637 (tdesc_parse_xml): Remove cleanups.
13638 * target-descriptions.h (make_cleanup_free_target_description):
13639 Don't declare.
13640 (target_desc_deleter): New struct.
13641 (target_desc_up): New typedef.
13642 * target-descriptions.c (target_desc_deleter::operator()): Rename
13643 from free_target_description.
13644 (make_cleanup_free_target_description): Remove.
13645
13646 2019-01-02 Tom Tromey <tom@tromey.com>
13647
13648 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
13649 constructor, destructor.
13650 (linespec_parser): Remove typedef.
13651 (~linespec_parser): Rename from linespec_parser_delete.
13652 (linespec_lex_to_end, linespec_complete_label)
13653 (linespec_complete): Update.
13654 (decode_line_full): Remove cleanups.
13655 (decode_line_1): Update.
13656
13657 2019-01-02 Tom Tromey <tom@tromey.com>
13658
13659 * python/python-internal.h (inferior_to_inferior_object): Change
13660 return type.
13661 * python/py-exitedevent.c (create_exited_event_object): Update.
13662 * python/py-inferior.c (inferior_to_inferior_object): Return
13663 gdbpy_ref.
13664 (python_new_inferior, python_inferior_deleted)
13665 (thread_to_thread_object, delete_thread_object)
13666 (build_inferior_list, gdbpy_selected_inferior): Update.
13667 * python/py-infthread.c (create_thread_object): Update. Also fail
13668 if inferior_to_inferior_object fails.
13669
13670 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
13671
13672 * inferior.h (class inferior) <displaced_step_state>: New field.
13673 * infrun.h (struct displaced_step_state): Move here from
13674 infrun.c. Initialize fields, add constructor.
13675 <inf>: Remove field.
13676 <reset>: New method.
13677 * infrun.c (struct displaced_step_inferior_state): Move to
13678 infrun.h.
13679 (displaced_step_inferior_states): Remove.
13680 (get_displaced_stepping_state): Adust.
13681 (displaced_step_in_progress_any_inferior): Adjust.
13682 (displaced_step_in_progress_thread): Adjust.
13683 (displaced_step_in_progress): Adjust.
13684 (add_displaced_stepping_state): Remove.
13685 (get_displaced_step_closure_by_addr): Adjust.
13686 (remove_displaced_stepping_state): Remove.
13687 (infrun_inferior_exit): Call displaced_step_state.reset.
13688 (use_displaced_stepping): Don't check for NULL.
13689 (displaced_step_prepare_throw): Call
13690 get_displaced_stepping_state.
13691 (displaced_step_fixup): Don't check for NULL.
13692 (prepare_for_detach): Don't check for NULL.
13693
13694 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13695
13696 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
13697 in case of call that did not complete.
13698
13699 2019-01-02 Andrey Utkin <autkin@undo.io>
13700
13701 * symfile.c (find_separate_debug_file): Fix search of debug files for
13702 remote debuggee.
13703
13704 2019-01-02 Tom Tromey <tom@tromey.com>
13705
13706 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
13707 indentation.
13708 * python/py-frame.c (frapy_older): Remove cast.
13709 (frapy_newer): Likewise.
13710 * python/py-breakpoint.c (local_setattro): Remove cast.
13711 * python/py-arch.c (archpy_name): Remove local variable.
13712 * python/py-type.c (gdbpy_lookup_type): Remove cast.
13713
13714 2019-01-02 Joel Brobecker <brobecker@adacore.com>
13715
13716 * unittests/basic_string_view/element_access/char/empty.cc:
13717 Fix year range in copyright header.
13718
13719 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
13720
13721 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
13722 Delete.
13723 <operator==>: Update with for removed field.
13724 <hash>: Likewise.
13725 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
13726 <isa_features>: ...this.
13727 <abi_features>: New field.
13728 (riscv_isa_flen): Update comment.
13729 (riscv_abi_xlen): New declaration.
13730 (riscv_abi_flen): New declaration.
13731 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
13732 isa_features.
13733 (riscv_abi_xlen): New function.
13734 (riscv_isa_flen): Update to get answer from isa_features.
13735 (riscv_abi_flen): New function.
13736 (riscv_has_fp_abi): Update to get answer from abi_features.
13737 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
13738 xlen and flen.
13739 (riscv_call_info) <xlen, flen>: Update comment.
13740 (riscv_call_arg_struct): Remove invalid assertions
13741 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
13742 is removed.
13743 (riscv_gdbarch_init): Gather isa features and abi features
13744 separately, ensure both match on the gdbarch when reusing an old
13745 gdbarch. Relax an error check to allow 32-bit abi float to run on
13746 a target with 64-bit float hardware.
13747
13748 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13749
13750 * source.c (search_command_helper): Stop reverse search
13751 when line 1 has been searched.
13752
13753 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13754
13755 * record-full.c (record_full_base_target::close): Rewrite
13756 record_full_core_buf_list free logic.
13757
13758 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13759
13760 * break-catch-syscall.c (print_one_catch_syscall): xfree
13761 the last text.
13762
13763 2019-01-01 Joel Brobecker <brobecker@adacore.com>
13764
13765 * top.c (print_gdb_version): Update Copyright year in version
13766 message.
13767
13768 2019-01-01 Joel Brobecker <brobecker@adacore.com>
13769
13770 Update copyright year range in all GDB files.
13771
13772 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
13773
13774 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
13775
13776 For older changes see ChangeLog-2018.
13777 \f
13778 Local Variables:
13779 mode: change-log
13780 left-margin: 8
13781 fill-column: 74
13782 version-control: never
13783 coding: utf-8
13784 End:
13785
This page took 0.291028 seconds and 5 git commands to generate.