Document the GDB 8.3.1 release in gdb/ChangeLog
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ffea1427
JB
12019-09-20 Joel Brobecker <brobecker@adacore.com>
2
3 GDB 8.3.1 released.
4
abf516c6
UW
52019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
6
7 * NEWS: Mention that Cell/B.E. debugging support was removed.
8 * MAINTAINERS: Remove spu target.
9
10 * config/djgpp/fnchange.lst: Remove entries for removed files.
11
12 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
13 spu-multiarch.o, and spu-tdep.o.
14 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
15 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
16 spu-multiarch.c, and spu-tdep.c.
17 * spu-linux-nat.c: Remove file.
18 * spu-multiarch.c: Remove file.
19 * spu-tdep.c: Remove file.
20 * spu-tdep.h: Remove file.
21 * solib-spu.c: Remove file.
22 * solib-spu.h: Remove file.
23
24 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
25 * configure.nat (spu-linux): Remove.
26 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
27 solib-multiarch.o from gdb_target_obs.
28 (spu*-*-*): Remove.
29
30 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
31 feature flag.
32 (ppc_linux_no_features): Update.
33 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
34 Cell/B.E. support.
35 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
36 (tdesc_powerpc_cell64l): Likewise.
37 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
38 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
39 Cell/B.E. support.
40 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
41 Do not include "features/rs6000/powerpc-cell32l.c" or
42 "features/rs6000/powerpc-cell64l.c".
43 (ppc_linux_spu_section): Remove.
44 (ppc_linux_core_read_description): Remove Cell/B.E. support.
45 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
46 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
47 (ppc_linux_spe_context_lookup): Remove.
48 (ppc_linux_spe_context_inferior_created): Remove.
49 (ppc_linux_spe_context_solib_loaded): Remove.
50 (ppc_linux_spe_context_solib_unloaded): Remove.
51 (ppc_linux_spe_context): Remove.
52 (struct ppu2spu_cache): Remove.
53 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
54 (struct ppu2spu_data): Remove.
55 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
56 ppu2spu_unwind): Remove.
57 (ppc_linux_init_abi): Remove Cell/B.E. support.
58 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
59
60 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
61 (rs6000/powerpc-cell64l-expedite): Likewise
62 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
63 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
64 rs6000/powerpc-cell64l.xml.
65 * features/rs6000/powerpc-cell32l.xml: Remove.
66 * features/rs6000/powerpc-cell64l.xml: Likewise.
67 * features/rs6000/powerpc-cell32l.c: Remove generated file.
68 * features/rs6000/powerpc-cell64l.c: Likewise.
69 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
70 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
71 * regformats/reg-spu.dat: Remove.
72
73 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
74 * corelow.c (struct spuid_list): Remove.
75 (add_to_spuid_list): Remove.
76 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
77 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
78 (remote_protocol_features): Remove associated entries.
79 (_initialize_remote): No longer initialize them.
80 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
81 * linux-nat.c (SPUFS_MAGIC): Remove.
82 (linux_proc_xfer_spu): Remove.
83 (spu_enumerate_spu_ids): Remove.
84 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
85 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
86 (linux_make_corefile_notes): No longer call it.
87
88 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
89 (cooked_write_test): Likewise.
90
78e8cb91
TT
912019-09-20 Tom Tromey <tom@tromey.com>
92
93 * NEWS: Mention case-sensitivity of TUI commands.
94 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
95 (tui_set_win_height_command, parse_scrolling_args): Likewise.
96 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
97
f074b67e
TT
982019-09-20 Tom Tromey <tom@tromey.com>
99
100 * tui/tui-source.c (tui_source_window::set_contents): Use
101 make_unique_xstrdup.
102 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
103 make_unique_xstrdup.
104
63c4bf19
TT
1052019-09-20 Tom Tromey <tom@tromey.com>
106
107 * tui/tui-data.c: Remove separator comments.
108 * tui/tui-layout.c: Remove separator comments.
109 * tui/tui-win.c: Remove separator comments.
110 * tui/tui-wingeneral.c: Remove separator comments.
111
43df9b2f
TT
1122019-09-20 Tom Tromey <tom@tromey.com>
113
114 * tui/tui.h (strcat_to_buf): Don't declare.
115 * tui/tui.c (strcat_to_buf): Remove.
116
7226433c
TT
1172019-09-20 Tom Tromey <tom@tromey.com>
118
119 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
120 from "fullname".
121 * tui/tui-source.c (tui_source_window::set_contents)
122 (tui_source_window::location_matches_p)
123 (tui_source_window::maybe_update): Update.
124
80df3337
TT
1252019-09-20 Tom Tromey <tom@tromey.com>
126
127 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
128 Update.
129 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
130 prefix.
131 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
132 (tui_data_window::line_from_reg_element_no)
133 (tui_data_window::first_reg_element_no_inline)
134 (tui_data_window::show_registers)
135 (tui_data_window::show_register_group)
136 (tui_data_window::display_registers_from)
137 (tui_data_window::display_registers_from_line)
138 (tui_data_window::first_data_item_displayed)
139 (tui_data_window::delete_data_content_windows)
140 (tui_data_window::erase_data_content)
141 (tui_data_window::do_scroll_vertical)
142 (tui_data_window::refresh_window)
143 (tui_data_window::check_register_values): Update.
144
9923f347
TT
1452019-09-20 Tom Tromey <tom@tromey.com>
146
147 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
148 (struct tui_locator_window) <full_name, proc_name>: Now
149 std::string.
150 * tui/tui-stack.c (tui_locator_window::make_status_line)
151 (tui_locator_window::set_locator_fullname)
152 (tui_locator_window::set_locator_info): Update.
153 * tui/tui-source.c (tui_source_window::set_contents)
154 (tui_source_window::showing_source_p): Update.
155
b76251ab
TT
1562019-09-20 Tom Tromey <tom@tromey.com>
157
158 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
159 Don't call tui_locator_win_info_ptr.
160
0891be08
TT
1612019-09-20 Tom Tromey <tom@tromey.com>
162
163 * tui/tui-win.c (tui_resize_all): Don't call refresh.
164
1b935acf
TT
1652019-09-20 Tom Tromey <tom@tromey.com>
166
167 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
168 height for locator.
169 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
170 * tui/tui-layout.c (show_source_disasm_command, show_data)
171 (show_source_or_disasm_and_command): Use 1 as height for locator.
172
9abd8a65
TT
1732019-09-20 Tom Tromey <tom@tromey.com>
174
175 * tui/tui.c (tui_enable): Update.
176 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
177 Update.
178 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
179 Update.
180 * tui/tui-data.c (win_resized): Now bool.
181 (tui_win_resized): Return bool.
182 (tui_set_win_resized_to): Accept a bool.
183
b5457826
TT
1842019-09-20 Tom Tromey <tom@tromey.com>
185
186 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
187 Change type of "refresh_values_only".
188 * tui/tui-regs.c (tui_data_window::show_register_group): Change
189 type of "refresh_values_only".
190
6b915f7d
TT
1912019-09-20 Tom Tromey <tom@tromey.com>
192
193 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
194 std::string.
195 (tui_disassemble): Add "pos" parameter.
196 (tui_disasm_window::set_contents): Simplify.
197
2ad52f6f
TT
1982019-09-20 Tom Tromey <tom@tromey.com>
199
200 * tui/tui-winsource.h (struct tui_source_window_base)
201 <show_source_content>: Now private.
202 * tui/tui-winsource.c
203 (tui_source_window_base::show_source_content): Don't handle empty
204 content case.
205
b3b1bde6
TT
2062019-09-20 Tom Tromey <tom@tromey.com>
207
208 * tui/tui-layout.c (show_source_disasm_command)
209 (show_source_or_disasm_and_command): Don't call
210 show_source_content.
211
71a25ed2
TT
2122019-09-20 Tom Tromey <tom@tromey.com>
213
214 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
215 Declare.
216 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
217 from tui_make_status_line.
218 (tui_locator_window::rerender): Update.
219
f8532154
TT
2202019-09-20 Tom Tromey <tom@tromey.com>
221
222 * tui/tui-stack.c (tui_make_status_line): Return std::string.
223 (tui_locator_window::rerender): Update.
224
2d81b349
TT
2252019-09-20 Tom Tromey <tom@tromey.com>
226
227 * tui/tui-winsource.h (struct tui_source_window_base)
228 <~tui_source_window_base>: Don't declare.
229 <fullname>: Remove.
230 * tui/tui-winsource.c (~tui_source_window_base): Remove.
231 * tui/tui-source.h (struct tui_source_window) <fullname>: New
232 member.
233 * tui/tui-source.c (tui_source_window::set_contents): Update.
234 (tui_source_window::location_matches_p)
235 (tui_source_window::maybe_update): Update.
236
f14bec58
TT
2372019-09-20 Tom Tromey <tom@tromey.com>
238
239 * tui/tui-winsource.h (~tui_source_element): Remove.
240 (tui_source_element): Update.
241 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
242 * tui/tui-winsource.c (tui_show_source_line): Update.
243 * tui/tui-source.c (tui_source_window::set_contents): Update.
244 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
245
78d5933a
TT
2462019-09-20 Tom Tromey <tom@tromey.com>
247
248 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
249 declare.
250 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
251 tui_clear_source_windows_detail.
252 * tui/tui-winsource.h (struct tui_source_window_base)
253 <clear_detail>: Don't declare.
254 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
255 Remove.
256 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
257
d4207696
TT
2582019-09-20 Tom Tromey <tromey@adacore.com>
259
260 PR ada/24919:
261 * block.c (contained_in): Fix final return value.
262
00f93c44
AM
2632019-09-20 Alan Modra <amodra@gmail.com>
264
265 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
266 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
267 (read_indirect_string_from_dwz): Use bfd accessor.
268 * dwarf2read.h (struct dwz_file <filename>): Likewise.
269 * machoread.c (macho_symfile_read_all_oso): Likewise.
270 * solib.c (solib_bfd_open): Likewise.
271
e4153ae6
CB
2722019-09-19 Christian Biesinger <cbiesinger@google.com>
273
274 * eval.c: Move declaration of overload_resolution to...
275 * value.h: ...here.
276
c7ae7675
CB
2772019-09-19 Christian Biesinger <cbiesinger@google.com>
278
279 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
280 * arm-linux-tdep.c: Likewise.
281 * arm-nbsd-nat.c: Likewise.
282 * arm-tdep.h: Declare arm_apcs_32.
283 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
284
e86f08d2
CB
2852019-09-19 Christian Biesinger <cbiesinger@google.com>
286
287 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
288 * dwarf2read.h: Declare dwarf_always_disassemble.
289
f64e2f40
TV
2902019-09-19 Tom de Vries <tdevries@suse.de>
291
292 PR gdb/25009
293 * source-cache.c (source_cache::ensure): Catch exception thrown during
294 construction of the highlighter.
295
fd361982
AM
2962019-09-18 Alan Modra <amodra@gmail.com>
297
298 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
299 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
300 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
301 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
302 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
303 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
304 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
305 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
306 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
307 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
308 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
309 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
310 * solib-spu.c, * solib-svr4.c, * solib-target.c,
311 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
312 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
313 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
314 * mi/mi-interp.c: Update throughout for bfd section macro and
315 function changes.
316 * gcore (gcore_create_callback): Use bfd_set_section_lma.
317 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
318
11061048
TT
3192019-09-18 Tom Tromey <tom@tromey.com>
320
321 * NEWS: Add entry.
322 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
323 call rl_initialize.
324 (tui_enable): Do not call rl_initialize.
325
7a27b85f
CG
3262019-09-18 Christian Groessler <chris@groessler.org>
327
328 * alpha-linux-nat.c: Include gdbarch.h.
329
f64eea3a
SM
3302019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
331
332 * ui-file.c: Include cli/cli-style.h.
333 (term_cli_styling): Remove cli_styling declaration.
334
e6f7f6d1
AM
3352019-09-18 Alan Modra <amodra@gmail.com>
336
337 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
338 to bfd_asymbol_section.
339
1d38e9d1
AM
3402019-09-18 Alan Modra <amodra@gmail.com>
341
342 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
343 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
344 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
345
90d92a63
AM
3462019-09-18 Alan Modra <amodra@gmail.com>
347
348 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
349 * spu-linux-nat.c (spu_bfd_open): Likewise.
350
a3d181d2
CB
3512019-09-18 Christian Biesinger <cbiesinger@google.com>
352
353 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
354 to bool to match definition in dwarf2read.c.
355
491144b5
CB
3562019-09-17 Christian Biesinger <cbiesinger@google.com>
357
358 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
359 (print_signatures): Likewise.
360 (trust_pad_over_xvs): Likewise.
361 * arch/aarch64-insn.c (aarch64_debug): Likewise.
362 * arch/aarch64-insn.h (aarch64_debug): Likewise.
363 * arm-linux-nat.c (arm_apcs_32): Likewise.
364 * arm-linux-tdep.c (arm_apcs_32): Likewise.
365 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
366 * arm-tdep.c (arm_debug): Likewise.
367 (arm_apcs_32): Likewise.
368 * auto-load.c (debug_auto_load): Likewise.
369 (auto_load_gdb_scripts): Likewise.
370 (global_auto_load): Likewise.
371 (auto_load_local_gdbinit): Likewise.
372 (auto_load_local_gdbinit_loaded): Likewise.
373 * auto-load.h (global_auto_load): Likewise.
374 (auto_load_local_gdbinit): Likewise.
375 (auto_load_local_gdbinit_loaded): Likewise.
376 * breakpoint.c (disconnected_dprintf): Likewise.
377 (breakpoint_proceeded): Likewise.
378 (automatic_hardware_breakpoints): Likewise.
379 (always_inserted_mode): Likewise.
380 (target_exact_watchpoints): Likewise.
381 (_initialize_breakpoint): Update.
382 * breakpoint.h (target_exact_watchpoints): Change to bool.
383 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
384 * cli/cli-cmds.c (trace_commands): Likewise.
385 * cli/cli-cmds.h (trace_commands): Likewise.
386 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
387 to bool*.
388 * cli/cli-logging.c (logging_overwrite): Change to bool.
389 (logging_redirect): Likewise.
390 (debug_redirect): Likewise.
391 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
392 (struct boolean_option_def) <get_var_address_cb_>: Change return type
393 to bool.
394 <boolean_option_def>: Update.
395 (struct flag_option_def): Change default type of Context to bool
396 from int.
397 <flag_option_def>: Change return type of var_address_cb_ to bool*.
398 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
399 (get_setshow_command_value_string): Likewise.
400 * cli/cli-style.c (cli_styling): Change to bool.
401 (source_styling): Likewise.
402 * cli/cli-style.h (source_styling): Likewise.
403 (cli_styling): Likewise.
404 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
405 to bool.
406 * command.h (var_types): Update comment.
407 (add_setshow_boolean_cmd): Change int* var argument to bool*.
408 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
409 bool.
410 (debug_compile_cplus_scopes): Likewise.
411 * compile/compile-internal.h (compile_debug): Likewise.
412 * compile/compile.c (compile_debug): Likewise.
413 (struct compile_options) <raw>: Likewise.
414 * cp-support.c (catch_demangler_crashes): Likewise.
415 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
416 (usr_cmd_cris_dwarf2_cfi): Likewise.
417 * csky-tdep.c (csky_debug): Likewise.
418 * darwin-nat.c (enable_mach_exceptions): Likewise.
419 * dcache.c (dcache_enabled_p): Likewise.
420 * defs.h (info_verbose): Likewise.
421 * demangle.c (demangle): Likewise.
422 (asm_demangle): Likewise.
423 * dwarf-index-cache.c (debug_index_cache): Likewise.
424 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
425 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
426 * dwarf2read.c (check_physname): Likewise.
427 (use_deprecated_index_sections): Likewise.
428 (dwarf_always_disassemble): Likewise.
429 * eval.c (overload_resolution): Likewise.
430 * event-top.c (set_editing_cmd_var): Likewise.
431 (exec_done_display_p): Likewise.
432 * event-top.h (set_editing_cmd_var): Likewise.
433 (exec_done_display_p): Likewise.
434 * exec.c (write_files): Likewise.
435 * fbsd-nat.c (debug_fbsd_lwp): Likewise
436 (debug_fbsd_nat): Likewise.
437 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
438 Likewise.
439 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
440 <backtrace_past_entry> Likewise.
441 * gdb-demangle.h (demangle): Likewise.
442 (asm_demangle): Likewise.
443 * gdb_bfd.c (bfd_sharing): Likewise.
444 * gdbcore.h (write_files): Likewise.
445 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
446 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
447 * gdbthread.h (print_thread_events): Likewise.
448 * gdbtypes.c (opaque_type_resolution): Likewise.
449 (strict_type_checking): Likewise.
450 * gnu-nat.c (gnu_debug_flag): Likewise.
451 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
452 * guile/scm-param.c (pascm_variable): Add boolval.
453 (add_setshow_generic): Update.
454 (pascm_param_value): Update.
455 (pascm_set_param_value_x): Update.
456 * hppa-tdep.c (hppa_debug): Change to bool..
457 * infcall.c (may_call_functions_p): Likewise.
458 (coerce_float_to_double_p): Likewise.
459 (unwind_on_signal_p): Likewise.
460 (unwind_on_terminating_exception_p): Likewise.
461 * infcmd.c (startup_with_shell): Likewise.
462 * inferior.c (print_inferior_events): Likewise.
463 * inferior.h (startup_with_shell): Likewise.
464 (print_inferior_events): Likewise.
465 * infrun.c (step_stop_if_no_debug): Likewise.
466 (detach_fork): Likewise.
467 (debug_displaced): Likewise.
468 (disable_randomization): Likewise.
469 (non_stop): Likewise.
470 (non_stop_1): Likewise.
471 (observer_mode): Likewise.
472 (observer_mode_1): Likewise.
473 (set_observer_mode): Update.
474 (sched_multi): Change to bool.
475 * infrun.h (debug_displaced): Likewise.
476 (sched_multi): Likewise.
477 (step_stop_if_no_debug): Likewise.
478 (non_stop): Likewise.
479 (disable_randomization): Likewise.
480 * linux-tdep.c (use_coredump_filter): Likewise.
481 (dump_excluded_mappings): Likewise.
482 * linux-thread-db.c (auto_load_thread_db): Likewise.
483 (check_thread_db_on_load): Likewise.
484 * main.c (captured_main_1): Update.
485 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
486 xx2_opt, boolean_opt>: Change to bool.
487 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
488 * maint.c (maintenance_profile_p): Likewise.
489 (per_command_time): Likewise.
490 (per_command_space): Likewise.
491 (per_command_symtab): Likewise.
492 * memattr.c (inaccessible_by_default): Likewise.
493 * mi/mi-main.c (mi_async): Likewise.
494 (mi_async_1): Likewise.
495 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
496 * nat/fork-inferior.h (startup_with_shell): Likewise.
497 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
498 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
499 * nios2-tdep.c (nios2_debug): Likewise.
500 * or1k-tdep.c (or1k_debug): Likewise.
501 * parse.c (parser_debug): Likewise.
502 * parser-defs.h (parser_debug): Likewise.
503 * printcmd.c (print_symbol_filename): Likewise.
504 * proc-api.c (procfs_trace): Likewise.
505 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
506 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
507 (set_parameter_value): Update.
508 (add_setshow_generic): Update.
509 * python/py-value.c (copy_py_bool_obj): Change argument from int*
510 to bool*.
511 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
512 int*.
513 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
514 * record-btrace.c (record_btrace_target::store_registers): Update.
515 * record-full.c (record_full_memory_query): Change to bool.
516 (record_full_stop_at_limit): Likewise.
517 * record-full.h (record_full_memory_query): Likewise.
518 * remote-notif.c (notif_debug): Likewise.
519 * remote-notif.h (notif_debug): Likewise.
520 * remote.c (use_range_stepping): Likewise.
521 (interrupt_on_connect): Likewise.
522 (remote_break): Likewise.
523 * ser-tcp.c (tcp_auto_retry): Likewise.
524 * ser-unix.c (serial_hwflow): Likewise.
525 * skip.c (debug_skip): Likewise.
526 * solib-aix.c (solib_aix_debug): Likewise.
527 * spu-tdep.c (spu_stop_on_load_p): Likewise.
528 (spu_auto_flush_cache_p): Likewise.
529 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
530 Likewise.
531 (struct info_print_options) <quiet>: Likewise.
532 * symfile-debug.c (debug_symfile): Likewise.
533 * symfile.c (auto_solib_add): Likewise.
534 (separate_debug_file_debug): Likewise.
535 * symfile.h (auto_solib_add): Likewise.
536 (separate_debug_file_debug): Likewise.
537 * symtab.c (basenames_may_differ): Likewise.
538 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
539 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
540 (struct info_types_options) <quiet>: Likewise.
541 * symtab.h (demangle): Likewise.
542 (basenames_may_differ): Likewise.
543 * target-dcache.c (stack_cache_enabled_1): Likewise.
544 (code_cache_enabled_1): Likewise.
545 * target.c (trust_readonly): Likewise.
546 (may_write_registers): Likewise.
547 (may_write_memory): Likewise.
548 (may_insert_breakpoints): Likewise.
549 (may_insert_tracepoints): Likewise.
550 (may_insert_fast_tracepoints): Likewise.
551 (may_stop): Likewise.
552 (auto_connect_native_target): Likewise.
553 (target_stop_and_wait): Update.
554 (target_async_permitted): Change to bool.
555 (target_async_permitted_1): Likewise.
556 (may_write_registers_1): Likewise.
557 (may_write_memory_1): Likewise.
558 (may_insert_breakpoints_1): Likewise.
559 (may_insert_tracepoints_1): Likewise.
560 (may_insert_fast_tracepoints_1): Likewise.
561 (may_stop_1): Likewise.
562 * target.h (target_async_permitted): Likewise.
563 (may_write_registers): Likewise.
564 (may_write_memory): Likewise.
565 (may_insert_breakpoints): Likewise.
566 (may_insert_tracepoints): Likewise.
567 (may_insert_fast_tracepoints): Likewise.
568 (may_stop): Likewise.
569 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
570 (make_thread_apply_all_options_def_group): Change argument from int*
571 to bool*.
572 (thread_apply_all_command): Update.
573 (print_thread_events): Change to bool.
574 * top.c (confirm): Likewise.
575 (command_editing_p): Likewise.
576 (history_expansion_p): Likewise.
577 (write_history_p): Likewise.
578 (info_verbose): Likewise.
579 * top.h (confirm): Likewise.
580 (history_expansion_p): Likewise.
581 * tracepoint.c (disconnected_tracing): Likewise.
582 (circular_trace_buffer): Likewise.
583 * typeprint.c (print_methods): Likewise.
584 (print_typedefs): Likewise.
585 * utils.c (debug_timestamp): Likewise.
586 (sevenbit_strings): Likewise.
587 (pagination_enabled): Likewise.
588 * utils.h (sevenbit_strings): Likewise.
589 (pagination_enabled): Likewise.
590 * valops.c (overload_resolution): Likewise.
591 * valprint.h (struct value_print_options) <prettyformat_arrays,
592 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
593 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
594 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
595 Likewise.
596 * windows-nat.c (new_console): Likewise.
597 (cygwin_exceptions): Likewise.
598 (new_group): Likewise.
599 (debug_exec): Likewise.
600 (debug_events): Likewise.
601 (debug_memory): Likewise.
602 (debug_exceptions): Likewise.
603 (useshell): Likewise.
604 * windows-tdep.c (maint_display_all_tib): Likewise.
605 * xml-support.c (debug_xml): Likewise.
606
f1b620e9
MG
6072019-09-17 Mike Gulick <mgulick@mathworks.com>
608
609 * source.c (prepare_path_for_appending): New function.
610 (openp): Make use of new function.
611 (find_and_open_source): Search for the compilation directory and
612 source file as a relative path beneath the directory search path.
613
67f3ed6a
AB
6142019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
615
616 * source-cache.c (source_cache::get_line_charpos): Catch
617 exceptions and return false, this matches the behaviour documented
618 in the header file.
619
74332189
JB
6202019-09-17 Joel Brobecker <brobecker@adacore.com>
621
622 * ada-tasks.c (info_task): Remove quoting of the task's name.
623
f2f24aa9
CB
6242019-09-16 Christian Biesinger <cbiesinger@google.com>
625
626 * symfile.c (auto_solib_add): Replace comment with a reference
627 to the header file.
628
6a062a93
CB
6292019-09-14 Christian Biesinger <cbiesinger@google.com>
630
631 * NEWS: Mention that gdb can now be compiled with Python 3
632 on Windows.
633
ec6c8338
AB
6342019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
635
636 * maint.c (maint_print_section_data::maint_print_section_data):
637 Force use of 'float log10 (float)' by casting the argument to
638 float.
639
aa17805f
AB
6402019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
641
642 * maint.c: Add 'cmath' include.
643 (struct maint_print_section_data): New structure.
644 (print_section_index): New function.
645 (print_bfd_section_info): Add header comment, small whitespace
646 cleanup, and update to call new print_section_index function.
647 (print_objfile_section_info): Likewise.
648 (maint_obj_section_from_bfd_section): New function.
649 (print_bfd_section_info_maybe_relocated): New function.
650 (maintenance_info_sections): Add header comment, always use
651 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
652
3dd9bb46
AB
6532019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
654
655 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
656 inner scope, add check that the objfile has psymtabs before
657 checking psymtabs_addrmap.
658 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
659
4993045d
PW
6602019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
661
662 * NEWS: Announce that Ada task names are now shown at more places,
663 and between quotes (except in info task output).
664 * gdb/ada-tasks.c (task_to_str): New function.
665 (display_current_task_id): Call task_to_str.
666 (task_command_1): Likewise.
667 (print_ada_task_info): In non-mi mode, Properly align headers and data
668 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
669
7a289707
RO
6702019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
671
672 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
673 prstatus.pr_lwp.pr_info instead of making it up.
674
f2aec7f6
CB
6752019-09-11 Christian Biesinger <cbiesinger@google.com>
676
677 * auto-load.c (auto_load_expand_dir_vars): Update.
678 * defs.h (gdb_datadir): Change to std::string.
679 (python_libdir): Likewise.
680 (relocate_gdb_directory): Change return type to std::string.
681 * guile/guile.c (gdbscm_data_directory): Update.
682 (initialize_scheme_side): Update.
683 * jit.c (jit_reader_dir): Change to std::string.
684 (jit_reader_load_command): Update.
685 * main.c (gdb_datadir): Change to std::string.
686 (python_libdir): Likewise.
687 (set_gdb_data_directory): Update.
688 (relocate_path): Change to return std::string.
689 (relocate_gdb_directory): Change to return std::string.
690 (relocate_gdbinit_path_maybe_in_datadir): Update.
691 (captured_main_1): Update.
692 * python/python.c (do_start_initialization): Update.
693 * top.c (show_gdb_datadir): Update.
694 * xml-syscall.c (xml_init_syscalls_info): Update.
695 (init_syscalls_info): Update.
696
9224a013
CB
6972019-09-11 Christian Biesinger <cbiesinger@google.com>
698
699 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
700 out of get_init_files.
701 (get_init_files): Update.
702
f48cd836
CB
7032019-09-11 Christian Biesinger <cbiesinger@google.com>
704
705 * main.c (get_init_files): Change to use std::string.
706 (captured_main_1): Update.
707 (print_gdb_help): Update.
708
9cab7ecd
AT
7092019-09-11 Ali Tamur <tamur@google.com>
710
711 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
712 implementation.
713
67547d89
CB
7142019-09-11 Christian Biesinger <cbiesinger@google.com>
715
716 * dbxread.c (read_dbx_symtab): Update.
717 * dwarf2read.c (load_partial_dies): Update.
718 * mdebugread.c (parse_partial_symbols): Update.
719 (handle_psymbol_enumerators): Update.
720 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
721 * psymtab.c (add_psymbol_to_bcache): Likewise.
722 (add_psymbol_to_list): Likewise.
723 * symtab.c (symbol_set_names): Likewise.
724 * symtab.h (symbol_set_names): Likewise.
725 * xcoffread.c (scan_xcoff_symtab): Update.
726
64b2d4a0
TT
7272019-09-11 Tom Tromey <tom@tromey.com>
728
729 * symfile-mem.c (symbol_file_add_from_memory): Use
730 bfd_set_filename.
731 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
732 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
733
3b00ef10
TT
7342019-09-10 Tom Tromey <tromey@adacore.com>
735
736 * dwarf-index-write.c (write_psymbols): Extend error message.
737 (debug_names::insert): Add Ada code.
738 (debug_names::write_psymbols): Remove Ada check.
739 (debug_names) <m_string_obstack>: New member.
740 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
741 (gdb_index_symbol_name_matcher::matches): Remove.
742 (mapped_index_base::find_name_components_bounds): Add "lang"
743 parameter.
744 (mapped_index_base::build_name_components): Also split names
745 according to Ada syntax.
746 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
747 type of "match_callback".
748 (check_match, check_find_bounds_finds)
749 (dw2_expand_symtabs_matching): Update.
750 (dw2_debug_names_iterator): Add new constructor.
751 (dw2_debug_names_map_matching_symbols): New function.
752 (dw2_debug_names_expand_symtabs_matching): Update.
753 (dwarf2_debug_names_functions): Use
754 dw2_debug_names_map_matching_symbols.
755
aa391654
TT
7562019-09-10 Tom Tromey <tromey@adacore.com>
757
758 * dwarf2read.c (dw2_get_file_names_reader): Add the
759 CU's file name to the results.
760
b054970d
TT
7612019-09-10 Tom Tromey <tromey@adacore.com>
762
763 * ada-lang.c (add_nonlocal_symbols): Combine calls to
764 map_matching_symbols. Update.
765 * dwarf2read.c (dw2_map_matching_symbols): Update.
766 * psymtab.c (match_partial_symbol): Change type; update.
767 (psym_map_matching_symbols): Likewise.
768 * symfile-debug.c (debug_qf_map_matching_symbols): Change
769 type; update.
770 * symfile.h (struct quick_symbol_functions)
771 <map_matching_symbols>: Change "name" to be a lookup_name_info.
772 Remove "match".
773
6a3dbf1b
TT
7742019-09-10 Tom Tromey <tromey@adacore.com>
775
776 * psymtab.c (map_block): Remove.
777 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
778 * symtab.c (iterate_over_symbols_terminated): New function.
779 * symtab.c (iterate_over_symbols_terminated): Declare.
780
6969f124
TT
7812019-09-10 Tom Tromey <tromey@adacore.com>
782
783 * ada-lang.c (ada_iterate_over_symbols): Return bool.
784 * language.h (struct language_defn) <la_iterate_over_symbols>:
785 Return bool.
786 * symtab.c (iterate_over_symbols): Return bool.
787 * symtab.h (iterate_over_symbols): Return bool.
788
199b4314
TT
7892019-09-10 Tom Tromey <tromey@adacore.com>
790
791 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
792 (add_nonlocal_symbols): Update.
793 * dwarf2read.c (dw2_map_matching_symbols): Change type.
794 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
795 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
796 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
797 Change type of "callback". Remove "data".
798
a084a2a6
AT
799
8002019-09-09 Ali Tamur <tamur@google.com>
801
802 * dwarf2read.c (comp_unit_head): Update comment.
803 (dwarf2_dwo_name): New function declaration.
804 (dwarf_unit_type_name): New function declaration.
805 (read_comp_unit_head): Add support for new compilation units,
806 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
807 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
808 (currently named as "signature") in their header. Also clarify error
809 messages.
810 (lookup_dwo_id): New function. Returns the dwo id of the given
811 compile unit.
812 (lookup_dwo_unit): Use the new lookup_dwo_id function.
813 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
814 functions.
815 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
816 (dwarf2_dwo_name): Get the dwo name if present.
817 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
818 purposes.
819
25a2915e
TT
8202019-09-09 Tom Tromey <tom@tromey.com>
821
822 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
823
e4df0874
PW
8242019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
825
826 * python/python.c (do_start_initialization): Make progname_copy static,
827 to avoid a leak report.
828
8634b462
TT
8292019-09-08 Tom Tromey <tom@tromey.com>
830
831 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
832
c7f839cb
SM
8332019-09-07 Simon Marchi <simon.marchi@efficios.com>
834
835 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
836 Change type to gdb::optional<block_enum>.
837 (dw2_symtab_iter_init): Change block_index parameter type
838 to gdb::optional<block_enum>.
839 (dw2_lookup_symbol): Change block_index parameter
840 type to block_enum.c
841 (dw2_debug_names_lookup_symbol): Likewise.
842 * psymtab.c (psym_lookup_symbol): Likewise.
843 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
844 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
845 Likewise.
846
ead0e69a
CB
8472019-09-06 Christian Biesinger <cbiesinger@google.com>
848
849 * defs.h (relocate_gdb_directory): Change int to bool in
850 signature and rename flag to relocatable.
851 * main.c (relocate_path): Likewise.
852 (relocate_gdb_directory): Likewise.
853
b16c44de
AM
8542019-09-06 Alan Modra <amodra@gmail.com>
855
856 * coffread.c (coff_symfile_read): Constify filename variable.
857 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
858 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
859 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
860 * solib.c (reload_shared_libraries_1): Likewise.
861 * symfile.c (reread_symbols): Likewise.
862 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
863 * solib-darwin.c (darwin_bfd_open): Likewise.
864 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
865
06ff036e
AB
8662019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
867
868 * psymtab.c (print_partial_symbols): Handle missing domain_enum
869 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
870
4e962e74
TT
8712019-09-03 Tom Tromey <tromey@adacore.com>
872
873 * ada-valprint.c (ada_val_print_num): Don't recurse for range
874 types.
875 (has_negatives): Unbias a range type bound.
876 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
877 * gdbtypes.c (operator==): Handle new field.
878 (create_range_type): Add "bias" parameter.
879 (create_static_range_type, resolve_dynamic_range): Update.
880 * gdbtypes.h (struct range_bounds) <bias>: New member.
881 (create_range_type): Add bias parameter.
882 * printcmd.c (print_scalar_formatted): Unbias range types.
883 * value.c (unpack_long): Unbias range types.
884 (pack_long): Bias range types.
885
d90b8f26
AH
8862019-09-02 Alan Hayward <alan.hayward@arm.com>
887
888 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
889 probe arguments.
890
fe01123e
AH
8912019-09-02 Alan Hayward <alan.hayward@arm.com>
892
893 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
894 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
895 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
896 (compile_probe_arg): Likewise.
897 * probe.h (get_argument_count): Likewise.
898 * solib-svr4.c (solib_event_probe_action): Likewise.
899 * stap-probe.c (stap_probe::get_argument_count): Likewise.
900
e661ef01
AH
9012019-09-02 Alan Hayward <alan.hayward@arm.com>
902
903 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
904 code to here...
905 (svr4_create_solib_event_breakpoints): ...from here.
906
47a536d9
SDJ
9072019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
908
909 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
910 suffix from warning message.
911
d6a00eba
TT
9122019-08-30 Tom Tromey <tom@tromey.com>
913
914 * tui/tui-winsource.h (struct tui_source_window_base)
915 <refresh_all>: Don't declare.
916 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
917 Remove.
918 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
919 tui_show_locator_content.
920 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
921 declare.
922 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
923 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
924 declare.
925
55b2657b
TT
9262019-08-30 Tom Tromey <tom@tromey.com>
927
928 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
929
12a8555a
TT
9302019-08-30 Tom Tromey <tom@tromey.com>
931
932 * tui/tui-stack.c (_initialize_tui_stack): Move later.
933 Remove unnecessary forward declarations.
934
900ac242
TT
9352019-08-30 Tom Tromey <tom@tromey.com>
936
937 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
938 rerender.
939 (tui_update_locator_fullname, tui_show_frame_info): Don't call
940 tui_show_locator_content.
941
99ab33fb
TT
9422019-08-30 Tom Tromey <tom@tromey.com>
943
944 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
945 (tui_locator_window::rerender): Rewrite using body of previous
946 tui_show_locator_content.
947
e594a5d1
TT
9482019-08-30 Tom Tromey <tom@tromey.com>
949
950 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
951 set_locator_fullname>: New methods.
952 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
953 Rename from tui_set_locator_fullname.
954 (tui_locator_window::set_locator_info): Rename from
955 tui_set_locator_info. Return bool.
956 (tui_update_locator_fullname, tui_show_frame_info): Update.
957
715bb467
TT
9582019-08-30 Tom Tromey <tom@tromey.com>
959
960 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
961
772f3f03
TT
9622019-08-30 Tom Tromey <tom@tromey.com>
963
964 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
965 call touchwin.
966
108e13ab
TT
9672019-08-30 Tom Tromey <tom@tromey.com>
968
969 * tui/tui-wingeneral.c (box_win): Assume win_info and
970 win_info->handle cannot be NULL.
971
cdaa6eb4
TT
9722019-08-30 Tom Tromey <tom@tromey.com>
973
974 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
975 refresh_window>: Declare.
976 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
977 resize.
978 (tui_data_item_window::rerender): Rename from
979 tui_display_register.
980 (tui_data_item_window::refresh_window): New method.
981 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
982 no-op.
983
89df7f90
TT
9842019-08-30 Tom Tromey <tom@tromey.com>
985
986 * tui/tui-regs.h (struct tui_data_window) <regs_content,
987 regs_column_count, current_group>: Move later. Now private.
988 <get_current_group>: New method.
989 * tui/tui-regs.c (tui_reg_command): Update.
990 * tui/tui-layout.c (tui_set_layout): Update.
991
1bf2866a
TT
9922019-08-30 Tom Tromey <tom@tromey.com>
993
994 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
995 (tui_data_window::rerender): Don't call
996 check_and_display_highlight_if_needed.
997 (tui_data_window::refresh_all): Remove call to
998 erase_data_content.
999
0670413d
TT
10002019-08-30 Tom Tromey <tom@tromey.com>
1001
1002 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1003 (tui_data_window::display_registers_from)
1004 (tui_data_window::display_reg_element_at_line)
1005 (tui_data_window::display_registers_from_line): Remove checks of
1006 "empty".
1007
18bb55c7
TT
10082019-08-30 Tom Tromey <tom@tromey.com>
1009
1010 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
1011 Don't declare.
1012 * tui/tui-regs.c (tui_data_window::show_registers): Call
1013 rerender.
1014 (tui_data_window::rerender): Rename from display_all_data.
1015 (tui_data_window::rerender): Remove old implementation.
1016
1f6d2f10
TT
10172019-08-30 Tom Tromey <tom@tromey.com>
1018
1019 * tui/tui-regs.c (tui_data_window::display_all_data): Change
1020 text.
1021 * tui/tui-data.h (NO_DATA_STRING): Remove define.
1022
16d01f9c
BW
10232019-08-29 Bernhard Wodok <barto@gmx.net>
1024 Sergio Durigan Junior <sergiodj@redhat.com>
1025
1026 PR win32/24284
1027 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
1028
d8f27c60
AB
10292019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1030
1031 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
1032 when searching for types.
1033
1f20c35e
AB
10342019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1035
1036 * f-lang.c (f_language_defn): Use f_print_typedef.
1037 * f-lang.h (f_print_typedef): Declare.
1038 * f-typeprint.c (f_print_typedef): Define.
1039
550105b7
CB
10402019-08-27 Christian Biesinger <cbiesinger@google.com>
1041
1042 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
1043
4acfdd20
AB
10442019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
1045
1046 * cli/cli-utils.c (info_print_options_defs): Delete.
1047 (make_info_print_options_def_group): Delete.
1048 (extract_info_print_options): Delete.
1049 (info_print_command_completer): Delete.
1050 (info_print_args_help): Add extra parameter, and optionally
1051 include text about -n flag.
1052 * cli/cli-utils.h (struct info_print_options): Delete.
1053 (extract_info_print_options): Delete declaration.
1054 (info_print_command_completer): Delete declaration.
1055 (info_print_args_help): Add extra parameter, extend header
1056 comment.
1057 * python/python.c (gdbpy_rbreak): Pass additional parameter to
1058 search_symbols.
1059 * stack.c (struct info_print_options): New type.
1060 (info_print_options_defs): New file scoped variable.
1061 (make_info_print_options_def_group): New static function.
1062 (info_print_command_completer): New static function.
1063 (info_locals_command): Update to use new local functions.
1064 (info_args_command): Likewise.
1065 (_initialize_stack): Add extra parameter to calls to
1066 info_print_args_help.
1067 * symtab.c (search_symbols): Add extra parameter, use this to
1068 possibly excluse non-debug symbols.
1069 (symtab_symbol_info): Add extra parameter, which is passed on to
1070 search_symbols.
1071 (struct info_print_options): New type.
1072 (info_print_options_defs): New file scoped variable.
1073 (make_info_print_options_def_group): New static function.
1074 (info_print_command_completer): New static function.
1075 (info_variables_command): Update to use local functions, and pass
1076 extra parameter through to symtab_symbol_info.
1077 (info_functions_command): Likewise.
1078 (info_types_command): Pass additional argument through to
1079 symtab_symbol_info.
1080 (rbreak_command): Pass extra argument to search_symbols.
1081 (_initialize_symtab): Add extra arguments for calls to
1082 info_print_args_help, and update help text for 'info variables',
1083 'whereis', and 'info functions' commands.
1084 * symtab.h (search_symbols): Add extra argument to declaration.
1085 * NEWS: Mention new flags.
1086
9aa55206
CB
10872019-08-26 Christian Biesinger <cbiesinger@google.com>
1088
1089 * symtab.c (lookup_static_symbol): Call the new function (and move
1090 it down to be next to lookup_global_symbol).
1091 (struct global_sym_lookup_data): Add block_enum member and rename to...
1092 (struct global_or_static_sym_lookup_data): ...this.
1093 (lookup_symbol_global_iterator_cb): Pass block_index instead of
1094 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
1095 (lookup_symbol_global_or_static_iterator_cb): ...this.
1096 (lookup_global_or_static_symbol): New function.
1097 (lookup_global_symbol): Call new function.
1098
5c31b358
TV
10992019-08-26 Tom de Vries <tdevries@suse.de>
1100
1101 PR c++/24852
1102 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
1103 when pc_probe.prob == NULL.
1104
23c13d42
SM
11052019-08-25 Simon Marchi <simon.marchi@efficios.com>
1106
1107 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
1108 variable symbol_linkage to symbol_linkage_.
1109
beadd3e8
SM
11102019-08-25 Simon Marchi <simon.marchi@efficios.com>
1111
1112 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
1113 represent whether the symbol is static, dynamic, or we don't
1114 know.
1115
e3ec872f
YS
11162019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
1117
1118 * gdb/rx-tdep.c (rx_register_names): New.
1119 (rx_register_name): Delete.
1120 (rx_psw_type): Delete.
1121 (rx_fpsw_type): Delete.
1122 (rx_register_type): Delete.
1123 (rx_gdbarch_init): Convert target-descriptions.
1124 (_initialize_rx_tdep): Add initialize_tdesc_rx.
1125 * gdb/features/Makefile: Add rx.xml.
1126 * gdb/features/rx.xml: New.
1127 * gdb/features/rx.c: Generated.
1128 * gdb/NEWS: Mention target description support.
1129
d0509ba4
CB
11302019-08-22 Christian Biesinger <cbiesinger@google.com>
1131
1132 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
1133 *slot_ptr.
1134
2d41fa11
SDJ
11352019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1136
1137 * configure.ac: Don't check for 'dlfcn.h' (moved to
1138 gdbsupport/common.m4).
1139 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
1140 'gdbsupport/'.
1141 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
1142 * compile/compile-c-support.c: Include
1143 'gdbsupport/gdb-dlfcn.h'.
1144 * gdbsupport/common.m4: Check for 'dlfcn.h'.
1145 * gdb-dlfcn.c: Move to...
1146 * gdbsupport/gdb-dlfcn.c: ... here.
1147 * gdb-dlfcn.h: Move to...
1148 * gdbsupport/gdb-dlfcn.h: ... here.
1149
de8af808
SL
11502019-08-23 Sandra Loosemore <sandra@codesourcery.com>
1151
1152 * nios2-tdep.c (struct reg_value): Improve comments. Make
1153 the offset field signed.
1154
27204489
CB
11552019-08-22 Christian Biesinger <cbiesinger@google.com>
1156
1157 * python/lib/gdb/__init__.py (_execute_file): New function.
1158 * python/python.c (python_run_simple_file): Call gdb._execute_file
1159 on Windows.
1160
43771869
AB
11612019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
1162
1163 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
1164 all uses as this was never set to anything but a zero value.
1165
26c957f1
PA
11662019-08-21 Bogdan Harjoc <harjoc@gmail.com>
1167
1168 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
1169
c07aae6e
CB
11702019-08-21 Christian Biesinger <cbiesinger@google.com>
1171
1172 * tui/tui-data.h (tui_gen_win_info): Add an =default
1173 move constructor, required by some GCC versions.
1174
3960cb7a
JF
11752019-08-21 Jinke Fan <fanjinke51@yeah.net>
1176
1177 * go32-nat.c (go32_sysinfo): Add hygon_p.
1178
04c72a68
TT
11792019-08-20 Tom Tromey <tom@tromey.com>
1180
1181 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
1182 line_from_reg_element_no, first_reg_element_no_inline,
1183 display_all_data, delete_data_content_windows,
1184 erase_data_content>: Now private.
1185
072272ce
TT
11862019-08-20 Tom Tromey <tom@tromey.com>
1187
1188 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
1189 (tui_unhighlight_win, tui_highlight_win)
1190 (tui_win_info::make_window): Update.
1191 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
1192
973961bd
TT
11932019-08-20 Tom Tromey <tom@tromey.com>
1194
1195 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1196 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1197 (MAX_PID_WIDTH): Move to tui-stack.c.
1198 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1199 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1200 (MAX_PID_WIDTH): Move from tui-data.h.
1201
ab0e1f1a
TT
12022019-08-20 Tom Tromey <tom@tromey.com>
1203
1204 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
1205 * tui/tui-wingeneral.c (box_win): Change type of win_info.
1206 (box_win): Update.
1207 (tui_gen_win_info::make_window): Rename from tui_make_window.
1208 (tui_win_info::make_window): New method.
1209 (tui_gen_win_info::make_visible): Update.
1210 * tui/tui-source.c (tui_source_window::set_contents): Update.
1211 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1212 (tui_data_window::display_registers_from): Update.
1213 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1214 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
1215 Declare.
1216 <can_box>: Remove.
1217 <title>: Remove.
1218 (struct tui_win_info) <make_window>: Declare.
1219 <can_box>: Now virtual.
1220 <title>: New member.
1221 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
1222 * tui/tui-command.c (tui_cmd_window::resize): Update.
1223
100c2bf3
TT
12242019-08-20 Tom Tromey <tom@tromey.com>
1225
1226 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
1227 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1228 (tui_data_window::check_register_values): Update.
1229
fa4dc567
TT
12302019-08-20 Tom Tromey <tom@tromey.com>
1231
1232 * tui/tui-regs.h (struct tui_data_window): Use
1233 DISABLE_COPY_AND_ASSIGN.
1234 <regs_content>: Change type, removing unique_ptr.
1235 <tui_data_window>: Add move constructor.
1236 * tui/tui-regs.c (tui_data_window::show_registers)
1237 (tui_data_window::show_register_group)
1238 (tui_data_window::display_registers_from)
1239 (tui_data_window::display_registers_from)
1240 (tui_data_window::first_data_item_displayed)
1241 (tui_data_window::delete_data_content_windows)
1242 (tui_data_window::rerender, tui_data_window::refresh_window)
1243 (tui_data_window::check_register_values): Update.
1244
ca02d7c8
TT
12452019-08-20 Tom Tromey <tom@tromey.com>
1246
1247 * tui/tui-regs.h (struct tui_data_window) <show_registers,
1248 show_register_group>: Declare.
1249 (tui_show_register_group): Don't declare.
1250 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
1251 tui_show_registers.
1252 (tui_data_window::show_register_group): Rename from
1253 tui_show_register_group.
1254 (tui_data_window::check_register_values, tui_reg_command):
1255 Update.
1256 * tui/tui-layout.c (tui_set_layout): Update.
1257
63356bfd
TT
12582019-08-20 Tom Tromey <tom@tromey.com>
1259
1260 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
1261 Declare.
1262 (tui_check_register_values): Don't declare.
1263 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
1264 from tui_check_register_values.
1265 * tui/tui-hooks.c (tui_register_changed): Update.
1266
42cc14a7
TT
12672019-08-20 Tom Tromey <tom@tromey.com>
1268
1269 * tui/tui-regs.c (tui_reg_layout): Move later.
1270 (tui_show_registers): Don't enable TUI mode or change layout.
1271
b9ad3686
TT
12722019-08-20 Tom Tromey <tom@tromey.com>
1273
1274 * tui/tui-regs.h (struct tui_data_item_window)
1275 <~tui_data_item_window>: Remove.
1276 <content>: Now a unique_xmalloc_ptr.
1277 * tui/tui-regs.c (tui_register_format): Return a
1278 unique_xmalloc_ptr.
1279 (tui_get_register): Update.
1280 (~tui_data_item_window): Remove.
1281 (tui_data_window::display_registers_from, tui_display_register):
1282 Update.
1283 * tui/tui-io.h (tui_expand_tabs): Update.
1284 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
1285 Remove "col" parameter.
1286
8e114aab
TT
12872019-08-20 Tom Tromey <tom@tromey.com>
1288
1289 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
1290 field.
1291 * tui/tui-regs.c (~tui_data_item_window): Update.
1292
1a4f81dd
TT
12932019-08-20 Tom Tromey <tom@tromey.com>
1294
1295 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
1296 earlier.
1297
0f8d8876
TT
12982019-08-20 Tom Tromey <tom@tromey.com>
1299
1300 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
1301
605dc2c2
TT
13022019-08-20 Tom Tromey <tom@tromey.com>
1303
1304 * tui/tui-source.h (struct tui_source_window): Update.
1305 * tui/tui-regs.c (tui_show_registers): Update.
1306 * tui/tui-disasm.h (struct tui_disasm_window): Update.
1307 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
1308 (NO_REGS_STRING): Remove defines.
1309
aedbe3bb
CM
13102019-08-20 Conrad Meyer <cem@FreeBSD.org>
1311
1312 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
1313 unnecessary thread walk if remote doesn't support the packet.
1314
7ce8f214
TT
13152019-08-19 Tom Tromey <tromey@adacore.com>
1316
1317 * python/py-value.c (value_has_field): Fix indentation.
1318
f21c2bd7
TT
13192019-08-19 Tom Tromey <tromey@adacore.com>
1320
1321 * printcmd.c (do_one_display, info_display_command): Update.
1322 * block.h (contained_in): Return bool. Add allow_nested
1323 parameter.
1324 * block.c (contained_in): Return bool. Add allow_nested
1325 parameter.
1326
d806ea2d
TT
13272019-08-19 Tom Tromey <tom@tromey.com>
1328
1329 * configure: Rebuild.
1330 * configure.ac: Disallow the combination of -static-libstdc++ and
1331 source highlight.
1332 * source-cache.c (get_language_name): Handle rust.
1333 (source_cache::get_source_lines): Ignore highlighting exceptions.
1334
398fdd60
TT
13352019-08-16 Tom Tromey <tom@tromey.com>
1336
1337 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
1338 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
1339 (struct tui_source_window_base) <make_visible, refresh_window,
1340 resize>: Remove methods.
1341 <execution_info>: Remove field.
1342 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
1343 (tui_show_source_line, tui_source_window_base)
1344 (~tui_source_window_base): Update.
1345 (tui_source_window_base::resize)
1346 (tui_source_window_base::make_visible)
1347 (tui_source_window_base::refresh_window): Remove.
1348 (tui_source_window_base::update_exec_info): Update.
1349 * tui/tui-source.c (tui_source_window::set_contents): Update.
1350 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1351
e699d331
TT
13522019-08-16 Tom Tromey <tom@tromey.com>
1353
1354 * tui/tui-hooks.c (tui_remove_hooks): Don't set
1355 deprecated_query_hook.
1356
bb01dbfc
TT
13572019-08-16 Tom Tromey <tom@tromey.com>
1358
1359 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
1360 (tui_update_source_windows_with_line): Update.
1361 * tui/tui-source.h (struct tui_source_window)
1362 <show_symtab_source>: Declare.
1363 (tui_show_symtab_source): Don't declare.
1364 * tui/tui-source.c (tui_show_symtab_source): Rename from
1365 tui_show_symtab_source.
1366
81c82c4b
TT
13672019-08-16 Tom Tromey <tom@tromey.com>
1368
1369 * tui/tui-winsource.h (struct tui_source_window_base)
1370 <set_contents>: Declare.
1371 * tui/tui-winsource.c
1372 (tui_source_window_base::update_source_window_as_is): Update.
1373 * tui/tui-source.h (struct tui_source_window) <set_contents>:
1374 Declare.
1375 (tui_set_source_content): Don't declare.
1376 * tui/tui-source.c (tui_source_window::set_contents): Rename from
1377 tui_set_source_content.
1378 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
1379 Declare.
1380 (tui_set_disassem_content): Don't declare.
1381 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
1382 tui_set_disassem_content.
1383
2ddaf614
TT
13842019-08-16 Tom Tromey <tom@tromey.com>
1385
1386 * tui/tui-winsource.h (struct tui_source_window_base)
1387 <update_breakpoint_info>: Declare.
1388 (tui_update_breakpoint_info): Don't declare.
1389 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
1390 (tui_update_all_breakpoint_info): Update.
1391 (tui_source_window_base::update_breakpoint_info): Rename from
1392 tui_update_breakpoint_info.
1393 (tui_source_window_base::update_exec_info): Update.
1394
017f9828
TT
13952019-08-16 Tom Tromey <tom@tromey.com>
1396
1397 * tui/tui-winsource.h (struct tui_source_window_base)
1398 <update_source_window>: Declare.
1399 (tui_update_source_window): Don't declare.
1400 * tui/tui-winsource.c
1401 (tui_source_window_base::update_source_window): Rename from
1402 tui_update_source_window.
1403 (tui_source_window_base::rerender): Update.
1404 * tui/tui-source.c (tui_source_window::maybe_update): Update.
1405 * tui/tui-disasm.c (tui_show_disassem)
1406 (tui_show_disassem_and_update_source)
1407 (tui_disasm_window::maybe_update): Update.
1408
ed8358e9
TT
14092019-08-16 Tom Tromey <tom@tromey.com>
1410
1411 * tui/tui-winsource.h (struct tui_source_window_base)
1412 <update_source_window_as_is>: Declare.
1413 (tui_update_source_window_as_is): Don't declare.
1414 * tui/tui-winsource.c (tui_update_source_window): Update
1415 (tui_source_window_base::update_source_window_as_is): Rename from
1416 tui_update_source_window_as_is.
1417 (tui_source_window_base::refill): Update.
1418 * tui/tui-source.c (tui_show_symtab_source): Update.
1419 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
1420 Update.
1421
20149b6b
TT
14222019-08-16 Tom Tromey <tom@tromey.com>
1423
1424 * tui/tui-winsource.h (tui_update_source_window)
1425 (tui_update_source_window_as_is): Remove "noerror" parameter.
1426 * tui/tui-winsource.c (tui_update_source_window)
1427 (tui_update_source_window_as_is): Remove "noerror" parameter.
1428 (tui_update_source_windows_with_addr)
1429 (tui_update_source_windows_with_line)
1430 (tui_source_window_base::rerender)
1431 (tui_source_window_base::refill): Update.
1432 * tui/tui-source.h (tui_set_source_content)
1433 (tui_show_symtab_source): Remove "noerror" parameter.
1434 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
1435 parameter.
1436 (tui_show_symtab_source): Likewise.
1437 (tui_source_window::maybe_update): Update.
1438 * tui/tui-disasm.c (tui_show_disassem)
1439 (tui_show_disassem_and_update_source)
1440 (tui_disasm_window::do_scroll_vertical)
1441 (tui_disasm_window::maybe_update): Update.
1442
2d83e710
TT
14432019-08-16 Tom Tromey <tom@tromey.com>
1444
1445 * tui/tui.c (tui_is_window_visible): Update.
1446 * tui/tui-wingeneral.c (tui_make_window)
1447 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
1448 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
1449 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
1450 (tui_set_win_height_command, parse_scrolling_args): Update.
1451 * tui/tui-source.c (tui_source_window::style_changed): Update.
1452 * tui/tui-regs.c (tui_show_registers)
1453 (tui_data_window::first_data_item_displayed)
1454 (tui_data_window::delete_data_content_windows)
1455 (tui_check_register_values, tui_reg_command): Update.
1456 * tui/tui-disasm.c (tui_show_disassem): Update.
1457 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
1458 method.
1459 <is_visible>: Remove field.
1460 * tui/tui-data.c (tui_next_win, tui_prev_win)
1461 (tui_delete_invisible_windows): Update.
1462
d4ab829a
TT
14632019-08-16 Tom Tromey <tom@tromey.com>
1464
1465 * tui/tui-winsource.h (struct tui_source_window_base)
1466 <m_has_locator>: Remove.
1467 * tui/tui-layout.c (show_source_disasm_command, show_data)
1468 (show_source_or_disasm_and_command): Update.
1469
aa7ca1bb
AH
14702019-08-16 Alan Hayward <alan.hayward@arm.com>
1471
1472 * NEWS (Other MI changes): New subsection.
1473 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
1474 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
1475 * arch-utils.c (default_get_pc_address_flags): New function.
1476 * arch-utils.h (default_get_pc_address_flags): New declaration.
1477 * gdbarch.sh: Add get_pc_address_flags.
1478 * gdbarch.c: Regenerate.
1479 * gdbarch.h: Likewise.
1480 * stack.c (print_pc): New function.
1481 (print_frame_info) (print_frame): Call print_pc.
1482
6eac171f
TV
14832019-08-16 Tom de Vries <tdevries@suse.de>
1484
1485 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
1486 print_objfile_section_info.
1487
3df505f6
TT
14882019-08-15 Tom Tromey <tom@tromey.com>
1489
1490 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
1491 calling update_cmdwin_start_line.
1492 * tui/tui-winsource.h (struct tui_source_window_base)
1493 <do_make_visible_with_new_height, set_new_height>: Don't declare.
1494 <rerender>: Declare.
1495 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
1496 Call rerender.
1497 (tui_source_window_base::set_new_height): Remove.
1498 (tui_source_window_base::rerender): Rename from
1499 do_make_visible_with_new_height.
1500 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
1501 resize method.
1502 (tui_win_info::make_invisible_and_set_new_height)
1503 (tui_win_info::make_visible_with_new_height): Remove.
1504 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
1505 Declare.
1506 * tui/tui-stack.c (tui_locator_window::rerender): New method.
1507 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
1508 do_make_visible_with_new_height>: Don't declare.
1509 <rerender>: Declare.
1510 * tui/tui-regs.c (tui_data_window::rerender): Rename from
1511 set_new_height.
1512 (tui_data_window::do_make_visible_with_new_height): Remove.
1513 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
1514 call tui_show_locator_content.
1515 (tui_gen_win_info::resize): Call rerender.
1516 (show_source_or_disasm_and_command): Don't call
1517 tui_show_locator_content.
1518 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
1519 method.
1520 (struct tui_win_info) <rerender>: Declare.
1521 <set_new_height, make_invisible_and_set_new_height,
1522 make_visible_with_new_height>: Don't declare.
1523 * tui/tui-data.c (tui_win_list::rerender): New method.
1524 * tui/tui-command.h (struct tui_cmd_window)
1525 <do_make_visible_with_new_height>: Don't declare.
1526 * tui/tui-command.c
1527 (tui_cmd_window::do_make_visible_with_new_height): Remove.
1528
272560b5
TT
15292019-08-15 Tom Tromey <tromey@adacore.com>
1530
1531 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
1532 * ada-lang.c (ada_enum_name): Likewise.
1533
08235187
CB
15342019-08-15 Christian Biesinger <cbiesinger@google.com>
1535
1536 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
1537 leading underscore.
1538 (GdbOutputErrorFile): Likewise.
1539 (global scope): Adjust constructor calls to GdbOutput{,Error}File
1540 accordingly.
1541 (execute_unwinders): Rename to have a leading underscore.
1542 (auto_load_packages): Likewise.
1543 (global scope): Adjust call to auto_load_packages accordingly.
1544 (GdbSetPythonDirectory): Likewise.
1545 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
1546 instead of execute_unwinders.
1547
db502012
TT
15482019-08-15 Tom Tromey <tom@tromey.com>
1549
1550 * tui/tui-layout.c (show_layout, show_source_disasm_command)
1551 (show_data): Don't change window visibility.
1552 (tui_gen_win_info::resize): Remove special case for command
1553 window. Use wresize, when available.
1554 (show_source_or_disasm_and_command): Don't change window
1555 visibility.
1556 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
1557 <make_visible>: New method.
1558 * tui/tui-command.c (tui_cmd_window::resize): New method.
1559
3891b65e
TT
15602019-08-15 Tom Tromey <tom@tromey.com>
1561
1562 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
1563 (struct tui_source_windows): New.
1564 * tui/tui-winsource.c (tui_display_main): Update.
1565 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
1566 (new_height_ok, parse_scrolling_args): Update.
1567 * tui/tui-layout.c (show_layout, show_data): Update.
1568 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
1569 (tui_add_to_source_windows): Don't declare.
1570 * tui/tui-data.c (source_windows, tui_source_windows)
1571 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
1572
ee556432
TT
15732019-08-15 Tom Tromey <tom@tromey.com>
1574
1575 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
1576 Rename from reset.
1577 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
1578 * tui/tui-layout.c (show_source_disasm_command, show_data):
1579 Update.
1580 (tui_gen_win_info::resize): Rename.
1581 (show_source_or_disasm_and_command): Update.
1582 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
1583 reset.
1584
46f438e3
TT
15852019-08-15 Tom Tromey <tom@tromey.com>
1586
1587 * tui/tui-stack.c (tui_initialize_static_data): Remove.
1588 * tui/tui-interp.c (tui_interp::init): Don't call
1589 tui_initialize_static_data.
1590 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
1591
f4ce562c
TT
15922019-08-15 Tom Tromey <tom@tromey.com>
1593
1594 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
1595 examine tui_win_list.
1596
c398c3d0
TT
15972019-08-15 Tom Tromey <tom@tromey.com>
1598
1599 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
1600 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
1601 tui_clear_source_content.
1602 (tui_clear_source_content): Remove.
1603 (tui_source_window_base::do_erase_source_content): Hoist call to
1604 content.clear().
1605 * tui/tui-stack.c (tui_show_frame_info): Don't call
1606 tui_clear_source_content.
1607
e25d2004
TT
16082019-08-15 Tom Tromey <tom@tromey.com>
1609
1610 * tui/tui-winsource.h (struct tui_source_window_base)
1611 <do_erase_source_content>: New method.
1612 <erase_source_content>: New method.
1613 (tui_erase_source_content): Don't declare.
1614 * tui/tui-winsource.c (tui_clear_source_content): Update.
1615 (tui_source_window_base::do_erase_source_content): Rename from
1616 tui_erase_source_content.
1617 (tui_source_window_base::show_source_content): Update.
1618 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1619 * tui/tui-source.h (struct tui_source_window)
1620 <erase_source_content>: New method.
1621 * tui/tui-disasm.h (struct tui_disasm_window)
1622 <erase_source_content>: New method.
1623
002f15c2
TT
16242019-08-15 Tom Tromey <tom@tromey.com>
1625
1626 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
1627 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
1628 constructor.
1629 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
1630 * tui/tui-source.c (tui_set_source_content): Update.
1631 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1632
c9033fe8
TT
16332019-08-15 Tom Tromey <tom@tromey.com>
1634
1635 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
1636 * tui/tui-winsource.c (tui_line_is_displayed): Move to
1637 tui-source.c.
1638 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
1639 Declare.
1640 * tui/tui-source.c (tui_source_window::line_is_displayed): New
1641 method.
1642 (tui_source_window::maybe_update): Update.
1643
088f37dd
TT
16442019-08-15 Tom Tromey <tom@tromey.com>
1645
1646 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
1647 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
1648 tui-disasm.c.
1649 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
1650 Declare.
1651 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
1652 method.
1653 (tui_disasm_window::maybe_update): Update.
1654
a54700c6
TT
16552019-08-15 Tom Tromey <tom@tromey.com>
1656
1657 * tui/tui-winsource.h (struct tui_source_window_base)
1658 <maybe_update>: Declare.
1659 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
1660 method.
1661 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
1662 Declare.
1663 * tui/tui-source.c (tui_source_window::maybe_update): New method.
1664 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
1665 Declare.
1666 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
1667
e2a678a5
TT
16682019-08-15 Tom Tromey <tom@tromey.com>
1669
1670 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
1671
f2dda477
TT
16722019-08-15 Tom Tromey <tom@tromey.com>
1673
1674 * tui/tui-wingeneral.c: Include tui-stack.h.
1675 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
1676 (struct tui_locator_window): Move from tui-data.h.
1677 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
1678 (tui_initialize_static_data): Move from tui-data.c.
1679 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
1680 (struct tui_locator_window): Move to tui-stack.c.
1681 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
1682 (tui_initialize_static_data): Move to tui-stack.c.
1683
ed4a1084
TT
16842019-08-15 Tom Tromey <tom@tromey.com>
1685
1686 * tui/tui-layout.c (show_source_disasm_command)
1687 (show_source_or_disasm_and_command): Use make_visible method, not
1688 tui_make_window.
1689 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
1690 Remove.
1691
65962b20
TT
16922019-08-15 Tom Tromey <tom@tromey.com>
1693
1694 * tui/tui-wingeneral.h (tui_make_window): Update.
1695 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
1696 parameter.
1697 (tui_gen_win_info::make_visible): Update.
1698 * tui/tui-regs.c (tui_data_window::display_registers_from):
1699 Update.
1700 * tui/tui-layout.c (show_source_disasm_command)
1701 (show_source_or_disasm_and_command): Update.
1702 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
1703 (enum tui_box): Remove.
1704 (struct tui_win_info) <can_box>: New method.
1705 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
1706 method.
1707
2208ee91
TV
17082019-08-15 Tom de Vries <tdevries@suse.de>
1709
1710 * linux-nat-trad.c: Include gdbarch.h.
1711
75faf5c4
AH
17122019-08-14 Alan Hayward <alan.hayward@arm.com>
1713
1714 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
1715 register sizes.
1716
b1c896b3
TT
17172019-08-14 Tom Tromey <tromey@adacore.com>
1718
1719 * darwin-nat.c: Include gdbarch.h.
1720 * darwin-nat-info.c: Include gdbarch.h.
1721
6405cd73
TT
17222019-08-13 Tom Tromey <tom@tromey.com>
1723
1724 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
1725 Remove.
1726 * tui/tui-data.c (tui_initialize_static_data): Update.
1727
5216580d
TT
17282019-08-13 Tom Tromey <tom@tromey.com>
1729
1730 * tui/tui-winsource.h (struct tui_exec_info_window)
1731 <~tui_exec_info_window, maybe_allocate_content, get_content,
1732 m_content>: Remove.
1733 (struct tui_source_window_base) <set_exec_info_content,
1734 show_exec_info_content>: Don't declare.
1735 * tui/tui-winsource.c
1736 (tui_exec_info_window::maybe_allocate_content): Remove.
1737 (tui_source_window_base::update_exec_info): Rename from
1738 set_exec_info_content.
1739 (tui_source_window_base::show_exec_info_content)
1740 (tui_source_window_base::update_exec_info): Remove.
1741
93858ad3
TT
17422019-08-13 Tom Tromey <tom@tromey.com>
1743
1744 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
1745 declare.
1746 * tui/tui-winsource.c (tui_update_source_window_as_is)
1747 (tui_update_source_windows_with_addr, tui_erase_source_content):
1748 Update.
1749 (tui_clear_exec_info_content): Remove.
1750
e321e7ce
TT
17512019-08-13 Tom Tromey <tom@tromey.com>
1752
1753 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
1754 declare.
1755 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
1756 call tui_erase_exec_info_content.
1757 (tui_clear_exec_info_content): Rename from
1758 tui_erase_exec_info_content.
1759 (tui_clear_exec_info_content): Delete.
1760
8270ac62
TT
17612019-08-13 Tom Tromey <tom@tromey.com>
1762
1763 * tui/tui-winsource.h (struct tui_source_window_base)
1764 <show_exec_info_content>: Declare.
1765 (tui_show_exec_info_content): Don't declare.
1766 * tui/tui-winsource.c
1767 (tui_source_window_base::show_exec_info_content): Rename from
1768 tui_show_exec_info_content.
1769 (tui_source_window_base::update_exec_info): Update.
1770
7b56485d
TT
17712019-08-13 Tom Tromey <tom@tromey.com>
1772
1773 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
1774 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
1775 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
1776 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
1777 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
1778 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
1779 ... here.
1780
7ba913dc
TT
17812019-08-13 Tom Tromey <tom@tromey.com>
1782
1783 * tui/tui-winsource.h (struct tui_source_window_base)
1784 <update_exec_info>: Declare.
1785 (tui_update_exec_info): Don't declare.
1786 * tui/tui-winsource.c (tui_update_source_window_as_is)
1787 (tui_source_window_base::refresh_all)
1788 (tui_update_all_breakpoint_info): Update.
1789 (tui_source_window_base::update_exec_info): Rename from
1790 tui_update_exec_info.
1791 * tui/tui-stack.c (tui_show_frame_info): Update.
1792
37a4a131
TT
17932019-08-13 Tom Tromey <tom@tromey.com>
1794
1795 * tui/tui-winsource.h (struct tui_source_window_base)
1796 <set_exec_info_content>: Declare.
1797 (tui_set_exec_info_content): Don't declare.
1798 * tui/tui-winsource.c
1799 (tui_source_window_base::set_exec_info_content): Rename from
1800 tui_set_exec_info_content.
1801 (tui_update_exec_info): Update.
1802
0bd27e07
TT
18032019-08-13 Tom Tromey <tom@tromey.com>
1804
1805 * tui/tui-winsource.h (struct tui_source_window_base)
1806 <show_source_content>: Declare.
1807 (tui_show_source_content): Don't declare.
1808 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1809 (tui_source_window_base::show_source_content): Rename from
1810 tui_show_source_content.
1811 (tui_source_window_base::refresh_all): Update.
1812 * tui/tui-layout.c (show_source_disasm_command)
1813 (show_source_or_disasm_and_command): Update.
1814
b4ef5aeb
TT
18152019-08-13 Tom Tromey <tom@tromey.com>
1816
1817 * tui/tui-winsource.c (tui_erase_source_content)
1818 (tui_show_source_content, tui_source_window_base::refresh_all):
1819 Update.
1820 * tui/tui-wingeneral.h
1821 (tui_check_and_display_highlight_if_needed): Don't declare.
1822 * tui/tui-wingeneral.c
1823 (tui_win_info::check_and_display_highlight_if_needed): Rename from
1824 check_and_display_highlight_if_needed.
1825 * tui/tui-win.c (tui_rehighlight_all)
1826 (tui_win_info::make_visible_with_new_height): Update.
1827 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1828 (tui_data_window::erase_data_content)
1829 (tui_data_window::display_all_data): Update.
1830 * tui/tui-data.h (struct tui_win_info)
1831 <check_and_display_highlight_if_needed>: Declare.
1832
fede5273
TT
18332019-08-13 Tom Tromey <tom@tromey.com>
1834
1835 * tui/tui-win.c (tui_resize_all): Call
1836 tui_delete_invisible_windows.
1837 * tui/tui-layout.c (show_layout): Call
1838 tui_delete_invisible_windows.
1839 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
1840 * tui/tui-data.c (tui_delete_invisible_windows): New function.
1841
22c3f490
TT
18422019-08-13 Tom Tromey <tom@tromey.com>
1843
1844 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
1845 tui_add_win_to_layout.
1846
16cb7910
TT
18472019-08-13 Tom Tromey <tom@tromey.com>
1848
1849 * tui/tui-layout.h (tui_default_win_height): Don't declare.
1850 * tui/tui-layout.c (tui_default_win_height): Now static.
1851
cc0c3ffb
TT
18522019-08-13 Tom Tromey <tom@tromey.com>
1853
1854 * tui/tui-layout.c (show_layout): Unify all layout cases into a
1855 single switch.
1856 (show_source_disasm_command, show_source_or_disasm_and_command):
1857 Don't check current layout.
1858
3f3ffe54
TT
18592019-08-13 Tom Tromey <tom@tromey.com>
1860
1861 * tui/tui-wingeneral.c (make_all_visible): Remove.
1862 (tui_make_all_invisible): Simplify.
1863 * tui/tui-layout.c (tui_make_all_invisible): Move from
1864 tui-wingeneral.c; simplify.
1865 (show_layout): Hoist call to tui_make_all_invisible.
1866 (show_data): Don't call tui_make_all_invisible.
1867
69258091
TT
18682019-08-13 Tom Tromey <tom@tromey.com>
1869
1870 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
1871 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
1872
62cf57fe
TT
18732019-08-13 Tom Tromey <tom@tromey.com>
1874
1875 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
1876 tui-data.c.
1877 (show_source_disasm_command, show_data)
1878 (show_source_or_disasm_and_command): Don't use
1879 tui_set_current_layout_to.
1880 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
1881 * tui/tui-data.c (current_layout, tui_current_layout): Move to
1882 tui-layout.c.
1883 (tui_set_current_layout_to): Remove.
1884
2afade5d
TT
18852019-08-13 Tom Tromey <tom@tromey.com>
1886
1887 * tui/tui-layout.c (tui_set_layout): Update.
1888 * tui/tui-data.h (struct tui_layout_def): Remove.
1889 (tui_layout_def): Don't declare.
1890 * tui/tui-data.c (layout_def): Remove.
1891 (tui_layout_def): Remove.
1892
a3504e96
TT
18932019-08-13 Tom Tromey <tom@tromey.com>
1894
1895 * tui/tui-winsource.h (struct tui_source_window_base)
1896 <clear_detail>: No longer "override".
1897 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
1898 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
1899 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
1900 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
1901 Remove.
1902 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
1903
29c92911
TT
19042019-08-13 Tom Tromey <tromey@adacore.com>
1905
1906 * tracepoint.c: Don't include readline.h or history.h.
1907
86c6b807
TT
19082019-08-12 Tom Tromey <tom@tromey.com>
1909
1910 * configure: Rebuild.
1911 * configure.ac: Check for readline 7.
1912 * NEWS: Mention readline 7 requirement.
1913 * README: Update.
1914
5db2718c
TT
19152019-08-12 Tom Tromey <tom@tromey.com>
1916
1917 * mingw-hdep.c (gdb_select): Remove readline hack.
1918
dac36daf
PFC
19192019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1920
1921 * blockframe.c (find_pc_partial_function): Set *block to nullptr
1922 when the function fails.
1923
1022c627
AA
19242019-08-09 Andreas Arnez <arnez@linux.ibm.com>
1925
1926 * s390-tdep.c (s390_type_align): New function.
1927 (s390_gdbarch_init): Set it as type_align gdbarch method.
1928
eba4caf2
TV
19292019-08-09 Tom de Vries <tdevries@suse.de>
1930
1931 PR gdb/24591
1932 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
1933 pc_low with relocation offset.
1934
123cd851
TT
19352019-08-07 Tom Tromey <tromey@adacore.com>
1936
1937 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1938 (print_frame_args): Update.
1939 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
1940 Update.
1941 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1942 * frame.h (struct frame_arg): Add initializers.
1943 <error>: Now a unique_xmalloc_ptr.
1944
3d31bc39
AH
19452019-08-07 Alan Hayward <alan.hayward@arm.com>
1946
1947 * NEWS: Expand the Pointer Authentication entry.
1948 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
1949 (aarch64_frame_unmask_lr): ... to this.
1950 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
1951 Call aarch64_frame_unmask_lr.
1952 * frame.c (struct frame_info): Add "masked" variable.
1953 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
1954 (fprint_frame): Check for masked pc.
1955 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
1956 declarations.
1957 * python/py-framefilter.c (py_print_frame): Check for masked pc.
1958 * stack.c (print_frame): Check for masked pc.
1959
0cf9feb9
TT
19602019-08-06 Tom Tromey <tom@tromey.com>
1961
1962 * stabsread.c (patch_block_stabs, read_one_struct_field)
1963 (read_enum_type): Use obstack_strndup.
1964 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
1965 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
1966 * dwarf2read.c (guess_full_die_structure_name)
1967 (anonymous_struct_prefix): Use obstack_strndup.
1968 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
1969 * c-exp.y (yylex): Use obstack_strndup.
1970 * ada-exp.y (write_object_renaming, write_ambiguous_var)
1971 (write_var_or_type): Use obstack_strndup.
1972
efba19b0
TT
19732019-08-06 Tom Tromey <tom@tromey.com>
1974
1975 * symfile.c (reread_symbols): Use obstack_strdup.
1976 * stabsread.c (read_type): Use obstack_strdup.
1977 * gdb_obstack.h (obstack_strdup): New overload.
1978 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
1979 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
1980 (dwarf2_canonicalize_name): Use obstack_strdup.
1981 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
1982 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
1983 Use obstack_strdup.
1984
f25102f7
TT
19852019-08-06 Tom Tromey <tom@tromey.com>
1986
1987 * gdb_obstack.h (obstack_strdup): Define.
1988 * gdb_obstack.c (obstack_strdup): Don't define.
1989
021887d8
TT
19902019-08-06 Tom Tromey <tom@tromey.com>
1991
1992 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
1993 obstack_strdup.
1994 * typeprint.c (typedef_hash_table::find_global_typedef): Use
1995 obstack_strdup.
1996 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
1997 * stabsread.c (common_block_start): Use obstack_strdup.
1998 * objfiles.c (set_objfile_main_name, objfile): Use
1999 obstack_strdup.
2000 * namespace.c (add_using_directive): Use obstack_strdup.
2001 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
2002 * jit.c (finalize_symtab): Use obstack_strdup.
2003 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
2004 (guess_partial_die_structure_name, partial_die_info::fixup)
2005 (dwarf2_name): Use obstack_strdup.
2006 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
2007 obstack_strdup.
2008 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
2009 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
2010 obstack_strdup.
2011 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
2012
d2834edc
PW
20132019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2014
2015 * unittests/help-doc-selftests.c: New file.
2016 * Makefile.in: Add the new file.
2017
590042fc
PW
20182019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2019
2020 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
2021 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
2022 the full first line, except when FOR_VALUE_PREFIX. In this case,
2023 the trailing '.' is not output, and the first character is uppercased.
2024 (print_help_for_command): Update call to print_doc_line.
2025 (print_doc_of_command): Likewise.
2026 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
2027 * cli/cli-option.c (append_indented_doc): Do not append newline.
2028 (build_help_option): Append newline after first appended_indented_doc
2029 only if a second call is done.
2030 (build_help): Append 2 new lines before each option, except the first
2031 one.
2032 * compile/compile.c (_initialize_compile): Add new lines after
2033 %OPTIONS%, when not at the end of the help.
2034 Change help doc or code
2035 producing the help doc to respect the invariants.
2036 * maint-test-options.c (_initialize_maint_test_options): Likewise.
2037 Also removed the new line after 'Options:', as all other commands
2038 do not put an empty line between 'Options:' and the first option.
2039 * printcmd.c (_initialize_printcmd): Likewise.
2040 * stack.c (_initialize_stack): Likewise.
2041 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
2042 incorrectly telling COMMAND is optional.
2043 * ada-lang.c (_initialize_ada_language): Change help doc or code
2044 producing the help doc to respect the invariants.
2045 * ada-tasks.c (_initialize_ada_tasks): Likewise.
2046 * breakpoint.c (_initialize_breakpoint): Likewise.
2047 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
2048 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
2049 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
2050 * cli/cli-style.c (cli_style_option::add_setshow_commands,
2051 _initialize_cli_style): Likewise.
2052 * corelow.c (core_target_info): Likewise.
2053 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
2054 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
2055 * filesystem.c (_initialize_filesystem): Likewise.
2056 * frame.c (_initialize_frame): Likewise.
2057 * gnu-nat.c (add_task_commands): Likewise.
2058 * infcall.c (_initialize_infcall): Likewise.
2059 * infcmd.c (_initialize_infcmd): Likewise.
2060 * interps.c (_initialize_interpreter): Likewise.
2061 * language.c (_initialize_language): Likewise.
2062 * linux-fork.c (_initialize_linux_fork): Likewise.
2063 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
2064 * maint.c (_initialize_maint_cmds): Likewise.
2065 * memattr.c (_initialize_mem): Likewise.
2066 * printcmd.c (_initialize_printcmd): Likewise.
2067 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
2068 _RegEx): Likewise.
2069 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
2070 * record-btrace.c (_initialize_record_btrace): Likewise.
2071 * record-full.c (_initialize_record_full): Likewise.
2072 * record.c (_initialize_record): Likewise.
2073 * regcache-dump.c (_initialize_regcache_dump): Likewise.
2074 * regcache.c (_initialize_regcache): Likewise.
2075 * remote.c (add_packet_config_cmd, init_remote_threadtests,
2076 _initialize_remote): Likewise.
2077 * ser-tcp.c (_initialize_ser_tcp): Likewise.
2078 * serial.c (_initialize_serial): Likewise.
2079 * skip.c (_initialize_step_skip): Likewise.
2080 * source.c (_initialize_source): Likewise.
2081 * stack.c (_initialize_stack): Likewise.
2082 * symfile.c (_initialize_symfile): Likewise.
2083 * symtab.c (_initialize_symtab): Likewise.
2084 * target-descriptions.c (_initialize_target_descriptions): Likewise.
2085 * top.c (init_main): Likewise.
2086 * tracefile-tfile.c (tfile_target_info): Likewise.
2087 * tracepoint.c (_initialize_tracepoint): Likewise.
2088 * tui/tui-win.c (_initialize_tui_win): Likewise.
2089 * utils.c (add_internal_problem_command): Likewise.
2090 * valprint.c (value_print_option_defs): Likewise.
2091
404f2902
FCE
20922019-08-06 Frank Ch. Eigler <fche@redhat.com>
2093
2094 PR build/24886
2095 * configure.ac: Drop enable-libmcheck support.
2096 * configure, config.in: Rebuild.
2097 * libmcheck.m4: Remove.
2098 * acinclude.m4: Don't include it.
2099 * Makefile.in: Don't distribute it.
2100 * top.c (print_gdb_configuration): Don't mention it.
2101
046bebe1
TT
21022019-08-06 Tom Tromey <tom@tromey.com>
2103
2104 * utils.c (set_output_style): Sometimes pass stream to
2105 emit_style_escape.
2106 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
2107 * record-btrace.c (btrace_insn_history): Update.
2108 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
2109 method.
2110 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
2111 Update initializers.
2112 <m_uiout>: New field.
2113 <m_di>: Move lower.
2114 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2115 Remove "uiout" parameter.
2116 (dump_insns): Update.
2117 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
2118 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
2119
ddbcedf5
CB
21202019-08-06 Christian Biesinger <cbiesinger@google.com>
2121
2122 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
2123 (error_in_psymtab_expansion): Likewise.
2124 (lookup_symbol_via_quick_fns): Likewise.
2125 (basic_lookup_transparent_type_quick): Likewise.
2126 (basic_lookup_transparent_type_1): Likewise.
2127
b08b16c8
TT
21282019-08-06 Tom Tromey <tromey@adacore.com>
2129
2130 * source.c (last_source_error): Now bool.
2131 (print_source_lines_base): Make "noprint" bool. Only open
2132 source file when last_source_visited changes.
2133
cb44333d
TT
21342019-08-06 Tom Tromey <tromey@adacore.com>
2135
2136 * annotate.c (annotate_source_line): Use g_source_cache.
2137 * source-cache.c (source_cache::get_plain_source_lines): Change
2138 parameters. Populate m_offset_cache.
2139 (source_cache::ensure): New method.
2140 (source_cache::get_line_charpos): New method.
2141 (extract_lines): Move lower. Change parameters.
2142 (source_cache::get_source_lines): Move lower.
2143 * source-cache.h (class source_cache): Update comment.
2144 <get_line_charpos>: New method.
2145 <get_source_lines>: Update comment.
2146 <clear>: Clear m_offset_cache.
2147 <get_plain_source_lines>: Change parameters.
2148 <ensure>: New method
2149 <m_offset_cache>: New member.
2150 * source.c (forget_cached_source_info_for_objfile): Update.
2151 (info_source_command): Use g_source_cache.
2152 (find_source_lines, open_source_file_with_line_charpos): Remove.
2153 (print_source_lines_base, search_command_helper): Use g_source_cache.
2154 * source.h (open_source_file_with_line_charpos): Don't declare.
2155 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
2156 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
2157 Use g_source_cache.
2158
872dceaa
TT
21592019-08-06 Tom Tromey <tromey@adacore.com>
2160
2161 * source-cache.c (source_cache::get_plain_source_lines):
2162 Remove "first_line" and "last_line" parameters.
2163 (source_cache::get_source_lines): Cache plain text.
2164 * source-cache.h (class source_cache)
2165 <get_plain_source_lines>: Update.
2166
269249d9
TT
21672019-08-06 Tom Tromey <tromey@adacore.com>
2168
2169 * source-cache.c (extract_lines): No longer a method.
2170 Changed type of parameter. Include final newline.
2171 (selftests::extract_lines_test): New function.
2172 (_initialize_source_cache): Likewise.
2173 * source-cache.h (class source_cache)
2174 <extract_lines>: Don't declare.
2175
c0e8dcd8
TT
21762019-08-06 Tom Tromey <tromey@adacore.com>
2177
2178 * breakpoint.c (init_breakpoint_sal): Update.
2179 (breakpoint): Update.
2180 * breakpoint.h (struct breakpoint) <filter>: Now a
2181 unique_xmalloc_ptr.
2182
0b27c27d
CB
21832019-08-05 Christian Biesinger <cbiesinger@google.com>
2184
2185 * NEWS: Mention dictionary access on blocks.
2186 * python/py-block.c (blpy_getitem): New function.
2187 (block_object_as_mapping): New struct.
2188 (block_object_type): Use new struct for tp_as_mapping field.
2189
4ee94178
CB
21902019-08-05 Christian Biesinger <cbiesinger@google.com>
2191
2192 * objfiles.h (objfile): Add a comment describing partial symbols.
2193
8abfcabc
TT
21942019-08-05 Tom Tromey <tromey@adacore.com>
2195
2196 * compile/compile.c (_initialize_compile): Use _(), not N_().
2197 * thread.c (_initialize_thread): Use _(), not N_().
2198 * stack.c (_initialize_stack): Use _(), not N_().
2199 * printcmd.c (_initialize_printcmd): Use _(), not N_().
2200
2b79f376
SM
22012019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2202
2203 * dwarf2read.c (struct dw2_symtab_iterator):
2204 <want_specific_block>: Remove.
2205 <block_index>: Change type to gdb::optional.
2206 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
2207 change type of BLOCK_INDEX parameter to gdb::optional.
2208 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
2209 (dw2_lookup_symbol): Don't pass argument for
2210 WANT_SPECIFIC_BLOCK.
2211 (dw2_expand_symtabs_for_function): Don't pass argument for
2212 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
2213 (class dw2_debug_names_iterator)
2214 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
2215 parameter, change BLOCK_INDEX type to gdb::optional.
2216 <m_want_specific_block>: Remove.
2217 <m_block_index>: Change type to gdb::optional.
2218 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
2219 gdb::optional. Re-write in function of gdb::optional.
2220 (dw2_debug_names_lookup_symbol): Don't pass argument for
2221 WANT_SPECIFIC_BLOCK.
2222 (dw2_debug_names_expand_symtabs_for_function): Don't pass
2223 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
2224 BLOCK_INDEX.
2225
ae60f04e
PW
22262019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2227
2228 * NEWS: Mention changes to "info sources" command.
2229
28cd9371
PW
22302019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2231
2232 * symtab.c (filename_partial_match_opts): New struct type.
2233 (struct output_source_filename_data): New members
2234 regexp, c_regexp, partial_match.
2235 (output_source_filename): Use new members to decide to print file.
2236 (info_sources_option_defs): New variable.
2237 (make_info_sources_options_def_group, print_info_sources_header,
2238 info_sources_command_completer):
2239 New functions.
2240 (info_sources_command): Read new optional arguments.
2241 (_initialize_symtab): Update info sources help.
2242
ca683e3a
AO
22432019-08-02 Alexandre Oliva <oliva@adacore.com>
2244
2245 * ada-lang.c (exception_support_info_v0): Renamed from...
2246 (default_exception_support_info): ... this. Create new
2247 definition for v1.
2248 (ada_has_this_exception_support): Look up catch_handlers_sym.
2249 (ada_exception_support_info_sniffer): Try v0 after default.
2250
f1264162
TT
22512019-08-01 Tom Tromey <tromey@adacore.com>
2252
2253 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
2254 gdbarch.h.
2255
0a7b2485
CB
22562019-08-01 Christian Biesinger <cbiesinger@google.com>
2257
2258 * s12z-tdep.c: Fix include path for s12z-opc.h.
2259
c6bdbeb7
AH
22602019-08-01 Alan Hayward <alan.hayward@arm.com>
2261
2262 * NEWS: Require GNU make 3.82.
2263
a2bd7b82
TT
22642019-07-16 Tom Tromey <tom@tromey.com>
2265
2266 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
2267 declare.
2268
aa3b6533
TT
22692019-07-30 Tom Tromey <tromey@adacore.com>
2270
2271 * block.c (contained_in): Remove BLOCK_FUNCTION check.
2272
a1530dc7
KB
22732019-07-30 Kevin Buettner <kevinb@redhat.com>
2274
2275 * printcmd.c (print_address_symbolic): Print negative offsets.
2276 (build_address_symbolic): Force signed arithmetic when computing
2277 offset.
2278
2906593f
CB
22792019-07-30 Christian Biesinger <cbiesinger@google.com>
2280
2281 PR/24474: Add a function to lookup static variables.
2282 * NEWS: Mention this new function.
2283 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
2284 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
2285 * python/python.c (python_GdbMethods): Add new function.
2286
c620ed88
CB
22872019-07-29 Christian Biesinger <cbiesinger@google.com>
2288
2289 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
2290 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
2291 (objfpy_lookup_static_symbol): New function.
2292 (objfile_object_methods): Add new functions.
2293
bc4268a5
PW
22942019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2295
2296 * NEWS: Mention 'set|show print frame-info'. Mention new
2297 'presence' value for 'frame-arguments'. Mention new '-frame-info'
2298 backtrace argument. Mention that python frame filtering code
2299 is now consistent with what 'backtrace' command prints.
2300
4b5e8d19
PW
23012019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2302
2303 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
2304 comments.
2305 (print_frame_info_auto, print_frame_info_source_line,
2306 print_frame_info_location, print_frame_info_source_and_location,
2307 print_frame_info_location_and_address, print_frame_info_short_location):
2308 New declarations.
2309 (struct frame_print_options): New member print_frame_info.
2310 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
2311 * stack.h (get_user_print_what_frame_info): New declaration.
2312 (frame_show_address): New declaration.
2313 * stack.c (print_frame_arguments_choices): New value 'presence'.
2314 (print_frame_info_auto, print_frame_info_source_line,
2315 print_frame_info_location, print_frame_info_source_and_location,
2316 print_frame_info_location_and_address, print_frame_info_short_location,
2317 print_frame_info_choices, print_frame_info_print_what): New definitions.
2318 (print_frame_args): Only print dots for args if print frame-arguments
2319 is 'presence'.
2320 (frame_print_option_defs): New element for "frame-info".
2321 (get_user_print_what_frame_info): New function.
2322 (frame_show_address): Make non static. Move comment to stack.h.
2323 (print_frame_info_to_print_what): New function.
2324 (print_frame_info): Update comment. Use fp_opts.print_frame_info
2325 to decide what to print.
2326 (backtrace_command_1): Handle the new print_frame_arguments_presence
2327 value.
2328 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
2329 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
2330 (py_print_frame): In non-mi mode, use LOCATION as default for
2331 print_what, similarly to frame information printed directly by
2332 backtrace command. Handle frame-info user option in non MI mode.
2333
6bdfee81
KB
23342019-07-27 Kevin Buettner <kevinb@redhat.com>
2335
2336 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
2337 Add case for debugging 32-bit target on 64-bit host. Revise
2338 comment.
2339
98a617f8
KB
23402019-07-27 Kevin Buettner <kevinb@redhat.com>
2341
2342 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
2343 instead of find_function_entry_range_from_pc.
2344
567238c9
KB
23452019-07-27 Kevin Buettner <kevinb@redhat.com>
2346
2347 * stack.c (find_frame_funname): Remove code which preferred
2348 minsym over symtab sym in "certain pathological cases".
2349
2dc80cf8
KB
2350 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
2351 parameter. Change type of "do_demangle" to bool.
2352 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2353 Pass suitable "prefer_sym_over_minsym" flag to
2354 build_address_symbolic(). Don't output "+" for negative offsets.
2355 * printcmd.c (print_address_symbolic): Update invocation of
2356 build_address_symbolic to include a "prefer_sym_over_minsym"
2357 flag.
2358 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
2359 Restrict cases in which use of minimal symbol is preferred to that
2360 of a found symbol. Update comments.
2361
1aff7173
KB
2362 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
2363 for entry pc when entry pc is out of range for that FDE.
2364
89b085ac
BC
23652019-07-26 Brian Callahan <bcallah@openbsd.org>
2366
2367 PR gdb/24839:
2368 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
2369 type.
2370
f32feb4a
CB
23712019-07-25 Christian Biesinger <cbiesinger@google.com>
2372
2373 * python/py-objfile.c (add_separate_debug_file): Fix comment about
2374 this function's Python signature.
2375
2376
23772019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
2378
2379 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
2380 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2381 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2382 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
2383 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
2384
2385
c54e4253
YS
23862019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
2387
2388 * h8300-tdep.c (h8300_register_name_common): New.
2389 h8300_register_name): Use h8300_register_name_common.
2390 (h8300s_register_name): Likewise.
2391 (h8300sx_register_name): Likewise.
2392 (h8300h_register_nam): New.
2393 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
2394
2395
40eadf04
SP
23962019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2397
2398 * arm-tdep.c (arm_skip_cmse_entry): New function.
2399 (arm_is_sgstubs_section): New function.
2400 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
2401
bfa2a36d
TT
24022019-07-22 Tom Tromey <tom@tromey.com>
2403
2404 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
2405 Don't self-assign.
2406
a8e9d247
AB
24072019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2408
2409 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
2410 type_print.
2411
eb86c5e2
AB
24122019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2413
2414 * symtab.c (search_symbols): Adjust msymbol matching type arrays
2415 so that GDB doesn't match any msymbols when searching in the
2416 TYPES_DOMAIN.
2417 (print_symbol_info): Print using typedef_print or type_print based
2418 on the type of the symbol. Add updated FIXME comment moved from...
2419 (_initialize_symtab): ... move and update FIXME comment to above.
2420
a8eab7c6
AB
24212019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2422
2423 * NEWS: Mention adding -q option to "info types".
2424 * symtab.c (struct info_types_options): New struct.
2425 (info_types_options_defs): New variable.
2426 (make_info_types_options_def_group): New function.
2427 (info_types_command): Use gdb::option framework to parse options.
2428 (info_types_command_completer): New function.
2429 (_initialize_symtab): Extend the help text on "info types" and
2430 register command completer.
2431
b4603c34
CB
24322019-07-21 Christian Biesinger <cbiesinger@google.com>
2433
2434 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
2435 (lookup_symbol_in_objfile): Change int to block_enum and add a
2436 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
2437
c8cdc1e0
CB
24382019-07-20 Christian Biesinger <cbiesinger@google.com>
2439
2440 * MAINTAINERS (Write After Approval): Add self.
2441
01e175fe
AB
24422019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
2443
2444 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
2445 instruction to the dummy code region.
2446
56f79b63
TT
24472019-07-19 Tom Tromey <tromey@adacore.com>
2448
2449 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
2450 (ARGSUSED, PARAMS, __func__): Remove rules.
2451
4c5aa8e0
AH
24522019-07-19 Alan Hayward <alan.hayward@arm.com>
2453
2454 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
2455 * features/arm/arm-with-iwmmxt.c: Remove.
2456 * features/arm/arm-with-iwmmxt.xml: Remove.
2457 * features/arm/arm-with-m-fpa-layout.c: Remove.
2458 * features/arm/arm-with-m-fpa-layout.xml: Remove.
2459 * features/arm/arm-with-m-vfp-d16.c: Remove.
2460 * features/arm/arm-with-m-vfp-d16.xml: Remove.
2461 * features/arm/arm-with-m.c: Remove.
2462 * features/arm/arm-with-m.xml: Remove.
2463 * features/arm/arm-with-neon.c: Remove.
2464 * features/arm/arm-with-neon.xml: Remove.
2465 * features/arm/arm-with-vfpv2.c: Remove.
2466 * features/arm/arm-with-vfpv2.xml: Remove.
2467 * features/arm/arm-with-vfpv3.c: Remove.
2468 * features/arm/arm-with-vfpv3.xml: Remove.
2469
f42b2617
AH
24702019-07-19 Alan Hayward <alan.hayward@arm.com>
2471
2472 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
2473
f29ec966
AH
24742019-07-19 Alan Hayward <alan.hayward@arm.com>
2475
2476 * arch/aarch32.c (aarch32_create_target_description): Create
2477 target descriptions using features.
2478 * arch/arm.c (arm_create_target_description)
2479 (arm_create_mprofile_target_description): Likewise.
2480 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
2481
d105cce5
AH
24822019-07-19 Alan Hayward <alan.hayward@arm.com>
2483
2484 * Makefile.in: Add new files.
2485 * aarch32-tdep.c: New file.
2486 * aarch32-tdep.h: New file.
2487 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2488 Call aarch32_read_description.
2489 * arch/aarch32.c: New file.
2490 * arch/aarch32.h: New file.
2491 * arch/arm.c (arm_create_target_description)
2492 (arm_create_mprofile_target_description): New function.
2493 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
2494 (arm_create_target_description)
2495 (arm_create_mprofile_target_description): New declaration.
2496 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
2497 read_description functions.
2498 * arm-linux-nat.c (arm_linux_nat_target::read_description):
2499 Likewise.
2500 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2501 * arm-tdep.c (tdesc_arm_list): New variable.
2502 (arm_register_g_packet_guesses): Call create description functions.
2503 (arm_read_description) (arm_read_mprofile_description): New
2504 function.
2505 * arm-tdep.h (arm_read_description)
2506 (arm_read_mprofile_description): Add declaration.
2507 * configure.tgt: Add new files.
2508
afe09f0b
GL
25092019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
2510
2511 * top.c (new_ui_command): Open specified terminal just once.
2512
cd215b2e
TT
25132019-07-18 Tom Tromey <tromey@adacore.com>
2514
2515 * symtab.c (main_name): Constify return type.
2516 * symfile.c (set_initial_language): Update.
2517 * symtab.h (main_name): Constify return type.
2518
d8f68fcb
TT
25192019-07-17 Tom Tromey <tom@tromey.com>
2520
2521 * tui/tui-winsource.c (tui_update_source_window)
2522 (tui_update_source_window_as_is)
2523 (tui_update_source_windows_with_line): Remove return.
2524 * tui/tui-disasm.c (tui_show_disassem)
2525 (tui_show_disassem_and_update_source): Remove return.
2526 * tui/tui.c (tui_reset): Remove return.
2527 * tui/tui-wingeneral.c
2528 (tui_check_and_display_highlight_if_needed): Remove return.
2529
ca5af91e
TT
25302019-07-17 Tom Tromey <tom@tromey.com>
2531
2532 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
2533
5104fe36
TT
25342019-07-17 Tom Tromey <tom@tromey.com>
2535
2536 * tui/tui-winsource.h (struct tui_exec_info_window)
2537 (struct tui_source_window_base): Move from tui-data.h.
2538 * tui/tui-winsource.c: Move many method definitions from
2539 elsewhere. Remove "structuring" comments.
2540 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
2541 (tui_source_window_base::refresh_window): Move to
2542 tui-winsource.c.
2543 * tui/tui-win.c (tui_source_window_base::refresh_all)
2544 (tui_source_window_base::update_tab_width)
2545 (tui_source_window_base::set_new_height)
2546 (tui_source_window_base::do_make_visible_with_new_height): Move to
2547 tui-winsource.c.
2548 * tui/tui-source.h: Update.
2549 * tui/tui-source.c (tui_source_window_base::reset): Move to
2550 tui-winsource.c.
2551 * tui/tui-disasm.h: Update.
2552 * tui/tui-data.h (struct tui_exec_info_window): Move to
2553 tui-winsource.h.
2554 (struct tui_source_window_base): Likewise.
2555 * tui/tui-data.c (tui_source_window_base::clear_detail)
2556 (tui_source_window_base, ~tui_source_window_base): Move to
2557 tui-winsource.c.
2558
daa15dde
TT
25592019-07-17 Tom Tromey <tom@tromey.com>
2560
2561 * tui/tui-win.c (tui_resize_all)
2562 (tui_source_window_base::update_tab_width)
2563 (tui_adjust_win_heights): Update.
2564 (tui_win_info::make_invisible_and_set_new_height): Rename from
2565 make_invisible_and_set_new_height.
2566 * tui/tui-data.h (struct tui_win_info)
2567 <make_invisible_and_set_new_height>: New method.
2568
bfad4537
TT
25692019-07-17 Tom Tromey <tom@tromey.com>
2570
2571 * tui/tui.c: Update.
2572 * tui/tui-source.h (struct tui_source_window): Move from
2573 tui-data.h.
2574 * tui/tui-layout.c: Update.
2575 * tui/tui-disasm.c: Update.
2576 * tui/tui-data.h (struct tui_source_window): Move to
2577 tui-source.h.
2578
88f7e873
TT
25792019-07-17 Tom Tromey <tom@tromey.com>
2580
2581 * tui/tui-disasm.h (struct tui_disasm_window): Move from
2582 tui-data.h.
2583 * tui/tui-data.h (struct tui_disasm_window): Move to
2584 tui-disasm.h.
2585
96bd6233
TT
25862019-07-17 Tom Tromey <tom@tromey.com>
2587
2588 * tui/tui-regs.h (struct tui_data_item_window): Move from
2589 tui-data.h.
2590 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
2591 * tui/tui-data.h (struct tui_data_item_window): Move to
2592 tui-regs.h.
2593 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
2594
ce38393b
TT
25952019-07-17 Tom Tromey <tom@tromey.com>
2596
2597 * tui/tui.c: Update.
2598 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
2599 (tui_cmd_window::max_height): Move to tui-command.c.
2600 * tui/tui-layout.c: Update.
2601 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
2602 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
2603 tui-command.c.
2604 * tui/tui-command.h (struct tui_cmd_window): Move from
2605 tui-data.h.
2606 * tui/tui-command.c: Remove "structuring" comments.
2607 (tui_cmd_window::clear_detail)
2608 (tui_cmd_window::do_make_visible_with_new_height)
2609 (tui_cmd_window::max_height): Move from elsewhere.
2610
2d8b51cb
TT
26112019-07-17 Tom Tromey <tom@tromey.com>
2612
2613 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
2614 Now static.
2615 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
2616 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
2617
18ab23af
TT
26182019-07-17 Tom Tromey <tom@tromey.com>
2619
2620 * tui/tui.c: Update.
2621 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
2622 tui-regs.c.
2623 * tui/tui-windata.h: Remove file.
2624 * tui/tui-windata.c: Remove file.
2625 * tui/tui-win.c (tui_data_window::set_new_height)
2626 (tui_data_window::do_make_visible_with_new_height): Move to
2627 tui-regs.c.
2628 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
2629 * tui/tui-regs.c: Remove "structuring" comments.
2630 (tui_data_window::first_data_item_displayed)
2631 (tui_data_window::delete_data_content_windows)
2632 (tui_data_window::erase_data_content)
2633 (tui_data_window::display_all_data)
2634 (tui_data_window::refresh_all)
2635 (tui_data_window::do_scroll_vertical)
2636 (tui_data_window::clear_detail, tui_data_window::set_new_height)
2637 (tui_data_window::do_make_visible_with_new_height)
2638 (tui_data_window::refresh_window): Move from elsewhere.
2639 (_initialize_tui_regs): Move to end of file.
2640 * tui/tui-layout.c: Update.
2641 * tui/tui-hooks.c: Update.
2642 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
2643 * tui/tui-data.c (tui_data_window::clear_detail): Move to
2644 tui-regs.c.
2645 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
2646
88b7e7cc
TT
26472019-07-17 Tom Tromey <tom@tromey.com>
2648
2649 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
2650 seen.
2651
0fcd3711
TT
26522019-07-17 Tom Tromey <tom@tromey.com>
2653
2654 * tui/tui-win.c (tui_source_window_base::set_new_height)
2655 (tui_source_window_base::do_make_visible_with_new_height): Use
2656 m_has_locator field directly.
2657 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
2658 method.
2659 (struct tui_source_window_base) <has_locator>: Likewise.
2660
4a38112d
TT
26612019-07-17 Tom Tromey <tom@tromey.com>
2662
2663 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
2664 Don't declare.
2665 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
2666 Remove.
2667 * tui/tui-win.c (tui_source_window_base::set_new_height)
2668 (tui_source_window_base::set_new_height)
2669 (make_invisible_and_set_new_height)
2670 (tui_source_window_base::do_make_visible_with_new_height)
2671 (tui_source_window_base::do_make_visible_with_new_height):
2672 Update.
2673 * tui/tui-layout.c (show_source_disasm_command, show_data)
2674 (show_source_or_disasm_and_command): Update.
2675 * tui/tui-layout.c (show_layout): Update.
2676
09129226
TT
26772019-07-17 Tom Tromey <tom@tromey.com>
2678
2679 * tui/tui-layout.c (make_data_window): Remove.
2680 (show_data): Unify creation and re-initialization cases.
2681
4a8a5e84
TT
26822019-07-17 Tom Tromey <tom@tromey.com>
2683
2684 * tui/tui-layout.c (make_source_window, make_disasm_window):
2685 Remove.
2686 (show_data): Unify creation and re-initialization cases.
2687
76d2be8e
TT
26882019-07-17 Tom Tromey <tom@tromey.com>
2689
2690 * tui/tui-layout.c (make_command_window): Remove.
2691 (show_source_disasm_command, show_source_or_disasm_and_command):
2692 Unify creation and re-initialization cases.
2693
890b8bde
TT
26942019-07-17 Tom Tromey <tom@tromey.com>
2695
2696 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
2697 creation and re-initialization cases.
2698
2cdfa113
TT
26992019-07-17 Tom Tromey <tom@tromey.com>
2700
2701 * tui/tui-regs.c (tui_get_register): Return void.
2702
8e3cfd09
TT
27032019-07-17 Tom Tromey <tom@tromey.com>
2704
2705 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
2706 Simplify.
2707
f4e04977
TT
27082019-07-17 Tom Tromey <tom@tromey.com>
2709
2710 * tui/tui-layout.c (show_source_disasm_command): Simplify window
2711 resetting.
2712
0379b883
TT
27132019-07-17 Tom Tromey <tom@tromey.com>
2714
2715 * tui/tui.h (tui_set_layout_by_name): Don't declare.
2716 * tui/tui-regs.c (tui_reg_layout): New function.
2717 (tui_show_registers, tui_reg_command): Use it.
2718 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
2719 (tui_layout_command): Rename from tui_set_layout_by_name. Change
2720 parameters.
2721 (tui_layout_command): Remove.
2722
b7fbad91
TT
27232019-07-17 Tom Tromey <tom@tromey.com>
2724
2725 * tui/tui-layout.h (tui/tui-layout): Return void.
2726 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
2727
4e1e56b9
TT
27282019-07-17 Tom Tromey <tom@tromey.com>
2729
2730 * tui/tui-layout.c (show_source_disasm_command, show_data):
2731 Update.
2732 (reset_locator): Remove.
2733 (show_source_or_disasm_and_command): Update.
2734
1e0c09ba
TT
27352019-07-17 Tom Tromey <tom@tromey.com>
2736
2737 * tui/tui-source.c (tui_source_window_base::reset): Remove
2738 win_type parameter.
2739 * tui/tui-layout.c (make_command_window, make_source_window)
2740 (make_disasm_window, make_data_window)
2741 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
2742 (reset_locator, show_source_or_disasm_and_command): Update.
2743 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
2744 win_type parameter.
2745 (struct tui_source_window_base) <reset>: Likewise.
2746
1bf605de
TT
27472019-07-17 Tom Tromey <tom@tromey.com>
2748
2749 * tui/tui-layout.c (show_source_disasm_command): Use
2750 reset_locator.
2751 (reset_locator): New function.
2752 (init_and_make_win): Remove.
2753 (show_source_or_disasm_and_command): Use reset_locator.
2754
098f9ed4
TT
27552019-07-17 Tom Tromey <tom@tromey.com>
2756
2757 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
2758 condition.
2759 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
2760 Remove condition.
2761 * tui/tui-source.c (tui_source_window_base::reset): New method.
2762 * tui/tui-layout.c (make_command_window): Don't call
2763 init_and_make_win.
2764 (make_source_window, make_disasm_window): Don't call
2765 make_source_or_disasm_window.
2766 (make_data_window): Don't call init_and_make_win. Change calling
2767 convention.
2768 (show_source_disasm_command, show_data): Simplify.
2769 (make_source_or_disasm_window): Remove.
2770 (show_source_or_disasm_and_command): Simplify.
2771 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
2772 (struct tui_source_window_base) <reset>: Likewise.
2773 <execution_info>: Remove initializer.
2774 * tui/tui-data.c (tui_source_window_base): Initialize
2775 execution_info.
2776
80110957
TT
27772019-07-17 Tom Tromey <tom@tromey.com>
2778
2779 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
2780 variable.
2781
cf82af05
TT
27822019-07-17 Tom Tromey <tom@tromey.com>
2783
2784 * tui/tui.c (tui_rl_other_window): Update.
2785 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
2786 superclass method first. Always iterate over regs_content.
2787 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
2788 method.
2789 * tui/tui-win.c (tui_set_focus_command): Update.
2790
01aeb396
TT
27912019-07-17 Tom Tromey <tom@tromey.com>
2792
2793 * tui/tui-win.c (tui_set_focus_command): Rename from
2794 tui_set_focus. Call tui_enable.
2795 (tui_set_focus_command): Remove.
2796
fd6c75ee
TT
27972019-07-17 Tom Tromey <tom@tromey.com>
2798
2799 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
2800 refresh_window.
2801 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
2802 touchwin.
2803 (tui_data_window::refresh_window): Call refresh_window on data
2804 items. Always call superclass refresh_window.
2805 (tui_win_info::refresh): Remove.
2806 (tui_source_window_base::refresh_window): Update.
2807 (tui_refresh_all): Update.
2808 * tui/tui-layout.c (show_source_disasm_command): Remove call to
2809 refresh_window.
2810 (show_source_or_disasm_and_command): Likewise.
2811 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
2812 (struct tui_source_window_base) <refresh>: Likewise.
2813
f6cc34a9
TT
28142019-07-17 Tom Tromey <tom@tromey.com>
2815
2816 * tui/tui-winsource.c (tui_clear_source_content)
2817 (tui_show_source_content): Update.
2818 * tui/tui-source.c (tui_source_window::showing_source_p): Check
2819 whether content is empty.
2820 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
2821 Remove.
2822
f31ec9af
TT
28232019-07-17 Tom Tromey <tom@tromey.com>
2824
2825 * tui/tui-winsource.c (tui_erase_source_content): Clear the
2826 window's contents.
2827 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
2828 * tui/tui-source.c (tui_set_source_content_nil): Remove.
2829
d1b6f1e5
TT
28302019-07-17 Tom Tromey <tom@tromey.com>
2831
2832 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
2833 (struct tui_data_item_window): Update.
2834
d9743a13
TT
28352019-07-17 Tom Tromey <tom@tromey.com>
2836
2837 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
2838 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
2839 defines.
2840
caf0bc4e
TT
28412019-07-17 Tom Tromey <tom@tromey.com>
2842
2843 * tui/tui-winsource.h (tui_erase_source_content)
2844 (tui_clear_source_content): Remove "display_prompt" parameter.
2845 * tui/tui-winsource.c (tui_update_source_window_as_is)
2846 (tui_update_source_windows_with_addr): Update.
2847 (tui_clear_source_content): Remove "display_prompt" parameter.
2848 (tui_erase_source_content): Likewise. Simplify.
2849 (tui_show_source_content): Update.
2850 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2851 * tui/tui-stack.c (tui_show_frame_info): Update.
2852 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
2853 Remove defines.
2854
9d391078
TT
28552019-07-17 Tom Tromey <tom@tromey.com>
2856
2857 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2858 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
2859 parameter.
2860 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
2861 parameter.
2862
a38da35d
TT
28632019-07-17 Tom Tromey <tom@tromey.com>
2864
2865 * tui/tui-winsource.c (tui_clear_source_content)
2866 (tui_show_source_content, tui_show_exec_info_content)
2867 (tui_clear_exec_info_content): Update.
2868 * tui/tui-stack.c (tui_show_locator_content): Update.
2869 (tui_show_frame_info): Update.
2870 * tui/tui-source.h (tui_source_window): Don't declare.
2871 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
2872 from tui_source_is_displayed.
2873 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
2874 Remove field.
2875 (struct tui_source_window_base) <content_in_use>: New field. Now
2876 bool.
2877 (struct tui_source_window) <showing_source_p>: New method.
2878 (TUI_SRC_WIN): Change cast.
2879 * tui/tui-data.c (tui_initialize_static_data): Update.
2880
c2cd8994
TT
28812019-07-17 Tom Tromey <tom@tromey.com>
2882
2883 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
2884 location_matches_p.
2885 * tui/tui-source.c (tui_source_window::location_matches_p): New
2886 method.
2887 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
2888 method.
2889 * tui/tui-data.h (struct tui_source_window_base)
2890 <location_matches_p>: New method.
2891 (struct tui_source_window, struct tui_disasm_window)
2892 <location_matches_p>: Likewise.
2893
4dde7b34
TT
28942019-07-17 Tom Tromey <tom@tromey.com>
2895
2896 * tui/tui-win.c (tui_set_win_height_command): Rename from
2897 tui_set_win_height.
2898 (tui_set_win_height_command): Remove.
2899
b73dd877
TT
29002019-07-17 Tom Tromey <tom@tromey.com>
2901
2902 * tui/tui-source.c (tui_source_window): New constructor. Add
2903 observer.
2904 (~tui_source_window): New destructor.
2905 (tui_source_window::style_changed): New method.
2906 * tui/tui-hooks.c (tui_redisplay_source): Remove.
2907 (tui_attach_detach_observers): Update.
2908 * tui/tui-data.h (struct tui_source_window): Make constructor not
2909 inline. Add destructor.
2910 (struct tui_source_window) <style_changed>: New method.
2911 <m_observable>: New member.
2912
ae2b5380
TT
29132019-07-17 Tom Tromey <tom@tromey.com>
2914
2915 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
2916 * tui/tui-win.c (tui_resize_all): Fix typo.
2917
1ce3e844
TT
29182019-07-17 Tom Tromey <tom@tromey.com>
2919
2920 * tui/tui-wingeneral.h (tui_refresh_all): Update.
2921 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
2922 (tui_refresh_all): Remove "list" parameter. Use foreach.
2923 * tui/tui-win.c (window_name_completer): Use foreach.
2924 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
2925 (update_tab_width): Likewise.
2926 * tui/tui-layout.c (show_layout): Update.
2927 * tui/tui-data.h (class tui_window_iterator): New.
2928 (struct all_tui_windows): New.
2929 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
2930
fe3eaf1c
TT
29312019-07-17 Tom Tromey <tom@tromey.com>
2932
2933 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
2934 parameter. Don't reference globals.
2935 (tui_reg_command): Update.
2936
368c1354
TT
29372019-07-17 Tom Tromey <tom@tromey.com>
2938
2939 * tui/tui-regs.c (tui_show_registers): Simplify.
2940
e80cd204
TT
29412019-07-17 Tom Tromey <tom@tromey.com>
2942
2943 * tui/tui-regs.c (tui_show_registers): Update.
2944 (tui_show_register_group): Add win_info parameter.
2945
aca2dd16
TT
29462019-07-17 Tom Tromey <tom@tromey.com>
2947
2948 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
2949 Rename from tui_display_reg_element_at_line.
2950 (tui_data_window::display_registers_from_line): Update.
2951 * tui/tui-data.h (struct tui_data_window)
2952 <display_reg_element_at_line>: New method.
2953
517e9505
TT
29542019-07-17 Tom Tromey <tom@tromey.com>
2955
2956 * tui/tui-regs.h (tui_display_registers_from)
2957 (tui_display_registers_from_line): Don't declare.
2958 * tui/tui-windata.c (tui_data_window::display_all_data)
2959 (tui_data_window::refresh_all)
2960 (tui_data_window::do_scroll_vertical): Update.
2961 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
2962 from tui_display_registers_from.
2963 (tui_display_reg_element_at_line): Update.
2964 (tui_data_window::display_registers_from_line): Rename from
2965 tui_display_registers_from_line.
2966 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
2967 display_registers_from_line>: New methods.
2968
f76d8b19
TT
29692019-07-17 Tom Tromey <tom@tromey.com>
2970
2971 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
2972 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
2973 from tui_erase_data_content.
2974 (tui_data_window::display_all_data)
2975 (tui_data_window::refresh_all)
2976 (tui_data_window::do_scroll_vertical): Update.
2977 * tui/tui-regs.c (tui_show_registers): Update.
2978 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
2979 New method.
2980
b4094625
TT
29812019-07-17 Tom Tromey <tom@tromey.com>
2982
2983 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
2984 declare.
2985 * tui/tui-windata.c
2986 (tui_data_window::delete_data_content_windows): Rename from
2987 tui_delete_data_content_windows.
2988 (tui_data_window::display_all_data)
2989 (tui_data_window::do_scroll_vertical): Update.
2990 * tui/tui-data.h (struct tui_data_window)
2991 <delete_data_content_windows>: New method.
2992
c223a729
TT
29932019-07-17 Tom Tromey <tom@tromey.com>
2994
2995 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
2996 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
2997
50daf268
TT
29982019-07-17 Tom Tromey <tom@tromey.com>
2999
3000 * tui/tui-windata.h (tui_display_all_data): Don't declare.
3001 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
3002 from tui_display_all_data.
3003 * tui/tui-win.c
3004 (tui_data_window::do_make_visible_with_new_height): Update.
3005 * tui/tui-regs.c (tui_show_registers): Update.
3006 * tui/tui-layout.c (tui_set_layout): Update.
3007 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
3008 method.
3009
df5f8cab
TT
30102019-07-17 Tom Tromey <tom@tromey.com>
3011
3012 * tui/tui-windata.h (tui_display_data_from): Don't declare.
3013 * tui/tui-windata.c (tui_display_data_from): Remove.
3014 (tui_data_window::refresh_all): Update.
3015
80cb6c27
TT
30162019-07-17 Tom Tromey <tom@tromey.com>
3017
3018 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
3019 * tui/tui-windata.c (tui_display_data_from_line): Remove.
3020 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
3021 tui_display_registers_from_line.
3022 * tui/tui-regs.h (tui_display_registers_from_line): Update.
3023 * tui/tui-regs.c (tui_display_registers_from_line): Remove
3024 "force_display" parameter.
3025
baff0c28
TT
30262019-07-17 Tom Tromey <tom@tromey.com>
3027
3028 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
3029 declare.
3030 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
3031 Rename from tui_first_reg_element_no_inline.
3032 (tui_display_reg_element_at_line)
3033 (tui_display_registers_from_line): Update.
3034 * tui/tui-data.h (struct tui_data_window)
3035 <first_reg_element_no_inline>: New method.
3036
3b23c5f2
TT
30372019-07-17 Tom Tromey <tom@tromey.com>
3038
3039 * tui/tui-windata.c (tui_display_data_from)
3040 (tui_data_window::do_scroll_vertical): Update.
3041 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
3042 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
3043 Rename from tui_line_from_reg_element_no.
3044 (tui_display_registers_from_line): Update.
3045 * tui/tui-data.h (struct tui_data_window)
3046 <line_from_reg_element_no>: New method.
3047
0b5ec218
TT
30482019-07-17 Tom Tromey <tom@tromey.com>
3049
3050 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
3051 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
3052 tui_last_regs_line_no.
3053 (tui_display_reg_element_at_line)
3054 (tui_display_registers_from_line): Update.
3055 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
3056 method.
3057
0807ab7b
TT
30582019-07-17 Tom Tromey <tom@tromey.com>
3059
3060 PR tui/24722:
3061 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
3062 (tui_update_breakpoint_info): Add "being_deleted" parameter.
3063 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3064 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
3065 (tui_update_breakpoint_info): Likewise.
3066 * tui/tui-hooks.c (tui_event_create_breakpoint)
3067 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
3068 Update.
3069
9ad7fdef
TT
30702019-07-17 Tom Tromey <tom@tromey.com>
3071
3072 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
3073
5813316f
TT
30742019-07-17 Tom Tromey <tom@tromey.com>
3075
3076 * tui/tui-winsource.c (tui_update_source_window_as_is)
3077 (tui_update_source_windows_with_addr): Update.
3078 * tui/tui-source.h (tui_set_source_content)
3079 (tui_show_symtab_source): Add "win_info" parameter.
3080 * tui/tui-source.c (tui_set_source_content): Add "win_info"
3081 parameter.
3082 (tui_show_symtab_source): Likewise.
3083
00e264e7
TT
30842019-07-17 Tom Tromey <tom@tromey.com>
3085
3086 * tui/tui-wingeneral.c
3087 (tui_check_and_display_highlight_if_needed): Check can_highlight.
3088
06210ce4
TT
30892019-07-17 Tom Tromey <tom@tromey.com>
3090
3091 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
3092 (struct tui_cmd_window) <can_scroll>: New method.
3093 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
3094 method.
3095
381befee
TT
30962019-07-17 Tom Tromey <tromey@adacore.com>
3097
3098 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
3099 do_field_signed>: Rename. Change type of "value".
3100 * ui-out.c (ui_out::field_signed): Rename from field_int.
3101 Change type of "value".
3102 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
3103 type of "value".
3104 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
3105 do_field_int. Change type of "value".
3106 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
3107 do_field_int. Change type of "value".
3108 * tracepoint.c (trace_status_mi, tfind_1)
3109 (print_one_static_tracepoint_marker): Update.
3110 * thread.c (print_thread_info_1, print_selected_thread_frame):
3111 Update.
3112 * stack.c (print_frame, print_frame_info): Update.
3113 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
3114 Update.
3115 * source.c (print_source_lines_base): Update.
3116 * skip.c (info_skip_command): Update.
3117 * record-btrace.c (btrace_ui_out_decode_error)
3118 (btrace_call_history_src_line): Update.
3119 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
3120 Update.
3121 * progspace.c (print_program_space): Update.
3122 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
3123 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
3124 do_field_int. Change type of "value".
3125 * mi/mi-out.c (mi_ui_out::do_table_begin)
3126 (mi_ui_out::do_table_header): Update.
3127 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
3128 type of "value".
3129 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
3130 (mi_cmd_data_list_changed_registers, output_register)
3131 (mi_cmd_data_read_memory, mi_load_progress)
3132 (mi_cmd_trace_frame_collected): Update.
3133 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
3134 Update.
3135 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3136 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
3137 (mi_cmd_var_list_children, varobj_update_one): Update.
3138 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
3139 (mi_cmd_stack_list_args, list_arg_or_local): Update.
3140 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
3141 * inferior.c (print_inferior): Update.
3142 * gdb_bfd.c (print_one_bfd): Update.
3143 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3144 Update.
3145 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
3146 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
3147 do_field_int. Change type of "value".
3148 * cli-out.c (cli_ui_out::do_field_signed): Rename from
3149 do_field_int. Change type of "value".
3150 * breakpoint.c (watchpoint_check, print_breakpoint_location)
3151 (print_one_breakpoint_location, print_it_catch_fork)
3152 (print_one_catch_fork, print_it_catch_vfork)
3153 (print_one_catch_vfork, print_it_catch_solib)
3154 (print_it_catch_exec, print_it_ranged_breakpoint)
3155 (print_mention_watchpoint, print_mention_masked_watchpoint)
3156 (bkpt_print_it, update_static_tracepoint): Update.
3157 * break-catch-throw.c (print_it_exception_catchpoint): Update.
3158 * break-catch-syscall.c (print_it_catch_syscall): Update.
3159 * ada-tasks.c (print_ada_task_info): Update.
3160 * ada-lang.c (print_it_exception, print_mention_exception):
3161 Update.
3162
6b78c3f8
AB
31632019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3164
3165 PR breakpoints/24541
3166 * gdbarch.c: Regenerate.
3167 * gdbarch.h: Regenerate.
3168 * gdbarch.sh: Adjust return type and parameter types for
3169 'stap_adjust_register'.
3170 (i386_stap_adjust_register): Adjust signature and return new
3171 register name.
3172 * stap-probe.c (stap_parse_register_operand): Adjust use of
3173 'gdbarch_stap_adjust_register'.
3174
d72a9b85
TT
31752019-07-17 Tom Tromey <tromey@adacore.com>
3176
3177 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
3178 declare VEC.
3179 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
3180 std::vector.
3181 (struct s390_process_info): Add initializers.
3182 (s390_add_process): Use new.
3183 (s390_linux_nat_target::low_forget_process): Use delete.
3184 (s390_linux_nat_target::low_new_fork)
3185 (s390_linux_nat_target::stopped_by_watchpoint)
3186 (s390_linux_nat_target::low_prepare_to_resume)
3187 (s390_linux_nat_target::insert_watchpoint)
3188 (s390_linux_nat_target::insert_hw_breakpoint)
3189 (s390_linux_nat_target::remove_watchpoint)
3190 (s390_linux_nat_target::remove_hw_breakpoint): Update.
3191
206e6c58
JB
31922019-07-16 John Baldwin <jhb@FreeBSD.org>
3193
3194 * aarch64-fbsd-nat.c: Include regcache.h.
3195 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
3196 argument.
3197 (aarch64_fbsd_nat_target::fetch_registers)
3198 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
3199 variable.
3200 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
3201
cbde90f2
JB
32022019-07-16 John Baldwin <jhb@FreeBSD.org>
3203
3204 * fbsd-nat.c: Include gdbarch.h.
3205
07128006
TT
32062019-07-15 Tom Tromey <tromey@adacore.com>
3207
3208 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
3209
1f77b012
TT
32102019-07-15 Tom Tromey <tromey@adacore.com>
3211
3212 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
3213 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
3214 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
3215 * cli-out.c (cli_ui_out::do_field_int): New method.
3216 * ui-out.c (ui_out::field_unsigned): New method.
3217 * symfile.c (generic_load): Use field_unsigned.
3218 (print_transfer_performance): Likewise.
3219 * record-btrace.c (ui_out_field_uint): Remove.
3220 (btrace_call_history_insn_range, btrace_call_history): Use
3221 field_unsigned.
3222 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3223 field_unsigned.
3224 * ui-out.h (class ui_out) <field_unsigned>: New method.
3225 <do_field_unsigned>: Likewise.
3226
33eca680
TT
32272019-07-15 Tom Tromey <tromey@adacore.com>
3228
3229 * mi/mi-main.c (list_available_thread_groups): Use field_string.
3230 * mi/mi-interp.c (mi_memory_changed): Use field_string.
3231 * target.c (flash_erase_command): Use field_string.
3232 * infrun.c (print_signal_received_reason): Use field_string.
3233 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
3234 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
3235 field_string.
3236 * ada-tasks.c (print_ada_task_info): Use field_string.
3237
ca8d69be
TT
32382019-07-15 Tom Tromey <tromey@adacore.com>
3239
3240 * target.c (flash_erase_command): Use field_core_addr.
3241 * symfile.c (generic_load): Use field_core_addr.
3242 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3243 Use field_core_addr.
3244 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
3245 field_core_addr.
3246
0d4e84ed
AB
32472019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3248
3249 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
3250 value if its desired type is smaller than a CORE_ADDR and signed.
3251
9a49df9d
AB
32522019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3253
3254 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
3255 of changes to field names, and use new is_reference field to
3256 decide if a property is a reference or not.
3257 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
3258 field.
3259 (struct dwarf2_property_baton): Update header comment, rename
3260 'referenced_type' to 'property_type' and update comments.
3261 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
3262 default property type, store in property baton, update to take
3263 accound of renamed field.
3264 (read_func_scope): Update call to attr_to_dynamic_prop.
3265 (read_array_type): Likewise.
3266 (dwarf2_per_cu_addr_sized_int_type): New function.
3267 (read_subrange_index_type): Move type finding code to
3268 dwarf2_per_cu_addr_sized_int_type.
3269 (read_subrange_type): Update calls to attr_to_dynamic_prop.
3270 (dwarf2_per_cu_addr_type): New function.
3271 (set_die_type): Update calls to attr_to_dynamic_prop.
3272
b86352cf
AB
32732019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3274
3275 * dwarf2read.c (read_subrange_index_type): New function.
3276 (read_subrange_type): Move code into new function and call it.
3277 * gdbtypes.c (create_range_type): Add some asserts.
3278
603490bf
AB
32792019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3280
3281 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
3282 update return statements.
3283 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
3284 declaration, and update comment to match.
3285 * gdbtypes.c (resolve_dynamic_array): Update call to
3286 dwarf2_evaluate_property to match new return type.
3287
592f9d27
AB
32882019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3289
3290 * valarith.c (value_subscripted_rvalue): Change lowerbound
3291 parameter type from int to LONGEST.
3292 * value.h (value_subscripted_rvalue): Likewise in declaration.
3293
60cfcb20
AB
32942019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3295
3296 * cli/cli-utils.c (info_print_command_completer): New function.
3297 * cli/cli-utils.h: Add 'completer.h' include, and forward
3298 declaration for 'struct cmd_list_element'.
3299 (info_print_command_completer): Declare.
3300 * stack.c (_initialize_stack): Add completer for 'info locals' and
3301 'info args'.
3302 * symtab.c (_initialize_symtab): Add completer for 'info
3303 variables' and 'info functions'.
3304 * NEWS: Mention completion for additional info commands.
3305
b16507e0
AB
33062019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3307
3308 * cli/cli-utils.c (extract_info_print_args): Delete.
3309 (extract_arg_maybe_quoted): Delete.
3310 (info_print_options_defs): New variable.
3311 (make_info_print_options_def_group): New function.
3312 (extract_info_print_options): Define new function.
3313 * cli/cli-utils.h (extract_info_print_args): Delete.
3314 (struct info_print_options): New structure.
3315 (extract_info_print_options): Declare new function.
3316 * stack.c (info_locals_command): Update to use new
3317 extract_info_print_options, also add a header comment.
3318 (info_args_command): Likewise.
3319 * symtab.c (info_variables_command): Likewise.
3320 (info_functions_command): Likewise.
3321
021d8588
AB
33222019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3323
3324 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
3325 to extract string arguments.
3326 * common/common-utils.c (extract_string_maybe_quoted): New function.
3327 * common/common-utils.h (extract_string_maybe_quoted): Declare.
3328
b777eb6d
TT
33292019-07-11 Tom Tromey <tromey@adacore.com>
3330
3331 * main.c (get_init_files): Use GDBINIT, not gdbinit.
3332 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
3333 * top.h (gdbinit): Don't declare.
3334 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
3335 into...
3336 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
3337 * top.c (gdb_init): Don't call init_cli_cmds.
3338 (gdbinit): Remove.
3339 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
3340
72ee03ff
TT
33412019-07-11 Tom Tromey <tromey@adacore.com>
3342
3343 * python/py-inferior.c (add_thread_object): Don't use thread_obj
3344 after it has been moved.
3345
00db9531
SM
33462019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3347
3348 * valops.c (value_must_coerce_to_target): Change return type to
3349 bool.
3350 * value.h (value_must_coerce_to_target): Likewise.
3351
f2478a7e
SM
33522019-07-10 Simon Marchi <simon.marchi@efficios.com>
3353
3354 * breakpoint.c (is_hardware_watchpoint): Remove
3355 forward-declaration.
3356 (is_masked_watchpoint): Change return type to bool.
3357 (is_tracepoint): Likewise.
3358 (is_breakpoint): Likewise.
3359 (is_hardware_watchpoint): Likewise.
3360 (is_watchpoint): Likewise.
3361 (is_no_memory_software_watchpoint): Likewise.
3362 (is_catchpoint): Likewise.
3363 (breakpoint_1): Make FILTER parameter's return type bool.
3364 is_masked_watchpoint): Change return type to bool.
3365 (save_breakpoints): Make FILTER parameter's return type bool.
3366 * breakpoint.h (is_breakpoint): Change return type to bool.
3367 (is_watchpoint): Likewise.
3368 (is_catchpoint): Likewise.
3369 (is_tracepoint): Likewise.
3370
0d12e84c
TT
33712019-07-10 Tom Tromey <tom@tromey.com>
3372
3373 * defs.h: Don't include gdbarch.h.
3374 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
3375 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
3376 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
3377 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
3378 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
3379 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
3380 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
3381 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
3382 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
3383 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
3384 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
3385 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
3386 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
3387 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
3388 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
3389 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
3390 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
3391 record-btrace.c, record.h, regcache-dump.c, regcache.h,
3392 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
3393 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
3394 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
3395 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
3396 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
3397 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
3398 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
3399 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
3400 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
3401
f06f1252
TT
34022019-07-10 Tom Tromey <tromey@adacore.com>
3403
3404 * ada-lang.h (is_ada_exception_catchpoint): Declare.
3405 * breakpoint.c (init_ada_exception_breakpoint): Register as
3406 bp_catchpoint.
3407 (print_one_breakpoint_location, print_one_breakpoint): Use
3408 is_ada_exception_catchpoint.
3409 * ada-lang.c (class ada_catchpoint_location): Pass
3410 bp_loc_software_breakpoint to bp_location constructor.
3411 (is_ada_exception_catchpoint): New function.
3412
7a5d944b
TT
34132019-07-10 Tom Tromey <tromey@adacore.com>
3414
3415 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
3416 VEC.
3417 (struct arm_exidx_entry): New method operator<.
3418 (struct arm_exidx_data) <section_maps>: Change type.
3419 (arm_exidx_data_free): Remove.
3420 (arm_exidx_data_key): Change type. Move lower.
3421 (arm_exidx_new_objfile): Update.
3422 (arm_compare_exidx_entries): Remove.
3423 (arm_find_exidx_entry, _initialize_arm_tdep)
3424
48c66e1d
TT
34252019-07-10 Tom Tromey <tromey@adacore.com>
3426
3427 * solib-spu.c (ocl_program_data_key): Change type.
3428 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
3429 Update.
3430
a269fbf1
TT
34312019-07-10 Tom Tromey <tromey@adacore.com>
3432
3433 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
3434 (struct solib_aix_inferior_data) <library_list>: Change type.
3435 (solib_aix_inferior_data_handle): Change type.
3436 (get_solib_aix_inferior_data): Update.
3437 (solib_aix_free_library_list): Remove.
3438 (library_list_start_library): Update.
3439 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
3440 return type.
3441 (solib_aix_get_library_list)
3442 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
3443 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
3444
c294730c
TT
34452019-07-10 Tom Tromey <tromey@adacore.com>
3446
3447 * solib-dsbt.c (struct dsbt_info): Add initializers.
3448 (solib_dsbt_pspace_data): Change type.
3449 (dsbt_pspace_data_cleanup): Remove.
3450 (get_dsbt_info, _initialize_dsbt_solib): Update.
3451
9d52077d
TT
34522019-07-10 Tom Tromey <tromey@adacore.com>
3453
3454 * spu-tdep.c (spu_overlay_data): Change type.
3455 (spu_get_overlay_table, spu_overlay_new_objfile)
3456 (_initialize_spu_tdep): Update.
3457
22a20dca
TT
34582019-07-10 Tom Tromey <tromey@adacore.com>
3459
3460 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
3461 destructor.
3462 (dbx_objfile_data_key): Change type and declare later.
3463 (DBX_SYMFILE_INFO): Rewrite.
3464 * dbxread.c (dbx_objfile_data_key): Change type.
3465 (dbx_symfile_init): Update.
3466 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
3467 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3468 (stabsect_build_psymtabs, _initialize_dbxread): Update.
3469
cb60f420
TT
34702019-07-10 Tom Tromey <tromey@adacore.com>
3471
3472 * jit.c (jit_program_space_key): Change type. Move lower.
3473 (get_jit_program_space_data): Update.
3474 (jit_program_space_data_cleanup): Remove.
3475 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
3476 Update.
3477 (struct jit_program_space_data): Add initializers.
3478
51df2ae3
TT
34792019-07-10 Tom Tromey <tromey@adacore.com>
3480
3481 * solib-darwin.c (struct darwin_info): Add initializers.
3482 (solib_darwin_pspace_data): Change type.
3483 (darwin_pspace_data_cleanup): Remove.
3484 (get_darwin_info, _initialize_darwin_solib): Update.
3485
18101a35
TT
34862019-07-10 Tom Tromey <tromey@adacore.com>
3487
3488 * remote-sim.c (struct sim_inferior_data): Add initializers,
3489 constructor, and destructor.
3490 (sim_inferior_data_key): Change type. Move lower.
3491 (check_for_duplicate_sim_descriptor): Update.
3492 (get_sim_inferior_data): Use new. Update.
3493 (~sim_inferior_data_cleanup): Rename from
3494 sim_inferior_data_cleanup. Simplify.
3495 (gdbsim_close_inferior, simulator_command)
3496 (sim_command_completer, _initialize_remote_sim): Update.
3497 (next_pid, INITIAL_PID): Move earlier.
3498
05b08ac1
TT
34992019-07-10 Tom Tromey <tromey@adacore.com>
3500
3501 * python/python-internal.h (create_thread_object): Return
3502 gdbpy_ref.
3503 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
3504 * python/py-inferior.c (struct threadlist_entry): Add
3505 constructor.
3506 <thread_obj>: Now a gdbpy_ref.
3507 (thread_to_thread_object): Update.
3508 (add_thread_object): Use new.
3509 (delete_thread_object): Use delete.
3510 (infpy_threads): Update.
3511 (py_free_inferior): Update. Construct "inf_obj" after acquiring
3512 GIL.
3513
32372d80
TT
35142019-07-10 Tom Tromey <tromey@adacore.com>
3515
3516 * valops.c (value_cast): Specialize error message for Ada.
3517
5c458ae8
SM
35182019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3519
3520 * breakpoint.c (breakpoint_1): Update doc and parameter names.
3521
4c462cb0
SM
35222019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3523
3524 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
3525 bpstat_should_step): Return bool, adjust comments.
3526 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
3527 bpstat_should_step): Likewise.
3528
89abbcc2
AH
35292019-07-10 Alan Hayward <alan.hayward@arm.com>
3530
3531 * features/Makefile: Use feature target descriptions for Arm.
3532 * features/arm/arm-core.c: Generate new file.
3533 * features/arm/arm-fpa.c: Likewise.
3534 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
3535 * features/arm/arm-m-profile.c: Likewise.
3536 * features/arm/arm-vfpv2.c: Likewise.
3537 * features/arm/arm-vfpv3.c: Likewise.
3538 * features/arm/xscale-iwmmxt.c: Likewise.
3539 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
3540
166a82be
AH
35412019-07-10 Alan Hayward <alan.hayward@arm.com>
3542
3543 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
3544 ptrace earlier.
3545
9fb4c7e9
AH
35462019-07-10 Alan Hayward <alan.hayward@arm.com>
3547
3548 * features/aarch64-pauth.c: Regenerate.
3549
e2d0f980
SM
35502019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
3551
3552 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
3553 bool.
3554 (bpstat_what): Use false instead of 0.
3555
a38118e5
PA
35562019-07-09 Pedro Alves <palves@redhat.com>
3557
3558 * break-catch-throw.c (is_exception_catchpoint): New.
3559 * breakpoint.c (print_one_breakpoint_location): New parameter
3560 'raw_loc'. Handle it. Use
3561 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
3562 looking at the breakpoint's type.
3563 (print_one_breakpoint): If handling "maint info breakpoints", also
3564 print locations of exception catchpoints.
3565 * breakpoint.h (is_exception_catchpoint): Declare.
3566
cb1e4e32
PA
35672019-07-09 Pedro Alves <palves@redhat.com>
3568
3569 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
3570 "addr" field.
3571 (allocate_location_exception_catchpoint): New.
3572 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
3573 (initialize_throw_catchpoint_ops): Install
3574 allocate_location_exception_catchpoint as allocate_location
3575 method.
3576 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
3577 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
3578 bp_loc_other.
3579 (breakpoint_address_is_meaningful): Delete.
3580 (bl_address_is_meaningful): New.
3581 (breakpoint_locations_match): Adjust comment.
3582 (bp_location_from_bp_type): New, factored out of...
3583 (bp_location::bp_location(breakpoint *)): ... this.
3584 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
3585 factored out of...
3586 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
3587 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
3588 breakpoint_address_is_meaningful.
3589 (bp_locations_compare): Adjust comment.
3590 (update_global_location_list): Use bl_address_is_meaningful
3591 instead of breakpoint_address_is_meaningful.
3592 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
3593 explicit.
3594 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
3595 * python/py-breakpoint.c (bppy_get_location): No longer check
3596 whether location is null.
3597
b58a68fe
PA
35982019-07-09 Pedro Alves <palves@redhat.com>
3599
3600 PR c++/15468
3601 * breakpoint.c (print_one_breakpoint_location): Remove
3602 single-location assert.
3603
268a13a5
TT
36042019-07-09 Tom Tromey <tom@tromey.com>
3605
3606 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
3607 * configure: Rebuild.
3608 * configure.ac: Change common to gdbsupport.
3609 * gdbsupport: Rename from common.
3610 * acinclude.m4: Change common to gdbsupport.
3611 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
3612 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
3613 gdbsupport.
3614 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
3615 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
3616 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
3617 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
3618 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
3619 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
3620 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
3621 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
3622 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
3623 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
3624 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
3625 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
3626 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
3627 coff-pe-read.c, command.h, compile/compile-c-support.c,
3628 compile/compile-c.h, compile/compile-cplus-symbols.c,
3629 compile/compile-cplus-types.c, compile/compile-cplus.h,
3630 compile/compile-loc2c.c, compile/compile.c, completer.c,
3631 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
3632 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
3633 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
3634 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
3635 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
3636 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
3637 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
3638 features/aarch64-core.c, features/aarch64-fpu.c,
3639 features/aarch64-pauth.c, features/aarch64-sve.c,
3640 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
3641 features/i386/32bit-core.c, features/i386/32bit-linux.c,
3642 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
3643 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
3644 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
3645 features/i386/64bit-core.c, features/i386/64bit-linux.c,
3646 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
3647 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
3648 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
3649 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
3650 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
3651 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
3652 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
3653 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
3654 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
3655 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
3656 go32-nat.c, guile/guile.c, guile/scm-ports.c,
3657 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
3658 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
3659 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
3660 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
3661 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
3662 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
3663 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
3664 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
3665 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
3666 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
3667 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
3668 minsyms.c, mips-linux-tdep.c, namespace.h,
3669 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
3670 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
3671 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
3672 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
3673 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
3674 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
3675 nat/linux-waitpid.c, nat/mips-linux-watch.c,
3676 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
3677 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
3678 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
3679 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
3680 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
3681 procfs.c, producer.c, progspace.h, psymtab.h,
3682 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
3683 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
3684 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
3685 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
3686 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
3687 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
3688 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
3689 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
3690 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
3691 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
3692 target-memory.c, target.c, target.h, target/waitstatus.c,
3693 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
3694 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
3695 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
3696 unittests/array-view-selftests.c,
3697 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
3698 unittests/common-utils-selftests.c,
3699 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
3700 unittests/format_pieces-selftests.c,
3701 unittests/function-view-selftests.c,
3702 unittests/lookup_name_info-selftests.c,
3703 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
3704 unittests/mkdir-recursive-selftests.c,
3705 unittests/observable-selftests.c,
3706 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
3707 unittests/parse-connection-spec-selftests.c,
3708 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
3709 unittests/scoped_fd-selftests.c,
3710 unittests/scoped_mmap-selftests.c,
3711 unittests/scoped_restore-selftests.c,
3712 unittests/string_view-selftests.c, unittests/style-selftests.c,
3713 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
3714 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
3715 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
3716 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
3717 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
3718 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
3719
5b0e2db4
AB
37202019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3721
3722 * linespec.c (decode_digits_list_mode): Set explicit_line to a
3723 bool value.
3724 (decode_digits_ordinary): Set explicit_line field in sal.
3725 * symtab.c (skip_prologue_sal): Don't skip prologue for a
3726 symtab_and_line that was set on an explicit line number in
3727 assembler code. Do always update the recorded symtab and line if
3728 we do skip the prologue.
3729
0ba852ab
AB
37302019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3731
3732 * breakpoint.c (set_breakpoint_location_function): Remove
3733 explicit_loc parameter.
3734 (momentary_breakpoint_from_master): Update call to
3735 set_breakpoint_location_function.
3736 (add_location_to_breakpoint): Likewise.
3737
b3a7d171
AB
37382019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3739
3740 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
3741 required features based on default bfd type when no specific bfd
3742 is present.
3743
1f6f6e21
PW
37442019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3745
3746 * NEWS: Mention that GDB printf and eval commands can now print
3747 C-style and Ada-style convenience var strings without
3748 calling the inferior.
3749 * printcmd.c (printf_c_string): Locally print GDB internal var
3750 instead of transiting via the inferior.
3751 (printf_wide_c_string): Likewise.
3752
37532019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
3754
3755 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
3756
0598af48
TT
37572019-07-04 Tom Tromey <tom@tromey.com>
3758
3759 PR tui/24724:
3760 * tui/tui-winsource.c (tui_clear_source_content): Update.
3761 (tui_source_window_base::set_is_exec_point_at): Fix comment.
3762 (tui_update_breakpoint_info): Update.
3763 (tui_set_exec_info_content): Update.
3764 * tui/tui-source.c (tui_set_source_content_nil): Update.
3765 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
3766 has_break.
3767 * tui/tui-data.h (enum tui_bp_flag): New.
3768 (tui_bp_flags): New enum flags type.
3769 (struct tui_source_element) <break_mode>: Change type. Rename
3770 from has_break.
3771 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
3772 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
3773 constants.
3774 * tui/tui-winsource.h: Fix comment.
3775
350fab54
AH
37762019-07-04 Alan Hayward <alan.hayward@arm.com>
3777
3778 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
3779 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
3780 (store_fpregs_to_thread)
3781 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3782 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
3783 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
3784 (IWMMXT_REGS_SIZE): Add define.
3785 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
3786 (fetch_vfp_regs, store_vfp_regs)
3787 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3788 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
3789
f0452268
AH
37902019-07-04 Alan Hayward <alan.hayward@arm.com>
3791
3792 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
3793 defines.
3794 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
3795 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
3796 (ARM_INT_REGISTER_SIZE): ...to this.
3797 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
3798 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
3799 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
3800 (arm_linux_collect_gregset, supply_nwfpe_register)
3801 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
3802 defines.
3803 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
3804 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
3805 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
3806 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
3807 (arm_return_in_memory, arm_store_return_value)
3808 (arm_get_longjmp_target, arm_register_g_packet_guesses)
3809 (arm_record_ld_st_multiple): Likewise.
3810 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
3811 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
3812
e935475c
AH
38132019-07-04 Alan Hayward <alan.hayward@arm.com>
3814
3815 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
3816 AARCH64_DISPLACED_MODIFIED_INSNS.
3817 * aarch64-tdep.c (struct aarch64_displaced_step_data)
3818 (aarch64_displaced_step_copy_insn): Likewise.
3819 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3820 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
3821 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
3822 ARM_DISPLACED_MODIFIED_INSNS.
3823 * arm-tdep.c (arm_gdbarch_init): Likewise.
3824 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3825 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
3826 (struct arm_displaced_step_closure): Use
3827 ARM_DISPLACED_MODIFIED_INSNS.
3828
df0bb381
AH
38292019-07-04 Alan Hayward <alan.hayward@arm.com>
3830
3831 * features/Makefile: Remove unused xml files.
3832 * features/aarch64.xml: Remove.
3833 * features/i386/amd64-avx-avx512-linux.xml: Remove.
3834 * features/i386/amd64-avx-avx512.xml: Remove.
3835 * features/i386/amd64-avx-linux.xml: Remove.
3836 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
3837 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
3838 * features/i386/amd64-avx-mpx-linux.xml: Remove.
3839 * features/i386/amd64-avx-mpx.xml: Remove.
3840 * features/i386/amd64-avx.xml: Remove.
3841 * features/i386/amd64-linux.xml: Remove.
3842 * features/i386/amd64-mpx-linux.xml: Remove.
3843 * features/i386/amd64-mpx.xml: Remove.
3844 * features/i386/amd64.xml: Remove.
3845 * features/i386/i386-avx-avx512-linux.xml: Remove.
3846 * features/i386/i386-avx-avx512.xml: Remove.
3847 * features/i386/i386-avx-linux.xml: Remove.
3848 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
3849 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
3850 * features/i386/i386-avx-mpx-linux.xml: Remove.
3851 * features/i386/i386-avx-mpx.xml: Remove.
3852 * features/i386/i386-avx.xml: Remove.
3853 * features/i386/i386-linux.xml: Remove.
3854 * features/i386/i386-mmx-linux.xml: Remove.
3855 * features/i386/i386-mmx.xml: Remove.
3856 * features/i386/i386-mpx-linux.xml: Remove.
3857 * features/i386/i386-mpx.xml: Remove.
3858 * features/i386/i386.xml: Remove.
3859 * features/i386/x32-avx-avx512-linux.xml: Remove.
3860 * features/i386/x32-avx-linux.xml: Remove.
3861 * features/i386/x32-linux.xml: Remove.
3862
edd6266a
AH
38632019-07-04 Alan Hayward <alan.hayward@arm.com>
3864
3865 * regformats/aarch64.dat: Remove.
3866 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
3867 * regformats/i386/amd64-avx-linux.dat: Remove.
3868 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
3869 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
3870 * regformats/i386/amd64-linux.dat: Remove.
3871 * regformats/i386/amd64-mpx-linux.dat: Remove.
3872 * regformats/i386/amd64.dat: Remove.
3873 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
3874 * regformats/i386/i386-avx-linux.dat: Remove.
3875 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
3876 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
3877 * regformats/i386/i386-linux.dat: Remove.
3878 * regformats/i386/i386-mmx-linux.dat: Remove.
3879 * regformats/i386/i386-mpx-linux.dat: Remove.
3880 * regformats/i386/i386.dat: Remove.
3881 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
3882 * regformats/i386/x32-avx-linux.dat: Remove.
3883 * regformats/i386/x32-linux.dat: Remove.
3884
2b40fda7
AH
38852019-07-04 Alan Hayward <alan.hayward@arm.com>
3886
3887 * aarch64-tdep.c: Remove xml self tests.
3888 * amd64-linux-tdep.c: Likewise.
3889 * amd64-tdep.c: Likewise.
3890 * i386-linux-tdep.c: Likewise.
3891 * i386-tdep.c: Likewise.
3892
5f4ba3e7
PA
38932019-07-03 Pedro Alves <palves@redhat.com>
3894
3895 PR cli/24732
3896 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
3897 (pipe_cmd_option_defs): New.
3898 (make_pipe_cmd_options_def_group): New.
3899 (pipe_command): Use gdb::option::process_options.
3900 (pipe_command_completer): New function.
3901 (_initialize_cli_cmds): Install completer for "pipe" command.
3902
3d9be6f5
PA
39032019-07-03 Pedro Alves <palves@redhat.com>
3904
3905 * cli/cli-option.c (union option_value) <string>: New field.
3906 (struct option_def_and_value): Add ctor, move ctor, dtor and
3907 use DISABLE_COPY_AND_ASSIGN.
3908 (option_def_and_value::clear_value): New.
3909 (parse_option, save_option_value_in_ctx, get_val_type_str)
3910 (add_setshow_cmds_for_options): Handle var_string.
3911 * cli-option.h (union option_def::var_address) <string>: New
3912 field.
3913 (struct string_option_def): New.
3914 * maint-test-options.c (struct test_options_opts): Add default
3915 ctor and use DISABLE_COPY_AND_ASSIGN.
3916 <string_opt>: New field.
3917 (test_options_opts::~test_options_opts): New.
3918 (test_options_opts::dump): Also dump "-string".
3919 (test_options_option_defs): Install "string.
3920
41fc454c
PA
39212019-07-03 Pedro Alves <palves@redhat.com>
3922
3923 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
3924 option_value with a null enumeration.
3925 (complete_options): Save the option values in the context.
3926 (save_option_value_in_ctx): New, factored out from ...
3927 (process_options): ... here.
3928 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
3929 of the function.
3930 * maint-test-options.c (test_options_opts::dump): New, factored
3931 out from ...
3932 (maintenance_test_options_command_mode): ... here.
3933 (maintenance_test_options_command_completion_result): Delete.
3934 (maintenance_test_options_command_completion_text): Update
3935 comment.
3936 (maintenance_show_test_options_completion_result): Change
3937 prototype. Just print
3938 maintenance_test_options_command_completion_text.
3939 (save_completion_result): New.
3940 (maintenance_test_options_completer_mode): Pass options context to
3941 complete_options, and then save a dump.
3942 (_initialize_maint_test_options): Use add_cmd to install "maint
3943 show test-options-completion-result".
3944
fdbc9870
PA
39452019-07-03 Pedro Alves <palves@redhat.com>
3946
3947 * NEWS (New commands): Mention "with" and "maint with".
3948 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
3949 (with_command, with_command_completer): New.
3950 (pipe_command): Adjust to new repeat_previous
3951 interface.
3952 (_initialize_cli_cmds): Install the "with" command and its "w"
3953 alias.
3954 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
3955 declarations.
3956 * cli/cli-setshow.c (parse_cli_var_uinteger)
3957 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
3958 argument strings for all var_types.
3959 (get_setshow_command_value_string): New, factored out from ...
3960 (do_show_command): ... this.
3961 * cli/cli-setshow.h: Include <string>.
3962 (get_setshow_command_value_string): Declare.
3963 * command.h (repeat_previous): Now returns const char *. Adjust
3964 comment.
3965 * maint.c: Include "cli/cli-cmds.h".
3966 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
3967 (_initialize_maint_cmds): Register the "maintenance with" command.
3968 * top.c (repeat_previous): Move bits from pipe_command here:
3969 Return the saved command line, if any; error out if there's no
3970 command to relaunch.
3971
c6ac8931
PA
39722019-07-03 Pedro Alves <palves@redhat.com>
3973
3974 * NEWS (New commands): Mention "maint set/show test-settings"
3975 instead of "maint test-settings".
3976 * maint-test-settings.c (maintenance_test_settings_list): Delete.
3977 (maintenance_test_settings_set_list): Rename to ...
3978 (maintenance_set_test_settings_list): ... this.
3979 (maintenance_test_settings_show_list): Rename to ...
3980 (maintenance_show_test_settings_list): ... this.
3981 (maintenance_test_settings_cmd): Delete.
3982 (maintenance_test_settings_set_cmd): ...
3983 (maintenance_set_test_settings_cmd): ... this.
3984 (maintenance_test_settings_show_cmd): ...
3985 (maintenance_show_test_settings_cmd): ... this.
3986 (maintenance_test_settings_show_value_cmd):
3987 (maintenance_show_test_settings_value_cmd): ... this.
3988 (_initialize_maint_test_settings): No longer install the "maint
3989 test-settings" prefix command. Rename "maint test-settings set"
3990 to "maint set test-settings", and "maint test-settings show" to
3991 "maint show test-settings". Adjust all subcommands.
3992
d1fcf2fd
PA
39932019-07-03 Pedro Alves <palves@redhat.com>
3994
3995 * maint-test-settings.c: Fix file's intro comment. Replace all
3996 references to "test-options" with references to "test-settings",
3997 in comments.
3998
970f9d09
PA
39992019-07-03 Pedro Alves <palves@redhat.com>
4000
4001 * maint-test-settings.c (maintenance_test_settings_xxx)
4002 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
4003 New.
4004 (maintenance_test_settings_enums): Use them.
4005 (maintenance_test_settings_enum): Default to
4006 maintenance_test_settings_xxx.
4007 (_initialize_maint_test_settings): Initialize
4008 MAINTENANCE_TEST_SETTINGS_FILENAME.
4009
f3869b1a
SM
40102019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4011
4012 * breakpoint.h (remove_breakpoints_inf): Change return type to
4013 void, move function documentation here.
4014 * breakpoint.c (remove_breakpoints_inf): Change return type to
4015 void, move function documentation to header.
4016
54d66006
PA
40172019-07-02 Pedro Alves <palves@redhat.com>
4018
4019 * NEWS (Completion improvements): Mention "info threads".
4020 * thread.c (struct info_threads_opts, info_threads_option_defs)
4021 (make_info_threads_options_def_group): New.
4022 (info_threads_command): Use gdb::option::process_options.
4023 (info_threads_command_completer): New.
4024 (_initialize_thread): Use gdb::option::build_help to build the
4025 help text for "info threads".
4026
854f6088
SM
40272019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4028
4029 * defs.h (generic_load): Move from here...
4030 * symfile.h (generic_load): ... to here. Rename name parameter
4031 to args.
4032 * symfile.c (generic_load): Add comment.
4033
54ee4252
TT
40342019-07-01 Tom Tromey <tromey@adacore.com>
4035
4036 * dwarf2read.c
4037 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
4038 declaration of without_params. Fix formatting.
4039
65392b3e
TT
40402019-07-01 Tom Tromey <tromey@adacore.com>
4041
4042 * ada-exp.y (find_primitive_type): Update.
4043 * ada-lang.h (ada_lookup_symbol): Update.
4044 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
4045 parameter.
4046 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
4047
7d7571f0
SDJ
40482019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4049
4050 PR breakpoints/24541
4051 * gdbarch.c: Regenerate.
4052 * gdbarch.h: Regenerate.
4053 * gdbarch.sh: Add 'stap_adjust_register'.
4054 * i386-tdep.c: Include '<unordered_set>'.
4055 (i386_stap_adjust_register): New function.
4056 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
4057 * stap-probe.c (stap_parse_register_operand): Call
4058 'gdbarch_stap_adjust_register'.
4059
5af5392a
SDJ
40602019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4061
4062 PR python/24742
4063 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
4064 * python/python.c (do_start_initialization): Use 'xmalloc'
4065 instead of 'PyMem_Malloc'.
4066
10d06d82
TT
40672019-06-28 Tom Tromey <tromey@adacore.com>
4068
4069 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
4070 for Ada.
4071
1b7f24cd
TT
40722019-06-27 Tom Tromey <tromey@adacore.com>
4073
4074 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
4075 objfile_key.
4076 (arm_find_mapping_symbol, arm_record_special_symbol)
4077 (_initialize_arm_tdep): Update.
4078 (arm_objfile_data_free): Remove.
4079
3d507ff2
TT
40802019-06-27 Tom Tromey <tromey@adacore.com>
4081
4082 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
4083 to cp_print_static_field.
4084
762c164d
TT
40852019-06-26 Tom Tromey <tromey@adacore.com>
4086
4087 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
4088 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
4089 declare.
4090
aa2f9bcf
AH
40912019-06-26 Alan Hayward <alan.hayward@arm.com>
4092
4093 * features/aarch64-core.c (create_feature_aarch64_core):
4094 Regenerate.
4095 * features/aarch64-core.xml: Add cpsr flags.
4096
3426ae57
AH
40972019-06-26 Alan Hayward <alan.hayward@arm.com>
4098
4099 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
4100 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
4101
4838e44c
SM
41022019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4103
4104 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
4105 field.
4106 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
4107 use.
4108 (arm_record_special_symbol): Don't insert new symbol in sorted
4109 position, push it at the end.
4110
54cc7474
SM
41112019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4112
4113 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
4114 (arm_mapping_symbol_s): Remove.
4115 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
4116 (arm_mapping_symbol_vec): New typedef.
4117 (struct arm_per_objfile): Add constructor.
4118 <section_maps>: Change type to
4119 std::unique_ptr<arm_mapping_symbol_vec[]>.
4120 (arm_compare_mapping_symbols): Remove.
4121 (arm_find_mapping_symbol): Adjust to section_maps type change.
4122 (arm_objfile_data_free): Call delete on arm_per_objfile.
4123 (arm_record_special_symbol): Adjust to section_maps type change.
4124 Allocate arm_per_objfile with new.
4125
b65b566c
PW
41262019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4127
4128 * cli/cli-cmds.c (alias_command): Compare the alias prefix
4129 with the command prefix.
4130
c2fc64f5
TT
41312019-06-25 Tom Tromey <tom@tromey.com>
4132
4133 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
4134 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
4135
fb54fa76
TT
41362019-06-25 Tom Tromey <tom@tromey.com>
4137
4138 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
4139 type.
4140 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
4141 protected.
4142
f7952c57
TT
41432019-06-25 Tom Tromey <tom@tromey.com>
4144
4145 * tui/tui-winsource.c
4146 (tui_source_window_base::set_is_exec_point_at): Add check against
4147 LOA_ADDRESS.
4148
17568d78
TT
41492019-06-25 Tom Tromey <tom@tromey.com>
4150
4151 * tui/tui-source.c (tui_set_source_content): Don't check before
4152 xfree.
4153 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
4154
53e7cdba
TT
41552019-06-25 Tom Tromey <tom@tromey.com>
4156
4157 * tui/tui-winsource.h (tui_update_source_window_as_is)
4158 (tui_alloc_source_buffer, tui_line_is_displayed)
4159 (tui_addr_is_displayed): Change type of win_info.
4160 * tui/tui-winsource.c (tui_update_source_window_as_is)
4161 (tui_clear_source_content, tui_show_source_line)
4162 (tui_show_source_content, tui_source_window_base::refill)
4163 (tui_source_window_base::set_is_exec_point_at)
4164 (tui_source_window_base::set_is_exec_point_at)
4165 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
4166 (tui_alloc_source_buffer, tui_line_is_displayed)
4167 (tui_addr_is_displayed): Change type of win_info. Update.
4168 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4169 (tui_source_window_base::do_make_visible_with_new_height):
4170 Update.
4171 * tui/tui-source.c (tui_set_source_content)
4172 (tui_set_source_content_nil)
4173 (tui_source_window::do_scroll_vertical): Update.
4174 * tui/tui-layout.c (show_layout): Update.
4175 * tui/tui-disasm.c (tui_set_disassem_content)
4176 (tui_disasm_window::do_scroll_vertical): Update.
4177 * tui/tui-data.h (tui_win_content): Remove.
4178 (struct tui_gen_win_info) <content, content_size>: Remove.
4179 (struct tui_source_element): Add initializers and destructor.
4180 (union tui_which_element, struct tui_win_element): Remove.
4181 (struct tui_source_window_base) <content>: New field.
4182 (struct tui_data_window): Remove destructor.
4183 (tui_alloc_content, tui_free_win_content)
4184 (tui_free_all_source_wins_content): Don't declare.
4185 * tui/tui-data.c (tui_initialize_static_data): Update.
4186 (init_content_element, tui_alloc_content): Remove.
4187 (~tui_gen_win_info): Update.
4188 (~tui_data_window, tui_free_all_source_wins_content)
4189 (tui_free_win_content, free_content, free_content_elements):
4190 Remove.
4191
7908abbf
TT
41922019-06-25 Tom Tromey <tom@tromey.com>
4193
4194 * tui/tui-winsource.h (tui_clear_source_content)
4195 (tui_erase_source_content, tui_show_source_content): Change type
4196 of win_info.
4197 * tui/tui-winsource.c (tui_clear_source_content)
4198 (tui_erase_source_content, tui_show_source_content): Change type
4199 of win_info.
4200 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4201 * tui/tui-source.h (tui_set_source_content_nil): Change type of
4202 win_info.
4203 * tui/tui-source.c (tui_set_source_content_nil): Change type of
4204 win_info.
4205 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
4206
02c28df0
TT
42072019-06-25 Tom Tromey <tom@tromey.com>
4208
4209 * tui/tui-winsource.c (tui_clear_source_content)
4210 (tui_source_window_base::set_is_exec_point_at): Update.
4211 * tui/tui-source.c (tui_set_source_content_nil): Update.
4212 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
4213 a bool.
4214 * tui/tui-data.c (init_content_element): Update.
4215
6658b1bf
TT
42162019-06-25 Tom Tromey <tom@tromey.com>
4217
4218 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
4219 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
4220 * tui/tui-layout.c (init_and_make_win): Update.
4221 * tui/tui.h (enum tui_win_type): Update.
4222 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
4223 tui_win_is_auxillary.
4224 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
4225 tui_win_is_auxillary.
4226
21e1c91e
TT
42272019-06-25 Tom Tromey <tom@tromey.com>
4228
4229 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
4230 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
4231 (tui_delete_data_content_windows, tui_display_all_data)
4232 (tui_data_window::do_scroll_vertical, tui_display_data_from):
4233 Update.
4234 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
4235 * tui/tui-regs.c (tui_last_regs_line_no)
4236 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4237 (tui_show_registers): Update.
4238 (tui_show_register_group): Return void. Update.
4239 (tui_display_registers_from, tui_display_reg_element_at_line)
4240 (tui_display_registers_from_line, tui_check_register_values):
4241 Update.
4242 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
4243 member.
4244 (struct tui_data_window) <regs_content>: Now a std::vector.
4245 <regs_content_count>: Remove.
4246 (tui_add_content_elements, tui_free_data_content): Don't declare.
4247 * tui/tui-data.c (tui_data_window::clear_detail): Update.
4248 (init_content_element): Remove DATA_WIN case. Add assert.
4249 (tui_add_content_elements): Remove.
4250 (tui_data_window): Update.
4251 (tui_free_data_content): Remove.
4252 (free_content_elements): Remove DATA_WIN case.
4253
115ac53b
TT
42542019-06-25 Tom Tromey <tom@tromey.com>
4255
4256 * tui/tui-data.c (tui_data_item_window): Update.
4257 * tui/tui-windata.h (tui_check_data_values): Don't declare.
4258 * tui/tui-windata.c (tui_display_all_data)
4259 (tui_display_data_from_line): Update.
4260 (tui_check_data_values): Remove.
4261 * tui/tui-regs.c (tui_show_register_group)
4262 (tui_display_reg_element_at_line): Update.
4263 * tui/tui-hooks.c (tui_register_changed)
4264 (tui_refresh_frame_and_register_information): Call
4265 tui_check_register_values.
4266 * tui/tui-data.h (struct tui_data_window) <data_content,
4267 data_content_count, data_type>: Remove.
4268 (enum tui_data_type): Remove.
4269
4270 * tui/tui-data.c (tui_data_window::clear_detail)
4271 (~tui_data_window): Update.
4272
eaf9738b
TT
42732019-06-25 Tom Tromey <tom@tromey.com>
4274
4275 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
4276 declare.
4277 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
4278 Rename from tui_first_data_item_displayed. Update.
4279 (tui_data_window::refresh_all)
4280 (tui_data_window::do_scroll_vertical): Update.
4281 * tui/tui-data.h (struct tui_data_window)
4282 <first_data_item_displayed>: Declare new method.
4283
31ca4723
TT
42842019-06-25 Tom Tromey <tom@tromey.com>
4285
4286 * tui/tui-data.h (tui_init_generic_part): Don't declare.
4287 * tui/tui-data.c (tui_init_generic_part): Remove, moving
4288 contents...
4289 (tui_initialize_static_data): ...here.
4290
41bcff7f
TT
42912019-06-25 Tom Tromey <tom@tromey.com>
4292
4293 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4294 (tui_display_registers_from, tui_check_register_values): Update.
4295 (tui_display_register): Remove win_info parameter; update.
4296 (tui_get_register): Change type of parameters.
4297 * tui/tui-data.h (struct tui_data_element): Remove.
4298 (union tui_which_element) <data>: Remove.
4299 <data_window>: Change type.
4300 (struct tui_data_item_window): New.
4301 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
4302 case. Add assert.
4303 (~tui_data_item_window): New destructor.
4304 (free_content_elements): Remove DATA_ITEM_WIN case.
4305
d2802c33
TT
43062019-06-25 Tom Tromey <tom@tromey.com>
4307
4308 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
4309 Remove.
4310
dd835f8b
TT
43112019-06-25 Tom Tromey <tom@tromey.com>
4312
4313 * tui/tui-data.h (struct tui_command_element): Remove.
4314 (union tui_which_element) <command>: Remove.
4315 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
4316 assert.
4317 (free_content_elements): Remove CMD_WIN case.
4318
bd7db367
TT
43192019-06-25 Tom Tromey <tom@tromey.com>
4320
4321 * tui/tui-layout.c (tui_set_layout): Update.
4322 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
4323 * tui/tui-data.c (layout_def): Update.
4324
3add462f
TT
43252019-06-25 Tom Tromey <tom@tromey.com>
4326
4327 * tui/tui-wingeneral.c (tui_refresh_all): Update.
4328 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4329 (tui_source_window_base::set_new_height): Update.
4330 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
4331 Update.
4332 (tui_set_locator_fullname, tui_set_locator_info)
4333 (tui_show_frame_info): Update.
4334 * tui/tui-source.c (tui_set_source_content)
4335 (tui_source_is_displayed): Update.
4336 * tui/tui-layout.c (show_source_disasm_command, show_data)
4337 (show_source_or_disasm_and_command): Update.
4338 * tui/tui-disasm.c (tui_set_disassem_content)
4339 (tui_get_begin_asm_address): Update.
4340 * tui/tui-data.h (struct tui_locator_element): Remove.
4341 (union tui_which_element) <locator>: Remove.
4342 (struct tui_locator_window): New.
4343 (tui_locator_win_info_ptr): Change return type.
4344 * tui/tui-data.c (_locator): Change type.
4345 (tui_locator_win_info_ptr): Change return type.
4346 (init_content_element): Remove LOCATOR_WIN case. Add assert.
4347 (tui_alloc_content): Add assert.
4348
489e9d8b
TT
43492019-06-25 Tom Tromey <tom@tromey.com>
4350
4351 * tui/tui-winsource.c
4352 (tui_exec_info_window::maybe_allocate_content): New method.
4353 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
4354 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
4355 (make_source_or_disasm_window): Add cast.
4356 * tui/tui-data.h (union tui_which_element) <simple_string>:
4357 Remove.
4358 (struct tui_source_info): New.
4359 (struct tui_source_window_base) <execution_info>: Change type.
4360 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
4361 case, and add assert.
4362 (tui_alloc_content): Add assert.
4363
c3fabb7d
TT
43642019-06-25 Tom Tromey <tom@tromey.com>
4365
4366 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
4367 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
4368 * tui/tui-data.c (tui_alloc_win_info): Remove.
4369
bbc228ee
TT
43702019-06-25 Tom Tromey <tom@tromey.com>
4371
4372 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
4373 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
4374 can_highlight.
4375
5fcee43a
TT
43762019-06-25 Tom Tromey <tom@tromey.com>
4377
4378 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
4379 make_visible_with_new_height method.
4380 (tui_win_info::make_visible_with_new_height): New method.
4381 (tui_source_window_base::do_make_visible_with_new_height)
4382 (tui_data_window::do_make_visible_with_new_height)
4383 (tui_cmd_window::do_make_visible_with_new_height): New methods.
4384 (make_visible_with_new_height): Remove.
4385 (tui_resize_all, tui_adjust_win_heights): Use
4386 make_visible_with_new_height method.
4387 * tui/tui-data.h (struct tui_win_info)
4388 <do_make_visible_with_new_height, make_visible_with_new_height>:
4389 New methods.
4390 (struct tui_source_window_base, struct tui_data_window)
4391 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
4392 methods.
4393
d83f1fe6
TT
43942019-06-25 Tom Tromey <tom@tromey.com>
4395
4396 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
4397 method.
4398 (update_tab_width): Call update_tab_width method.
4399 * tui/tui-data.h (struct tui_win_info)
4400 (struct tui_source_window_base) <update_tab_width>: New methods.
4401
17374de4
TT
44022019-06-25 Tom Tromey <tom@tromey.com>
4403
4404 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
4405 parameter.
4406 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
4407 parameter.
4408 (tui_gen_win_info::make_visible): Update.
4409 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
4410 parameter.
4411 * tui/tui-data.h (enum tui_box): New enum.
4412 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
4413
f936bca2
TT
44142019-06-25 Tom Tromey <tom@tromey.com>
4415
4416 * tui/tui-layout.c (make_source_or_disasm_window): Always use
4417 init_and_make_win for EXEC_INFO_WIN.
4418 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
4419 longer inline.
4420 (struct tui_win_info) <~tui_win_info>: Inline.
4421 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4422 Don't declare.
4423 * tui/tui-data.c (source_win, disasm_win): Remove globals.
4424 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4425 Remove.
4426 (tui_initialize_static_data): Update.
4427 (~tui_gen_win_info): Handle more cleanup here.
4428 (~tui_source_window_base): Delete "execution_info".
4429 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
4430
d6ba6a11
TT
44312019-06-25 Tom Tromey <tom@tromey.com>
4432
4433 * tui/tui-layout.c (make_command_window): Don't set
4434 can_highlight.
4435 (show_source_disasm_command): Call the reset method.
4436 (show_data): Don't set can_highlight. Call the reset method.
4437 (tui_gen_win_info::reset): Rename from init_gen_win_info
4438 (init_and_make_win): Simplify. Return tui_gen_win_info.
4439 (show_source_or_disasm_and_command): Call the reset method.
4440 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
4441 (struct tui_cmd_window): Set can_highlight.
4442
48a3bd16
TT
44432019-06-25 Tom Tromey <tom@tromey.com>
4444
4445 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
4446 from make_visible.
4447 (tui_make_visible, tui_make_invisible): Rewrite.
4448 (tui_win_info::make_visible): Remove.
4449 (tui_source_window_base::make_visible): Update.
4450 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
4451 method. Moved from...
4452 (struct tui_win_info) <make_visible>: ...here.
4453
c3bd716f
TT
44542019-06-25 Tom Tromey <tom@tromey.com>
4455
4456 * tui/tui-winsource.c
4457 (tui_source_window_base::do_scroll_horizontal): Remove direction
4458 parameter.
4459 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
4460 direction parameter.
4461 * tui/tui-win.c (tui_win_info::forward_scroll)
4462 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4463 (tui_win_info::right_scroll): Update.
4464 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
4465 direction parameter.
4466 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
4467 direction parameter.
4468 * tui/tui-data.h (enum tui_scroll_direction): Remove.
4469 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
4470 Remove direction parameter.
4471 (struct tui_source_window_base, struct tui_source_window)
4472 (struct tui_disasm_window, struct tui_data_window)
4473 (struct tui_cmd_window): Update.
4474
21c32dca
TT
44752019-06-25 Tom Tromey <tom@tromey.com>
4476
4477 * tui/tui-winsource.h (tui_set_exec_info_content)
4478 (tui_show_exec_info_content, tui_erase_exec_info_content)
4479 (tui_clear_exec_info_content, tui_update_exec_info): Change
4480 argument to tui_source_window_base.
4481 * tui/tui-winsource.c (tui_set_exec_info_content)
4482 (tui_show_exec_info_content, tui_erase_exec_info_content)
4483 (tui_clear_exec_info_content, tui_update_exec_info): Change
4484 argument to tui_source_window_base.
4485
73fbdc65
TT
44862019-06-25 Tom Tromey <tom@tromey.com>
4487
4488 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
4489 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
4490
33325343
TT
44912019-06-25 Tom Tromey <tom@tromey.com>
4492
4493 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
4494 check.
4495
29d2c474
TT
44962019-06-25 Tom Tromey <tom@tromey.com>
4497
4498 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
4499 type to void.
4500 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
4501 type to void.
4502 * tui/tui-source.c (tui_set_source_content): Update.
4503 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4504
152f3f4b
TT
45052019-06-25 Tom Tromey <tom@tromey.com>
4506
4507 * tui/tui-win.c (window_name_completer, tui_set_focus)
4508 (tui_all_windows_info): Use name method.
4509 * tui/tui-data.h (struct tui_gen_win_info)
4510 (struct tui_source_window, struct tui_disasm_window)
4511 (struct tui_data_window, struct tui_cmd_window) <name>: New
4512 method.
4513 (tui_win_name): Don't declare.
4514 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
4515 (tui_win_name): Remove.
4516
be4da588
TT
45172019-06-25 Tom Tromey <tom@tromey.com>
4518
4519 * tui/tui-winsource.h (tui_update_source_window)
4520 (tui_update_source_window_as_is): Change parameter type.
4521 * tui/tui-winsource.c (tui_update_source_window): Change win_info
4522 to be a tui_source_window_base.
4523 (tui_update_source_window_as_is): Likewise.
4524 * tui/tui-win.c (make_visible_with_new_height): Update.
4525
5b81daba
TT
45262019-06-25 Tom Tromey <tom@tromey.com>
4527
4528 * tui/tui-winsource.c (tui_erase_source_content)
4529 (tui_show_source_content, tui_show_exec_info_content)
4530 (tui_erase_exec_info_content): Use refresh_window method.
4531 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
4532 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
4533 from tui_refresh_win.
4534 (tui_data_window::refresh_window): New method.
4535 (tui_win_info::refresh, tui_source_window_base::refresh)
4536 (tui_refresh_all): Use refresh_window method.
4537 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
4538 method.
4539 * tui/tui-regs.c (tui_display_register): Call refresh_window
4540 method.
4541 * tui/tui-layout.c (show_source_disasm_command)
4542 (show_source_or_disasm_and_command): Call refresh_window method.
4543 * tui/tui-data.h (struct tui_gen_win_info)
4544 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
4545 New method.
4546
cb2ce893
TT
45472019-06-25 Tom Tromey <tom@tromey.com>
4548
4549 * tui/tui.c (tui_rl_other_window, tui_enable)
4550 (tui_is_window_visible, tui_get_command_dimension): Update.
4551 * tui/tui-winsource.c (tui_update_source_window_as_is)
4552 (tui_clear_source_content, tui_erase_source_content)
4553 (tui_show_source_line, tui_source_window_base::refill)
4554 (tui_source_window_base::do_scroll_horizontal)
4555 (tui_source_window_base::set_is_exec_point_at)
4556 (tui_update_breakpoint_info, tui_set_exec_info_content)
4557 (tui_alloc_source_buffer, tui_line_is_displayed)
4558 (tui_addr_is_displayed): Update.
4559 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4560 (tui_check_and_display_highlight_if_needed)
4561 (tui_win_info::make_visible, tui_win_info::refresh)
4562 (tui_refresh_all): Update.
4563 * tui/tui-windata.c (tui_first_data_item_displayed)
4564 (tui_delete_data_content_windows, tui_erase_data_content)
4565 (tui_display_all_data, tui_data_window::refresh_all)
4566 (tui_check_data_values): Update.
4567 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
4568 (tui_set_win_focus_to, tui_win_info::forward_scroll)
4569 (tui_win_info::backward_scroll, tui_refresh_all_win)
4570 (tui_resize_all, tui_set_focus, tui_all_windows_info)
4571 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
4572 (tui_source_window_base::set_new_height)
4573 (tui_data_window::set_new_height)
4574 (make_invisible_and_set_new_height)
4575 (make_visible_with_new_height, new_height_ok)
4576 (parse_scrolling_args): Update.
4577 * tui/tui-stack.c (tui_show_frame_info): Update.
4578 * tui/tui-source.c (tui_set_source_content)
4579 (tui_set_source_content_nil, tui_source_is_displayed)
4580 (tui_source_window::do_scroll_vertical): Update.
4581 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4582 (tui_display_registers_from, tui_display_reg_element_at_line)
4583 (tui_check_register_values, tui_reg_command): Update.
4584 * tui/tui-layout.c (tui_default_win_height)
4585 (show_source_disasm_command, show_data, init_and_make_win)
4586 (show_source_or_disasm_and_command): Update.
4587 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
4588 (tui_redisplay_readline, tui_mld_flush)
4589 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
4590 (tui_getc): Update.
4591 * tui/tui-disasm.c (tui_set_disassem_content)
4592 (tui_disasm_window::do_scroll_vertical): Update.
4593 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
4594 Now virtual.
4595 (struct tui_win_info): Derive from tui_gen_win_info.
4596 <~tui_win_info>: Mark as override.
4597 <generic>: Remove member.
4598 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
4599 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
4600 (~tui_data_window, ~tui_win_info)
4601 (tui_free_all_source_wins_content): Update.
4602 * tui/tui-command.c (tui_refresh_cmd_win): Update.
4603
ab313b35
TT
46042019-06-25 Tom Tromey <tom@tromey.com>
4605
4606 * tui/tui-layout.c (init_and_make_win): Use new.
4607 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
4608 destructor, initializers.
4609 (tui_alloc_generic_win_info): Don't declare.
4610 * tui/tui-data.c (_locator): Add argument to constructor.
4611 (source_win, disasm_win): New globals.
4612 (exec_info): Remove.
4613 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4614 Update.
4615 (tui_alloc_generic_win_info): Remove.
4616 (init_content_element): Use new.
4617 (tui_win_info::tui_win_info): Update.
4618 (free_content_elements) <case DATA_WIN>: Use delete.
4619
dc2c33e4
TT
46202019-06-25 Tom Tromey <tom@tromey.com>
4621
4622 * tui/tui-wingeneral.c (tui_refresh_win): Update.
4623 * tui/tui-windata.c (tui_first_data_item_displayed)
4624 (tui_delete_data_content_windows): Update.
4625 * tui/tui-win.c (tui_data_window::set_new_height): Update.
4626 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4627 (tui_display_registers_from, tui_check_register_values): Update.
4628 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
4629 pointer.
4630 * tui/tui-data.c (init_content_element): Update. Allocate the new
4631 window.
4632 (tui_free_data_content): Update.
4633 (free_content_elements) <case DATA_WIN>: Free the window.
4634
214a5cbe
TT
46352019-06-25 Tom Tromey <tom@tromey.com>
4636
4637 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
4638 Update.
4639 * tui/tui-layout.c (make_command_window)
4640 (show_source_disasm_command, show_data, init_and_make_win)
4641 (show_source_or_disasm_and_command): Update.
4642 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
4643 method.
4644 <can_highight, is_highlighted>: Now bool.
4645 (tui_set_win_highlight): Don't declare.
4646 * tui/tui-data.c (tui_set_win_highlight): Remove.
4647
8e2daf15
TT
46482019-06-25 Tom Tromey <tom@tromey.com>
4649
4650 * tui/tui-wingeneral.c (make_visible): Remove check of window
4651 type.
4652
8903bd8a
TT
46532019-06-25 Tom Tromey <tom@tromey.com>
4654
4655 * tui/tui-win.c (tui_win_info::max_height)
4656 (tui_cmd_window::max_height): New methods.
4657 (new_height_ok): Call max_height.
4658 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
4659 <max_height>: New method.
4660
3f02ce1e
TT
46612019-06-25 Tom Tromey <tom@tromey.com>
4662
4663 * tui/tui-win.c (tui_source_window_base::set_new_height)
4664 (tui_data_window::set_new_height): New methods.
4665 (make_invisible_and_set_new_height): Call set_new_height method.
4666 * tui/tui-data.h (struct tui_win_info)
4667 (struct tui_source_window_base, struct tui_data_window)
4668 <set_new_height>: New method.
4669
1825f487
TT
46702019-06-25 Tom Tromey <tom@tromey.com>
4671
4672 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
4673 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
4674 tui_refresh_data_win.
4675 * tui/tui-win.c (tui_source_window_base::refresh_all): New
4676 method.
4677 (tui_refresh_all_win): Call the refresh_all method.
4678 (tui_set_focus): Likewise.
4679 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
4680 (struct tui_source_window_base, struct tui_data_window) <refresh>:
4681 Likewise.
4682
ad54d15b
TT
46832019-06-25 Tom Tromey <tom@tromey.com>
4684
4685 * tui/tui-winsource.h (tui_refill_source_window)
4686 (tui_set_is_exec_point_at): Don't declare.
4687 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4688 (tui_source_window_base::refill): Rename from
4689 tui_refill_source_window.
4690 (tui_source_window_base::do_scroll_horizontal): Update.
4691 (tui_source_window_base::set_is_exec_point_at): Rename from
4692 tui_set_is_exec_point_at.
4693 (tui_update_all_breakpoint_info): Update.
4694 * tui/tui-stack.c (tui_show_frame_info): Update.
4695 * tui/tui-layout.c (show_data): Add cast.
4696 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
4697 * tui/tui-data.h (struct tui_source_window_base) <refill,
4698 set_is_exec_point_at>: New methods.
4699 (tui_source_windows, tui_add_to_source_windows): Update types.
4700 (tui_add_to_source_windows): Remove redundant declaration.
4701 * tui/tui-data.c (source_windows): Store tui_source_window_base.
4702 (tui_source_windows): Change return type.
4703 (tui_clear_source_windows_detail): Update.
4704 (tui_add_to_source_windows): Change type of parameter.
4705 (tui_free_all_source_wins_content): Update.
4706
2042b506
TT
47072019-06-25 Tom Tromey <tom@tromey.com>
4708
4709 * tui/tui-wingeneral.c (tui_win_info::refresh)
4710 (tui_source_window_base::refresh): New methods.
4711 (tui_refresh_all): Call the refresh method.
4712 * tui/tui-data.h (struct tui_win_info)
4713 (struct tui_source_window_base) <refresh>: New method.
4714
56122977
TT
47152019-06-25 Tom Tromey <tom@tromey.com>
4716
4717 * tui/tui.h (tui_is_window_visible): Return bool.
4718 * tui/tui.c (tui_is_window_visible): Return bool.
4719 * tui/tui-wingeneral.c (tui_make_window, make_visible)
4720 (tui_make_visible, tui_make_invisible)
4721 (tui_win_info::make_visible)
4722 (tui_source_window_base::make_visible, make_all_visible)
4723 (tui_make_all_visible, tui_make_all_invisible): Update.
4724 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
4725 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
4726 bool.
4727 (struct tui_win_info, struct tui_source_window_base)
4728 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
4729 * tui/tui-data.c (tui_init_generic_part): Update.
4730
cda37efb
TT
47312019-06-25 Tom Tromey <tom@tromey.com>
4732
4733 * tui/tui-wingeneral.c (tui_win_info::make_visible)
4734 (tui_source_window_base::make_visible): New methods.
4735 (make_all_visible): Make method call.
4736 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
4737 (struct tui_source_window_base, struct tui_cmd_window): Override
4738 make_visible.
4739 (tui_win_is_source_type): Don't declare.
4740 * tui/tui-data.c (tui_win_is_source_type): Remove.
4741
6a0ee02c
TT
47422019-06-25 Tom Tromey <tom@tromey.com>
4743
4744 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
4745 NULL check.
4746
63901aec
TT
47472019-06-25 Tom Tromey <tom@tromey.com>
4748
4749 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
4750 Inline constructor. Add initializers for members.
4751 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
4752 constructors; now inline in class.
4753
ceb13a13
TT
47542019-06-25 Tom Tromey <tom@tromey.com>
4755
4756 * tui/tui-regs.c (tui_show_registers): Update.
4757 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
4758 bool.
4759 * tui/tui-data.c (tui_data_window::clear_detail)
4760 (tui_data_window): Update.
4761
238eb706
TT
47622019-06-25 Tom Tromey <tom@tromey.com>
4763
4764 * tui/tui-windata.c (tui_display_all_data)
4765 (tui_display_data_from_line, tui_display_data_from)
4766 (tui_check_data_values, tui_data_window::do_scroll_vertical):
4767 Update.
4768 * tui/tui-regs.c (tui_last_regs_line_no)
4769 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4770 (tui_show_registers, tui_show_register_group)
4771 (tui_display_registers_from, tui_display_reg_element_at_line)
4772 (tui_display_registers_from_line, tui_check_register_values)
4773 (tui_reg_next, tui_reg_prev): Update.
4774 * tui/tui-layout.c (tui_set_layout, show_data): Update.
4775 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
4776 tui_data_window.
4777 (struct tui_win_info) <detail>: Remove. Add new fields from
4778 tui_data_info.
4779 (TUI_DATA_WIN): Add cast.
4780 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
4781 (~tui_data_window): Simplify.
4782
81491aa0
TT
47832019-06-25 Tom Tromey <tom@tromey.com>
4784
4785 * tui/tui-layout.c (show_source_disasm_command)
4786 (show_source_or_disasm_and_command): Update.
4787 * tui/tui-io.c (update_cmdwin_start_line)
4788 (tui_redisplay_readline): Update.
4789 * tui/tui-data.h (struct tui_command_info): Remove.
4790 (struct tui_win_info) <detail>: Remove command_info member.
4791 (struct tui_data_window) <start_line>: New member, from
4792 tui_command_info.
4793 (TUI_CMD_WIN): Add casts.
4794
e6e41501
TT
47952019-06-25 Tom Tromey <tom@tromey.com>
4796
4797 * tui/tui-winsource.c (tui_update_source_window)
4798 (tui_refill_source_window)
4799 (tui_source_window_base::do_scroll_horizontal)
4800 (tui_update_breakpoint_info, tui_set_exec_info_content)
4801 (tui_show_exec_info_content, tui_erase_exec_info_content)
4802 (tui_clear_exec_info_content): Update.
4803 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
4804 Update.
4805 * tui/tui-win.c (make_invisible_and_set_new_height)
4806 (make_visible_with_new_height): Update.
4807 * tui/tui-source.c (tui_set_source_content)
4808 (tui_show_symtab_source): Update.
4809 * tui/tui-layout.c (extract_display_start_addr)
4810 (show_source_disasm_command, show_data)
4811 (make_source_or_disasm_window)
4812 (show_source_or_disasm_and_command): Update.
4813 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
4814 (tui_disasm_window::do_scroll_vertical): Remove shadowing
4815 "gdbarch".
4816 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
4817 to tui_source_window_base.
4818 (struct tui_win_info) <detail>: Remove source_info member.
4819 (struct tui_source_window_base) <has_locator>: Inline.
4820 Move contents from tui_source_info; rename has_locator member to
4821 m_has_locator.
4822 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
4823 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
4824 header file.
4825 (tui_source_window_base::clear_detail, ~tui_source_window_base):
4826 Simplify.
4827 (tui_free_all_source_wins_content): Cast to
4828 tui_source_window_base.
4829
44f0e208
TT
48302019-06-25 Tom Tromey <tom@tromey.com>
4831
4832 * tui/tui-win.c (make_invisible_and_set_new_height)
4833 (make_visible_with_new_height): Call has_locator method.
4834 * tui/tui-layout.c (show_source_disasm_command, show_data)
4835 (show_source_or_disasm_and_command): Update for bool change.
4836 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
4837 (tui_win_info) <has_locator>: New method.
4838 (struct tui_source_window_base) <has_locator>: New method.
4839 (tui_win_has_locator): Don't declare.
4840 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
4841 from tui_win_has_locator.
4842 (tui_source_window_base): Use false, not FALSE.
4843
7778b912
TT
48442019-06-25 Tom Tromey <tom@tromey.com>
4845
4846 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
4847 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
4848 clear_detail method directly.
4849 (tui_clear_win_detail): Remove.
4850
f83d391c
TT
48512019-06-25 Tom Tromey <tom@tromey.com>
4852
4853 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
4854 "this", not TUI_DISASM_WIN.
4855
13446e05
TT
48562019-06-25 Tom Tromey <tom@tromey.com>
4857
4858 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
4859 declare.
4860 * tui/tui-winsource.c
4861 (tui_source_window_base::do_scroll_horizontal): Rename from
4862 tui_horizontal_source_scroll.
4863 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
4864 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
4865 from tui_vertical_data_scroll.
4866 * tui/tui-win.h (tui_scroll): Don't declare.
4867 * tui/tui-win.c (tui_win_info::forward_scroll)
4868 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4869 (tui_win_info::right_scroll): Rename and update.
4870 (tui_scroll_forward_command, tui_scroll_backward_command)
4871 (tui_scroll_left_command, tui_scroll_right_command): Update.
4872 (tui_scroll): Remove.
4873 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
4874 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
4875 from tui_vertical_source_scroll.
4876 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
4877 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
4878 from tui_vertical_disassem_scroll.
4879 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
4880 do_scroll_horizontal>: New methods.
4881 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
4882 Likewise.
4883 (struct tui_source_window_base): Add do_scroll_horizontal.
4884 (struct tui_source_window, struct tui_disasm_window): Add
4885 do_scroll_vertical.
4886 (struct tui_data_window, struct tui_cmd_window): Add
4887 do_scroll_horizontal and do_scroll_vertical.
4888 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
4889
5cf82909
TT
48902019-06-25 Tom Tromey <tom@tromey.com>
4891
4892 * tui/tui-data.h (struct tui_source_window_base): New struct.
4893 (struct tui_source_window): Derive from tui_source_window_base.
4894 (struct tui_disasm_window): New struct.
4895 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
4896 from tui_source_window::clear_detail.
4897 (tui_source_window_base): Rename from tui_source_window.
4898 (~tui_source_window_base): Rename from ~tui_source_window.
4899 (tui_alloc_win_info): Create a tui_disasm_window.
4900
ee1d42d6
TT
49012019-06-25 Tom Tromey <tom@tromey.com>
4902
4903 * tui/tui-data.h (struct tui_source_window)
4904 (struct tui_data_window): Declare destructors.
4905 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
4906 destructors.
4907 (tui_win_info): Simplify.
4908
b4eb2452
TT
49092019-06-25 Tom Tromey <tom@tromey.com>
4910
4911 * tui/tui-winsource.c (tui_display_main)
4912 (tui_update_source_windows_with_addr)
4913 (tui_update_all_breakpoint_info): Update.
4914 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4915 (new_height_ok, parse_scrolling_args): Update.
4916 * tui/tui-stack.c (tui_show_frame_info): Update.
4917 * tui/tui-data.h (struct tui_list): Remove.
4918 (tui_source_windows): Return a reference to a std::vector.
4919 * tui/tui-data.c (source_windows): Now a std::vector.
4920 (tui_source_windows): Change return type.
4921 (tui_clear_source_windows): Rewrite.
4922 (tui_clear_source_windows_detail, tui_add_to_source_windows)
4923 (tui_free_all_source_wins_content): Rewrite.
4924
8761a91b
TT
49252019-06-25 Tom Tromey <tom@tromey.com>
4926
4927 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
4928 (struct tui_data_window, struct tui_cmd_window): Declare
4929 clear_detail method.
4930 * tui/tui-data.c (tui_source_window::clear_detail)
4931 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
4932 methods.
4933 (tui_clear_win_detail): Simplify.
4934
0ed69eda
TT
49352019-06-25 Tom Tromey <tom@tromey.com>
4936
4937 * tui/tui-layout.c (make_source_window, make_disasm_window)
4938 (make_source_or_disasm_window): Remove win_info_ptr parameter.
4939 Return the new window.
4940 (show_source_disasm_command, show_data)
4941 (show_source_or_disasm_and_command): Update.
4942
82432e10
TT
49432019-06-25 Tom Tromey <tom@tromey.com>
4944
4945 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
4946 parameter. Return the new window.
4947 (show_source_disasm_command): Update and remove NULL check.
4948 (show_source_or_disasm_and_command): Update.
4949
ec328aa5
TT
49502019-06-25 Tom Tromey <tom@tromey.com>
4951
4952 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
4953
33b906ab
TT
49542019-06-25 Tom Tromey <tom@tromey.com>
4955
4956 * tui/tui-data.h (struct tui_win_info): Make constructor
4957 protected. Make destructor virtual. Add initializers.
4958 (tui_source_window, tui_data_window, tui_cmd_window): New
4959 classes.
4960 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
4961 constructor. Add "type" parameter.
4962 (tui_source_window, tui_data_window, tui_cmd_window): New
4963 constructors.
4964 (tui_alloc_win_info): Instantiate the appropriate subclass.
4965
e7e11af4
TT
49662019-06-25 Tom Tromey <tom@tromey.com>
4967
4968 * tui/tui-win.c (tui_resize_all): Use delete.
4969 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
4970 destructor.
4971 (tui_free_window): Don't declare.
4972 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
4973 Update.
4974
6792b55e
TT
49752019-06-25 Tom Tromey <tom@tromey.com>
4976
4977 * tui/tui-data.h (struct tui_win_info): Add constructor.
4978 * tui/tui-data.c (tui_alloc_win_info): Use new.
4979 (tui_free_window): Use delete.
4980
f95675e1
TT
49812019-06-22 Tom Tromey <tom@tromey.com>
4982
4983 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
4984 declare.
4985 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
4986
5bff081c
TT
49872019-06-22 Tom Tromey <tom@tromey.com>
4988
4989 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
4990 declare.
4991 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
4992
47e3f474
TV
49932019-06-22 Tom de Vries <tdevries@suse.de>
4994
4995 * dwarf2read.c (create_addrmap_from_aranges)
4996 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
4997 instead of '%zu'.
4998
fd5866f6
SM
49992019-06-21 Simon Marchi <simon.marchi@efficios.com>
5000
5001 * dwarf2read.h (dwarf2_section_info_def): Remove.
5002 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
5003 * dwarf2read.c (struct dwo_sections) <types>: Change type to
5004 std::vector<dwarf2_section_info>.
5005 (struct dwo_file) <~dwo_file>: Remove.
5006 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
5007 types field.
5008 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
5009 (dwarf2_read_debug_names): Likewise.
5010 (create_debug_types_hash_table): Change parameter type to
5011 array_view, adjust code accordingly.
5012 (dwarf2_locate_dwo_sections): Adjust to std::vector.
5013 (partial_die_info::fixup): Likewise.
5014 (determine_prefix): Likewise.
5015 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
5016
fb1eb2f9
SM
50172019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5018
5019 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
5020 gdb_bfd_ref_ptr.
5021 <~dwo_file>: Remove call to gdb_bfd_unref.
5022 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
5023 gdb_bfd_ref_ptr::get.
5024
51ac9db5
SM
50252019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5026
5027 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
5028 type to htab_up.
5029 * dwarf2read.c (struct dwo_file): Initialize fields.
5030 <~dwo_file>: New.
5031 (free_dwo_file): Remove, move content to ~dwo_file.
5032 (struct dwo_file_deleter): Remove.
5033 (dwo_file_up>: Remove custom deleter.
5034 (free_dwo_files): Remove.
5035 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
5036 dwo_files.
5037 (process_skeletonless_type_units): Call unique_ptr::get.
5038 (allocate_dwo_file_hash_table): Add deleter to created hash
5039 table. Change return type to htab_up.
5040 (lookup_dwo_file_slot): Don't memset dwo_file, call
5041 unique_ptr::get.
5042 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
5043 (create_dwo_unit_in_dwp_v2): Likewise.
5044 (open_and_init_dwo_file): Likewise.
5045 (free_dwo_file_from_slot): Remove.
5046
dc4ccb6f
SM
50472019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5048
5049 * dwarf2read.h (struct dwarf2_section_info) <readin,
5050 is_virtual>: Change type to bool.
5051 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
5052 true instead of 1.
5053
e6a1c5cb
TT
50542019-06-19 Tom Tromey <tom@tromey.com>
5055
5056 * tui/tui-data.h (tui_init_content_element): Don't declare.
5057
6f6ffbeb
TT
50582019-06-19 Tom Tromey <tom@tromey.com>
5059
5060 * tui/tui-data.h (tui_init_win_info): Don't declare.
5061
f23f598e
TV
50622019-06-19 Tom de Vries <tdevries@suse.de>
5063
5064 * dwarf2read.h (abstract_to_concrete): Change type to
5065 std::unordered_map<sect_offset, std::vector<sect_offset>,
5066 gdb::hash_enum<sect_offset>>.
5067
680e1bee
TT
50682019-06-19 Tom Tromey <tromey@adacore.com>
5069
5070 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
5071 EVAL_AVOID_SIDE_EFFECTS specially.
5072
dcf37923
TT
50732019-06-19 Tom Tromey <tromey@adacore.com>
5074
5075 * source-cache.c (highlighter): New global.
5076 (source_cache::get_source_lines): Create a highlighter on demand.
5077
494986d5
AB
50782019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
5079
5080 * defs.h (deprecated_interactive_hook): Delete declaration.
5081 * interps.c (clear_interpreter_hooks): Remove use of
5082 deprecated_interactive_hook.
5083 * top.c (deprecated_interactive_hook): Delete definition.
5084 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
5085
3360b6e7
TV
50862019-06-18 Tom de Vries <tdevries@suse.de>
5087
5088 PR gdb/24515
5089 * dwarf2read.h (abstract_to_concrete): Change type from
5090 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
5091 std::unordered_map<sect_offset, std::vector<sect_offset>>.
5092 * dwarf2read.c (read_variable): Update.
5093 (dwarf2_fetch_die_loc_sect_off): Update.
5094
310b3441
TV
50952019-06-17 Tom de Vries <tdevries@suse.de>
5096
5097 PR gdb/24617
5098 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
5099 accessing parent[parent_len - 1].
5100
ba9777be
PP
51012019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
5102
5103 PR gdb/24364
5104 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
5105 call dtrace_process_dof with NULL dof.
5106
2b9f6e89
TV
51072019-06-16 Tom de Vries <tdevries@suse.de>
5108
5109 PR gdb/24445
5110 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
5111
431b3ead
TT
51122019-06-16 Tom Tromey <tom@tromey.com>
5113
5114 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5115 (make_all_visible): Use address of member.
5116
d04b44a1
TT
51172019-06-16 Tom Tromey <tom@tromey.com>
5118
5119 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
5120 (tui_free_window, free_content, free_content_elements): Remove
5121 unnecessary cast.
5122 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
5123 cast.
5124 * tui/tui-regs.c (tui_show_register_group)
5125 (tui_display_registers_from, tui_display_reg_element_at_line):
5126 Remove unnecessary cast.
5127
bf5142e7
AB
51282019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5129
5130 * linux-nat.c (normal_mask): Delete.
5131 (_initialize_linux_nat): Don't initialise normal_mask.
5132
c4973306
SM
51332019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
5134
5135 PR gdb/24445
5136 * dwarf-index-write.h (write_psymtabs_to_index): Add
5137 dwz_basename parameter.
5138 * dwarf-index-write.c (write_gdbindex): Move file writing to
5139 write_gdbindex_1. Change return type void.
5140 (assert_file_size): Move up, remove filename parameter.
5141 (write_gdbindex_1): New function.
5142 (write_debug_names): Change return type to void, call
5143 assert_file_size.
5144 (struct index_wip_file): New struct.
5145 (write_psymtabs_to_index): Add dwz_basename parameter. Move
5146 file logic to index_wip_file. Write index for dwz file if
5147 needed.
5148 (save_gdb_index_command): Pass basename of dwz file, if present.
5149 * dwarf-index-cache.c (index_cache::store): Obtain and pass
5150 build-id of dwz file, if present.
5151 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
5152 (dwarf2_get_dwz_file): Likewise.
5153 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
5154 (dwarf2_get_dwz_file): Likewise.
5155
395f9c91
TT
51562019-06-16 Tom Tromey <tom@tromey.com>
5157
5158 * coffread.c (process_coff_symbol): Use xstrdup.
5159 * value.c (create_internalvar): Use xstrdup.
5160
cafb3438
TT
51612019-06-16 Tom Tromey <tom@tromey.com>
5162
5163 * valops.c (value_cast, value_slice): Remove unnecessary cast.
5164 * breakpoint.c (stopin_command, stopat_command)
5165 (until_break_command, decode_location_default): Remove unnecessary
5166 cast.
5167 * utils.c (subset_compare): Remove unnecessary cast.
5168 * ada-lang.c (ada_update_initial_language): Remove unnecessary
5169 cast.
5170 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
5171 cast.
5172 * infcmd.c (path_command): Remove unnecessary cast.
5173 * coffread.c (decode_type): Remove unnecessary cast.
5174 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
5175 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
5176 * tui/tui-stack.c (tui_show_locator_content)
5177 (tui_show_frame_info): Remove unnecessary cast.
5178 * tui/tui-win.c (tui_scroll_forward_command)
5179 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
5180 (parse_scrolling_args): Remove unnecessary cast.
5181 * tui/tui-data.c (init_win_info, tui_del_window)
5182 (tui_free_window, tui_del_data_windows, tui_free_data_content)
5183 (free_content_elements): Remove unnecessary cast.
5184 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
5185 unnecessary cast.
5186 * tui/tui-source.c (tui_set_source_content)
5187 (tui_vertical_source_scroll): Remove unnecessary cast.
5188 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
5189 cast.
5190 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
5191 * tui/tui-regs.c (tui_display_registers_from)
5192 (tui_display_register): Remove unnecessary cast.
5193 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
5194 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
5195 (make_visible): Remove unnecessary cast.
5196 * tui/tui-winsource.c (tui_erase_source_content)
5197 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
5198 unnecessary cast.
5199 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
5200 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
5201 * stabsread.c (read_type, read_array_type, read_range_type):
5202 Remove unnecessary cast.
5203 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
5204 (parse_symbol, parse_type, upgrade_type, parse_external)
5205 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
5206 unnecessary cast.
5207 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
5208
730ead81
TT
52092019-06-16 Tom Tromey <tom@tromey.com>
5210
5211 * tui/tui-data.c (tui_alloc_generic_win_info)
5212 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
5213 checks.
5214
584a927c
AB
52152019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
5216 Andrew Burgess <andrew.burgess@embecosm.com>
5217
5218 * f-typeprint.c (f_print_type): Don't return early for not
5219 associated or not allocated types.
5220 (f_type_print_varspec_suffix): Add print_rank parameter and print
5221 ranks of array types in case they dangling.
5222 (f_type_print_base): Add print_rank parameter.
5223
30056ea0
AB
52242019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5225
5226 * NEWS: Mention new MI commands.
5227 * break-catch-throw.c (enum exception_event_kind): Move to
5228 breakpoint.h.
5229 (print_mention_exception_catchpoint): Output text as a single
5230 message.
5231 (catch_exception_command_1): Rename to...
5232 (catch_exception_event): ...this, make non-static, update header
5233 command, and change some parameter types.
5234 (catch_catch_command): Update for changes to
5235 catch_exception_command_1.
5236 (catch_throw_command): Likewise.
5237 (catch_rethrow_command): Likewise.
5238 * breakpoint.c (enum exception_event_kind): Delete.
5239 * breakpoint.h (enum exception_event_kind): Moved here from
5240 break-catch-throw.c.
5241 (catch_exception_event): Declare.
5242 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
5243 (mi_cmd_catch_throw): New function.
5244 (mi_cmd_catch_rethrow): New function.
5245 (mi_cmd_catch_catch): New function.
5246 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
5247 'catch-catch' entries.
5248 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
5249 (mi_cmd_catch_rethrow): Declare.
5250 (mi_cmd_catch_catch): Declare.
5251
ec8e2b6d
AB
52522019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5253
5254 * annotate.c (annotate_source_line): Change return type to void,
5255 update implementation to match.
5256 * annotate.h (annotate_source_line): Change return type to void,
5257 update header comment.
5258 * stack.c (print_frame_info): Don't change what frame information
5259 is printed based on whether annotations are on or not.
5260
0d3abd8c
AB
52612019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5262
5263 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
5264 (annotate_source): Make static.
5265 (annotate_source_line): Moved from source.c and renamed from
5266 identify_source_line. Update the return type.
5267 * annotate.h (annotate_source): Delete declaration.
5268 (annotate_source_line): Declaration moved from source.h, and
5269 renamed from identify_source_line. Return type updated.
5270 * source.c (identify_source_line): Moved to annotate.c and renamed
5271 to annotate_source_line.
5272 (info_line_command): Remove check of annotation_level.
5273 * source.h (identify_source_line): Move declaration to annotate.h
5274 and rename to annotate_source_line.
5275 * stack.c: Add 'annotate.h' include.
5276 (print_frame_info): Remove check of annotation_level before
5277 calling annotate_source_line.
5278
00df30ae
AB
52792019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5280
5281 * source-cache.c (source_cache::get_plain_source_lines): Use
5282 open_source_file_with_line_charpos instead of just
5283 open_source_file, remove call to find_source_lines.
5284 (source_cache::get_source_lines): Likewise.
5285 * source.c (find_source_lines): Make static.
5286 (get_filename_and_charpos): Renamed into...
5287 (open_source_file_with_line_charpos): ..this along with changes to
5288 return a scoped_fd, and some other minor clean ups.
5289 (identify_source_line): Use open_source_file_with_line_charpos.
5290 (search_command_helper): Use open_source_file_with_line_charpos
5291 instead of just open_source_file, remove call to
5292 find_source_lines.
5293 * source.h (open_source_file_with_line_charpos): Declare new
5294 function.
5295 (find_source_lines): Delete declaration.
5296
afda45a2
AB
52972019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5298
5299 * source.c (get_filename_and_charpos): Remove fullname
5300 parameter.
5301 (identify_source_line): Update call to get_filename_and_charpos.
5302
0735b091
TT
53032019-06-14 Tom Tromey <tromey@adacore.com>
5304
5305 PR gdb/24502:
5306 * ui-style.h (skip_ansi_escape): Update comment.
5307 * ui-file.h (class no_terminal_escape_file): New class.
5308 * ui-file.c (no_terminal_escape_file::write)
5309 (no_terminal_escape_file::puts): New methods.
5310 * cli/cli-logging.c (handle_redirections): Use
5311 no_terminal_escape_file.
5312
52ce35e2
TT
53132019-06-14 Tom Tromey <tromey@adacore.com>
5314
5315 * NEWS: Move convenience variable news above Python news.
5316
73cc7272
TT
53172019-06-14 Tom Tromey <tom@tromey.com>
5318
5319 * gnulib: Move directory to top-level.
5320 * configure.ac: Don't configure gnulib.
5321 * configure: Rebuild.
5322 * common/common-defs.h: Use new path to gnulib.
5323 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
5324 (GNULIB_H): Remove.
5325 (INCGNU): Look in new gnulib location.
5326 (HFILES_NO_SRCDIR): Remove gnulib files.
5327 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
5328 (generated_files): Remove GNULIB_H.
5329 ($(LIBGNU), all-lib): Remove targets.
5330 (distclean): Don't mention GNULIB_BUILDDIR.
5331 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
5332
f5686554
TT
53332019-06-14 Tom Tromey <tromey@adacore.com>
5334
5335 * symfile.c (add_symbol_file_command): Remove obsolete comment.
5336 Warn if symbol file does not provide any symbols.
5337
a0c1ffed
TT
53382019-06-14 Tom Tromey <tromey@adacore.com>
5339
5340 * source.c (find_and_open_source): Respect basenames_may_differ.
5341
7c39e397
AB
53422019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
5343
5344 * annotate.c (annotate_breakpoints_invalid): Make use of
5345 scoped_restore_terminal_state.
5346 (annotate_frames_invalid): Likewise.
5347
f411722c
TT
53482019-06-14 Tom Tromey <tromey@adacore.com>
5349
5350 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
5351 allow assignment to an internalvar.
5352
4268ec18
TT
53532019-06-14 Tom Tromey <tromey@adacore.com>
5354
5355 * ada-lex.l: Allow "_" in attribute names.
5356
abdb711e
TT
53572019-06-14 Tom Tromey <tromey@adacore.com>
5358
5359 PR gdb/24653:
5360 * regcache.c (registers_changed): Don't call alloca.
5361 * top.c (execute_command): Don't call alloca.
5362
4c048731
PA
53632019-06-13 Pedro Alves <palves@redhat.com>
5364
5365 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
5366 'expression'. When parsing an expression, error out if there's
5367 junk after "unlimited".
5368 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5369 (do_set_command): Adjust calls to is_unlimited_literal.
5370
66eb1ed3
PA
53712019-06-13 Pedro Alves <palves@redhat.com>
5372
5373 * compile/compile.c (make_compile_options_def_group): Add braces
5374 around array_view initializer.
5375 * thread.c (make_thread_apply_all_options_def_group)
5376 (make_thread_apply_all_options_def_group): Likewise.
5377
3345721a
PA
53782019-06-13 Pedro Alves <palves@redhat.com>
5379
5380 * NEWS (New commands): Mention "maint test-options
5381 require-delimiter", "maint test-options unknown-is-error", "maint
5382 test-options unknown-is-operand" and "maint show
5383 test-options-completion-result".
5384 (New command options, command completion): New section.
5385 (Completion improvements): New section.
5386 Mention that you can abbreviate "unlimited".
5387
6206060d
PA
53882019-06-13 Pedro Alves <palves@redhat.com>
5389
5390 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
5391 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
5392 * unittests/cli-utils-selftests.c (test_parse_flags)
5393 (test_parse_flags_qcs): Delete.
5394 (test_cli_utils): Don't call deleted functions.
5395
6665660a
PA
53962019-06-13 Pedro Alves <palves@redhat.com>
5397
5398 * thread.c: Include "cli/cli-option.h".
5399 (tp_array_compar_ascending): Global.
5400 (tp_array_compar): Delete function.
5401 (tp_array_compar_ascending, tp_array_compar_descending): New
5402 functions.
5403 (ascending_option_def, qcs_flag_option_def)
5404 (thr_qcs_flags_option_defs)
5405 (make_thread_apply_all_options_def_group)
5406 (make_thread_apply_options_def_group): New.
5407 (thread_apply_all_command): Use gdb::option::process_options.
5408 (thread_apply_command_completer)
5409 (thread_apply_all_command_completer): New.
5410 (thread_apply_command): Use gdb::option::process_options.
5411 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
5412 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
5413 to generate help text of "thread apply". Adjust "taas"'s help.
5414 * tid-parse.c (tid_range_parser::in_thread_range): New method.
5415 * tid-parse.h (tid_range_parser::in_thread_range): New method.
5416
f7e13587
PA
54172019-06-13 Pedro Alves <palves@redhat.com>
5418
5419 * thread.c (thread_apply_command): Check for invalid TID with
5420 isdigit instead of !isalpha.
5421
5d707134
PA
54222019-06-13 Pedro Alves <palves@redhat.com>
5423
5424 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
5425 (validate_flags_qcs): New.
5426 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
5427 (validate_flags_qcs): Declare.
5428 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
5429 (make_frame_apply_options_def_group): New.
5430 (frame_apply_command_count): Process options with
5431 gdb::option::process_options.
5432 (frame_apply_completer): New.
5433 (frame_apply_level_completer, frame_apply_all_completer)
5434 (frame_apply_completer): New.
5435 (_initialize_stack): Update help of "frame apply", "frame apply
5436 level", "frame apply all" and "faas" to mention supported options
5437 and install command completers.
5438 * stack.h (frame_apply_all_completer): Declare.
5439 * thread.c: Include "stack.h".
5440 (tfaas_command): Add "--".
5441 (_initialize_thread): Update help "tfaas" to mention supported
5442 options and install command completer.
5443
272d4594
PA
54442019-06-13 Pedro Alves <palves@redhat.com>
5445
5446 * completer.c (complete_nested_command_line): New.
5447 (gdb_completion_word_break_characters_throw): Add assertion.
5448 * completer.h (complete_nested_command_line): Declare.
5449
90a1ef87
PA
54502019-06-13 Pedro Alves <palves@redhat.com>
5451
5452 * stack.c (parse_backtrace_qualifiers): New.
5453 (backtrace_command): Use it.
5454 (backtrace_command_completer): Complete on qualifiers.
5455
d4c16835
PA
54562019-06-13 Pedro Alves <palves@redhat.com>
5457
5458 * frame.c: Include "cli/cli-option.h.
5459 (user_set_backtrace_options): New.
5460 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
5461 Delete.
5462 (get_prev_frame): Adjust.
5463 (boolean_option_def, uinteger_option_def)
5464 (set_backtrace_option_defs): New.
5465 (_initialize_frame): Adjust and use
5466 gdb::option::add_setshow_cmds_for_options to install "set
5467 backtrace past-main" and "set backtrace past-entry".
5468 * frame.h: Include "cli/cli-option.h".
5469 (struct frame_print_options): Forward declare.
5470 (print_frame_arguments_all, print_frame_arguments_scalars)
5471 (print_frame_arguments_none): Declare.
5472 (print_entry_values): Delete declaration.
5473 (struct frame_print_options, user_frame_print_options): New.
5474 (struct set_backtrace_options): New.
5475 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
5476 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
5477 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
5478 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
5479 (list_args_or_locals): Add frame_print_options parameter.
5480 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5481 * python/py-framefilter.c (enumerate_args): Pass down
5482 USER_FRAME_PRINT_OPTIONS.
5483 * stack.c: Include "cli/cli-option.h".
5484 (print_frame_arguments_all, print_frame_arguments_scalars)
5485 (print_frame_arguments_none): Declare.
5486 (print_raw_frame_arguments, print_entry_values): Delete.
5487 (user_frame_print_options): New.
5488 (boolean_option_def, enum_option_def, frame_print_option_defs):
5489 New.
5490 (struct backtrace_cmd_options): New.
5491 (bt_flag_option_def): New.
5492 (backtrace_command_option_defs): New.
5493 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5494 (print_frame_arg, read_frame_arg, print_frame_args)
5495 (print_frame_info, print_frame): Add frame_print_options parameter
5496 and use it.
5497 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
5498 (backtrace_command_1): Add frame_print_options and
5499 backtrace_cmd_options parameters and use them.
5500 (make_backtrace_options_def_group): New.
5501 (backtrace_command): Process command options with
5502 gdb::option::process_options.
5503 (backtrace_command_completer): New.
5504 (_initialize_stack): Extend "backtrace"'s help to mention
5505 supported options. Install completer for "backtrace".
5506 Install some settings commands with add_setshow_cmds_for_options.
5507
2daf894e
PA
55082019-06-13 Pedro Alves <palves@redhat.com>
5509
5510 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
5511 and that "set/show print raw frame-arguments" are now deprecated.
5512
5513 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
5514 command.
5515 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
5516 * stack.c (_initialize_stack): Install "set/show print
5517 raw-frame-arguments", and deprecate "set/show print raw
5518 frame-arguments".
5519 * valprint.c (_initialize_valprint): Deprecate "set/show print
5520 raw".
5521
e6ed716c
PA
55222019-06-13 Pedro Alves <palves@redhat.com>
5523
5524 * compile/compile.c (struct compile_options): New.
5525 (compile_flag_option_def, compile_command_option_defs)
5526 (make_compile_options_def_group): New.
5527 (compile_file_command): Handle options with
5528 gdb::option::process_options.
5529 (compile_file_command_completer): New function.
5530 (compile_code_command): Handle options with
5531 gdb::option::process_options.
5532 (compile_code_command_completer): New function.
5533 (_initialize_compiler): Install completers for "compile code" and
5534 "compile file". Mention available options in "compile code" and
5535 "compile code"'s help.
5536 * completer.c (advance_to_completion_word): New, factored out from
5537 ...
5538 (advance_to_expression_complete_word_point): ... this.
5539 (advance_to_filename_complete_word_point): New.
5540 * completer.h (advance_to_filename_complete_word_point): New
5541 declaration.
5542
7d8062de
PA
55432019-06-13 Pedro Alves <palves@redhat.com>
5544
5545 * compile/compile.c: Include "cli/cli-option.h".
5546 (compile_print_value): Scope data pointer is now a
5547 value_print_options pointer; adjust.
5548 (compile_print_command): Process options. Scope data pointer is
5549 now a value_print_options pointer; adjust.
5550 (_initialize_compile): Update "compile print"'s help to include
5551 supported options. Install a completer for "compile print".
5552 * cp-valprint.c (show_vtblprint, show_objectprint)
5553 (show_static_field_print): Delete.
5554 (_initialize_cp_valprint): Don't install "set print
5555 static-members", "set print vtbl", "set print object" here.
5556 * printcmd.c: Include "cli/cli-option.h" and
5557 "common/gdb_optional.h".
5558 (print_command_parse_format): Rework to fill in a
5559 value_print_options instead of a format_data.
5560 (print_value): Change parameter type from format_data pointer to
5561 value_print_options reference. Adjust.
5562 (print_command_1): Process options. Adjust to pass down a
5563 value_print_options.
5564 (print_command_completer): New.
5565 (_initialize_printcmd): Install print_command_completer as
5566 handle_brkchars completer for the "print" command. Update
5567 "print"'s help to include supported options.
5568 * valprint.c: Include "cli/cli-option.h".
5569 (show_vtblprint, show_objectprint, show_static_field_print): Moved
5570 here from cp-valprint.c.
5571 (boolean_option_def, uinteger_option_def)
5572 (value_print_option_defs, make_value_print_options_def_group):
5573 New. Use gdb::option::add_setshow_cmds_for_options to install
5574 "set print elements", "set print null-stop", "set print repeats",
5575 "set print pretty", "set print union", "set print array", "set
5576 print address", "set print symbol", "set print array-indexes".
5577 * valprint.h: Include <string> and "cli/cli-option.h".
5578 (make_value_print_options_def_group): Declare.
5579 (print_value): Change parameter type from format_data pointer to
5580 value_print_options reference.
5581 (print_command_completer): Declare.
5582
9d0faba9
PA
55832019-06-13 Pedro Alves <palves@redhat.com>
5584
5585 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
5586 (COMMON_SFILES): Add maint-test-settings.c.
5587 * cli/cli-decode.c (boolean_enums): New global, factored out from
5588 ...
5589 (add_setshow_boolean_cmd): ... here.
5590 * cli/cli-decode.h (boolean_enums): Declare.
5591 * cli/cli-option.c: New file.
5592 * cli/cli-option.h: New file.
5593 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
5594 factored out from ...
5595 (parse_cli_boolean_value(const char *)): ... this.
5596 (is_unlimited_literal): Change parameter type to pointer to
5597 pointer. Adjust and advance ARG pointer.
5598 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5599 (parse_cli_var_enum): New, factored out from ...
5600 (do_set_command): ... this. Adjust.
5601 * cli/cli-setshow.h (parse_cli_boolean_value)
5602 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5603 (parse_cli_var_enum): Declare.
5604 * cli/cli-utils.c: Include "cli/cli-option.h".
5605 (get_ulongest): New.
5606 * cli/cli-utils.h (get_ulongest): Declare.
5607 (check_for_argument): New overloads.
5608 * maint-test-options.c: New file.
5609
2c722807
PA
56102019-06-13 Pedro Alves <palves@redhat.com>
5611
5612 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
5613 parse a range if "-" is at the end of the string.
5614
dee7b4c8
PA
56152019-06-13 Pedro Alves <palves@redhat.com>
5616
5617 * cli/cli-setshow.c (parse_auto_binary_operation)
5618 (parse_cli_boolean_value): Don't allow "o".
5619
dca0f6c0
PA
56202019-06-13 Pedro Alves <palves@redhat.com>
5621
5622 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
5623 * NEWS: Mention maint test-settings KIND.
5624 * maint-test-settings.c: New file.
5625
597bf39d
PA
56262019-06-13 Pedro Alves <palves@redhat.com>
5627
5628 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
5629 completer.
5630 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
5631 "set" completers.
5632
48c410fb
PA
56332019-06-13 Pedro Alves <palves@redhat.com>
5634
5635 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
5636 after item.
5637
93bcb043
PA
56382019-06-13 Pedro Alves <palves@redhat.com>
5639
5640 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
5641
cbba3ecd
PA
56422019-06-13 Pedro Alves <palves@redhat.com>
5643
5644 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
5645 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
5646 call.
5647 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
5648 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
5649 calls.
5650 (check_for_argument): Skip spaces after argument.
5651
b9a3f842
PA
56522019-06-13 Pedro Alves <palves@redhat.com>
5653
5654 * thread.c (thread_apply_command): Adjust TID parsing.
5655 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
5656 detected before end of string.
5657 (tid_is_in_list): Error out if LIST is invalid.
5658
3844e605
PA
56592019-06-13 Pedro Alves <palves@redhat.com>
5660
5661 * completer.c (complete_line_internal_1): Rewind completion word
5662 point.
5663 (completion_tracker::advance_custom_word_point_by): Change
5664 parameter type to int.
5665 * completer.h (completion_tracker::advance_custom_word_point_by):
5666 Likewise.
5667
00b56dbe
PA
56682019-06-13 Pedro Alves <palves@redhat.com>
5669
5670 * completer.c (advance_to_completion_word): Handle delimiters.
5671
d106773e
PA
56722019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
5673
5674 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
5675
08f10e02
TT
56762019-06-11 Tom Tromey <tom@tromey.com>
5677
5678 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
5679 (xmalloc_failed): Move to alloc.c.
5680 * alloc.c: New file.
5681 * Makefile.in (COMMON_SFILES): Add alloc.c.
5682
1c7fe951
TT
56832019-06-11 Tom Tromey <tom@tromey.com>
5684
5685 * nat/linux-waitpid.c: Don't include server.h.
5686 (linux_debug): Remove.
5687 (my_waitpid): Update.
5688
89549d7f
TT
56892019-06-11 Tom Tromey <tromey@adacore.com>
5690
5691 * infcall.c (_initialize_infcall): Remove trailing newline from
5692 help.
5693 * user-regs.c (_initialize_user_regs): Remove trailing newline
5694 from help.
5695 * typeprint.c (_initialize_typeprint): Remove trailing newline
5696 from help.
5697 * reverse.c (_initialize_reverse): Remove trailing newlines from
5698 help.
5699 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
5700 from help.
5701 * language.c (add_set_language_command): Remove trailing newline
5702 from help.
5703 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
5704 help.
5705 * disasm.c (_initialize_disasm): Remove trailing newline from
5706 help.
5707 * top.c (init_main): Remove trailing newline from help.
5708 * interps.c (_initialize_interpreter): Remove trailing newline
5709 from help.
5710 * btrace.c (_initialize_btrace): Remove trailing newlines from
5711 help.
5712 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
5713 from help.
5714 * python/python.c (_initialize_python): Remove trailing newline
5715 from help.
5716 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
5717 help.
5718 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
5719 from help. Reformat some text.
5720 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
5721 from help.
5722 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
5723 newline from help.
5724
86108c13
TT
57252019-06-11 Tom Tromey <tromey@adacore.com>
5726
5727 * darwin-nat.c (darwin_decode_exception_message)
5728 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
5729
a7067863
AB
57302019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
5731
5732 * valops.c (value_slice): Check for not allocated or not
5733 associated values.
5734
9ab08412
TV
57352019-06-10 Tom de Vries <tdevries@suse.de>
5736
5737 PR gdb/24618
5738 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
5739 sure an empty slot (defined by a 32-bit zero pair) is recognized as
5740 invalid.
5741
f19e22e9
TV
57422019-06-10 Tom de Vries <tdevries@suse.de>
5743
5744 PR gdb/24611
5745 * linespec.c (linespec_lexer_lex_string): Remove incorrect
5746 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
5747
e99f9db0
TV
57482019-06-10 Tom de Vries <tdevries@suse.de>
5749
5750 PR symtab/24545
5751 * symtab.c (struct demangled_name_entry): Add language field.
5752 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
5753 static minimal symbol". Set and use language field.
5754
9bf7038b
TT
57552019-06-10 Tom Tromey <tromey@adacore.com>
5756
5757 * ada-lang.c (_initialize_ada_language): Update help text.
5758
422186a9
TT
57592019-06-10 Tom Tromey <tromey@adacore.com>
5760
5761 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
5762 with a newline.
5763 * guile/guile.c (handle_boot_error): Don't end warning with a
5764 newline.
5765 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
5766 warning with a newline.
5767 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
5768 newline.
5769 (s12z_frame_cache): Likewise.
5770 * dwarf-index-cache.c (index_cache::store): Don't end warning with
5771 a newline.
5772 * solib-svr4.c (disable_probes_interface): Don't end warning with
5773 a newline.
5774 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
5775 newline.
5776 * python/python.c (do_finish_initialization): Don't end warning
5777 with a newline.
5778
25ce02ee
TT
57792019-06-10 Tom Tromey <tom@tromey.com>
5780
5781 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5782 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
5783 gdbpy_enter.
5784
caa429d8
TT
57852019-06-10 Tom Tromey <tromey@adacore.com>
5786
5787 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
5788 data.
5789 (elf_new_init): Don't call stabsread_new_init.
5790 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
5791 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
5792 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
5793
81873cc8
TV
57942019-06-10 Tom de Vries <tdevries@suse.de>
5795
5796 PR symtab/16264
5797 PR symtab/24517
5798 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
5799
4fa0265e
РИ
58002019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
5801
5802 * source.c (find_and_open_source): Also rewrite relative file
5803 names.
5804
1a3da2cd
AB
58052019-04-26 Amos Bird <amosbird@gmail.com>
5806
5807 * annotate.c (annotate_thread_exited): Add "thread-exited"
5808 annotation.
5809
3847a7bf
TT
58102019-06-06 Tom Tromey <tromey@adacore.com>
5811
5812 * maint.h (class scoped_command_stats): Use
5813 DISABLE_COPY_AND_ASSIGN.
5814 <print_time>: New method.
5815 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
5816 print_time.
5817 (scoped_command_stats::print_time): New method.
5818
312617a3
AB
58192019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5820
5821 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
5822 instructions of lengths 6 or 8 bytes.
5823
b02f78f9
PA
58242019-06-04 Pedro Alves <palves@redhat.com>
5825
5826 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
5827
5828 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
5829 * breakpoint.c (condition_completer): Likewise.
5830 * cli/cli-dump.c (scan_expression): Likewise.
5831 * common/filestuff.c (mkdir_recursive): Likewise.
5832 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
5833 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
5834 (gdb_abspath): Likewise.
5835 * compile/compile-cplus-types.c
5836 (compile_cplus_instance::decl_name): Likewise.
5837 * completer.c (complete_explicit_location):
5838 (signal_completer, reg_or_group_completer_1): Likewise.
5839 * cp-support.c (cp_remove_params_if_any): Likewise.
5840 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
5841 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
5842 * infcmd.c (strip_bg_char): Likewise.
5843 * linespec.c (copy_token_string): Likewise.
5844 * mi/mi-main.c (output_cores): Likewise.
5845 * psymtab.c (psymtab_search_name):
5846 * symfile.c (test_set_ext_lang_command): Likewise.
5847 * target.c (target_fileio_read_stralloc): Likewise.
5848 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
5849 * value.c (complete_internalvar): Likewise.
5850
e1f2e1a2
CB
58512019-06-04 Christian Biesinger <cbiesinger@google.com>
5852
5853 Add objfile property to gdb.Type.
d3238f7d
PA
5854 * NEWS: Mention Python API addition.
5855 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 5856
e664d728
PW
58572019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5858
5859 * NEWS: Mention the new set|show style [title|highlight].
5860 Mention changes to "show style", "help" and "apropos".
5861
66d8c862
PW
58622019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5863
5864 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
5865 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
5866 instead of print_help_for_command.
5867 (print_doc_of_command): New function.
5868 (help_list): Add 'apropos -v word' suggestion.
5869 (print_help_for_command): Style the command name using title style.
5870 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
5871 (_initialize_cli_cmds): Describe -v in apropos_command help.
5872
9303eb2f
PW
58732019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5874
5875 * cli/cli-style.h (cli_style_option): Add name in constructor,
5876 add m_name class member, add constructor with intensity,
5877 add name class function.
5878 (cli_style_option::add_setshow_commands): Remove name argument.
5879 (highlight_style, title_style): New styles.
5880 * cli/cli-style.c (do_show): New function that shows a style
5881 characteristic styling the style name with itself.
5882 (set_style_name): New function.
5883 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
5884 Update all callers according to the changes in cli/cli-style.h.
5885 * utils.h (fputs_highlighted): New function.
5886 * utils.c (fputs_highlighted): Likewise.
5887
e2c52041
PW
58882019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5889
5890 * NEWS: Mention new pipe command and new convenience variables.
5891
947d3946
PW
58922019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5893
5894 * cli/cli-cmds.c (pipe_command): New function.
5895 (_initialize_cli_cmds): Call add_com for pipe_command.
5896 Define | as an alias for pipe.
5897 (exit_status_set_internal_vars): New function.
5898 (shell_escape): Call exit_status_set_internal_vars.
5899 cli/cli-decode.c (find_command_name_length): Recognize | as
5900 a single character command.
5901
b8fd0918
PW
59022019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5903
5904 * gdbcmd.h (execute_command_to_ui_file): New declaration.
5905 top.c (execute_command_to_ui_file): New function, mostly a copy
5906 of execute_command_to_string.
5907 (execute_command_to_string): Implement by calling
5908 execute_command_to_ui_file.
5909
68bb5386
PW
59102019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5911
5912 * top.h (saved_command_line): Remove declaration.
5913 * top.c (previous_saved_command_line, previous_repeat_arguments):
5914 New variables.
5915 (saved_command_line): Make static, define together with other
5916 'repeat variables'.
5917 (dont_repeat): Clear repeat_arguments.
5918 (repeat_previous, get_saved_command_line, save_command_line):
5919 New functions.
5920 (gdb_init): Initialize saved_command_line
5921 and previous_saved_command_line.
5922 * main.c (captured_main_1): Remove saved_command_line initialization.
5923 * event-top.c (handle_line_of_input): Update to use
5924 the new 'repeat' related functions instead of direct access to
5925 saved_command_line.
5926 * command.h (repeat_previous, get_saved_command_line,
5927 save_command_line): New declarations.
5928 (dont_repeat): Add comment.
5929
bfcdb852
TT
59302019-05-30 Tom Tromey <tromey@adacore.com>
5931
5932 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
5933 Fix comment.
5934 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
5935
0ef209f2
JV
59362019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
5937
5938 PR cli/24587
5939 * completer.c (complete): Initialize variable word.
5940
955b06fa
SDJ
59412019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
5942
5943 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5944 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
5945 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
5946 'body' is NULL to the outter 'if', protecting the '!is_define'
5947 situation as well.
5948
fa9c3fa0
TT
59492019-05-29 Tom Tromey <tromey@adacore.com>
5950
5951 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
5952 (dwarf_unknown): New function.
5953 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
5954 (dwarf_type_encoding_name): Use dwarf_unknown.
5955
4330d61d
TT
59562019-05-29 Tom Tromey <tromey@adacore.com>
5957
5958 PR c++/20020:
5959 * cp-valprint.c (cp_print_value_fields): Call
5960 cp_print_static_field inside "try".
5961
33a6bc35
TT
59622019-05-29 Tom Tromey <tromey@adacore.com>
5963
5964 * inflow.c (struct terminal_info): Add default operator=.
5965 * configure: Rebuild.
5966 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
5967 -Wdeprecated-copy-dtor, -Wredundant-move.
5968
000439d5
TT
59692019-05-29 Tom Tromey <tromey@adacore.com>
5970
5971 * NEWS: Add entry.
5972 * infcmd.c (print_return_value_1): Handle finish_print
5973 option.
5974 (show_print_finish): New function.
5975 (_initialize_infcmd): Add "set/show print finish" commands.
5976 * valprint.c (user_print_options): Initialize new member.
5977 * valprint.h (struct value_print_options) <finish_print>: New
5978 member.
5979
c0e70c62
TT
59802019-05-28 Tom Tromey <tromey@adacore.com>
5981
5982 * ada-lang.c (ada_remove_Xbn_suffix)
5983 (find_old_style_renaming_symbol)
5984 (parse_old_style_renaming): Remove.
5985 (ada_find_renaming_symbol): Don't call
5986 find_old_style_renaming_symbol.
5987 (ada_is_renaming_symbol): Rename from
5988 ada_find_renaming_symbol. Remove "block" parameter. Return
5989 bool. Now static.
5990 (ada_read_var_value): Update and simplify.
5991 * ada-exp.y (write_var_or_type): Remove old code.
5992
766f8836
AH
59932019-05-28 Alan Hayward <alan.hayward@arm.com>
5994
5995 * event-top.c: Remove include comment.
5996 * inflow.c (class scoped_ignore_sigttou): Move from here...
5997 * inflow.h (class scoped_ignore_sigttou): ...to here.
5998 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
5999 * top.c: Remove include comment.
6000
eb41253a
TT
60012019-05-27 Tom Tromey <tom@tromey.com>
6002
6003 * NEWS: Fix typo.
6004
4ca51187
TT
60052019-05-22 Tom Tromey <tromey@adacore.com>
6006
6007 * target.c (target_follow_exec): Constify parameter.
6008 * target-delegates.c: Rebuild.
6009 * remote.c (remote_target::follow_exec): Constify parameter.
6010 * infrun.c (follow_exec): Constify parameter.
6011 * target.h (struct target_ops) <follow_exec>: Constify parameter.
6012 (target_follow_exec): Likewise.
6013
8fca4da0
AH
60142019-05-22 Alan Hayward <alan.hayward@arm.com>
6015
6016 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
6017 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
6018
b7060614
AH
60192019-05-22 Alan Hayward <alan.hayward@arm.com>
6020
6021 * NEWS: Add debugredirect and testsuite sections.
6022
0a5954bd
SC
60232019-05-22 Simon Cook <simon.cook@embecosm.com>
6024
6025 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
6026 target descriptions using exclusively floating point register name
6027 aliases.
6028
dc42e902
AB
60292019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
6030
6031 PR gdb/18644:
6032 * f-lang.c (build_fortran_types): Handle the case where
6033 gdbarch_floatformat_for_type returns a nullptr.
6034
fb7806c7
TV
60352019-05-21 Tom de Vries <tdevries@suse.de>
6036
6037 PR cli/24587
6038 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
6039
34d11c68
AB
60402019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6041
6042 PR gdb/18644:
6043 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
6044 16-byte floats.
6045 * i386-tdep.c (i386_floatformat_for_type): Use
6046 floatformats_ia64_quad for the 16-byte floating point component
6047 within a fortran 32-byte complex number.
6048
122cf0f2
AB
60492019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6050
6051 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
6052 delete default constructor.
6053 (find_partial_die): Update to return const struct.
6054 (partial_die_parent_scope): Move variable declaration into scope
6055 of its use and change its type to auto.
6056 (guess_partial_die_structure_name): Likewise.
6057 (partial_die_info::fixup): Likewise.
6058
33d0e35a
TT
60592019-05-17 Tom Tromey <tromey@adacore.com>
6060
6061 * source.c (find_and_open_source): Remove cast.
6062
a45575b0
TT
60632019-05-17 Tom Tromey <tromey@adacore.com>
6064
6065 * annotate.c (annotate_source): Make "filename" const.
6066 * annotate.h (annotate_source): Use const.
6067
81f47ac2
AH
60682019-05-17 Alan Hayward <alan.hayward@arm.com>
6069
6070 * disasm.c (set_disassembler_options): Send errors to stderr.
6071
ca1285d1
AH
60722019-05-17 Alan Hayward <alan.hayward@arm.com>
6073
6074 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
6075 (cli_interp_base::set_logging): Check debug_redirect.
6076 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
6077 * cli/cli-logging.c (debug_redirect): Add static variable.
6078 (pop_output_files): Add default param.
6079 (handle_redirections): Print debug setting.
6080 (show_logging_command): Likewise.
6081 (_initialize_cli_logging): Add debugredirect command.
6082 * interps.c (current_interp_set_logging): Add debug_redirect
6083 parameter.
6084 * interps.h (set_logging): Add debug_redirect parameter.
6085 (current_interp_set_logging): Likewise.
6086 * mi/mi-common.h: Likewise.
6087 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
6088
60892019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
6090 Tom Tromey <tromey@adacore.com>
6091
6092 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
6093 directly.
6094 * cli/cli-interp.h (make_logging_output): Remove declaration.
6095 * cli/cli-logging.c (make_logging_output): Remove function.
6096 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
6097 directly.
6098 * ui-file.c (tee_file::tee_file): Remove bools.
6099 (tee_file::~tee_file): Remove deletes.
6100 * ui-file.h (tee_file): Remove bools.
6101
26648588
JV
61022019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
6103
6104 * mi/mi-cmds.h (mi_cmd_complete): New function.
6105 * mi/mi-main.c (mi_cmd_complete): Likewise.
6106 * mi/mi-cmds.c: Define new MI command -complete.
6107 * NEWS: Mention new -complete command.
6108
6e035501
JV
61092019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
6110
6111 * completer.h (complete): New function.
6112 * completer.c (complete): Likewise.
6113 * cli/cli-cmds.c: (complete_command): Update to use new complete()
6114 function defined in completer.h.
6115
7d0e2ece
JV
61162019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
6117
e79be6e5 6118 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 6119
fb816e8b
TV
61202019-05-17 Tom de Vries <tdevries@suse.de>
6121
6122 PR gdb/24094
6123 * dwarf2read.c (struct cu_partial_die_info): New struct.
6124 (find_partial_die): Return cu_partial_die_info.
6125 (partial_die_parent_scope, guess_partial_die_structure_name)
6126 (partial_die_info::fixup): Handle new return type of find_partial_die.
6127
677052f2
SDJ
61282019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6129
a1726c38 6130 PR breakpoints/24541
677052f2
SDJ
6131 * stap-probe.c (stap_parse_register_operand): Make "regname" an
6132 "std::string", simplifying the algorithm.
6133
f3da9116
SDJ
61342019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6135
6136 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
6137 (stap_static_probe_ops::get_probes): Likewise.
6138
f1bb75ab
SDJ
61392019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6140
6141 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
6142 '-')" and "else if".
6143 (stap_parse_single_operand): Join checks for
6144 "gdbarch_stap_parse_special_token_p" and
6145 "gdbarch_stap_parse_special_token" in the same "if" statement.
6146 Invert check when verifying for operation on register
6147 displacement.
6148
3ca58cde
SDJ
61492019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6150
6151 * stap-probe.c (stap_get_opcode): Update comment.
6152 (stap_get_expected_argument_type): Likewise.
6153 (handle_stap_probe): Likewise.
6154
af2d9bee
SDJ
61552019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6156
6157 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
6158 return type to 'bool'. Adjust comment. Use 'bool' when
6159 appropriate.
6160 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6161 * stap-probe.c (stap_parse_argument_1): Likewise.
6162 (stap_is_operator): Likewise.
6163 (stap_is_generic_prefix): Likewise.
6164 (stap_is_register_prefix): Likewise.
6165 (stap_is_register_indirection_prefix): Likewise.
6166 (stap_is_integer_prefix): Likewise.
6167 (stap_generic_check_suffix): Likewise.
6168 (stap_check_integer_suffix): Likewise.
6169 (stap_check_register_suffix): Likewise.
6170 (stap_check_register_indirection_suffix): Likewise.
6171 (stap_parse_register_operand): Likewise.
6172 (stap_parse_single_operand): Likewise.
6173 (stap_parse_argument_1): Likewise.
6174 (stap_probe::get_argument_count): Likewise.
6175 (stap_is_operator): Likewise.
6176
61c9c421
TT
61772019-05-16 Tom Tromey <tromey@adacore.com>
6178
6179 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
6180 keyword to foreach.
6181
9ddc1af1
SM
61822019-05-15 Simon Marchi <simon.marchi@efficios.com>
6183
6184 * linux-thread-db.c (try_thread_db_load_1): Change return type
6185 to bool.
6186 (try_thread_db_load): Likewise.
6187 (try_thread_db_load_from_pdir_1): Likewise.
6188 (try_thread_db_load_from_pdir): Likewise.
6189 (try_thread_db_load_from_sdir): Likewise.
6190 (try_thread_db_load_from_dir): Likewise.
6191 (thread_db_load_search): Likewise.
6192 (has_libpthread): Likewise.
6193 (thread_db_load): Likewise.
6194
7bede828
SDJ
61952019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
6196
6197 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6198 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
6199 NULL, and complain/return if that's the case.
6200
c5358db4
JD
62012019-05-15 John Darrington <john@darrington.wattle.id.au>
6202
6203 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
6204 (advance, posn, abstract_read_memory): New functions.
6205 [struct mem_read_abstraction]: New struct.
6206 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
6207
c408a94f
TT
62082019-05-14 Tom Tromey <tromey@adacore.com>
6209
6210 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
6211 value is not lval_memory.
6212
e7bd7fba
TT
62132019-05-14 Tom Tromey <tromey@adacore.com>
6214
6215 * solib.c (info_sharedlibrary_command): Style the file name.
6216
a6d0f249
AH
62172019-05-14 Alan Hayward <alan.hayward@arm.com>
6218
6219 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
6220 (aarch64_vnv_type): Likewise.
6221 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
6222 * common/tdesc.c: Likewise.
6223 * common/tdesc.h (enum tdesc_type_kind): Likewise.
6224 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
6225 * features/aarch64-fpu.xml: Add ieee half view.
6226 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
6227 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
6228 * gdbtypes.h (struct builtin_type): Likewise.
6229 (struct objfile_type): Likewise.
6230
66b8bb74
SM
62312019-05-12 Paul Naert <paul.naert@polymtl.ca>
6232
6233 * language.c (language_sniff_from_mangled_name): Fix "langauge"
6234 typo.
6235 * location.h (string_to_event_location): Likewise.
6236
21c219fd
JB
62372019-05-11 Joel Brobecker <brobecker@adacore.com>
6238
6239 GDB 8.3 released.
6240
13674803
SM
62412019-05-10 Simon Marchi <simon.marchi@efficios.com>
6242
6243 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
6244 New variable declaration.
6245 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
6246 New variable.
6247 (print_one_breakpoint): Use ui_out::test_flags and new global
6248 variable to compute use_fixed_output.
6249 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
6250 Remove.
6251 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
6252 (mi_multi_location_breakpoint_output_fixed): Remove.
6253 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
6254 new variable.
6255 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
6256 fix_multi_location_breakpoint_output flag if version >= 3.
6257 * ui-out.h (enum ui_out_flag)
6258 <fix_multi_location_breakpoint_output>: New enumerator.
6259
a9eac7f9
SM
62602019-05-10 Simon Marchi <simon.marchi@efficios.com>
6261
6262 * contrib/cc-with-tweaks.sh: Validate dwz's work.
6263
71bed2db
TT
62642019-05-10 Tom Tromey <tromey@adacore.com>
6265
6266 * ada-lang.c (catch_ada_completer): New function.
6267 (_initialize_ada_language): Use it.
6268
24c54127
TT
62692019-05-10 Tom Tromey <tromey@adacore.com>
6270
6271 * thread.c (print_thread_info): Make "requested_threads" const.
6272 * gdbthread.h (print_thread_info): Make "requested_threads"
6273 const.
6274 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
6275 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
6276
7a102139
TT
62772019-05-08 Tom Tromey <tom@tromey.com>
6278
6279 * gdbtypes.c (objfile_type_data): Change type.
6280 (objfile_type, _initialize_gdbtypes): Update.
6281
924d79e2
TT
62822019-05-08 Tom Tromey <tom@tromey.com>
6283
6284 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
6285 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
6286 (_initialize_dwarf2_frame): Update.
6287
4c58e337
TT
62882019-05-08 Tom Tromey <tom@tromey.com>
6289
6290 * objc-lang.c (objc_objfile_data): Change type.
6291 (find_methods): Update.
6292 (_initialize_objc_lang): Remove.
6293
d772d2ab
TT
62942019-05-08 Tom Tromey <tom@tromey.com>
6295
6296 * stabsread.c (rs6000_builtin_type_data): Change type.
6297 (rs6000_builtin_type, _initialize_stabsread): Update.
6298
d11d83f4
TT
62992019-05-08 Tom Tromey <tom@tromey.com>
6300
6301 * mips-tdep.c (mips_pdr_data): Remove.
6302 (_initialize_mips_tdep): Update.
6303
9a73f0ad
TT
63042019-05-08 Tom Tromey <tom@tromey.com>
6305
6306 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
6307 (hppa_init_objfile_priv_data, read_unwind_info)
6308 (find_unwind_entry, _initialize_hppa_tdep): Update.
6309
8127a2fa
TT
63102019-05-08 Tom Tromey <tom@tromey.com>
6311
6312 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
6313 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
6314 on obstack.
6315 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
6316
91d3055d
TT
63172019-05-08 Tom Tromey <tom@tromey.com>
6318
6319 * mdebugread.c (basic_type_data): Change type.
6320 (basic_type, _initialize_mdebugread): Update.
6321
31930bd3
TT
63222019-05-08 Tom Tromey <tom@tromey.com>
6323
6324 * common/gdb_unique_ptr.h (struct noop_deleter): New.
6325
bdb3ed9e
TT
63262019-05-08 Tom Tromey <tom@tromey.com>
6327
6328 * nto-tdep.c (nto_inferior_data_reg): Change type.
6329 (nto_inferior_data): Update.
6330 (nto_inferior_data_cleanup, nto_new_inferior_data)
6331 (_initialize_nto_tdep): Remove.
6332 * nto-tdep.h (struct nto_inferior_data): Add initializers.
6333
f37b313d
TT
63342019-05-08 Tom Tromey <tom@tromey.com>
6335
6336 * ada-lang.c (struct ada_inferior_data): Add initializers.
6337 (ada_inferior_data): Change type.
6338 (ada_inferior_data_cleanup): Remove.
6339 (get_ada_inferior_data, ada_inferior_exit)
6340 (struct ada_pspace_data): Add initializers, destructor.
6341 (ada_pspace_data_handle): Change type.
6342 (get_ada_pspace_data): Update.
6343 (ada_pspace_data_cleanup): Remove.
6344
24699405
TT
63452019-05-08 Tom Tromey <tom@tromey.com>
6346
6347 * coffread.c (struct coff_symfile_info): Add initializers.
6348 (coff_objfile_data_key): Move lower. Change type.
6349 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
6350 Update.
6351 (coff_free_info): Remove.
6352
d4e05d2f
TT
63532019-05-08 Tom Tromey <tom@tromey.com>
6354
6355 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
6356 (fbsd_pspace_data_handle): Move lower. Change type.
6357 (get_fbsd_pspace_data): Update.
6358 (fbsd_pspace_data_cleanup): Remove.
6359 (_initialize_fbsd_tdep): Update.
6360
14ef6690
TT
63612019-05-08 Tom Tromey <tom@tromey.com>
6362
6363 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
6364 (get_ada_tasks_pspace_data): Update.
6365 (ada_tasks_pspace_data_cleanup): Remove.
6366 (_initialize_tasks): Update.
6367 (ada_tasks_inferior_data_handle): Change type.
6368 (get_ada_tasks_inferior_data): Update.
6369 (ada_tasks_inferior_data_cleanup): Remove.
6370 (struct ada_tasks_pspace_data): Add initializers.
6371
814cf43a
TT
63722019-05-08 Tom Tromey <tom@tromey.com>
6373
6374 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
6375 * symfile-debug.c (debug_sym_get_probes): Change type.
6376 * stap-probe.c (handle_stap_probe):
6377 (stap_static_probe_ops::get_probes): Change type.
6378 * probe.h (class static_probe_ops) <get_probes>: Change type.
6379 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
6380 (parse_probes_in_pspace): Update.
6381 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
6382 Update.
6383 (any_static_probe_ops::get_probes): Change type.
6384 * elfread.c (elfread_data): New typedef.
6385 (probe_key): Change type.
6386 (elf_get_probes): Likewise. Update.
6387 (probe_key_free): Remove.
6388 (_initialize_elfread): Update.
6389 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
6390 Change type.
6391 (dtrace_process_dof_probe, dtrace_process_dof)
6392 (dtrace_static_probe_ops::get_probe): Change type.
6393
02dc647e
TT
63942019-05-08 Tom Tromey <tom@tromey.com>
6395
6396 * xcoffread.c (struct xcoff_symfile_info): Rename from
6397 coff_symfile_info. Add initializers.
6398 (xcoff_objfile_data_key): Move lower. Change type.
6399 (XCOFF_DATA): Rewrite.
6400 (xcoff_free_info): Remove.
6401 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
6402 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
6403 (xcoff_initial_scan): Update.
6404
09232438
TT
64052019-05-08 Tom Tromey <tom@tromey.com>
6406
6407 * solib-svr4.c (struct svr4_info): Add initializers and
6408 destructor.
6409 <probes_table>: Now an htab_up.
6410 (solib_svr4_pspace_data): Change type.
6411 (free_probes_table): Simplify.
6412 (~svr4_info): Rename from svr4_pspace_data_cleanup.
6413 (get_svr4_info, probes_table_htab_remove_objfile_probes)
6414 (probes_table_remove_objfile_probes, register_solib_event_probe)
6415 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
6416 (_initialize_svr4_solib): Update.
6417
7b4a314f
TT
64182019-05-08 Tom Tromey <tom@tromey.com>
6419
6420 * remote.c (remote_pspace_data): Change type.
6421 (remote_pspace_data_cleanup): Remove.
6422 (get_remote_exec_file, set_pspace_remote_exec_file)
6423 (_initialize_remote): Update.
6424
51d3063a
TT
64252019-05-08 Tom Tromey <tom@tromey.com>
6426
6427 * breakpoint.c (breakpoint_objfile_key): Change type.
6428 (get_breakpoint_objfile_data): Update.
6429 (free_breakpoint_objfile_data): Remove.
6430 (_initialize_breakpoint): Update.
6431
89fb8848
TT
64322019-05-08 Tom Tromey <tom@tromey.com>
6433
6434 * linux-tdep.c (struct linux_info): Add initializers.
6435 (linux_inferior_data): Move. Change type.
6436 (invalidate_linux_cache_inf): Update.
6437 (linux_inferior_data_cleanup): Remove.
6438 (get_linux_inferior_data, _initialize_linux_tdep): Update.
6439
e9b89e2d
TT
64402019-05-08 Tom Tromey <tom@tromey.com>
6441
6442 * auxv.c (auxv_inferior_data): Move. Change type.
6443 (auxv_inferior_data_cleanup): Remove.
6444 (invalidate_auxv_cache_inf): Rewrite.
6445 (get_auxv_inferior_data, _initialize_auxv): Update.
6446
8c42777c
TT
64472019-05-08 Tom Tromey <tom@tromey.com>
6448
6449 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
6450 (symfile_debug_objfile_data_key): Change type.
6451 (symfile_debug_installed, debug_qf_has_symbols)
6452 (debug_qf_find_last_source_symtab)
6453 (debug_qf_forget_cached_source_info)
6454 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
6455 (debug_qf_print_stats, debug_qf_dump)
6456 (debug_qf_expand_symtabs_for_function)
6457 (debug_qf_expand_all_symtabs)
6458 (debug_qf_expand_symtabs_with_fullname)
6459 (debug_qf_map_matching_symbols)
6460 (debug_qf_expand_symtabs_matching)
6461 (debug_qf_find_pc_sect_compunit_symtab)
6462 (debug_qf_map_symbol_filenames)
6463 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
6464 (debug_sym_new_init, debug_sym_init, debug_sym_read)
6465 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
6466 (debug_sym_read_linetable, debug_sym_relocate): Update.
6467 (symfile_debug_free_objfile): Remove.
6468 (install_symfile_debug_logging, _initialize_symfile_debug):
6469 Update.
6470
5bfd760d
TT
64712019-05-08 Tom Tromey <tom@tromey.com>
6472
6473 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
6474 allocate_on_obstack.
6475 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
6476 (get_dwarf2_per_objfile): Update.
6477 (set_dwarf2_per_objfile): Remove.
6478 (dwarf2_has_info, dwarf2_get_section_info): Update.
6479 (dwarf2_free_objfile): Remove.
6480 (_initialize_dwarf2_read): Update.
6481
e85e19b4
TT
64822019-05-08 Tom Tromey <tom@tromey.com>
6483
6484 * auto-load.c (struct auto_load_pspace_info): Add destructor and
6485 initializers.
6486 <unsupported_script_warning_printed,
6487 script_not_found_warning_printed>: Now bool.
6488 (auto_load_pspace_data): Change type.
6489 (~auto_load_pspace_info): Rename from
6490 auto_load_pspace_data_cleanup.
6491 (get_auto_load_pspace_data, init_loaded_scripts_info)
6492 (clear_section_scripts, maybe_print_unsupported_script_warning)
6493 (maybe_print_script_not_found_warning, _initialize_auto_load):
6494 Update.
6495
f6aa7436
TT
64962019-05-08 Tom Tromey <tom@tromey.com>
6497
6498 * objfiles.c (objfile_pspace_info): Add destructor and
6499 initializers.
6500 (objfiles_pspace_data): Change type.
6501 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
6502 (get_objfile_pspace_data): Update.
6503 (objfiles_bfd_data): Change type.
6504 (get_objfile_bfd_data): Update.
6505 (objfile_bfd_data_free, _initialize_objfiles): Remove.
6506
6ae614f6
TT
65072019-05-08 Tom Tromey <tom@tromey.com>
6508
6509 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
6510 Change type.
6511 (get_catch_syscall_inferior_data): Update.
6512 (catch_syscall_inferior_data_cleanup): Remove.
6513 (_initialize_break_catch_syscall): Update.
6514
6509b8eb
TT
65152019-05-08 Tom Tromey <tom@tromey.com>
6516
6517 * inflow.c (struct terminal_info): Add destructor and
6518 initializers.
6519 (inflow_inferior_data): Change type.
6520 (~terminal_info): Rename from inflow_inferior_data_cleanup.
6521 (get_inflow_inferior_data, inflow_inferior_exit)
6522 (swap_terminal_info, _initialize_inflow): Update.
6523
35632941
TT
65242019-05-08 Tom Tromey <tom@tromey.com>
6525
6526 * target-dcache.c (target_dcache_cleanup): Remove.
6527 (target_dcache_aspace_key): Change type.
6528 (target_dcache_init_p, target_dcache_invalidate)
6529 (target_dcache_get, target_dcache_get_or_init)
6530 (_initialize_target_dcache): Update.
6531 * dcache.h (struct dcache_deleter): New.
6532
3017b94d
TT
65332019-05-08 Tom Tromey <tom@tromey.com>
6534
6535 * symtab.c (struct symbol_cache): Add destructor and
6536 initializers.
6537 (symbol_cache_key): Move. Change type.
6538 (make_symbol_cache, free_symbol_cache): Remove.
6539 (get_symbol_cache): Update.
6540 (symbol_cache_cleanup): Remove.
6541 (ALL_PSPACES, symbol_cache_flush)
6542 (maintenance_print_symbol_cache)
6543 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
6544 Update.
6545
a32ad8c5
TT
65462019-05-08 Tom Tromey <tom@tromey.com>
6547
6548 * symtab.c (struct main_info): Add destructor and initializers.
6549 (main_progspace_key): Move. Change type.
6550 (get_main_info): Update.
6551 (main_info_cleanup): Remove.
6552 (_initialize_symtab): Update.
6553
5f6e90a0
TT
65542019-05-08 Tom Tromey <tom@tromey.com>
6555
6556 * registry.h (DECLARE_REGISTRY): Define the _key class.
6557
1bd0c6e4
AB
65582019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6559
6560 * NEWS: Merge two 'New commands' sections.
6561
2228ef77
XR
65622019-05-08 Joel Brobecker <brobecker@adacore.com>
6563
6564 * ada-valprint.c (ada_val_print_gnat_array): Remove language
6565 parameter and use Ada language definition instead.
6566 (ada_val_print_ptr): Remove unused language parameter.
6567 (ada_val_print_num): Remove language parameter and use Ada language
6568 definition instead.
6569 (ada_val_print_enum, ada_val_print_flt): Remove unused language
6570 parameter.
6571 (ada_val_print_struct_union, ada_val_print_ref): Remove language
6572 parameter and use Ada language definition instead.
6573 (ada_val_print_1): Update all ada_val_print_xxx calls.
6574 Remove language parameter.
6575 (ada_val_print): Update ada_val_print_1 call.
6576
60fcc1c3
TT
65772019-05-08 Tom Tromey <tromey@adacore.com>
6578
6579 * remote.c (remote_hw_watchpoint_limit)
6580 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
6581 Now static.
6582
ed2b7c17
TT
65832019-05-08 Tom Tromey <tromey@adacore.com>
6584
6585 * maint.c (_initialize_maint_cmds): Move initialization code to
6586 remote.c.
6587 (watchdog, show_watchdog): Move to remote.c.
6588 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
6589 "watchdog" static.
6590 (_initialize_remote): Move initialization code from maint.c.
6591 * defs.h (watchdog): Don't declare.
6592
b0be6c91
TT
65932019-05-08 Tom Tromey <tromey@adacore.com>
6594
6595 * tui/tui-interp.c: Include main.h.
6596 * interps.c: Include main.h.
6597 * main.h (interpreter_p): Declare.
6598 * defs.h (interpreter_p): Don't declare.
6599
587ee17b
TT
66002019-05-08 Tom Tromey <tromey@adacore.com>
6601
6602 * dwarf2loc.c: Include dwarf2read.h.
6603 * defs.h (read_unsigned_leb128): Don't declare.
6604 * dwarf2read.h (read_unsigned_leb128): Declare.
6605
ca1df239
TT
66062019-05-08 Tom Tromey <tromey@adacore.com>
6607
6608 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
6609 method.
6610
99f20f08
TT
66112019-05-08 Tom Tromey <tromey@adacore.com>
6612
6613 * utils.c (fputs_maybe_filtered): Reset style after paging, even
6614 when no wrap column is set.
6615
80e55b13
TT
66162019-05-08 Tom Tromey <tromey@adacore.com>
6617
6618 * c-lang.c (c_get_string): Handle non-C-style arrays.
6619
9d3421af
TT
66202019-05-08 Tom Tromey <tromey@adacore.com>
6621
6622 * typeprint.c (print_offset_data::update): Print the bit offset,
6623 not the number of bits remaining.
6624
844333e2
TT
66252019-05-08 Tom Tromey <tromey@adacore.com>
6626
6627 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
6628 padding at end of comment.
6629
988915ee
TT
66302019-05-08 Tom Tromey <tromey@adacore.com>
6631
6632 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
6633 Compare main types.
6634
26bfd823
TT
66352019-05-06 Tom Tromey <tom@tromey.com>
6636
6637 * common/scoped_mmap.c: Include common-defs.h.
6638 * common/scoped_mmap.h: Don't include config.h.
6639
89055eaa
TT
66402019-05-04 Tom Tromey <tom@tromey.com>
6641
6642 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
6643 (struct aarch64_call_info): Add initializers.
6644 <si>: Now a std::vector.
6645 (pass_on_stack, aarch64_push_dummy_call): Update.
6646
5da01df5
TT
66472019-05-04 Simon Marchi <simon.marchi@efficios.com>
6648 Tom Tromey <tom@tromey.com>
6649
6650 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
6651 (ppc_threads): Now a std::vector. Now static.
6652 (hwdebug_find_thread_points_by_tid)
6653 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
6654 Update.
6655
fbdf05a1
TT
66562019-05-04 Tom Tromey <tom@tromey.com>
6657
6658 * arc-tdep.c (arc_tdesc_init): Return bool.
6659
06d16ec9
TT
66602019-05-04 Tom Tromey <tom@tromey.com>
6661
6662 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
6663 Use gdb_assert_not_reached.
6664
9c056022
TT
66652019-05-04 Tom Tromey <tom@tromey.com>
6666
6667 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
6668 "false".
6669
fa9c2a59
TT
66702019-05-04 Tom Tromey <tom@tromey.com>
6671
6672 * arc-tdep.c (arc_tdesc_init): Use bool.
6673
e2eb806a
TT
66742019-05-04 Tom Tromey <tom@tromey.com>
6675
6676 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
6677
6fe87677
TT
66782019-05-04 Tom Tromey <tom@tromey.com>
6679
6680 * cli/cli-cmds.c (valid_command_p): Return bool.
6681
7f008c9e
TT
66822019-05-04 Tom Tromey <tom@tromey.com>
6683
6684 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
6685 * command.h (valid_user_defined_cmd_name_p): Channge return type.
6686
b6484282
RT
66872019-05-04 Raul Tambre <raul@tambre.ee>
6688
6689 * python/lib/gdb/prompt.py (_ExtendedPrompt)
6690 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
6691 operator for comparison.
6692
af97b416
TT
66932019-05-04 Tom Tromey <tom@tromey.com>
6694
6695 * psymtab.c (psymbol_name_matches, match_partial_symbol)
6696 (lookup_partial_symbol, print_partial_symbols)
6697 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
6698 (psymbol_compare): Update.
6699 (add_psymbol_to_bcache): Clear the entire psymbol.
6700 (maintenance_check_psymtabs): Update.
6701 * psympriv.h (struct partial_symbol): Don't derive from
6702 general_symbol_info.
6703 <obj_section, unrelocated_address, address,
6704 set_unrelocated_address>: Update.
6705 <ginfo>: New member.
6706 * dwarf-index-write.c (write_psymbols, debug_names::insert)
6707 (debug_names::write_psymbols): Update.
6708
9d6d4be8
TV
67092019-05-04 Tom de Vries <tdevries@suse.de>
6710
6711 * contrib/cc-with-tweaks.sh: Support -n arg.
6712
66452beb
PW
67132019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6714
6715 * corelow.c (core_target::detach): Ensure frame cache and
6716 register caches are cleared.
6717 inferior.c (exit_inferior_1): Likewise.
6718
bde09ab7
TT
67192019-05-03 Sandra Loosemore <sandra@codesourcery.com>
6720 Tom Tromey <tom@tromey.com>
6721
6722 * dictionary.c (collate_pending_symbols_by_language): Remove
6723 "struct" from foreach.
6724 * symtab.c (lookup_global_symbol_from_objfile)
6725 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
6726 foreach.
6727 * ser-tcp.c (net_open): Remove "struct" from foreach.
6728 * objfiles.c (objfile_relocate, objfile_rebase)
6729 (objfile_has_symbols): Remove "struct" from foreach.
6730 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
6731 from foreach.
6732 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
6733 foreach.
6734 * darwin-nat.c (thread_info_from_private_thread_info): Remove
6735 "struct" from foreach.
6736 * ada-lang.c (create_excep_cond_exprs)
6737 (ada_exception_catchpoint_cond_string): Remove "struct" from
6738 foreach.
6739
222a8d25
TT
67402019-05-03 Tom Tromey <tromey@adacore.com>
6741
6742 * ada-exp.y (convert_char_literal): Check suffix of each
6743 enumerator.
6744
fcd60b84
DP
67452019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
6746
6747 PR ada/21406:
6748 * ada-exp.y (yywrap): Don't define.
6749 * ada-lex.l (%option): Add noyywrap
6750 (yywrap): Remove.
6751
5f2459c2
EZ
67522019-05-03 Eli Zaretskii <eliz@gnu.org>
6753
353ea2d1
EZ
6754 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
6755 _WIN32_WINNT to the XP level, unless already defined to a higher
6756 level.
6757
6758 * unittests/parse-connection-spec-selftests.c:
6759 * ser-tcp.c:
6760 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
6761 override.
6762
5f2459c2
EZ
6763 * symfile.c (find_separate_debug_file): Remove colon from the
6764 drive spec of DOS/Windows file names of the target, so that the
6765 file name produced from DEBUGDIR and the target's directory will
6766 be valid on DOS/Windows systems.
6767
80062eb9
AB
67682019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
6769
6770 * rust-lang.c (val_print_struct): Handle printing structures
6771 containing strings.
6772
b8c05e85
TT
67732019-05-02 Tom Tromey <tromey@adacore.com>
6774
6775 * valarith.c (_initialize_valarith): Remove.
6776
4504bbde
TT
67772019-05-01 Tom Tromey <tromey@adacore.com>
6778
6779 * ada-lang.c (ada_value_primitive_field): Treat more fields as
6780 bitfields.
6781
d48e62f4
TT
67822019-05-01 Tom Tromey <tromey@adacore.com>
6783
6784 * ada-lang.c (ada_value_assign): Correctly compute starting offset
6785 for big-endian copies.
6786
15f18d14
AT
67872019-04-30 Ali Tamur <tamur@google.com>
6788 * gdb/dwarf2read.c (read_3_bytes): New declaration.
6789 (read_attribute_value): Added DW_FORM_strx1-4 cases.
6790 (read_3_bytes): New function.
6791
ab4ee614
JB
67922019-04-30 Joel Brobecker <brobecker@adacore.com>
6793
6794 * windows-nat.c (main_thread_id): Delete.
6795 (handle_output_debug_string): Replace main_thread_id by
6796 current_event.dwThreadId.
6797 (fake_create_process): Likewise.
6798 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
6799 Do not set main_thread_id.
6800 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
6801 current_event.dwThreadId.
6802 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
6803
8ed5b76e
JB
68042019-04-30 Joel Brobecker <brobecker@adacore.com>
6805
6806 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
6807 Use current_event.dwThreadId instead of main_thread_id.
6808
2ff0a947
TT
68092019-04-30 Tom Tromey <tromey@adacore.com>
6810
6811 * ada-lang.c (ada_lookup_simple_minsyms): New function.
6812 (create_excep_cond_exprs): Iterate over program spaces.
6813 (ada_exception_catchpoint_cond_string): Examine all minimal
6814 symbols for exception types.
6815
a776957c
TT
68162019-04-30 Tom Tromey <tromey@adacore.com>
6817
6818 PR c++/24470:
6819 * dwarf2read.c (process_structure_scope): Handle case where type
6820 has template parameters but no symbol was created.
6821
bc68014d
AB
68222019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6823 Chris January <chris.january@arm.com>
6824
6825 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
6826 qualifier.
6827 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
6828
f1fdc960
AB
68292019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6830
6831 * f-typeprint.c (f_print_type): Update rules for printing
6832 whitespace.
6833 (f_type_print_varspec_suffix): Likewise.
6834
bf7a4de1
AB
68352019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6836 Chris January <chris.january@arm.com>
6837
6838 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
6839 function arguments.
6840
bbe75b9d
AB
68412019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6842
6843 * f-lang.c (build_fortran_types): Change name of void type to
6844 lower case.
6845 * f-typeprint.c (f_type_print_base): Print the name of the void
6846 type, rather than a fixed string.
6847 * f-valprint.c (f_decorations): Use lower case void string.
6848
1db455a7
AB
68492019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6850 Chris January <chris.january@arm.com>
6851
6852 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
6853 types for Fortran.
6854
b6d03bb2
AB
68552019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6856 Chris January <chris.january@arm.com>
6857 David Lecomber <david.lecomber@arm.com>
6858
6859 * f-exp.y (BINOP_INTRINSIC): New token.
6860 (exp): New parser rule handling BINOP_INTRINSIC.
6861 (f77_keywords): Add new builtin procedures.
6862 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
6863 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6864 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
6865 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6866 (print_unop_subexp_f): New function.
6867 (print_binop_subexp_f): New function.
6868 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6869 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6870 (dump_subexp_body_f): Likewise.
6871 (operator_check_f): Likewise.
6872 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6873 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
6874
83228e93
AB
68752019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6876
6877 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
6878 UNOP_KIND.
6879 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
6880 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
6881 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
6882 (operator_length_f): New fuction.
6883 (print_subexp_f): New function.
6884 (op_name_f): New function.
6885 (dump_subexp_body_f): New function.
6886 (operator_check_f): New function.
6887 (exp_descriptor_f): Replace standard expression handling functions
6888 with new functions.
6889 * gdb/fortran-operator.def: New file.
6890 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
6891 * gdb/std-operator.def: Remove UNOP_KIND.
6892
6fdcd7cc
AB
68932019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6894
6895 * std-operator.def: Remove unbalanced, stray double quote
6896 character.
6897
2e62ab40
AB
68982019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6899 Chris January <chris.january@arm.com>
6900 Daniel Everett <daniel.everett@arm.com>
6901 Nick Forrington <nick.forrington@arm.com>
6902 Richard Bunt <richard.bunt@arm.com>
6903
6904 * cp-valprint.c (cp_print_value_fields): Allow an additional level
6905 of depth when printing anonymous structs or unions.
6906 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
6907 Don't print either the top-level value, or the children if the
6908 max-depth is exceeded.
6909 (ppscm_print_children): When printing the key of a map, allow one
6910 extra level of depth.
6911 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
6912 print either the top-level value, or the children if the max-depth
6913 is exceeded.
6914 (print_children): When printing the key of a map, allow one extra
6915 level of depth.
6916 * python/py-value.c (valpy_format_string): Add max_depth keyword.
6917 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
6918 (user_print_options): Initialise max_depth field.
6919 (val_print_scalar_or_string_type_p): New function.
6920 (val_print): Check to see if the max depth has been reached.
6921 (val_print_check_max_depth): Define new function.
6922 (show_print_max_depth): New function.
6923 (_initialize_valprint): Add 'print max-depth' option.
6924 * valprint.h (struct value_print_options) <max_depth>: New field.
6925 (val_print_check_max_depth): Declare new function.
6926 * NEWS: Document new feature.
6927
4be290b2
AB
69282019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6929
6930 * ada-lang.c (ada_language_defn): Initialise new field.
6931 * c-lang.c (c_is_string_type_p): New function.
6932 (c_language_defn): Initialise new field.
6933 (cplus_language_defn): Initialise new field.
6934 (asm_language_defn): Initialise new field.
6935 (minimal_language_defn): Initialise new field.
6936 * c-lang.h (c_is_string_type_p): Declare new function.
6937 * d-lang.c (d_language_defn): Initialise new field.
6938 * f-lang.c (f_is_string_type_p): New function.
6939 (f_language_defn): Initialise new field.
6940 * go-lang.c (go_is_string_type_p): New function.
6941 (go_language_defn): Initialise new field.
6942 * language.c (default_is_string_type_p): New function.
6943 (unknown_language_defn): Initialise new field.
6944 (auto_language_defn): Initialise new field.
6945 * language.h (struct language_defn) <la_is_string_type_p>: New
6946 member variable.
6947 (default_is_string_type_p): Declare new function.
6948 * m2-lang.c (m2_language_defn): Initialise new field.
6949 * objc-lang.c (objc_language_defn): Initialise new field.
6950 * opencl-lang.c (opencl_language_defn): Initialise new field.
6951 * p-lang.c (pascal_is_string_type_p): New function.
6952 (pascal_language_defn): Initialise new field.
6953 * rust-lang.c (rust_is_string_type_p): New function.
6954 (rust_language_defn): Initialise new field.
6955
721b08c6
AB
69562019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6957
6958 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
6959 New field.
6960 * ada-lang.c (ada_language_defn): Initialise new field.
6961 * c-lang.c (c_language_defn): Likewise.
6962 (cplus_language_defn): Likewise.
6963 (asm_language_defn): Likewise.
6964 (minimal_language_defn): Likewise.
6965 * d-lang.c (d_language_defn): Likewise.
6966 * f-lang.c (f_language_defn): Likewise.
6967 * go-lang.c (go_language_defn): Likewise.
6968 * language.c (unknown_language_defn): Likewise.
6969 (auto_language_defn): Likewise.
6970 * m2-lang.c (m2_language_defn): Likewise.
6971 * objc-lang.c (objc_language_defn): Likewise.
6972 * opencl-lang.c (opencl_language_defn): Likewise.
6973 * p-lang.c (pascal_language_defn): Likewise.
6974 * rust-lang.c (rust_language_defn): Likewise.
6975
fc913e53
AB
69762019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6977
6978 * ada-lang.c (ada_is_character_type): Change return type to bool.
6979 (ada_is_string_type): Likewise.
6980 * ada-lang.h (ada_is_character_type): Update declaration
6981 (ada_is_string_type): Likewise.
6982
fa731fa0
PW
69832019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6984
6985 Support style in 'frame|thread apply'
6986
6987 * gdbcmd.h (execute_command_to_string): New term_out parameter.
6988 * record.c (record_start, record_stop): Update callers of
6989 execute_command_to_string with false.
6990 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
6991 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
6992 methods.
6993 (class string_file): New constructor with term_out parameter.
6994 Override methods term_out and can_emit_style_escape. New member
6995 term_out.
6996 (class stdio_file): Override can_emit_style_escape.
6997 (class tee_file): Override term_out and can_emit_style_escape.
6998 * utils.h (can_emit_style_escape): Remove.
6999 * utils.c (can_emit_style_escape): Likewise.
7000 Update all callers of can_emit_style_escape (SOMESTREAM) to
7001 SOMESTREAM->can_emit_style_escape.
7002 * source-cache.c (source_cache::get_source_lines): Likewise.
7003 * stack.c (frame_apply_command_count): Call execute_command_to_string
7004 passing the term_out characteristic of the current gdb_stdout.
7005 * thread.c (thr_try_catch_cmd): Likewise.
7006 * top.c (execute_command_to_string): pass term_out parameter
7007 to construct the string_file for the command output.
7008 * ui-file.c (term_cli_styling): New function (most code moved
7009 from utils.c can_emit_style_escape).
7010 (string_file::string_file, string_file::can_emit_style_escape,
7011 stdio_file::can_emit_style_escape, tee_file::term_out,
7012 tee_file::can_emit_style_escape): New functions.
7013
136afab8
PW
70142019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7015
7016 * NEWS: Mention the new set|show may-call-functions.
7017 * infcall.c (may_call_functions_p): New variable.
7018 (show_may_call_functions_p): New function.
7019 (call_function_by_hand_dummy): Throws an error if not
7020 may-call-functions.
7021 (_initialize_infcall): Call add_setshow_boolean_cmd for
7022 may-call-functions.
7023
725cbb63
KS
70242019-04-25 Keith Seitz <keiths@redhat.com>
7025
7026 PR c++/24367
7027 * cp-support.c (inspect_type): Don't attempt substitutions
7028 of symbol with the same name.
7029
3d1cbb78
TT
70302019-04-25 Tom Tromey <tromey@adacore.com>
7031
7032 PR gdb/24475:
7033 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
7034 static.
7035
94aeb44b
TT
70362019-04-25 Tom Tromey <tromey@adacore.com>
7037
7038 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
7039 rvalue reference.
7040 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
7041 (gdb_xml_parser::parse): Use std::move.
7042 * python/python-internal.h (gdbpy_convert_exception): Take a const
7043 reference.
7044 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
7045 std::move.
7046 * python/py-utils.c (gdbpy_convert_exception): Take a const
7047 reference.
7048 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7049 Use std::move.
7050 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7051 Use std::move.
7052 * mi/mi-main.c (mi_print_exception): Take a const reference.
7053 * main.c (handle_command_errors): Take a const reference.
7054 * linespec.c (parse_linespec): Use std::move.
7055 * infcall.c (run_inferior_call): Use std::move.
7056 (call_function_by_hand_dummy): Use std::move.
7057 * exec.c (try_open_exec_file): Use std::move.
7058 * exceptions.h (exception_print, exception_fprintf)
7059 (exception_print_same): Update.
7060 * exceptions.c (print_exception, exception_print)
7061 (exception_fprintf, exception_print_same): Change parameters to
7062 const reference.
7063 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
7064 * common/new-op.c: Use std::move.
7065 * common/common-exceptions.h (struct gdb_exception): Add move
7066 constructor.
7067 (struct gdb_exception_error, struct gdb_exception_quit, struct
7068 gdb_quit_bad_alloc): Change constructor to move constructor.
7069 (throw_exception): Change parameter to rvalue reference.
7070 * common/common-exceptions.c (throw_exception): Take rvalue
7071 reference.
7072 * cli/cli-interp.c (safe_execute_command): Use std::move.
7073 * breakpoint.c (insert_bp_location, location_to_sals): Use
7074 std::move.
7075
680d7fd5
TT
70762019-04-25 Tom Tromey <tromey@adacore.com>
7077
7078 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
7079 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
7080 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
7081 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
7082 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
7083 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
7084 guile/scm-value.c: Use unpack.
7085 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
7086 gdbscm_gdb_exception.
7087 (gdbscm_throw_gdb_exception): Likewise.
7088 (struct gdbscm_gdb_exception): New.
7089 (unpack): New function.
7090 (gdbscm_wrap): Use unpack.
7091
c6fdd8b2
TT
70922019-04-25 Tom Tromey <tromey@adacore.com>
7093
7094 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7095 (gdb_rl_callback_handler): Use std::move.
7096 * common/common-exceptions.h (struct gdb_exception): Add move
7097 assignment operator.
7098 (throw_exception_sjlj): Change "exception" to const reference.
7099 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
7100 (throw_exception_sjlj): Change "exception" to const reference.
7101
cc06b668
TT
71022019-04-25 Tom Tromey <tromey@adacore.com>
7103
7104 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
7105 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
7106 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7107 Update.
7108 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7109 Update.
7110 * mi/mi-interp.c (mi_interp::exec): Update.
7111 * linespec.c (parse_linespec): Update.
7112 * infcall.c (run_inferior_call): Update.
7113 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
7114 * guile/scm-symbol.c (gdbscm_lookup_symbol)
7115 (gdbscm_lookup_global_symbol): Update.
7116 * guile/scm-param.c (gdbscm_parameter_value): Update.
7117 * guile/scm-frame.c (gdbscm_frame_read_register)
7118 (gdbscm_frame_read_var): Update.
7119 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7120 * exec.c (try_open_exec_file): Update.
7121 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7122 (gdb_rl_callback_handler): Update.
7123 * common/common-exceptions.h (exception_none): Don't declare.
7124 * common/common-exceptions.c (exception_none): Don't define.
7125 (struct catcher) <exception>: Update.
7126 * cli/cli-interp.c (safe_execute_command): Update.
7127 * breakpoint.c (insert_bp_location, location_to_sals): Update.
7128
cf532bd1
AT
71292019-04-25 Ali Tamur <tamur@google.com>
7130
7131 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
7132 (read_attribute_value): Likewise.
7133 (dwarf2_read_addr_index): Update comment.
7134 (read_str_index): Add DW_FORM_strx.
7135 (dwarf2_string_attr): Likewise.
7136 (dwarf2_const_value_attr): Likewise.
7137 (dump_die_shallow): Likewise.
7138 (dwarf2_fetch_constant_bytes): Likewise.
7139 (skip_form_bytes): Likewise.
7140 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
7141
82433e3e
SDJ
71422019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7143
7144 PR corefiles/11608
7145 PR corefiles/18187
7146 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
7147 OFFSET. Verify if current mapping contains an ELF header.
7148 (linux_find_memory_regions_full): Adjust call to
7149 dump_mapping_p.
7150
723adb65
SL
71512019-04-25 Sandra Loosemore <sandra@codesourcery.com>
7152 Kang Li <kanglictf@gmail.com>
7153
7154 PR gdb/21600
7155
7156 * dwarf2-frame.c (read_initial_length): Be consistent about using
7157 unsigned representation of length.
7158 (decode_frame_entry_1): Likewise. Check for wraparound of
7159 end pointer as well as buffer overflow.
7160
596179f7
SDJ
71612019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7162
7163 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
7164 "vq".
7165
a59240a4
TT
71662019-04-24 Tom Tromey <tromey@adacore.com>
7167
7168 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
7169
f872fdbb
AB
71702019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7171
7172 * s12z-tdep.c (s12z_unwind_pc): Delete.
7173 (s12z_unwind_sp): Delete.
7174 (s12z_gdbarch_init): Don't register deleted functions with
7175 gdbarch.
7176
b614e6f3
AB
71772019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7178
7179 * rl78-tdep.c (rl78_unwind_sp): Delete.
7180 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
7181
14faed38
AB
71822019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7183
7184 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
7185 (xstormy16_unwind_pc): Delete.
7186 (xstormy16_dummy_id): Delete.
7187 (xstormy16_gdbarch_init): Don't register deleted functions with
7188 gdbarch.
7189
541aad8a
AB
71902019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7191
7192 * vax-tdep.c (vax_unwind_pc): Delete.
7193 (vax_gdbarch_init): Don't register deleted function with gdbarch.
7194
29222070
AB
71952019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7196
7197 * v850-tdep.c (v850_unwind_sp): Delete.
7198 (v850_unwind_pc): Delete.
7199 (v850_dummy_id): Delete.
7200 (v850_gdbarch_init): Don't register deleted functions with
7201 gdbarch.
7202
0f534d76
AB
72032019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7204
7205 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
7206 (tilegx_unwind_pc): Delete.
7207 (tilegx_unwind_dummy_id): Delete.
7208 (tilegx_gdbarch_init): Don't register deleted functions with
7209 gdbarch.
7210
1ba7b7f9
AB
72112019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7212
7213 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
7214 (tic6x_dummy_id): Delete.
7215 (tic6x_gdbarch_init): Don't register deleted functions with
7216 gdbarch.
7217
d31f262c
AB
72182019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7219
7220 * sparc-tdep.c (sparc_unwind_pc): Delete.
7221 (sparc32_gdbarch_init): Don't register deleted function with
7222 gdbarch.
7223
6d14d64d
AB
72242019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7225
7226 * sh-tdep.c (sh_unwind_sp): Delete.
7227 (sh_unwind_pc): Delete.
7228 (sh_dummy_id): Delete.
7229 (sh_gdbarch_init): Don't register deleted functions with
7230 gdbarch.
7231
a40dde9d
AB
72322019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7233
7234 * score-tdep.c (score_unwind_sp): Delete.
7235 (score_unwind_pc): Delete.
7236 (score_dummy_id): Delete.
7237 (score_gdbarch_init): Don't register deleted functions with
7238 gdbarch.
7239
47c47d69
AB
72402019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7241
7242 * rx-tdep.c (rx_unwind_pc): Delete.
7243 (rx_unwind_sp): Delete.
7244 (rx_dummy_id): Delete.
7245 (rx_gdbarch_init): Don't register deleted functions with
7246 gdbarch. Update comment.
7247
833a4480
AB
72482019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7249
7250 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
7251 (rs6000_dummy_id): Delete.
7252 (rs6000_gdbarch_init): Don't register deleted functions with
7253 gdbarch.
7254
3f2cef49
AB
72552019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7256
7257 * or1k-tdep.c (or1k_dummy_id): Delete.
7258 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
7259
96acf884
AB
72602019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7261
7262 * nios2-tdep.c (nios2_dummy_id): Delete.
7263 (nios2_unwind_sp): Delete.
7264 (nios2_gdbarch_init): Don't register deleted functions with
7265 gdbarch.
7266
ca0ab0aa
AB
72672019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7268
7269 * nds32-tdep.c (nds32_dummy_id): Delete.
7270 (nds32_unwind_pc): Delete.
7271 (nds32_unwind_sp): Delete.
7272 (nds32_gdbarch_init): Don't register deleted functions with
7273 gdbarch.
7274
c8259044
AB
72752019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7276
7277 * msp430-tdep.c (msp430_unwind_pc): Delete.
7278 (msp430_unwind_sp): Delete.
7279 (msp430_dummy_id): Delete.
7280 (msp430_gdbarch_init): Don't register deleted functions with
7281 gdbarch.
7282
27f113c8
AB
72832019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7284
7285 * moxie-tdep.c (moxie_unwind_sp): Delete.
7286 (moxie_unwind_pc): Delete.
7287 (moxie_dummy_id): Delete.
7288 (moxie_gdbarch_init): Don't register deleted functions with
7289 gdbarch.
7290
aee6c3cd
AB
72912019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7292
7293 * mn10300-tdep.c (mn10300_dummy_id): Delete.
7294 (mn10300_unwind_pc): Delete.
7295 (mn10300_unwind_sp): Delete.
7296 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
7297 mn10300_unwind_sp.
7298 (mn10300_frame_unwind_init): Don't register deleted functions with
7299 gdbarch.
7300
8e2b5aea
AB
73012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7302
7303 * mep-tdep.c (mep_unwind_pc): Delete.
7304 (mep_unwind_sp): Delete.
7305 (mep_dummy_id): Delete.
7306 (mep_gdbarch_init): Don't register deleted functions with
7307 gdbarch.
7308
43cf3ede
AB
73092019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7310
7311 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
7312 (m68hc11_unwind_sp): Delete.
7313 (m68hc11_gdbarch_init): Don't register deleted functions with
7314 gdbarch.
7315
5e79b7bb
AB
73162019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7317
7318 * m32r-tdep.c (m32r_unwind_sp): Delete.
7319 (m32r_unwind_pc): Delete.
7320 (m32r_dummy_id): Delete.
7321 (m32r_gdbarch_init): Don't register deleted functions with
7322 gdbarch.
7323
89b268d8
AB
73242019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7325
7326 * m32c-tdep.c (m32c_unwind_pc): Delete.
7327 (m32c_unwind_sp): Delete.
7328 (m32c_dummy_id): Delete.
7329 (m32c_gdbarch_init): Don't register deleted functions with
7330 gdbarch.
7331
946c28d2
AB
73322019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7333
7334 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
7335 (lm32_unwind_pc): Delete.
7336 (lm32_dummy_id): Delete.
7337 (lm32_gdbarch_init): Don't register deleted functions with
7338 gdbarch.
7339
bf12844a
AB
73402019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7341
7342 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
7343 (iq2000_unwind_pc): Delete.
7344 (iq2000_dummy_id): Delete.
7345 (iq2000_gdbarch_init): Don't register deleted functions with
7346 gdbarch.
7347
ecbc06d2
AB
73482019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7349
7350 * nds32-tdep.c (nds32_type_align): Delete.
7351 (nds32_push_dummy_call): Use type_align instead.
7352
030197b4
AB
73532019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7354
7355 * arm-tdep.c (arm_type_align): Only handle vector override case.
7356 (arm_push_dummy_call): Use type_align.
7357 (arm_gdbarch_init): Register arm_type_align gdbarch function.
7358
b907456c
AB
73592019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7360
7361 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
7362 case.
7363 (pass_on_stack): Use type_align.
7364 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
7365 function.
7366
9e97ba43
TT
73672019-04-23 Tom Tromey <tromey@adacore.com>
7368
7369 * dwarf2read.c (line_header::file_name_at): Remove unused
7370 overload.
7371
6892f601
TV
73722019-04-23 Tom de Vries <tdevries@suse.de>
7373
7374 PR gdb/24438
7375 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
7376 invocation.
7377
336d760d
AT
7378
73792019-03-27 Ali Tamur <tamur@google.com>
7380
7381 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
7382 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
7383 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
7384 (dwarf_expr_context::get_addr_index): Likewise
7385 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
7386 (symbol_needs_eval_context::get_addr_index): Likewise
7387 (disassemble_dwarf_expression): Add DW_OP_addrx
7388 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
7389 (read_cutu_die_from_dwo): Update comment
7390 (skip_one_die): Add DW_FORM_addrx
7391 (read_attribute_value): Likewise
7392 (var_decode_location): Add DW_OP_addrx
7393 (dwarf2_const_value_attr): Add DW_FORM_addrx
7394 (dump_die_shallow): Likewise
7395 (dwarf2_fetch_constant_bytes): Likewise
7396 (decode_locdesc): Add DW_OP_addrx
7397 (skip_form_bytes): Add DW_FORM_addrx
7398
ad9d13f8
AT
73992019-04-22 Ali Tamur <tamur@google.com>
7400
7401 * MAINTAINERS (Write After Approval): Add self.
7402
d70cc3ba
SM
74032019-04-22 Simon Marchi <simon.marchi@efficios.com>
7404
7405 * solib-svr4.c (get_svr4_info): Add pspace parameter.
7406 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
7407 (open_symbol_file_object): Likewise.
7408 (svr4_default_sos): Add info parameter.
7409 (svr4_read_so_list): Likewise.
7410 (svr4_current_sos_direct): Adjust functions calls to pass down
7411 info.
7412 (svr4_current_sos_1): Add info parameter.
7413 (svr4_current_sos): Call get_svr4_info, pass info down to
7414 svr4_current_sos_1.
7415 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
7416 get_svr4_info.
7417 (svr4_in_dynsym_resolve_code): Pass current_program_space to
7418 get_svr4_info.
7419 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
7420 to get_svr4_info.
7421 (probes_table_remove_objfile_probes): Likewise.
7422 (register_solib_event_probe): Add info parameter.
7423 (solist_update_incremental): Pass info parameter down to
7424 svr4_read_so_list.
7425 (disable_probes_interface): Add info parameter.
7426 (svr4_handle_solib_event): Pass current_program_space to
7427 get_svr4_info. Adjust disable_probes_interface cleanup.
7428 (svr4_create_probe_breakpoints): Add info parameter, pass it
7429 down to register_solib_event_probe.
7430 (svr4_create_solib_event_breakpoints): Add info parameter,
7431 pass it down to svr4_create_probe_breakpoints.
7432 (enable_break): Pass info down to
7433 svr4_create_solib_event_breakpoints.
7434 (svr4_solib_create_inferior_hook): Pass current_program_space to
7435 get_svr4_info.
7436 (svr4_clear_solib): Likewise.
7437
7905fc35
PA
74382019-04-22 Pedro Alves <palves@redhat.com>
7439
7440 * solib-svr4.c (svr4_free_objfile_observer): New.
7441 (probe_and_action::objfile): New field.
7442 (probes_table_htab_remove_objfile_probes)
7443 (probes_table_remove_objfile_probes): New functions.
7444 (register_solib_event_probe): Add 'objfile' parameter. Store it
7445 in the new probe_and_action. Don't store the probe in 'lookup'.
7446 (svr4_create_probe_breakpoints): Pass objfile to
7447 register_solib_event_probe.
7448 (_initialize_svr4_solib): Register a free_objfile observer.
7449
fb881986
TT
74502019-04-19 Tom Tromey <tom@tromey.com>
7451
7452 * common/queue.h: Remove.
7453
8732db6c
TT
74542019-04-19 Tom Tromey <tom@tromey.com>
7455
7456 * event-loop.c: Don't include "common/queue.h".
7457
97dfbadd
TT
74582019-04-19 Tom Tromey <tom@tromey.com>
7459
7460 * remote.c (remote_target): Use delete.
7461 * remote-notif.h: Include <list>, not "common/queue.h".
7462 (notif_client_p): Remove typedef.
7463 (remote_notif_state): Add constructor, destructor, initializer.
7464 <notif_queue>: Now a std::list.
7465 (remote_notif_state_xfree): Don't declare.
7466 * remote-notif.c (remote_notif_process, handle_notification)
7467 (remote_notif_state_allocate): Update.
7468 (~remote_notif_state): Rename from remote_notif_state_xfree.
7469
cf250e36
TT
74702019-04-19 Tom Tromey <tom@tromey.com>
7471
7472 * symfile.c (reread_symbols): Update.
7473 * objfiles.c (objfile_register_static_link)
7474 (objfile_lookup_static_link): Update
7475 (~objfile) Don't delete static_links.
7476 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
7477
61f4b350
TT
74782019-04-19 Tom Tromey <tom@tromey.com>
7479
7480 * type-stack.h (struct type_stack) <insert>: Constify string.
7481 * type-stack.c (type_stack::insert): Constify string.
7482 * gdbtypes.h (lookup_template_type): Update.
7483 (address_space_name_to_int): Update.
7484 * gdbtypes.c (address_space_name_to_int): Make space_identifier
7485 const.
7486 (lookup_template_type): Make name const.
7487 * c-exp.y: Update rules.
7488 (lex_one_token, classify_name, classify_inner_name)
7489 (c_print_token): Update.
7490 * p-exp.y: Update rules.
7491 (yylex): Update.
7492 * f-exp.y: Update rules.
7493 (yylex): Update.
7494 * d-exp.y: Update rules.
7495 (lex_one_token, classify_name, classify_inner_name): Update.
7496 * parse.c (write_dollar_variable, copy_name): Return std::string.
7497 * parser-defs.h (copy_name): Change return type.
7498 * m2-exp.y: Update rules.
7499 (yylex): Update.
7500 * go-exp.y (lex_one_token): Update.
7501 Update rules.
7502 (classify_unsafe_function, classify_packaged_name)
7503 (classify_name, yylex): Update.
7504
189b8c2e
ST
75052019-04-19 Sergei Trofimovich <siarheit@google.com>
7506
7507 * configure.ac: add --enable-source-highlight switch.
7508 * configure: Regenerate.
7509 * top.c (print_gdb_version): plumb --enable-source-highlight
7510 status to "show configuration".
7511
8ecb59f8
TT
75122019-04-19 Tom Tromey <tromey@adacore.com>
7513
7514 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
7515 Check ADA_TYPE_P.
7516 (empty_record, ada_template_to_fixed_record_type_1)
7517 (template_to_static_fixed_type)
7518 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
7519 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
7520 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
7521 macros.
7522
62160ec9
TT
75232019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
7524
7525 PR symtab/24423:
7526 * source.c (print_source_lines_base): Advance "iter" when a
7527 control character is seen.
7528
f2ae8bc8
PW
75292019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7530
7531 * inferior.h (struct infcall_suspend_state_deleter):
7532 Catch exception in destructor to avoid crash.
7533
d563b953
PW
75342019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7535
7536 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
7537 close to the add_com "shell".
7538
dc34c897
TT
75392019-04-18 Tom Tromey <tromey@adacore.com>
7540
7541 * process-stratum-target.h (class process_stratum_target)
7542 <stratum>: Add "final".
7543
a12e5744
TT
75442019-04-17 Tom Tromey <tromey@adacore.com>
7545
7546 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
7547 against nullptr before use.
7548
a7e559cc
AH
75492019-04-17 Alan Hayward <alan.hayward@arm.com>
7550
7551 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
7552
c01660c6
AB
75532019-04-17 Jim Wilson <jimw@sifive.com>
7554 Andrew Burgess <andrew.burgess@embecosm.com>
7555
7556 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
7557 code read might fail, assume 4-byte breakpoint in that case.
7558
4aa866af
LS
75592019-04-15 Leszek Swirski <leszeks@google.com>
7560
7561 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
7562 rather than a hand-rolled POD check when checking for forced MEMORY
7563 classification.
7564
48574d91
AH
75652019-04-15 Alan Hayward <alan.hayward@arm.com>
7566
7567 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
7568 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
7569 function.
7570 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
7571 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
7572 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
7573 declaration.
7574
4da037ef
AH
75752019-04-15 Alan Hayward <alan.hayward@arm.com>
7576
7577 * aarch64-linux-nat.c
7578 (aarch64_linux_nat_target::thread_architecture): Add override.
7579 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
7580 each VQ.
7581
ccb8d7e8
AH
75822019-04-15 Alan Hayward <alan.hayward@arm.com>
7583
7584 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
7585
35add35e
AB
75862019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
7587
7588 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
7589 target types of size 96-bits, add some additional comments, and
7590 check that the builtin type we found was the correct size.
7591
51196bbc
EZ
75922019-04-12 Eli Zaretskii <eliz@gnu.org>
7593
7594 * utils.c (prompt_for_continue): Don't restore the styling at the
7595 end, as applied_style has the wrong value. This fixes styling in
7596 long lists of file names that are interrupted by the "Continue?"
7597 prompt.
7598
62253a61
AB
75992019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
7600
7601 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
7602 * c-lang.c (c_language_defn): Likewise.
7603 (cplus_language_defn): Likewise.
7604 (asm_language_defn): Likewise.
7605 (minimal_language_defn): Likewise.
7606 * d-lang.c (d_language_defn): Likewise.
7607 * f-lang.c (f_language_defn): Likewise.
7608 * go-lang.c (go_language_defn): Likewise.
7609 * language.c (unknown_language_defn): Likewise.
7610 (auto_language_defn): Likewise.
7611 * language.h (struct language_defn): Remove la_magic field.
7612 (LANG_MAGIC): Delete.
7613 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
7614 * objc-lang.c (objc_language_defn): Likewise.
7615 * opencl-lang.c (opencl_language_defn): Likewise.
7616 * p-lang.c (pascal_language_defn): Likewise.
7617 * rust-lang.c (rust_language_defn): Likewise.
7618
a9158a86
AB
76192019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7620
7621 * riscv-tdep.c (riscv_type_align): New function.
7622 (riscv_type_alignment): Delete.
7623 (riscv_arg_location): Use 'type_align'.
7624 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
7625
41077b66
AB
76262019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7627
7628 * gdbtypes.c (type_align): A struct with no non-static fields also
7629 has alignment of 1.
7630
9f0272f8
AB
76312019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7632
7633 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
7634 component to 0.
7635 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
7636 member.
7637 (riscv_struct_info::analyse): New implementation using new
7638 analyse_inner member function.
7639 (riscv_struct_info::field_offset): New member function.
7640 (riscv_struct_info::m_offsets): New member variable.
7641 (riscv_struct_info::analyse_inner): New private member function,
7642 takes the old implementation of riscv_struct_info::analyse but
7643 extended to track field offsets.
7644 (riscv_call_arg_struct): Update the struct folding special cases
7645 to handle cases where empty C++ structs, which are non-zero
7646 length, are found.
7647 (riscv_arg_location): Initialise the length of each location, a
7648 non-zero length now indicates the location is in use.
7649 (riscv_push_dummy_call): Allow for the first location having a
7650 non-zero offset when setting up arguments.
7651 (riscv_return_value): Likewise, but for return values.
7652
02cf60c7
TT
76532019-04-11 Tom Tromey <tromey@adacore.com>
7654
7655 * utils.c (internal_vproblem): Make "msg" const.
7656
68811f8f
AH
76572019-04-11 Alan Hayward <alan.hayward@arm.com>
7658
7659 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
7660 * trad-frame.c (trad_frame_reset_saved_regs): New function.
7661 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
7662 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
7663
3f52fdbc
KB
76642019-04-10 Kevin Buettner <kevinb@redhat.com>
7665
7666 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
7667 function.
7668 (fill_gregset): Call amd64_linux_collect_native_gregset instead
7669 of amd64_collect_native_gregset.
7670 (amd64_linux_nat_target::store_registers): Likewise.
7671
e9ad22ee
TT
76722019-04-10 Tom Tromey <tom@tromey.com>
7673
7674 * symtab.c (lookup_global_symbol_from_objfile)
7675 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
7676 * objfiles.h (class separate_debug_iterator): New.
7677 (class separate_debug_range): New.
7678 (struct objfile) <separate_debug_objfiles>: New method.
7679 (objfile_separate_debug_iterate): Don't declare.
7680 * objfiles.c (separate_debug_iterator::operator++): Rename from
7681 objfile_separate_debug_iterate.
7682 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
7683 iterator.
7684 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
7685 iterator.
7686
ee371134
TT
76872019-04-10 Tom Tromey <tom@tromey.com>
7688
7689 * symfile.c (reread_symbols): Remove old comment.
7690 * objfiles.c (free_all_objfiles): Fix a typo.
7691
bf227d61
TT
76922019-04-10 Tom Tromey <tom@tromey.com>
7693
7694 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
7695 * minsyms.c (lookup_minimal_symbol): Use foreach.
7696 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7697 (lookup_minimal_symbol_solib_trampoline): Likewise.
7698 * symfile.c (reread_symbols): Use foreach.
7699
8dc433a0
TT
77002019-04-09 Ivan Begert <ivanbegert@gmail.com>
7701 Tom Tromey <tromey@adacore.com>
7702
7703 PR rust/24414:
7704 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
7705 (rust_lex_int_test): Change "value" to be LONGEST.
7706 (rust_lex_tests): Add test for long integer literal.
7707
9ab8741a
TT
77082019-04-09 Tom Tromey <tromey@adacore.com>
7709
7710 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
7711 to bool.
7712 (extended_remote_target::attach): Update.
7713 (remote_target::remote_notice_new_inferior): Update.
7714 (remote_target::add_current_inferior_and_thread): Update.
7715 * inferior.c (exit_inferior_1): Use "false".
7716 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
7717
e242fd12
SM
77182019-04-09 Simon Marchi <simon.marchi@efficios.com>
7719
9ca1957f 7720 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
7721 the "start" command.
7722
2b0c8b01
KB
77232019-04-08 Kevin Buettner <kevinb@redhat.com>
7724
7725 * python/py-inferior.c (infpy_thread_from_thread_handle):
7726 Adjust comments to reflect renaming of thread_from_thread_handle
7727 to thread_from_handle. Adjust keywords. Fix type error message.
7728 (inferior_object_methods): Add thread_from_handle. Retain
7729 thread_from_thread_handle, but mark it as deprecated.
7730
50a82723
KB
77312019-04-08 Kevin Buettner <kevinb@redhat.com>
7732
7733 * gdbthread.h (find_thread_by_handle): Revise declaration.
7734 * thread.c (find_thread_by_handle): Likewise. Adjust
7735 implementation too.
7736 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
7737 support for buffer objects as handles.
7738
cf63b016
KB
77392019-04-08 Kevin Buettner <kevinb@redhat.com>
7740
7741 * python/py-infthread.c (thpy_thread_handle): New function.
7742 (thread_object_methods): Register thpy_thread_handle.
7743
3d6c6204
KB
77442019-04-08 Kevin Buettner <kevinb@redhat.com>
7745
7746 * gdbthread.h (thread_to_thread_handle): Declare.
7747 * thread.c (gdbtypes.h): Include.
7748 (thread_to_thread_handle): New function.
7749
7750 * target.h (struct target_ops): Add thread_info_to_thread_handle.
7751 (target_thread_info_to_thread_handle): Declare.
7752 * target.c (target_thread_info_to_thread_handle): New function.
7753 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
7754 * target-delegates.c: Regenerate.
7755
7756 * linux-thread-db.c (class thread_db_target): Add method
7757 thread_info_to_thread_handle.
7758 (thread_db_target::thread_info_to_thread_handle): Define.
7759 * remote.c (class remote_target): Add new method
7760 thread_info_to_thread_handle.
7761 (remote_target::thread_info_to_thread_handle): Define.
7762
56be6ea8
PA
77632019-04-08 Pedro Alves <palves@redhat.com>
7764
7765 * common/common-exceptions.c (throw_exception): Don't create
7766 named object to throw; throw directly.
7767 (throw_it): Likewise. Don't initialize gdb_exception::message
7768 here, with new; pass FMT and AP to the ctor instead.
7769 * common/common-exceptions.h: Include <string>.
7770 (gdb_exception::gdb_exception(enum return_reason, enum errors,
7771 const char *, va_list)): New ctor. Use std::make_shared.
7772 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
7773 errors)): Delete.
7774 (gdb_exception_error::gdb_exception_error(enum errors, const char
7775 *, va_list)): New.
7776 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
7777 Add assertion.
7778 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
7779 errors)): Delete.
7780 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
7781 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
7782 Add assertion.
7783
eedc3f4f
TT
77842019-04-08 Tom Tromey <tom@tromey.com>
7785
7786 * valops.c (value_rtti_indirect_type): Replace throw_exception
7787 with throw.
7788 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
7789 with throw.
7790 * thread.c (thr_try_catch_cmd): Replace throw_exception with
7791 throw.
7792 * target.c (target_translate_tls_address): Replace throw_exception
7793 with throw.
7794 * stack.c (frame_apply_command_count): Replace throw_exception
7795 with throw.
7796 * solib-spu.c (append_ocl_sos): Replace throw_exception with
7797 throw.
7798 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
7799 with throw.
7800 * rs6000-tdep.c (rs6000_frame_cache)
7801 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
7802 * remote.c: Replace throw_exception with throw.
7803 * record-full.c (record_full_message, record_full_wait_1)
7804 (record_full_restore): Replace throw_exception with throw.
7805 * record-btrace.c:
7806 (get_thread_current_frame_id, record_btrace_start_replaying)
7807 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
7808 (cmd_record_btrace_start): Replace throw_exception with throw.
7809 * parse.c (parse_exp_in_context_1): Replace throw_exception with
7810 throw.
7811 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
7812 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
7813 * linespec.c:
7814 (find_linespec_symbols): Replace throw_exception with throw.
7815 * infrun.c (displaced_step_prepare, resume): Replace
7816 throw_exception with throw.
7817 * infcmd.c (post_create_inferior): Replace throw_exception with
7818 throw.
7819 * inf-loop.c (inferior_event_handler): Replace throw_exception
7820 with throw.
7821 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
7822 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
7823 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
7824 (get_prev_frame_always, get_frame_pc_if_available)
7825 (get_frame_address_in_block_if_available, get_frame_language):
7826 Replace throw_exception with throw.
7827 * frame-unwind.c (frame_unwind_try_unwinder): Replace
7828 throw_exception with throw.
7829 * eval.c (fetch_subexp_value, evaluate_var_value)
7830 (evaluate_funcall, evaluate_subexp_standard): Replace
7831 throw_exception with throw.
7832 * dwarf2loc.c (call_site_find_chain)
7833 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
7834 Replace throw_exception with throw.
7835 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
7836 with throw.
7837 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
7838 throw.
7839 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
7840 * completer.c (complete_line_internal): Replace throw_exception
7841 with throw.
7842 * compile/compile-object-run.c (compile_object_run): Replace
7843 throw_exception with throw.
7844 * cli/cli-script.c (process_next_line): Replace throw_exception
7845 with throw.
7846 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
7847 (btrace_enable, btrace_maint_update_pt_packets): Replace
7848 throw_exception with throw.
7849 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
7850 throw_exception with throw.
7851 * break-catch-throw.c (re_set_exception_catchpoint): Replace
7852 throw_exception with throw.
7853 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7854 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
7855 * aarch64-tdep.c (aarch64_make_prologue_cache)
7856 (aarch64_make_stub_cache): Replace throw_exception with throw.
7857
26003a20
TT
78582019-04-08 Tom Tromey <tom@tromey.com>
7859
7860 * common/common-exceptions.c (throw_exception): Rename from
7861 throw_exception_cxx. Remove old copy. Make argument const.
7862 (throw_it): Create and throw exception objects directly.
7863 * common/common-exceptions.h (throw_exception): Make argument
7864 const.
7865 (struct gdb_exception_error): Add constructor.
7866 (struct gdb_exception_quit): Add constructor.
7867
d272eb37
TT
78682019-04-08 Tom Tromey <tom@tromey.com>
7869
7870 * common/common-exceptions.h (exception_rethrow): Don't declare.
7871 (TRY_SJLJ): Update comment.
7872 (TRY, CATCH, END_CATCH): Remove.
7873 * common/common-exceptions.c (exception_rethrow): Remove.
7874
230d2906
TT
78752019-04-08 Tom Tromey <tom@tromey.com>
7876
7877 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
7878 Remove.
7879 (gdb_exception_error): Rename from
7880 gdb_exception_RETURN_MASK_ERROR.
7881 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
7882 (gdb_quit_bad_alloc): Update.
7883 * aarch64-tdep.c: Update.
7884 * ada-lang.c: Update.
7885 * ada-typeprint.c: Update.
7886 * ada-valprint.c: Update.
7887 * amd64-tdep.c: Update.
7888 * arch-utils.c: Update.
7889 * break-catch-throw.c: Update.
7890 * breakpoint.c: Update.
7891 * btrace.c: Update.
7892 * c-varobj.c: Update.
7893 * cli/cli-cmds.c: Update.
7894 * cli/cli-interp.c: Update.
7895 * cli/cli-script.c: Update.
7896 * common/common-exceptions.c: Update.
7897 * common/new-op.c: Update.
7898 * common/selftest.c: Update.
7899 * compile/compile-c-symbols.c: Update.
7900 * compile/compile-cplus-symbols.c: Update.
7901 * compile/compile-object-load.c: Update.
7902 * compile/compile-object-run.c: Update.
7903 * completer.c: Update.
7904 * corelow.c: Update.
7905 * cp-abi.c: Update.
7906 * cp-support.c: Update.
7907 * cp-valprint.c: Update.
7908 * darwin-nat.c: Update.
7909 * disasm-selftests.c: Update.
7910 * dtrace-probe.c: Update.
7911 * dwarf-index-cache.c: Update.
7912 * dwarf-index-write.c: Update.
7913 * dwarf2-frame-tailcall.c: Update.
7914 * dwarf2-frame.c: Update.
7915 * dwarf2loc.c: Update.
7916 * dwarf2read.c: Update.
7917 * eval.c: Update.
7918 * event-loop.c: Update.
7919 * event-top.c: Update.
7920 * exec.c: Update.
7921 * f-valprint.c: Update.
7922 * fbsd-tdep.c: Update.
7923 * frame-unwind.c: Update.
7924 * frame.c: Update.
7925 * gdbtypes.c: Update.
7926 * gnu-v3-abi.c: Update.
7927 * guile/guile-internal.h: Update.
7928 * guile/scm-block.c: Update.
7929 * guile/scm-breakpoint.c: Update.
7930 * guile/scm-cmd.c: Update.
7931 * guile/scm-disasm.c: Update.
7932 * guile/scm-frame.c: Update.
7933 * guile/scm-lazy-string.c: Update.
7934 * guile/scm-math.c: Update.
7935 * guile/scm-param.c: Update.
7936 * guile/scm-ports.c: Update.
7937 * guile/scm-pretty-print.c: Update.
7938 * guile/scm-symbol.c: Update.
7939 * guile/scm-symtab.c: Update.
7940 * guile/scm-type.c: Update.
7941 * guile/scm-value.c: Update.
7942 * i386-linux-tdep.c: Update.
7943 * i386-tdep.c: Update.
7944 * inf-loop.c: Update.
7945 * infcall.c: Update.
7946 * infcmd.c: Update.
7947 * infrun.c: Update.
7948 * jit.c: Update.
7949 * language.c: Update.
7950 * linespec.c: Update.
7951 * linux-fork.c: Update.
7952 * linux-nat.c: Update.
7953 * linux-tdep.c: Update.
7954 * linux-thread-db.c: Update.
7955 * main.c: Update.
7956 * mi/mi-cmd-break.c: Update.
7957 * mi/mi-cmd-stack.c: Update.
7958 * mi/mi-interp.c: Update.
7959 * mi/mi-main.c: Update.
7960 * objc-lang.c: Update.
7961 * p-valprint.c: Update.
7962 * parse.c: Update.
7963 * ppc-linux-tdep.c: Update.
7964 * printcmd.c: Update.
7965 * python/py-arch.c: Update.
7966 * python/py-breakpoint.c: Update.
7967 * python/py-cmd.c: Update.
7968 * python/py-finishbreakpoint.c: Update.
7969 * python/py-frame.c: Update.
7970 * python/py-framefilter.c: Update.
7971 * python/py-gdb-readline.c: Update.
7972 * python/py-inferior.c: Update.
7973 * python/py-infthread.c: Update.
7974 * python/py-lazy-string.c: Update.
7975 * python/py-linetable.c: Update.
7976 * python/py-objfile.c: Update.
7977 * python/py-param.c: Update.
7978 * python/py-prettyprint.c: Update.
7979 * python/py-progspace.c: Update.
7980 * python/py-record-btrace.c: Update.
7981 * python/py-record.c: Update.
7982 * python/py-symbol.c: Update.
7983 * python/py-type.c: Update.
7984 * python/py-unwind.c: Update.
7985 * python/py-utils.c: Update.
7986 * python/py-value.c: Update.
7987 * python/python.c: Update.
7988 * record-btrace.c: Update.
7989 * record-full.c: Update.
7990 * remote-fileio.c: Update.
7991 * remote.c: Update.
7992 * riscv-tdep.c: Update.
7993 * rs6000-aix-tdep.c: Update.
7994 * rs6000-tdep.c: Update.
7995 * rust-exp.y: Update.
7996 * rust-lang.c: Update.
7997 * s390-tdep.c: Update.
7998 * selftest-arch.c: Update.
7999 * solib-dsbt.c: Update.
8000 * solib-frv.c: Update.
8001 * solib-spu.c: Update.
8002 * solib-svr4.c: Update.
8003 * solib.c: Update.
8004 * sparc64-linux-tdep.c: Update.
8005 * stack.c: Update.
8006 * symfile-mem.c: Update.
8007 * symmisc.c: Update.
8008 * target.c: Update.
8009 * thread.c: Update.
8010 * top.c: Update.
8011 * tracefile-tfile.c: Update.
8012 * tui/tui.c: Update.
8013 * typeprint.c: Update.
8014 * unittests/cli-utils-selftests.c: Update.
8015 * unittests/parse-connection-spec-selftests.c: Update.
8016 * valops.c: Update.
8017 * valprint.c: Update.
8018 * value.c: Update.
8019 * varobj.c: Update.
8020 * windows-nat.c: Update.
8021 * x86-linux-nat.c: Update.
8022 * xml-support.c: Update.
8023
a70b8144
TT
80242019-04-08 Tom Tromey <tom@tromey.com>
8025
8026 * xml-support.c: Use C++ exception handling.
8027 * x86-linux-nat.c: Use C++ exception handling.
8028 * windows-nat.c: Use C++ exception handling.
8029 * varobj.c: Use C++ exception handling.
8030 * value.c: Use C++ exception handling.
8031 * valprint.c: Use C++ exception handling.
8032 * valops.c: Use C++ exception handling.
8033 * unittests/parse-connection-spec-selftests.c: Use C++ exception
8034 handling.
8035 * unittests/cli-utils-selftests.c: Use C++ exception handling.
8036 * typeprint.c: Use C++ exception handling.
8037 * tui/tui.c: Use C++ exception handling.
8038 * tracefile-tfile.c: Use C++ exception handling.
8039 * top.c: Use C++ exception handling.
8040 * thread.c: Use C++ exception handling.
8041 * target.c: Use C++ exception handling.
8042 * symmisc.c: Use C++ exception handling.
8043 * symfile-mem.c: Use C++ exception handling.
8044 * stack.c: Use C++ exception handling.
8045 * sparc64-linux-tdep.c: Use C++ exception handling.
8046 * solib.c: Use C++ exception handling.
8047 * solib-svr4.c: Use C++ exception handling.
8048 * solib-spu.c: Use C++ exception handling.
8049 * solib-frv.c: Use C++ exception handling.
8050 * solib-dsbt.c: Use C++ exception handling.
8051 * selftest-arch.c: Use C++ exception handling.
8052 * s390-tdep.c: Use C++ exception handling.
8053 * rust-lang.c: Use C++ exception handling.
8054 * rust-exp.y: Use C++ exception handling.
8055 * rs6000-tdep.c: Use C++ exception handling.
8056 * rs6000-aix-tdep.c: Use C++ exception handling.
8057 * riscv-tdep.c: Use C++ exception handling.
8058 * remote.c: Use C++ exception handling.
8059 * remote-fileio.c: Use C++ exception handling.
8060 * record-full.c: Use C++ exception handling.
8061 * record-btrace.c: Use C++ exception handling.
8062 * python/python.c: Use C++ exception handling.
8063 * python/py-value.c: Use C++ exception handling.
8064 * python/py-utils.c: Use C++ exception handling.
8065 * python/py-unwind.c: Use C++ exception handling.
8066 * python/py-type.c: Use C++ exception handling.
8067 * python/py-symbol.c: Use C++ exception handling.
8068 * python/py-record.c: Use C++ exception handling.
8069 * python/py-record-btrace.c: Use C++ exception handling.
8070 * python/py-progspace.c: Use C++ exception handling.
8071 * python/py-prettyprint.c: Use C++ exception handling.
8072 * python/py-param.c: Use C++ exception handling.
8073 * python/py-objfile.c: Use C++ exception handling.
8074 * python/py-linetable.c: Use C++ exception handling.
8075 * python/py-lazy-string.c: Use C++ exception handling.
8076 * python/py-infthread.c: Use C++ exception handling.
8077 * python/py-inferior.c: Use C++ exception handling.
8078 * python/py-gdb-readline.c: Use C++ exception handling.
8079 * python/py-framefilter.c: Use C++ exception handling.
8080 * python/py-frame.c: Use C++ exception handling.
8081 * python/py-finishbreakpoint.c: Use C++ exception handling.
8082 * python/py-cmd.c: Use C++ exception handling.
8083 * python/py-breakpoint.c: Use C++ exception handling.
8084 * python/py-arch.c: Use C++ exception handling.
8085 * printcmd.c: Use C++ exception handling.
8086 * ppc-linux-tdep.c: Use C++ exception handling.
8087 * parse.c: Use C++ exception handling.
8088 * p-valprint.c: Use C++ exception handling.
8089 * objc-lang.c: Use C++ exception handling.
8090 * mi/mi-main.c: Use C++ exception handling.
8091 * mi/mi-interp.c: Use C++ exception handling.
8092 * mi/mi-cmd-stack.c: Use C++ exception handling.
8093 * mi/mi-cmd-break.c: Use C++ exception handling.
8094 * main.c: Use C++ exception handling.
8095 * linux-thread-db.c: Use C++ exception handling.
8096 * linux-tdep.c: Use C++ exception handling.
8097 * linux-nat.c: Use C++ exception handling.
8098 * linux-fork.c: Use C++ exception handling.
8099 * linespec.c: Use C++ exception handling.
8100 * language.c: Use C++ exception handling.
8101 * jit.c: Use C++ exception handling.
8102 * infrun.c: Use C++ exception handling.
8103 * infcmd.c: Use C++ exception handling.
8104 * infcall.c: Use C++ exception handling.
8105 * inf-loop.c: Use C++ exception handling.
8106 * i386-tdep.c: Use C++ exception handling.
8107 * i386-linux-tdep.c: Use C++ exception handling.
8108 * guile/scm-value.c: Use C++ exception handling.
8109 * guile/scm-type.c: Use C++ exception handling.
8110 * guile/scm-symtab.c: Use C++ exception handling.
8111 * guile/scm-symbol.c: Use C++ exception handling.
8112 * guile/scm-pretty-print.c: Use C++ exception handling.
8113 * guile/scm-ports.c: Use C++ exception handling.
8114 * guile/scm-param.c: Use C++ exception handling.
8115 * guile/scm-math.c: Use C++ exception handling.
8116 * guile/scm-lazy-string.c: Use C++ exception handling.
8117 * guile/scm-frame.c: Use C++ exception handling.
8118 * guile/scm-disasm.c: Use C++ exception handling.
8119 * guile/scm-cmd.c: Use C++ exception handling.
8120 * guile/scm-breakpoint.c: Use C++ exception handling.
8121 * guile/scm-block.c: Use C++ exception handling.
8122 * guile/guile-internal.h: Use C++ exception handling.
8123 * gnu-v3-abi.c: Use C++ exception handling.
8124 * gdbtypes.c: Use C++ exception handling.
8125 * frame.c: Use C++ exception handling.
8126 * frame-unwind.c: Use C++ exception handling.
8127 * fbsd-tdep.c: Use C++ exception handling.
8128 * f-valprint.c: Use C++ exception handling.
8129 * exec.c: Use C++ exception handling.
8130 * event-top.c: Use C++ exception handling.
8131 * event-loop.c: Use C++ exception handling.
8132 * eval.c: Use C++ exception handling.
8133 * dwarf2read.c: Use C++ exception handling.
8134 * dwarf2loc.c: Use C++ exception handling.
8135 * dwarf2-frame.c: Use C++ exception handling.
8136 * dwarf2-frame-tailcall.c: Use C++ exception handling.
8137 * dwarf-index-write.c: Use C++ exception handling.
8138 * dwarf-index-cache.c: Use C++ exception handling.
8139 * dtrace-probe.c: Use C++ exception handling.
8140 * disasm-selftests.c: Use C++ exception handling.
8141 * darwin-nat.c: Use C++ exception handling.
8142 * cp-valprint.c: Use C++ exception handling.
8143 * cp-support.c: Use C++ exception handling.
8144 * cp-abi.c: Use C++ exception handling.
8145 * corelow.c: Use C++ exception handling.
8146 * completer.c: Use C++ exception handling.
8147 * compile/compile-object-run.c: Use C++ exception handling.
8148 * compile/compile-object-load.c: Use C++ exception handling.
8149 * compile/compile-cplus-symbols.c: Use C++ exception handling.
8150 * compile/compile-c-symbols.c: Use C++ exception handling.
8151 * common/selftest.c: Use C++ exception handling.
8152 * common/new-op.c: Use C++ exception handling.
8153 * cli/cli-script.c: Use C++ exception handling.
8154 * cli/cli-interp.c: Use C++ exception handling.
8155 * cli/cli-cmds.c: Use C++ exception handling.
8156 * c-varobj.c: Use C++ exception handling.
8157 * btrace.c: Use C++ exception handling.
8158 * breakpoint.c: Use C++ exception handling.
8159 * break-catch-throw.c: Use C++ exception handling.
8160 * arch-utils.c: Use C++ exception handling.
8161 * amd64-tdep.c: Use C++ exception handling.
8162 * ada-valprint.c: Use C++ exception handling.
8163 * ada-typeprint.c: Use C++ exception handling.
8164 * ada-lang.c: Use C++ exception handling.
8165 * aarch64-tdep.c: Use C++ exception handling.
8166
3d6e9d23
TT
81672019-04-08 Tom Tromey <tom@tromey.com>
8168
8169 * xml-support.c (gdb_xml_parser::parse): Update.
8170 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8171 * value.c (show_convenience): Update.
8172 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
8173 (test_parse_flags_qcs): Update.
8174 * thread.c (thr_try_catch_cmd): Update.
8175 * target.c (target_translate_tls_address): Update.
8176 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
8177 (info_frame_command_core, frame_apply_command_count): Update.
8178 * rust-exp.y (rust_lex_exception_test): Update.
8179 * riscv-tdep.c (riscv_print_one_register_info): Update.
8180 * remote.c (remote_target::enable_btrace): Update.
8181 * record-btrace.c (record_btrace_enable_warn): Update.
8182 * python/py-utils.c (gdbpy_convert_exception): Update.
8183 * printcmd.c (do_one_display, print_variable_and_value): Update.
8184 * mi/mi-main.c (mi_print_exception): Update.
8185 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
8186 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
8187 * linux-nat.c (linux_nat_target::attach): Update.
8188 * linux-fork.c (class scoped_switch_fork_info): Update.
8189 * infrun.c (displaced_step_prepare): Update.
8190 * infcall.c (call_function_by_hand_dummy): Update.
8191 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
8192 * gnu-v3-abi.c (print_one_vtable): Update.
8193 * frame.c (get_prev_frame_always): Update.
8194 * f-valprint.c (info_common_command_for_block): Update.
8195 * exec.c (try_open_exec_file): Update.
8196 * exceptions.c (print_exception, exception_print)
8197 (exception_fprintf, exception_print_same): Update.
8198 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
8199 * dwarf-index-cache.c (index_cache::store)
8200 (index_cache::lookup_gdb_index): Update.
8201 * darwin-nat.c (maybe_cache_shell): Update.
8202 * cp-valprint.c (cp_print_value_fields): Update.
8203 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
8204 (gcc_cplus_symbol_address): Update.
8205 * compile/compile-c-symbols.c (gcc_convert_symbol)
8206 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
8207 * common/selftest.c: Update.
8208 * common/common-exceptions.h (struct gdb_exception) <message>: Now
8209 a std::string.
8210 (exception_try_scope_entry, exception_try_scope_exit): Don't
8211 declare.
8212 (struct exception_try_scope): Remove.
8213 (TRY): Don't use exception_try_scope.
8214 (struct gdb_exception): Add constructor, operator=.
8215 <what>: New method.
8216 (struct gdb_exception_RETURN_MASK_ALL)
8217 (struct gdb_exception_RETURN_MASK_ERROR)
8218 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
8219 (struct gdb_quit_bad_alloc): Update.
8220 * common/common-exceptions.c (exception_none): Change
8221 initializer.
8222 (struct catcher) <state, exception>: Initialize inline.
8223 <prev>: Remove member.
8224 (current_catcher): Remove.
8225 (catchers): New global.
8226 (exceptions_state_mc_init): Simplify.
8227 (catcher_pop): Remove.
8228 (exceptions_state_mc, exceptions_state_mc_catch): Update.
8229 (try_scope_depth, exception_try_scope_entry)
8230 (exception_try_scope_exit): Remove.
8231 (throw_exception_sjlj): Update.
8232 (exception_messages, exception_messages_size): Remove.
8233 (throw_it): Simplify.
8234 (gdb_exception_sliced_copy): Remove.
8235 (throw_exception_cxx): Update.
8236 * cli/cli-script.c (script_from_file): Update.
8237 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
8238 Update.
8239 * ada-valprint.c (ada_val_print): Update.
8240 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
8241 (create_excep_cond_exprs): Update.
8242
c5c10118
TT
82432019-04-08 Tom Tromey <tom@tromey.com>
8244
8245 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
8246 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
8247 (TRY, CATCH, END_CATCH): Remove some definitions.
8248 * common/common-exceptions.c: Don't use GDB_XCPT.
8249 (catcher_list_size): Remove.
8250 (throw_exception, throw_it): Simplify.
8251
4de283e4
TT
82522019-04-05 Tom Tromey <tom@tromey.com>
8253
8254 Revert the header-sorting patch.
8255 * ft32-tdep.c: Revert.
8256 * frv-tdep.c: Revert.
8257 * frv-linux-tdep.c: Revert.
8258 * frame.c: Revert.
8259 * frame-unwind.c: Revert.
8260 * frame-base.c: Revert.
8261 * fork-child.c: Revert.
8262 * findvar.c: Revert.
8263 * findcmd.c: Revert.
8264 * filesystem.c: Revert.
8265 * filename-seen-cache.h: Revert.
8266 * filename-seen-cache.c: Revert.
8267 * fbsd-tdep.c: Revert.
8268 * fbsd-nat.h: Revert.
8269 * fbsd-nat.c: Revert.
8270 * f-valprint.c: Revert.
8271 * f-typeprint.c: Revert.
8272 * f-lang.c: Revert.
8273 * extension.h: Revert.
8274 * extension.c: Revert.
8275 * extension-priv.h: Revert.
8276 * expprint.c: Revert.
8277 * exec.h: Revert.
8278 * exec.c: Revert.
8279 * exceptions.c: Revert.
8280 * event-top.c: Revert.
8281 * event-loop.c: Revert.
8282 * eval.c: Revert.
8283 * elfread.c: Revert.
8284 * dwarf2read.h: Revert.
8285 * dwarf2read.c: Revert.
8286 * dwarf2loc.c: Revert.
8287 * dwarf2expr.h: Revert.
8288 * dwarf2expr.c: Revert.
8289 * dwarf2-frame.c: Revert.
8290 * dwarf2-frame-tailcall.c: Revert.
8291 * dwarf-index-write.h: Revert.
8292 * dwarf-index-write.c: Revert.
8293 * dwarf-index-common.c: Revert.
8294 * dwarf-index-cache.h: Revert.
8295 * dwarf-index-cache.c: Revert.
8296 * dummy-frame.c: Revert.
8297 * dtrace-probe.c: Revert.
8298 * disasm.h: Revert.
8299 * disasm.c: Revert.
8300 * disasm-selftests.c: Revert.
8301 * dictionary.c: Revert.
8302 * dicos-tdep.c: Revert.
8303 * demangle.c: Revert.
8304 * dcache.h: Revert.
8305 * dcache.c: Revert.
8306 * darwin-nat.h: Revert.
8307 * darwin-nat.c: Revert.
8308 * darwin-nat-info.c: Revert.
8309 * d-valprint.c: Revert.
8310 * d-namespace.c: Revert.
8311 * d-lang.c: Revert.
8312 * ctf.c: Revert.
8313 * csky-tdep.c: Revert.
8314 * csky-linux-tdep.c: Revert.
8315 * cris-tdep.c: Revert.
8316 * cris-linux-tdep.c: Revert.
8317 * cp-valprint.c: Revert.
8318 * cp-support.c: Revert.
8319 * cp-namespace.c: Revert.
8320 * cp-abi.c: Revert.
8321 * corelow.c: Revert.
8322 * corefile.c: Revert.
8323 * continuations.c: Revert.
8324 * completer.h: Revert.
8325 * completer.c: Revert.
8326 * complaints.c: Revert.
8327 * coffread.c: Revert.
8328 * coff-pe-read.c: Revert.
8329 * cli-out.h: Revert.
8330 * cli-out.c: Revert.
8331 * charset.c: Revert.
8332 * c-varobj.c: Revert.
8333 * c-valprint.c: Revert.
8334 * c-typeprint.c: Revert.
8335 * c-lang.c: Revert.
8336 * buildsym.c: Revert.
8337 * buildsym-legacy.c: Revert.
8338 * build-id.h: Revert.
8339 * build-id.c: Revert.
8340 * btrace.c: Revert.
8341 * bsd-uthread.c: Revert.
8342 * breakpoint.h: Revert.
8343 * breakpoint.c: Revert.
8344 * break-catch-throw.c: Revert.
8345 * break-catch-syscall.c: Revert.
8346 * break-catch-sig.c: Revert.
8347 * blockframe.c: Revert.
8348 * block.c: Revert.
8349 * bfin-tdep.c: Revert.
8350 * bfin-linux-tdep.c: Revert.
8351 * bfd-target.c: Revert.
8352 * bcache.c: Revert.
8353 * ax-general.c: Revert.
8354 * ax-gdb.h: Revert.
8355 * ax-gdb.c: Revert.
8356 * avr-tdep.c: Revert.
8357 * auxv.c: Revert.
8358 * auto-load.c: Revert.
8359 * arm-wince-tdep.c: Revert.
8360 * arm-tdep.c: Revert.
8361 * arm-symbian-tdep.c: Revert.
8362 * arm-pikeos-tdep.c: Revert.
8363 * arm-obsd-tdep.c: Revert.
8364 * arm-nbsd-tdep.c: Revert.
8365 * arm-nbsd-nat.c: Revert.
8366 * arm-linux-tdep.c: Revert.
8367 * arm-linux-nat.c: Revert.
8368 * arm-fbsd-tdep.c: Revert.
8369 * arm-fbsd-nat.c: Revert.
8370 * arm-bsd-tdep.c: Revert.
8371 * arch-utils.c: Revert.
8372 * arc-tdep.c: Revert.
8373 * arc-newlib-tdep.c: Revert.
8374 * annotate.h: Revert.
8375 * annotate.c: Revert.
8376 * amd64-windows-tdep.c: Revert.
8377 * amd64-windows-nat.c: Revert.
8378 * amd64-tdep.c: Revert.
8379 * amd64-sol2-tdep.c: Revert.
8380 * amd64-obsd-tdep.c: Revert.
8381 * amd64-obsd-nat.c: Revert.
8382 * amd64-nbsd-tdep.c: Revert.
8383 * amd64-nbsd-nat.c: Revert.
8384 * amd64-nat.c: Revert.
8385 * amd64-linux-tdep.c: Revert.
8386 * amd64-linux-nat.c: Revert.
8387 * amd64-fbsd-tdep.c: Revert.
8388 * amd64-fbsd-nat.c: Revert.
8389 * amd64-dicos-tdep.c: Revert.
8390 * amd64-darwin-tdep.c: Revert.
8391 * amd64-bsd-nat.c: Revert.
8392 * alpha-tdep.c: Revert.
8393 * alpha-obsd-tdep.c: Revert.
8394 * alpha-nbsd-tdep.c: Revert.
8395 * alpha-mdebug-tdep.c: Revert.
8396 * alpha-linux-tdep.c: Revert.
8397 * alpha-linux-nat.c: Revert.
8398 * alpha-bsd-tdep.c: Revert.
8399 * alpha-bsd-nat.c: Revert.
8400 * aix-thread.c: Revert.
8401 * agent.c: Revert.
8402 * addrmap.c: Revert.
8403 * ada-varobj.c: Revert.
8404 * ada-valprint.c: Revert.
8405 * ada-typeprint.c: Revert.
8406 * ada-tasks.c: Revert.
8407 * ada-lang.c: Revert.
8408 * aarch64-tdep.c: Revert.
8409 * aarch64-ravenscar-thread.c: Revert.
8410 * aarch64-newlib-tdep.c: Revert.
8411 * aarch64-linux-tdep.c: Revert.
8412 * aarch64-linux-nat.c: Revert.
8413 * aarch64-fbsd-tdep.c: Revert.
8414 * aarch64-fbsd-nat.c: Revert.
8415 * aarch32-linux-nat.c: Revert.
8416
d55e5aa6
TT
84172019-04-05 Tom Tromey <tom@tromey.com>
8418
8419 * ft32-tdep.c: Sort headers.
8420 * frv-tdep.c: Sort headers.
8421 * frv-linux-tdep.c: Sort headers.
8422 * frame.c: Sort headers.
8423 * frame-unwind.c: Sort headers.
8424 * frame-base.c: Sort headers.
8425 * fork-child.c: Sort headers.
8426 * findvar.c: Sort headers.
8427 * findcmd.c: Sort headers.
8428 * filesystem.c: Sort headers.
8429 * filename-seen-cache.h: Sort headers.
8430 * filename-seen-cache.c: Sort headers.
8431 * fbsd-tdep.c: Sort headers.
8432 * fbsd-nat.h: Sort headers.
8433 * fbsd-nat.c: Sort headers.
8434 * f-valprint.c: Sort headers.
8435 * f-typeprint.c: Sort headers.
8436 * f-lang.c: Sort headers.
8437 * extension.h: Sort headers.
8438 * extension.c: Sort headers.
8439 * extension-priv.h: Sort headers.
8440 * expprint.c: Sort headers.
8441 * exec.h: Sort headers.
8442 * exec.c: Sort headers.
8443 * exceptions.c: Sort headers.
8444 * event-top.c: Sort headers.
8445 * event-loop.c: Sort headers.
8446 * eval.c: Sort headers.
8447 * elfread.c: Sort headers.
8448 * dwarf2read.h: Sort headers.
8449 * dwarf2read.c: Sort headers.
8450 * dwarf2loc.c: Sort headers.
8451 * dwarf2expr.h: Sort headers.
8452 * dwarf2expr.c: Sort headers.
8453 * dwarf2-frame.c: Sort headers.
8454 * dwarf2-frame-tailcall.c: Sort headers.
8455 * dwarf-index-write.h: Sort headers.
8456 * dwarf-index-write.c: Sort headers.
8457 * dwarf-index-common.c: Sort headers.
8458 * dwarf-index-cache.h: Sort headers.
8459 * dwarf-index-cache.c: Sort headers.
8460 * dummy-frame.c: Sort headers.
8461 * dtrace-probe.c: Sort headers.
8462 * disasm.h: Sort headers.
8463 * disasm.c: Sort headers.
8464 * disasm-selftests.c: Sort headers.
8465 * dictionary.c: Sort headers.
8466 * dicos-tdep.c: Sort headers.
8467 * demangle.c: Sort headers.
8468 * dcache.h: Sort headers.
8469 * dcache.c: Sort headers.
8470 * darwin-nat.h: Sort headers.
8471 * darwin-nat.c: Sort headers.
8472 * darwin-nat-info.c: Sort headers.
8473 * d-valprint.c: Sort headers.
8474 * d-namespace.c: Sort headers.
8475 * d-lang.c: Sort headers.
8476 * ctf.c: Sort headers.
8477 * csky-tdep.c: Sort headers.
8478 * csky-linux-tdep.c: Sort headers.
8479 * cris-tdep.c: Sort headers.
8480 * cris-linux-tdep.c: Sort headers.
8481 * cp-valprint.c: Sort headers.
8482 * cp-support.c: Sort headers.
8483 * cp-namespace.c: Sort headers.
8484 * cp-abi.c: Sort headers.
8485 * corelow.c: Sort headers.
8486 * corefile.c: Sort headers.
8487 * continuations.c: Sort headers.
8488 * completer.h: Sort headers.
8489 * completer.c: Sort headers.
8490 * complaints.c: Sort headers.
8491 * coffread.c: Sort headers.
8492 * coff-pe-read.c: Sort headers.
8493 * cli-out.h: Sort headers.
8494 * cli-out.c: Sort headers.
8495 * charset.c: Sort headers.
8496 * c-varobj.c: Sort headers.
8497 * c-valprint.c: Sort headers.
8498 * c-typeprint.c: Sort headers.
8499 * c-lang.c: Sort headers.
8500 * buildsym.c: Sort headers.
8501 * buildsym-legacy.c: Sort headers.
8502 * build-id.h: Sort headers.
8503 * build-id.c: Sort headers.
8504 * btrace.c: Sort headers.
8505 * bsd-uthread.c: Sort headers.
8506 * breakpoint.h: Sort headers.
8507 * breakpoint.c: Sort headers.
8508 * break-catch-throw.c: Sort headers.
8509 * break-catch-syscall.c: Sort headers.
8510 * break-catch-sig.c: Sort headers.
8511 * blockframe.c: Sort headers.
8512 * block.c: Sort headers.
8513 * bfin-tdep.c: Sort headers.
8514 * bfin-linux-tdep.c: Sort headers.
8515 * bfd-target.c: Sort headers.
8516 * bcache.c: Sort headers.
8517 * ax-general.c: Sort headers.
8518 * ax-gdb.h: Sort headers.
8519 * ax-gdb.c: Sort headers.
8520 * avr-tdep.c: Sort headers.
8521 * auxv.c: Sort headers.
8522 * auto-load.c: Sort headers.
8523 * arm-wince-tdep.c: Sort headers.
8524 * arm-tdep.c: Sort headers.
8525 * arm-symbian-tdep.c: Sort headers.
8526 * arm-pikeos-tdep.c: Sort headers.
8527 * arm-obsd-tdep.c: Sort headers.
8528 * arm-nbsd-tdep.c: Sort headers.
8529 * arm-nbsd-nat.c: Sort headers.
8530 * arm-linux-tdep.c: Sort headers.
8531 * arm-linux-nat.c: Sort headers.
8532 * arm-fbsd-tdep.c: Sort headers.
8533 * arm-fbsd-nat.c: Sort headers.
8534 * arm-bsd-tdep.c: Sort headers.
8535 * arch-utils.c: Sort headers.
8536 * arc-tdep.c: Sort headers.
8537 * arc-newlib-tdep.c: Sort headers.
8538 * annotate.h: Sort headers.
8539 * annotate.c: Sort headers.
8540 * amd64-windows-tdep.c: Sort headers.
8541 * amd64-windows-nat.c: Sort headers.
8542 * amd64-tdep.c: Sort headers.
8543 * amd64-sol2-tdep.c: Sort headers.
8544 * amd64-obsd-tdep.c: Sort headers.
8545 * amd64-obsd-nat.c: Sort headers.
8546 * amd64-nbsd-tdep.c: Sort headers.
8547 * amd64-nbsd-nat.c: Sort headers.
8548 * amd64-nat.c: Sort headers.
8549 * amd64-linux-tdep.c: Sort headers.
8550 * amd64-linux-nat.c: Sort headers.
8551 * amd64-fbsd-tdep.c: Sort headers.
8552 * amd64-fbsd-nat.c: Sort headers.
8553 * amd64-dicos-tdep.c: Sort headers.
8554 * amd64-darwin-tdep.c: Sort headers.
8555 * amd64-bsd-nat.c: Sort headers.
8556 * alpha-tdep.c: Sort headers.
8557 * alpha-obsd-tdep.c: Sort headers.
8558 * alpha-nbsd-tdep.c: Sort headers.
8559 * alpha-mdebug-tdep.c: Sort headers.
8560 * alpha-linux-tdep.c: Sort headers.
8561 * alpha-linux-nat.c: Sort headers.
8562 * alpha-bsd-tdep.c: Sort headers.
8563 * alpha-bsd-nat.c: Sort headers.
8564 * aix-thread.c: Sort headers.
8565 * agent.c: Sort headers.
8566 * addrmap.c: Sort headers.
8567 * ada-varobj.c: Sort headers.
8568 * ada-valprint.c: Sort headers.
8569 * ada-typeprint.c: Sort headers.
8570 * ada-tasks.c: Sort headers.
8571 * ada-lang.c: Sort headers.
8572 * aarch64-tdep.c: Sort headers.
8573 * aarch64-ravenscar-thread.c: Sort headers.
8574 * aarch64-newlib-tdep.c: Sort headers.
8575 * aarch64-linux-tdep.c: Sort headers.
8576 * aarch64-linux-nat.c: Sort headers.
8577 * aarch64-fbsd-tdep.c: Sort headers.
8578 * aarch64-fbsd-nat.c: Sort headers.
8579 * aarch32-linux-nat.c: Sort headers.
8580
699bd4cf
TT
85812019-04-04 Tom Tromey <tom@tromey.com>
8582
8583 * varobj.c (varobj_create): Update.
8584 * rust-exp.y (struct rust_parser) <update_innermost_block,
8585 lookup_symbol>: New methods.
8586 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
8587 Rename.
8588 (rust_parser::rust_lookup_type)
8589 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8590 * printcmd.c (display_command, do_one_display): Update.
8591 * parser-defs.h (struct parser_state) <parser_state>: Add
8592 "tracker" parameter.
8593 (block_tracker): New member.
8594 (class innermost_block_tracker) <innermost_block_tracker>: Add
8595 "types" parameter.
8596 <reset>: Remove method.
8597 (innermost_block): Don't declare.
8598 (null_post_parser): Update.
8599 * parse.c (innermost_block): Remove global.
8600 (write_dollar_variable): Update.
8601 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
8602 Remove "tracker_types" parameter.
8603 (parse_expression): Add "tracker" parameter.
8604 (parse_expression_for_completion): Update.
8605 (null_post_parser): Add "tracker" parameter.
8606 * p-exp.y: Update rules.
8607 * m2-exp.y: Update rules.
8608 * language.h (struct language_defn) <la_post_parser>: Add
8609 "tracker" parameter.
8610 * go-exp.y: Update rules.
8611 * f-exp.y: Update rules.
8612 * expression.h (parse_expression, parse_exp_1): Add "tracker"
8613 parameter.
8614 * d-exp.y: Update rules.
8615 * c-exp.y: Update rules.
8616 * breakpoint.c (set_breakpoint_condition): Create an
8617 innermost_block_tracker.
8618 (watch_command_1): Likewise.
8619 * ada-lang.c (resolve): Add "tracker" parameter.
8620 (resolve_subexp): Likewise.
8621 * ada-exp.y (write_var_from_sym): Update.
8622
dac43e32
TT
86232019-04-04 Tom Tromey <tom@tromey.com>
8624
8625 * type-stack.h: New file.
8626 * type-stack.c: New file.
8627 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
8628 type-stack.h.
8629 (insert_into_type_stack, insert_type, push_type, push_type_int)
8630 (insert_type_address_space, pop_type, pop_type_int)
8631 (pop_typelist, pop_type_stack, append_type_stack)
8632 (push_type_stack, get_type_stack, push_typelist)
8633 (follow_type_instance_flags, follow_types): Don't declare.
8634 * parse.c (type_stack): Remove global.
8635 (parse_exp_in_context): Update.
8636 (insert_into_type_stack, insert_type, push_type, push_type_int)
8637 (insert_type_address_space, pop_type, pop_type_int)
8638 (pop_typelist, pop_type_stack, append_type_stack)
8639 (push_type_stack, get_type_stack, push_typelist)
8640 (follow_type_instance_flags, follow_types): Remove (moved to
8641 type-stack.c).
8642 * f-exp.y (type_stack): New global.
8643 Update rules.
8644 (push_kind_type, f_parse): Update.
8645 * d-exp.y (type_stack): New global.
8646 Update rules.
8647 (d_parse): Update.
8648 * c-exp.y (struct c_parse_state) <type_stack>: New member.
8649 Update rules.
8650 * Makefile.in (COMMON_SFILES): Add type-stack.c.
8651 (HFILES_NO_SRCDIR): Add type-stack.h.
8652
2a612529
TT
86532019-04-04 Tom Tromey <tom@tromey.com>
8654
8655 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
8656 (rust_parser::convert_ast_to_expression, rust_parse)
8657 (rust_lex_test_completion, rust_lex_tests): Update.
8658 * parser-defs.h (struct expr_completion_state): New.
8659 (struct parser_state) <parser_state>: Add completion parameter.
8660 <mark_struct_expression, mark_completion_tag>: New methods.
8661 <parse_completion, m_completion_state>: New members.
8662 (prefixify_expression, null_post_parser): Update.
8663 (mark_struct_expression, mark_completion_tag): Don't declare.
8664 * parse.c (parse_completion, expout_last_struct)
8665 (expout_tag_completion_type, expout_completion_name): Remove
8666 globals.
8667 (parser_state::mark_struct_expression)
8668 (parser_state::mark_completion_tag): Now methods.
8669 (prefixify_expression): Add last_struct parameter.
8670 (prefixify_subexp): Likewise.
8671 (parse_exp_1): Update.
8672 (parse_exp_in_context): Add cstate parameter. Update.
8673 (parse_expression_for_completion): Create an
8674 expr_completion_state.
8675 (null_post_parser): Add "completion" parameter.
8676 * p-exp.y: Update rules.
8677 (yylex): Update.
8678 * language.h (struct language_defn) <la_post_parser>: Add
8679 "completing" parameter.
8680 * go-exp.y: Update rules.
8681 (lex_one_token): Update.
8682 * expression.h (parse_completion): Don't declare.
8683 * d-exp.y: Update rules.
8684 (lex_one_token): Update rules.
8685 * c-exp.y: Update rules.
8686 (lex_one_token): Update.
8687 * ada-lang.c (resolve): Add "parse_completion" parameter.
8688 (resolve_subexp): Likewise.
8689 (ada_resolve_function): Likewise.
8690
43476f0b
TT
86912019-04-04 Tom Tromey <tom@tromey.com>
8692
8693 * parser-defs.h (struct parser_state) <start_arglist,
8694 end_arglist>: New methods.
8695 <arglist_len, m_funcall_chain>: New members.
8696 (arglist_len, start_arglist, end_arglist): Don't declare.
8697 * parse.c (arglist_len, funcall_chain): Remove global.
8698 (start_arglist, end_arglist): Remove functions.
8699 (parse_exp_in_context): Update.
8700 * p-exp.y: Update rules.
8701 * m2-exp.y: Update rules.
8702 * go-exp.y: Update rules.
8703 * f-exp.y: Update rules.
8704 * d-exp.y: Update rules.
8705 * c-exp.y: Update rules.
8706
5776fca3
TT
87072019-04-04 Tom Tromey <tom@tromey.com>
8708
8709 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
8710 lex_operator, push_back>: New methods.
8711 Update all rules.
8712 (rust_parser::lex_hex, lex_escape): Rename and update.
8713 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
8714 (rust_parser::lex_operator): Rename and update.
8715 (rust_parser::lex_number, rustyylex, rustyyerror)
8716 (rust_lex_test_init, rust_lex_test_sequence)
8717 (rust_lex_test_push_back, rust_lex_tests): Update.
8718 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
8719 parameter.
8720 <lexptr, prev_lexptr>: New members.
8721 (lexptr, prev_lexptr): Don't declare.
8722 * parse.c (lexptr, prev_lexptr): Remove globals.
8723 (parse_exp_in_context): Update.
8724 * p-exp.y (yylex, yyerror): Update.
8725 * m2-exp.y (parse_number, yylex, yyerror): Update.
8726 * go-exp.y (lex_one_token, yyerror): Update.
8727 * f-exp.y (match_string_literal, yylex, yyerror): Update.
8728 * d-exp.y (lex_one_token, yyerror): Update.
8729 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
8730 (lex_one_token, yyerror): Update.
8731 * ada-lex.l (YY_INPUT): Update.
8732 (rewind_to_char): Update.
8733 * ada-exp.y (yyerror): Update.
8734
8621b685
TT
87352019-04-04 Tom Tromey <tom@tromey.com>
8736
8737 * rust-exp.y (rustyylex, rust_lex_tests): Update.
8738 * parser-defs.h (struct parser_state) <parser_state>: Add new
8739 parameter.
8740 <comma_terminates>: New member.
8741 (comma_terminates): Don't declare global.
8742 * parse.c (comma_terminates): Remove global.
8743 (parse_exp_in_context): Update.
8744 * p-exp.y (yylex): Update.
8745 * m2-exp.y (yylex): Update.
8746 * go-exp.y (lex_one_token): Update.
8747 * f-exp.y (yylex): Update.
8748 * d-exp.y (lex_one_token): Update.
8749 * c-exp.y (lex_one_token): Update.
8750 * ada-lex.l: Update.
8751
28aaf3fd
TT
87522019-04-04 Tom Tromey <tom@tromey.com>
8753
8754 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
8755 (rustyylex, rust_lex_test_init, rust_lex_test_one)
8756 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
8757 * parser-defs.h (paren_depth): Don't declare.
8758 * parse.c (paren_depth): Remove global.
8759 (parse_exp_in_context): Update.
8760 * p-exp.y (paren_depth): New global.
8761 (pascal_parse): Initialize it.
8762 * m2-exp.y (paren_depth): New global.
8763 (m2_parse): Initialize it.
8764 * go-exp.y (paren_depth): New global.
8765 (go_parse): Initialize it.
8766 * f-exp.y (paren_depth): New global.
8767 (f_parse): Initialize it.
8768 * d-exp.y (paren_depth): New global.
8769 (d_parse): Initialize it.
8770 * c-exp.y (paren_depth): New global.
8771 (c_parse): Initialize it.
8772 * ada-lex.l (paren_depth): New global.
8773 (lexer_init): Initialize it.
8774
1e58a4a4
TT
87752019-04-04 Tom Tromey <tom@tromey.com>
8776
8777 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
8778 (rust_parser::convert_ast_to_type)
8779 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8780 * parser-defs.h (struct parser_state) <parser_state>: Add
8781 parameters. Initialize new members.
8782 <expression_context_block, expression_context_pc>: New members.
8783 * parse.c (expression_context_block, expression_context_pc):
8784 Remove globals.
8785 (parse_exp_in_context): Update.
8786 * p-exp.y: Update all rules.
8787 (yylex): Update.
8788 * m2-exp.y: Update all rules.
8789 (yylex): Update.
8790 * go-exp.y (yylex): Update.
8791 * f-exp.y (yylex): Update.
8792 * d-exp.y: Update all rules.
8793 (yylex): Update.
8794 * c-exp.y: Update all rules.
8795 (lex_one_token, classify_name, yylex, c_parse): Update.
8796 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
8797
37eedb39
TT
87982019-04-04 Tom Tromey <tom@tromey.com>
8799
8800 * gdbarch.h, gdbarch.c: Rebuild.
8801 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
8802 * stap-probe.h:
8803 (struct stap_parse_info): Replace "parser_state" with
8804 "expr_builder".
8805 * parser-defs.h (struct expr_builder): Rename from "parser_state".
8806 (parser_state): New class.
8807 * parse.c (expr_builder): Rename.
8808 (expr_builder::release): Rename.
8809 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
8810 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
8811 (write_exp_elt_longcst, write_exp_elt_floatcst)
8812 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
8813 (write_exp_string_vector, write_exp_bitstring)
8814 (write_exp_msymbol, mark_struct_expression)
8815 (write_dollar_variable)
8816 (insert_type_address_space, increase_expout_size): Replace
8817 "parser_state" with "expr_builder".
8818 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
8819 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
8820 "parser_state" with "expr_builder".
8821
73923d7e
TT
88222019-04-04 Tom Tromey <tom@tromey.com>
8823
8824 * rust-exp.y: Replace "parse_language" with method call.
8825 * p-exp.y:
8826 (yylex): Replace "parse_language" with method call.
8827 * m2-exp.y:
8828 (yylex): Replace "parse_language" with method call.
8829 * go-exp.y (classify_name): Replace "parse_language" with method
8830 call.
8831 * f-exp.y (yylex): Replace "parse_language" with method call.
8832 * d-exp.y (lex_one_token): Replace "parse_language" with method
8833 call.
8834 * c-exp.y:
8835 (lex_one_token, classify_name, yylex): Replace "parse_language"
8836 with method call.
8837 * ada-exp.y (find_primitive_type, type_char)
8838 (type_system_address): Replace "parse_language" with method call.
8839
fa9f5be6
TT
88402019-04-04 Tom Tromey <tom@tromey.com>
8841
8842 * rust-exp.y: Replace "parse_gdbarch" with method call.
8843 * parse.c (write_dollar_variable, insert_type_address_space):
8844 Replace "parse_gdbarch" with method call.
8845 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
8846 call.
8847 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
8848 call.
8849 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
8850 "parse_gdbarch" with method call.
8851 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
8852 with method call.
8853 * f-exp.y (parse_type, parse_f_type, yylex): Replace
8854 "parse_gdbarch" with method call.
8855 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
8856 "parse_gdbarch" with method call.
8857 * c-exp.y (parse_type, parse_number, classify_name): Replace
8858 "parse_gdbarch" with method call.
8859 * ada-lex.l: Replace "parse_gdbarch" with method call.
8860 * ada-exp.y (parse_type, find_primitive_type, type_char)
8861 (type_system_address): Replace "parse_gdbarch" with method call.
8862
1201a264
TT
88632019-04-04 Tom Tromey <tom@tromey.com>
8864
8865 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
8866 * stap-probe.c (stap_parse_argument): Update.
8867 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
8868 initial_size parameter.
8869 * rust-exp.y (rust_lex_tests): Update.
8870 * parse.c (parser_state): Update.
8871 (parse_exp_in_context): Update.
8872 * parser-defs.h (struct parser_state) <parser_state>: Remove
8873 "initial_size" parameter.
8874
e3980ce2
TT
88752019-04-04 Tom Tromey <tom@tromey.com>
8876
8877 * parser-defs.h (increase_expout_size): Don't declare.
8878 * parse.c (increase_expout_size): Now static.
8879
e9f8e3f1
TS
88802019-04-04 Thomas Schwinge <thomas@codesourcery.com>
8881
8882 * gnu-nat.c (gnu_nat_target::wait): Fix
8883 target_waitstatus_to_string call.
8884
d7df6549
AB
88852019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8886
8887 * eval.c (evaluate_subexp_standard): Handle internal functions
8888 during Fortran function call handling.
8889
8bdc1658
AB
88902019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8891
8892 * NEWS: Mention new internal functions.
8893 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
8894 (read_base_type): Use dwarf2_init_complex_target_type.
8895 * value.c (creal_internal_fn): New function.
8896 (cimag_internal_fn): New function.
8897 (_initialize_values): Register new internal functions.
8898
c29705b7
PW
88992019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8900
8901 * infrun.c (stop_all_threads): If debug_infrun, always
8902 trace the wait status after wait_one, using
8903 target_waitstatus_to_string and target_pid_to_str.
8904 (handle_inferior_event): Replace various trace of
8905 wait status kind by a single trace.
8906 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
8907 wait status kind image by target_waitstatus_to_string.
8908 * target/waitstatus.c (target_waitstatus_to_string): Fix
8909 obsolete comment.
8910
05caa1d2
TT
89112019-04-01 Tom Tromey <tromey@adacore.com>
8912
8913 PR symtab/23331:
8914 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
8915
9d1447e0
SDJ
89162019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
8917 Pedro Alves <palves@redhat.com>
8918
8919 * top.c (quit_force): Call 'finalize_values'.
8920 * value.c (finalize_values): New function.
8921 * value.h (finalize_values): Declare.
8922
7734102d
EZ
89232019-03-30 Eli Zaretskii <eliz@gnu.org>
8924
8925 * NEWS: Announce $_gdb_major and $_gdb_minor.
8926
8927 * top.c (init_gdb_version_vars): New function.
8928 (gdb_init): Call init_gdb_version_vars.
8929
188e1fa9
TT
89302019-03-29 Tom Tromey <tromey@adacore.com>
8931
8932 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
8933 help text. Remove dead code.
8934
2880242d
KS
89352019-03-29 Keith Seitz <keiths@redhat.com>
8936
8937 From Siddhesh Poyarekar:
8938 * f-lang.h (f77_get_upperbound): Return LONGEST.
8939 (f77_get_lowerbound): Likewise.
8940 * f-typeprint.c (f_type_print_varspec_suffix): Expand
8941 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
8942 print them.
8943 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
8944 plongest to format print it.
8945 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
8946 (f77_get_upperbound): Likewise.
8947 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
8948 LOWER_BOUND to LONGEST.
8949 (f77_create_arrayprint_offset_tbl): Likewise.
8950
cc1defb1
KS
89512019-03-29 Keith Seitz <keiths@redhat.com>
8952
8953 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
8954 %s/pulongest for TYPE_LENGTH instead of %d in format
8955 strings.
8956 * ada-typerint.c (ada_print_type): Likewise.
8957 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
8958 * compile/compile-c-support.c (generate_register_struct): Likewise.
8959 * gdbtypes.c (recursive_dump_type): Likewise.
8960 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
8961 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
8962 instead of %d in format strings.
8963 * riscv-tdep.c (riscv_type_alignment): Cast second argument
8964 to std::min to ULONGEST.
8965 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
8966 instead of %d in format strings.
8967 * tracepoint.c (info_scope_command): Likewise.
8968 * typeprint.c (print_offset_data::update)
8969 (print_offset_data::finish): Likewise.
8970 * xtensa-tdep.c (xtensa_store_return_value)
8971 (xtensa_push_dummy_call): Likewise.
8972
e432ccf1
JT
89732019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
8974
8975 * windows-nat.c (display_selector): Fixed format specifications
8976 for 64-bit Cygwin.
8977
65d2b333
PW
89782019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8979
8980 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
8981
f489207e
SL
89822019-03-28 Sandra Loosemore <sandra@codesourcery.com>
8983
8984 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
8985 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
8986 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
8987 (nios2_linux_init_abi): Install it.
8988
bffa1015
AH
89892019-03-28 Alan Hayward <alan.hayward@arm.com>
8990
8991 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
8992
fc96163a
AH
89932019-03-28 Alan Hayward <alan.hayward@arm.com>
8994
8995 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
8996
20dc7e9b
PW
89972019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8998 Tom Tromey <tromey@adacore.com>
8999
9000 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
9001
7f5331a8
JB
90022019-03-26 Joel Brobecker <brobecker@adacore.com>
9003
9004 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
9005 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
9006 method to compute the bounds of range types. Also print "[evaluated]"
9007 if the bounds' values come from a dynamic evaluation.
9008
18c77628
AB
90092019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
9010
9011 * cp-valprint.c (cp_print_value_fields): Don't print trailing
9012 whitespace when pretty printing is on.
9013
53c973f2
AH
90142019-03-26 Alan Hayward <alan.hayward@arm.com>
9015
e79be6e5 9016 * ppc-linux-nat.c: Add include.
53c973f2 9017
d851aa71
AH
90182019-03-26 Alan Hayward <alan.hayward@arm.com>
9019
e79be6e5 9020 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 9021
2fe7bab7
AH
90222019-03-26 Alan Hayward <alan.hayward@arm.com>
9023
e79be6e5 9024 * arm-linux-nat.c: Add include.
2fe7bab7 9025
068ef30e
SM
90262019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
9027
9028 * source-cache.c (source_cache::get_source_lines): Re-read
9029 fullname after calling open_source_file.
9030
81a24d04
JB
90312019-03-25 John Baldwin <jhb@FreeBSD.org>
9032
9033 * NEWS: Mention TLS support for FreeBSD.
9034
79e7ae11
TT
90352019-03-25 Tom Tromey <tromey@adacore.com>
9036
9037 * minsyms.c (BUNCH_SIZE): Update comment.
9038 (~minimal_symbol_reader): Remove old comment.
9039 (compact_minimal_symbols): Update comment.
9040 (minimal_symbol_reader::install): Remove old comment. Update
9041 other comments.
9042
d45963c2
AH
90432019-03-25 Alan Hayward <alan.hayward@arm.com>
9044
9045 * s390-linux-nat.c: Add include.
9046
0f83012e
AH
90472019-03-25 Alan Hayward <alan.hayward@arm.com>
9048
9049 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
9050 Call linux_get_hwcap.
9051 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
9052 Likewise.
9053 (aarch64_linux_get_hwcap): Remove function.
9054 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
9055 declaration.
9056 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
9057 linux_get_hwcap.
9058 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
9059 * linux-tdep.c (linux_get_hwcap): Add function.
9060 (linux_get_hwcap2): Likewise.
9061 * linux-tdep.h (linux_get_hwcap): Add declaration.
9062 (linux_get_hwcap2): Likewise.
9063 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
9064 (ppc_linux_get_hwcap2): Likewise.
9065 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
9066 linux_get_hwcap.
9067 (ppc_linux_nat_target::insert_watchpoint): Likewise.
9068 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
9069 (ppc_linux_nat_target::read_description): Likewise.
9070 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
9071 * s390-linux-nat.c: Likewise.
9072 * s390-linux-tdep.c (s390_core_read_description): Likewise.
9073
6640a367
TT
90742019-03-24 Tom Tromey <tom@tromey.com>
9075
9076 * ada-lang.c (standard_lookup): Simplify initialization.
9077 (ada_lookup_symbol_nonlocal): Simplify return.
9078 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
9079 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
9080 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
9081 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
9082 initialization.
9083 * solib.c (solib_global_lookup): Simplify.
9084 * symtab.c (null_block_symbol): Remove.
9085 (symbol_cache_lookup): Simplify returns.
9086 (lookup_language_this): Simplify returns.
9087 (lookup_symbol_aux): Simplify return.
9088 (lookup_local_symbol): Simplify returns.
9089 (lookup_global_symbol_from_objfile): Simplify return.
9090 (lookup_symbol_in_objfile_symtabs)
9091 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
9092 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
9093 (lookup_static_symbol, lookup_global_symbol): Simplify return.
9094 * cp-namespace.c (cp_lookup_bare_symbol)
9095 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
9096 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
9097 (cp_lookup_nested_symbol): Don't use null_block_symbol.
9098 (cp_lookup_symbol_via_imports): Simplify initialization.
9099 (find_symbol_in_baseclass): Likewise.
9100 * symtab.h (null_block_symbol): Remove.
9101 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
9102 (d_lookup_nested_symbol, d_lookup_symbol_imports)
9103 (d_lookup_symbol_module): Likewise.
9104 (find_symbol_in_baseclass): Simplify initialization.
9105
a930ebcd
TT
91062019-03-24 Tom Tromey <tom@tromey.com>
9107
9108 * expression.h: Don't include symtab.h.
9109 (struct block): Forward declare.
9110
582942f4
TT
91112019-03-24 Tom Tromey <tom@tromey.com>
9112
9113 * c-exp.y (typebase): Remove casts.
9114 * gdbtypes.c (lookup_unsigned_typename, )
9115 (lookup_signed_typename): Remove cast.
9116 * eval.c (parse_to_comma_and_eval): Remove cast.
9117 * parse.c (write_dollar_variable): Remove cast.
9118 * block.h (struct block) <superblock>: Now const.
9119 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
9120 * psymtab.c (psym_map_matching_symbols): Make "block" const.
9121 (map_block): Make "block" const.
9122 * symfile.h (struct quick_symbol_functions)
9123 <map_matching_symbols>: Constify block argument to "callback".
9124 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
9125 const.
9126 (find_pc_sect_compunit_symtab): Make "b" const.
9127 (find_symbol_at_address): Likewise.
9128 (search_symbols): Likewise.
9129 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
9130 (dw2_debug_names_lookup_symbol): Likewise.
9131 (dw2_map_matching_symbols): Update.
9132 * p-valprint.c (pascal_val_print): Remove "block".
9133 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
9134 (aux_add_nonlocal_symbols): Make "block" const.
9135 (resolve_subexp): Remove cast.
9136 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
9137 const.
9138 (iterate_over_file_blocks): Likewise.
9139 * f-exp.y (%union) <bval>: Remove.
9140 * coffread.c (patch_opaque_types): Make "b" const.
9141 * spu-tdep.c (spu_catch_start): Make "block" const.
9142 * c-valprint.c (print_unpacked_pointer): Remove "block".
9143 * symmisc.c (dump_symtab_1): Make "b" const.
9144 (block_depth): Make "block" const.
9145 * d-exp.y (%union) <bval>: Remove.
9146 * cp-support.h (cp_lookup_rtti_type): Update.
9147 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
9148 * psymtab.c (psym_lookup_symbol): Make "block" const.
9149 (maintenance_check_psymtabs): Make "b" const.
9150 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
9151 (enumerate_locals, enumerate_args): Update.
9152 * python/py-symtab.c (stpy_global_block): Make "block" const.
9153 (stpy_static_block): Likewise.
9154 * inline-frame.c (block_starting_point_at): Make "new_block"
9155 const.
9156 * block.c (find_block_in_blockvector): Make return type const.
9157 (blockvector_for_pc_sect): Make "b" const.
9158 (find_block_in_blockvector): Make "b" const.
9159
7ad417dd
TT
91602019-03-23 Tom Tromey <tom@tromey.com>
9161
9162 * varobj.c (varobj_create): Update.
9163 * symfile.c (clear_symtab_users): Don't reset innermost_block.
9164 * printcmd.c (display_command, do_one_display): Don't reset
9165 innermost_block.
9166 * parser-defs.h (enum innermost_block_tracker_type): Move to
9167 expression.h.
9168 (innermost_block): Update comment.
9169 * parse.c (parse_exp_1): Add tracker_types parameter.
9170 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
9171 tracker_types parameter. Reset innermost_block.
9172 (parse_exp_in_context): Remove.
9173 (parse_expression_for_completion): Update.
9174 * objfiles.c (~objfile): Don't reset expression_context_block or
9175 innermost_block.
9176 * expression.h (enum innermost_block_tracker_type): Move from
9177 parser-defs.h.
9178 (parse_exp_1): Add tracker_types parameter.
9179 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
9180 reset innermost_block.
9181
b366c208
TT
91822019-03-23 Tom Tromey <tom@tromey.com>
9183
9184 * objfiles.h: Include bcache.h.
9185
9bb9b2f9
TT
91862019-03-23 Tom Tromey <tom@tromey.com>
9187
9188 * linespec.c (get_current_search_block): Use
9189 scoped_restore_current_language.
9190 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
9191
59c28372
AH
91922019-03-22 Alan Hayward <alan.hayward@arm.com>
9193 Jiong Wang <jiong.wang@arm.com>
9194
9195 * aarch64-linux-tdep.c
9196 (aarch64_linux_iterate_over_regset_sections): Check for pauth
9197 section.
9198 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
9199
17e116a7
AH
92002019-03-22 Alan Hayward <alan.hayward@arm.com>
9201 Jiong Wang <jiong.wang@arm.com>
9202
9203 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
9204 instructions.
9205 (aarch64_analyze_prologue_test): Add PACIASP test.
9206 (aarch64_prologue_prev_register): Unmask PC value.
9207
11e1b75f
AH
92082019-03-22 Alan Hayward <alan.hayward@arm.com>
9209 Jiong Wang <jiong.wang@arm.com>
9210
9211 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
9212 (aarch64_dwarf2_prev_register): Unmask PC value.
9213 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
9214 (aarch64_execute_dwarf_cfa_vendor_op): Check for
9215 DW_CFA_AARCH64_negate_ra_state.
9216 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
9217
34dcc7cf
AH
92182019-03-22 Alan Hayward <alan.hayward@arm.com>
9219 Jiong Wang <jiong.wang@arm.com>
9220
9221 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
9222 registers.
9223 (aarch64_pseudo_register_name): Likewise.
9224 (aarch64_pseudo_register_type): Likewise.
9225 (aarch64_pseudo_register_reggroup_p): Likewise.
9226 (aarch64_gdbarch_init): Add pauth registers.
9227 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
9228 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
9229 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
9230 (struct gdbarch_tdep): Add regnum for ra_state.
9231
1ef53e6b
AH
92322019-03-22 Alan Hayward <alan.hayward@arm.com>
9233 Jiong Wang <jiong.wang@arm.com>
9234
9235 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
9236
76bed0fd
AH
92372019-03-22 Alan Hayward <alan.hayward@arm.com>
9238 Jiong Wang <jiong.wang@arm.com>
9239
9240 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
9241 function.
9242 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
9243 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
9244 (aarch64_gdbarch_init): Add puth registers.
9245 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
9246 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
9247 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
9248
ee4fbcfa
AH
92492019-03-22 Alan Hayward <alan.hayward@arm.com>
9250 Jiong Wang <jiong.wang@arm.com>
9251
9252 * aarch64-linux-nat.c
9253 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
9254 * aarch64-linux-tdep.c
9255 (aarch64_linux_core_read_description): Likewise.
9256 (aarch64_linux_get_hwcap): New function.
9257 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
9258 (aarch64_linux_get_hwcap): New declaration.
9259
6dc0ebde
AH
92602019-03-22 Alan Hayward <alan.hayward@arm.com>
9261 Jiong Wang <jiong.wang@arm.com>
9262
9263 * aarch64-linux-nat.c
9264 (aarch64_linux_nat_target::read_description): Add pauth param.
9265 * aarch64-linux-tdep.c
9266 (aarch64_linux_core_read_description): Likewise.
9267 * aarch64-tdep.c (struct target_desc): Add in pauth.
9268 (aarch64_read_description): Add pauth param.
9269 (aarch64_gdbarch_init): Likewise.
9270 * aarch64-tdep.h (aarch64_read_description): Likewise.
9271 * arch/aarch64.c (aarch64_create_target_description): Likewise.
9272 * arch/aarch64.h (aarch64_create_target_description): Likewise.
9273 * features/Makefile: Add new files.
9274 * features/aarch64-pauth.c: New file.
9275 * features/aarch64-pauth.xml: New file.
9276
595915c1
TT
92772019-03-20 Tom Tromey <tromey@adacore.com>
9278
9279 * infrun.c (handle_inferior_event): Rename from
9280 handle_inferior_event_1. Create a scoped_value_mark.
9281 (handle_inferior_event): Remove.
9282
4c7d57e7
TT
92832019-03-19 Tom Tromey <tromey@adacore.com>
9284
9285 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
9286 * infrun.h (print_stop_event): Add "displays" parameter.
9287 * infrun.c (print_stop_event): Add "displays" parameter.
9288
cb246234
PA
92892019-03-19 Pedro Alves <palves@redhat.com>
9290
9291 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
9292 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
9293 to -1. Fix TABs vs spaces.
9294 (tui_ui_out::tui_ui_out): Don't initialize fields here.
9295 * tui/tui-out.h (tui_ui_out) Add intro comments.
9296 <m_line, m_start_of_line>: In-class initialize, and add describing
9297 comment.
9298
3a0e45b2
AH
92992019-03-18 Alan Hayward <alan.hayward@arm.com>
9300
9301 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
9302 variable names.
9303 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
9304
5371b850
PA
93052019-03-18 Pedro Alves <palves@redhat.com>
9306 Eli Zaretskii <eliz@gnu.org>
9307
9308 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
9309 m_line and m_start_of_line.
9310
b17c4cd0
EZ
93112019-03-18 Eli Zaretskii <eliz@gnu.org>
9312
9313 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
9314 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
9315 it returns a newline. This fixes a regression in TU mode, whereby
9316 the next line is output on the same screen line as the user input.
9317
4bd56d18
TT
93182019-03-18 Tom Tromey <tromey@adacore.com>
9319
9320 * minsyms.c (minimal_symbol_reader::install): Remove call to
9321 obstack_blank.
9322
55c10aca
PA
93232019-03-18 Pedro Alves <palves@redhat.com>
9324
9325 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
9326 New globals.
9327 (apply_style): New, factored out from ...
9328 (apply_ansi_escape): ... this. Handle reverse video mode.
9329 (tui_set_reverse_mode): New function.
9330 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
9331 * tui/tui-winsource.c (tui_show_source_line): Use
9332 tui_set_reverse_mode instead of setting A_STANDOUT.
9333 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
9334 New setter methods.
9335
647bb750
HD
93362019-03-18 Hannes Domani <ssbssa@yahoo.de>
9337
9338 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
9339 Handle tabs.
9340
bff8c71f
TT
93412019-03-18 Tom Tromey <tromey@adacore.com>
9342
9343 * ada-lang.c (empty_array): Add "high" parameter.
9344 (ada_evaluate_subexp): Update.
9345
58785d98
ST
93462019-03-17 Sergei Trofimovich <siarheit@google.com>
9347
9348 * unittests/string_view-selftests.c: Define
9349 _initialize_string_view_selftests unconditionally.
9350
d4cbef22
ВМ
93512019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9352
9353 PR gdb/24350
9354 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
9355
fce4c071
ВМ
93562019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9357
9358 PR gdb/24351
9359 * windows-nat.c (display_selector): Fix format specifiers.
9360
f7f0a123
EZ
93612019-03-17 Eli Zaretskii <eliz@gnu.org>
9362
9363 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
9364 tui_refill_source_window instead of tui_refresh_win, to update the
9365 current execution line. This fixes redisplay of the current line
9366 when stepping through the code with "next" or "step".
9367
ab42892f
EZ
93682019-03-16 Eli Zaretskii <eliz@gnu.org>
9369
9370 * source-cache.c (source_cache::get_source_lines): Call
9371 find_source_lines to initialize s->nlines. This fixes vertical
9372 scrolling of TUI source window when the DOWN arrow is pressed.
9373
8d8c087f
PW
93742019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9375
9376 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
9377 linux-thread-db.c (_initialize_thread_db): Likewise.
9378
798e1c30
EZ
93792019-03-16 Eli Zaretskii <eliz@gnu.org>
9380
9381 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
9382 wclrtoeol in tui_show_source_line". This reverts changes made in
9383 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
9384
eefba3da
TT
93852019-03-15 Tom Tromey <tom@tromey.com>
9386
9387 * symtab.h (struct minimal_symbol): Derive from
9388 general_symbol_info.
9389 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
9390 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9391 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9392 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9393 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
9394 (MSYMBOL_SEARCH_NAME): Update.
9395 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
9396 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
9397 * minsyms.c (minimal_symbol_reader::record_full): Update.
9398
0de2420c
TT
93992019-03-15 Tom Tromey <tom@tromey.com>
9400
9401 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
9402
042d75e4
TT
94032019-03-15 Tom Tromey <tom@tromey.com>
9404
9405 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
9406 unique_xmalloc_ptr.
9407 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
9408 Update.
9409 * minsyms.c (lookup_minimal_symbol_by_pc_section)
9410 (build_minimal_symbol_hash_tables)
9411 (minimal_symbol_reader::install): Update.
9412
db92718b
TT
94132019-03-15 Tom Tromey <tom@tromey.com>
9414
9415 * symtab.c (create_demangled_names_hash): Update.
9416 (symbol_set_names): Update.
9417 * objfiles.h (struct objfile_per_bfd_storage)
9418 <demangled_names_hash>: Now an htab_up.
9419 * objfiles.c (objfile_per_bfd_storage): Simplify.
9420
d6797f46
TT
94212019-03-15 Tom Tromey <tom@tromey.com>
9422
9423 * objfiles.h (struct objfile_per_bfd_storage): Declare
9424 destructor.
9425 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
9426 New.
9427 (get_objfile_bfd_data): Use new. Don't initialize
9428 language_of_main.
9429 (free_objfile_per_bfd_storage): Remove.
9430 (objfile_bfd_data_free, objfile::~objfile): Use delete.
9431
741d7538
TT
94322019-03-15 Tom Tromey <tom@tromey.com>
9433
9434 * symfile.c (reread_symbols): Update.
9435 * objfiles.c (objfile::objfile): Update.
9436 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
9437 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
9438 comment.
9439 (minimal_symbol_reader::install): Update.
9440 (terminate_minimal_symbol_table): Remove.
9441 * jit.c (jit_object_close_impl): Update.
9442
788c80d1
TT
94432019-03-15 Tom Tromey <tom@tromey.com>
9444
9445 * minsyms.c (minimal_symbol_reader::record_full): Remove some
9446 initializations.
9447
1b7a07cb
TT
94482019-03-15 Tom Tromey <tom@tromey.com>
9449
9450 * objfiles.h (struct objfile_per_bfd_storage)
9451 <demangled_hash_languages>: Now a bitset.
9452 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
9453 (lookup_minimal_symbol): Update.
9454
3db066bc
TT
94552019-03-15 Tom Tromey <tom@tromey.com>
9456
9457 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
9458 Don't return the symbol.
9459 * coffread.c (record_minimal_symbol): Use record_full.
9460
3fff2c37
EZ
94612019-03-14 Eli Zaretskii <eliz@gnu.org>
9462
9463 The MS-Windows port of ncurses fails to switch to a color pair if
9464 one or both of the colors are the implicit default colors. This
9465 change records the default colors when TUI is initialized, and
9466 then specifies them explicitly when a color pair uses the default
9467 colors. This allows color styling in TUI mode on MS-Windows.
9468
9469 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
9470 ncurses_norm_attr.
9471 (tui_initialize_io) [__MINGW32__]: Record the default terminal
9472 colors in ncurses_norm_attr.
9473 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
9474 "none", replace it with the default color recorded in
9475 ncurses_norm_attr.
9476
3b336828
TT
94772019-03-14 Tom Tromey <tromey@adacore.com>
9478
9479 * source-cache.h (class source_cache) <get_source_lines>: Return
9480 std::string.
9481 * source-cache.c (source_cache::extract_lines): Handle case where
9482 first_pos==npos. Return std::string.
9483 (source_cache::get_source_lines): Update.
9484
d085f989
TT
94852019-03-14 Tom Tromey <tromey@adacore.com>
9486
9487 * NEWS: Add item for "style sources" commands.
9488 * source-cache.c (source_cache::get_source_lines): Check
9489 source_styling.
9490 * cli/cli-style.c (source_styling): New global.
9491 (_initialize_cli_style): Add "style sources" commands.
9492 (show_style_sources): New function.
9493 * cli/cli-style.h (source_styling): Declare.
9494
6f11e682
TT
94952019-03-14 Pedro Alves <palves@redhat.com>
9496 Tom Tromey <tromey@adacore.com>
9497
9498 * tui/tui-winsource.h (tui_refill_source_window): Declare.
9499 * tui/tui-winsource.c (tui_refill_source_window): New function,
9500 from...
9501 (tui_horizontal_source_scroll): ... here. Move some logic.
9502 * cli/cli-style.c (set_style_enabled): Notify new observable.
9503 * tui/tui-hooks.c (tui_redisplay_source): New function.
9504 (tui_attach_detach_observers): Attach or detach
9505 tui_redisplay_source.
9506 * observable.h (source_styling_changed): New observable.
9507 * observable.c: Define source_styling_changed observable.
9508
a068643d
TT
95092019-03-13 Tom Tromey <tromey@adacore.com>
9510
9511 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
9512 (i386_gnu_nat_target::store_registers): Update.
9513 * target-debug.h (target_debug_print_std_string): New macro.
9514 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9515 * windows-tdep.c (display_one_tib): Update.
9516 * tui/tui-stack.c (tui_make_status_line): Update.
9517 * top.c (print_inferior_quit_action): Update.
9518 * thread.c (thr_try_catch_cmd): Update.
9519 (add_thread_with_info): Update.
9520 (thread_target_id_str): Update.
9521 (thr_try_catch_cmd): Update.
9522 (thread_command): Update.
9523 (thread_find_command): Update.
9524 * record-btrace.c (record_btrace_target::info_record)
9525 (record_btrace_resume_thread, record_btrace_target::resume)
9526 (record_btrace_cancel_resume, record_btrace_step_thread)
9527 (record_btrace_target::wait, record_btrace_target::wait)
9528 (record_btrace_target::wait, record_btrace_target::stop): Update.
9529 * progspace.c (print_program_space): Update.
9530 * process-stratum-target.c
9531 (process_stratum_target::thread_address_space): Update.
9532 * linux-fork.c (linux_fork_mourn_inferior)
9533 (detach_checkpoint_command, info_checkpoints_command)
9534 (linux_fork_context): Update.
9535 (linux_fork_detach): Update.
9536 (class scoped_switch_fork_info): Update.
9537 (delete_checkpoint_command): Update.
9538 * infrun.c (follow_fork_inferior): Update.
9539 (follow_fork_inferior): Update.
9540 (proceed_after_vfork_done): Update.
9541 (handle_vfork_child_exec_or_exit): Update.
9542 (follow_exec): Update.
9543 (displaced_step_prepare_throw): Update.
9544 (displaced_step_restore): Update.
9545 (start_step_over): Update.
9546 (resume_1): Update.
9547 (clear_proceed_status_thread): Update.
9548 (proceed): Update.
9549 (print_target_wait_results): Update.
9550 (do_target_wait): Update.
9551 (context_switch): Update.
9552 (stop_all_threads): Update.
9553 (restart_threads): Update.
9554 (finish_step_over): Update.
9555 (handle_signal_stop): Update.
9556 (switch_back_to_stepped_thread): Update.
9557 (keep_going_pass_signal): Update.
9558 (print_exited_reason): Update.
9559 (normal_stop): Update.
9560 * inferior.c (inferior_pid_to_str): Change return type.
9561 (print_selected_inferior): Update.
9562 (add_inferior): Update.
9563 (detach_inferior): Update.
9564 * dummy-frame.c (fprint_dummy_frames): Update.
9565 * dcache.c (dcache_info_1): Update.
9566 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
9567 (btrace_fetch, btrace_clear): Update.
9568 * linux-tdep.c (linux_core_pid_to_str): Change return type.
9569 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
9570 type.
9571 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
9572 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
9573 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
9574 * gdbarch.c, gdbarch.h: Rebuild.
9575 * gdbarch.sh (core_pid_to_str): Change return type.
9576 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
9577 return type.
9578 (windows_nat_target::pid_to_str): Change return type.
9579 (windows_delete_thread): Update.
9580 (windows_nat_target::attach): Update.
9581 (windows_nat_target::files_info): Update.
9582 * target-delegates.c: Rebuild.
9583 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
9584 return type.
9585 (sol_thread_target::pid_to_str): Change return type.
9586 * remote.c (class remote_target) <pid_to_str>: Change return
9587 type.
9588 (remote_target::pid_to_str): Change return type.
9589 (extended_remote_target::attach, remote_target::remote_stop_ns)
9590 (remote_target::remote_notif_remove_queued_reply)
9591 (remote_target::push_stop_reply, remote_target::disable_btrace):
9592 Update.
9593 (extended_remote_target::attach): Update.
9594 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
9595 type.
9596 (gdbsim_target::pid_to_str): Change return type.
9597 * ravenscar-thread.c (struct ravenscar_thread_target)
9598 <pid_to_str>: Change return type.
9599 (ravenscar_thread_target::pid_to_str): Change return type.
9600 * procfs.c (class procfs_target) <pid_to_str>: Change return
9601 type.
9602 (procfs_target::pid_to_str): Change return type.
9603 (procfs_target::attach): Update.
9604 (procfs_target::detach): Update.
9605 (procfs_target::fetch_registers): Update.
9606 (procfs_target::store_registers): Update.
9607 (procfs_target::wait): Update.
9608 (procfs_target::files_info): Update.
9609 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
9610 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
9611 return type.
9612 (nto_procfs_target::pid_to_str): Change return type.
9613 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
9614 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
9615 return type.
9616 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
9617 (exit_lwp): Update.
9618 (attach_proc_task_lwp_callback, get_detach_signal)
9619 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
9620 (linux_nat_target::resume, wait_lwp, stop_callback)
9621 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
9622 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
9623 (linux_nat_wait_1, resume_stopped_resumed_lwps)
9624 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
9625 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
9626 type.
9627 (inf_ptrace_target::attach): Update.
9628 (inf_ptrace_target::files_info): Update.
9629 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
9630 type.
9631 (go32_nat_target::pid_to_str): Change return type.
9632 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
9633 (gnu_nat_target::wait): Update.
9634 (gnu_nat_target::wait): Update.
9635 (gnu_nat_target::resume): Update.
9636 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
9637 (fbsd_nat_target::wait): Update.
9638 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
9639 type.
9640 (darwin_nat_target::attach): Update.
9641 * corelow.c (class core_target) <pid_to_str>: Change return type.
9642 (core_target::pid_to_str): Change return type.
9643 * target.c (normal_pid_to_str): Change return type.
9644 (default_pid_to_str): Likewise.
9645 (target_pid_to_str): Change return type.
9646 (target_translate_tls_address): Update.
9647 (target_announce_detach): Update.
9648 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
9649 return type.
9650 (bsd_uthread_target::pid_to_str): Change return type.
9651 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
9652 type.
9653 (bsd_kvm_target::pid_to_str): Change return type.
9654 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
9655 return type.
9656 (aix_thread_target::pid_to_str): Change return type.
9657 * target.h (struct target_ops) <pid_to_str>: Change return type.
9658 (target_pid_to_str, normal_pid_to_str): Likewise.
9659 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
9660 type.
9661 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
9662 type.
9663 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
9664 return type.
9665 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
9666 type.
9667 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
9668 type.
9669 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
9670 return type.
9671
b4be1b06
SM
96722019-03-13 Simon Marchi <simon.marchi@ericsson.com>
9673
9674 * NEWS: Mention that the new default MI version is 3. Mention
9675 changes to the output of commands and events that deal with
9676 multi-location breakpoints.
9677 * breakpoint.c: Include "mi/mi-out.h".
9678 (print_one_breakpoint): Change output syntax if using MI version
9679 >= 3.
9680 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
9681 New.
9682 (mi_multi_location_breakpoint_output_fixed): New.
9683 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
9684 (mi_cmd_fix_multi_location_breakpoint_output): New.
9685 (mi_multi_location_breakpoint_output_fixed): New.
9686 * mi/mi-cmds.c (mi_cmds): Register command
9687 -fix-multi-location-breakpoint-output.
9688 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
9689 interpreter "mi".
9690
8e5e5494
SM
96912019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9692
9693 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
9694 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
9695 instantiate mi_ui_out based on interpreter name.
9696 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
9697 * mi/mi-main.c (mi_load_progress): Likewise.
9698
197df35e
JB
96992019-03-12 John Baldwin <jhb@FreeBSD.org>
9700
9701 * NEWS: Combine separate "New targets" sections for 8.3.
9702
8399425f
JB
97032019-03-12 John Baldwin <jhb@FreeBSD.org>
9704
9705 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
9706 (ppcfbsd_init_abi): Install gdbarch
9707 "fetch_tls_load_module_address" and "get_thread_local_address"
9708 methods.
9709
b0f87ed0
JB
97102019-03-12 John Baldwin <jhb@FreeBSD.org>
9711
9712 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
9713 (riscv_fbsd_init_abi): Install gdbarch
9714 "fetch_tls_load_module_address" and "get_thread_local_address"
9715 methods.
9716
ce25aa57
JB
97172019-03-12 John Baldwin <jhb@FreeBSD.org>
9718
9719 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
9720 (i386fbsd_init_abi): Install gdbarch
9721 "fetch_tls_load_module_address" and "get_thread_local_address"
9722 methods.
9723
f5424cfa
JB
97242019-03-12 John Baldwin <jhb@FreeBSD.org>
9725
9726 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
9727 (amd64fbsd_init_abi): Install gdbarch
9728 "fetch_tls_load_module_address" and "get_thread_local_address"
9729 methods.
9730
945f3901
JB
97312019-03-12 John Baldwin <jhb@FreeBSD.org>
9732
9733 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
9734 (struct fbsd_pspace_data): New type.
9735 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
9736 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
9737 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
9738 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
9739 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
9740
ef0bd204
JB
97412019-03-12 John Baldwin <jhb@FreeBSD.org>
9742
9743 * gdbtypes.c (lookup_struct_elt): New function.
9744 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
9745 * gdbtypes.h (struct struct_elt): New type.
9746 (lookup_struct_elt): New prototype.
9747
36c53a02
JB
97482019-03-12 John Baldwin <jhb@FreeBSD.org>
9749
9750 * gdbtypes.c (lookup_struct_elt_type): Update comment and
9751 remove disabled code block.
9752
6e056c81
JB
97532019-03-12 John Baldwin <jhb@FreeBSD.org>
9754
9755 * gdbarch.sh (get_thread_local_address): New method.
9756 * gdbarch.h, gdbarch.c: Regenerate.
9757 * target.c (target_translate_tls_address): Use
9758 gdbarch_get_thread_local_address if present instead of
9759 target::get_thread_local_address.
9760
cd250a18
JB
97612019-03-12 John Baldwin <jhb@FreeBSD.org>
9762
9763 * target.h (target::get_thread_local_address): Update comment.
9764
df22c1e5
JB
97652019-03-12 John Baldwin <jhb@FreeBSD.org>
9766
9767 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
9768 objfile->separate_debug_objfile_backlink if not NULL.
9769
dd6876c9
JB
97702019-03-12 John Baldwin <jhb@FreeBSD.org>
9771
9772 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
9773 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
9774 (amd64bsd_store_inferior_registers): Likewise.
9775 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9776 Enable segment base registers.
9777 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
9778 PT_GETFSBASE and PT_GETGSBASE.
9779 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
9780 PT_SETGSBASE.
9781 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
9782 segment base registers.
9783 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9784
1163a4b7
JB
97852019-03-12 John Baldwin <jhb@FreeBSD.org>
9786
9787 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9788 Update calls to i386_target_description to add 'segments'
9789 parameter.
9790 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
9791 add segment base registers.
9792 * arch/i386.c (i386_create_target_description): Add 'segments'
9793 parameter to enable segment base registers.
9794 * arch/i386.h (i386_create_target_description): Likewise.
9795 * features/i386/32bit-segments.xml: New file.
9796 * features/i386/32bit-segments.c: Generate.
9797 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
9798 call to i386_target_description to add 'segments' parameter.
9799 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9800 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
9801 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
9802 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
9803 if feature is present.
9804 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
9805 Add 'segments' parameter to call to i386_target_description.
9806 (i386_target_description): Add 'segments' parameter to enable
9807 segment base registers.
9808 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
9809 to call to i386_target_description.
9810 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
9811 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
9812 Define I386_NUM_REGS.
9813 (i386_target_description): Add 'segments' parameter to enable
9814 segment base registers.
9815
3a350822
EZ
98162019-03-12 Eli Zaretskii <eliz@gnu.org>
9817
9818 PR/24325
9819 * source-cache.c: #undef open and close, to avoid unresolved
9820 externals during linking.
9821
ffdd69cf
TT
98222019-03-12 Tom Tromey <tromey@adacore.com>
9823
9824 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
9825 const. Add initializers.
9826 (_initialize_remote): Don't initialize ptid globals.
9827
ec148c57
PA
98282019-03-12 Pedro Alves <palves@redhat.com>
9829
9830 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
9831
32764270
PA
98322019-03-12 Pedro Alves <palves@redhat.com>
9833
9834 * cp-name-parser.y (main): Remove unused 'len' variable.
9835
17547186
TT
98362019-03-12 Tom Tromey <tromey@adacore.com>
9837
9838 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
9839 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
9840
d3a70e03
TT
98412019-03-12 Tom Tromey <tromey@adacore.com>
9842
9843 * linux-nat.c (iterate_over_lwps): Update.
9844 (stop_callback): Remove parameter.
9845 (stop_wait_callback, detach_callback, resume_set_callback)
9846 (select_singlestep_lwp_callback, set_ignore_sigint)
9847 (status_callback, resumed_callback, resume_clear_callback)
9848 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
9849 data parameter.
9850 (linux_nat_target::detach, linux_nat_target::resume)
9851 (linux_stop_and_wait_all_lwps, select_event_lwp)
9852 (linux_nat_filter_event, linux_nat_wait_1)
9853 (linux_nat_target::kill, linux_nat_target::stop)
9854 (linux_nat_target::stop): Update.
9855 (linux_nat_resume_callback): Change type.
9856 (resume_stopped_resumed_lwps, count_events_callback)
9857 (select_event_lwp_callback): Likewise.
9858 (linux_stop_lwp, linux_nat_stop_lwp): Update.
9859 * arm-linux-nat.c (struct update_registers_data): Remove.
9860 (update_registers_callback): Change type.
9861 (arm_linux_insert_hw_breakpoint1): Update.
9862 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
9863 parameter.
9864 (x86_linux_dr_set_addr): Update.
9865 (x86_linux_dr_set_control): Update.
9866 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
9867 (iterate_over_lwps): Use gdb::function_view.
9868 * nat/aarch64-linux-hw-point.c (struct
9869 aarch64_dr_update_callback_param): Remove.
9870 (debug_reg_change_callback): Change type.
9871 (aarch64_notify_debug_reg_change): Update.
9872 * s390-linux-nat.c (s390_refresh_per_info): Update.
9873
82cb27ff
TT
98742019-03-11 Tom Tromey <tromey@adacore.com>
9875
9876 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
9877 redundant assignment to "this_cu".
9878
568c0683
SM
98792019-03-08 Simon Marchi <simon.marchi@efficios.com>
9880
9881 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
9882
f09ce22d
SM
98832019-03-08 Simon Marchi <simon.marchi@efficios.com>
9884
9885 * gdbtypes.c (rank_one_type_parm_set): New function extracted
9886 from...
9887 (rank_one_type): ... this.
9888
595f96a9
SM
98892019-03-08 Simon Marchi <simon.marchi@efficios.com>
9890
9891 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
9892 from...
9893 (rank_one_type): ... this.
9894
2598a94b
SM
98952019-03-08 Simon Marchi <simon.marchi@efficios.com>
9896
9897 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
9898 from...
9899 (rank_one_type): ... this.
9900
7f17b20d
SM
99012019-03-08 Simon Marchi <simon.marchi@efficios.com>
9902
9903 * gdbtypes.c (rank_one_type_parm_float): New function extracted
9904 from...
9905 (rank_one_type): ... this.
9906
2c509035
SM
99072019-03-08 Simon Marchi <simon.marchi@efficios.com>
9908
9909 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
9910 from...
9911 (rank_one_type): ... this.
9912
0dd322dc
SM
99132019-03-08 Simon Marchi <simon.marchi@efficios.com>
9914
9915 * gdbtypes.c (rank_one_type_parm_range): New function extracted
9916 from...
9917 (rank_one_type): ... this.
9918
41ea4728
SM
99192019-03-08 Simon Marchi <simon.marchi@efficios.com>
9920
9921 * gdbtypes.c (rank_one_type_parm_char): New function extracted
9922 from...
9923 (rank_one_type): ... this.
9924
793cd1d2
SM
99252019-03-08 Simon Marchi <simon.marchi@efficios.com>
9926
9927 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
9928 from...
9929 (rank_one_type): ... this.
9930
34910087
SM
99312019-03-08 Simon Marchi <simon.marchi@efficios.com>
9932
9933 * gdbtypes.c (rank_one_type_parm_int): New function extracted
9934 from...
9935 (rank_one_type): ... this.
9936
f1f832d6
SM
99372019-03-08 Simon Marchi <simon.marchi@efficios.com>
9938
9939 * gdbtypes.c (rank_one_type_parm_func): New function extracted
9940 from...
9941 (rank_one_type): ... this.
9942
b9f4512f
SM
99432019-03-08 Simon Marchi <simon.marchi@efficios.com>
9944
9945 * gdbtypes.c (rank_one_type_parm_array): New function extracted
9946 from...
9947 (rank_one_type): ... this.
9948
9293fc63
SM
99492019-03-08 Simon Marchi <simon.marchi@efficios.com>
9950
9951 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
9952 from...
9953 (rank_one_type): ... this.
9954
e3abbe7e
PW
99552019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9956
9957 * inferior.c (initialize_inferiors): Ensure 'help set/show print
9958 inferior-events' shows the example events.
9959
e4adb939
EZ
99602019-03-08 Eli Zaretskii <eliz@gnu.org>
9961
9962 Support styling on native MS-Windows console
9963
9964 PR/24315
9965 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
9966 on MS-Windows if $TERM is not defined.
9967
9968 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
9969
9970 * posix-hdep.c (gdb_console_fputs):
9971 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
9972 functions.
9973 * ui-file.h (gdb_console_fputs): Add prototype.
9974
9975 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
9976 back to fputs only if the former returns zero.
9977
25629dfd
TT
99782019-03-07 Tom Tromey <tom@tromey.com>
9979
9980 * symmisc.c (print_symbol_bcache_statistics): Update.
9981 (print_objfile_statistics): Update.
9982 * symfile.c (allocate_symtab): Update.
9983 * stabsread.c: Don't include bcache.h.
9984 * psymtab.h (struct psymbol_bcache): Don't declare.
9985 (class psymtab_storage) <psymbol_cache>: Now a bcache.
9986 (psymbol_bcache_init, psymbol_bcache_free)
9987 (psymbol_bcache_get_bcache): Don't declare.
9988 * psymtab.c (struct psymbol_bcache): Remove.
9989 (psymtab_storage::psymtab_storage): Update.
9990 (psymtab_storage::~psymtab_storage): Update.
9991 (psymbol_bcache_init, psymbol_bcache_free)
9992 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
9993 (add_psymbol_to_bcache): Update.
9994 (allocate_psymtab): Update.
9995 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9996 macro_cache>: No longer pointers.
9997 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
9998 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
9999 * macrotab.c (macro_bcache): Update.
10000 * macroexp.c: Don't include bcache.h.
10001 * gdbtypes.c (check_types_worklist): Update.
10002 (types_deeply_equal): Remove TRY/CATCH. Update.
10003 * elfread.c (elf_symtab_read): Update.
10004 * dwarf2read.c: Don't include bcache.h.
10005 * buildsym.c (buildsym_compunit::get_macro_table): Update.
10006 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
10007 (print_bcache_statistics, bcache_memory_used): Don't declare.
10008 (struct bcache): Move from bcache.c. Add constructor, destructor,
10009 methods. Rename all data members.
10010 * bcache.c (struct bcache): Move to bcache.h.
10011 (bcache::expand_hash_table): Rename from expand_hash_table.
10012 (bcache): Remove.
10013 (bcache::insert): Rename from bcache_full.
10014 (bcache::compare): Rename from bcache_compare.
10015 (bcache_xmalloc): Remove.
10016 (bcache::~bcache): Rename from bcache_xfree.
10017 (bcache::print_statistics): Rename from print_bcache_statistics.
10018 (bcache::memory_used): Rename from bcache_memory_used.
10019
fe726667
PA
100202019-03-07 Pedro Alves <palves@redhat.com>
10021
10022 * infrun.c (normal_stop): Also check for
10023 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
10024
7584bb30
AB
100252019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10026
10027 * f-lang.c (value_from_host_double): Moved to...
10028 * value.c (value_from_host_double): ...here.
10029 * value.h (value_from_host_double): Declare.
10030 * guile/scm-math.c (vlscm_convert_typed_number): Use
10031 value_from_host_double.
10032 (vlscm_convert_number): Likewise.
10033 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
10034 * python/py-value.c (convert_value_from_python): Likewise.
10035
a7b1986e
TT
100362019-03-06 Tom Tromey <tom@tromey.com>
10037
10038 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
10039
0ccf4211
TT
100402019-03-06 Tom Tromey <tom@tromey.com>
10041
10042 * utils.h (free_current_contents): Don't declare.
10043 * utils.c (free_current_contents): Remove.
10044
fe7b42e5
TT
100452019-03-06 Tom Tromey <tom@tromey.com>
10046
10047 * top.c (quit_force): Update.
10048 * main.c (captured_command_loop): Update.
10049 * common/new-op.c (operator new): Update.
10050 * common/common-exceptions.c (struct catcher)
10051 <save_cleanup_chain>: Remove member.
10052 (exceptions_state_mc_init): Update.
10053 (exception_try_scope_entry): Return nullptr.
10054 (exception_try_scope_exit, exception_rethrow)
10055 (throw_exception_sjlj, throw_exception_cxx): Update.
10056 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
10057 (all_cleanups, do_cleanups, discard_cleanups)
10058 (discard_final_cleanups, save_cleanups, save_final_cleanups)
10059 (restore_cleanups, restore_final_cleanups): Don't declare.
10060 (do_final_cleanups): Remove parameter.
10061 * common/cleanups.c (cleanup_chain, make_cleanup)
10062 (make_cleanup_dtor, all_cleanups, do_cleanups)
10063 (discard_my_cleanups, discard_cleanups)
10064 (discard_final_cleanups, save_my_cleanups, save_cleanups)
10065 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
10066 (null_cleanup): Remove.
10067 (do_final_cleanups): Remove parameter.
10068
c6321f19
TT
100692019-03-06 Tom Tromey <tom@tromey.com>
10070
10071 * remote.c (remote_target::remote_parse_stop_reply): Use
10072 unique_xmalloc_ptr.
10073
61b30099
TT
100742019-03-06 Tom Tromey <tom@tromey.com>
10075
10076 * stabsread.c (struct stabs_field_info): Rename from field_info.
10077 <list, fnlist>: Add initializers.
10078 <obstack>: New member.
10079 (read_member_functions, read_struct_fields, read_baseclasses):
10080 Allocate on obstack. Don't use cleanups.
10081 (read_one_struct_field, read_member_functions, read_struct_fields)
10082 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
10083 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
10084 (read_struct_type): Update.
10085
6cceac94
TT
100862019-03-06 Tom Tromey <tom@tromey.com>
10087
10088 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
10089 * common/filestuff.h (make_cleanup_close): Don't declare.
10090 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
10091 Remove.
10092
72412762
TT
100932019-03-06 Tom Tromey <tom@tromey.com>
10094
10095 * solib-aix.c: Use make_scope_exit.
10096
2b6ff1c0
TT
100972019-03-06 Tom Tromey <tom@tromey.com>
10098
10099 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
10100 Use make_scope_exit.
10101
d01c5877
TT
101022019-03-06 Tom Tromey <tom@tromey.com>
10103
10104 * solib-svr4.c (disable_probes_interface): Remove parameter.
10105 (svr4_handle_solib_event): Use make_scope_exit.
10106
32603266
TT
101072019-03-06 Tom Tromey <tom@tromey.com>
10108
10109 * remote.c (struct stop_reply_deleter): Remove.
10110 (stop_reply_up): Update.
10111 (struct stop_reply): Derive from notif_event. Don't typedef.
10112 <regcache>: Now a std::vector.
10113 (stop_reply_xfree): Remove.
10114 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
10115 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
10116 (remote_target::discard_pending_stop_replies): Use delete.
10117 (remote_target::remote_parse_stop_reply): Update.
10118 (remote_target::process_stop_reply): Update.
10119 * remote-notif.h (struct notif_event): Add virtual destructor.
10120 Remove "dtr" member.
10121 (struct notif_client) <alloc_event>: Return a unique_ptr.
10122 (notif_event_xfree): Don't declare.
10123 (notif_event_up): New typedef.
10124 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
10125 (notif_event_xfree, do_notif_event_xfree): Remove.
10126 (remote_notif_state_xfree): Update.
10127
9799571e
TT
101282019-03-06 Tom Tromey <tom@tromey.com>
10129
10130 * infrun.c (displaced_step_clear_cleanup): Now a
10131 forward_scope_exit type.
10132 (displaced_step_prepare_throw): Update.
10133 (displaced_step_fixup): Update.
10134
09e3c4ca
TT
101352019-03-06 Tom Tromey <tom@tromey.com>
10136
10137 * inferior.h (class inferior): Update comment.
10138 * gdbthread.h (class thread_info): Update comment.
10139
e2a03548
TT
101402019-03-06 Joel Brobecker <brobecker@adacore.com>
10141 Tom Tromey <tom@tromey.com>
10142
10143 * stabsread.h (struct stab_section_list): Remove.
10144 (coffstab_build_psymtabs): Update.
10145 * dbxread.c (symbuf_sections): Now a std::vector.
10146 (sect_idx): New global.
10147 (fill_symbuf): Update.
10148 (coffstab_build_psymtabs): Change type of stabsects parameter.
10149 Update.
10150 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
10151 std::vector.
10152 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
10153 (coff_locate_sections): Update.
10154 (coff_symfile_read): Remove cleanups. Update.
10155 (init_stringtab): Add storage parameter.
10156 (free_stringtab, free_stringtab_cleanup): Remove.
10157 (init_lineno): Add storage parameter.
10158 (free_linetab, free_linetab_cleanup): Remove.
10159
b7e60d85
PA
101602019-03-06 Pedro Alves <palves@redhat.com>
10161
10162 * linux-fork.c (fork_info::clobber_regs): Delete.
10163 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
10164 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
10165 comment. Adjust.
10166 (scoped_switch_fork_info::scoped_switch_fork_info)
10167 (checkpoint_command, linux_fork_context): Adjust
10168 fork_save_infrun_state calls.
10169
e52c971f
PA
101702019-03-06 Pedro Alves <palves@redhat.com>
10171
10172 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
10173 (inf_has_multiple_threads): Return 'bool' and rewrite using
10174 inferior_info::threads().
10175
06974e6c
PA
101762019-03-06 Pedro Alves <palves@redhat.com>
10177
10178 * linux-fork.c: Include <list>.
10179 (fork_list): Now a std::list instance.
10180 (fork_info): Add ctor, dtor, and in-class initialize all fields.
10181 (forks_exist_p, find_last_fork): Adjust.
10182 (new_fork): Delete.
10183 (one_fork_p): New.
10184 (add_fork): Adjust.
10185 (free_fork): Delete, folded into fork_info::~fork_info().
10186 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
10187 Adjust.
10188 (init_fork_list): Delete.
10189 (linux_fork_killall, linux_fork_mourn_inferior)
10190 (linux_fork_detach, info_checkpoints_command): Adjust.
10191 (_initialize_linux_fork): No longer call init_fork_list.
10192
72f31aea
PA
101932019-03-06 Pedro Alves <palves@redhat.com>
10194
10195 * linux-fork.c (new_fork): New, split out of ...
10196 (add_fork): ... this. Return void. Move "first fork" special
10197 case from here, to ...
10198 (checkpoint_command): ... here.
10199 * linux-linux.h (add_fork): Return void.
10200
efbecbc1
AB
102012019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10202
10203 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
10204
0841c79a
AB
102052019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10206 Chris January <chris.january@arm.com>
10207 David Lecomber <david.lecomber@arm.com>
10208
10209 * f-exp.y: New token, UNOP_INTRINSIC.
10210 (exp): New pattern using UNOP_INTRINSIC token.
10211 (f77_keywords): Add 'abs' keyword.
10212 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
10213 (value_from_host_double): New function.
10214 (evaluate_subexp_f): Support UNOP_ABS.
10215
4a270568
AB
102162019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10217
10218 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
10219 types.
10220
067630bd
AB
102212019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10222
10223 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
10224 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
10225 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
10226
3be47f7a
AB
102272019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10228
10229 * f-exp.y (convert_to_kind_type): Handle more type kinds.
10230
4d00f5d8
AB
102312019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10232 Chris January <chris.january@arm.com>
10233
10234 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
10235 * f-exp.y: Define 'KIND' token.
10236 (exp): New pattern for KIND expressions.
10237 (ptype): Handle types with a kind extension.
10238 (direct_abs_decl): Extend to spot kind extensions.
10239 (f77_keywords): Add 'kind' to the list.
10240 (push_kind_type): New function.
10241 (convert_to_kind_type): New function.
10242 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
10243 * parse.c (operator_length_standard): Likewise.
10244 * parser-defs.h (enum type_pieces): Add tp_kind.
10245 * std-operator.def: Add UNOP_KIND.
10246
e454224f
AB
102472019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10248
10249 * f-exp.y (f_parse): Set yydebug.
10250
9dad4a58
AB
102512019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10252
10253 * f-lang.c (evaluate_subexp_f): New function.
10254 (exp_descriptor_f): New global.
10255 (f_language_defn): Use exp_descriptor_f instead of
10256 exp_descriptor_standard.
10257
c8f91604
AB
102582019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10259
10260 * f-exp.y (struct token): Add comments.
10261 (dot_ops): Remove uppercase versions and the end marker.
10262 (f77_keywords): Likewise.
10263 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
10264 entries in the dot_ops array are case insensitive, and use
10265 strncasecmp to compare strings. Also some whitespace cleanup in
10266 this area. Similar for the f77_keywords array, except entries in
10267 this list might be case sensitive.
10268
dd9f2c76
AB
102692019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10270
10271 * f-exp.y (struct f77_boolean_val): Add comments.
10272 (boolean_values): Remove uppercase versions, and end marker.
10273 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
10274 and use strncasecmp to achieve case insensitivity. Additionally,
10275 perform whitespace cleanup around this code.
10276
67a3048c
TT
102772019-03-06 Tom Tromey <tromey@adacore.com>
10278
10279 * remote-sim.c (gdbsim_target_open): Use result of
10280 gdb_argv::release.
10281
aa3cfbda
RB
102822019-03-06 Richard Bunt <richard.bunt@arm.com>
10283 Dirk Schubert <dirk.schubert@arm.com>
10284 Chris January <chris.january@arm.com>
10285
10286 * eval.c (evaluate_subexp_standard): Call Fortran argument
10287 wrapping logic.
10288 * f-lang.c (struct value): A value which can be passed into a
10289 Fortran function call.
10290 (fortran_argument_convert): Wrap Fortran arguments in a pointer
10291 where appropriate.
10292 (struct type): Value ready for a Fortran function call.
10293 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
10294 is needed.
10295 * f-lang.h (fortran_argument_convert): Declaration.
10296 (fortran_preserve_arg_pointer): Declaration.
10297 * infcall.c (value_arg_coerce): Call Fortran argument logic.
10298
ea38e5df
TT
102992019-03-05 Tom Tromey <tromey@adacore.com>
10300
10301 * python/py-prettyprint.c (print_string_repr): Remove #if.
10302 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
10303
06b5b831
TT
103042019-03-05 Tom Tromey <tromey@adacore.com>
10305
10306 * target.c (the_dummy_target): Move later. Change type to
10307 "dummy_target".
10308 (initialize_targets): Don't initialize the_dummy_target.
10309
edbd9e45
TT
103102019-03-05 Tom Tromey <tromey@adacore.com>
10311
10312 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
10313 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
10314
c119e040
TT
103152019-03-05 Tom Tromey <tromey@adacore.com>
10316
10317 * windows-nat.c (windows_nat_target::attach)
10318 (windows_nat_target::detach): Don't call gdb_flush.
10319 * valprint.c (generic_val_print, val_print, val_print_string):
10320 Don't call gdb_flush.
10321 * utils.c (defaulted_query): Don't call gdb_flush.
10322 * typeprint.c (print_type_scalar): Don't call gdb_flush.
10323 * target.c (target_announce_detach): Don't call gdb_flush.
10324 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
10325 * remote.c (extended_remote_target::attach): Don't call
10326 gdb_flush.
10327 * procfs.c (procfs_target::detach): Don't call gdb_flush.
10328 * printcmd.c (do_examine): Don't call gdb_flush.
10329 (info_display_command): Don't call gdb_flush.
10330 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
10331 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
10332 * memattr.c (info_mem_command): Don't call gdb_flush.
10333 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
10334 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
10335 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
10336 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
10337 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
10338 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
10339 (gnu_nat_target::detach): Don't call gdb_flush.
10340 * f-valprint.c (f_val_print): Don't call gdb_flush.
10341 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
10342 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
10343 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
10344 gdb_flush.
10345 * c-valprint.c (c_val_print): Don't call gdb_flush.
10346 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
10347
895dafa6
TT
103482019-03-05 Tom Tromey <tromey@adacore.com>
10349
10350 * varobj.c (update_dynamic_varobj_children): Update.
10351 (install_default_visualizer): Use reset, not release.
10352 * value.c (set_internalvar): Update.
10353 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
10354 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
10355 ATTRIBUTE_UNUSED_RESULT.
10356
88a774b9
TT
103572019-03-05 Tom Tromey <tromey@adacore.com>
10358
10359 * remote.c (class scoped_remote_fd) <release>: Add
10360 ATTRIBUTE_UNUSED_RESULT.
10361
4e4a8b93
TT
103622019-03-05 Tom Tromey <tromey@adacore.com>
10363
10364 * macroexp.c (struct macro_buffer) <release>: Add
10365 ATTRIBUTE_UNUSED_RESULT.
10366
083eef1f
TT
103672019-03-05 Tom Tromey <tromey@adacore.com>
10368
10369 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
10370 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
10371 ATTRIBUTE_UNUSED_RESULT.
10372
3cabd438
TT
103732019-03-05 Tom Tromey <tromey@adacore.com>
10374
10375 * common/scoped_fd.h (class scoped_fd) <release>: Add
10376 ATTRIBUTE_UNUSED_RESULT.
10377
41e3300a
TT
103782019-03-05 Tom Tromey <tromey@adacore.com>
10379
10380 * parser-defs.h (struct parser_state) <release>: Add
10381 ATTRIBUTE_UNUSED_RESULT.
10382
18cb7c9f
TT
103832019-03-05 Tom Tromey <tromey@adacore.com>
10384
10385 * utils.h (class gdb_argv) <release>: Add
10386 ATTRIBUTE_UNUSED_RESULT.
10387 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
10388
41fa577f
EZ
103892019-03-02 Eli Zaretskii <eliz@gnu.org>
10390
a6a4b2c6
EZ
10391 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
10392 for-loop range, to avoid compiler warnings.
10393
10394 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
10395 avoid compiler warnings about unused variables.
10396
742a7df5
EZ
10397 * NEWS: Mention end of support for native debugging on MS-Windows
10398 before XP.
10399
41fa577f
EZ
10400 PR gdb/24292
10401 * common/netstuff.c:
10402 * gdbserver/gdbreplay.c
10403 * gdbserver/remote-utils.c:
10404 * ser-tcp.c:
10405 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
10406 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
10407 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
10408 'getaddrinfo' and 'freeaddrinfo' were not available before
10409 Windows XP, and mingw.org's MinGW headers by default define
10410 _WIN32_WINNT to 0x500.
10411
827f438f
GB
104122019-03-01 Gary Benson <gbenson@redhat.com>
10413
10414 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
10415
92137da0
RO
104162019-02-28 Brian Vandenberg <phantall@gmail.com>
10417 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10418
10419 PR gdb/8527
10420 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
10421 set_sigint_trap, clear_sigint_trap.
10422
799efbe8
PW
104232019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10424
10425 * target.c (target_detach): Clear the regcache and the
10426 frame cache.
10427
8ed25214
PA
104282019-02-27 Pedro Alves <palves@redhat.com>
10429
10430 * utils.c (set_screen_size): When we cap the height/width sizes,
10431 tweak the corresponding command variable to show "unlimited":
10432
23031e31
SJ
104332019-02-27 Saagar Jha <saagar@saagarjha.com>
10434 Pedro Alves <palves@redhat.com>
10435
10436 * utils.c (set_screen_size): Reduce "infinite" rows and columns
10437 before calling rl_set_screen_size.
10438
6c28e44a
TT
104392019-02-27 Tom Tromey <tromey@adacore.com>
10440
10441 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
10442 define.
10443 * python/py-value.c: Remove Python 2.4 workaround.
10444 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
10445 workaround.
10446 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
10447 Python 2.4 workaround.
10448 * python/python-internal.h: Remove Python 2.4 comment.
10449 (Py_ssize_t): Don't define.
10450 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
10451 (gdb_Py_DECREF): Remove Python 2.4 workaround.
10452 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
10453 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
10454 * python/python.c (do_start_initialization): Remove Python 2.4
10455 workaround.
10456 * python/py-prettyprint.c (class dummy_python_frame): Remove.
10457 (print_children): Remove Python 2.4 workaround.
10458 * python/py-inferior.c (buffer_procs): Remove Python 2.4
10459 workaround.
10460 (CHARBUFFERPROC_NAME): Remove.
10461 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
10462 Python 2.4 workaround.
10463
2c3fc25d 104642019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 10465
2c3fc25d
KB
10466 * NEWS: Note minimum Python version.
10467
6ca62222
KB
104682019-02-27 Kevin Buettner <kevinb@redhat.com>
10469
10470 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
10471 code from these functions. Remove corresponding ifdefs. Use
10472 Py_buffer_up instead of explicit calls to PyBuffer_Release.
10473 Remove gotos and target of gotos.
10474 (infpy_search_memory): Likewise.
10475
f4bc7d2c
AB
104762019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10477
10478 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
10479 (hppa_gdbarch_init): Don't register deleted functions with
10480 gdbarch.
10481
9734a586
AB
104822019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10483
10484 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
10485 (h8300_unwind_sp): Delete.
10486 (h8300_dummy_id): Delete.
10487 (h8300_gdbarch_init): Don't register deleted functions with
10488 gdbarch.
10489
68b867f3
AB
104902019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10491
10492 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
10493 (ft32_unwind_pc): Delete.
10494 (ft32_unwind_sp): Delete.
10495 (ft32_gdbarch_init): Don't register deleted functions with
10496 gdbarch.
10497
2fbe7ad0
AB
104982019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10499
10500 * gdb/frv-tdep.c (frv_dummy_id): Delete.
10501 (frv_unwind_pc): Delete.
10502 (frv_unwind_sp): Delete.
10503 (frv_gdbarch_init): Don't register deleted functions with
10504 gdbarch.
10505
76055cbe
AB
105062019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10507
10508 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
10509 (riscv_unwind_pc): Delete.
10510 (riscv_unwind_sp): Delete.
10511 (riscv_gdbarch_init): Don't register deleted functions with
10512 gdbarch.
10513
4133e5a1
AB
105142019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10515
10516 * gdb/csky-tdep.c (csky_dummy_id): Delete.
10517 (csky_unwind_pc): Delete.
10518 (csky_unwind_sp): Delete.
10519 (csky_gdbarch_init): Don't register deleted functions with
10520 gdbarch.
10521
8010f576
AB
105222019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10523
10524 * gdb/cris-tdep.c (cris_dummy_id): Delete.
10525 (cris_unwind_pc): Delete.
10526 (cris_unwind_sp): Delete.
10527 (cris_gdbarch_init): Don't register deleted functions with
10528 gdbarch.
10529
b56bf084
AB
105302019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10531
10532 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
10533 (bfin_unwind_pc): Delete.
10534 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
10535
a19a650f
AB
105362019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10537
10538 * gdb/arm-tdep.c (arm_dummy_id): Delete.
10539 (arm_unwind_pc): Delete.
10540 (arm_unwind_sp): Delete.
10541 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
10542
f8278c3c
AB
105432019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10544
10545 * gdb/arc-tdep.c (arc_dummy_id): Delete.
10546 (arc_unwind_pc): Delete.
10547 (arc_unwind_sp): Delete.
10548 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
10549
480e46cf
AB
105502019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10551
10552 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
10553 (alpha_unwind_pc): Delete.
10554 (alpha_gdbarch_init): Don't register deleted functions with
10555 gdbarch.
10556
7a995095
AB
105572019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10558
10559 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
10560 (aarch64_unwind_pc): Delete.
10561 (aarch64_unwind_sp): Delete.
10562 (aarch64_gdbarch_init): Don't register deleted functions with
10563 gdbarch.
10564
bf9a735e
AB
105652019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10566
10567 * gdbtypes.c (type_align): Don't consider static members when
10568 computing structure alignment.
10569
5561fc30
AB
105702019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10571
10572 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
10573 return 0 for other types.
10574 * arch-utils.c (default_type_align): Always return 0.
10575 * gdbarch.h: Regenerate.
10576 * gdbarch.sh (type_align): Extend comment.
10577 * gdbtypes.c (type_align): Add additional comments, always call
10578 gdbarch_type_align before applying the default rules.
10579 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
10580 generic code will then apply a suitable default.
10581 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
10582 types, return 0 for other types.
10583
9335e75a
JB
105842019-02-27 Joel Brobecker <brobecker@adacore.com>
10585
10586 * NEWS: Create a new section for the next release branch.
10587 Rename the section of the current branch, now that it has
10588 been cut.
10589
3d34d8de
JB
105902019-02-27 Joel Brobecker <brobecker@adacore.com>
10591
10592 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
10593 * version.in: Bump version to 8.3.50.DATE-git.
10594
143420fb
SM
105952019-02-26 Simon Marchi <simon.marchi@efficios.com>
10596
10597 * aix-thread.c (ptid_cmp): Remove unused variable.
10598 (get_signaled_thread): Likewise.
10599 (store_regs_user_thread): Likewise.
10600 (store_regs_kernel_thread): Likewise.
10601 (fetch_regs_kernel_thread): Remove shadowed variable.
10602
172fb711
AB
106032019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
10604
10605 * features/riscv/32bit-cpu.xml: Add register numbers.
10606 * features/riscv/32bit-fpu.c: Regenerate.
10607 * features/riscv/32bit-fpu.xml: Add register numbers.
10608 * features/riscv/64bit-cpu.xml: Add register numbers.
10609 * features/riscv/64bit-fpu.c: Regenerate.
10610 * features/riscv/64bit-fpu.xml: Add register numbers.
10611
26c89782
KB
106122019-02-26 Kevin Buettner <kevinb@redhat.com>
10613
af54ade9 10614 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
10615 * python/py-value.c (convert_buffer_and_type_to_value): New
10616 function.
10617 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
10618 Add support for handling an optional second argument. Call
10619 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
10620 * python/python-internal.h (Py_buffer_deleter): New struct.
10621 (Py_buffer_up): New typedef.
10622
0f58c9e8
JB
106232019-02-25 John Baldwin <jhb@FreeBSD.org>
10624
10625 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
10626 instead of releasing ownership.
10627
0a0f4c01
JR
106282019-02-25 Jordan Rupprecht <rupprecht@google.com>
10629
10630 * dwarf2read.c (open_and_init_dwp_file): Call
10631 elf_numsections instead of bfd_count_sections to initialize
10632 dwp_file->num_sections.
10633
cd5a152c
TT
106342019-02-25 Tom Tromey <tromey@adacore.com>
10635
10636 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
10637
8a6a8513
SDJ
106382019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
10639
10640 * gcore.in: Add '--readnever' option when invoking GDB.
10641
04dcda9c
SM
106422019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10643
10644 * MAINTAINERS: Update my email address.
10645
07bc701d
SM
106462019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10647
10648 * build-id.c (build_id_to_debug_bfd_1): New function.
10649 (build_id_to_debug_bfd): Look for separate debug file in
10650 sysroot.
10651
c6f4a5d0
AB
106522019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
10653
10654 * gdbarch.sh: Update the copyright year range that is placed into
10655 generated files.
10656
9600246d
KS
106572019-02-22 Keith Seitz <keiths@redhat.com>
10658
10659 PR symtab/23853
10660 * linespec.c (create_sals_line_offset): Search for the default
10661 symtab's filename instead of its fullname.
10662
7557a514
AH
106632019-02-21 Alan Hayward <alan.hayward@arm.com>
10664
10665 * NEWS: Update style defaults.
10666
ee2bcb0c
AH
106672019-02-21 Alan Hayward <alan.hayward@arm.com>
10668
10669 * main.c (captured_main_1): Disable styling in batch mode.
10670
0c95f9ed
TT
106712019-02-20 Tom Tromey <tom@tromey.com>
10672
10673 * symtab.c (symtab_symbol_info): Fix typos.
10674
c763b894
TT
106752019-02-20 Tom Tromey <tromey@adacore.com>
10676
10677 * findcmd.c (_initialize_mem_search): Use upper case for
10678 metasyntactic variables.
10679
0ef8a082
AH
106802019-02-20 Alan Hayward <alan.hayward@arm.com>
10681
10682 * aarch64-tdep.c (aarch64_add_reggroups): New function.
10683 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
10684
6caa91b6
SM
106852019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
10686
10687 * top.h (source_file_name): Change to std::string.
10688 * top.c (source_file_name): Likewise.
10689 (command_line_input): Adjust.
10690 * cli/cli-script.c (script_from_file): Adjust.
10691
98814c6c
TT
106922019-02-19 Tom Tromey <tromey@adacore.com>
10693
10694 * ravenscar-thread.c
10695 (ravenscar_thread_target::update_thread_list): Don't call
10696 ada_build_task_list.
10697 * ada-lang.h (ada_build_task_list): Don't declare.
10698 * ada-tasks.c (struct ada_tasks_inferior_data)
10699 <task_list_valid_p>: Now bool.
10700 (read_known_tasks, ada_task_list_changed)
10701 (ada_tasks_invalidate_inferior_data): Update.
10702 (read_known_tasks_array): Return bool.
10703 (read_known_tasks_list): Likewise.
10704 (read_known_tasks): Return void.
10705 (ada_build_task_list): Now static.
10706
70cd633e
AB
107072019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
10708
10709 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
10710 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
10711
040b3e95
PW
107122019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10713
10714 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
10715 variant for ada_tasks_pspace_data_handle and
10716 ada_tasks_inferior_data_handle.
10717 (ada_tasks_pspace_data_cleanup): New function.
10718 (ada_tasks_inferior_data_cleanup): New function.
10719
9409233b
TT
107202019-02-17 Tom Tromey <tom@tromey.com>
10721
10722 * macrotab.h (macro_source_fullname): Return a std::string.
10723 * macrotab.c (macro_include, check_for_redefinition)
10724 (macro_undef, macro_lookup_definition, foreach_macro)
10725 (foreach_macro_in_scope): Update.
10726 (macro_source_fullname): Return a std::string.
10727 * macrocmd.c (show_pp_source_pos): Update.
10728
6506371f
TT
107292019-02-17 Tom Tromey <tom@tromey.com>
10730
10731 * macrocmd.c (show_pp_source_pos): Style the file names.
10732
0c820d67
TT
107332019-02-17 Tom Tromey <tom@tromey.com>
10734
10735 PR tui/24197:
10736 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
10737
a0087920
TT
107382019-02-17 Tom Tromey <tom@tromey.com>
10739
10740 * ada-lang.c (user_select_syms): Use filtered printing.
10741 * utils.c (wrap_style): New global.
10742 (desired_style): Remove.
10743 (emit_style_escape): Add stream parameter.
10744 (set_output_style, reset_terminal_style, prompt_for_continue):
10745 Update.
10746 (flush_wrap_buffer): Only flush gdb_stdout.
10747 (wrap_here): Set wrap_style.
10748 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
10749 treat escape sequences as a character. Change when wrap buffer is
10750 flushed.
10751 (fputs_styled): Do not set the output style when the default is
10752 requested.
10753 * ui-style.h (struct ui_file_style) <is_default>: New method.
10754 * source.c (print_source_lines_base): Emit escape sequences in one
10755 piece.
10756
75ba10dc
JB
107572019-02-17 Joel Brobecker <brobecker@adacore.com>
10758
10759 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
10760 integers and enumeration types.
10761
a2cd4f14
JB
107622019-02-17 Joel Brobecker <brobecker@adacore.com>
10763
10764 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
10765 instead of lookup_symbol_in_language
10766 (do_exact_match): New function.
10767 (ada_get_symbol_name_matcher): Return do_exact_match when
10768 doing a verbatim match.
10769
485b851b
TT
107702019-02-15 Tom Tromey <tromey@adacore.com>
10771
10772 * ravenscar-thread.c (ravenscar_thread_target::resume)
10773 (ravenscar_thread_target::wait): Special case wildcard requests.
10774
0b790b1e
TT
107752019-02-15 Tom Tromey <tromey@adacore.com>
10776
10777 * ravenscar-thread.c (base_ptid): Remove.
10778 (struct ravenscar_thread_target) <close>: New method.
10779 <m_base_ptid>: New member.
10780 <update_inferior_ptid, active_task, task_is_currently_active,
10781 runtime_initialized>: Declare methods.
10782 <ravenscar_thread_target>: Add constructor.
10783 (ravenscar_thread_target::task_is_currently_active)
10784 (ravenscar_thread_target::update_inferior_ptid)
10785 (ravenscar_runtime_initialized): Rename. Now methods.
10786 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
10787 (ravenscar_thread_target::update_thread_list): Update.
10788 (ravenscar_thread_target::active_task): Now method.
10789 (ravenscar_thread_target::store_registers)
10790 (ravenscar_thread_target::prepare_to_store)
10791 (ravenscar_thread_target::prepare_to_store)
10792 (ravenscar_thread_target::mourn_inferior): Update.
10793 (ravenscar_inferior_created): Use "new" to create target.
10794 (ravenscar_thread_target::get_ada_task_ptid): Update.
10795 (_initialize_ravenscar): Don't initialize base_ptid.
10796 (ravenscar_ops): Remove global.
10797
dea57a62
TT
107982019-02-15 Tom Tromey <tromey@adacore.com>
10799
10800 * target.h (push_target): Declare new overload.
10801 * target.c (push_target): New overload, taking an rvalue reference.
10802 * remote.c (remote_target::open_1): Use push_target overload.
10803 * corelow.c (core_target_open): Use push_target overload.
10804
989f3c58
TT
108052019-02-15 Tom Tromey <tromey@adacore.com>
10806
10807 * ravenscar-thread.c (is_ravenscar_task)
10808 (ravenscar_task_is_currently_active): Return bool.
10809 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
10810 (_initialize_ravenscar): Remove "(void)".
10811 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
10812 Return bool.
10813
6cbcc006
TT
108142019-02-15 Tom Tromey <tromey@adacore.com>
10815
10816 * ravenscar-thread.c (ravenscar_runtime_initializer)
10817 (has_ravenscar_runtime, get_running_thread_id)
10818 (ravenscar_thread_target::resume): Fix indentation.
10819
7657f14d
TT
108202019-02-15 Tom Tromey <tromey@adacore.com>
10821
10822 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
10823 from ravenscar_arch_ops.
10824 (sparc_ravenscar_ops::fetch_registers)
10825 (sparc_ravenscar_ops::store_registers): Now methods.
10826 (sparc_ravenscar_prepare_to_store): Remove.
10827 (sparc_ravenscar_ops): Redefine.
10828 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
10829 methods and destructor. Remove members.
10830 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
10831 (ravenscar_thread_target::store_registers)
10832 (ravenscar_thread_target::prepare_to_store): Update.
10833 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
10834 Remove.
10835 (struct ppc_ravenscar_powerpc_ops): Derive from
10836 ravenscar_arch_ops.
10837 (ppc_ravenscar_powerpc_ops::fetch_registers)
10838 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
10839 (ppc_ravenscar_powerpc_ops): Redefine.
10840 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
10841 (ppc_ravenscar_e500_ops::fetch_registers)
10842 (ppc_ravenscar_e500_ops::store_registers): Now methods.
10843 (ppc_ravenscar_e500_ops): Redefine.
10844 * aarch64-ravenscar-thread.c
10845 (aarch64_ravenscar_generic_prepare_to_store): Remove.
10846 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
10847 (aarch64_ravenscar_fetch_registers)
10848 (aarch64_ravenscar_store_registers): Now methods.
10849 (aarch64_ravenscar_ops): Redefine.
10850
5b6ea500
TT
108512019-02-15 Tom Tromey <tromey@adacore.com>
10852
10853 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
10854 (ravenscar_thread_target::stopped_by_hw_breakpoint)
10855 (ravenscar_thread_target::stopped_by_watchpoint)
10856 (ravenscar_thread_target::stopped_data_address)
10857 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
10858
e397fd39
TT
108592019-02-15 Tom Tromey <tromey@adacore.com>
10860
10861 * ravenscar-thread.c: Fix some typos.
10862
cc12f4a8
TT
108632019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10864 Tom Tromey <tromey@adacore.com>
10865
10866 * ada-lang.c (ada_exception_sal): Change addr_string to a
10867 std::string.
10868 (create_ada_exception_catchpoint): Update.
10869
5f486660
TT
108702019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10871 Tom Tromey <tromey@adacore.com>
10872
10873 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
10874 (bp_location_ops): Remove.
10875 (base_breakpoint_allocate_location): Update.
10876 (free_bp_location): Update.
10877 * ada-lang.c (class ada_catchpoint_location)
10878 <ada_catchpoint_location>: Remove ops parameter.
10879 (ada_catchpoint_location_dtor): Remove.
10880 (ada_catchpoint_location_ops): Remove.
10881 (allocate_location_exception): Update.
10882 * breakpoint.h (struct bp_location_ops): Remove.
10883 (class bp_location) <bp_location>: Remove bp_location_ops
10884 parameter.
10885 <~bp_location>: Add destructor.
10886 <ops>: Remove.
10887
b671c7fb
TS
108882019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10889 Pedro Alves <palves@redhat.com>
10890
10891 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
10892 'PATH_MAX'.
10893
8071c5ce
DM
108942019-02-14 David Michael <fedora.dm0@gmail.com>
10895 Samuel Thibault <samuel.thibault@gnu.org>
10896 Thomas Schwinge <thomas@codesourcery.com>
10897
10898 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
10899 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
10900
b1041ae0
TS
109012019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10902
924514e1
TS
10903 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
10904 (check_empty): Use "const char *".
10905
c29ee8d4
TS
10906 * gnu-nat.c (gnu_nat_target::detach): Instead of
10907 'detach_inferior (pid)' call
10908 'detach_inferior (find_inferior_pid (pid))'.
10909
6c6ef69f
TS
10910 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
10911 'nat/fork-inferior.o'.
10912 * gnu-nat.c: #include "nat/fork-inferior.h".
10913
2d0a338c
TS
10914 * gnu-nat.c (gnu_nat_target::detach): Instead of
10915 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
10916 * gnu-nat.h: #include "inf-child.h".
10917 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
10918 'i386_gnu_nat_target::fetch_registers'.
10919 (gnu_store_registers): Rename/move to
10920 'i386_gnu_nat_target::store_registers'.
10921
cabb5f06
TS
10922 * config/i386/nm-i386gnu.h: Don't "#include" any files.
10923 * gnu-nat.h (mach_thread_info): New function.
10924 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
10925
b1041ae0
TS
10926 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
10927
2988d01e
KF
109282019-02-14 Frederic Konrad <konrad@adacore.com>
10929
10930 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
10931
c559d709
JB
109322019-02-14 Joel Brobecker <brobecker@adacore.com>
10933
10934 * windows-nat.c (windows_add_thread): Add new parameter
10935 "main_thread_p" with default value set to false. Update
10936 function documentation as well as all callers.
10937 (windows_delete_thread): Likewise.
10938 (fake_create_process): Update call to windows_add_thread.
10939 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
10940 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
10941 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
10942 call to windows_delete_thread.
10943
007024cc
SM
109442019-02-13 Simon Marchi <simon.marchi@ericsson.com>
10945
10946 * MAINTAINERS: Add Andrew Burgess as global maintainer.
10947
f62318e9
JB
109482019-02-12 John Baldwin <jhb@FreeBSD.org>
10949
10950 * symfile.c (find_separate_debug_file): Use canonical path of
10951 sysroot with child_path instead of gdb_sysroot if it is valid.
10952
cd4b7848
JB
109532019-02-12 John Baldwin <jhb@FreeBSD.org>
10954
10955 * symfile.c (find_separate_debug_file): Use child_path to
10956 determine if an object file is under a sysroot.
10957
efac4bfe
JB
109582019-02-12 John Baldwin <jhb@FreeBSD.org>
10959
10960 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10961 unittests/child-path-selftests.c.
10962 * common/pathstuff.c (child_path): New function.
10963 * common/pathstuff.h (child_path): New prototype.
10964 * unittests/child-path-selftests.c: New file.
10965
402d2bfe
JB
109662019-02-12 John Baldwin <jhb@FreeBSD.org>
10967
10968 * symfile.c (find_separate_debug_file): Look for separate debug
10969 files in debug directories under the sysroot.
10970
1ed9f74e
PW
109712019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10972
10973 * symtab.h (struct minimal_symbol data_p): New const method.
10974 (struct minimal_symbol text_p): Likewise.
10975 * symtab.c (output_source_filename): Use file name style
10976 to print file name.
10977 (print_symbol_info): Likewise.
10978 (print_msymbol_info): Use address style to print addresses.
10979 Use function name style to print executable text symbols.
10980 (expand_symtab_containing_pc): Use data_p.
10981 (find_pc_sect_compunit_symtab): Likewise.
10982
2636d81d
PW
109832019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10984
10985 * breakpoint.c (describe_other_breakpoints): Use address style
10986 to print addresses.
10987 (say_where): Likewise.
10988
ac8c53cc
PW
109892019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10990
10991 * ada-typeprint.c (print_func_type): Print function name
10992 style to print function name.
10993 * c-typeprint.c (c_print_type_1): Likewise.
10994
ea638c43
AH
109952019-02-11 Alan Hayward <alan.hayward@arm.com>
10996
10997 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
10998 for execve.
10999
ab759ca8
PW
110002019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11001
11002 * c-exp.y (direct_abs_decl): Use emplace_back to record the
11003 type_stack.
11004
aff29d1c
JB
110052019-02-10 Joel Brobecker <brobecker@adacore.com>
11006
11007 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
11008 TYPE_CODE_REF types.
11009
617126bc
JW
110102019-02-08 Jim Wilson <jimw@sifive.com>
11011
11012 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
11013 (riscv_linux_fregset): New.
11014 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
11015
46e3ed7f
TT
110162019-02-07 Tom Tromey <tom@tromey.com>
11017
11018 * thread.c (thread_cancel_execution_command): Update.
11019 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
11020 methods.
11021 (struct thread_fsm_ops): Remove.
11022 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
11023 (thread_fsm_should_stop, thread_fsm_return_value)
11024 (thread_fsm_set_finished, thread_fsm_finished_p)
11025 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
11026 Don't declare.
11027 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
11028 * infrun.c (clear_proceed_status_thread)
11029 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
11030 (print_stop_event): Update.
11031 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
11032 Add constructor.
11033 (step_command_fsm_ops): Remove.
11034 (new_step_command_fsm): Remove.
11035 (step_1): Update.
11036 (step_command_fsm::should_stop): Rename from
11037 step_command_fsm_should_stop.
11038 (step_command_fsm::clean_up): Rename from
11039 step_command_fsm_clean_up.
11040 (step_command_fsm::do_async_reply_reason): Rename from
11041 step_command_fsm_async_reply_reason.
11042 (struct until_next_fsm): Inherit from thread_fsm. Add
11043 constructor.
11044 (until_next_fsm_ops): Remove.
11045 (new_until_next_fsm): Remove.
11046 (until_next_fsm::should_stop): Rename from
11047 until_next_fsm_should_stop.
11048 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
11049 (until_next_fsm::do_async_reply_reason): Rename from
11050 until_next_fsm_async_reply_reason.
11051 (struct finish_command_fsm): Inherit from thread_fsm. Add
11052 constructor. Change type of breakpoint.
11053 (finish_command_fsm_ops): Remove.
11054 (new_finish_command_fsm): Remove.
11055 (finish_command_fsm::should_stop): Rename from
11056 finish_command_fsm_should_stop.
11057 (finish_command_fsm::clean_up): Rename from
11058 finish_command_fsm_clean_up.
11059 (finish_command_fsm::return_value): Rename from
11060 finish_command_fsm_return_value.
11061 (finish_command_fsm::do_async_reply_reason): Rename from
11062 finish_command_fsm_async_reply_reason.
11063 (finish_command): Update.
11064 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
11065 Add constructor.
11066 (call_thread_fsm_ops): Remove.
11067 (call_thread_fsm::call_thread_fsm): Rename from
11068 new_call_thread_fsm.
11069 (call_thread_fsm::should_stop): Rename from
11070 call_thread_fsm_should_stop.
11071 (call_thread_fsm::should_notify_stop): Rename from
11072 call_thread_fsm_should_notify_stop.
11073 (run_inferior_call, call_function_by_hand_dummy): Update.
11074 * cli/cli-interp.c (should_print_stop_to_console): Update.
11075 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
11076 Add constructor. Change type of location_breakpoint,
11077 caller_breakpoint.
11078 (until_break_fsm_ops): Remove.
11079 (new_until_break_fsm): Remove.
11080 (until_break_fsm::should_stop): Rename from
11081 until_break_fsm_should_stop.
11082 (until_break_fsm::clean_up): Rename from
11083 until_break_fsm_clean_up.
11084 (until_break_fsm::do_async_reply_reason): Rename from
11085 until_break_fsm_async_reply_reason.
11086 (until_break_command): Update.
11087 * thread-fsm.c: Remove.
11088 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
11089
1a5c2598
TT
110902019-02-07 Tom Tromey <tom@tromey.com>
11091
11092 * yy-remap.h: Add include guard.
11093 * xtensa-tdep.h: Add include guard.
11094 * xcoffread.h: Rename include guard.
11095 * varobj-iter.h: Add include guard.
11096 * tui/tui.h: Rename include guard.
11097 * tui/tui-winsource.h: Rename include guard.
11098 * tui/tui-wingeneral.h: Rename include guard.
11099 * tui/tui-windata.h: Rename include guard.
11100 * tui/tui-win.h: Rename include guard.
11101 * tui/tui-stack.h: Rename include guard.
11102 * tui/tui-source.h: Rename include guard.
11103 * tui/tui-regs.h: Rename include guard.
11104 * tui/tui-out.h: Rename include guard.
11105 * tui/tui-layout.h: Rename include guard.
11106 * tui/tui-io.h: Rename include guard.
11107 * tui/tui-hooks.h: Rename include guard.
11108 * tui/tui-file.h: Rename include guard.
11109 * tui/tui-disasm.h: Rename include guard.
11110 * tui/tui-data.h: Rename include guard.
11111 * tui/tui-command.h: Rename include guard.
11112 * tic6x-tdep.h: Add include guard.
11113 * target/waitstatus.h: Rename include guard.
11114 * target/wait.h: Rename include guard.
11115 * target/target.h: Rename include guard.
11116 * target/resume.h: Rename include guard.
11117 * target-float.h: Rename include guard.
11118 * stabsread.h: Add include guard.
11119 * rs6000-tdep.h: Add include guard.
11120 * riscv-fbsd-tdep.h: Add include guard.
11121 * regformats/regdef.h: Rename include guard.
11122 * record.h: Rename include guard.
11123 * python/python.h: Rename include guard.
11124 * python/python-internal.h: Rename include guard.
11125 * python/py-stopevent.h: Rename include guard.
11126 * python/py-ref.h: Rename include guard.
11127 * python/py-record.h: Rename include guard.
11128 * python/py-record-full.h: Rename include guard.
11129 * python/py-record-btrace.h: Rename include guard.
11130 * python/py-instruction.h: Rename include guard.
11131 * python/py-events.h: Rename include guard.
11132 * python/py-event.h: Rename include guard.
11133 * procfs.h: Add include guard.
11134 * proc-utils.h: Add include guard.
11135 * p-lang.h: Add include guard.
11136 * or1k-tdep.h: Rename include guard.
11137 * observable.h: Rename include guard.
11138 * nto-tdep.h: Rename include guard.
11139 * nat/x86-linux.h: Rename include guard.
11140 * nat/x86-linux-dregs.h: Rename include guard.
11141 * nat/x86-gcc-cpuid.h: Add include guard.
11142 * nat/x86-dregs.h: Rename include guard.
11143 * nat/x86-cpuid.h: Rename include guard.
11144 * nat/ppc-linux.h: Rename include guard.
11145 * nat/mips-linux-watch.h: Rename include guard.
11146 * nat/linux-waitpid.h: Rename include guard.
11147 * nat/linux-ptrace.h: Rename include guard.
11148 * nat/linux-procfs.h: Rename include guard.
11149 * nat/linux-osdata.h: Rename include guard.
11150 * nat/linux-nat.h: Rename include guard.
11151 * nat/linux-namespaces.h: Rename include guard.
11152 * nat/linux-btrace.h: Rename include guard.
11153 * nat/glibc_thread_db.h: Rename include guard.
11154 * nat/gdb_thread_db.h: Rename include guard.
11155 * nat/gdb_ptrace.h: Rename include guard.
11156 * nat/fork-inferior.h: Rename include guard.
11157 * nat/amd64-linux-siginfo.h: Rename include guard.
11158 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
11159 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
11160 * nat/aarch64-linux.h: Rename include guard.
11161 * nat/aarch64-linux-hw-point.h: Rename include guard.
11162 * mn10300-tdep.h: Add include guard.
11163 * mips-linux-tdep.h: Add include guard.
11164 * mi/mi-parse.h: Rename include guard.
11165 * mi/mi-out.h: Rename include guard.
11166 * mi/mi-main.h: Rename include guard.
11167 * mi/mi-interp.h: Rename include guard.
11168 * mi/mi-getopt.h: Rename include guard.
11169 * mi/mi-console.h: Rename include guard.
11170 * mi/mi-common.h: Rename include guard.
11171 * mi/mi-cmds.h: Rename include guard.
11172 * mi/mi-cmd-break.h: Rename include guard.
11173 * m2-lang.h: Add include guard.
11174 * location.h: Rename include guard.
11175 * linux-record.h: Rename include guard.
11176 * linux-nat.h: Add include guard.
11177 * linux-fork.h: Add include guard.
11178 * i386-darwin-tdep.h: Rename include guard.
11179 * hppa-linux-offsets.h: Add include guard.
11180 * guile/guile.h: Rename include guard.
11181 * guile/guile-internal.h: Rename include guard.
11182 * gnu-nat.h: Rename include guard.
11183 * gdb-stabs.h: Rename include guard.
11184 * frv-tdep.h: Add include guard.
11185 * f-lang.h: Add include guard.
11186 * event-loop.h: Add include guard.
11187 * darwin-nat.h: Rename include guard.
11188 * cp-abi.h: Rename include guard.
11189 * config/sparc/nm-sol2.h: Rename include guard.
11190 * config/nm-nto.h: Rename include guard.
11191 * config/nm-linux.h: Add include guard.
11192 * config/i386/nm-i386gnu.h: Rename include guard.
11193 * config/djgpp/nl_types.h: Rename include guard.
11194 * config/djgpp/langinfo.h: Rename include guard.
11195 * compile/gcc-cp-plugin.h: Add include guard.
11196 * compile/gcc-c-plugin.h: Add include guard.
11197 * compile/compile.h: Rename include guard.
11198 * compile/compile-object-run.h: Rename include guard.
11199 * compile/compile-object-load.h: Rename include guard.
11200 * compile/compile-internal.h: Rename include guard.
11201 * compile/compile-cplus.h: Rename include guard.
11202 * compile/compile-c.h: Rename include guard.
11203 * common/xml-utils.h: Rename include guard.
11204 * common/x86-xstate.h: Rename include guard.
11205 * common/version.h: Rename include guard.
11206 * common/vec.h: Rename include guard.
11207 * common/tdesc.h: Rename include guard.
11208 * common/selftest.h: Rename include guard.
11209 * common/scoped_restore.h: Rename include guard.
11210 * common/scoped_mmap.h: Rename include guard.
11211 * common/scoped_fd.h: Rename include guard.
11212 * common/safe-iterator.h: Rename include guard.
11213 * common/run-time-clock.h: Rename include guard.
11214 * common/refcounted-object.h: Rename include guard.
11215 * common/queue.h: Rename include guard.
11216 * common/ptid.h: Rename include guard.
11217 * common/print-utils.h: Rename include guard.
11218 * common/preprocessor.h: Rename include guard.
11219 * common/pathstuff.h: Rename include guard.
11220 * common/observable.h: Rename include guard.
11221 * common/netstuff.h: Rename include guard.
11222 * common/job-control.h: Rename include guard.
11223 * common/host-defs.h: Rename include guard.
11224 * common/gdb_wait.h: Rename include guard.
11225 * common/gdb_vecs.h: Rename include guard.
11226 * common/gdb_unlinker.h: Rename include guard.
11227 * common/gdb_unique_ptr.h: Rename include guard.
11228 * common/gdb_tilde_expand.h: Rename include guard.
11229 * common/gdb_sys_time.h: Rename include guard.
11230 * common/gdb_string_view.h: Rename include guard.
11231 * common/gdb_splay_tree.h: Rename include guard.
11232 * common/gdb_setjmp.h: Rename include guard.
11233 * common/gdb_ref_ptr.h: Rename include guard.
11234 * common/gdb_optional.h: Rename include guard.
11235 * common/gdb_locale.h: Rename include guard.
11236 * common/gdb_assert.h: Rename include guard.
11237 * common/filtered-iterator.h: Rename include guard.
11238 * common/filestuff.h: Rename include guard.
11239 * common/fileio.h: Rename include guard.
11240 * common/environ.h: Rename include guard.
11241 * common/common-utils.h: Rename include guard.
11242 * common/common-types.h: Rename include guard.
11243 * common/common-regcache.h: Rename include guard.
11244 * common/common-inferior.h: Rename include guard.
11245 * common/common-gdbthread.h: Rename include guard.
11246 * common/common-exceptions.h: Rename include guard.
11247 * common/common-defs.h: Rename include guard.
11248 * common/common-debug.h: Rename include guard.
11249 * common/cleanups.h: Rename include guard.
11250 * common/buffer.h: Rename include guard.
11251 * common/btrace-common.h: Rename include guard.
11252 * common/break-common.h: Rename include guard.
11253 * cli/cli-utils.h: Rename include guard.
11254 * cli/cli-style.h: Rename include guard.
11255 * cli/cli-setshow.h: Rename include guard.
11256 * cli/cli-script.h: Rename include guard.
11257 * cli/cli-interp.h: Rename include guard.
11258 * cli/cli-decode.h: Rename include guard.
11259 * cli/cli-cmds.h: Rename include guard.
11260 * charset-list.h: Add include guard.
11261 * buildsym-legacy.h: Rename include guard.
11262 * bfin-tdep.h: Add include guard.
11263 * ax.h: Rename include guard.
11264 * arm-linux-tdep.h: Add include guard.
11265 * arm-fbsd-tdep.h: Add include guard.
11266 * arch/xtensa.h: Rename include guard.
11267 * arch/tic6x.h: Add include guard.
11268 * arch/i386.h: Add include guard.
11269 * arch/arm.h: Rename include guard.
11270 * arch/arm-linux.h: Rename include guard.
11271 * arch/arm-get-next-pcs.h: Rename include guard.
11272 * arch/amd64.h: Add include guard.
11273 * arch/aarch64-insn.h: Rename include guard.
11274 * arch-utils.h: Rename include guard.
11275 * annotate.h: Add include guard.
11276 * amd64-darwin-tdep.h: Rename include guard.
11277 * aarch64-linux-tdep.h: Add include guard.
11278 * aarch64-fbsd-tdep.h: Add include guard.
11279 * aarch32-linux-nat.h: Add include guard.
11280
ab9268d2
PW
112812019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11282
11283 * macrotab.c (macro_define_internal): New function that
11284 factorizes macro_define_object_internal and macro_define_function
11285 code.
11286 (macro_define_object_internal): Use macro_define_internal.
11287 (macro_define_function): Likewise.
11288
bb0da2b4
PW
112892019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11290
11291 * macrocmd.c (extract_identifier): Return
11292 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
11293 callers.
11294
424eb552
JB
112952019-02-06 John Baldwin <jhb@FreeBSD.org>
11296
11297 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
11298
1688cb29
TT
112992019-02-05 Tom Tromey <tom@tromey.com>
11300
11301 * target.c (target_stack::unpush): Move assertion earlier.
11302
b5eba2d8
TT
113032019-01-30 Tom Tromey <tom@tromey.com>
11304
11305 PR python/23615:
11306 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
11307 (gdbpy_parse_and_eval): Likewise.
11308 * python/python-internal.h (gdbpy_allow_threads): New class.
11309
7054e2ff
JB
113102019-01-28 John Baldwin <jhb@FreeBSD.org>
11311
11312 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
11313 (aarch64_fbsd_fpregmap): Move earlier.
11314 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
11315 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11316 instead of individual calls to trad_frame_set_reg_addr.
11317 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
11318 earlier.
11319 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
11320 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11321 instead of individual calls to trad_frame_set_reg_addr.
11322
36c25ffa
AH
113232019-01-28 Alan Hayward <alan.hayward@arm.com>
11324
11325 * CONTRIBUTE: Replace contribution list with wiki link.
11326
a0707f3c
TT
113272019-01-25 Tom Tromey <tom@tromey.com>
11328
11329 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
11330
0747795c
TT
113312019-01-25 Tom Tromey <tom@tromey.com>
11332
11333 * xtensa-linux-nat.c: Fix common/ includes.
11334 * xml-support.h: Fix common/ includes.
11335 * xml-support.c: Fix common/ includes.
11336 * x86-linux-nat.c: Fix common/ includes.
11337 * windows-nat.c: Fix common/ includes.
11338 * varobj.h: Fix common/ includes.
11339 * varobj.c: Fix common/ includes.
11340 * value.c: Fix common/ includes.
11341 * valops.c: Fix common/ includes.
11342 * utils.c: Fix common/ includes.
11343 * unittests/xml-utils-selftests.c: Fix common/ includes.
11344 * unittests/utils-selftests.c: Fix common/ includes.
11345 * unittests/unpack-selftests.c: Fix common/ includes.
11346 * unittests/tracepoint-selftests.c: Fix common/ includes.
11347 * unittests/style-selftests.c: Fix common/ includes.
11348 * unittests/string_view-selftests.c: Fix common/ includes.
11349 * unittests/scoped_restore-selftests.c: Fix common/ includes.
11350 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
11351 * unittests/scoped_fd-selftests.c: Fix common/ includes.
11352 * unittests/rsp-low-selftests.c: Fix common/ includes.
11353 * unittests/parse-connection-spec-selftests.c: Fix common/
11354 includes.
11355 * unittests/optional-selftests.c: Fix common/ includes.
11356 * unittests/offset-type-selftests.c: Fix common/ includes.
11357 * unittests/observable-selftests.c: Fix common/ includes.
11358 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
11359 * unittests/memrange-selftests.c: Fix common/ includes.
11360 * unittests/memory-map-selftests.c: Fix common/ includes.
11361 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
11362 * unittests/function-view-selftests.c: Fix common/ includes.
11363 * unittests/environ-selftests.c: Fix common/ includes.
11364 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
11365 * unittests/common-utils-selftests.c: Fix common/ includes.
11366 * unittests/cli-utils-selftests.c: Fix common/ includes.
11367 * unittests/array-view-selftests.c: Fix common/ includes.
11368 * ui-file.c: Fix common/ includes.
11369 * tui/tui-io.c: Fix common/ includes.
11370 * tracepoint.h: Fix common/ includes.
11371 * tracepoint.c: Fix common/ includes.
11372 * tracefile-tfile.c: Fix common/ includes.
11373 * top.h: Fix common/ includes.
11374 * top.c: Fix common/ includes.
11375 * thread.c: Fix common/ includes.
11376 * target/waitstatus.h: Fix common/ includes.
11377 * target/waitstatus.c: Fix common/ includes.
11378 * target.h: Fix common/ includes.
11379 * target.c: Fix common/ includes.
11380 * target-memory.c: Fix common/ includes.
11381 * target-descriptions.c: Fix common/ includes.
11382 * symtab.h: Fix common/ includes.
11383 * symfile.c: Fix common/ includes.
11384 * stap-probe.c: Fix common/ includes.
11385 * spu-linux-nat.c: Fix common/ includes.
11386 * sparc-nat.c: Fix common/ includes.
11387 * source.c: Fix common/ includes.
11388 * solib.c: Fix common/ includes.
11389 * solib-target.c: Fix common/ includes.
11390 * ser-unix.c: Fix common/ includes.
11391 * ser-tcp.c: Fix common/ includes.
11392 * ser-pipe.c: Fix common/ includes.
11393 * ser-base.c: Fix common/ includes.
11394 * selftest-arch.c: Fix common/ includes.
11395 * s12z-tdep.c: Fix common/ includes.
11396 * rust-exp.y: Fix common/ includes.
11397 * rs6000-aix-tdep.c: Fix common/ includes.
11398 * riscv-tdep.c: Fix common/ includes.
11399 * remote.c: Fix common/ includes.
11400 * remote-notif.h: Fix common/ includes.
11401 * remote-fileio.h: Fix common/ includes.
11402 * remote-fileio.c: Fix common/ includes.
11403 * regcache.h: Fix common/ includes.
11404 * regcache.c: Fix common/ includes.
11405 * record-btrace.c: Fix common/ includes.
11406 * python/python.c: Fix common/ includes.
11407 * python/py-type.c: Fix common/ includes.
11408 * python/py-inferior.c: Fix common/ includes.
11409 * progspace.h: Fix common/ includes.
11410 * producer.c: Fix common/ includes.
11411 * procfs.c: Fix common/ includes.
11412 * proc-api.c: Fix common/ includes.
11413 * printcmd.c: Fix common/ includes.
11414 * ppc-linux-nat.c: Fix common/ includes.
11415 * parser-defs.h: Fix common/ includes.
11416 * osdata.c: Fix common/ includes.
11417 * obsd-nat.c: Fix common/ includes.
11418 * nat/x86-linux.c: Fix common/ includes.
11419 * nat/x86-linux-dregs.c: Fix common/ includes.
11420 * nat/x86-dregs.h: Fix common/ includes.
11421 * nat/x86-dregs.c: Fix common/ includes.
11422 * nat/ppc-linux.c: Fix common/ includes.
11423 * nat/mips-linux-watch.h: Fix common/ includes.
11424 * nat/mips-linux-watch.c: Fix common/ includes.
11425 * nat/linux-waitpid.c: Fix common/ includes.
11426 * nat/linux-ptrace.h: Fix common/ includes.
11427 * nat/linux-ptrace.c: Fix common/ includes.
11428 * nat/linux-procfs.c: Fix common/ includes.
11429 * nat/linux-personality.c: Fix common/ includes.
11430 * nat/linux-osdata.c: Fix common/ includes.
11431 * nat/linux-namespaces.c: Fix common/ includes.
11432 * nat/linux-btrace.h: Fix common/ includes.
11433 * nat/linux-btrace.c: Fix common/ includes.
11434 * nat/fork-inferior.c: Fix common/ includes.
11435 * nat/amd64-linux-siginfo.c: Fix common/ includes.
11436 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
11437 * nat/aarch64-linux.c: Fix common/ includes.
11438 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
11439 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
11440 * namespace.h: Fix common/ includes.
11441 * mips-linux-tdep.c: Fix common/ includes.
11442 * minsyms.c: Fix common/ includes.
11443 * mi/mi-parse.h: Fix common/ includes.
11444 * mi/mi-main.c: Fix common/ includes.
11445 * mi/mi-cmd-env.c: Fix common/ includes.
11446 * memrange.h: Fix common/ includes.
11447 * memattr.c: Fix common/ includes.
11448 * maint.h: Fix common/ includes.
11449 * maint.c: Fix common/ includes.
11450 * main.c: Fix common/ includes.
11451 * machoread.c: Fix common/ includes.
11452 * location.c: Fix common/ includes.
11453 * linux-thread-db.c: Fix common/ includes.
11454 * linux-nat.c: Fix common/ includes.
11455 * linux-fork.c: Fix common/ includes.
11456 * inline-frame.c: Fix common/ includes.
11457 * infrun.c: Fix common/ includes.
11458 * inflow.c: Fix common/ includes.
11459 * inferior.h: Fix common/ includes.
11460 * inferior.c: Fix common/ includes.
11461 * infcmd.c: Fix common/ includes.
11462 * inf-ptrace.c: Fix common/ includes.
11463 * inf-child.c: Fix common/ includes.
11464 * ia64-linux-nat.c: Fix common/ includes.
11465 * i387-tdep.c: Fix common/ includes.
11466 * i386-tdep.c: Fix common/ includes.
11467 * i386-linux-tdep.c: Fix common/ includes.
11468 * i386-linux-nat.c: Fix common/ includes.
11469 * i386-go32-tdep.c: Fix common/ includes.
11470 * i386-fbsd-tdep.c: Fix common/ includes.
11471 * i386-fbsd-nat.c: Fix common/ includes.
11472 * guile/scm-type.c: Fix common/ includes.
11473 * guile/guile.c: Fix common/ includes.
11474 * go32-nat.c: Fix common/ includes.
11475 * gnu-nat.c: Fix common/ includes.
11476 * gdbthread.h: Fix common/ includes.
11477 * gdbarch-selftests.c: Fix common/ includes.
11478 * gdb_usleep.c: Fix common/ includes.
11479 * gdb_select.h: Fix common/ includes.
11480 * gdb_bfd.c: Fix common/ includes.
11481 * gcore.c: Fix common/ includes.
11482 * fork-child.c: Fix common/ includes.
11483 * findvar.c: Fix common/ includes.
11484 * fbsd-nat.c: Fix common/ includes.
11485 * event-top.c: Fix common/ includes.
11486 * event-loop.c: Fix common/ includes.
11487 * dwarf2read.c: Fix common/ includes.
11488 * dwarf2loc.c: Fix common/ includes.
11489 * dwarf2-frame.c: Fix common/ includes.
11490 * dwarf-index-cache.c: Fix common/ includes.
11491 * dtrace-probe.c: Fix common/ includes.
11492 * disasm-selftests.c: Fix common/ includes.
11493 * defs.h: Fix common/ includes.
11494 * csky-tdep.c: Fix common/ includes.
11495 * cp-valprint.c: Fix common/ includes.
11496 * cp-support.h: Fix common/ includes.
11497 * cp-support.c: Fix common/ includes.
11498 * corelow.c: Fix common/ includes.
11499 * completer.h: Fix common/ includes.
11500 * completer.c: Fix common/ includes.
11501 * compile/compile.c: Fix common/ includes.
11502 * compile/compile-loc2c.c: Fix common/ includes.
11503 * compile/compile-cplus-types.c: Fix common/ includes.
11504 * compile/compile-cplus-symbols.c: Fix common/ includes.
11505 * command.h: Fix common/ includes.
11506 * cli/cli-dump.c: Fix common/ includes.
11507 * cli/cli-cmds.c: Fix common/ includes.
11508 * charset.c: Fix common/ includes.
11509 * build-id.c: Fix common/ includes.
11510 * btrace.h: Fix common/ includes.
11511 * btrace.c: Fix common/ includes.
11512 * breakpoint.h: Fix common/ includes.
11513 * breakpoint.c: Fix common/ includes.
11514 * ax.h:
11515 (enum agent_op): Fix common/ includes.
11516 * ax-general.c (struct aop_map): Fix common/ includes.
11517 * ax-gdb.c: Fix common/ includes.
11518 * auxv.c: Fix common/ includes.
11519 * auto-load.c: Fix common/ includes.
11520 * arm-tdep.c: Fix common/ includes.
11521 * arch/riscv.c: Fix common/ includes.
11522 * arch/ppc-linux-common.c: Fix common/ includes.
11523 * arch/i386.c: Fix common/ includes.
11524 * arch/arm.c: Fix common/ includes.
11525 * arch/arm-linux.c: Fix common/ includes.
11526 * arch/arm-get-next-pcs.c: Fix common/ includes.
11527 * arch/amd64.c: Fix common/ includes.
11528 * arch/aarch64.c: Fix common/ includes.
11529 * arch/aarch64-insn.c: Fix common/ includes.
11530 * arch-utils.c: Fix common/ includes.
11531 * amd64-windows-tdep.c: Fix common/ includes.
11532 * amd64-tdep.c: Fix common/ includes.
11533 * amd64-sol2-tdep.c: Fix common/ includes.
11534 * amd64-obsd-tdep.c: Fix common/ includes.
11535 * amd64-nbsd-tdep.c: Fix common/ includes.
11536 * amd64-linux-tdep.c: Fix common/ includes.
11537 * amd64-linux-nat.c: Fix common/ includes.
11538 * amd64-fbsd-tdep.c: Fix common/ includes.
11539 * amd64-fbsd-nat.c: Fix common/ includes.
11540 * amd64-dicos-tdep.c: Fix common/ includes.
11541 * amd64-darwin-tdep.c: Fix common/ includes.
11542 * agent.c: Fix common/ includes.
11543 * ada-lang.h: Fix common/ includes.
11544 * ada-lang.c: Fix common/ includes.
11545 * aarch64-tdep.c: Fix common/ includes.
11546
2f5c153e
TT
115472019-01-25 Tom Tromey <tom@tromey.com>
11548
11549 * common/create-version.sh: Use common/version.h.
11550
adc6a863
PA
115512019-01-24 Pedro Alves <palves@redhat.com>
11552
11553 * infrun.c (signal_stop, signal_print, signal_program)
11554 (signal_catch, signal_pass): Now arrays instead of pointers.
11555 (update_signals_program_target, do_target_resume)
11556 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
11557 * linux-nat.c (linux_nat_target::pass_signals)
11558 (linux_nat_target::create_inferior, linux_nat_target::attach):
11559 Adjust.
11560 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
11561 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
11562 * procfs.c (procfs_target::pass_signals): Adjust.
11563 * record-full.c (record_full_target::resume): Adjust.
11564 * remote.c (remote_target::pass_signals)
11565 (remote_target::program_signals): Adjust.
11566 * target-debug.h (target_debug_print_signals): Now takes a
11567 gdb::array_view as parameter. Adjust.
11568 * target.h (target_ops) <pass_signals, program_signals>: Replace
11569 pointer and length parameters with gdb::array_view.
11570 (target_pass_signals, target_program_signals): Likewise.
11571 * target-delegates.c: Regenerate.
11572
3046d67a
PA
115732019-01-24 Pedro Alves <palves@redhat.com>
11574
11575 * common/forward-scope-exit.h
11576 (forward_scope_exit::forward_scope_exit): Pass arguments to
11577 m_bind_function directly, instead of creating a std::bind and
11578 copying that.
11579
353229bf
AH
115802019-01-24 Alan Hayward <alan.hayward@arm.com>
11581
11582 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11583 for static members.
11584 (pass_in_v_vfp_candidate): Likewise.
11585
311dc83a
TT
115862019-01-23 Tom Tromey <tom@tromey.com>
11587 Pedro Alves <palves@redhat.com>
11588
11589 * regcache.c (class regcache_invalidator): Remove.
11590 (regcache::raw_write): Use make_scope_exit.
11591
296bd123
TT
115922019-01-23 Tom Tromey <tom@tromey.com>
11593
11594 * ui-out.h (class ui_out_emit_type): Update comment.
11595
979a0d13
TT
115962019-01-23 Tom Tromey <tom@tromey.com>
11597
11598 * infrun.c (fetch_inferior_event): Update comment.
11599
d238133d
TT
116002019-01-23 Tom Tromey <tom@tromey.com>
11601 Pedro Alves <palves@redhat.com>
11602
11603 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
11604 parameter.
11605 (fetch_inferior_event): Use SCOPE_EXIT.
11606
11607
9885e6bb
TT
116082019-01-23 Tom Tromey <tom@tromey.com>
11609 Pedro Alves <palves@redhat.com>
11610
11611 * infrun.c (disable_thread_events): Delete.
11612 (stop_all_threads): Use SCOPE_EXIT.
11613
286526c1
TT
116142019-01-23 Tom Tromey <tom@tromey.com>
11615 Pedro Alves <palves@redhat.com>
11616
11617 * symfile.c: Include forward-scope-exit.h.
11618 (clear_symtab_users_cleanup): Replace forward declaration with
11619 a FORWARD_SCOPE_EXIT.
11620 (syms_from_objfile_1): Use the forward_scope_exit and
11621 gdb::optional instead of cleanup_function.
11622 (reread_symbols): Use the forward_scope_exit instead of
11623 cleanup_function.
11624 (clear_symtab_users_cleanup): Remove function.
11625
1db93f14
TT
116262019-01-23 Tom Tromey <tom@tromey.com>
11627 Pedro Alves <palves@redhat.com>
11628
11629 * linux-nat.c: Include scope-exit.h.
11630 (cleanup_target_stop): Remove.
11631 (linux_nat_target::static_tracepoint_markers_by_strid): Use
11632 SCOPE_EXIT.
11633
2cc83d1e
TT
116342019-01-23 Tom Tromey <tom@tromey.com>
11635 Pedro Alves <palves@redhat.com>
11636
11637 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
11638 (call_function_by_hand_dummy): Use SCOPE_EXIT.
11639
694c6bf5
TT
116402019-01-23 Tom Tromey <tom@tromey.com>
11641 Andrew Burgess <andrew.burgess@embecosm.com>
11642 Pedro Alves <palves@redhat.com>
11643
11644 * infrun.c (fetch_inferior_event): Use scope_exit.
11645 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
11646 * top.c (execute_command): Use scope_exit.
11647 * breakpoint.c (bpstat_do_actions): Use scope_exit.
11648 * utils.c (do_bpstat_clear_actions_cleanup)
11649 (make_bpstat_clear_actions_cleanup): Remove.
11650
4c41382a
TT
116512019-01-23 Tom Tromey <tom@tromey.com>
11652 Pedro Alves <palves@redhat.com>
11653
11654 * infrun.c: Include "common/scope-exit.h"
11655 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
11656 (wait_for_inferior): Use SCOPE_EXIT.
11657 (fetch_inferior_event): Use scope_exit.
11658
89f8fb50
TT
116592019-01-23 Tom Tromey <tom@tromey.com>
11660 Pedro Alves <palves@redhat.com>
11661
11662 * breakpoint.c (create_breakpoint): Remove cleanup.
11663
5419bdae
TT
116642019-01-23 Tom Tromey <tom@tromey.com>
11665 Andrew Burgess <andrew.burgess@embecosm.com>
11666 Pedro Alves <palves@redhat.com>
11667
e587ef42
PA
116682019-01-23 Pedro Alves <palves@redhat.com>
11669
11670 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
11671
77f0e74c
PA
116722019-01-23 Pedro Alves <palves@redhat.com>
11673 Andrew Burgess <andrew.burgess@embecosm.com>
11674
11675 * gdbthread.h: Include "common/forward-scope-exit.h".
11676 (scoped_finish_thread_state): Redefine custom class in terms of
11677 forward_scope_exit.
11678
5b9b3e53
PA
116792019-01-23 Pedro Alves <palves@redhat.com>
11680 Andrew Burgess <andrew.burgess@embecosm.com>
11681
11682 * common/forward-scope-exit.h: New file.
11683
54b65c9b
PA
116842019-01-23 Pedro Alves <palves@redhat.com>
11685 Andrew Burgess <andrew.burgess@embecosm.com>
11686 Tom Tromey <tom@tromey.com>
11687
11688 * common/scope-exit.h: New file.
11689
cf08fb29
PA
116902019-01-23 Pedro Alves <palves@redhat.com>
11691
11692 * common/preprocessor.h (ESC): Rename to ...
11693 (ESC_PARENS): ... this.
11694 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
11695 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
11696
ae73e2e2
TT
116972019-01-23 Tom Tromey <tom@tromey.com>
11698
11699 * language.h (class scoped_switch_to_sym_language_if_auto):
11700 Initialize m_lang in both cases.
11701
6594e122
AH
117022019-01-23 Alan Hayward <alan.hayward@arm.com>
11703
11704 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
11705 with XCNEW.
11706
a7c9855d
TT
117072019-01-22 Tom Tromey <tom@tromey.com>
11708
11709 * corelow.c: Do not include sys/file.h.
11710
93cc1d53
TT
117112019-01-22 Tom Tromey <tom@tromey.com>
11712
11713 * tui/tui-wingeneral.h: Include gdb_curses.h.
11714
38561778
TT
117152019-01-22 Tom Tromey <tom@tromey.com>
11716
11717 * source-cache.h (class source_cache) <get_source_lines,
11718 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
11719
37b3ab5b
TT
117202019-01-22 Tom Tromey <tom@tromey.com>
11721
11722 * remote-fileio.h (struct remote_target): Declare.
11723
3fabc016
TT
117242019-01-22 Tom Tromey <tom@tromey.com>
11725
11726 * python/py-arch.c: Do not include py-ref.h.
11727 * python/py-bpevent.c: Do not include py-ref.h.
11728 * python/py-cmd.c: Do not include py-ref.h.
11729 * python/py-continueevent.c: Do not include py-ref.h.
11730 * python/py-event.h: Do not include py-ref.h.
11731 * python/py-evtregistry.c: Do not include py-ref.h.
11732 * python/py-finishbreakpoint.c: Do not include py-ref.h.
11733 * python/py-frame.c: Do not include py-ref.h.
11734 * python/py-framefilter.c: Do not include py-ref.h.
11735 * python/py-function.c: Do not include py-ref.h.
11736 * python/py-infevents.c: Do not include py-ref.h.
11737 * python/py-linetable.c: Do not include py-ref.h.
11738 * python/py-objfile.c: Do not include py-ref.h.
11739 * python/py-param.c: Do not include py-ref.h.
11740 * python/py-prettyprint.c: Do not include py-ref.h.
11741 * python/py-progspace.c: Do not include py-ref.h.
11742 * python/py-symbol.c: Do not include py-ref.h.
11743 * python/py-symtab.c: Do not include py-ref.h.
11744 * python/py-type.c: Do not include py-ref.h.
11745 * python/py-unwind.c: Do not include py-ref.h.
11746 * python/py-utils.c: Do not include py-ref.h.
11747 * python/py-value.c: Do not include py-ref.h.
11748 * python/py-varobj.c: Do not include py-ref.h.
11749 * python/py-xmethods.c: Do not include py-ref.h.
11750 * python/python.c: Do not include py-ref.h.
11751 * varobj.c: Do not include py-ref.h.
11752
6b4d7774
TT
117532019-01-22 Tom Tromey <tom@tromey.com>
11754
11755 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
11756 keyword for bcache.
11757
7af7e9b5
TT
117582019-01-22 Tom Tromey <tom@tromey.com>
11759
11760 * compile/compile-cplus-types.c: Remove a comment by #include.
11761
951d1049
TT
117622019-01-22 Tom Tromey <tom@tromey.com>
11763
11764 * compile/gcc-c-plugin.h: Include compile-internal.h.
11765
d65d5705
TT
117662019-01-22 Tom Tromey <tom@tromey.com>
11767
11768 * stabsread.c (EXTERN): Do not define.
11769 (symnum, next_symbol_text_func, processing_gcc_compilation)
11770 (within_function, global_sym_chain, global_stabs)
11771 (previous_stab_code, this_object_header_files)
11772 (n_this_object_header_files)
11773 (n_allocated_this_object_header_files): Define.
11774 * stabsread.h (EXTERN): Never define. Use "extern".
11775
b6fb1ee5
PW
117762019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11777
11778 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
11779 history_value.
11780
be6d4f74
TT
117812019-01-21 Tom Tromey <tom@tromey.com>
11782
11783 * ui-out.c: Fix includes.
11784 * tui/tui-source.c: Fix includes.
11785 * target.c: Fix includes.
11786 * remote.c: Fix includes.
11787 * regcache.c: Fix includes.
11788 * python/py-block.c: Fix includes.
11789 * printcmd.c: Fix includes.
11790 * or1k-tdep.c: Fix includes.
11791 * mi/mi-main.c: Fix includes.
11792 * m32r-tdep.c: Fix includes.
11793 * csky-tdep.c: Fix includes.
11794 * compile/compile-cplus-types.c: Fix includes.
11795 * cli/cli-interp.c: Fix includes.
11796
73021deb
AH
117972019-01-21 Alan Hayward <alan.hayward@arm.com>
11798
11799 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11800 for padding.
11801
7932255d
TT
118022019-01-16 Tom Tromey <tom@tromey.com>
11803
11804 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
11805 earlier.
11806 (struct objfile) <msymbols_range>: Move from top level.
11807 <msymbols>: New method.
11808 (class objfile_msymbols): Remove.
11809 * symtab.c (default_collect_symbol_completion_matches_break_on):
11810 Update.
11811 * symmisc.c (dump_msymbols): Update.
11812 * stabsread.c (scan_file_globals): Update.
11813 * objc-lang.c (info_selectors_command, info_classes_command)
11814 (find_methods): Update.
11815 * minsyms.c (find_solib_trampoline_target): Update.
11816 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
11817 * coffread.c (coff_symfile_read): Update.
11818 * ada-lang.c (ada_lookup_simple_minsym)
11819 (ada_collect_symbol_completion_matches): Update.
11820
604b1bfb
TT
118212019-01-16 Tom Tromey <tom@tromey.com>
11822
11823 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
11824 type. Remove no-argument constructor.
11825 <iterator::operator++>: Simplify.
11826 <begin>: Update.
11827 <end>: Use minimal_symbol_count.
11828
f252c6d5
TT
118292019-01-16 Tom Tromey <tom@tromey.com>
11830
11831 * objfiles.h (struct objfile) <psymtabs>: New method.
11832 (class objfile_psymtabs): Remove.
11833 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
11834 typedef.
11835 <range>: New method.
11836 (require_partial_symbols): Change return type.
11837 * psymtab.c (require_partial_symbols)
11838 (psym_expand_symtabs_matching): Update.
11839 * mdebugread.c (parse_partial_symbols): Update.
11840 * dbxread.c (dbx_end_psymtab): Update.
11841
b669c953
TT
118422019-01-15 Tom Tromey <tom@tromey.com>
11843
11844 * symtab.c (lookup_objfile_from_block)
11845 (lookup_symbol_in_objfile_symtabs)
11846 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
11847 (find_line_symtab, info_sources_command)
11848 (default_collect_symbol_completion_matches_break_on)
11849 (make_source_files_completion_list): Update.
11850 * symmisc.c (print_objfile_statistics, dump_objfile)
11851 (maintenance_print_symbols, maintenance_info_symtabs)
11852 (maintenance_check_symtabs, maintenance_info_line_tables):
11853 Update.
11854 * source.c (select_source_symtab)
11855 (forget_cached_source_info_for_objfile): Update.
11856 * objfiles.h (class objfile_compunits): Remove.
11857 (struct objfile) <compunits_range>: New typedef.
11858 (compunits): New method.
11859 * objfiles.c (objfile_relocate1): Update.
11860 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11861 * maint.c (count_symtabs_and_blocks): Update.
11862 * linespec.c (iterate_over_all_matching_symtabs): Update.
11863 * cp-support.c (add_symbol_overload_list_qualified): Update.
11864 * coffread.c (coff_symtab_read): Update.
11865 * ada-lang.c (add_nonlocal_symbols)
11866 (ada_collect_symbol_completion_matches)
11867 (ada_add_global_exceptions): Update.
11868
7e955d83
TT
118692019-01-15 Tom Tromey <tom@tromey.com>
11870
11871 * progspace.h (program_space) <objfiles_safe_range>: New
11872 typedef.
11873 <objfiles_safe>: New method.
11874 * objfiles.h (class all_objfiles_safe): Remove.
11875 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
11876 * jit.c (jit_inferior_exit_hook): Update.
11877
2030c079
TT
118782019-01-17 Tom Tromey <tom@tromey.com>
11879
11880 * progspace.h (program_space) <objfiles_range>: New typedef.
11881 <objfiles>: New method.
11882 <objfiles_head>: Rename from objfiles.
11883 (object_files): Update.
11884 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
11885 * guile/scm-pretty-print.c
11886 (ppscm_find_pretty_printer_from_objfiles): Update.
11887 * guile/scm-objfile.c (gdbscm_objfiles): Update.
11888 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
11889 Update.
11890 * python/py-progspace.c (pspy_get_objfiles): Update.
11891 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11892 Update.
11893 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11894 (objfpy_lookup_objfile_by_build_id): Update.
11895 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11896 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11897 Update.
11898 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11899 (expand_symtab_containing_pc, lookup_objfile_from_block)
11900 (lookup_static_symbol, basic_lookup_transparent_type)
11901 (find_pc_sect_compunit_symtab, find_symbol_at_address)
11902 (find_line_symtab, info_sources_command)
11903 (default_collect_symbol_completion_matches_break_on)
11904 (make_source_files_completion_list, find_main_name): Update.
11905 * symmisc.c (print_symbol_bcache_statistics)
11906 (print_objfile_statistics, maintenance_print_symbols)
11907 (maintenance_print_msymbols, maintenance_print_objfiles)
11908 (maintenance_info_symtabs, maintenance_check_symtabs)
11909 (maintenance_expand_symtabs, maintenance_info_line_tables):
11910 Update.
11911 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
11912 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
11913 (map_overlay_command, unmap_overlay_command)
11914 (simple_overlay_update, expand_symtabs_matching)
11915 (map_symbol_filenames): Update.
11916 * symfile-debug.c (set_debug_symfile): Update.
11917 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
11918 Update.
11919 * source.c (select_source_symtab, forget_cached_source_info):
11920 Update.
11921 * solib.c (solib_read_symbols): Update.
11922 * solib-spu.c (append_ocl_sos): Update.
11923 * psymtab.c (maintenance_print_psymbols)
11924 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
11925 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
11926 * printcmd.c (info_symbol_command): Update.
11927 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
11928 Update.
11929 * objfiles.h (class all_objfiles): Remove.
11930 * objfiles.c (have_partial_symbols, have_full_symbols)
11931 (have_minimal_symbols, qsort_cmp, update_section_map)
11932 (shared_objfile_contains_address_p)
11933 (default_iterate_over_objfiles_in_search_order): Update.
11934 * objc-lang.c (info_selectors_command, info_classes_command)
11935 (find_methods): Update.
11936 * minsyms.c (find_solib_trampoline_target): Update.
11937 * maint.c (maintenance_info_sections)
11938 (maintenance_translate_address, count_symtabs_and_blocks):
11939 Update.
11940 * main.c (captured_main_1): Update.
11941 * linux-thread-db.c (try_thread_db_load_from_pdir)
11942 (has_libpthread): Update.
11943 * linespec.c (iterate_over_all_matching_symtabs)
11944 (search_minsyms_for_name): Update.
11945 * jit.c (jit_find_objf_with_entry_addr): Update.
11946 * hppa-tdep.c (find_unwind_entry)
11947 (hppa_lookup_stub_minimal_symbol): Update.
11948 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
11949 Update.
11950 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11951 (elf_gnu_ifunc_resolve_by_got): Update.
11952 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
11953 * dwarf-index-write.c (save_gdb_index_command): Update.
11954 * cp-support.c (add_symbol_overload_list_qualified): Update.
11955 * breakpoint.c (create_overlay_event_breakpoint)
11956 (create_longjmp_master_breakpoint)
11957 (create_std_terminate_master_breakpoint)
11958 (create_exception_master_breakpoint): Update.
11959 * blockframe.c (find_pc_partial_function): Update.
11960 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
11961 (ada_collect_symbol_completion_matches)
11962 (ada_add_global_exceptions): Update.
11963
776489e0
TT
119642019-01-17 Tom Tromey <tom@tromey.com>
11965
11966 * solib-target.c (lm_info_target_p): Remove typedef. Don't
11967 declare VEC.
11968 (solib_target_parse_libraries): Change return type.
11969 (library_list_start_segment, library_list_start_section)
11970 (library_list_end_library, library_list_start_library); Update.
11971 (solib_target_free_library_list): Remove.
11972 (solib_target_parse_libraries): Remove cleanup. Change return
11973 type.
11974 (solib_target_current_sos): Update.
11975
6471e7d2
TT
119762019-01-17 Tom Tromey <tromey@bapiya>
11977
11978 * valprint.c: Replace "the the" with "the".
11979 * symtab.c: Replace "the the" with "the".
11980 * solib.c: Replace "the the" with "the".
11981 * solib-dsbt.c: Replace "the the" with "the".
11982 * linespec.c: Replace "the the" with "the".
11983 * dwarf2loc.h: Replace "the the" with "the".
11984 * amd64-windows-tdep.c: Replace "the the" with "the".
11985 * aarch64-tdep.c: Replace "the the" with "the".
11986
c24bdb02
KS
119872019-01-16 Keith Seitz <keiths@redhat.com>
11988
11989 PR gdb/23773
11990 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
11991 <builder>: Rename to ..
11992 <m_builder>: ... this and make private.
11993 (dwarf2_cu::get_builder): New method. Change all users of
11994 `builder' to use this method.
11995 (dwarf2_start_symtab): Move to ...
11996 (dwarf2_cu::start_symtab): ... here. Update all callers
11997 (setup_type_unit_groups): Move to ...
11998 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
11999 callers.
12000 (dwarf2_cu::reset_builder): New method.
12001 (process_full_compunit, process_full_type_unit): Use
12002 dwarf2_cu::reset_builder.
12003 (follow_die_offset): Record the ancestor CU if it is different
12004 from the followed DIE's CU.
12005 (follow_die_sig_1): Likewise.
12006
8d64371b
TT
120072019-01-15 Tom Tromey <tom@tromey.com>
12008
12009 * remote.c (class remote_state) <buf>: Now a char_vector.
12010 <buf_size>: Remove.
12011 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
12012 parameter.
12013 (remote_target::getpkt_or_notif_sane_1)
12014 (remote_target::getpkt_sane)
12015 (remote_target::getpkt_or_notif_sane): Likewise.
12016 (class remote_target) <putpkt>: New overload.
12017 (remote_target::read_frame): Change type of "buf_p". Remove
12018 sizeof_p parameter.
12019 (packet_ok): New overload.
12020 (packet_check_result): New overload.
12021 Update all uses.
12022
bb277751
TT
120232019-01-14 Tom Tromey <tom@tromey.com>
12024
12025 * remote-notif.c (handle_notification, remote_notif_ack)
12026 (remote_notif_parse): Make "buf" const.
12027 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
12028 const.
12029 (remote_notif_parse, remote_notif_ack, handle_notification):
12030 Likewise.
12031 * remote.c (remote_notif_stop_parse): Make "buf" const.
12032 (remote_target::remote_parse_stop_reply): Make "buf" const.
12033 (remote_notif_stop_ack): Make "buf" const.
12034
05be00a8
TT
120352019-01-14 Tom Tromey <tom@tromey.com>
12036
12037 * remote.c (remote_console_output): Make parameter const.
12038
491adeca
TT
120392019-01-14 Tom Tromey <tom@tromey.com>
12040
12041 * target-debug.h (target_debug_print_signals): Constify.
12042 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
12043 * procfs.c (procfs_target::pass_signals): Update.
12044 * linux-nat.c (linux_nat_target::pass_signals): Update.
12045 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
12046 * target-delegates.c: Rebuild.
12047 * remote.c (remote_target::program_signals): Update.
12048 (remote_target::pass_signals): Update.
12049 * target.c (target_pass_signals): Constify argument.
12050 (target_program_signals): Likewise.
12051 * target.h (struct target_ops) <pass_signals, program_signals>:
12052 Constify argument.
12053 (target_pass_signals, target_program_signals): Constify argument.
12054
bbd94648
TT
120552019-01-14 Tom Tromey <tom@tromey.com>
12056
12057 PR tui/28819:
12058 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
12059
6f072a10
PFC
120602019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12061
12062 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
12063 field.
12064 * rs6000-tdep.c: Include reggroups.h.
12065 (IS_V_ALIAS_PSEUDOREG): Define.
12066 (rs6000_register_name): Return names for the "vX" aliases.
12067 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
12068 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
12069 aliases. Call default_register_reggroup_p for all other
12070 pseudo-registers.
12071 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
12072 New functions.
12073 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
12074 Handle "vX" aliases.
12075 (v_alias_pseudo_register_collect): New function.
12076 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
12077 (rs6000_gdbarch_init): Initialize "vX" aliases as
12078 pseudo-registers. Restore registration of
12079 rs6000_pseudo_register_reggroup_p with
12080 set_tdesc_pseudo_register_reggroup_p.
12081
1a782351
MF
120822019-01-13 Max Filippov <jcmvbkbc@gmail.com>
12083
12084 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
12085 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
12086 set_gdbarch_num_pseudo_regs.
12087
d73cff18
PW
120882019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12089
12090 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
12091 Remove arg prefixname, add do_set and do_show.
12092 Add member functions set_list and show_list.
12093 * cli/cli-style.c (class cli_style_option): Update accordingly.
12094 (style_set_list): Move to file scope.
12095 (style_show_list): Likewise.
12096 (set_style): Call help_list.
12097 (show_style): Call cmd_show_list.
12098 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
12099 Update to use the new macro.
12100
60a90376
JB
121012019-10-12 Joel Brobecker <brobecker@adacore.com>
12102
12103 * ada-lang.c (_initialize_ada_language): Expand the help text
12104 for the "catch exception" command.
12105
9d7c67bf
PW
121062019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12107
12108 * symtab.c (matching_obj_sections): Initialize obj,
12109 declare it closer to its usage.
12110
7cf47dc4
TT
121112019-01-10 Tom Tromey <tom@tromey.com>
12112
12113 * thread-iter.h (inf_threads_iterator): Use next_iterator.
12114 (basic_inf_threads_range): Remove.
12115 (inf_threads_range, inf_non_exited_threads_range)
12116 (safe_inf_threads_range): Use next_adapter.
12117
d3cb6808
KS
121182019-01-10 Keith Seitz <keiths@redhat.com>
12119
12120 PR gdb/23712
12121 PR symtab/23010
12122 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
12123 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
12124
63a20375
KS
121252019-01-10 Keith Seitz <keiths@redhat.com>
12126
12127 PR gdb/23712
12128 PR symtab/23010
12129 * dictionary.c (pending_to_vector): Remove.
12130 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12131 Remove _1 suffix, replacing functions of the same name. Update
12132 all callers.
12133 (dict_create_hashed, dict_create_hashed_expandable)
12134 (dict_create_linear, dict_create_linear_expandable, dict_free)
12135 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
12136 Make functions static.
12137
b026f593
KS
121382019-01-10 Keith Seitz <keiths@redhat.com>
12139
12140 PR gdb/23712
12141 PR symtab/23010
12142 * dictionary.h (struct dictionary): Replace declaration with
12143 multidictionary.
12144 (dict_create_hashed, dict_create_hashed_expandable)
12145 (dict_create_linear, dict_create_linear_expandable)
12146 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
12147 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
12148 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
12149 taking multidictionary argument.
12150 [ALL_DICT_SYMBOLS]: Update for multidictionary.
12151 * block.h (struct block) <dict>: Change to multidictionary
12152 and rename `multidict'.
12153 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
12154 symmisc.c: Update all dictionary references to multidictionary.
12155
c7748ee9
KS
121562019-01-10 Keith Seitz <keiths@redhat.com>
12157
12158 PR gdb/23712
12159 PR symtab/23010
12160 * dictionary.c: Include unordered_map.
12161 (pending_to_vector): New function.
12162 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12163 Rewrite the non-"_1" functions to take vector instead
12164 of linked list.
12165 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
12166 "new" _1 versions of the same name.
12167 (multidictionary): Define.
12168 (std::hash<enum language): New definition.
12169 (collate_pending_symbols_by_language, mdict_create_hashed)
12170 (mdict_create_hashed_expandable, mdict_create_linear)
12171 (mdict_create_linear_expandable, mdict_free)
12172 (find_language_dictionary, create_new_language_dictionary)
12173 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
12174 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
12175 (mdict_size, mdict_empty): New functions.
12176 * dictionary.h (mdict_iterator): Define.
12177
67aa1f3c
PA
121782019-01-10 Pedro Alves <palves@redhat.com>
12179
12180 * breakpoint.c (read_uploaded_action)
12181 (create_tracepoint_from_upload): Adjust to use
12182 gdb::unique_xmalloc_ptr.
12183 * ctf.c (ctf_write_uploaded_tp):
12184 (SET_ARRAY_FIELD): Use emplace_back.
12185 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
12186 * tracefile-tfile.c (tfile_write_uploaded_tp):
12187 * tracepoint.c (parse_tracepoint_definition): Adjust to use
12188 gdb::unique_xmalloc_ptr.
12189 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
12190 at_string, cond_string, cmd_strings>: Replace char pointers
12191 with gdb::unique_xmalloc_ptr.
12192
2f667667
PA
121932019-01-10 Pedro Alves <palves@redhat.com>
12194
12195 * solib-target.c (library_list_start_library): Don't xstrdup name.
12196
36cb7237
PA
121972019-01-10 Pedro Alves <palves@redhat.com>
12198
12199 * mdebugread.c (parse_partial_symbols): Use
12200 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
12201
da584958
AB
122022019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12203
12204 * linux-fork.c (scoped_switch_fork_info)
12205 <~scoped_switch_fork_info>: Fix incorrect variable name.
12206
1ef8573c
AB
122072019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12208
12209 * linux-fork.c (scoped_switch_fork_info)
12210 <scoped_switch_fork_info>: Make explicit.
12211 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
12212
8d7bcccb
TT
122132019-01-10 Tom Tromey <tom@tromey.com>
12214
12215 * objfiles.h (objfile::reset_psymtabs): Update.
12216 * objfiles.c (objfile::objfile): Update.
12217 * psymtab.h (psymtab_storage::obstack): Update.
12218 (psymtab_storage::m_obstack): Use gdb::optional.
12219 (class psymtab_storage): Update comment. Remove objfile
12220 parameter.
12221 * psymtab.c (psymtab_storage::psymtab_storage): Update.
12222
b596a3c7
TT
122232019-01-10 Tom Tromey <tom@tromey.com>
12224
12225 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
12226 <free_psymtabs>: Now private.
12227 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
12228 (allocate_psymtab): Use new method.
12229
a9342b62
TT
122302019-01-10 Tom Tromey <tom@tromey.com>
12231
12232 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
12233 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
12234 * mdebugread.c (parse_partial_symbols): Use
12235 allocate_dependencies.
12236 * dwarf2read.c (dwarf2_create_include_psymtab): Use
12237 allocate_dependencies.
12238 (process_psymtab_comp_unit_reader)
12239 (build_type_psymtab_dependencies): Likewise.
12240 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
12241
5af70966
TT
122422019-01-10 Tom Tromey <tom@tromey.com>
12243
12244 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
12245 PSYMBOL_SET_LANGUAGE.
12246 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
12247
5923a04c
TT
122482019-01-10 Tom Tromey <tom@tromey.com>
12249
12250 * psymtab.h (psymtab_storage::obstack): New method.
12251 <m_obstack>: Rename from obstack; now private.
12252 * psymtab.c (psymtab_storage): Update.
12253 * dwarf2read.c (create_addrmap_from_index)
12254 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
12255 Update.
12256
6d6a12bf
TT
122572019-01-10 Tom Tromey <tom@tromey.com>
12258
12259 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
12260 * objfiles.h (objfile::reset_psymtabs): New method.
12261
d320c2b5
TT
122622019-01-10 Tom Tromey <tom@tromey.com>
12263
12264 * symmisc.c (print_symbol_bcache_statistics): Update.
12265 (print_objfile_statistics): Update.
12266 * symfile.c (reread_symbols): Update.
12267 * psymtab.h (class psymtab_storage): New.
12268 * psymtab.c (psymtab_storage): New constructor.
12269 (~psymtab_storage): New destructor.
12270 (require_partial_symbols): Update.
12271 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
12272 (find_pc_sect_psymtab, find_pc_sect_psymbol)
12273 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
12274 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
12275 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
12276 (start_psymtab_common, end_psymtab_common)
12277 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
12278 (allocate_psymtab): Update.
12279 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
12280 Update.
12281 (dump_psymtab_addrmap, maintenance_print_psymbols)
12282 (maintenance_check_psymtabs): Update.
12283 (class objfile_psymtabs): Move to objfiles.h.
12284 * psympriv.h (discard_psymtab): Now inline.
12285 (psymtab_discarder::psymtab_discarder): Update.
12286 (psymtab_discarder::~psymtab_discarder): Update.
12287 (ALL_OBJFILE_PSYMTABS): Rewrite.
12288 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
12289 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
12290 Remove fields.
12291 <partial_symtabs>: New field.
12292 (class objfile_psymtabs): Move from psymtab.h. Update.
12293 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
12294 psymbol_cache.
12295 (objfile::~objfile): Don't destroy psymbol_cache.
12296 * mdebugread.c (parse_partial_symbols): Update.
12297 * dwarf2read.c (create_addrmap_from_index)
12298 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12299 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
12300 (add_partial_subprogram, dwarf2_ranges_read): Update.
12301 * dwarf-index-write.c (write_address_map)
12302 (write_one_signatured_type, recursively_write_psymbols)
12303 (class debug_names, class debug_names, write_psymtabs_to_index):
12304 Update.
12305
1d94a5a3
TT
123062019-01-10 Tom Tromey <tom@tromey.com>
12307
12308 * symtab.h (SYMBOL_SET_NAMES): Update.
12309 (symbol_set_names): Update.
12310 (MSYMBOL_SET_NAMES): Update.
12311 * symtab.c (symbol_set_names): Change argument to be an
12312 objfile_per_bfd_storage.
12313 * psymtab.c (add_psymbol_to_bcache): Update.
12314 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
12315
0f14768a
TT
123162019-01-10 Tom Tromey <tom@tromey.com>
12317
12318 * symtab.c (create_demangled_names_hash): Change argument to be an
12319 objfile_per_bfd_storage.
12320 (symbol_set_names): Update.
12321
6eee24ce
TT
123222019-01-10 Tom Tromey <tom@tromey.com>
12323
12324 * xcoffread.c (xcoff_initial_scan): Unconditionally call
12325 init_psymbol_list.
12326 * psymtab.c (init_psymbol_list): Do nothing if already called.
12327 * psympriv.h (init_psymbol_list): Add comment.
12328 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
12329 init_psymbol_list.
12330 * dbxread.c (dbx_symfile_read): Unconditionally call
12331 init_psymbol_list.
12332
75aedd27
TT
123332019-01-10 Tom Tromey <tom@tromey.com>
12334
12335 * xcoffread.c (scan_xcoff_symtab): Update.
12336 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
12337 "where".
12338 * mdebugread.c (parse_partial_symbols)
12339 (handle_psymbol_enumerators): Update.
12340 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
12341 * dbxread.c (read_dbx_symtab): Update.
12342 * psympriv.h (psymbol_placement): New enum.
12343 (add_psymbol_to_list): Update.
12344
939652a5
TT
123452019-01-10 Tom Tromey <tom@tromey.com>
12346
12347 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
12348 static_psymbols parameters.
12349 (scan_xcoff_symtab): Update.
12350 * psymtab.c (start_psymtab_common): Remove global_psymbols and
12351 static_psymbols parameters.
12352 * psympriv.h (start_psymtab_common): Update.
12353 * mdebugread.c (parse_partial_symbols): Update.
12354 * dwarf2read.c (create_partial_symtab): Update.
12355 * dbxread.c (read_dbx_symtab): Update.
12356 (start_psymtab): Remove global_psymbols and static_psymbols
12357 parameters.
12358
baa62830
TT
123592019-01-10 Tom Tromey <tom@tromey.com>
12360
12361 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
12362 * psymtab.c (allocate_psymtab): Add comment.
12363 * psympriv.h (allocate_psymtab): Add comment.
12364 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
12365 initializations.
12366 * dbxread.c (dbx_end_psymtab): Remove some initializations.
12367
0e8f53ba
TT
123682019-01-10 Tom Tromey <tom@tromey.com>
12369
12370 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12371 Don't declare.
12372 * mipsread.c: Include mdebugread.h.
12373 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12374 Declare.
12375 * elfread.c: Include mdebugread.h.
12376
b22a7c6a
TT
123772019-01-09 Tom Tromey <tom@tromey.com>
12378
12379 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
12380 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
12381 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
12382 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
12383 (psym_lookup_symbol, psym_find_last_source_symtab)
12384 (psym_forget_cached_source_info, psym_print_stats)
12385 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
12386 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
12387 (psym_map_matching_symbols, psym_expand_symtabs_matching)
12388 (psym_find_compunit_symtab_by_address)
12389 (maintenance_print_psymbols, maintenance_info_psymtabs)
12390 (maintenance_check_psymtabs): Use ranged for.
12391 * psymtab.h (class objfile_psymtabs): New.
12392 (require_partial_symbols): Return objfile_psymtabs.
12393 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
12394
3b9d3ac2
TT
123952019-01-09 Tom Tromey <tom@tromey.com>
12396
12397 * symfile.c (overlay_invalidate_all, find_pc_overlay)
12398 (find_pc_mapped_section, list_overlays_command)
12399 (map_overlay_command, unmap_overlay_command)
12400 (simple_overlay_update): Use all_objfiles.
12401 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
12402 * printcmd.c (info_symbol_command): Use all_objfiles.
12403 * objfiles.h (ALL_OBJSECTIONS): Remove.
12404 * maint.c (maintenance_translate_address): Use all_objfiles.
12405 * gcore.c (gcore_create_callback): Use all_objfiles.
12406 (objfile_find_memory_regions): Likewise.
12407
8b31193a
TT
124082019-01-09 Tom Tromey <tom@tromey.com>
12409
12410 * symtab.c (find_line_symtab, info_sources_command)
12411 (make_source_files_completion_list): Use objfile_compunits.
12412 * source.c (select_source_symtab): Use objfile_compunits.
12413 * objfiles.h (struct objfile): Update comment.
12414 (ALL_OBJFILES): Remove.
12415 (ALL_FILETABS): Remove.
12416 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
12417 objfile_compunits.
12418
d5da8b3c
TT
124192019-01-09 Tom Tromey <tom@tromey.com>
12420
12421 * symmisc.c (print_objfile_statistics, dump_objfile)
12422 (maintenance_print_symbols): Use compunit_filetabs.
12423 * source.c (forget_cached_source_info_for_objfile): Use
12424 compunit_filetabs.
12425 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
12426 (ALL_FILETABS): Use compunit_filetabs.
12427 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
12428 * coffread.c (coff_symtab_read): Use compunit_filetabs.
12429
5accd1a0
TT
124302019-01-09 Tom Tromey <tom@tromey.com>
12431
12432 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
12433 (compunit_filetabs): New.
12434 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
12435 compunit_filetabs.
12436 (info_sources_command, make_source_files_completion_list): Remove
12437 declaration.
12438 * symmisc.c (print_objfile_statistics, dump_objfile)
12439 (maintenance_print_symbols): Remove declaration.
12440 (maintenance_info_symtabs): Use compunit_filetabs.
12441 (maintenance_info_line_tables): Likewise.
12442 * source.c (select_source_symtab): Change local variable name.
12443 (forget_cached_source_info_for_objfile): Remove declaration.
12444 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
12445 * objfiles.c (objfile_relocate1): Remove declaration.
12446 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12447 declaration.
12448 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
12449 * coffread.c (coff_symtab_read): Remove declaration.
12450 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
12451 compunit_filetabs.
12452
d8aeb77f
TT
124532019-01-09 Tom Tromey <tom@tromey.com>
12454
12455 * symtab.c (lookup_objfile_from_block)
12456 (find_pc_sect_compunit_symtab, search_symbols)
12457 (default_collect_symbol_completion_matches_break_on): Use
12458 objfile_compunits.
12459 * objfiles.h (ALL_COMPUNITS): Remove.
12460 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
12461 * cp-support.c (add_symbol_overload_list_qualified): Use
12462 objfile_compunits.
12463 * ada-lang.c (ada_collect_symbol_completion_matches)
12464 (ada_add_global_exceptions): Use objfile_compunits.
12465
592553c4
TT
124662019-01-09 Tom Tromey <tom@tromey.com>
12467
12468 * source.c (select_source_symtab)
12469 (forget_cached_source_info_for_objfile): Remove declaration.
12470 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12471 declaration.
12472 * maint.c (count_symtabs_and_blocks): Remove declaration.
12473 * cp-support.c (add_symbol_overload_list_qualified): Remove
12474 declaration.
12475 * coffread.c (coff_symtab_read): Remove declaration.
12476 * symtab.c (lookup_symbol_in_objfile_symtabs)
12477 (basic_lookup_transparent_type_1): Use objfile_compunits.
12478 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
12479 (info_sources_command, search_symbols)
12480 (default_collect_symbol_completion_matches_break_on)
12481 (make_source_files_completion_list): Remove declaration.
12482 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
12483 (ada_collect_symbol_completion_matches)
12484 (ada_add_global_exceptions): Remove declaration.
12485 * linespec.c (iterate_over_all_matching_symtabs): Use
12486 objfile_compunits.
12487 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
12488 (class objfile_compunits): New.
12489 (ALL_COMPUNITS): Use objfile_compunits.
12490 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
12491 (maintenance_check_symtabs, maintenance_info_line_tables): Use
12492 objfile_compunits.
12493 * objfiles.c (objfile_relocate1): Use objfile_compunits.
12494
5325b9bf
TT
124952019-01-09 Tom Tromey <tom@tromey.com>
12496
12497 * symtab.c (search_symbols)
12498 (default_collect_symbol_completion_matches_break_on): Use
12499 objfile_msymbols.
12500 * ada-lang.c (ada_lookup_simple_minsym)
12501 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
12502 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
12503 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
12504 objfile_msymbols.
12505 * coffread.c (coff_symfile_read): Use objfile_msymbols.
12506 * symmisc.c (dump_msymbols): Use objfile_msymbols.
12507 * objc-lang.c (find_methods): Use objfile_msymbols.
12508 (info_selectors_command, info_classes_command): Likewise.
12509 * stabsread.c (scan_file_globals): Use objfile_msymbols.
12510 * objfiles.h (class objfile_msymbols): New.
12511 (ALL_OBJFILE_MSYMBOLS): Remove.
12512 (ALL_MSYMBOLS): Remove.
12513
cac85af2
TT
125142019-01-09 Tom Tromey <tom@tromey.com>
12515
12516 * common/next-iterator.h (next_adapter): Add Iterator template
12517 parameter.
12518 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
12519 (class all_objfiles_safe): New.
12520 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
12521 * objfiles.c (put_objfile_before): Update comment.
12522 (add_separate_debug_objfile): Likewise.
12523 (free_all_objfiles): Use all_objfiles_safe.
12524 (objfile_purge_solibs): Likewise.
12525
aed57c53
TT
125262019-01-09 Tom Tromey <tom@tromey.com>
12527
12528 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12529 (expand_symtab_containing_pc, lookup_static_symbol)
12530 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
12531 (find_symbol_at_address, find_line_symtab, find_main_name): Use
12532 all_objfiles.
12533 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
12534 * breakpoint.c (create_overlay_event_breakpoint)
12535 (create_longjmp_master_breakpoint)
12536 (create_std_terminate_master_breakpoint)
12537 (create_exception_master_breakpoint): Use all_objfiles.
12538 * linux-thread-db.c (try_thread_db_load_from_pdir)
12539 (has_libpthread): Use all_objfiles.
12540 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
12541 * linespec.c (iterate_over_all_matching_symtabs)
12542 (search_minsyms_for_name): Use all_objfiles.
12543 * maint.c (maintenance_info_sections): Use all_objfiles.
12544 * main.c (captured_main_1): Use all_objfiles.
12545 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
12546 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
12547 * guile/scm-pretty-print.c
12548 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
12549 * solib-spu.c (append_ocl_sos): Use all_objfiles.
12550 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
12551 (maintenance_print_msymbols): Use all_objfiles.
12552 * source.c (select_source_symtab): Use all_objfiles.
12553 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
12554 * symfile.c (remove_symbol_file_command)
12555 (expand_symtabs_matching, map_symbol_filenames): Use
12556 all_objfiles.
12557 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
12558 all_objfiles.
12559 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
12560 * objc-lang.c (find_methods): Use all_objfiles.
12561 * objfiles.c (have_partial_symbols, have_full_symbols)
12562 (have_minimal_symbols, qsort_cmp)
12563 (default_iterate_over_objfiles_in_search_order): Use
12564 all_objfiles.
12565 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
12566 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
12567 (maintenance_check_psymtabs): Use all_objfiles.
12568 (ALL_PSYMTABS): Remove.
12569 * compile/compile-object-run.c (do_module_cleanup): Use
12570 all_objfiles.
12571 * blockframe.c (find_pc_partial_function): Use all_objfiles.
12572 * cp-support.c (add_symbol_overload_list_qualified): Use
12573 all_objfiles.
12574 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12575 Use all_objfiles.
12576 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
12577 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
12578 all_objfiles.
12579 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12580 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
12581 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12582 Uses all_objfiles.
12583 * solib.c (solib_read_symbols): Use all_objfiles
12584
99d89cde
TT
125852019-01-09 Tom Tromey <tom@tromey.com>
12586
12587 * probe.c (parse_probes_in_pspace): Use all_objfiles.
12588 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
12589 all_objfiles.
12590 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
12591 * symmisc.c (print_symbol_bcache_statistics)
12592 (print_objfile_statistics, maintenance_print_objfiles)
12593 (maintenance_info_symtabs, maintenance_check_symtabs)
12594 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
12595 all_objfiles.
12596 * source.c (forget_cached_source_info): Use all_objfiles.
12597 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
12598 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12599 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
12600 * objfiles.c (update_section_map): Use all_objfiles.
12601 (shared_objfile_contains_address_p): Likewise.
12602 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
12603 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
12604
21708325
TT
126052019-01-09 Tom Tromey <tom@tromey.com>
12606
12607 * common/next-iterator.h: New file.
12608 * objfiles.h (class all_objfiles): New.
12609 (struct objfile_iterator): New.
12610
669e09f6
PW
126112019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12612
12613 * NEWS: Move the description of the changed "frame", "select-frame",
12614 and "info frame" commands to the Changed commands section.
12615
041be526
SM
126162019-01-09 Simon Marchi <simon.marchi@ericsson.com>
12617
12618 * gdbtypes.c (check_stub_method_group): Remove handling of old
12619 mangling schemes.
12620 * linespec.c (find_methods): Likewise.
12621 * stabsread.c (read_member_functions): Likewise.
12622 * valops.c (search_struct_method): Likewise.
12623 (value_struct_elt_for_reference): Likewise.
12624 * NEWS: Mention this change.
12625
0e2a2133
AB
126262019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12627
12628 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
12629 print_source_lines.
12630 * source.c (print_source_lines_base): Update line number check.
12631 (print_source_lines): New function.
12632 (source_lines_range::source_lines_range): New function.
12633 * source.h (class source_lines_range): New class.
12634 (print_source_lines): New declaration.
12635
1055a3b4
PW
126362019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12637
12638 * linespec.c (linespec_state_destructor): Free self->canonical_names.
12639
cfeadda5
TT
126402019-01-08 Tom Tromey <tom@tromey.com>
12641 Simon Marchi <simon.marchi@ericsson.com>
12642
12643 PR gdb/24060
12644 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
12645 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
12646 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12647 * f-exp.y (DOLLAR_VARIABLE): Likewise.
12648 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
12649 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12650
583068ca
AB
126512019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12652
12653 * source.c (select_source_symtab): Move header comment to
12654 declaration in source.h.
12655 (forget_cached_source_info_for_objfile): Likewise.
12656 (forget_cached_source_info): Likewise.
12657 (identify_source_line): Likewise.
12658 * source.h (identify_source_line): Move declaration from symtab.h
12659 and add comment from source.c
12660 (print_source_lines): Likewise.
12661 (forget_cached_source_info_for_objfile): Likewise.
12662 (forget_cached_source_info): Likewise.
12663 (select_source_symtab): Likewise.
12664 (enum print_source_lines_flag): Move definition from symtab.h.
12665 * symtab.h (identify_source_line): Move declaration to source.h.
12666 (print_source_lines): Likewise.
12667 (forget_cached_source_info_for_objfile): Likewise.
12668 (forget_cached_source_info): Likewise.
12669 (select_source_symtab): Likewise.
12670 (enum print_source_lines_flag): Move definition to source.h.
12671 * tui/tui-hooks.c: Add 'source.h' include.
12672
ec98a4ad
AB
126732019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12674
12675 * source.c (print_source_lines_base): Handle requests to print
12676 reverse line number sequences, and guard against empty lines
12677 string.
12678
62ea19c1
AB
126792019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12680
12681 * source.c (print_source_lines_base): Fix skip of '\r' if next
12682 character is '\n'.
12683
9d30e1fd
TT
126842019-01-06 Tom Tromey <tom@tromey.com>
12685
12686 * c-exp.y (struct c_parse_state) <macro_original_text,
12687 expansion_obstack>: New member.
12688 (macro_original_text, expansion_obstack): Remove globals.
12689 (scan_macro_expansion, scanning_macro_expansion)
12690 (finished_macro_expansion): Update.
12691 (scan_macro_cleanup): Remove.
12692 (yylex, c_parse): Update.
12693
c65bac38
TT
126942019-01-06 Tom Tromey <tom@tromey.com>
12695
12696 * c-exp.y (struct c_parse_state) <strings>: New member.
12697 (operator_stoken): Update.
12698
02e12e38
TT
126992019-01-06 Tom Tromey <tom@tromey.com>
12700
12701 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
12702 (union type_stack_elt) <typelist_val>: Now a pointer to
12703 std::vector.
12704 (type_stack_cleanup): Don't declare.
12705 (push_typelist): Update.
12706 * parse.c (pop_typelist): Return a std::vector.
12707 (push_typelist): Take a std::vector.
12708 (follow_types): Update. Do not free args.
12709 (type_stack_cleanup): Remove.
12710 * c-exp.y (struct c_parse_state): New.
12711 (cpstate): New global.
12712 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
12713 (nonempty_typelist): Update.
12714 (func_mod): Create a new vector.
12715 (c_parse): Create a c_parse_state.
12716 (check_parameter_typelist): Do not delete params.
12717 (function_method): Update. Do not delete type_list.
12718
f097f5ad
TT
127192019-01-06 Tom Tromey <tom@tromey.com>
12720
12721 PR gdb/28155:
12722 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
12723 check_typedef.
12724 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
12725 (print_return_value): Likewise.
12726
d2adf9f1
TT
127272019-01-05 Tom Tromey <tom@tromey.com>
12728
12729 * contrib/cleanup_check.py: Remove.
12730 * contrib/gcc-with-excheck: Remove.
12731 * contrib/exsummary.py: Remove.
12732 * contrib/excheck.py: Remove.
12733
2eab46b1
JB
127342019-01-05 Joel Brobecker <brobecker@adacore.com>
12735
12736 * thread.c (delete_thread_1): Add gdb_assert that THR is not
12737 NULL. Initialize tpprev to NULL instead of assigning it
12738 to NULL on the next statement.
12739 * windows-nat.c (windows_delete_thread): Remove check for
12740 main_thread_id before printing thread exit notifications.
12741 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
12742 Remove thread ID check against main_thread_id.
12743 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
12744 windows_delete_thread.
12745 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
12746
48c5e7e2
TT
127472019-01-04 Tom Tromey <tom@tromey.com>
12748
12749 * compile/compile.c (_initialize_compile): Use upper case for
12750 metasyntactic variables.
12751 * symmisc.c (_initialize_symmisc): Use upper case for
12752 metasyntactic variables.
12753 * psymtab.c (_initialize_psymtab): Use upper case for
12754 metasyntactic variables.
12755 * demangle.c (demangle_command): Use upper case for metasyntactic
12756 variables.
12757 (_initialize_demangler): Likewise.
12758 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
12759 variables.
12760
986041cd
TT
127612019-01-03 Tom Tromey <tom@tromey.com>
12762
12763 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
12764
7c711119
TT
127652019-01-03 Tom Tromey <tom@tromey.com>
12766
12767 * python/py-symtab.c (salpy_str): Update.
12768 (struct salpy_sal_object) <symtab>: Now a PyObject.
12769 (salpy_dealloc): Update.
12770 (del_objfile_sal): Use gdbpy_ref.
12771
1b20edf0
TT
127722019-01-03 Tom Tromey <tom@tromey.com>
12773
12774 * python/py-type.c (convert_field): Use new_reference. Return
12775 gdbpy_ref.
12776 (make_fielditem): Return gdbpy_ref.
12777 (typy_fields): Update.
12778 (typy_getitem): Update.
12779 (field_name): Return gdbpy_ref. Use new_reference.
12780 (typy_iterator_iternext): Update.
12781
ea41325b
TT
127822019-01-03 Tom Tromey <tom@tromey.com>
12783
12784 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
12785
2a3c71d6
TT
127862019-01-03 Tom Tromey <tom@tromey.com>
12787
12788 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
12789 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
12790 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
12791 (pspy_set_frame_filters, pspy_set_frame_unwinders)
12792 (pspy_set_type_printers): Likewise.
12793 * python/py-function.c (fnpy_init): Use gdbpy_ref.
12794 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
12795 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
12796 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
12797 (objfpy_set_type_printers): Likewise.
12798
5c329e6a
TT
127992019-01-03 Tom Tromey <tom@tromey.com>
12800
12801 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
12802 (gdbpy_print_stack): Use gdbpy_err_fetch.
12803 * python/python-internal.h (class gdbpy_err_fetch): New class.
12804 (class gdbpy_enter) <m_error_type, m_error_value,
12805 m_error_traceback>: Remove.
12806 <m_error>: New member.
12807 (gdbpy_exception_to_string): Don't declare.
12808 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
12809 * python/py-value.c (convert_value_from_python): Use
12810 gdbpy_err_fetch.
12811 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
12812 gdbpy_exception_to_string.
12813 (gdbpy_handle_exception): Use gdbpy_err_fetch.
12814 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
12815 gdbpy_err_fetch.
12816
169bb27b
AB
128172019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12818
12819 * linux-nat.c (delete_lwp_cleanup): Delete.
12820 (struct lwp_deleter): New struct.
12821 (lwp_info_up): New typedef.
12822 (linux_nat_target::follow_fork): Delete cleanup, and make use of
12823 lwp_info_up.
12824
a07c8880
AB
128252019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12826
12827 * linux-fork.c (class scoped_switch_fork_info): New class.
12828 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
12829
26089c49
AB
128302019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12831
12832 * valops.c (find_overload_match): Remove use of null_cleanup, and
12833 calls to do_cleanups.
12834
06d3e5b0
AB
128352019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12836
12837 * compile/compile-cplus-types.c
12838 (compile_cplus_instance::decl_name): Handle changes to
12839 cp_func_name.
12840 * cp-support.c (cp_func_name): Update header comment, update
12841 return type.
12842 * cp-support.h (cp_func_name): Update return type in declaration.
12843 * valops.c (find_overload_match): Move temp_func local to top
12844 level of function and change its type. Use temp_func to hold and
12845 delete temporary string obtained from cp_func_name.
12846
66644cd3
AB
128472019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12848
12849 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
12850 gdb::char_vector, remove cleanup, and update uses of `msg`.
12851
592d8c0a
JW
128522019-01-03 Jim Wilson <jimw@sifive.com>
12853
12854 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
12855
c55d06ec
TT
128562019-01-02 Tom Tromey <tom@tromey.com>
12857
12858 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
12859 (tdesc_parse_xml): Remove cleanups.
12860 * target-descriptions.h (make_cleanup_free_target_description):
12861 Don't declare.
12862 (target_desc_deleter): New struct.
12863 (target_desc_up): New typedef.
12864 * target-descriptions.c (target_desc_deleter::operator()): Rename
12865 from free_target_description.
12866 (make_cleanup_free_target_description): Remove.
12867
3a6ae42d
TT
128682019-01-02 Tom Tromey <tom@tromey.com>
12869
12870 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
12871 constructor, destructor.
12872 (linespec_parser): Remove typedef.
12873 (~linespec_parser): Rename from linespec_parser_delete.
12874 (linespec_lex_to_end, linespec_complete_label)
12875 (linespec_complete): Update.
12876 (decode_line_full): Remove cleanups.
12877 (decode_line_1): Update.
12878
61fd3e73
TT
128792019-01-02 Tom Tromey <tom@tromey.com>
12880
12881 * python/python-internal.h (inferior_to_inferior_object): Change
12882 return type.
12883 * python/py-exitedevent.c (create_exited_event_object): Update.
12884 * python/py-inferior.c (inferior_to_inferior_object): Return
12885 gdbpy_ref.
12886 (python_new_inferior, python_inferior_deleted)
12887 (thread_to_thread_object, delete_thread_object)
12888 (build_inferior_list, gdbpy_selected_inferior): Update.
12889 * python/py-infthread.c (create_thread_object): Update. Also fail
12890 if inferior_to_inferior_object fails.
12891
d20172fc
SM
128922019-01-02 Simon Marchi <simon.marchi@ericsson.com>
12893
12894 * inferior.h (class inferior) <displaced_step_state>: New field.
12895 * infrun.h (struct displaced_step_state): Move here from
12896 infrun.c. Initialize fields, add constructor.
12897 <inf>: Remove field.
12898 <reset>: New method.
12899 * infrun.c (struct displaced_step_inferior_state): Move to
12900 infrun.h.
12901 (displaced_step_inferior_states): Remove.
12902 (get_displaced_stepping_state): Adust.
12903 (displaced_step_in_progress_any_inferior): Adjust.
12904 (displaced_step_in_progress_thread): Adjust.
12905 (displaced_step_in_progress): Adjust.
12906 (add_displaced_stepping_state): Remove.
12907 (get_displaced_step_closure_by_addr): Adjust.
12908 (remove_displaced_stepping_state): Remove.
12909 (infrun_inferior_exit): Call displaced_step_state.reset.
12910 (use_displaced_stepping): Don't check for NULL.
12911 (displaced_step_prepare_throw): Call
12912 get_displaced_stepping_state.
12913 (displaced_step_fixup): Don't check for NULL.
12914 (prepare_for_detach): Don't check for NULL.
12915
e3319240
PW
129162019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12917
12918 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
12919 in case of call that did not complete.
12920
5d36dfb9
AU
129212019-01-02 Andrey Utkin <autkin@undo.io>
12922
12923 * symfile.c (find_separate_debug_file): Fix search of debug files for
12924 remote debuggee.
12925
8833fbf0
TT
129262019-01-02 Tom Tromey <tom@tromey.com>
12927
12928 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
12929 indentation.
12930 * python/py-frame.c (frapy_older): Remove cast.
12931 (frapy_newer): Likewise.
12932 * python/py-breakpoint.c (local_setattro): Remove cast.
12933 * python/py-arch.c (archpy_name): Remove local variable.
12934 * python/py-type.c (gdbpy_lookup_type): Remove cast.
12935
4ada3dfd
JB
129362019-01-02 Joel Brobecker <brobecker@adacore.com>
12937
12938 * unittests/basic_string_view/element_access/char/empty.cc:
12939 Fix year range in copyright header.
12940
113b7b81
AB
129412019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
12942
12943 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
12944 Delete.
12945 <operator==>: Update with for removed field.
12946 <hash>: Likewise.
12947 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
12948 <isa_features>: ...this.
12949 <abi_features>: New field.
12950 (riscv_isa_flen): Update comment.
12951 (riscv_abi_xlen): New declaration.
12952 (riscv_abi_flen): New declaration.
12953 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
12954 isa_features.
12955 (riscv_abi_xlen): New function.
12956 (riscv_isa_flen): Update to get answer from isa_features.
12957 (riscv_abi_flen): New function.
12958 (riscv_has_fp_abi): Update to get answer from abi_features.
12959 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
12960 xlen and flen.
12961 (riscv_call_info) <xlen, flen>: Update comment.
12962 (riscv_call_arg_struct): Remove invalid assertions
12963 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
12964 is removed.
12965 (riscv_gdbarch_init): Gather isa features and abi features
12966 separately, ensure both match on the gdbarch when reusing an old
12967 gdbarch. Relax an error check to allow 32-bit abi float to run on
12968 a target with 64-bit float hardware.
12969
b18ca514
PW
129702019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12971
12972 * source.c (search_command_helper): Stop reverse search
12973 when line 1 has been searched.
12974
ec70d8db
PW
129752019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12976
12977 * record-full.c (record_full_base_target::close): Rewrite
12978 record_full_core_buf_list free logic.
12979
5b38f9c1
PW
129802019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12981
12982 * break-catch-syscall.c (print_one_catch_syscall): xfree
12983 the last text.
12984
66d91b39
JB
129852019-01-01 Joel Brobecker <brobecker@adacore.com>
12986
12987 * top.c (print_gdb_version): Update Copyright year in version
12988 message.
12989
42a4f53d
JB
129902019-01-01 Joel Brobecker <brobecker@adacore.com>
12991
12992 Update copyright year range in all GDB files.
12993
7e955d83 129942019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 12995
5bbd631d 12996 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 12997
5bbd631d 12998For older changes see ChangeLog-2018.
c906108c
SS
12999\f
13000Local Variables:
13001mode: change-log
13002left-margin: 8
13003fill-column: 74
13004version-control: never
57da7796 13005coding: utf-8
c906108c 13006End:
5bbd631d 13007
This page took 2.757853 seconds and 4 git commands to generate.