Remove gdb_usleep.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
27a900b8
TT
12019-09-26 Tom Tromey <tom@tromey.com>
2
3 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
4 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
5 * gdb_usleep.h: Remove.
6 * gdb_usleep.c: Remove.
7 * utils.c: Don't include gdb_usleep.h.
8
5d63b30a
TT
92019-09-26 Tom Tromey <tromey@adacore.com>
10
11 * python/py-type.c (type_to_type_object): Call check_typedef
12 for stub types.
13
12904d37
TT
142019-09-26 Tom Tromey <tom@tromey.com>
15
16 * utils.h (initialize_utils): Don't declare.
17 * top.c (gdb_init): Don't call initialize_utils.
18 * utils.c (initialize_utils): Remove. Move contents...
19 (_initialize_utils): ... here.
20
858f25f0
TT
212019-09-25 Tom Tromey <tom@tromey.com>
22
23 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
24 * utils.h (make_hex_string): Don't declare.
25 * utils.c (make_hex_string): Remove.
26
3d435220
TV
272019-09-24 Tom de Vries <tdevries@suse.de>
28
29 PR gdb/23815
30 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
31 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
32
ddd44b70
DD
332019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
34
35 * NEWS: Mention new simulator port for PRU.
36
f945dedf
CB
372019-09-23 Christian Biesinger <cbiesinger@google.com>
38
39 * ada-exp.y (write_object_remaining): Update.
40 * ada-lang.c (ada_decode): Return a std::string instead of a char*
41 and eliminate the static buffer.
42 (ada_decode_symbol): Update.
43 (ada_la_decode): Update.
44 (ada_sniff_from_mangled_name): Update.
45 (is_valid_name_for_wild_match): Update.
46 (ada_lookup_name_info::matches): Update and simplify.
47 (name_matches_regex): Update.
48 (ada_add_global_exceptions): Update.
49 * ada-lang.h (ada_decode): Update signature.
50 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
51 * dwarf-index-write.c (debug_names::insert): Update.
52
7ab78ccb
SM
532019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
54
55 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
56 formatting.
57
9252448b
SM
582019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
59
60 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
61 Change "nonzero" to "true" in documentation.
62
626ca2c0
CB
632019-09-20 Christian Biesinger <cbiesinger@google.com>
64
65 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
66 (_initialize_darwin_solib): Don't set
67 darwin_so_ops.lookup_lib_global_symbol.
68 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
69 set_gdbarch_iterate_over_objfiles_in_search_order.
70 (elf_lookup_lib_symbol): Rename to...
71 (svr4_iterate_over_objfiles_in_search_order): this, and update
72 to iterate semantics.
73 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
74 * solib.c (solib_global_lookup): Remove.
75 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
76 (solib_global_lookup): Remove.
77 * symtab.c (lookup_global_or_static_symbol): Remove call to
78 solib_global_lookup.
79
5a3a0d63
JB
802019-09-20 Joel Brobecker <brobecker@adacore.com>
81
82 * NEWS: Move entries about default MI version now being
83 version 3, and about the GDB/MI fix for multi-location
84 breakpoints to the "since GDB 8.3" section.
85
ffea1427
JB
862019-09-20 Joel Brobecker <brobecker@adacore.com>
87
88 GDB 8.3.1 released.
89
abf516c6
UW
902019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
91
92 * NEWS: Mention that Cell/B.E. debugging support was removed.
93 * MAINTAINERS: Remove spu target.
94
95 * config/djgpp/fnchange.lst: Remove entries for removed files.
96
97 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
98 spu-multiarch.o, and spu-tdep.o.
99 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
100 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
101 spu-multiarch.c, and spu-tdep.c.
102 * spu-linux-nat.c: Remove file.
103 * spu-multiarch.c: Remove file.
104 * spu-tdep.c: Remove file.
105 * spu-tdep.h: Remove file.
106 * solib-spu.c: Remove file.
107 * solib-spu.h: Remove file.
108
109 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
110 * configure.nat (spu-linux): Remove.
111 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
112 solib-multiarch.o from gdb_target_obs.
113 (spu*-*-*): Remove.
114
115 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
116 feature flag.
117 (ppc_linux_no_features): Update.
118 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
119 Cell/B.E. support.
120 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
121 (tdesc_powerpc_cell64l): Likewise.
122 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
123 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
124 Cell/B.E. support.
125 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
126 Do not include "features/rs6000/powerpc-cell32l.c" or
127 "features/rs6000/powerpc-cell64l.c".
128 (ppc_linux_spu_section): Remove.
129 (ppc_linux_core_read_description): Remove Cell/B.E. support.
130 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
131 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
132 (ppc_linux_spe_context_lookup): Remove.
133 (ppc_linux_spe_context_inferior_created): Remove.
134 (ppc_linux_spe_context_solib_loaded): Remove.
135 (ppc_linux_spe_context_solib_unloaded): Remove.
136 (ppc_linux_spe_context): Remove.
137 (struct ppu2spu_cache): Remove.
138 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
139 (struct ppu2spu_data): Remove.
140 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
141 ppu2spu_unwind): Remove.
142 (ppc_linux_init_abi): Remove Cell/B.E. support.
143 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
144
145 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
146 (rs6000/powerpc-cell64l-expedite): Likewise
147 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
148 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
149 rs6000/powerpc-cell64l.xml.
150 * features/rs6000/powerpc-cell32l.xml: Remove.
151 * features/rs6000/powerpc-cell64l.xml: Likewise.
152 * features/rs6000/powerpc-cell32l.c: Remove generated file.
153 * features/rs6000/powerpc-cell64l.c: Likewise.
154 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
155 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
156 * regformats/reg-spu.dat: Remove.
157
158 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
159 * corelow.c (struct spuid_list): Remove.
160 (add_to_spuid_list): Remove.
161 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
162 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
163 (remote_protocol_features): Remove associated entries.
164 (_initialize_remote): No longer initialize them.
165 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
166 * linux-nat.c (SPUFS_MAGIC): Remove.
167 (linux_proc_xfer_spu): Remove.
168 (spu_enumerate_spu_ids): Remove.
169 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
170 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
171 (linux_make_corefile_notes): No longer call it.
172
173 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
174 (cooked_write_test): Likewise.
175
78e8cb91
TT
1762019-09-20 Tom Tromey <tom@tromey.com>
177
178 * NEWS: Mention case-sensitivity of TUI commands.
179 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
180 (tui_set_win_height_command, parse_scrolling_args): Likewise.
181 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
182
f074b67e
TT
1832019-09-20 Tom Tromey <tom@tromey.com>
184
185 * tui/tui-source.c (tui_source_window::set_contents): Use
186 make_unique_xstrdup.
187 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
188 make_unique_xstrdup.
189
63c4bf19
TT
1902019-09-20 Tom Tromey <tom@tromey.com>
191
192 * tui/tui-data.c: Remove separator comments.
193 * tui/tui-layout.c: Remove separator comments.
194 * tui/tui-win.c: Remove separator comments.
195 * tui/tui-wingeneral.c: Remove separator comments.
196
43df9b2f
TT
1972019-09-20 Tom Tromey <tom@tromey.com>
198
199 * tui/tui.h (strcat_to_buf): Don't declare.
200 * tui/tui.c (strcat_to_buf): Remove.
201
7226433c
TT
2022019-09-20 Tom Tromey <tom@tromey.com>
203
204 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
205 from "fullname".
206 * tui/tui-source.c (tui_source_window::set_contents)
207 (tui_source_window::location_matches_p)
208 (tui_source_window::maybe_update): Update.
209
80df3337
TT
2102019-09-20 Tom Tromey <tom@tromey.com>
211
212 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
213 Update.
214 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
215 prefix.
216 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
217 (tui_data_window::line_from_reg_element_no)
218 (tui_data_window::first_reg_element_no_inline)
219 (tui_data_window::show_registers)
220 (tui_data_window::show_register_group)
221 (tui_data_window::display_registers_from)
222 (tui_data_window::display_registers_from_line)
223 (tui_data_window::first_data_item_displayed)
224 (tui_data_window::delete_data_content_windows)
225 (tui_data_window::erase_data_content)
226 (tui_data_window::do_scroll_vertical)
227 (tui_data_window::refresh_window)
228 (tui_data_window::check_register_values): Update.
229
9923f347
TT
2302019-09-20 Tom Tromey <tom@tromey.com>
231
232 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
233 (struct tui_locator_window) <full_name, proc_name>: Now
234 std::string.
235 * tui/tui-stack.c (tui_locator_window::make_status_line)
236 (tui_locator_window::set_locator_fullname)
237 (tui_locator_window::set_locator_info): Update.
238 * tui/tui-source.c (tui_source_window::set_contents)
239 (tui_source_window::showing_source_p): Update.
240
b76251ab
TT
2412019-09-20 Tom Tromey <tom@tromey.com>
242
243 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
244 Don't call tui_locator_win_info_ptr.
245
0891be08
TT
2462019-09-20 Tom Tromey <tom@tromey.com>
247
248 * tui/tui-win.c (tui_resize_all): Don't call refresh.
249
1b935acf
TT
2502019-09-20 Tom Tromey <tom@tromey.com>
251
252 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
253 height for locator.
254 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
255 * tui/tui-layout.c (show_source_disasm_command, show_data)
256 (show_source_or_disasm_and_command): Use 1 as height for locator.
257
9abd8a65
TT
2582019-09-20 Tom Tromey <tom@tromey.com>
259
260 * tui/tui.c (tui_enable): Update.
261 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
262 Update.
263 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
264 Update.
265 * tui/tui-data.c (win_resized): Now bool.
266 (tui_win_resized): Return bool.
267 (tui_set_win_resized_to): Accept a bool.
268
b5457826
TT
2692019-09-20 Tom Tromey <tom@tromey.com>
270
271 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
272 Change type of "refresh_values_only".
273 * tui/tui-regs.c (tui_data_window::show_register_group): Change
274 type of "refresh_values_only".
275
6b915f7d
TT
2762019-09-20 Tom Tromey <tom@tromey.com>
277
278 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
279 std::string.
280 (tui_disassemble): Add "pos" parameter.
281 (tui_disasm_window::set_contents): Simplify.
282
2ad52f6f
TT
2832019-09-20 Tom Tromey <tom@tromey.com>
284
285 * tui/tui-winsource.h (struct tui_source_window_base)
286 <show_source_content>: Now private.
287 * tui/tui-winsource.c
288 (tui_source_window_base::show_source_content): Don't handle empty
289 content case.
290
b3b1bde6
TT
2912019-09-20 Tom Tromey <tom@tromey.com>
292
293 * tui/tui-layout.c (show_source_disasm_command)
294 (show_source_or_disasm_and_command): Don't call
295 show_source_content.
296
71a25ed2
TT
2972019-09-20 Tom Tromey <tom@tromey.com>
298
299 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
300 Declare.
301 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
302 from tui_make_status_line.
303 (tui_locator_window::rerender): Update.
304
f8532154
TT
3052019-09-20 Tom Tromey <tom@tromey.com>
306
307 * tui/tui-stack.c (tui_make_status_line): Return std::string.
308 (tui_locator_window::rerender): Update.
309
2d81b349
TT
3102019-09-20 Tom Tromey <tom@tromey.com>
311
312 * tui/tui-winsource.h (struct tui_source_window_base)
313 <~tui_source_window_base>: Don't declare.
314 <fullname>: Remove.
315 * tui/tui-winsource.c (~tui_source_window_base): Remove.
316 * tui/tui-source.h (struct tui_source_window) <fullname>: New
317 member.
318 * tui/tui-source.c (tui_source_window::set_contents): Update.
319 (tui_source_window::location_matches_p)
320 (tui_source_window::maybe_update): Update.
321
f14bec58
TT
3222019-09-20 Tom Tromey <tom@tromey.com>
323
324 * tui/tui-winsource.h (~tui_source_element): Remove.
325 (tui_source_element): Update.
326 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
327 * tui/tui-winsource.c (tui_show_source_line): Update.
328 * tui/tui-source.c (tui_source_window::set_contents): Update.
329 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
330
78d5933a
TT
3312019-09-20 Tom Tromey <tom@tromey.com>
332
333 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
334 declare.
335 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
336 tui_clear_source_windows_detail.
337 * tui/tui-winsource.h (struct tui_source_window_base)
338 <clear_detail>: Don't declare.
339 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
340 Remove.
341 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
342
d4207696
TT
3432019-09-20 Tom Tromey <tromey@adacore.com>
344
345 PR ada/24919:
346 * block.c (contained_in): Fix final return value.
347
00f93c44
AM
3482019-09-20 Alan Modra <amodra@gmail.com>
349
350 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
351 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
352 (read_indirect_string_from_dwz): Use bfd accessor.
353 * dwarf2read.h (struct dwz_file <filename>): Likewise.
354 * machoread.c (macho_symfile_read_all_oso): Likewise.
355 * solib.c (solib_bfd_open): Likewise.
356
e4153ae6
CB
3572019-09-19 Christian Biesinger <cbiesinger@google.com>
358
359 * eval.c: Move declaration of overload_resolution to...
360 * value.h: ...here.
361
c7ae7675
CB
3622019-09-19 Christian Biesinger <cbiesinger@google.com>
363
364 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
365 * arm-linux-tdep.c: Likewise.
366 * arm-nbsd-nat.c: Likewise.
367 * arm-tdep.h: Declare arm_apcs_32.
368 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
369
e86f08d2
CB
3702019-09-19 Christian Biesinger <cbiesinger@google.com>
371
372 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
373 * dwarf2read.h: Declare dwarf_always_disassemble.
374
f64e2f40
TV
3752019-09-19 Tom de Vries <tdevries@suse.de>
376
377 PR gdb/25009
378 * source-cache.c (source_cache::ensure): Catch exception thrown during
379 construction of the highlighter.
380
fd361982
AM
3812019-09-18 Alan Modra <amodra@gmail.com>
382
383 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
384 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
385 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
386 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
387 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
388 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
389 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
390 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
391 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
392 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
393 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
394 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
395 * solib-spu.c, * solib-svr4.c, * solib-target.c,
396 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
397 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
398 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
399 * mi/mi-interp.c: Update throughout for bfd section macro and
400 function changes.
401 * gcore (gcore_create_callback): Use bfd_set_section_lma.
402 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
403
11061048
TT
4042019-09-18 Tom Tromey <tom@tromey.com>
405
406 * NEWS: Add entry.
407 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
408 call rl_initialize.
409 (tui_enable): Do not call rl_initialize.
410
7a27b85f
CG
4112019-09-18 Christian Groessler <chris@groessler.org>
412
413 * alpha-linux-nat.c: Include gdbarch.h.
414
f64eea3a
SM
4152019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
416
417 * ui-file.c: Include cli/cli-style.h.
418 (term_cli_styling): Remove cli_styling declaration.
419
e6f7f6d1
AM
4202019-09-18 Alan Modra <amodra@gmail.com>
421
422 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
423 to bfd_asymbol_section.
424
1d38e9d1
AM
4252019-09-18 Alan Modra <amodra@gmail.com>
426
427 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
428 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
429 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
430
90d92a63
AM
4312019-09-18 Alan Modra <amodra@gmail.com>
432
433 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
434 * spu-linux-nat.c (spu_bfd_open): Likewise.
435
a3d181d2
CB
4362019-09-18 Christian Biesinger <cbiesinger@google.com>
437
438 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
439 to bool to match definition in dwarf2read.c.
440
491144b5
CB
4412019-09-17 Christian Biesinger <cbiesinger@google.com>
442
443 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
444 (print_signatures): Likewise.
445 (trust_pad_over_xvs): Likewise.
446 * arch/aarch64-insn.c (aarch64_debug): Likewise.
447 * arch/aarch64-insn.h (aarch64_debug): Likewise.
448 * arm-linux-nat.c (arm_apcs_32): Likewise.
449 * arm-linux-tdep.c (arm_apcs_32): Likewise.
450 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
451 * arm-tdep.c (arm_debug): Likewise.
452 (arm_apcs_32): Likewise.
453 * auto-load.c (debug_auto_load): Likewise.
454 (auto_load_gdb_scripts): Likewise.
455 (global_auto_load): Likewise.
456 (auto_load_local_gdbinit): Likewise.
457 (auto_load_local_gdbinit_loaded): Likewise.
458 * auto-load.h (global_auto_load): Likewise.
459 (auto_load_local_gdbinit): Likewise.
460 (auto_load_local_gdbinit_loaded): Likewise.
461 * breakpoint.c (disconnected_dprintf): Likewise.
462 (breakpoint_proceeded): Likewise.
463 (automatic_hardware_breakpoints): Likewise.
464 (always_inserted_mode): Likewise.
465 (target_exact_watchpoints): Likewise.
466 (_initialize_breakpoint): Update.
467 * breakpoint.h (target_exact_watchpoints): Change to bool.
468 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
469 * cli/cli-cmds.c (trace_commands): Likewise.
470 * cli/cli-cmds.h (trace_commands): Likewise.
471 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
472 to bool*.
473 * cli/cli-logging.c (logging_overwrite): Change to bool.
474 (logging_redirect): Likewise.
475 (debug_redirect): Likewise.
476 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
477 (struct boolean_option_def) <get_var_address_cb_>: Change return type
478 to bool.
479 <boolean_option_def>: Update.
480 (struct flag_option_def): Change default type of Context to bool
481 from int.
482 <flag_option_def>: Change return type of var_address_cb_ to bool*.
483 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
484 (get_setshow_command_value_string): Likewise.
485 * cli/cli-style.c (cli_styling): Change to bool.
486 (source_styling): Likewise.
487 * cli/cli-style.h (source_styling): Likewise.
488 (cli_styling): Likewise.
489 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
490 to bool.
491 * command.h (var_types): Update comment.
492 (add_setshow_boolean_cmd): Change int* var argument to bool*.
493 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
494 bool.
495 (debug_compile_cplus_scopes): Likewise.
496 * compile/compile-internal.h (compile_debug): Likewise.
497 * compile/compile.c (compile_debug): Likewise.
498 (struct compile_options) <raw>: Likewise.
499 * cp-support.c (catch_demangler_crashes): Likewise.
500 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
501 (usr_cmd_cris_dwarf2_cfi): Likewise.
502 * csky-tdep.c (csky_debug): Likewise.
503 * darwin-nat.c (enable_mach_exceptions): Likewise.
504 * dcache.c (dcache_enabled_p): Likewise.
505 * defs.h (info_verbose): Likewise.
506 * demangle.c (demangle): Likewise.
507 (asm_demangle): Likewise.
508 * dwarf-index-cache.c (debug_index_cache): Likewise.
509 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
510 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
511 * dwarf2read.c (check_physname): Likewise.
512 (use_deprecated_index_sections): Likewise.
513 (dwarf_always_disassemble): Likewise.
514 * eval.c (overload_resolution): Likewise.
515 * event-top.c (set_editing_cmd_var): Likewise.
516 (exec_done_display_p): Likewise.
517 * event-top.h (set_editing_cmd_var): Likewise.
518 (exec_done_display_p): Likewise.
519 * exec.c (write_files): Likewise.
520 * fbsd-nat.c (debug_fbsd_lwp): Likewise
521 (debug_fbsd_nat): Likewise.
522 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
523 Likewise.
524 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
525 <backtrace_past_entry> Likewise.
526 * gdb-demangle.h (demangle): Likewise.
527 (asm_demangle): Likewise.
528 * gdb_bfd.c (bfd_sharing): Likewise.
529 * gdbcore.h (write_files): Likewise.
530 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
531 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
532 * gdbthread.h (print_thread_events): Likewise.
533 * gdbtypes.c (opaque_type_resolution): Likewise.
534 (strict_type_checking): Likewise.
535 * gnu-nat.c (gnu_debug_flag): Likewise.
536 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
537 * guile/scm-param.c (pascm_variable): Add boolval.
538 (add_setshow_generic): Update.
539 (pascm_param_value): Update.
540 (pascm_set_param_value_x): Update.
541 * hppa-tdep.c (hppa_debug): Change to bool..
542 * infcall.c (may_call_functions_p): Likewise.
543 (coerce_float_to_double_p): Likewise.
544 (unwind_on_signal_p): Likewise.
545 (unwind_on_terminating_exception_p): Likewise.
546 * infcmd.c (startup_with_shell): Likewise.
547 * inferior.c (print_inferior_events): Likewise.
548 * inferior.h (startup_with_shell): Likewise.
549 (print_inferior_events): Likewise.
550 * infrun.c (step_stop_if_no_debug): Likewise.
551 (detach_fork): Likewise.
552 (debug_displaced): Likewise.
553 (disable_randomization): Likewise.
554 (non_stop): Likewise.
555 (non_stop_1): Likewise.
556 (observer_mode): Likewise.
557 (observer_mode_1): Likewise.
558 (set_observer_mode): Update.
559 (sched_multi): Change to bool.
560 * infrun.h (debug_displaced): Likewise.
561 (sched_multi): Likewise.
562 (step_stop_if_no_debug): Likewise.
563 (non_stop): Likewise.
564 (disable_randomization): Likewise.
565 * linux-tdep.c (use_coredump_filter): Likewise.
566 (dump_excluded_mappings): Likewise.
567 * linux-thread-db.c (auto_load_thread_db): Likewise.
568 (check_thread_db_on_load): Likewise.
569 * main.c (captured_main_1): Update.
570 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
571 xx2_opt, boolean_opt>: Change to bool.
572 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
573 * maint.c (maintenance_profile_p): Likewise.
574 (per_command_time): Likewise.
575 (per_command_space): Likewise.
576 (per_command_symtab): Likewise.
577 * memattr.c (inaccessible_by_default): Likewise.
578 * mi/mi-main.c (mi_async): Likewise.
579 (mi_async_1): Likewise.
580 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
581 * nat/fork-inferior.h (startup_with_shell): Likewise.
582 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
583 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
584 * nios2-tdep.c (nios2_debug): Likewise.
585 * or1k-tdep.c (or1k_debug): Likewise.
586 * parse.c (parser_debug): Likewise.
587 * parser-defs.h (parser_debug): Likewise.
588 * printcmd.c (print_symbol_filename): Likewise.
589 * proc-api.c (procfs_trace): Likewise.
590 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
591 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
592 (set_parameter_value): Update.
593 (add_setshow_generic): Update.
594 * python/py-value.c (copy_py_bool_obj): Change argument from int*
595 to bool*.
596 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
597 int*.
598 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
599 * record-btrace.c (record_btrace_target::store_registers): Update.
600 * record-full.c (record_full_memory_query): Change to bool.
601 (record_full_stop_at_limit): Likewise.
602 * record-full.h (record_full_memory_query): Likewise.
603 * remote-notif.c (notif_debug): Likewise.
604 * remote-notif.h (notif_debug): Likewise.
605 * remote.c (use_range_stepping): Likewise.
606 (interrupt_on_connect): Likewise.
607 (remote_break): Likewise.
608 * ser-tcp.c (tcp_auto_retry): Likewise.
609 * ser-unix.c (serial_hwflow): Likewise.
610 * skip.c (debug_skip): Likewise.
611 * solib-aix.c (solib_aix_debug): Likewise.
612 * spu-tdep.c (spu_stop_on_load_p): Likewise.
613 (spu_auto_flush_cache_p): Likewise.
614 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
615 Likewise.
616 (struct info_print_options) <quiet>: Likewise.
617 * symfile-debug.c (debug_symfile): Likewise.
618 * symfile.c (auto_solib_add): Likewise.
619 (separate_debug_file_debug): Likewise.
620 * symfile.h (auto_solib_add): Likewise.
621 (separate_debug_file_debug): Likewise.
622 * symtab.c (basenames_may_differ): Likewise.
623 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
624 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
625 (struct info_types_options) <quiet>: Likewise.
626 * symtab.h (demangle): Likewise.
627 (basenames_may_differ): Likewise.
628 * target-dcache.c (stack_cache_enabled_1): Likewise.
629 (code_cache_enabled_1): Likewise.
630 * target.c (trust_readonly): Likewise.
631 (may_write_registers): Likewise.
632 (may_write_memory): Likewise.
633 (may_insert_breakpoints): Likewise.
634 (may_insert_tracepoints): Likewise.
635 (may_insert_fast_tracepoints): Likewise.
636 (may_stop): Likewise.
637 (auto_connect_native_target): Likewise.
638 (target_stop_and_wait): Update.
639 (target_async_permitted): Change to bool.
640 (target_async_permitted_1): Likewise.
641 (may_write_registers_1): Likewise.
642 (may_write_memory_1): Likewise.
643 (may_insert_breakpoints_1): Likewise.
644 (may_insert_tracepoints_1): Likewise.
645 (may_insert_fast_tracepoints_1): Likewise.
646 (may_stop_1): Likewise.
647 * target.h (target_async_permitted): Likewise.
648 (may_write_registers): Likewise.
649 (may_write_memory): Likewise.
650 (may_insert_breakpoints): Likewise.
651 (may_insert_tracepoints): Likewise.
652 (may_insert_fast_tracepoints): Likewise.
653 (may_stop): Likewise.
654 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
655 (make_thread_apply_all_options_def_group): Change argument from int*
656 to bool*.
657 (thread_apply_all_command): Update.
658 (print_thread_events): Change to bool.
659 * top.c (confirm): Likewise.
660 (command_editing_p): Likewise.
661 (history_expansion_p): Likewise.
662 (write_history_p): Likewise.
663 (info_verbose): Likewise.
664 * top.h (confirm): Likewise.
665 (history_expansion_p): Likewise.
666 * tracepoint.c (disconnected_tracing): Likewise.
667 (circular_trace_buffer): Likewise.
668 * typeprint.c (print_methods): Likewise.
669 (print_typedefs): Likewise.
670 * utils.c (debug_timestamp): Likewise.
671 (sevenbit_strings): Likewise.
672 (pagination_enabled): Likewise.
673 * utils.h (sevenbit_strings): Likewise.
674 (pagination_enabled): Likewise.
675 * valops.c (overload_resolution): Likewise.
676 * valprint.h (struct value_print_options) <prettyformat_arrays,
677 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
678 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
679 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
680 Likewise.
681 * windows-nat.c (new_console): Likewise.
682 (cygwin_exceptions): Likewise.
683 (new_group): Likewise.
684 (debug_exec): Likewise.
685 (debug_events): Likewise.
686 (debug_memory): Likewise.
687 (debug_exceptions): Likewise.
688 (useshell): Likewise.
689 * windows-tdep.c (maint_display_all_tib): Likewise.
690 * xml-support.c (debug_xml): Likewise.
691
f1b620e9
MG
6922019-09-17 Mike Gulick <mgulick@mathworks.com>
693
694 * source.c (prepare_path_for_appending): New function.
695 (openp): Make use of new function.
696 (find_and_open_source): Search for the compilation directory and
697 source file as a relative path beneath the directory search path.
698
67f3ed6a
AB
6992019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
700
701 * source-cache.c (source_cache::get_line_charpos): Catch
702 exceptions and return false, this matches the behaviour documented
703 in the header file.
704
74332189
JB
7052019-09-17 Joel Brobecker <brobecker@adacore.com>
706
707 * ada-tasks.c (info_task): Remove quoting of the task's name.
708
f2f24aa9
CB
7092019-09-16 Christian Biesinger <cbiesinger@google.com>
710
711 * symfile.c (auto_solib_add): Replace comment with a reference
712 to the header file.
713
6a062a93
CB
7142019-09-14 Christian Biesinger <cbiesinger@google.com>
715
716 * NEWS: Mention that gdb can now be compiled with Python 3
717 on Windows.
718
ec6c8338
AB
7192019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
720
721 * maint.c (maint_print_section_data::maint_print_section_data):
722 Force use of 'float log10 (float)' by casting the argument to
723 float.
724
aa17805f
AB
7252019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
726
727 * maint.c: Add 'cmath' include.
728 (struct maint_print_section_data): New structure.
729 (print_section_index): New function.
730 (print_bfd_section_info): Add header comment, small whitespace
731 cleanup, and update to call new print_section_index function.
732 (print_objfile_section_info): Likewise.
733 (maint_obj_section_from_bfd_section): New function.
734 (print_bfd_section_info_maybe_relocated): New function.
735 (maintenance_info_sections): Add header comment, always use
736 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
737
3dd9bb46
AB
7382019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
739
740 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
741 inner scope, add check that the objfile has psymtabs before
742 checking psymtabs_addrmap.
743 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
744
4993045d
PW
7452019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
746
747 * NEWS: Announce that Ada task names are now shown at more places,
748 and between quotes (except in info task output).
749 * gdb/ada-tasks.c (task_to_str): New function.
750 (display_current_task_id): Call task_to_str.
751 (task_command_1): Likewise.
752 (print_ada_task_info): In non-mi mode, Properly align headers and data
753 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
754
7a289707
RO
7552019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
756
757 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
758 prstatus.pr_lwp.pr_info instead of making it up.
759
f2aec7f6
CB
7602019-09-11 Christian Biesinger <cbiesinger@google.com>
761
762 * auto-load.c (auto_load_expand_dir_vars): Update.
763 * defs.h (gdb_datadir): Change to std::string.
764 (python_libdir): Likewise.
765 (relocate_gdb_directory): Change return type to std::string.
766 * guile/guile.c (gdbscm_data_directory): Update.
767 (initialize_scheme_side): Update.
768 * jit.c (jit_reader_dir): Change to std::string.
769 (jit_reader_load_command): Update.
770 * main.c (gdb_datadir): Change to std::string.
771 (python_libdir): Likewise.
772 (set_gdb_data_directory): Update.
773 (relocate_path): Change to return std::string.
774 (relocate_gdb_directory): Change to return std::string.
775 (relocate_gdbinit_path_maybe_in_datadir): Update.
776 (captured_main_1): Update.
777 * python/python.c (do_start_initialization): Update.
778 * top.c (show_gdb_datadir): Update.
779 * xml-syscall.c (xml_init_syscalls_info): Update.
780 (init_syscalls_info): Update.
781
9224a013
CB
7822019-09-11 Christian Biesinger <cbiesinger@google.com>
783
784 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
785 out of get_init_files.
786 (get_init_files): Update.
787
f48cd836
CB
7882019-09-11 Christian Biesinger <cbiesinger@google.com>
789
790 * main.c (get_init_files): Change to use std::string.
791 (captured_main_1): Update.
792 (print_gdb_help): Update.
793
9cab7ecd
AT
7942019-09-11 Ali Tamur <tamur@google.com>
795
796 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
797 implementation.
798
67547d89
CB
7992019-09-11 Christian Biesinger <cbiesinger@google.com>
800
801 * dbxread.c (read_dbx_symtab): Update.
802 * dwarf2read.c (load_partial_dies): Update.
803 * mdebugread.c (parse_partial_symbols): Update.
804 (handle_psymbol_enumerators): Update.
805 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
806 * psymtab.c (add_psymbol_to_bcache): Likewise.
807 (add_psymbol_to_list): Likewise.
808 * symtab.c (symbol_set_names): Likewise.
809 * symtab.h (symbol_set_names): Likewise.
810 * xcoffread.c (scan_xcoff_symtab): Update.
811
64b2d4a0
TT
8122019-09-11 Tom Tromey <tom@tromey.com>
813
814 * symfile-mem.c (symbol_file_add_from_memory): Use
815 bfd_set_filename.
816 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
817 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
818
3b00ef10
TT
8192019-09-10 Tom Tromey <tromey@adacore.com>
820
821 * dwarf-index-write.c (write_psymbols): Extend error message.
822 (debug_names::insert): Add Ada code.
823 (debug_names::write_psymbols): Remove Ada check.
824 (debug_names) <m_string_obstack>: New member.
825 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
826 (gdb_index_symbol_name_matcher::matches): Remove.
827 (mapped_index_base::find_name_components_bounds): Add "lang"
828 parameter.
829 (mapped_index_base::build_name_components): Also split names
830 according to Ada syntax.
831 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
832 type of "match_callback".
833 (check_match, check_find_bounds_finds)
834 (dw2_expand_symtabs_matching): Update.
835 (dw2_debug_names_iterator): Add new constructor.
836 (dw2_debug_names_map_matching_symbols): New function.
837 (dw2_debug_names_expand_symtabs_matching): Update.
838 (dwarf2_debug_names_functions): Use
839 dw2_debug_names_map_matching_symbols.
840
aa391654
TT
8412019-09-10 Tom Tromey <tromey@adacore.com>
842
843 * dwarf2read.c (dw2_get_file_names_reader): Add the
844 CU's file name to the results.
845
b054970d
TT
8462019-09-10 Tom Tromey <tromey@adacore.com>
847
848 * ada-lang.c (add_nonlocal_symbols): Combine calls to
849 map_matching_symbols. Update.
850 * dwarf2read.c (dw2_map_matching_symbols): Update.
851 * psymtab.c (match_partial_symbol): Change type; update.
852 (psym_map_matching_symbols): Likewise.
853 * symfile-debug.c (debug_qf_map_matching_symbols): Change
854 type; update.
855 * symfile.h (struct quick_symbol_functions)
856 <map_matching_symbols>: Change "name" to be a lookup_name_info.
857 Remove "match".
858
6a3dbf1b
TT
8592019-09-10 Tom Tromey <tromey@adacore.com>
860
861 * psymtab.c (map_block): Remove.
862 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
863 * symtab.c (iterate_over_symbols_terminated): New function.
864 * symtab.c (iterate_over_symbols_terminated): Declare.
865
6969f124
TT
8662019-09-10 Tom Tromey <tromey@adacore.com>
867
868 * ada-lang.c (ada_iterate_over_symbols): Return bool.
869 * language.h (struct language_defn) <la_iterate_over_symbols>:
870 Return bool.
871 * symtab.c (iterate_over_symbols): Return bool.
872 * symtab.h (iterate_over_symbols): Return bool.
873
199b4314
TT
8742019-09-10 Tom Tromey <tromey@adacore.com>
875
876 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
877 (add_nonlocal_symbols): Update.
878 * dwarf2read.c (dw2_map_matching_symbols): Change type.
879 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
880 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
881 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
882 Change type of "callback". Remove "data".
883
a084a2a6
AT
884
8852019-09-09 Ali Tamur <tamur@google.com>
886
887 * dwarf2read.c (comp_unit_head): Update comment.
888 (dwarf2_dwo_name): New function declaration.
889 (dwarf_unit_type_name): New function declaration.
890 (read_comp_unit_head): Add support for new compilation units,
891 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
892 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
893 (currently named as "signature") in their header. Also clarify error
894 messages.
895 (lookup_dwo_id): New function. Returns the dwo id of the given
896 compile unit.
897 (lookup_dwo_unit): Use the new lookup_dwo_id function.
898 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
899 functions.
900 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
901 (dwarf2_dwo_name): Get the dwo name if present.
902 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
903 purposes.
904
25a2915e
TT
9052019-09-09 Tom Tromey <tom@tromey.com>
906
907 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
908
e4df0874
PW
9092019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
910
911 * python/python.c (do_start_initialization): Make progname_copy static,
912 to avoid a leak report.
913
8634b462
TT
9142019-09-08 Tom Tromey <tom@tromey.com>
915
916 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
917
c7f839cb
SM
9182019-09-07 Simon Marchi <simon.marchi@efficios.com>
919
920 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
921 Change type to gdb::optional<block_enum>.
922 (dw2_symtab_iter_init): Change block_index parameter type
923 to gdb::optional<block_enum>.
924 (dw2_lookup_symbol): Change block_index parameter
925 type to block_enum.c
926 (dw2_debug_names_lookup_symbol): Likewise.
927 * psymtab.c (psym_lookup_symbol): Likewise.
928 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
929 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
930 Likewise.
931
ead0e69a
CB
9322019-09-06 Christian Biesinger <cbiesinger@google.com>
933
934 * defs.h (relocate_gdb_directory): Change int to bool in
935 signature and rename flag to relocatable.
936 * main.c (relocate_path): Likewise.
937 (relocate_gdb_directory): Likewise.
938
b16c44de
AM
9392019-09-06 Alan Modra <amodra@gmail.com>
940
941 * coffread.c (coff_symfile_read): Constify filename variable.
942 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
943 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
944 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
945 * solib.c (reload_shared_libraries_1): Likewise.
946 * symfile.c (reread_symbols): Likewise.
947 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
948 * solib-darwin.c (darwin_bfd_open): Likewise.
949 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
950
06ff036e
AB
9512019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
952
953 * psymtab.c (print_partial_symbols): Handle missing domain_enum
954 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
955
4e962e74
TT
9562019-09-03 Tom Tromey <tromey@adacore.com>
957
958 * ada-valprint.c (ada_val_print_num): Don't recurse for range
959 types.
960 (has_negatives): Unbias a range type bound.
961 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
962 * gdbtypes.c (operator==): Handle new field.
963 (create_range_type): Add "bias" parameter.
964 (create_static_range_type, resolve_dynamic_range): Update.
965 * gdbtypes.h (struct range_bounds) <bias>: New member.
966 (create_range_type): Add bias parameter.
967 * printcmd.c (print_scalar_formatted): Unbias range types.
968 * value.c (unpack_long): Unbias range types.
969 (pack_long): Bias range types.
970
d90b8f26
AH
9712019-09-02 Alan Hayward <alan.hayward@arm.com>
972
973 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
974 probe arguments.
975
fe01123e
AH
9762019-09-02 Alan Hayward <alan.hayward@arm.com>
977
978 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
979 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
980 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
981 (compile_probe_arg): Likewise.
982 * probe.h (get_argument_count): Likewise.
983 * solib-svr4.c (solib_event_probe_action): Likewise.
984 * stap-probe.c (stap_probe::get_argument_count): Likewise.
985
e661ef01
AH
9862019-09-02 Alan Hayward <alan.hayward@arm.com>
987
988 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
989 code to here...
990 (svr4_create_solib_event_breakpoints): ...from here.
991
47a536d9
SDJ
9922019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
993
994 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
995 suffix from warning message.
996
d6a00eba
TT
9972019-08-30 Tom Tromey <tom@tromey.com>
998
999 * tui/tui-winsource.h (struct tui_source_window_base)
1000 <refresh_all>: Don't declare.
1001 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
1002 Remove.
1003 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
1004 tui_show_locator_content.
1005 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
1006 declare.
1007 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
1008 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
1009 declare.
1010
55b2657b
TT
10112019-08-30 Tom Tromey <tom@tromey.com>
1012
1013 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
1014
12a8555a
TT
10152019-08-30 Tom Tromey <tom@tromey.com>
1016
1017 * tui/tui-stack.c (_initialize_tui_stack): Move later.
1018 Remove unnecessary forward declarations.
1019
900ac242
TT
10202019-08-30 Tom Tromey <tom@tromey.com>
1021
1022 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
1023 rerender.
1024 (tui_update_locator_fullname, tui_show_frame_info): Don't call
1025 tui_show_locator_content.
1026
99ab33fb
TT
10272019-08-30 Tom Tromey <tom@tromey.com>
1028
1029 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
1030 (tui_locator_window::rerender): Rewrite using body of previous
1031 tui_show_locator_content.
1032
e594a5d1
TT
10332019-08-30 Tom Tromey <tom@tromey.com>
1034
1035 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
1036 set_locator_fullname>: New methods.
1037 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1038 Rename from tui_set_locator_fullname.
1039 (tui_locator_window::set_locator_info): Rename from
1040 tui_set_locator_info. Return bool.
1041 (tui_update_locator_fullname, tui_show_frame_info): Update.
1042
715bb467
TT
10432019-08-30 Tom Tromey <tom@tromey.com>
1044
1045 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
1046
772f3f03
TT
10472019-08-30 Tom Tromey <tom@tromey.com>
1048
1049 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
1050 call touchwin.
1051
108e13ab
TT
10522019-08-30 Tom Tromey <tom@tromey.com>
1053
1054 * tui/tui-wingeneral.c (box_win): Assume win_info and
1055 win_info->handle cannot be NULL.
1056
cdaa6eb4
TT
10572019-08-30 Tom Tromey <tom@tromey.com>
1058
1059 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
1060 refresh_window>: Declare.
1061 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
1062 resize.
1063 (tui_data_item_window::rerender): Rename from
1064 tui_display_register.
1065 (tui_data_item_window::refresh_window): New method.
1066 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
1067 no-op.
1068
89df7f90
TT
10692019-08-30 Tom Tromey <tom@tromey.com>
1070
1071 * tui/tui-regs.h (struct tui_data_window) <regs_content,
1072 regs_column_count, current_group>: Move later. Now private.
1073 <get_current_group>: New method.
1074 * tui/tui-regs.c (tui_reg_command): Update.
1075 * tui/tui-layout.c (tui_set_layout): Update.
1076
1bf2866a
TT
10772019-08-30 Tom Tromey <tom@tromey.com>
1078
1079 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1080 (tui_data_window::rerender): Don't call
1081 check_and_display_highlight_if_needed.
1082 (tui_data_window::refresh_all): Remove call to
1083 erase_data_content.
1084
0670413d
TT
10852019-08-30 Tom Tromey <tom@tromey.com>
1086
1087 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1088 (tui_data_window::display_registers_from)
1089 (tui_data_window::display_reg_element_at_line)
1090 (tui_data_window::display_registers_from_line): Remove checks of
1091 "empty".
1092
18bb55c7
TT
10932019-08-30 Tom Tromey <tom@tromey.com>
1094
1095 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
1096 Don't declare.
1097 * tui/tui-regs.c (tui_data_window::show_registers): Call
1098 rerender.
1099 (tui_data_window::rerender): Rename from display_all_data.
1100 (tui_data_window::rerender): Remove old implementation.
1101
1f6d2f10
TT
11022019-08-30 Tom Tromey <tom@tromey.com>
1103
1104 * tui/tui-regs.c (tui_data_window::display_all_data): Change
1105 text.
1106 * tui/tui-data.h (NO_DATA_STRING): Remove define.
1107
16d01f9c
BW
11082019-08-29 Bernhard Wodok <barto@gmx.net>
1109 Sergio Durigan Junior <sergiodj@redhat.com>
1110
1111 PR win32/24284
1112 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
1113
d8f27c60
AB
11142019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1115
1116 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
1117 when searching for types.
1118
1f20c35e
AB
11192019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1120
1121 * f-lang.c (f_language_defn): Use f_print_typedef.
1122 * f-lang.h (f_print_typedef): Declare.
1123 * f-typeprint.c (f_print_typedef): Define.
1124
550105b7
CB
11252019-08-27 Christian Biesinger <cbiesinger@google.com>
1126
1127 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
1128
4acfdd20
AB
11292019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
1130
1131 * cli/cli-utils.c (info_print_options_defs): Delete.
1132 (make_info_print_options_def_group): Delete.
1133 (extract_info_print_options): Delete.
1134 (info_print_command_completer): Delete.
1135 (info_print_args_help): Add extra parameter, and optionally
1136 include text about -n flag.
1137 * cli/cli-utils.h (struct info_print_options): Delete.
1138 (extract_info_print_options): Delete declaration.
1139 (info_print_command_completer): Delete declaration.
1140 (info_print_args_help): Add extra parameter, extend header
1141 comment.
1142 * python/python.c (gdbpy_rbreak): Pass additional parameter to
1143 search_symbols.
1144 * stack.c (struct info_print_options): New type.
1145 (info_print_options_defs): New file scoped variable.
1146 (make_info_print_options_def_group): New static function.
1147 (info_print_command_completer): New static function.
1148 (info_locals_command): Update to use new local functions.
1149 (info_args_command): Likewise.
1150 (_initialize_stack): Add extra parameter to calls to
1151 info_print_args_help.
1152 * symtab.c (search_symbols): Add extra parameter, use this to
1153 possibly excluse non-debug symbols.
1154 (symtab_symbol_info): Add extra parameter, which is passed on to
1155 search_symbols.
1156 (struct info_print_options): New type.
1157 (info_print_options_defs): New file scoped variable.
1158 (make_info_print_options_def_group): New static function.
1159 (info_print_command_completer): New static function.
1160 (info_variables_command): Update to use local functions, and pass
1161 extra parameter through to symtab_symbol_info.
1162 (info_functions_command): Likewise.
1163 (info_types_command): Pass additional argument through to
1164 symtab_symbol_info.
1165 (rbreak_command): Pass extra argument to search_symbols.
1166 (_initialize_symtab): Add extra arguments for calls to
1167 info_print_args_help, and update help text for 'info variables',
1168 'whereis', and 'info functions' commands.
1169 * symtab.h (search_symbols): Add extra argument to declaration.
1170 * NEWS: Mention new flags.
1171
9aa55206
CB
11722019-08-26 Christian Biesinger <cbiesinger@google.com>
1173
1174 * symtab.c (lookup_static_symbol): Call the new function (and move
1175 it down to be next to lookup_global_symbol).
1176 (struct global_sym_lookup_data): Add block_enum member and rename to...
1177 (struct global_or_static_sym_lookup_data): ...this.
1178 (lookup_symbol_global_iterator_cb): Pass block_index instead of
1179 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
1180 (lookup_symbol_global_or_static_iterator_cb): ...this.
1181 (lookup_global_or_static_symbol): New function.
1182 (lookup_global_symbol): Call new function.
1183
5c31b358
TV
11842019-08-26 Tom de Vries <tdevries@suse.de>
1185
1186 PR c++/24852
1187 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
1188 when pc_probe.prob == NULL.
1189
23c13d42
SM
11902019-08-25 Simon Marchi <simon.marchi@efficios.com>
1191
1192 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
1193 variable symbol_linkage to symbol_linkage_.
1194
beadd3e8
SM
11952019-08-25 Simon Marchi <simon.marchi@efficios.com>
1196
1197 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
1198 represent whether the symbol is static, dynamic, or we don't
1199 know.
1200
e3ec872f
YS
12012019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
1202
1203 * gdb/rx-tdep.c (rx_register_names): New.
1204 (rx_register_name): Delete.
1205 (rx_psw_type): Delete.
1206 (rx_fpsw_type): Delete.
1207 (rx_register_type): Delete.
1208 (rx_gdbarch_init): Convert target-descriptions.
1209 (_initialize_rx_tdep): Add initialize_tdesc_rx.
1210 * gdb/features/Makefile: Add rx.xml.
1211 * gdb/features/rx.xml: New.
1212 * gdb/features/rx.c: Generated.
1213 * gdb/NEWS: Mention target description support.
1214
d0509ba4
CB
12152019-08-22 Christian Biesinger <cbiesinger@google.com>
1216
1217 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
1218 *slot_ptr.
1219
2d41fa11
SDJ
12202019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1221
1222 * configure.ac: Don't check for 'dlfcn.h' (moved to
1223 gdbsupport/common.m4).
1224 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
1225 'gdbsupport/'.
1226 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
1227 * compile/compile-c-support.c: Include
1228 'gdbsupport/gdb-dlfcn.h'.
1229 * gdbsupport/common.m4: Check for 'dlfcn.h'.
1230 * gdb-dlfcn.c: Move to...
1231 * gdbsupport/gdb-dlfcn.c: ... here.
1232 * gdb-dlfcn.h: Move to...
1233 * gdbsupport/gdb-dlfcn.h: ... here.
1234
de8af808
SL
12352019-08-23 Sandra Loosemore <sandra@codesourcery.com>
1236
1237 * nios2-tdep.c (struct reg_value): Improve comments. Make
1238 the offset field signed.
1239
27204489
CB
12402019-08-22 Christian Biesinger <cbiesinger@google.com>
1241
1242 * python/lib/gdb/__init__.py (_execute_file): New function.
1243 * python/python.c (python_run_simple_file): Call gdb._execute_file
1244 on Windows.
1245
43771869
AB
12462019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
1247
1248 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
1249 all uses as this was never set to anything but a zero value.
1250
26c957f1
PA
12512019-08-21 Bogdan Harjoc <harjoc@gmail.com>
1252
1253 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
1254
c07aae6e
CB
12552019-08-21 Christian Biesinger <cbiesinger@google.com>
1256
1257 * tui/tui-data.h (tui_gen_win_info): Add an =default
1258 move constructor, required by some GCC versions.
1259
3960cb7a
JF
12602019-08-21 Jinke Fan <fanjinke51@yeah.net>
1261
1262 * go32-nat.c (go32_sysinfo): Add hygon_p.
1263
04c72a68
TT
12642019-08-20 Tom Tromey <tom@tromey.com>
1265
1266 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
1267 line_from_reg_element_no, first_reg_element_no_inline,
1268 display_all_data, delete_data_content_windows,
1269 erase_data_content>: Now private.
1270
072272ce
TT
12712019-08-20 Tom Tromey <tom@tromey.com>
1272
1273 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
1274 (tui_unhighlight_win, tui_highlight_win)
1275 (tui_win_info::make_window): Update.
1276 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
1277
973961bd
TT
12782019-08-20 Tom Tromey <tom@tromey.com>
1279
1280 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1281 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1282 (MAX_PID_WIDTH): Move to tui-stack.c.
1283 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1284 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1285 (MAX_PID_WIDTH): Move from tui-data.h.
1286
ab0e1f1a
TT
12872019-08-20 Tom Tromey <tom@tromey.com>
1288
1289 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
1290 * tui/tui-wingeneral.c (box_win): Change type of win_info.
1291 (box_win): Update.
1292 (tui_gen_win_info::make_window): Rename from tui_make_window.
1293 (tui_win_info::make_window): New method.
1294 (tui_gen_win_info::make_visible): Update.
1295 * tui/tui-source.c (tui_source_window::set_contents): Update.
1296 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1297 (tui_data_window::display_registers_from): Update.
1298 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1299 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
1300 Declare.
1301 <can_box>: Remove.
1302 <title>: Remove.
1303 (struct tui_win_info) <make_window>: Declare.
1304 <can_box>: Now virtual.
1305 <title>: New member.
1306 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
1307 * tui/tui-command.c (tui_cmd_window::resize): Update.
1308
100c2bf3
TT
13092019-08-20 Tom Tromey <tom@tromey.com>
1310
1311 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
1312 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1313 (tui_data_window::check_register_values): Update.
1314
fa4dc567
TT
13152019-08-20 Tom Tromey <tom@tromey.com>
1316
1317 * tui/tui-regs.h (struct tui_data_window): Use
1318 DISABLE_COPY_AND_ASSIGN.
1319 <regs_content>: Change type, removing unique_ptr.
1320 <tui_data_window>: Add move constructor.
1321 * tui/tui-regs.c (tui_data_window::show_registers)
1322 (tui_data_window::show_register_group)
1323 (tui_data_window::display_registers_from)
1324 (tui_data_window::display_registers_from)
1325 (tui_data_window::first_data_item_displayed)
1326 (tui_data_window::delete_data_content_windows)
1327 (tui_data_window::rerender, tui_data_window::refresh_window)
1328 (tui_data_window::check_register_values): Update.
1329
ca02d7c8
TT
13302019-08-20 Tom Tromey <tom@tromey.com>
1331
1332 * tui/tui-regs.h (struct tui_data_window) <show_registers,
1333 show_register_group>: Declare.
1334 (tui_show_register_group): Don't declare.
1335 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
1336 tui_show_registers.
1337 (tui_data_window::show_register_group): Rename from
1338 tui_show_register_group.
1339 (tui_data_window::check_register_values, tui_reg_command):
1340 Update.
1341 * tui/tui-layout.c (tui_set_layout): Update.
1342
63356bfd
TT
13432019-08-20 Tom Tromey <tom@tromey.com>
1344
1345 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
1346 Declare.
1347 (tui_check_register_values): Don't declare.
1348 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
1349 from tui_check_register_values.
1350 * tui/tui-hooks.c (tui_register_changed): Update.
1351
42cc14a7
TT
13522019-08-20 Tom Tromey <tom@tromey.com>
1353
1354 * tui/tui-regs.c (tui_reg_layout): Move later.
1355 (tui_show_registers): Don't enable TUI mode or change layout.
1356
b9ad3686
TT
13572019-08-20 Tom Tromey <tom@tromey.com>
1358
1359 * tui/tui-regs.h (struct tui_data_item_window)
1360 <~tui_data_item_window>: Remove.
1361 <content>: Now a unique_xmalloc_ptr.
1362 * tui/tui-regs.c (tui_register_format): Return a
1363 unique_xmalloc_ptr.
1364 (tui_get_register): Update.
1365 (~tui_data_item_window): Remove.
1366 (tui_data_window::display_registers_from, tui_display_register):
1367 Update.
1368 * tui/tui-io.h (tui_expand_tabs): Update.
1369 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
1370 Remove "col" parameter.
1371
8e114aab
TT
13722019-08-20 Tom Tromey <tom@tromey.com>
1373
1374 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
1375 field.
1376 * tui/tui-regs.c (~tui_data_item_window): Update.
1377
1a4f81dd
TT
13782019-08-20 Tom Tromey <tom@tromey.com>
1379
1380 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
1381 earlier.
1382
0f8d8876
TT
13832019-08-20 Tom Tromey <tom@tromey.com>
1384
1385 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
1386
605dc2c2
TT
13872019-08-20 Tom Tromey <tom@tromey.com>
1388
1389 * tui/tui-source.h (struct tui_source_window): Update.
1390 * tui/tui-regs.c (tui_show_registers): Update.
1391 * tui/tui-disasm.h (struct tui_disasm_window): Update.
1392 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
1393 (NO_REGS_STRING): Remove defines.
1394
aedbe3bb
CM
13952019-08-20 Conrad Meyer <cem@FreeBSD.org>
1396
1397 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
1398 unnecessary thread walk if remote doesn't support the packet.
1399
7ce8f214
TT
14002019-08-19 Tom Tromey <tromey@adacore.com>
1401
1402 * python/py-value.c (value_has_field): Fix indentation.
1403
f21c2bd7
TT
14042019-08-19 Tom Tromey <tromey@adacore.com>
1405
1406 * printcmd.c (do_one_display, info_display_command): Update.
1407 * block.h (contained_in): Return bool. Add allow_nested
1408 parameter.
1409 * block.c (contained_in): Return bool. Add allow_nested
1410 parameter.
1411
d806ea2d
TT
14122019-08-19 Tom Tromey <tom@tromey.com>
1413
1414 * configure: Rebuild.
1415 * configure.ac: Disallow the combination of -static-libstdc++ and
1416 source highlight.
1417 * source-cache.c (get_language_name): Handle rust.
1418 (source_cache::get_source_lines): Ignore highlighting exceptions.
1419
398fdd60
TT
14202019-08-16 Tom Tromey <tom@tromey.com>
1421
1422 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
1423 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
1424 (struct tui_source_window_base) <make_visible, refresh_window,
1425 resize>: Remove methods.
1426 <execution_info>: Remove field.
1427 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
1428 (tui_show_source_line, tui_source_window_base)
1429 (~tui_source_window_base): Update.
1430 (tui_source_window_base::resize)
1431 (tui_source_window_base::make_visible)
1432 (tui_source_window_base::refresh_window): Remove.
1433 (tui_source_window_base::update_exec_info): Update.
1434 * tui/tui-source.c (tui_source_window::set_contents): Update.
1435 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1436
e699d331
TT
14372019-08-16 Tom Tromey <tom@tromey.com>
1438
1439 * tui/tui-hooks.c (tui_remove_hooks): Don't set
1440 deprecated_query_hook.
1441
bb01dbfc
TT
14422019-08-16 Tom Tromey <tom@tromey.com>
1443
1444 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
1445 (tui_update_source_windows_with_line): Update.
1446 * tui/tui-source.h (struct tui_source_window)
1447 <show_symtab_source>: Declare.
1448 (tui_show_symtab_source): Don't declare.
1449 * tui/tui-source.c (tui_show_symtab_source): Rename from
1450 tui_show_symtab_source.
1451
81c82c4b
TT
14522019-08-16 Tom Tromey <tom@tromey.com>
1453
1454 * tui/tui-winsource.h (struct tui_source_window_base)
1455 <set_contents>: Declare.
1456 * tui/tui-winsource.c
1457 (tui_source_window_base::update_source_window_as_is): Update.
1458 * tui/tui-source.h (struct tui_source_window) <set_contents>:
1459 Declare.
1460 (tui_set_source_content): Don't declare.
1461 * tui/tui-source.c (tui_source_window::set_contents): Rename from
1462 tui_set_source_content.
1463 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
1464 Declare.
1465 (tui_set_disassem_content): Don't declare.
1466 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
1467 tui_set_disassem_content.
1468
2ddaf614
TT
14692019-08-16 Tom Tromey <tom@tromey.com>
1470
1471 * tui/tui-winsource.h (struct tui_source_window_base)
1472 <update_breakpoint_info>: Declare.
1473 (tui_update_breakpoint_info): Don't declare.
1474 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
1475 (tui_update_all_breakpoint_info): Update.
1476 (tui_source_window_base::update_breakpoint_info): Rename from
1477 tui_update_breakpoint_info.
1478 (tui_source_window_base::update_exec_info): Update.
1479
017f9828
TT
14802019-08-16 Tom Tromey <tom@tromey.com>
1481
1482 * tui/tui-winsource.h (struct tui_source_window_base)
1483 <update_source_window>: Declare.
1484 (tui_update_source_window): Don't declare.
1485 * tui/tui-winsource.c
1486 (tui_source_window_base::update_source_window): Rename from
1487 tui_update_source_window.
1488 (tui_source_window_base::rerender): Update.
1489 * tui/tui-source.c (tui_source_window::maybe_update): Update.
1490 * tui/tui-disasm.c (tui_show_disassem)
1491 (tui_show_disassem_and_update_source)
1492 (tui_disasm_window::maybe_update): Update.
1493
ed8358e9
TT
14942019-08-16 Tom Tromey <tom@tromey.com>
1495
1496 * tui/tui-winsource.h (struct tui_source_window_base)
1497 <update_source_window_as_is>: Declare.
1498 (tui_update_source_window_as_is): Don't declare.
1499 * tui/tui-winsource.c (tui_update_source_window): Update
1500 (tui_source_window_base::update_source_window_as_is): Rename from
1501 tui_update_source_window_as_is.
1502 (tui_source_window_base::refill): Update.
1503 * tui/tui-source.c (tui_show_symtab_source): Update.
1504 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
1505 Update.
1506
20149b6b
TT
15072019-08-16 Tom Tromey <tom@tromey.com>
1508
1509 * tui/tui-winsource.h (tui_update_source_window)
1510 (tui_update_source_window_as_is): Remove "noerror" parameter.
1511 * tui/tui-winsource.c (tui_update_source_window)
1512 (tui_update_source_window_as_is): Remove "noerror" parameter.
1513 (tui_update_source_windows_with_addr)
1514 (tui_update_source_windows_with_line)
1515 (tui_source_window_base::rerender)
1516 (tui_source_window_base::refill): Update.
1517 * tui/tui-source.h (tui_set_source_content)
1518 (tui_show_symtab_source): Remove "noerror" parameter.
1519 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
1520 parameter.
1521 (tui_show_symtab_source): Likewise.
1522 (tui_source_window::maybe_update): Update.
1523 * tui/tui-disasm.c (tui_show_disassem)
1524 (tui_show_disassem_and_update_source)
1525 (tui_disasm_window::do_scroll_vertical)
1526 (tui_disasm_window::maybe_update): Update.
1527
2d83e710
TT
15282019-08-16 Tom Tromey <tom@tromey.com>
1529
1530 * tui/tui.c (tui_is_window_visible): Update.
1531 * tui/tui-wingeneral.c (tui_make_window)
1532 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
1533 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
1534 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
1535 (tui_set_win_height_command, parse_scrolling_args): Update.
1536 * tui/tui-source.c (tui_source_window::style_changed): Update.
1537 * tui/tui-regs.c (tui_show_registers)
1538 (tui_data_window::first_data_item_displayed)
1539 (tui_data_window::delete_data_content_windows)
1540 (tui_check_register_values, tui_reg_command): Update.
1541 * tui/tui-disasm.c (tui_show_disassem): Update.
1542 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
1543 method.
1544 <is_visible>: Remove field.
1545 * tui/tui-data.c (tui_next_win, tui_prev_win)
1546 (tui_delete_invisible_windows): Update.
1547
d4ab829a
TT
15482019-08-16 Tom Tromey <tom@tromey.com>
1549
1550 * tui/tui-winsource.h (struct tui_source_window_base)
1551 <m_has_locator>: Remove.
1552 * tui/tui-layout.c (show_source_disasm_command, show_data)
1553 (show_source_or_disasm_and_command): Update.
1554
aa7ca1bb
AH
15552019-08-16 Alan Hayward <alan.hayward@arm.com>
1556
1557 * NEWS (Other MI changes): New subsection.
1558 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
1559 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
1560 * arch-utils.c (default_get_pc_address_flags): New function.
1561 * arch-utils.h (default_get_pc_address_flags): New declaration.
1562 * gdbarch.sh: Add get_pc_address_flags.
1563 * gdbarch.c: Regenerate.
1564 * gdbarch.h: Likewise.
1565 * stack.c (print_pc): New function.
1566 (print_frame_info) (print_frame): Call print_pc.
1567
6eac171f
TV
15682019-08-16 Tom de Vries <tdevries@suse.de>
1569
1570 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
1571 print_objfile_section_info.
1572
3df505f6
TT
15732019-08-15 Tom Tromey <tom@tromey.com>
1574
1575 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
1576 calling update_cmdwin_start_line.
1577 * tui/tui-winsource.h (struct tui_source_window_base)
1578 <do_make_visible_with_new_height, set_new_height>: Don't declare.
1579 <rerender>: Declare.
1580 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
1581 Call rerender.
1582 (tui_source_window_base::set_new_height): Remove.
1583 (tui_source_window_base::rerender): Rename from
1584 do_make_visible_with_new_height.
1585 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
1586 resize method.
1587 (tui_win_info::make_invisible_and_set_new_height)
1588 (tui_win_info::make_visible_with_new_height): Remove.
1589 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
1590 Declare.
1591 * tui/tui-stack.c (tui_locator_window::rerender): New method.
1592 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
1593 do_make_visible_with_new_height>: Don't declare.
1594 <rerender>: Declare.
1595 * tui/tui-regs.c (tui_data_window::rerender): Rename from
1596 set_new_height.
1597 (tui_data_window::do_make_visible_with_new_height): Remove.
1598 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
1599 call tui_show_locator_content.
1600 (tui_gen_win_info::resize): Call rerender.
1601 (show_source_or_disasm_and_command): Don't call
1602 tui_show_locator_content.
1603 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
1604 method.
1605 (struct tui_win_info) <rerender>: Declare.
1606 <set_new_height, make_invisible_and_set_new_height,
1607 make_visible_with_new_height>: Don't declare.
1608 * tui/tui-data.c (tui_win_list::rerender): New method.
1609 * tui/tui-command.h (struct tui_cmd_window)
1610 <do_make_visible_with_new_height>: Don't declare.
1611 * tui/tui-command.c
1612 (tui_cmd_window::do_make_visible_with_new_height): Remove.
1613
272560b5
TT
16142019-08-15 Tom Tromey <tromey@adacore.com>
1615
1616 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
1617 * ada-lang.c (ada_enum_name): Likewise.
1618
08235187
CB
16192019-08-15 Christian Biesinger <cbiesinger@google.com>
1620
1621 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
1622 leading underscore.
1623 (GdbOutputErrorFile): Likewise.
1624 (global scope): Adjust constructor calls to GdbOutput{,Error}File
1625 accordingly.
1626 (execute_unwinders): Rename to have a leading underscore.
1627 (auto_load_packages): Likewise.
1628 (global scope): Adjust call to auto_load_packages accordingly.
1629 (GdbSetPythonDirectory): Likewise.
1630 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
1631 instead of execute_unwinders.
1632
db502012
TT
16332019-08-15 Tom Tromey <tom@tromey.com>
1634
1635 * tui/tui-layout.c (show_layout, show_source_disasm_command)
1636 (show_data): Don't change window visibility.
1637 (tui_gen_win_info::resize): Remove special case for command
1638 window. Use wresize, when available.
1639 (show_source_or_disasm_and_command): Don't change window
1640 visibility.
1641 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
1642 <make_visible>: New method.
1643 * tui/tui-command.c (tui_cmd_window::resize): New method.
1644
3891b65e
TT
16452019-08-15 Tom Tromey <tom@tromey.com>
1646
1647 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
1648 (struct tui_source_windows): New.
1649 * tui/tui-winsource.c (tui_display_main): Update.
1650 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
1651 (new_height_ok, parse_scrolling_args): Update.
1652 * tui/tui-layout.c (show_layout, show_data): Update.
1653 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
1654 (tui_add_to_source_windows): Don't declare.
1655 * tui/tui-data.c (source_windows, tui_source_windows)
1656 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
1657
ee556432
TT
16582019-08-15 Tom Tromey <tom@tromey.com>
1659
1660 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
1661 Rename from reset.
1662 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
1663 * tui/tui-layout.c (show_source_disasm_command, show_data):
1664 Update.
1665 (tui_gen_win_info::resize): Rename.
1666 (show_source_or_disasm_and_command): Update.
1667 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
1668 reset.
1669
46f438e3
TT
16702019-08-15 Tom Tromey <tom@tromey.com>
1671
1672 * tui/tui-stack.c (tui_initialize_static_data): Remove.
1673 * tui/tui-interp.c (tui_interp::init): Don't call
1674 tui_initialize_static_data.
1675 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
1676
f4ce562c
TT
16772019-08-15 Tom Tromey <tom@tromey.com>
1678
1679 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
1680 examine tui_win_list.
1681
c398c3d0
TT
16822019-08-15 Tom Tromey <tom@tromey.com>
1683
1684 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
1685 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
1686 tui_clear_source_content.
1687 (tui_clear_source_content): Remove.
1688 (tui_source_window_base::do_erase_source_content): Hoist call to
1689 content.clear().
1690 * tui/tui-stack.c (tui_show_frame_info): Don't call
1691 tui_clear_source_content.
1692
e25d2004
TT
16932019-08-15 Tom Tromey <tom@tromey.com>
1694
1695 * tui/tui-winsource.h (struct tui_source_window_base)
1696 <do_erase_source_content>: New method.
1697 <erase_source_content>: New method.
1698 (tui_erase_source_content): Don't declare.
1699 * tui/tui-winsource.c (tui_clear_source_content): Update.
1700 (tui_source_window_base::do_erase_source_content): Rename from
1701 tui_erase_source_content.
1702 (tui_source_window_base::show_source_content): Update.
1703 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1704 * tui/tui-source.h (struct tui_source_window)
1705 <erase_source_content>: New method.
1706 * tui/tui-disasm.h (struct tui_disasm_window)
1707 <erase_source_content>: New method.
1708
002f15c2
TT
17092019-08-15 Tom Tromey <tom@tromey.com>
1710
1711 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
1712 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
1713 constructor.
1714 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
1715 * tui/tui-source.c (tui_set_source_content): Update.
1716 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1717
c9033fe8
TT
17182019-08-15 Tom Tromey <tom@tromey.com>
1719
1720 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
1721 * tui/tui-winsource.c (tui_line_is_displayed): Move to
1722 tui-source.c.
1723 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
1724 Declare.
1725 * tui/tui-source.c (tui_source_window::line_is_displayed): New
1726 method.
1727 (tui_source_window::maybe_update): Update.
1728
088f37dd
TT
17292019-08-15 Tom Tromey <tom@tromey.com>
1730
1731 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
1732 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
1733 tui-disasm.c.
1734 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
1735 Declare.
1736 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
1737 method.
1738 (tui_disasm_window::maybe_update): Update.
1739
a54700c6
TT
17402019-08-15 Tom Tromey <tom@tromey.com>
1741
1742 * tui/tui-winsource.h (struct tui_source_window_base)
1743 <maybe_update>: Declare.
1744 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
1745 method.
1746 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
1747 Declare.
1748 * tui/tui-source.c (tui_source_window::maybe_update): New method.
1749 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
1750 Declare.
1751 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
1752
e2a678a5
TT
17532019-08-15 Tom Tromey <tom@tromey.com>
1754
1755 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
1756
f2dda477
TT
17572019-08-15 Tom Tromey <tom@tromey.com>
1758
1759 * tui/tui-wingeneral.c: Include tui-stack.h.
1760 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
1761 (struct tui_locator_window): Move from tui-data.h.
1762 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
1763 (tui_initialize_static_data): Move from tui-data.c.
1764 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
1765 (struct tui_locator_window): Move to tui-stack.c.
1766 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
1767 (tui_initialize_static_data): Move to tui-stack.c.
1768
ed4a1084
TT
17692019-08-15 Tom Tromey <tom@tromey.com>
1770
1771 * tui/tui-layout.c (show_source_disasm_command)
1772 (show_source_or_disasm_and_command): Use make_visible method, not
1773 tui_make_window.
1774 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
1775 Remove.
1776
65962b20
TT
17772019-08-15 Tom Tromey <tom@tromey.com>
1778
1779 * tui/tui-wingeneral.h (tui_make_window): Update.
1780 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
1781 parameter.
1782 (tui_gen_win_info::make_visible): Update.
1783 * tui/tui-regs.c (tui_data_window::display_registers_from):
1784 Update.
1785 * tui/tui-layout.c (show_source_disasm_command)
1786 (show_source_or_disasm_and_command): Update.
1787 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
1788 (enum tui_box): Remove.
1789 (struct tui_win_info) <can_box>: New method.
1790 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
1791 method.
1792
2208ee91
TV
17932019-08-15 Tom de Vries <tdevries@suse.de>
1794
1795 * linux-nat-trad.c: Include gdbarch.h.
1796
75faf5c4
AH
17972019-08-14 Alan Hayward <alan.hayward@arm.com>
1798
1799 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
1800 register sizes.
1801
b1c896b3
TT
18022019-08-14 Tom Tromey <tromey@adacore.com>
1803
1804 * darwin-nat.c: Include gdbarch.h.
1805 * darwin-nat-info.c: Include gdbarch.h.
1806
6405cd73
TT
18072019-08-13 Tom Tromey <tom@tromey.com>
1808
1809 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
1810 Remove.
1811 * tui/tui-data.c (tui_initialize_static_data): Update.
1812
5216580d
TT
18132019-08-13 Tom Tromey <tom@tromey.com>
1814
1815 * tui/tui-winsource.h (struct tui_exec_info_window)
1816 <~tui_exec_info_window, maybe_allocate_content, get_content,
1817 m_content>: Remove.
1818 (struct tui_source_window_base) <set_exec_info_content,
1819 show_exec_info_content>: Don't declare.
1820 * tui/tui-winsource.c
1821 (tui_exec_info_window::maybe_allocate_content): Remove.
1822 (tui_source_window_base::update_exec_info): Rename from
1823 set_exec_info_content.
1824 (tui_source_window_base::show_exec_info_content)
1825 (tui_source_window_base::update_exec_info): Remove.
1826
93858ad3
TT
18272019-08-13 Tom Tromey <tom@tromey.com>
1828
1829 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
1830 declare.
1831 * tui/tui-winsource.c (tui_update_source_window_as_is)
1832 (tui_update_source_windows_with_addr, tui_erase_source_content):
1833 Update.
1834 (tui_clear_exec_info_content): Remove.
1835
e321e7ce
TT
18362019-08-13 Tom Tromey <tom@tromey.com>
1837
1838 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
1839 declare.
1840 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
1841 call tui_erase_exec_info_content.
1842 (tui_clear_exec_info_content): Rename from
1843 tui_erase_exec_info_content.
1844 (tui_clear_exec_info_content): Delete.
1845
8270ac62
TT
18462019-08-13 Tom Tromey <tom@tromey.com>
1847
1848 * tui/tui-winsource.h (struct tui_source_window_base)
1849 <show_exec_info_content>: Declare.
1850 (tui_show_exec_info_content): Don't declare.
1851 * tui/tui-winsource.c
1852 (tui_source_window_base::show_exec_info_content): Rename from
1853 tui_show_exec_info_content.
1854 (tui_source_window_base::update_exec_info): Update.
1855
7b56485d
TT
18562019-08-13 Tom Tromey <tom@tromey.com>
1857
1858 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
1859 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
1860 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
1861 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
1862 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
1863 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
1864 ... here.
1865
7ba913dc
TT
18662019-08-13 Tom Tromey <tom@tromey.com>
1867
1868 * tui/tui-winsource.h (struct tui_source_window_base)
1869 <update_exec_info>: Declare.
1870 (tui_update_exec_info): Don't declare.
1871 * tui/tui-winsource.c (tui_update_source_window_as_is)
1872 (tui_source_window_base::refresh_all)
1873 (tui_update_all_breakpoint_info): Update.
1874 (tui_source_window_base::update_exec_info): Rename from
1875 tui_update_exec_info.
1876 * tui/tui-stack.c (tui_show_frame_info): Update.
1877
37a4a131
TT
18782019-08-13 Tom Tromey <tom@tromey.com>
1879
1880 * tui/tui-winsource.h (struct tui_source_window_base)
1881 <set_exec_info_content>: Declare.
1882 (tui_set_exec_info_content): Don't declare.
1883 * tui/tui-winsource.c
1884 (tui_source_window_base::set_exec_info_content): Rename from
1885 tui_set_exec_info_content.
1886 (tui_update_exec_info): Update.
1887
0bd27e07
TT
18882019-08-13 Tom Tromey <tom@tromey.com>
1889
1890 * tui/tui-winsource.h (struct tui_source_window_base)
1891 <show_source_content>: Declare.
1892 (tui_show_source_content): Don't declare.
1893 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1894 (tui_source_window_base::show_source_content): Rename from
1895 tui_show_source_content.
1896 (tui_source_window_base::refresh_all): Update.
1897 * tui/tui-layout.c (show_source_disasm_command)
1898 (show_source_or_disasm_and_command): Update.
1899
b4ef5aeb
TT
19002019-08-13 Tom Tromey <tom@tromey.com>
1901
1902 * tui/tui-winsource.c (tui_erase_source_content)
1903 (tui_show_source_content, tui_source_window_base::refresh_all):
1904 Update.
1905 * tui/tui-wingeneral.h
1906 (tui_check_and_display_highlight_if_needed): Don't declare.
1907 * tui/tui-wingeneral.c
1908 (tui_win_info::check_and_display_highlight_if_needed): Rename from
1909 check_and_display_highlight_if_needed.
1910 * tui/tui-win.c (tui_rehighlight_all)
1911 (tui_win_info::make_visible_with_new_height): Update.
1912 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1913 (tui_data_window::erase_data_content)
1914 (tui_data_window::display_all_data): Update.
1915 * tui/tui-data.h (struct tui_win_info)
1916 <check_and_display_highlight_if_needed>: Declare.
1917
fede5273
TT
19182019-08-13 Tom Tromey <tom@tromey.com>
1919
1920 * tui/tui-win.c (tui_resize_all): Call
1921 tui_delete_invisible_windows.
1922 * tui/tui-layout.c (show_layout): Call
1923 tui_delete_invisible_windows.
1924 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
1925 * tui/tui-data.c (tui_delete_invisible_windows): New function.
1926
22c3f490
TT
19272019-08-13 Tom Tromey <tom@tromey.com>
1928
1929 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
1930 tui_add_win_to_layout.
1931
16cb7910
TT
19322019-08-13 Tom Tromey <tom@tromey.com>
1933
1934 * tui/tui-layout.h (tui_default_win_height): Don't declare.
1935 * tui/tui-layout.c (tui_default_win_height): Now static.
1936
cc0c3ffb
TT
19372019-08-13 Tom Tromey <tom@tromey.com>
1938
1939 * tui/tui-layout.c (show_layout): Unify all layout cases into a
1940 single switch.
1941 (show_source_disasm_command, show_source_or_disasm_and_command):
1942 Don't check current layout.
1943
3f3ffe54
TT
19442019-08-13 Tom Tromey <tom@tromey.com>
1945
1946 * tui/tui-wingeneral.c (make_all_visible): Remove.
1947 (tui_make_all_invisible): Simplify.
1948 * tui/tui-layout.c (tui_make_all_invisible): Move from
1949 tui-wingeneral.c; simplify.
1950 (show_layout): Hoist call to tui_make_all_invisible.
1951 (show_data): Don't call tui_make_all_invisible.
1952
69258091
TT
19532019-08-13 Tom Tromey <tom@tromey.com>
1954
1955 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
1956 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
1957
62cf57fe
TT
19582019-08-13 Tom Tromey <tom@tromey.com>
1959
1960 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
1961 tui-data.c.
1962 (show_source_disasm_command, show_data)
1963 (show_source_or_disasm_and_command): Don't use
1964 tui_set_current_layout_to.
1965 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
1966 * tui/tui-data.c (current_layout, tui_current_layout): Move to
1967 tui-layout.c.
1968 (tui_set_current_layout_to): Remove.
1969
2afade5d
TT
19702019-08-13 Tom Tromey <tom@tromey.com>
1971
1972 * tui/tui-layout.c (tui_set_layout): Update.
1973 * tui/tui-data.h (struct tui_layout_def): Remove.
1974 (tui_layout_def): Don't declare.
1975 * tui/tui-data.c (layout_def): Remove.
1976 (tui_layout_def): Remove.
1977
a3504e96
TT
19782019-08-13 Tom Tromey <tom@tromey.com>
1979
1980 * tui/tui-winsource.h (struct tui_source_window_base)
1981 <clear_detail>: No longer "override".
1982 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
1983 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
1984 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
1985 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
1986 Remove.
1987 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
1988
29c92911
TT
19892019-08-13 Tom Tromey <tromey@adacore.com>
1990
1991 * tracepoint.c: Don't include readline.h or history.h.
1992
86c6b807
TT
19932019-08-12 Tom Tromey <tom@tromey.com>
1994
1995 * configure: Rebuild.
1996 * configure.ac: Check for readline 7.
1997 * NEWS: Mention readline 7 requirement.
1998 * README: Update.
1999
5db2718c
TT
20002019-08-12 Tom Tromey <tom@tromey.com>
2001
2002 * mingw-hdep.c (gdb_select): Remove readline hack.
2003
dac36daf
PFC
20042019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2005
2006 * blockframe.c (find_pc_partial_function): Set *block to nullptr
2007 when the function fails.
2008
1022c627
AA
20092019-08-09 Andreas Arnez <arnez@linux.ibm.com>
2010
2011 * s390-tdep.c (s390_type_align): New function.
2012 (s390_gdbarch_init): Set it as type_align gdbarch method.
2013
eba4caf2
TV
20142019-08-09 Tom de Vries <tdevries@suse.de>
2015
2016 PR gdb/24591
2017 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
2018 pc_low with relocation offset.
2019
123cd851
TT
20202019-08-07 Tom Tromey <tromey@adacore.com>
2021
2022 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2023 (print_frame_args): Update.
2024 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
2025 Update.
2026 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2027 * frame.h (struct frame_arg): Add initializers.
2028 <error>: Now a unique_xmalloc_ptr.
2029
3d31bc39
AH
20302019-08-07 Alan Hayward <alan.hayward@arm.com>
2031
2032 * NEWS: Expand the Pointer Authentication entry.
2033 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
2034 (aarch64_frame_unmask_lr): ... to this.
2035 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
2036 Call aarch64_frame_unmask_lr.
2037 * frame.c (struct frame_info): Add "masked" variable.
2038 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
2039 (fprint_frame): Check for masked pc.
2040 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
2041 declarations.
2042 * python/py-framefilter.c (py_print_frame): Check for masked pc.
2043 * stack.c (print_frame): Check for masked pc.
2044
0cf9feb9
TT
20452019-08-06 Tom Tromey <tom@tromey.com>
2046
2047 * stabsread.c (patch_block_stabs, read_one_struct_field)
2048 (read_enum_type): Use obstack_strndup.
2049 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
2050 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
2051 * dwarf2read.c (guess_full_die_structure_name)
2052 (anonymous_struct_prefix): Use obstack_strndup.
2053 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
2054 * c-exp.y (yylex): Use obstack_strndup.
2055 * ada-exp.y (write_object_renaming, write_ambiguous_var)
2056 (write_var_or_type): Use obstack_strndup.
2057
efba19b0
TT
20582019-08-06 Tom Tromey <tom@tromey.com>
2059
2060 * symfile.c (reread_symbols): Use obstack_strdup.
2061 * stabsread.c (read_type): Use obstack_strdup.
2062 * gdb_obstack.h (obstack_strdup): New overload.
2063 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
2064 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
2065 (dwarf2_canonicalize_name): Use obstack_strdup.
2066 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
2067 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
2068 Use obstack_strdup.
2069
f25102f7
TT
20702019-08-06 Tom Tromey <tom@tromey.com>
2071
2072 * gdb_obstack.h (obstack_strdup): Define.
2073 * gdb_obstack.c (obstack_strdup): Don't define.
2074
021887d8
TT
20752019-08-06 Tom Tromey <tom@tromey.com>
2076
2077 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
2078 obstack_strdup.
2079 * typeprint.c (typedef_hash_table::find_global_typedef): Use
2080 obstack_strdup.
2081 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
2082 * stabsread.c (common_block_start): Use obstack_strdup.
2083 * objfiles.c (set_objfile_main_name, objfile): Use
2084 obstack_strdup.
2085 * namespace.c (add_using_directive): Use obstack_strdup.
2086 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
2087 * jit.c (finalize_symtab): Use obstack_strdup.
2088 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
2089 (guess_partial_die_structure_name, partial_die_info::fixup)
2090 (dwarf2_name): Use obstack_strdup.
2091 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
2092 obstack_strdup.
2093 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
2094 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
2095 obstack_strdup.
2096 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
2097
d2834edc
PW
20982019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2099
2100 * unittests/help-doc-selftests.c: New file.
2101 * Makefile.in: Add the new file.
2102
590042fc
PW
21032019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2104
2105 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
2106 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
2107 the full first line, except when FOR_VALUE_PREFIX. In this case,
2108 the trailing '.' is not output, and the first character is uppercased.
2109 (print_help_for_command): Update call to print_doc_line.
2110 (print_doc_of_command): Likewise.
2111 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
2112 * cli/cli-option.c (append_indented_doc): Do not append newline.
2113 (build_help_option): Append newline after first appended_indented_doc
2114 only if a second call is done.
2115 (build_help): Append 2 new lines before each option, except the first
2116 one.
2117 * compile/compile.c (_initialize_compile): Add new lines after
2118 %OPTIONS%, when not at the end of the help.
2119 Change help doc or code
2120 producing the help doc to respect the invariants.
2121 * maint-test-options.c (_initialize_maint_test_options): Likewise.
2122 Also removed the new line after 'Options:', as all other commands
2123 do not put an empty line between 'Options:' and the first option.
2124 * printcmd.c (_initialize_printcmd): Likewise.
2125 * stack.c (_initialize_stack): Likewise.
2126 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
2127 incorrectly telling COMMAND is optional.
2128 * ada-lang.c (_initialize_ada_language): Change help doc or code
2129 producing the help doc to respect the invariants.
2130 * ada-tasks.c (_initialize_ada_tasks): Likewise.
2131 * breakpoint.c (_initialize_breakpoint): Likewise.
2132 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
2133 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
2134 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
2135 * cli/cli-style.c (cli_style_option::add_setshow_commands,
2136 _initialize_cli_style): Likewise.
2137 * corelow.c (core_target_info): Likewise.
2138 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
2139 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
2140 * filesystem.c (_initialize_filesystem): Likewise.
2141 * frame.c (_initialize_frame): Likewise.
2142 * gnu-nat.c (add_task_commands): Likewise.
2143 * infcall.c (_initialize_infcall): Likewise.
2144 * infcmd.c (_initialize_infcmd): Likewise.
2145 * interps.c (_initialize_interpreter): Likewise.
2146 * language.c (_initialize_language): Likewise.
2147 * linux-fork.c (_initialize_linux_fork): Likewise.
2148 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
2149 * maint.c (_initialize_maint_cmds): Likewise.
2150 * memattr.c (_initialize_mem): Likewise.
2151 * printcmd.c (_initialize_printcmd): Likewise.
2152 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
2153 _RegEx): Likewise.
2154 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
2155 * record-btrace.c (_initialize_record_btrace): Likewise.
2156 * record-full.c (_initialize_record_full): Likewise.
2157 * record.c (_initialize_record): Likewise.
2158 * regcache-dump.c (_initialize_regcache_dump): Likewise.
2159 * regcache.c (_initialize_regcache): Likewise.
2160 * remote.c (add_packet_config_cmd, init_remote_threadtests,
2161 _initialize_remote): Likewise.
2162 * ser-tcp.c (_initialize_ser_tcp): Likewise.
2163 * serial.c (_initialize_serial): Likewise.
2164 * skip.c (_initialize_step_skip): Likewise.
2165 * source.c (_initialize_source): Likewise.
2166 * stack.c (_initialize_stack): Likewise.
2167 * symfile.c (_initialize_symfile): Likewise.
2168 * symtab.c (_initialize_symtab): Likewise.
2169 * target-descriptions.c (_initialize_target_descriptions): Likewise.
2170 * top.c (init_main): Likewise.
2171 * tracefile-tfile.c (tfile_target_info): Likewise.
2172 * tracepoint.c (_initialize_tracepoint): Likewise.
2173 * tui/tui-win.c (_initialize_tui_win): Likewise.
2174 * utils.c (add_internal_problem_command): Likewise.
2175 * valprint.c (value_print_option_defs): Likewise.
2176
404f2902
FCE
21772019-08-06 Frank Ch. Eigler <fche@redhat.com>
2178
2179 PR build/24886
2180 * configure.ac: Drop enable-libmcheck support.
2181 * configure, config.in: Rebuild.
2182 * libmcheck.m4: Remove.
2183 * acinclude.m4: Don't include it.
2184 * Makefile.in: Don't distribute it.
2185 * top.c (print_gdb_configuration): Don't mention it.
2186
046bebe1
TT
21872019-08-06 Tom Tromey <tom@tromey.com>
2188
2189 * utils.c (set_output_style): Sometimes pass stream to
2190 emit_style_escape.
2191 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
2192 * record-btrace.c (btrace_insn_history): Update.
2193 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
2194 method.
2195 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
2196 Update initializers.
2197 <m_uiout>: New field.
2198 <m_di>: Move lower.
2199 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2200 Remove "uiout" parameter.
2201 (dump_insns): Update.
2202 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
2203 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
2204
ddbcedf5
CB
22052019-08-06 Christian Biesinger <cbiesinger@google.com>
2206
2207 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
2208 (error_in_psymtab_expansion): Likewise.
2209 (lookup_symbol_via_quick_fns): Likewise.
2210 (basic_lookup_transparent_type_quick): Likewise.
2211 (basic_lookup_transparent_type_1): Likewise.
2212
b08b16c8
TT
22132019-08-06 Tom Tromey <tromey@adacore.com>
2214
2215 * source.c (last_source_error): Now bool.
2216 (print_source_lines_base): Make "noprint" bool. Only open
2217 source file when last_source_visited changes.
2218
cb44333d
TT
22192019-08-06 Tom Tromey <tromey@adacore.com>
2220
2221 * annotate.c (annotate_source_line): Use g_source_cache.
2222 * source-cache.c (source_cache::get_plain_source_lines): Change
2223 parameters. Populate m_offset_cache.
2224 (source_cache::ensure): New method.
2225 (source_cache::get_line_charpos): New method.
2226 (extract_lines): Move lower. Change parameters.
2227 (source_cache::get_source_lines): Move lower.
2228 * source-cache.h (class source_cache): Update comment.
2229 <get_line_charpos>: New method.
2230 <get_source_lines>: Update comment.
2231 <clear>: Clear m_offset_cache.
2232 <get_plain_source_lines>: Change parameters.
2233 <ensure>: New method
2234 <m_offset_cache>: New member.
2235 * source.c (forget_cached_source_info_for_objfile): Update.
2236 (info_source_command): Use g_source_cache.
2237 (find_source_lines, open_source_file_with_line_charpos): Remove.
2238 (print_source_lines_base, search_command_helper): Use g_source_cache.
2239 * source.h (open_source_file_with_line_charpos): Don't declare.
2240 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
2241 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
2242 Use g_source_cache.
2243
872dceaa
TT
22442019-08-06 Tom Tromey <tromey@adacore.com>
2245
2246 * source-cache.c (source_cache::get_plain_source_lines):
2247 Remove "first_line" and "last_line" parameters.
2248 (source_cache::get_source_lines): Cache plain text.
2249 * source-cache.h (class source_cache)
2250 <get_plain_source_lines>: Update.
2251
269249d9
TT
22522019-08-06 Tom Tromey <tromey@adacore.com>
2253
2254 * source-cache.c (extract_lines): No longer a method.
2255 Changed type of parameter. Include final newline.
2256 (selftests::extract_lines_test): New function.
2257 (_initialize_source_cache): Likewise.
2258 * source-cache.h (class source_cache)
2259 <extract_lines>: Don't declare.
2260
c0e8dcd8
TT
22612019-08-06 Tom Tromey <tromey@adacore.com>
2262
2263 * breakpoint.c (init_breakpoint_sal): Update.
2264 (breakpoint): Update.
2265 * breakpoint.h (struct breakpoint) <filter>: Now a
2266 unique_xmalloc_ptr.
2267
0b27c27d
CB
22682019-08-05 Christian Biesinger <cbiesinger@google.com>
2269
2270 * NEWS: Mention dictionary access on blocks.
2271 * python/py-block.c (blpy_getitem): New function.
2272 (block_object_as_mapping): New struct.
2273 (block_object_type): Use new struct for tp_as_mapping field.
2274
4ee94178
CB
22752019-08-05 Christian Biesinger <cbiesinger@google.com>
2276
2277 * objfiles.h (objfile): Add a comment describing partial symbols.
2278
8abfcabc
TT
22792019-08-05 Tom Tromey <tromey@adacore.com>
2280
2281 * compile/compile.c (_initialize_compile): Use _(), not N_().
2282 * thread.c (_initialize_thread): Use _(), not N_().
2283 * stack.c (_initialize_stack): Use _(), not N_().
2284 * printcmd.c (_initialize_printcmd): Use _(), not N_().
2285
2b79f376
SM
22862019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2287
2288 * dwarf2read.c (struct dw2_symtab_iterator):
2289 <want_specific_block>: Remove.
2290 <block_index>: Change type to gdb::optional.
2291 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
2292 change type of BLOCK_INDEX parameter to gdb::optional.
2293 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
2294 (dw2_lookup_symbol): Don't pass argument for
2295 WANT_SPECIFIC_BLOCK.
2296 (dw2_expand_symtabs_for_function): Don't pass argument for
2297 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
2298 (class dw2_debug_names_iterator)
2299 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
2300 parameter, change BLOCK_INDEX type to gdb::optional.
2301 <m_want_specific_block>: Remove.
2302 <m_block_index>: Change type to gdb::optional.
2303 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
2304 gdb::optional. Re-write in function of gdb::optional.
2305 (dw2_debug_names_lookup_symbol): Don't pass argument for
2306 WANT_SPECIFIC_BLOCK.
2307 (dw2_debug_names_expand_symtabs_for_function): Don't pass
2308 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
2309 BLOCK_INDEX.
2310
ae60f04e
PW
23112019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2312
2313 * NEWS: Mention changes to "info sources" command.
2314
28cd9371
PW
23152019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2316
2317 * symtab.c (filename_partial_match_opts): New struct type.
2318 (struct output_source_filename_data): New members
2319 regexp, c_regexp, partial_match.
2320 (output_source_filename): Use new members to decide to print file.
2321 (info_sources_option_defs): New variable.
2322 (make_info_sources_options_def_group, print_info_sources_header,
2323 info_sources_command_completer):
2324 New functions.
2325 (info_sources_command): Read new optional arguments.
2326 (_initialize_symtab): Update info sources help.
2327
ca683e3a
AO
23282019-08-02 Alexandre Oliva <oliva@adacore.com>
2329
2330 * ada-lang.c (exception_support_info_v0): Renamed from...
2331 (default_exception_support_info): ... this. Create new
2332 definition for v1.
2333 (ada_has_this_exception_support): Look up catch_handlers_sym.
2334 (ada_exception_support_info_sniffer): Try v0 after default.
2335
f1264162
TT
23362019-08-01 Tom Tromey <tromey@adacore.com>
2337
2338 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
2339 gdbarch.h.
2340
0a7b2485
CB
23412019-08-01 Christian Biesinger <cbiesinger@google.com>
2342
2343 * s12z-tdep.c: Fix include path for s12z-opc.h.
2344
c6bdbeb7
AH
23452019-08-01 Alan Hayward <alan.hayward@arm.com>
2346
2347 * NEWS: Require GNU make 3.82.
2348
a2bd7b82
TT
23492019-07-16 Tom Tromey <tom@tromey.com>
2350
2351 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
2352 declare.
2353
aa3b6533
TT
23542019-07-30 Tom Tromey <tromey@adacore.com>
2355
2356 * block.c (contained_in): Remove BLOCK_FUNCTION check.
2357
a1530dc7
KB
23582019-07-30 Kevin Buettner <kevinb@redhat.com>
2359
2360 * printcmd.c (print_address_symbolic): Print negative offsets.
2361 (build_address_symbolic): Force signed arithmetic when computing
2362 offset.
2363
2906593f
CB
23642019-07-30 Christian Biesinger <cbiesinger@google.com>
2365
2366 PR/24474: Add a function to lookup static variables.
2367 * NEWS: Mention this new function.
2368 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
2369 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
2370 * python/python.c (python_GdbMethods): Add new function.
2371
c620ed88
CB
23722019-07-29 Christian Biesinger <cbiesinger@google.com>
2373
2374 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
2375 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
2376 (objfpy_lookup_static_symbol): New function.
2377 (objfile_object_methods): Add new functions.
2378
bc4268a5
PW
23792019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2380
2381 * NEWS: Mention 'set|show print frame-info'. Mention new
2382 'presence' value for 'frame-arguments'. Mention new '-frame-info'
2383 backtrace argument. Mention that python frame filtering code
2384 is now consistent with what 'backtrace' command prints.
2385
4b5e8d19
PW
23862019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2387
2388 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
2389 comments.
2390 (print_frame_info_auto, print_frame_info_source_line,
2391 print_frame_info_location, print_frame_info_source_and_location,
2392 print_frame_info_location_and_address, print_frame_info_short_location):
2393 New declarations.
2394 (struct frame_print_options): New member print_frame_info.
2395 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
2396 * stack.h (get_user_print_what_frame_info): New declaration.
2397 (frame_show_address): New declaration.
2398 * stack.c (print_frame_arguments_choices): New value 'presence'.
2399 (print_frame_info_auto, print_frame_info_source_line,
2400 print_frame_info_location, print_frame_info_source_and_location,
2401 print_frame_info_location_and_address, print_frame_info_short_location,
2402 print_frame_info_choices, print_frame_info_print_what): New definitions.
2403 (print_frame_args): Only print dots for args if print frame-arguments
2404 is 'presence'.
2405 (frame_print_option_defs): New element for "frame-info".
2406 (get_user_print_what_frame_info): New function.
2407 (frame_show_address): Make non static. Move comment to stack.h.
2408 (print_frame_info_to_print_what): New function.
2409 (print_frame_info): Update comment. Use fp_opts.print_frame_info
2410 to decide what to print.
2411 (backtrace_command_1): Handle the new print_frame_arguments_presence
2412 value.
2413 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
2414 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
2415 (py_print_frame): In non-mi mode, use LOCATION as default for
2416 print_what, similarly to frame information printed directly by
2417 backtrace command. Handle frame-info user option in non MI mode.
2418
6bdfee81
KB
24192019-07-27 Kevin Buettner <kevinb@redhat.com>
2420
2421 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
2422 Add case for debugging 32-bit target on 64-bit host. Revise
2423 comment.
2424
98a617f8
KB
24252019-07-27 Kevin Buettner <kevinb@redhat.com>
2426
2427 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
2428 instead of find_function_entry_range_from_pc.
2429
567238c9
KB
24302019-07-27 Kevin Buettner <kevinb@redhat.com>
2431
2432 * stack.c (find_frame_funname): Remove code which preferred
2433 minsym over symtab sym in "certain pathological cases".
2434
2dc80cf8
KB
2435 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
2436 parameter. Change type of "do_demangle" to bool.
2437 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2438 Pass suitable "prefer_sym_over_minsym" flag to
2439 build_address_symbolic(). Don't output "+" for negative offsets.
2440 * printcmd.c (print_address_symbolic): Update invocation of
2441 build_address_symbolic to include a "prefer_sym_over_minsym"
2442 flag.
2443 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
2444 Restrict cases in which use of minimal symbol is preferred to that
2445 of a found symbol. Update comments.
2446
1aff7173
KB
2447 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
2448 for entry pc when entry pc is out of range for that FDE.
2449
89b085ac
BC
24502019-07-26 Brian Callahan <bcallah@openbsd.org>
2451
2452 PR gdb/24839:
2453 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
2454 type.
2455
f32feb4a
CB
24562019-07-25 Christian Biesinger <cbiesinger@google.com>
2457
2458 * python/py-objfile.c (add_separate_debug_file): Fix comment about
2459 this function's Python signature.
2460
2461
24622019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
2463
2464 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
2465 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2466 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2467 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
2468 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
2469
2470
c54e4253
YS
24712019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
2472
2473 * h8300-tdep.c (h8300_register_name_common): New.
2474 h8300_register_name): Use h8300_register_name_common.
2475 (h8300s_register_name): Likewise.
2476 (h8300sx_register_name): Likewise.
2477 (h8300h_register_nam): New.
2478 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
2479
2480
40eadf04
SP
24812019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2482
2483 * arm-tdep.c (arm_skip_cmse_entry): New function.
2484 (arm_is_sgstubs_section): New function.
2485 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
2486
bfa2a36d
TT
24872019-07-22 Tom Tromey <tom@tromey.com>
2488
2489 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
2490 Don't self-assign.
2491
a8e9d247
AB
24922019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2493
2494 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
2495 type_print.
2496
eb86c5e2
AB
24972019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2498
2499 * symtab.c (search_symbols): Adjust msymbol matching type arrays
2500 so that GDB doesn't match any msymbols when searching in the
2501 TYPES_DOMAIN.
2502 (print_symbol_info): Print using typedef_print or type_print based
2503 on the type of the symbol. Add updated FIXME comment moved from...
2504 (_initialize_symtab): ... move and update FIXME comment to above.
2505
a8eab7c6
AB
25062019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2507
2508 * NEWS: Mention adding -q option to "info types".
2509 * symtab.c (struct info_types_options): New struct.
2510 (info_types_options_defs): New variable.
2511 (make_info_types_options_def_group): New function.
2512 (info_types_command): Use gdb::option framework to parse options.
2513 (info_types_command_completer): New function.
2514 (_initialize_symtab): Extend the help text on "info types" and
2515 register command completer.
2516
b4603c34
CB
25172019-07-21 Christian Biesinger <cbiesinger@google.com>
2518
2519 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
2520 (lookup_symbol_in_objfile): Change int to block_enum and add a
2521 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
2522
c8cdc1e0
CB
25232019-07-20 Christian Biesinger <cbiesinger@google.com>
2524
2525 * MAINTAINERS (Write After Approval): Add self.
2526
01e175fe
AB
25272019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
2528
2529 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
2530 instruction to the dummy code region.
2531
56f79b63
TT
25322019-07-19 Tom Tromey <tromey@adacore.com>
2533
2534 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
2535 (ARGSUSED, PARAMS, __func__): Remove rules.
2536
4c5aa8e0
AH
25372019-07-19 Alan Hayward <alan.hayward@arm.com>
2538
2539 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
2540 * features/arm/arm-with-iwmmxt.c: Remove.
2541 * features/arm/arm-with-iwmmxt.xml: Remove.
2542 * features/arm/arm-with-m-fpa-layout.c: Remove.
2543 * features/arm/arm-with-m-fpa-layout.xml: Remove.
2544 * features/arm/arm-with-m-vfp-d16.c: Remove.
2545 * features/arm/arm-with-m-vfp-d16.xml: Remove.
2546 * features/arm/arm-with-m.c: Remove.
2547 * features/arm/arm-with-m.xml: Remove.
2548 * features/arm/arm-with-neon.c: Remove.
2549 * features/arm/arm-with-neon.xml: Remove.
2550 * features/arm/arm-with-vfpv2.c: Remove.
2551 * features/arm/arm-with-vfpv2.xml: Remove.
2552 * features/arm/arm-with-vfpv3.c: Remove.
2553 * features/arm/arm-with-vfpv3.xml: Remove.
2554
f42b2617
AH
25552019-07-19 Alan Hayward <alan.hayward@arm.com>
2556
2557 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
2558
f29ec966
AH
25592019-07-19 Alan Hayward <alan.hayward@arm.com>
2560
2561 * arch/aarch32.c (aarch32_create_target_description): Create
2562 target descriptions using features.
2563 * arch/arm.c (arm_create_target_description)
2564 (arm_create_mprofile_target_description): Likewise.
2565 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
2566
d105cce5
AH
25672019-07-19 Alan Hayward <alan.hayward@arm.com>
2568
2569 * Makefile.in: Add new files.
2570 * aarch32-tdep.c: New file.
2571 * aarch32-tdep.h: New file.
2572 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2573 Call aarch32_read_description.
2574 * arch/aarch32.c: New file.
2575 * arch/aarch32.h: New file.
2576 * arch/arm.c (arm_create_target_description)
2577 (arm_create_mprofile_target_description): New function.
2578 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
2579 (arm_create_target_description)
2580 (arm_create_mprofile_target_description): New declaration.
2581 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
2582 read_description functions.
2583 * arm-linux-nat.c (arm_linux_nat_target::read_description):
2584 Likewise.
2585 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2586 * arm-tdep.c (tdesc_arm_list): New variable.
2587 (arm_register_g_packet_guesses): Call create description functions.
2588 (arm_read_description) (arm_read_mprofile_description): New
2589 function.
2590 * arm-tdep.h (arm_read_description)
2591 (arm_read_mprofile_description): Add declaration.
2592 * configure.tgt: Add new files.
2593
afe09f0b
GL
25942019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
2595
2596 * top.c (new_ui_command): Open specified terminal just once.
2597
cd215b2e
TT
25982019-07-18 Tom Tromey <tromey@adacore.com>
2599
2600 * symtab.c (main_name): Constify return type.
2601 * symfile.c (set_initial_language): Update.
2602 * symtab.h (main_name): Constify return type.
2603
d8f68fcb
TT
26042019-07-17 Tom Tromey <tom@tromey.com>
2605
2606 * tui/tui-winsource.c (tui_update_source_window)
2607 (tui_update_source_window_as_is)
2608 (tui_update_source_windows_with_line): Remove return.
2609 * tui/tui-disasm.c (tui_show_disassem)
2610 (tui_show_disassem_and_update_source): Remove return.
2611 * tui/tui.c (tui_reset): Remove return.
2612 * tui/tui-wingeneral.c
2613 (tui_check_and_display_highlight_if_needed): Remove return.
2614
ca5af91e
TT
26152019-07-17 Tom Tromey <tom@tromey.com>
2616
2617 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
2618
5104fe36
TT
26192019-07-17 Tom Tromey <tom@tromey.com>
2620
2621 * tui/tui-winsource.h (struct tui_exec_info_window)
2622 (struct tui_source_window_base): Move from tui-data.h.
2623 * tui/tui-winsource.c: Move many method definitions from
2624 elsewhere. Remove "structuring" comments.
2625 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
2626 (tui_source_window_base::refresh_window): Move to
2627 tui-winsource.c.
2628 * tui/tui-win.c (tui_source_window_base::refresh_all)
2629 (tui_source_window_base::update_tab_width)
2630 (tui_source_window_base::set_new_height)
2631 (tui_source_window_base::do_make_visible_with_new_height): Move to
2632 tui-winsource.c.
2633 * tui/tui-source.h: Update.
2634 * tui/tui-source.c (tui_source_window_base::reset): Move to
2635 tui-winsource.c.
2636 * tui/tui-disasm.h: Update.
2637 * tui/tui-data.h (struct tui_exec_info_window): Move to
2638 tui-winsource.h.
2639 (struct tui_source_window_base): Likewise.
2640 * tui/tui-data.c (tui_source_window_base::clear_detail)
2641 (tui_source_window_base, ~tui_source_window_base): Move to
2642 tui-winsource.c.
2643
daa15dde
TT
26442019-07-17 Tom Tromey <tom@tromey.com>
2645
2646 * tui/tui-win.c (tui_resize_all)
2647 (tui_source_window_base::update_tab_width)
2648 (tui_adjust_win_heights): Update.
2649 (tui_win_info::make_invisible_and_set_new_height): Rename from
2650 make_invisible_and_set_new_height.
2651 * tui/tui-data.h (struct tui_win_info)
2652 <make_invisible_and_set_new_height>: New method.
2653
bfad4537
TT
26542019-07-17 Tom Tromey <tom@tromey.com>
2655
2656 * tui/tui.c: Update.
2657 * tui/tui-source.h (struct tui_source_window): Move from
2658 tui-data.h.
2659 * tui/tui-layout.c: Update.
2660 * tui/tui-disasm.c: Update.
2661 * tui/tui-data.h (struct tui_source_window): Move to
2662 tui-source.h.
2663
88f7e873
TT
26642019-07-17 Tom Tromey <tom@tromey.com>
2665
2666 * tui/tui-disasm.h (struct tui_disasm_window): Move from
2667 tui-data.h.
2668 * tui/tui-data.h (struct tui_disasm_window): Move to
2669 tui-disasm.h.
2670
96bd6233
TT
26712019-07-17 Tom Tromey <tom@tromey.com>
2672
2673 * tui/tui-regs.h (struct tui_data_item_window): Move from
2674 tui-data.h.
2675 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
2676 * tui/tui-data.h (struct tui_data_item_window): Move to
2677 tui-regs.h.
2678 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
2679
ce38393b
TT
26802019-07-17 Tom Tromey <tom@tromey.com>
2681
2682 * tui/tui.c: Update.
2683 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
2684 (tui_cmd_window::max_height): Move to tui-command.c.
2685 * tui/tui-layout.c: Update.
2686 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
2687 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
2688 tui-command.c.
2689 * tui/tui-command.h (struct tui_cmd_window): Move from
2690 tui-data.h.
2691 * tui/tui-command.c: Remove "structuring" comments.
2692 (tui_cmd_window::clear_detail)
2693 (tui_cmd_window::do_make_visible_with_new_height)
2694 (tui_cmd_window::max_height): Move from elsewhere.
2695
2d8b51cb
TT
26962019-07-17 Tom Tromey <tom@tromey.com>
2697
2698 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
2699 Now static.
2700 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
2701 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
2702
18ab23af
TT
27032019-07-17 Tom Tromey <tom@tromey.com>
2704
2705 * tui/tui.c: Update.
2706 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
2707 tui-regs.c.
2708 * tui/tui-windata.h: Remove file.
2709 * tui/tui-windata.c: Remove file.
2710 * tui/tui-win.c (tui_data_window::set_new_height)
2711 (tui_data_window::do_make_visible_with_new_height): Move to
2712 tui-regs.c.
2713 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
2714 * tui/tui-regs.c: Remove "structuring" comments.
2715 (tui_data_window::first_data_item_displayed)
2716 (tui_data_window::delete_data_content_windows)
2717 (tui_data_window::erase_data_content)
2718 (tui_data_window::display_all_data)
2719 (tui_data_window::refresh_all)
2720 (tui_data_window::do_scroll_vertical)
2721 (tui_data_window::clear_detail, tui_data_window::set_new_height)
2722 (tui_data_window::do_make_visible_with_new_height)
2723 (tui_data_window::refresh_window): Move from elsewhere.
2724 (_initialize_tui_regs): Move to end of file.
2725 * tui/tui-layout.c: Update.
2726 * tui/tui-hooks.c: Update.
2727 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
2728 * tui/tui-data.c (tui_data_window::clear_detail): Move to
2729 tui-regs.c.
2730 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
2731
88b7e7cc
TT
27322019-07-17 Tom Tromey <tom@tromey.com>
2733
2734 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
2735 seen.
2736
0fcd3711
TT
27372019-07-17 Tom Tromey <tom@tromey.com>
2738
2739 * tui/tui-win.c (tui_source_window_base::set_new_height)
2740 (tui_source_window_base::do_make_visible_with_new_height): Use
2741 m_has_locator field directly.
2742 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
2743 method.
2744 (struct tui_source_window_base) <has_locator>: Likewise.
2745
4a38112d
TT
27462019-07-17 Tom Tromey <tom@tromey.com>
2747
2748 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
2749 Don't declare.
2750 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
2751 Remove.
2752 * tui/tui-win.c (tui_source_window_base::set_new_height)
2753 (tui_source_window_base::set_new_height)
2754 (make_invisible_and_set_new_height)
2755 (tui_source_window_base::do_make_visible_with_new_height)
2756 (tui_source_window_base::do_make_visible_with_new_height):
2757 Update.
2758 * tui/tui-layout.c (show_source_disasm_command, show_data)
2759 (show_source_or_disasm_and_command): Update.
2760 * tui/tui-layout.c (show_layout): Update.
2761
09129226
TT
27622019-07-17 Tom Tromey <tom@tromey.com>
2763
2764 * tui/tui-layout.c (make_data_window): Remove.
2765 (show_data): Unify creation and re-initialization cases.
2766
4a8a5e84
TT
27672019-07-17 Tom Tromey <tom@tromey.com>
2768
2769 * tui/tui-layout.c (make_source_window, make_disasm_window):
2770 Remove.
2771 (show_data): Unify creation and re-initialization cases.
2772
76d2be8e
TT
27732019-07-17 Tom Tromey <tom@tromey.com>
2774
2775 * tui/tui-layout.c (make_command_window): Remove.
2776 (show_source_disasm_command, show_source_or_disasm_and_command):
2777 Unify creation and re-initialization cases.
2778
890b8bde
TT
27792019-07-17 Tom Tromey <tom@tromey.com>
2780
2781 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
2782 creation and re-initialization cases.
2783
2cdfa113
TT
27842019-07-17 Tom Tromey <tom@tromey.com>
2785
2786 * tui/tui-regs.c (tui_get_register): Return void.
2787
8e3cfd09
TT
27882019-07-17 Tom Tromey <tom@tromey.com>
2789
2790 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
2791 Simplify.
2792
f4e04977
TT
27932019-07-17 Tom Tromey <tom@tromey.com>
2794
2795 * tui/tui-layout.c (show_source_disasm_command): Simplify window
2796 resetting.
2797
0379b883
TT
27982019-07-17 Tom Tromey <tom@tromey.com>
2799
2800 * tui/tui.h (tui_set_layout_by_name): Don't declare.
2801 * tui/tui-regs.c (tui_reg_layout): New function.
2802 (tui_show_registers, tui_reg_command): Use it.
2803 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
2804 (tui_layout_command): Rename from tui_set_layout_by_name. Change
2805 parameters.
2806 (tui_layout_command): Remove.
2807
b7fbad91
TT
28082019-07-17 Tom Tromey <tom@tromey.com>
2809
2810 * tui/tui-layout.h (tui/tui-layout): Return void.
2811 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
2812
4e1e56b9
TT
28132019-07-17 Tom Tromey <tom@tromey.com>
2814
2815 * tui/tui-layout.c (show_source_disasm_command, show_data):
2816 Update.
2817 (reset_locator): Remove.
2818 (show_source_or_disasm_and_command): Update.
2819
1e0c09ba
TT
28202019-07-17 Tom Tromey <tom@tromey.com>
2821
2822 * tui/tui-source.c (tui_source_window_base::reset): Remove
2823 win_type parameter.
2824 * tui/tui-layout.c (make_command_window, make_source_window)
2825 (make_disasm_window, make_data_window)
2826 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
2827 (reset_locator, show_source_or_disasm_and_command): Update.
2828 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
2829 win_type parameter.
2830 (struct tui_source_window_base) <reset>: Likewise.
2831
1bf605de
TT
28322019-07-17 Tom Tromey <tom@tromey.com>
2833
2834 * tui/tui-layout.c (show_source_disasm_command): Use
2835 reset_locator.
2836 (reset_locator): New function.
2837 (init_and_make_win): Remove.
2838 (show_source_or_disasm_and_command): Use reset_locator.
2839
098f9ed4
TT
28402019-07-17 Tom Tromey <tom@tromey.com>
2841
2842 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
2843 condition.
2844 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
2845 Remove condition.
2846 * tui/tui-source.c (tui_source_window_base::reset): New method.
2847 * tui/tui-layout.c (make_command_window): Don't call
2848 init_and_make_win.
2849 (make_source_window, make_disasm_window): Don't call
2850 make_source_or_disasm_window.
2851 (make_data_window): Don't call init_and_make_win. Change calling
2852 convention.
2853 (show_source_disasm_command, show_data): Simplify.
2854 (make_source_or_disasm_window): Remove.
2855 (show_source_or_disasm_and_command): Simplify.
2856 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
2857 (struct tui_source_window_base) <reset>: Likewise.
2858 <execution_info>: Remove initializer.
2859 * tui/tui-data.c (tui_source_window_base): Initialize
2860 execution_info.
2861
80110957
TT
28622019-07-17 Tom Tromey <tom@tromey.com>
2863
2864 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
2865 variable.
2866
cf82af05
TT
28672019-07-17 Tom Tromey <tom@tromey.com>
2868
2869 * tui/tui.c (tui_rl_other_window): Update.
2870 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
2871 superclass method first. Always iterate over regs_content.
2872 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
2873 method.
2874 * tui/tui-win.c (tui_set_focus_command): Update.
2875
01aeb396
TT
28762019-07-17 Tom Tromey <tom@tromey.com>
2877
2878 * tui/tui-win.c (tui_set_focus_command): Rename from
2879 tui_set_focus. Call tui_enable.
2880 (tui_set_focus_command): Remove.
2881
fd6c75ee
TT
28822019-07-17 Tom Tromey <tom@tromey.com>
2883
2884 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
2885 refresh_window.
2886 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
2887 touchwin.
2888 (tui_data_window::refresh_window): Call refresh_window on data
2889 items. Always call superclass refresh_window.
2890 (tui_win_info::refresh): Remove.
2891 (tui_source_window_base::refresh_window): Update.
2892 (tui_refresh_all): Update.
2893 * tui/tui-layout.c (show_source_disasm_command): Remove call to
2894 refresh_window.
2895 (show_source_or_disasm_and_command): Likewise.
2896 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
2897 (struct tui_source_window_base) <refresh>: Likewise.
2898
f6cc34a9
TT
28992019-07-17 Tom Tromey <tom@tromey.com>
2900
2901 * tui/tui-winsource.c (tui_clear_source_content)
2902 (tui_show_source_content): Update.
2903 * tui/tui-source.c (tui_source_window::showing_source_p): Check
2904 whether content is empty.
2905 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
2906 Remove.
2907
f31ec9af
TT
29082019-07-17 Tom Tromey <tom@tromey.com>
2909
2910 * tui/tui-winsource.c (tui_erase_source_content): Clear the
2911 window's contents.
2912 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
2913 * tui/tui-source.c (tui_set_source_content_nil): Remove.
2914
d1b6f1e5
TT
29152019-07-17 Tom Tromey <tom@tromey.com>
2916
2917 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
2918 (struct tui_data_item_window): Update.
2919
d9743a13
TT
29202019-07-17 Tom Tromey <tom@tromey.com>
2921
2922 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
2923 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
2924 defines.
2925
caf0bc4e
TT
29262019-07-17 Tom Tromey <tom@tromey.com>
2927
2928 * tui/tui-winsource.h (tui_erase_source_content)
2929 (tui_clear_source_content): Remove "display_prompt" parameter.
2930 * tui/tui-winsource.c (tui_update_source_window_as_is)
2931 (tui_update_source_windows_with_addr): Update.
2932 (tui_clear_source_content): Remove "display_prompt" parameter.
2933 (tui_erase_source_content): Likewise. Simplify.
2934 (tui_show_source_content): Update.
2935 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2936 * tui/tui-stack.c (tui_show_frame_info): Update.
2937 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
2938 Remove defines.
2939
9d391078
TT
29402019-07-17 Tom Tromey <tom@tromey.com>
2941
2942 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2943 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
2944 parameter.
2945 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
2946 parameter.
2947
a38da35d
TT
29482019-07-17 Tom Tromey <tom@tromey.com>
2949
2950 * tui/tui-winsource.c (tui_clear_source_content)
2951 (tui_show_source_content, tui_show_exec_info_content)
2952 (tui_clear_exec_info_content): Update.
2953 * tui/tui-stack.c (tui_show_locator_content): Update.
2954 (tui_show_frame_info): Update.
2955 * tui/tui-source.h (tui_source_window): Don't declare.
2956 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
2957 from tui_source_is_displayed.
2958 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
2959 Remove field.
2960 (struct tui_source_window_base) <content_in_use>: New field. Now
2961 bool.
2962 (struct tui_source_window) <showing_source_p>: New method.
2963 (TUI_SRC_WIN): Change cast.
2964 * tui/tui-data.c (tui_initialize_static_data): Update.
2965
c2cd8994
TT
29662019-07-17 Tom Tromey <tom@tromey.com>
2967
2968 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
2969 location_matches_p.
2970 * tui/tui-source.c (tui_source_window::location_matches_p): New
2971 method.
2972 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
2973 method.
2974 * tui/tui-data.h (struct tui_source_window_base)
2975 <location_matches_p>: New method.
2976 (struct tui_source_window, struct tui_disasm_window)
2977 <location_matches_p>: Likewise.
2978
4dde7b34
TT
29792019-07-17 Tom Tromey <tom@tromey.com>
2980
2981 * tui/tui-win.c (tui_set_win_height_command): Rename from
2982 tui_set_win_height.
2983 (tui_set_win_height_command): Remove.
2984
b73dd877
TT
29852019-07-17 Tom Tromey <tom@tromey.com>
2986
2987 * tui/tui-source.c (tui_source_window): New constructor. Add
2988 observer.
2989 (~tui_source_window): New destructor.
2990 (tui_source_window::style_changed): New method.
2991 * tui/tui-hooks.c (tui_redisplay_source): Remove.
2992 (tui_attach_detach_observers): Update.
2993 * tui/tui-data.h (struct tui_source_window): Make constructor not
2994 inline. Add destructor.
2995 (struct tui_source_window) <style_changed>: New method.
2996 <m_observable>: New member.
2997
ae2b5380
TT
29982019-07-17 Tom Tromey <tom@tromey.com>
2999
3000 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
3001 * tui/tui-win.c (tui_resize_all): Fix typo.
3002
1ce3e844
TT
30032019-07-17 Tom Tromey <tom@tromey.com>
3004
3005 * tui/tui-wingeneral.h (tui_refresh_all): Update.
3006 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
3007 (tui_refresh_all): Remove "list" parameter. Use foreach.
3008 * tui/tui-win.c (window_name_completer): Use foreach.
3009 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
3010 (update_tab_width): Likewise.
3011 * tui/tui-layout.c (show_layout): Update.
3012 * tui/tui-data.h (class tui_window_iterator): New.
3013 (struct all_tui_windows): New.
3014 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
3015
fe3eaf1c
TT
30162019-07-17 Tom Tromey <tom@tromey.com>
3017
3018 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
3019 parameter. Don't reference globals.
3020 (tui_reg_command): Update.
3021
368c1354
TT
30222019-07-17 Tom Tromey <tom@tromey.com>
3023
3024 * tui/tui-regs.c (tui_show_registers): Simplify.
3025
e80cd204
TT
30262019-07-17 Tom Tromey <tom@tromey.com>
3027
3028 * tui/tui-regs.c (tui_show_registers): Update.
3029 (tui_show_register_group): Add win_info parameter.
3030
aca2dd16
TT
30312019-07-17 Tom Tromey <tom@tromey.com>
3032
3033 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
3034 Rename from tui_display_reg_element_at_line.
3035 (tui_data_window::display_registers_from_line): Update.
3036 * tui/tui-data.h (struct tui_data_window)
3037 <display_reg_element_at_line>: New method.
3038
517e9505
TT
30392019-07-17 Tom Tromey <tom@tromey.com>
3040
3041 * tui/tui-regs.h (tui_display_registers_from)
3042 (tui_display_registers_from_line): Don't declare.
3043 * tui/tui-windata.c (tui_data_window::display_all_data)
3044 (tui_data_window::refresh_all)
3045 (tui_data_window::do_scroll_vertical): Update.
3046 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
3047 from tui_display_registers_from.
3048 (tui_display_reg_element_at_line): Update.
3049 (tui_data_window::display_registers_from_line): Rename from
3050 tui_display_registers_from_line.
3051 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
3052 display_registers_from_line>: New methods.
3053
f76d8b19
TT
30542019-07-17 Tom Tromey <tom@tromey.com>
3055
3056 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
3057 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
3058 from tui_erase_data_content.
3059 (tui_data_window::display_all_data)
3060 (tui_data_window::refresh_all)
3061 (tui_data_window::do_scroll_vertical): Update.
3062 * tui/tui-regs.c (tui_show_registers): Update.
3063 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
3064 New method.
3065
b4094625
TT
30662019-07-17 Tom Tromey <tom@tromey.com>
3067
3068 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
3069 declare.
3070 * tui/tui-windata.c
3071 (tui_data_window::delete_data_content_windows): Rename from
3072 tui_delete_data_content_windows.
3073 (tui_data_window::display_all_data)
3074 (tui_data_window::do_scroll_vertical): Update.
3075 * tui/tui-data.h (struct tui_data_window)
3076 <delete_data_content_windows>: New method.
3077
c223a729
TT
30782019-07-17 Tom Tromey <tom@tromey.com>
3079
3080 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
3081 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
3082
50daf268
TT
30832019-07-17 Tom Tromey <tom@tromey.com>
3084
3085 * tui/tui-windata.h (tui_display_all_data): Don't declare.
3086 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
3087 from tui_display_all_data.
3088 * tui/tui-win.c
3089 (tui_data_window::do_make_visible_with_new_height): Update.
3090 * tui/tui-regs.c (tui_show_registers): Update.
3091 * tui/tui-layout.c (tui_set_layout): Update.
3092 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
3093 method.
3094
df5f8cab
TT
30952019-07-17 Tom Tromey <tom@tromey.com>
3096
3097 * tui/tui-windata.h (tui_display_data_from): Don't declare.
3098 * tui/tui-windata.c (tui_display_data_from): Remove.
3099 (tui_data_window::refresh_all): Update.
3100
80cb6c27
TT
31012019-07-17 Tom Tromey <tom@tromey.com>
3102
3103 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
3104 * tui/tui-windata.c (tui_display_data_from_line): Remove.
3105 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
3106 tui_display_registers_from_line.
3107 * tui/tui-regs.h (tui_display_registers_from_line): Update.
3108 * tui/tui-regs.c (tui_display_registers_from_line): Remove
3109 "force_display" parameter.
3110
baff0c28
TT
31112019-07-17 Tom Tromey <tom@tromey.com>
3112
3113 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
3114 declare.
3115 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
3116 Rename from tui_first_reg_element_no_inline.
3117 (tui_display_reg_element_at_line)
3118 (tui_display_registers_from_line): Update.
3119 * tui/tui-data.h (struct tui_data_window)
3120 <first_reg_element_no_inline>: New method.
3121
3b23c5f2
TT
31222019-07-17 Tom Tromey <tom@tromey.com>
3123
3124 * tui/tui-windata.c (tui_display_data_from)
3125 (tui_data_window::do_scroll_vertical): Update.
3126 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
3127 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
3128 Rename from tui_line_from_reg_element_no.
3129 (tui_display_registers_from_line): Update.
3130 * tui/tui-data.h (struct tui_data_window)
3131 <line_from_reg_element_no>: New method.
3132
0b5ec218
TT
31332019-07-17 Tom Tromey <tom@tromey.com>
3134
3135 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
3136 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
3137 tui_last_regs_line_no.
3138 (tui_display_reg_element_at_line)
3139 (tui_display_registers_from_line): Update.
3140 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
3141 method.
3142
0807ab7b
TT
31432019-07-17 Tom Tromey <tom@tromey.com>
3144
3145 PR tui/24722:
3146 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
3147 (tui_update_breakpoint_info): Add "being_deleted" parameter.
3148 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3149 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
3150 (tui_update_breakpoint_info): Likewise.
3151 * tui/tui-hooks.c (tui_event_create_breakpoint)
3152 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
3153 Update.
3154
9ad7fdef
TT
31552019-07-17 Tom Tromey <tom@tromey.com>
3156
3157 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
3158
5813316f
TT
31592019-07-17 Tom Tromey <tom@tromey.com>
3160
3161 * tui/tui-winsource.c (tui_update_source_window_as_is)
3162 (tui_update_source_windows_with_addr): Update.
3163 * tui/tui-source.h (tui_set_source_content)
3164 (tui_show_symtab_source): Add "win_info" parameter.
3165 * tui/tui-source.c (tui_set_source_content): Add "win_info"
3166 parameter.
3167 (tui_show_symtab_source): Likewise.
3168
00e264e7
TT
31692019-07-17 Tom Tromey <tom@tromey.com>
3170
3171 * tui/tui-wingeneral.c
3172 (tui_check_and_display_highlight_if_needed): Check can_highlight.
3173
06210ce4
TT
31742019-07-17 Tom Tromey <tom@tromey.com>
3175
3176 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
3177 (struct tui_cmd_window) <can_scroll>: New method.
3178 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
3179 method.
3180
381befee
TT
31812019-07-17 Tom Tromey <tromey@adacore.com>
3182
3183 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
3184 do_field_signed>: Rename. Change type of "value".
3185 * ui-out.c (ui_out::field_signed): Rename from field_int.
3186 Change type of "value".
3187 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
3188 type of "value".
3189 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
3190 do_field_int. Change type of "value".
3191 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
3192 do_field_int. Change type of "value".
3193 * tracepoint.c (trace_status_mi, tfind_1)
3194 (print_one_static_tracepoint_marker): Update.
3195 * thread.c (print_thread_info_1, print_selected_thread_frame):
3196 Update.
3197 * stack.c (print_frame, print_frame_info): Update.
3198 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
3199 Update.
3200 * source.c (print_source_lines_base): Update.
3201 * skip.c (info_skip_command): Update.
3202 * record-btrace.c (btrace_ui_out_decode_error)
3203 (btrace_call_history_src_line): Update.
3204 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
3205 Update.
3206 * progspace.c (print_program_space): Update.
3207 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
3208 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
3209 do_field_int. Change type of "value".
3210 * mi/mi-out.c (mi_ui_out::do_table_begin)
3211 (mi_ui_out::do_table_header): Update.
3212 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
3213 type of "value".
3214 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
3215 (mi_cmd_data_list_changed_registers, output_register)
3216 (mi_cmd_data_read_memory, mi_load_progress)
3217 (mi_cmd_trace_frame_collected): Update.
3218 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
3219 Update.
3220 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3221 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
3222 (mi_cmd_var_list_children, varobj_update_one): Update.
3223 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
3224 (mi_cmd_stack_list_args, list_arg_or_local): Update.
3225 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
3226 * inferior.c (print_inferior): Update.
3227 * gdb_bfd.c (print_one_bfd): Update.
3228 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3229 Update.
3230 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
3231 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
3232 do_field_int. Change type of "value".
3233 * cli-out.c (cli_ui_out::do_field_signed): Rename from
3234 do_field_int. Change type of "value".
3235 * breakpoint.c (watchpoint_check, print_breakpoint_location)
3236 (print_one_breakpoint_location, print_it_catch_fork)
3237 (print_one_catch_fork, print_it_catch_vfork)
3238 (print_one_catch_vfork, print_it_catch_solib)
3239 (print_it_catch_exec, print_it_ranged_breakpoint)
3240 (print_mention_watchpoint, print_mention_masked_watchpoint)
3241 (bkpt_print_it, update_static_tracepoint): Update.
3242 * break-catch-throw.c (print_it_exception_catchpoint): Update.
3243 * break-catch-syscall.c (print_it_catch_syscall): Update.
3244 * ada-tasks.c (print_ada_task_info): Update.
3245 * ada-lang.c (print_it_exception, print_mention_exception):
3246 Update.
3247
6b78c3f8
AB
32482019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3249
3250 PR breakpoints/24541
3251 * gdbarch.c: Regenerate.
3252 * gdbarch.h: Regenerate.
3253 * gdbarch.sh: Adjust return type and parameter types for
3254 'stap_adjust_register'.
3255 (i386_stap_adjust_register): Adjust signature and return new
3256 register name.
3257 * stap-probe.c (stap_parse_register_operand): Adjust use of
3258 'gdbarch_stap_adjust_register'.
3259
d72a9b85
TT
32602019-07-17 Tom Tromey <tromey@adacore.com>
3261
3262 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
3263 declare VEC.
3264 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
3265 std::vector.
3266 (struct s390_process_info): Add initializers.
3267 (s390_add_process): Use new.
3268 (s390_linux_nat_target::low_forget_process): Use delete.
3269 (s390_linux_nat_target::low_new_fork)
3270 (s390_linux_nat_target::stopped_by_watchpoint)
3271 (s390_linux_nat_target::low_prepare_to_resume)
3272 (s390_linux_nat_target::insert_watchpoint)
3273 (s390_linux_nat_target::insert_hw_breakpoint)
3274 (s390_linux_nat_target::remove_watchpoint)
3275 (s390_linux_nat_target::remove_hw_breakpoint): Update.
3276
206e6c58
JB
32772019-07-16 John Baldwin <jhb@FreeBSD.org>
3278
3279 * aarch64-fbsd-nat.c: Include regcache.h.
3280 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
3281 argument.
3282 (aarch64_fbsd_nat_target::fetch_registers)
3283 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
3284 variable.
3285 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
3286
cbde90f2
JB
32872019-07-16 John Baldwin <jhb@FreeBSD.org>
3288
3289 * fbsd-nat.c: Include gdbarch.h.
3290
07128006
TT
32912019-07-15 Tom Tromey <tromey@adacore.com>
3292
3293 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
3294
1f77b012
TT
32952019-07-15 Tom Tromey <tromey@adacore.com>
3296
3297 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
3298 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
3299 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
3300 * cli-out.c (cli_ui_out::do_field_int): New method.
3301 * ui-out.c (ui_out::field_unsigned): New method.
3302 * symfile.c (generic_load): Use field_unsigned.
3303 (print_transfer_performance): Likewise.
3304 * record-btrace.c (ui_out_field_uint): Remove.
3305 (btrace_call_history_insn_range, btrace_call_history): Use
3306 field_unsigned.
3307 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3308 field_unsigned.
3309 * ui-out.h (class ui_out) <field_unsigned>: New method.
3310 <do_field_unsigned>: Likewise.
3311
33eca680
TT
33122019-07-15 Tom Tromey <tromey@adacore.com>
3313
3314 * mi/mi-main.c (list_available_thread_groups): Use field_string.
3315 * mi/mi-interp.c (mi_memory_changed): Use field_string.
3316 * target.c (flash_erase_command): Use field_string.
3317 * infrun.c (print_signal_received_reason): Use field_string.
3318 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
3319 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
3320 field_string.
3321 * ada-tasks.c (print_ada_task_info): Use field_string.
3322
ca8d69be
TT
33232019-07-15 Tom Tromey <tromey@adacore.com>
3324
3325 * target.c (flash_erase_command): Use field_core_addr.
3326 * symfile.c (generic_load): Use field_core_addr.
3327 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3328 Use field_core_addr.
3329 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
3330 field_core_addr.
3331
0d4e84ed
AB
33322019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3333
3334 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
3335 value if its desired type is smaller than a CORE_ADDR and signed.
3336
9a49df9d
AB
33372019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3338
3339 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
3340 of changes to field names, and use new is_reference field to
3341 decide if a property is a reference or not.
3342 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
3343 field.
3344 (struct dwarf2_property_baton): Update header comment, rename
3345 'referenced_type' to 'property_type' and update comments.
3346 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
3347 default property type, store in property baton, update to take
3348 accound of renamed field.
3349 (read_func_scope): Update call to attr_to_dynamic_prop.
3350 (read_array_type): Likewise.
3351 (dwarf2_per_cu_addr_sized_int_type): New function.
3352 (read_subrange_index_type): Move type finding code to
3353 dwarf2_per_cu_addr_sized_int_type.
3354 (read_subrange_type): Update calls to attr_to_dynamic_prop.
3355 (dwarf2_per_cu_addr_type): New function.
3356 (set_die_type): Update calls to attr_to_dynamic_prop.
3357
b86352cf
AB
33582019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3359
3360 * dwarf2read.c (read_subrange_index_type): New function.
3361 (read_subrange_type): Move code into new function and call it.
3362 * gdbtypes.c (create_range_type): Add some asserts.
3363
603490bf
AB
33642019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3365
3366 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
3367 update return statements.
3368 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
3369 declaration, and update comment to match.
3370 * gdbtypes.c (resolve_dynamic_array): Update call to
3371 dwarf2_evaluate_property to match new return type.
3372
592f9d27
AB
33732019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3374
3375 * valarith.c (value_subscripted_rvalue): Change lowerbound
3376 parameter type from int to LONGEST.
3377 * value.h (value_subscripted_rvalue): Likewise in declaration.
3378
60cfcb20
AB
33792019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3380
3381 * cli/cli-utils.c (info_print_command_completer): New function.
3382 * cli/cli-utils.h: Add 'completer.h' include, and forward
3383 declaration for 'struct cmd_list_element'.
3384 (info_print_command_completer): Declare.
3385 * stack.c (_initialize_stack): Add completer for 'info locals' and
3386 'info args'.
3387 * symtab.c (_initialize_symtab): Add completer for 'info
3388 variables' and 'info functions'.
3389 * NEWS: Mention completion for additional info commands.
3390
b16507e0
AB
33912019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3392
3393 * cli/cli-utils.c (extract_info_print_args): Delete.
3394 (extract_arg_maybe_quoted): Delete.
3395 (info_print_options_defs): New variable.
3396 (make_info_print_options_def_group): New function.
3397 (extract_info_print_options): Define new function.
3398 * cli/cli-utils.h (extract_info_print_args): Delete.
3399 (struct info_print_options): New structure.
3400 (extract_info_print_options): Declare new function.
3401 * stack.c (info_locals_command): Update to use new
3402 extract_info_print_options, also add a header comment.
3403 (info_args_command): Likewise.
3404 * symtab.c (info_variables_command): Likewise.
3405 (info_functions_command): Likewise.
3406
021d8588
AB
34072019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3408
3409 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
3410 to extract string arguments.
3411 * common/common-utils.c (extract_string_maybe_quoted): New function.
3412 * common/common-utils.h (extract_string_maybe_quoted): Declare.
3413
b777eb6d
TT
34142019-07-11 Tom Tromey <tromey@adacore.com>
3415
3416 * main.c (get_init_files): Use GDBINIT, not gdbinit.
3417 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
3418 * top.h (gdbinit): Don't declare.
3419 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
3420 into...
3421 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
3422 * top.c (gdb_init): Don't call init_cli_cmds.
3423 (gdbinit): Remove.
3424 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
3425
72ee03ff
TT
34262019-07-11 Tom Tromey <tromey@adacore.com>
3427
3428 * python/py-inferior.c (add_thread_object): Don't use thread_obj
3429 after it has been moved.
3430
00db9531
SM
34312019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3432
3433 * valops.c (value_must_coerce_to_target): Change return type to
3434 bool.
3435 * value.h (value_must_coerce_to_target): Likewise.
3436
f2478a7e
SM
34372019-07-10 Simon Marchi <simon.marchi@efficios.com>
3438
3439 * breakpoint.c (is_hardware_watchpoint): Remove
3440 forward-declaration.
3441 (is_masked_watchpoint): Change return type to bool.
3442 (is_tracepoint): Likewise.
3443 (is_breakpoint): Likewise.
3444 (is_hardware_watchpoint): Likewise.
3445 (is_watchpoint): Likewise.
3446 (is_no_memory_software_watchpoint): Likewise.
3447 (is_catchpoint): Likewise.
3448 (breakpoint_1): Make FILTER parameter's return type bool.
3449 is_masked_watchpoint): Change return type to bool.
3450 (save_breakpoints): Make FILTER parameter's return type bool.
3451 * breakpoint.h (is_breakpoint): Change return type to bool.
3452 (is_watchpoint): Likewise.
3453 (is_catchpoint): Likewise.
3454 (is_tracepoint): Likewise.
3455
0d12e84c
TT
34562019-07-10 Tom Tromey <tom@tromey.com>
3457
3458 * defs.h: Don't include gdbarch.h.
3459 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
3460 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
3461 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
3462 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
3463 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
3464 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
3465 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
3466 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
3467 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
3468 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
3469 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
3470 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
3471 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
3472 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
3473 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
3474 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
3475 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
3476 record-btrace.c, record.h, regcache-dump.c, regcache.h,
3477 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
3478 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
3479 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
3480 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
3481 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
3482 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
3483 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
3484 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
3485 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
3486
f06f1252
TT
34872019-07-10 Tom Tromey <tromey@adacore.com>
3488
3489 * ada-lang.h (is_ada_exception_catchpoint): Declare.
3490 * breakpoint.c (init_ada_exception_breakpoint): Register as
3491 bp_catchpoint.
3492 (print_one_breakpoint_location, print_one_breakpoint): Use
3493 is_ada_exception_catchpoint.
3494 * ada-lang.c (class ada_catchpoint_location): Pass
3495 bp_loc_software_breakpoint to bp_location constructor.
3496 (is_ada_exception_catchpoint): New function.
3497
7a5d944b
TT
34982019-07-10 Tom Tromey <tromey@adacore.com>
3499
3500 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
3501 VEC.
3502 (struct arm_exidx_entry): New method operator<.
3503 (struct arm_exidx_data) <section_maps>: Change type.
3504 (arm_exidx_data_free): Remove.
3505 (arm_exidx_data_key): Change type. Move lower.
3506 (arm_exidx_new_objfile): Update.
3507 (arm_compare_exidx_entries): Remove.
3508 (arm_find_exidx_entry, _initialize_arm_tdep)
3509
48c66e1d
TT
35102019-07-10 Tom Tromey <tromey@adacore.com>
3511
3512 * solib-spu.c (ocl_program_data_key): Change type.
3513 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
3514 Update.
3515
a269fbf1
TT
35162019-07-10 Tom Tromey <tromey@adacore.com>
3517
3518 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
3519 (struct solib_aix_inferior_data) <library_list>: Change type.
3520 (solib_aix_inferior_data_handle): Change type.
3521 (get_solib_aix_inferior_data): Update.
3522 (solib_aix_free_library_list): Remove.
3523 (library_list_start_library): Update.
3524 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
3525 return type.
3526 (solib_aix_get_library_list)
3527 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
3528 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
3529
c294730c
TT
35302019-07-10 Tom Tromey <tromey@adacore.com>
3531
3532 * solib-dsbt.c (struct dsbt_info): Add initializers.
3533 (solib_dsbt_pspace_data): Change type.
3534 (dsbt_pspace_data_cleanup): Remove.
3535 (get_dsbt_info, _initialize_dsbt_solib): Update.
3536
9d52077d
TT
35372019-07-10 Tom Tromey <tromey@adacore.com>
3538
3539 * spu-tdep.c (spu_overlay_data): Change type.
3540 (spu_get_overlay_table, spu_overlay_new_objfile)
3541 (_initialize_spu_tdep): Update.
3542
22a20dca
TT
35432019-07-10 Tom Tromey <tromey@adacore.com>
3544
3545 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
3546 destructor.
3547 (dbx_objfile_data_key): Change type and declare later.
3548 (DBX_SYMFILE_INFO): Rewrite.
3549 * dbxread.c (dbx_objfile_data_key): Change type.
3550 (dbx_symfile_init): Update.
3551 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
3552 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3553 (stabsect_build_psymtabs, _initialize_dbxread): Update.
3554
cb60f420
TT
35552019-07-10 Tom Tromey <tromey@adacore.com>
3556
3557 * jit.c (jit_program_space_key): Change type. Move lower.
3558 (get_jit_program_space_data): Update.
3559 (jit_program_space_data_cleanup): Remove.
3560 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
3561 Update.
3562 (struct jit_program_space_data): Add initializers.
3563
51df2ae3
TT
35642019-07-10 Tom Tromey <tromey@adacore.com>
3565
3566 * solib-darwin.c (struct darwin_info): Add initializers.
3567 (solib_darwin_pspace_data): Change type.
3568 (darwin_pspace_data_cleanup): Remove.
3569 (get_darwin_info, _initialize_darwin_solib): Update.
3570
18101a35
TT
35712019-07-10 Tom Tromey <tromey@adacore.com>
3572
3573 * remote-sim.c (struct sim_inferior_data): Add initializers,
3574 constructor, and destructor.
3575 (sim_inferior_data_key): Change type. Move lower.
3576 (check_for_duplicate_sim_descriptor): Update.
3577 (get_sim_inferior_data): Use new. Update.
3578 (~sim_inferior_data_cleanup): Rename from
3579 sim_inferior_data_cleanup. Simplify.
3580 (gdbsim_close_inferior, simulator_command)
3581 (sim_command_completer, _initialize_remote_sim): Update.
3582 (next_pid, INITIAL_PID): Move earlier.
3583
05b08ac1
TT
35842019-07-10 Tom Tromey <tromey@adacore.com>
3585
3586 * python/python-internal.h (create_thread_object): Return
3587 gdbpy_ref.
3588 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
3589 * python/py-inferior.c (struct threadlist_entry): Add
3590 constructor.
3591 <thread_obj>: Now a gdbpy_ref.
3592 (thread_to_thread_object): Update.
3593 (add_thread_object): Use new.
3594 (delete_thread_object): Use delete.
3595 (infpy_threads): Update.
3596 (py_free_inferior): Update. Construct "inf_obj" after acquiring
3597 GIL.
3598
32372d80
TT
35992019-07-10 Tom Tromey <tromey@adacore.com>
3600
3601 * valops.c (value_cast): Specialize error message for Ada.
3602
5c458ae8
SM
36032019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3604
3605 * breakpoint.c (breakpoint_1): Update doc and parameter names.
3606
4c462cb0
SM
36072019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3608
3609 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
3610 bpstat_should_step): Return bool, adjust comments.
3611 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
3612 bpstat_should_step): Likewise.
3613
89abbcc2
AH
36142019-07-10 Alan Hayward <alan.hayward@arm.com>
3615
3616 * features/Makefile: Use feature target descriptions for Arm.
3617 * features/arm/arm-core.c: Generate new file.
3618 * features/arm/arm-fpa.c: Likewise.
3619 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
3620 * features/arm/arm-m-profile.c: Likewise.
3621 * features/arm/arm-vfpv2.c: Likewise.
3622 * features/arm/arm-vfpv3.c: Likewise.
3623 * features/arm/xscale-iwmmxt.c: Likewise.
3624 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
3625
166a82be
AH
36262019-07-10 Alan Hayward <alan.hayward@arm.com>
3627
3628 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
3629 ptrace earlier.
3630
9fb4c7e9
AH
36312019-07-10 Alan Hayward <alan.hayward@arm.com>
3632
3633 * features/aarch64-pauth.c: Regenerate.
3634
e2d0f980
SM
36352019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
3636
3637 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
3638 bool.
3639 (bpstat_what): Use false instead of 0.
3640
a38118e5
PA
36412019-07-09 Pedro Alves <palves@redhat.com>
3642
3643 * break-catch-throw.c (is_exception_catchpoint): New.
3644 * breakpoint.c (print_one_breakpoint_location): New parameter
3645 'raw_loc'. Handle it. Use
3646 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
3647 looking at the breakpoint's type.
3648 (print_one_breakpoint): If handling "maint info breakpoints", also
3649 print locations of exception catchpoints.
3650 * breakpoint.h (is_exception_catchpoint): Declare.
3651
cb1e4e32
PA
36522019-07-09 Pedro Alves <palves@redhat.com>
3653
3654 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
3655 "addr" field.
3656 (allocate_location_exception_catchpoint): New.
3657 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
3658 (initialize_throw_catchpoint_ops): Install
3659 allocate_location_exception_catchpoint as allocate_location
3660 method.
3661 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
3662 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
3663 bp_loc_other.
3664 (breakpoint_address_is_meaningful): Delete.
3665 (bl_address_is_meaningful): New.
3666 (breakpoint_locations_match): Adjust comment.
3667 (bp_location_from_bp_type): New, factored out of...
3668 (bp_location::bp_location(breakpoint *)): ... this.
3669 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
3670 factored out of...
3671 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
3672 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
3673 breakpoint_address_is_meaningful.
3674 (bp_locations_compare): Adjust comment.
3675 (update_global_location_list): Use bl_address_is_meaningful
3676 instead of breakpoint_address_is_meaningful.
3677 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
3678 explicit.
3679 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
3680 * python/py-breakpoint.c (bppy_get_location): No longer check
3681 whether location is null.
3682
b58a68fe
PA
36832019-07-09 Pedro Alves <palves@redhat.com>
3684
3685 PR c++/15468
3686 * breakpoint.c (print_one_breakpoint_location): Remove
3687 single-location assert.
3688
268a13a5
TT
36892019-07-09 Tom Tromey <tom@tromey.com>
3690
3691 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
3692 * configure: Rebuild.
3693 * configure.ac: Change common to gdbsupport.
3694 * gdbsupport: Rename from common.
3695 * acinclude.m4: Change common to gdbsupport.
3696 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
3697 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
3698 gdbsupport.
3699 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
3700 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
3701 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
3702 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
3703 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
3704 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
3705 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
3706 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
3707 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
3708 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
3709 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
3710 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
3711 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
3712 coff-pe-read.c, command.h, compile/compile-c-support.c,
3713 compile/compile-c.h, compile/compile-cplus-symbols.c,
3714 compile/compile-cplus-types.c, compile/compile-cplus.h,
3715 compile/compile-loc2c.c, compile/compile.c, completer.c,
3716 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
3717 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
3718 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
3719 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
3720 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
3721 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
3722 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
3723 features/aarch64-core.c, features/aarch64-fpu.c,
3724 features/aarch64-pauth.c, features/aarch64-sve.c,
3725 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
3726 features/i386/32bit-core.c, features/i386/32bit-linux.c,
3727 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
3728 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
3729 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
3730 features/i386/64bit-core.c, features/i386/64bit-linux.c,
3731 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
3732 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
3733 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
3734 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
3735 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
3736 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
3737 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
3738 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
3739 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
3740 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
3741 go32-nat.c, guile/guile.c, guile/scm-ports.c,
3742 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
3743 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
3744 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
3745 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
3746 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
3747 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
3748 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
3749 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
3750 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
3751 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
3752 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
3753 minsyms.c, mips-linux-tdep.c, namespace.h,
3754 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
3755 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
3756 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
3757 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
3758 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
3759 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
3760 nat/linux-waitpid.c, nat/mips-linux-watch.c,
3761 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
3762 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
3763 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
3764 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
3765 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
3766 procfs.c, producer.c, progspace.h, psymtab.h,
3767 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
3768 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
3769 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
3770 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
3771 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
3772 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
3773 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
3774 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
3775 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
3776 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
3777 target-memory.c, target.c, target.h, target/waitstatus.c,
3778 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
3779 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
3780 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
3781 unittests/array-view-selftests.c,
3782 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
3783 unittests/common-utils-selftests.c,
3784 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
3785 unittests/format_pieces-selftests.c,
3786 unittests/function-view-selftests.c,
3787 unittests/lookup_name_info-selftests.c,
3788 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
3789 unittests/mkdir-recursive-selftests.c,
3790 unittests/observable-selftests.c,
3791 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
3792 unittests/parse-connection-spec-selftests.c,
3793 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
3794 unittests/scoped_fd-selftests.c,
3795 unittests/scoped_mmap-selftests.c,
3796 unittests/scoped_restore-selftests.c,
3797 unittests/string_view-selftests.c, unittests/style-selftests.c,
3798 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
3799 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
3800 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
3801 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
3802 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
3803 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
3804
5b0e2db4
AB
38052019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3806
3807 * linespec.c (decode_digits_list_mode): Set explicit_line to a
3808 bool value.
3809 (decode_digits_ordinary): Set explicit_line field in sal.
3810 * symtab.c (skip_prologue_sal): Don't skip prologue for a
3811 symtab_and_line that was set on an explicit line number in
3812 assembler code. Do always update the recorded symtab and line if
3813 we do skip the prologue.
3814
0ba852ab
AB
38152019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3816
3817 * breakpoint.c (set_breakpoint_location_function): Remove
3818 explicit_loc parameter.
3819 (momentary_breakpoint_from_master): Update call to
3820 set_breakpoint_location_function.
3821 (add_location_to_breakpoint): Likewise.
3822
b3a7d171
AB
38232019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3824
3825 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
3826 required features based on default bfd type when no specific bfd
3827 is present.
3828
1f6f6e21
PW
38292019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3830
3831 * NEWS: Mention that GDB printf and eval commands can now print
3832 C-style and Ada-style convenience var strings without
3833 calling the inferior.
3834 * printcmd.c (printf_c_string): Locally print GDB internal var
3835 instead of transiting via the inferior.
3836 (printf_wide_c_string): Likewise.
3837
38382019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
3839
3840 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
3841
0598af48
TT
38422019-07-04 Tom Tromey <tom@tromey.com>
3843
3844 PR tui/24724:
3845 * tui/tui-winsource.c (tui_clear_source_content): Update.
3846 (tui_source_window_base::set_is_exec_point_at): Fix comment.
3847 (tui_update_breakpoint_info): Update.
3848 (tui_set_exec_info_content): Update.
3849 * tui/tui-source.c (tui_set_source_content_nil): Update.
3850 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
3851 has_break.
3852 * tui/tui-data.h (enum tui_bp_flag): New.
3853 (tui_bp_flags): New enum flags type.
3854 (struct tui_source_element) <break_mode>: Change type. Rename
3855 from has_break.
3856 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
3857 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
3858 constants.
3859 * tui/tui-winsource.h: Fix comment.
3860
350fab54
AH
38612019-07-04 Alan Hayward <alan.hayward@arm.com>
3862
3863 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
3864 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
3865 (store_fpregs_to_thread)
3866 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3867 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
3868 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
3869 (IWMMXT_REGS_SIZE): Add define.
3870 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
3871 (fetch_vfp_regs, store_vfp_regs)
3872 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3873 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
3874
f0452268
AH
38752019-07-04 Alan Hayward <alan.hayward@arm.com>
3876
3877 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
3878 defines.
3879 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
3880 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
3881 (ARM_INT_REGISTER_SIZE): ...to this.
3882 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
3883 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
3884 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
3885 (arm_linux_collect_gregset, supply_nwfpe_register)
3886 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
3887 defines.
3888 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
3889 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
3890 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
3891 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
3892 (arm_return_in_memory, arm_store_return_value)
3893 (arm_get_longjmp_target, arm_register_g_packet_guesses)
3894 (arm_record_ld_st_multiple): Likewise.
3895 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
3896 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
3897
e935475c
AH
38982019-07-04 Alan Hayward <alan.hayward@arm.com>
3899
3900 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
3901 AARCH64_DISPLACED_MODIFIED_INSNS.
3902 * aarch64-tdep.c (struct aarch64_displaced_step_data)
3903 (aarch64_displaced_step_copy_insn): Likewise.
3904 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3905 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
3906 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
3907 ARM_DISPLACED_MODIFIED_INSNS.
3908 * arm-tdep.c (arm_gdbarch_init): Likewise.
3909 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3910 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
3911 (struct arm_displaced_step_closure): Use
3912 ARM_DISPLACED_MODIFIED_INSNS.
3913
df0bb381
AH
39142019-07-04 Alan Hayward <alan.hayward@arm.com>
3915
3916 * features/Makefile: Remove unused xml files.
3917 * features/aarch64.xml: Remove.
3918 * features/i386/amd64-avx-avx512-linux.xml: Remove.
3919 * features/i386/amd64-avx-avx512.xml: Remove.
3920 * features/i386/amd64-avx-linux.xml: Remove.
3921 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
3922 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
3923 * features/i386/amd64-avx-mpx-linux.xml: Remove.
3924 * features/i386/amd64-avx-mpx.xml: Remove.
3925 * features/i386/amd64-avx.xml: Remove.
3926 * features/i386/amd64-linux.xml: Remove.
3927 * features/i386/amd64-mpx-linux.xml: Remove.
3928 * features/i386/amd64-mpx.xml: Remove.
3929 * features/i386/amd64.xml: Remove.
3930 * features/i386/i386-avx-avx512-linux.xml: Remove.
3931 * features/i386/i386-avx-avx512.xml: Remove.
3932 * features/i386/i386-avx-linux.xml: Remove.
3933 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
3934 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
3935 * features/i386/i386-avx-mpx-linux.xml: Remove.
3936 * features/i386/i386-avx-mpx.xml: Remove.
3937 * features/i386/i386-avx.xml: Remove.
3938 * features/i386/i386-linux.xml: Remove.
3939 * features/i386/i386-mmx-linux.xml: Remove.
3940 * features/i386/i386-mmx.xml: Remove.
3941 * features/i386/i386-mpx-linux.xml: Remove.
3942 * features/i386/i386-mpx.xml: Remove.
3943 * features/i386/i386.xml: Remove.
3944 * features/i386/x32-avx-avx512-linux.xml: Remove.
3945 * features/i386/x32-avx-linux.xml: Remove.
3946 * features/i386/x32-linux.xml: Remove.
3947
edd6266a
AH
39482019-07-04 Alan Hayward <alan.hayward@arm.com>
3949
3950 * regformats/aarch64.dat: Remove.
3951 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
3952 * regformats/i386/amd64-avx-linux.dat: Remove.
3953 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
3954 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
3955 * regformats/i386/amd64-linux.dat: Remove.
3956 * regformats/i386/amd64-mpx-linux.dat: Remove.
3957 * regformats/i386/amd64.dat: Remove.
3958 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
3959 * regformats/i386/i386-avx-linux.dat: Remove.
3960 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
3961 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
3962 * regformats/i386/i386-linux.dat: Remove.
3963 * regformats/i386/i386-mmx-linux.dat: Remove.
3964 * regformats/i386/i386-mpx-linux.dat: Remove.
3965 * regformats/i386/i386.dat: Remove.
3966 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
3967 * regformats/i386/x32-avx-linux.dat: Remove.
3968 * regformats/i386/x32-linux.dat: Remove.
3969
2b40fda7
AH
39702019-07-04 Alan Hayward <alan.hayward@arm.com>
3971
3972 * aarch64-tdep.c: Remove xml self tests.
3973 * amd64-linux-tdep.c: Likewise.
3974 * amd64-tdep.c: Likewise.
3975 * i386-linux-tdep.c: Likewise.
3976 * i386-tdep.c: Likewise.
3977
5f4ba3e7
PA
39782019-07-03 Pedro Alves <palves@redhat.com>
3979
3980 PR cli/24732
3981 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
3982 (pipe_cmd_option_defs): New.
3983 (make_pipe_cmd_options_def_group): New.
3984 (pipe_command): Use gdb::option::process_options.
3985 (pipe_command_completer): New function.
3986 (_initialize_cli_cmds): Install completer for "pipe" command.
3987
3d9be6f5
PA
39882019-07-03 Pedro Alves <palves@redhat.com>
3989
3990 * cli/cli-option.c (union option_value) <string>: New field.
3991 (struct option_def_and_value): Add ctor, move ctor, dtor and
3992 use DISABLE_COPY_AND_ASSIGN.
3993 (option_def_and_value::clear_value): New.
3994 (parse_option, save_option_value_in_ctx, get_val_type_str)
3995 (add_setshow_cmds_for_options): Handle var_string.
3996 * cli-option.h (union option_def::var_address) <string>: New
3997 field.
3998 (struct string_option_def): New.
3999 * maint-test-options.c (struct test_options_opts): Add default
4000 ctor and use DISABLE_COPY_AND_ASSIGN.
4001 <string_opt>: New field.
4002 (test_options_opts::~test_options_opts): New.
4003 (test_options_opts::dump): Also dump "-string".
4004 (test_options_option_defs): Install "string.
4005
41fc454c
PA
40062019-07-03 Pedro Alves <palves@redhat.com>
4007
4008 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
4009 option_value with a null enumeration.
4010 (complete_options): Save the option values in the context.
4011 (save_option_value_in_ctx): New, factored out from ...
4012 (process_options): ... here.
4013 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
4014 of the function.
4015 * maint-test-options.c (test_options_opts::dump): New, factored
4016 out from ...
4017 (maintenance_test_options_command_mode): ... here.
4018 (maintenance_test_options_command_completion_result): Delete.
4019 (maintenance_test_options_command_completion_text): Update
4020 comment.
4021 (maintenance_show_test_options_completion_result): Change
4022 prototype. Just print
4023 maintenance_test_options_command_completion_text.
4024 (save_completion_result): New.
4025 (maintenance_test_options_completer_mode): Pass options context to
4026 complete_options, and then save a dump.
4027 (_initialize_maint_test_options): Use add_cmd to install "maint
4028 show test-options-completion-result".
4029
fdbc9870
PA
40302019-07-03 Pedro Alves <palves@redhat.com>
4031
4032 * NEWS (New commands): Mention "with" and "maint with".
4033 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
4034 (with_command, with_command_completer): New.
4035 (pipe_command): Adjust to new repeat_previous
4036 interface.
4037 (_initialize_cli_cmds): Install the "with" command and its "w"
4038 alias.
4039 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
4040 declarations.
4041 * cli/cli-setshow.c (parse_cli_var_uinteger)
4042 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
4043 argument strings for all var_types.
4044 (get_setshow_command_value_string): New, factored out from ...
4045 (do_show_command): ... this.
4046 * cli/cli-setshow.h: Include <string>.
4047 (get_setshow_command_value_string): Declare.
4048 * command.h (repeat_previous): Now returns const char *. Adjust
4049 comment.
4050 * maint.c: Include "cli/cli-cmds.h".
4051 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
4052 (_initialize_maint_cmds): Register the "maintenance with" command.
4053 * top.c (repeat_previous): Move bits from pipe_command here:
4054 Return the saved command line, if any; error out if there's no
4055 command to relaunch.
4056
c6ac8931
PA
40572019-07-03 Pedro Alves <palves@redhat.com>
4058
4059 * NEWS (New commands): Mention "maint set/show test-settings"
4060 instead of "maint test-settings".
4061 * maint-test-settings.c (maintenance_test_settings_list): Delete.
4062 (maintenance_test_settings_set_list): Rename to ...
4063 (maintenance_set_test_settings_list): ... this.
4064 (maintenance_test_settings_show_list): Rename to ...
4065 (maintenance_show_test_settings_list): ... this.
4066 (maintenance_test_settings_cmd): Delete.
4067 (maintenance_test_settings_set_cmd): ...
4068 (maintenance_set_test_settings_cmd): ... this.
4069 (maintenance_test_settings_show_cmd): ...
4070 (maintenance_show_test_settings_cmd): ... this.
4071 (maintenance_test_settings_show_value_cmd):
4072 (maintenance_show_test_settings_value_cmd): ... this.
4073 (_initialize_maint_test_settings): No longer install the "maint
4074 test-settings" prefix command. Rename "maint test-settings set"
4075 to "maint set test-settings", and "maint test-settings show" to
4076 "maint show test-settings". Adjust all subcommands.
4077
d1fcf2fd
PA
40782019-07-03 Pedro Alves <palves@redhat.com>
4079
4080 * maint-test-settings.c: Fix file's intro comment. Replace all
4081 references to "test-options" with references to "test-settings",
4082 in comments.
4083
970f9d09
PA
40842019-07-03 Pedro Alves <palves@redhat.com>
4085
4086 * maint-test-settings.c (maintenance_test_settings_xxx)
4087 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
4088 New.
4089 (maintenance_test_settings_enums): Use them.
4090 (maintenance_test_settings_enum): Default to
4091 maintenance_test_settings_xxx.
4092 (_initialize_maint_test_settings): Initialize
4093 MAINTENANCE_TEST_SETTINGS_FILENAME.
4094
f3869b1a
SM
40952019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4096
4097 * breakpoint.h (remove_breakpoints_inf): Change return type to
4098 void, move function documentation here.
4099 * breakpoint.c (remove_breakpoints_inf): Change return type to
4100 void, move function documentation to header.
4101
54d66006
PA
41022019-07-02 Pedro Alves <palves@redhat.com>
4103
4104 * NEWS (Completion improvements): Mention "info threads".
4105 * thread.c (struct info_threads_opts, info_threads_option_defs)
4106 (make_info_threads_options_def_group): New.
4107 (info_threads_command): Use gdb::option::process_options.
4108 (info_threads_command_completer): New.
4109 (_initialize_thread): Use gdb::option::build_help to build the
4110 help text for "info threads".
4111
854f6088
SM
41122019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4113
4114 * defs.h (generic_load): Move from here...
4115 * symfile.h (generic_load): ... to here. Rename name parameter
4116 to args.
4117 * symfile.c (generic_load): Add comment.
4118
54ee4252
TT
41192019-07-01 Tom Tromey <tromey@adacore.com>
4120
4121 * dwarf2read.c
4122 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
4123 declaration of without_params. Fix formatting.
4124
65392b3e
TT
41252019-07-01 Tom Tromey <tromey@adacore.com>
4126
4127 * ada-exp.y (find_primitive_type): Update.
4128 * ada-lang.h (ada_lookup_symbol): Update.
4129 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
4130 parameter.
4131 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
4132
7d7571f0
SDJ
41332019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4134
4135 PR breakpoints/24541
4136 * gdbarch.c: Regenerate.
4137 * gdbarch.h: Regenerate.
4138 * gdbarch.sh: Add 'stap_adjust_register'.
4139 * i386-tdep.c: Include '<unordered_set>'.
4140 (i386_stap_adjust_register): New function.
4141 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
4142 * stap-probe.c (stap_parse_register_operand): Call
4143 'gdbarch_stap_adjust_register'.
4144
5af5392a
SDJ
41452019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4146
4147 PR python/24742
4148 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
4149 * python/python.c (do_start_initialization): Use 'xmalloc'
4150 instead of 'PyMem_Malloc'.
4151
10d06d82
TT
41522019-06-28 Tom Tromey <tromey@adacore.com>
4153
4154 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
4155 for Ada.
4156
1b7f24cd
TT
41572019-06-27 Tom Tromey <tromey@adacore.com>
4158
4159 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
4160 objfile_key.
4161 (arm_find_mapping_symbol, arm_record_special_symbol)
4162 (_initialize_arm_tdep): Update.
4163 (arm_objfile_data_free): Remove.
4164
3d507ff2
TT
41652019-06-27 Tom Tromey <tromey@adacore.com>
4166
4167 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
4168 to cp_print_static_field.
4169
762c164d
TT
41702019-06-26 Tom Tromey <tromey@adacore.com>
4171
4172 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
4173 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
4174 declare.
4175
aa2f9bcf
AH
41762019-06-26 Alan Hayward <alan.hayward@arm.com>
4177
4178 * features/aarch64-core.c (create_feature_aarch64_core):
4179 Regenerate.
4180 * features/aarch64-core.xml: Add cpsr flags.
4181
3426ae57
AH
41822019-06-26 Alan Hayward <alan.hayward@arm.com>
4183
4184 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
4185 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
4186
4838e44c
SM
41872019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4188
4189 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
4190 field.
4191 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
4192 use.
4193 (arm_record_special_symbol): Don't insert new symbol in sorted
4194 position, push it at the end.
4195
54cc7474
SM
41962019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4197
4198 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
4199 (arm_mapping_symbol_s): Remove.
4200 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
4201 (arm_mapping_symbol_vec): New typedef.
4202 (struct arm_per_objfile): Add constructor.
4203 <section_maps>: Change type to
4204 std::unique_ptr<arm_mapping_symbol_vec[]>.
4205 (arm_compare_mapping_symbols): Remove.
4206 (arm_find_mapping_symbol): Adjust to section_maps type change.
4207 (arm_objfile_data_free): Call delete on arm_per_objfile.
4208 (arm_record_special_symbol): Adjust to section_maps type change.
4209 Allocate arm_per_objfile with new.
4210
b65b566c
PW
42112019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4212
4213 * cli/cli-cmds.c (alias_command): Compare the alias prefix
4214 with the command prefix.
4215
c2fc64f5
TT
42162019-06-25 Tom Tromey <tom@tromey.com>
4217
4218 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
4219 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
4220
fb54fa76
TT
42212019-06-25 Tom Tromey <tom@tromey.com>
4222
4223 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
4224 type.
4225 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
4226 protected.
4227
f7952c57
TT
42282019-06-25 Tom Tromey <tom@tromey.com>
4229
4230 * tui/tui-winsource.c
4231 (tui_source_window_base::set_is_exec_point_at): Add check against
4232 LOA_ADDRESS.
4233
17568d78
TT
42342019-06-25 Tom Tromey <tom@tromey.com>
4235
4236 * tui/tui-source.c (tui_set_source_content): Don't check before
4237 xfree.
4238 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
4239
53e7cdba
TT
42402019-06-25 Tom Tromey <tom@tromey.com>
4241
4242 * tui/tui-winsource.h (tui_update_source_window_as_is)
4243 (tui_alloc_source_buffer, tui_line_is_displayed)
4244 (tui_addr_is_displayed): Change type of win_info.
4245 * tui/tui-winsource.c (tui_update_source_window_as_is)
4246 (tui_clear_source_content, tui_show_source_line)
4247 (tui_show_source_content, tui_source_window_base::refill)
4248 (tui_source_window_base::set_is_exec_point_at)
4249 (tui_source_window_base::set_is_exec_point_at)
4250 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
4251 (tui_alloc_source_buffer, tui_line_is_displayed)
4252 (tui_addr_is_displayed): Change type of win_info. Update.
4253 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4254 (tui_source_window_base::do_make_visible_with_new_height):
4255 Update.
4256 * tui/tui-source.c (tui_set_source_content)
4257 (tui_set_source_content_nil)
4258 (tui_source_window::do_scroll_vertical): Update.
4259 * tui/tui-layout.c (show_layout): Update.
4260 * tui/tui-disasm.c (tui_set_disassem_content)
4261 (tui_disasm_window::do_scroll_vertical): Update.
4262 * tui/tui-data.h (tui_win_content): Remove.
4263 (struct tui_gen_win_info) <content, content_size>: Remove.
4264 (struct tui_source_element): Add initializers and destructor.
4265 (union tui_which_element, struct tui_win_element): Remove.
4266 (struct tui_source_window_base) <content>: New field.
4267 (struct tui_data_window): Remove destructor.
4268 (tui_alloc_content, tui_free_win_content)
4269 (tui_free_all_source_wins_content): Don't declare.
4270 * tui/tui-data.c (tui_initialize_static_data): Update.
4271 (init_content_element, tui_alloc_content): Remove.
4272 (~tui_gen_win_info): Update.
4273 (~tui_data_window, tui_free_all_source_wins_content)
4274 (tui_free_win_content, free_content, free_content_elements):
4275 Remove.
4276
7908abbf
TT
42772019-06-25 Tom Tromey <tom@tromey.com>
4278
4279 * tui/tui-winsource.h (tui_clear_source_content)
4280 (tui_erase_source_content, tui_show_source_content): Change type
4281 of win_info.
4282 * tui/tui-winsource.c (tui_clear_source_content)
4283 (tui_erase_source_content, tui_show_source_content): Change type
4284 of win_info.
4285 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4286 * tui/tui-source.h (tui_set_source_content_nil): Change type of
4287 win_info.
4288 * tui/tui-source.c (tui_set_source_content_nil): Change type of
4289 win_info.
4290 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
4291
02c28df0
TT
42922019-06-25 Tom Tromey <tom@tromey.com>
4293
4294 * tui/tui-winsource.c (tui_clear_source_content)
4295 (tui_source_window_base::set_is_exec_point_at): Update.
4296 * tui/tui-source.c (tui_set_source_content_nil): Update.
4297 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
4298 a bool.
4299 * tui/tui-data.c (init_content_element): Update.
4300
6658b1bf
TT
43012019-06-25 Tom Tromey <tom@tromey.com>
4302
4303 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
4304 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
4305 * tui/tui-layout.c (init_and_make_win): Update.
4306 * tui/tui.h (enum tui_win_type): Update.
4307 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
4308 tui_win_is_auxillary.
4309 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
4310 tui_win_is_auxillary.
4311
21e1c91e
TT
43122019-06-25 Tom Tromey <tom@tromey.com>
4313
4314 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
4315 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
4316 (tui_delete_data_content_windows, tui_display_all_data)
4317 (tui_data_window::do_scroll_vertical, tui_display_data_from):
4318 Update.
4319 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
4320 * tui/tui-regs.c (tui_last_regs_line_no)
4321 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4322 (tui_show_registers): Update.
4323 (tui_show_register_group): Return void. Update.
4324 (tui_display_registers_from, tui_display_reg_element_at_line)
4325 (tui_display_registers_from_line, tui_check_register_values):
4326 Update.
4327 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
4328 member.
4329 (struct tui_data_window) <regs_content>: Now a std::vector.
4330 <regs_content_count>: Remove.
4331 (tui_add_content_elements, tui_free_data_content): Don't declare.
4332 * tui/tui-data.c (tui_data_window::clear_detail): Update.
4333 (init_content_element): Remove DATA_WIN case. Add assert.
4334 (tui_add_content_elements): Remove.
4335 (tui_data_window): Update.
4336 (tui_free_data_content): Remove.
4337 (free_content_elements): Remove DATA_WIN case.
4338
115ac53b
TT
43392019-06-25 Tom Tromey <tom@tromey.com>
4340
4341 * tui/tui-data.c (tui_data_item_window): Update.
4342 * tui/tui-windata.h (tui_check_data_values): Don't declare.
4343 * tui/tui-windata.c (tui_display_all_data)
4344 (tui_display_data_from_line): Update.
4345 (tui_check_data_values): Remove.
4346 * tui/tui-regs.c (tui_show_register_group)
4347 (tui_display_reg_element_at_line): Update.
4348 * tui/tui-hooks.c (tui_register_changed)
4349 (tui_refresh_frame_and_register_information): Call
4350 tui_check_register_values.
4351 * tui/tui-data.h (struct tui_data_window) <data_content,
4352 data_content_count, data_type>: Remove.
4353 (enum tui_data_type): Remove.
4354
4355 * tui/tui-data.c (tui_data_window::clear_detail)
4356 (~tui_data_window): Update.
4357
eaf9738b
TT
43582019-06-25 Tom Tromey <tom@tromey.com>
4359
4360 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
4361 declare.
4362 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
4363 Rename from tui_first_data_item_displayed. Update.
4364 (tui_data_window::refresh_all)
4365 (tui_data_window::do_scroll_vertical): Update.
4366 * tui/tui-data.h (struct tui_data_window)
4367 <first_data_item_displayed>: Declare new method.
4368
31ca4723
TT
43692019-06-25 Tom Tromey <tom@tromey.com>
4370
4371 * tui/tui-data.h (tui_init_generic_part): Don't declare.
4372 * tui/tui-data.c (tui_init_generic_part): Remove, moving
4373 contents...
4374 (tui_initialize_static_data): ...here.
4375
41bcff7f
TT
43762019-06-25 Tom Tromey <tom@tromey.com>
4377
4378 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4379 (tui_display_registers_from, tui_check_register_values): Update.
4380 (tui_display_register): Remove win_info parameter; update.
4381 (tui_get_register): Change type of parameters.
4382 * tui/tui-data.h (struct tui_data_element): Remove.
4383 (union tui_which_element) <data>: Remove.
4384 <data_window>: Change type.
4385 (struct tui_data_item_window): New.
4386 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
4387 case. Add assert.
4388 (~tui_data_item_window): New destructor.
4389 (free_content_elements): Remove DATA_ITEM_WIN case.
4390
d2802c33
TT
43912019-06-25 Tom Tromey <tom@tromey.com>
4392
4393 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
4394 Remove.
4395
dd835f8b
TT
43962019-06-25 Tom Tromey <tom@tromey.com>
4397
4398 * tui/tui-data.h (struct tui_command_element): Remove.
4399 (union tui_which_element) <command>: Remove.
4400 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
4401 assert.
4402 (free_content_elements): Remove CMD_WIN case.
4403
bd7db367
TT
44042019-06-25 Tom Tromey <tom@tromey.com>
4405
4406 * tui/tui-layout.c (tui_set_layout): Update.
4407 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
4408 * tui/tui-data.c (layout_def): Update.
4409
3add462f
TT
44102019-06-25 Tom Tromey <tom@tromey.com>
4411
4412 * tui/tui-wingeneral.c (tui_refresh_all): Update.
4413 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4414 (tui_source_window_base::set_new_height): Update.
4415 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
4416 Update.
4417 (tui_set_locator_fullname, tui_set_locator_info)
4418 (tui_show_frame_info): Update.
4419 * tui/tui-source.c (tui_set_source_content)
4420 (tui_source_is_displayed): Update.
4421 * tui/tui-layout.c (show_source_disasm_command, show_data)
4422 (show_source_or_disasm_and_command): Update.
4423 * tui/tui-disasm.c (tui_set_disassem_content)
4424 (tui_get_begin_asm_address): Update.
4425 * tui/tui-data.h (struct tui_locator_element): Remove.
4426 (union tui_which_element) <locator>: Remove.
4427 (struct tui_locator_window): New.
4428 (tui_locator_win_info_ptr): Change return type.
4429 * tui/tui-data.c (_locator): Change type.
4430 (tui_locator_win_info_ptr): Change return type.
4431 (init_content_element): Remove LOCATOR_WIN case. Add assert.
4432 (tui_alloc_content): Add assert.
4433
489e9d8b
TT
44342019-06-25 Tom Tromey <tom@tromey.com>
4435
4436 * tui/tui-winsource.c
4437 (tui_exec_info_window::maybe_allocate_content): New method.
4438 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
4439 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
4440 (make_source_or_disasm_window): Add cast.
4441 * tui/tui-data.h (union tui_which_element) <simple_string>:
4442 Remove.
4443 (struct tui_source_info): New.
4444 (struct tui_source_window_base) <execution_info>: Change type.
4445 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
4446 case, and add assert.
4447 (tui_alloc_content): Add assert.
4448
c3fabb7d
TT
44492019-06-25 Tom Tromey <tom@tromey.com>
4450
4451 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
4452 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
4453 * tui/tui-data.c (tui_alloc_win_info): Remove.
4454
bbc228ee
TT
44552019-06-25 Tom Tromey <tom@tromey.com>
4456
4457 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
4458 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
4459 can_highlight.
4460
5fcee43a
TT
44612019-06-25 Tom Tromey <tom@tromey.com>
4462
4463 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
4464 make_visible_with_new_height method.
4465 (tui_win_info::make_visible_with_new_height): New method.
4466 (tui_source_window_base::do_make_visible_with_new_height)
4467 (tui_data_window::do_make_visible_with_new_height)
4468 (tui_cmd_window::do_make_visible_with_new_height): New methods.
4469 (make_visible_with_new_height): Remove.
4470 (tui_resize_all, tui_adjust_win_heights): Use
4471 make_visible_with_new_height method.
4472 * tui/tui-data.h (struct tui_win_info)
4473 <do_make_visible_with_new_height, make_visible_with_new_height>:
4474 New methods.
4475 (struct tui_source_window_base, struct tui_data_window)
4476 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
4477 methods.
4478
d83f1fe6
TT
44792019-06-25 Tom Tromey <tom@tromey.com>
4480
4481 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
4482 method.
4483 (update_tab_width): Call update_tab_width method.
4484 * tui/tui-data.h (struct tui_win_info)
4485 (struct tui_source_window_base) <update_tab_width>: New methods.
4486
17374de4
TT
44872019-06-25 Tom Tromey <tom@tromey.com>
4488
4489 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
4490 parameter.
4491 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
4492 parameter.
4493 (tui_gen_win_info::make_visible): Update.
4494 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
4495 parameter.
4496 * tui/tui-data.h (enum tui_box): New enum.
4497 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
4498
f936bca2
TT
44992019-06-25 Tom Tromey <tom@tromey.com>
4500
4501 * tui/tui-layout.c (make_source_or_disasm_window): Always use
4502 init_and_make_win for EXEC_INFO_WIN.
4503 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
4504 longer inline.
4505 (struct tui_win_info) <~tui_win_info>: Inline.
4506 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4507 Don't declare.
4508 * tui/tui-data.c (source_win, disasm_win): Remove globals.
4509 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4510 Remove.
4511 (tui_initialize_static_data): Update.
4512 (~tui_gen_win_info): Handle more cleanup here.
4513 (~tui_source_window_base): Delete "execution_info".
4514 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
4515
d6ba6a11
TT
45162019-06-25 Tom Tromey <tom@tromey.com>
4517
4518 * tui/tui-layout.c (make_command_window): Don't set
4519 can_highlight.
4520 (show_source_disasm_command): Call the reset method.
4521 (show_data): Don't set can_highlight. Call the reset method.
4522 (tui_gen_win_info::reset): Rename from init_gen_win_info
4523 (init_and_make_win): Simplify. Return tui_gen_win_info.
4524 (show_source_or_disasm_and_command): Call the reset method.
4525 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
4526 (struct tui_cmd_window): Set can_highlight.
4527
48a3bd16
TT
45282019-06-25 Tom Tromey <tom@tromey.com>
4529
4530 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
4531 from make_visible.
4532 (tui_make_visible, tui_make_invisible): Rewrite.
4533 (tui_win_info::make_visible): Remove.
4534 (tui_source_window_base::make_visible): Update.
4535 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
4536 method. Moved from...
4537 (struct tui_win_info) <make_visible>: ...here.
4538
c3bd716f
TT
45392019-06-25 Tom Tromey <tom@tromey.com>
4540
4541 * tui/tui-winsource.c
4542 (tui_source_window_base::do_scroll_horizontal): Remove direction
4543 parameter.
4544 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
4545 direction parameter.
4546 * tui/tui-win.c (tui_win_info::forward_scroll)
4547 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4548 (tui_win_info::right_scroll): Update.
4549 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
4550 direction parameter.
4551 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
4552 direction parameter.
4553 * tui/tui-data.h (enum tui_scroll_direction): Remove.
4554 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
4555 Remove direction parameter.
4556 (struct tui_source_window_base, struct tui_source_window)
4557 (struct tui_disasm_window, struct tui_data_window)
4558 (struct tui_cmd_window): Update.
4559
21c32dca
TT
45602019-06-25 Tom Tromey <tom@tromey.com>
4561
4562 * tui/tui-winsource.h (tui_set_exec_info_content)
4563 (tui_show_exec_info_content, tui_erase_exec_info_content)
4564 (tui_clear_exec_info_content, tui_update_exec_info): Change
4565 argument to tui_source_window_base.
4566 * tui/tui-winsource.c (tui_set_exec_info_content)
4567 (tui_show_exec_info_content, tui_erase_exec_info_content)
4568 (tui_clear_exec_info_content, tui_update_exec_info): Change
4569 argument to tui_source_window_base.
4570
73fbdc65
TT
45712019-06-25 Tom Tromey <tom@tromey.com>
4572
4573 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
4574 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
4575
33325343
TT
45762019-06-25 Tom Tromey <tom@tromey.com>
4577
4578 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
4579 check.
4580
29d2c474
TT
45812019-06-25 Tom Tromey <tom@tromey.com>
4582
4583 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
4584 type to void.
4585 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
4586 type to void.
4587 * tui/tui-source.c (tui_set_source_content): Update.
4588 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4589
152f3f4b
TT
45902019-06-25 Tom Tromey <tom@tromey.com>
4591
4592 * tui/tui-win.c (window_name_completer, tui_set_focus)
4593 (tui_all_windows_info): Use name method.
4594 * tui/tui-data.h (struct tui_gen_win_info)
4595 (struct tui_source_window, struct tui_disasm_window)
4596 (struct tui_data_window, struct tui_cmd_window) <name>: New
4597 method.
4598 (tui_win_name): Don't declare.
4599 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
4600 (tui_win_name): Remove.
4601
be4da588
TT
46022019-06-25 Tom Tromey <tom@tromey.com>
4603
4604 * tui/tui-winsource.h (tui_update_source_window)
4605 (tui_update_source_window_as_is): Change parameter type.
4606 * tui/tui-winsource.c (tui_update_source_window): Change win_info
4607 to be a tui_source_window_base.
4608 (tui_update_source_window_as_is): Likewise.
4609 * tui/tui-win.c (make_visible_with_new_height): Update.
4610
5b81daba
TT
46112019-06-25 Tom Tromey <tom@tromey.com>
4612
4613 * tui/tui-winsource.c (tui_erase_source_content)
4614 (tui_show_source_content, tui_show_exec_info_content)
4615 (tui_erase_exec_info_content): Use refresh_window method.
4616 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
4617 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
4618 from tui_refresh_win.
4619 (tui_data_window::refresh_window): New method.
4620 (tui_win_info::refresh, tui_source_window_base::refresh)
4621 (tui_refresh_all): Use refresh_window method.
4622 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
4623 method.
4624 * tui/tui-regs.c (tui_display_register): Call refresh_window
4625 method.
4626 * tui/tui-layout.c (show_source_disasm_command)
4627 (show_source_or_disasm_and_command): Call refresh_window method.
4628 * tui/tui-data.h (struct tui_gen_win_info)
4629 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
4630 New method.
4631
cb2ce893
TT
46322019-06-25 Tom Tromey <tom@tromey.com>
4633
4634 * tui/tui.c (tui_rl_other_window, tui_enable)
4635 (tui_is_window_visible, tui_get_command_dimension): Update.
4636 * tui/tui-winsource.c (tui_update_source_window_as_is)
4637 (tui_clear_source_content, tui_erase_source_content)
4638 (tui_show_source_line, tui_source_window_base::refill)
4639 (tui_source_window_base::do_scroll_horizontal)
4640 (tui_source_window_base::set_is_exec_point_at)
4641 (tui_update_breakpoint_info, tui_set_exec_info_content)
4642 (tui_alloc_source_buffer, tui_line_is_displayed)
4643 (tui_addr_is_displayed): Update.
4644 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4645 (tui_check_and_display_highlight_if_needed)
4646 (tui_win_info::make_visible, tui_win_info::refresh)
4647 (tui_refresh_all): Update.
4648 * tui/tui-windata.c (tui_first_data_item_displayed)
4649 (tui_delete_data_content_windows, tui_erase_data_content)
4650 (tui_display_all_data, tui_data_window::refresh_all)
4651 (tui_check_data_values): Update.
4652 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
4653 (tui_set_win_focus_to, tui_win_info::forward_scroll)
4654 (tui_win_info::backward_scroll, tui_refresh_all_win)
4655 (tui_resize_all, tui_set_focus, tui_all_windows_info)
4656 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
4657 (tui_source_window_base::set_new_height)
4658 (tui_data_window::set_new_height)
4659 (make_invisible_and_set_new_height)
4660 (make_visible_with_new_height, new_height_ok)
4661 (parse_scrolling_args): Update.
4662 * tui/tui-stack.c (tui_show_frame_info): Update.
4663 * tui/tui-source.c (tui_set_source_content)
4664 (tui_set_source_content_nil, tui_source_is_displayed)
4665 (tui_source_window::do_scroll_vertical): Update.
4666 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4667 (tui_display_registers_from, tui_display_reg_element_at_line)
4668 (tui_check_register_values, tui_reg_command): Update.
4669 * tui/tui-layout.c (tui_default_win_height)
4670 (show_source_disasm_command, show_data, init_and_make_win)
4671 (show_source_or_disasm_and_command): Update.
4672 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
4673 (tui_redisplay_readline, tui_mld_flush)
4674 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
4675 (tui_getc): Update.
4676 * tui/tui-disasm.c (tui_set_disassem_content)
4677 (tui_disasm_window::do_scroll_vertical): Update.
4678 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
4679 Now virtual.
4680 (struct tui_win_info): Derive from tui_gen_win_info.
4681 <~tui_win_info>: Mark as override.
4682 <generic>: Remove member.
4683 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
4684 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
4685 (~tui_data_window, ~tui_win_info)
4686 (tui_free_all_source_wins_content): Update.
4687 * tui/tui-command.c (tui_refresh_cmd_win): Update.
4688
ab313b35
TT
46892019-06-25 Tom Tromey <tom@tromey.com>
4690
4691 * tui/tui-layout.c (init_and_make_win): Use new.
4692 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
4693 destructor, initializers.
4694 (tui_alloc_generic_win_info): Don't declare.
4695 * tui/tui-data.c (_locator): Add argument to constructor.
4696 (source_win, disasm_win): New globals.
4697 (exec_info): Remove.
4698 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4699 Update.
4700 (tui_alloc_generic_win_info): Remove.
4701 (init_content_element): Use new.
4702 (tui_win_info::tui_win_info): Update.
4703 (free_content_elements) <case DATA_WIN>: Use delete.
4704
dc2c33e4
TT
47052019-06-25 Tom Tromey <tom@tromey.com>
4706
4707 * tui/tui-wingeneral.c (tui_refresh_win): Update.
4708 * tui/tui-windata.c (tui_first_data_item_displayed)
4709 (tui_delete_data_content_windows): Update.
4710 * tui/tui-win.c (tui_data_window::set_new_height): Update.
4711 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4712 (tui_display_registers_from, tui_check_register_values): Update.
4713 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
4714 pointer.
4715 * tui/tui-data.c (init_content_element): Update. Allocate the new
4716 window.
4717 (tui_free_data_content): Update.
4718 (free_content_elements) <case DATA_WIN>: Free the window.
4719
214a5cbe
TT
47202019-06-25 Tom Tromey <tom@tromey.com>
4721
4722 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
4723 Update.
4724 * tui/tui-layout.c (make_command_window)
4725 (show_source_disasm_command, show_data, init_and_make_win)
4726 (show_source_or_disasm_and_command): Update.
4727 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
4728 method.
4729 <can_highight, is_highlighted>: Now bool.
4730 (tui_set_win_highlight): Don't declare.
4731 * tui/tui-data.c (tui_set_win_highlight): Remove.
4732
8e2daf15
TT
47332019-06-25 Tom Tromey <tom@tromey.com>
4734
4735 * tui/tui-wingeneral.c (make_visible): Remove check of window
4736 type.
4737
8903bd8a
TT
47382019-06-25 Tom Tromey <tom@tromey.com>
4739
4740 * tui/tui-win.c (tui_win_info::max_height)
4741 (tui_cmd_window::max_height): New methods.
4742 (new_height_ok): Call max_height.
4743 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
4744 <max_height>: New method.
4745
3f02ce1e
TT
47462019-06-25 Tom Tromey <tom@tromey.com>
4747
4748 * tui/tui-win.c (tui_source_window_base::set_new_height)
4749 (tui_data_window::set_new_height): New methods.
4750 (make_invisible_and_set_new_height): Call set_new_height method.
4751 * tui/tui-data.h (struct tui_win_info)
4752 (struct tui_source_window_base, struct tui_data_window)
4753 <set_new_height>: New method.
4754
1825f487
TT
47552019-06-25 Tom Tromey <tom@tromey.com>
4756
4757 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
4758 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
4759 tui_refresh_data_win.
4760 * tui/tui-win.c (tui_source_window_base::refresh_all): New
4761 method.
4762 (tui_refresh_all_win): Call the refresh_all method.
4763 (tui_set_focus): Likewise.
4764 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
4765 (struct tui_source_window_base, struct tui_data_window) <refresh>:
4766 Likewise.
4767
ad54d15b
TT
47682019-06-25 Tom Tromey <tom@tromey.com>
4769
4770 * tui/tui-winsource.h (tui_refill_source_window)
4771 (tui_set_is_exec_point_at): Don't declare.
4772 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4773 (tui_source_window_base::refill): Rename from
4774 tui_refill_source_window.
4775 (tui_source_window_base::do_scroll_horizontal): Update.
4776 (tui_source_window_base::set_is_exec_point_at): Rename from
4777 tui_set_is_exec_point_at.
4778 (tui_update_all_breakpoint_info): Update.
4779 * tui/tui-stack.c (tui_show_frame_info): Update.
4780 * tui/tui-layout.c (show_data): Add cast.
4781 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
4782 * tui/tui-data.h (struct tui_source_window_base) <refill,
4783 set_is_exec_point_at>: New methods.
4784 (tui_source_windows, tui_add_to_source_windows): Update types.
4785 (tui_add_to_source_windows): Remove redundant declaration.
4786 * tui/tui-data.c (source_windows): Store tui_source_window_base.
4787 (tui_source_windows): Change return type.
4788 (tui_clear_source_windows_detail): Update.
4789 (tui_add_to_source_windows): Change type of parameter.
4790 (tui_free_all_source_wins_content): Update.
4791
2042b506
TT
47922019-06-25 Tom Tromey <tom@tromey.com>
4793
4794 * tui/tui-wingeneral.c (tui_win_info::refresh)
4795 (tui_source_window_base::refresh): New methods.
4796 (tui_refresh_all): Call the refresh method.
4797 * tui/tui-data.h (struct tui_win_info)
4798 (struct tui_source_window_base) <refresh>: New method.
4799
56122977
TT
48002019-06-25 Tom Tromey <tom@tromey.com>
4801
4802 * tui/tui.h (tui_is_window_visible): Return bool.
4803 * tui/tui.c (tui_is_window_visible): Return bool.
4804 * tui/tui-wingeneral.c (tui_make_window, make_visible)
4805 (tui_make_visible, tui_make_invisible)
4806 (tui_win_info::make_visible)
4807 (tui_source_window_base::make_visible, make_all_visible)
4808 (tui_make_all_visible, tui_make_all_invisible): Update.
4809 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
4810 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
4811 bool.
4812 (struct tui_win_info, struct tui_source_window_base)
4813 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
4814 * tui/tui-data.c (tui_init_generic_part): Update.
4815
cda37efb
TT
48162019-06-25 Tom Tromey <tom@tromey.com>
4817
4818 * tui/tui-wingeneral.c (tui_win_info::make_visible)
4819 (tui_source_window_base::make_visible): New methods.
4820 (make_all_visible): Make method call.
4821 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
4822 (struct tui_source_window_base, struct tui_cmd_window): Override
4823 make_visible.
4824 (tui_win_is_source_type): Don't declare.
4825 * tui/tui-data.c (tui_win_is_source_type): Remove.
4826
6a0ee02c
TT
48272019-06-25 Tom Tromey <tom@tromey.com>
4828
4829 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
4830 NULL check.
4831
63901aec
TT
48322019-06-25 Tom Tromey <tom@tromey.com>
4833
4834 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
4835 Inline constructor. Add initializers for members.
4836 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
4837 constructors; now inline in class.
4838
ceb13a13
TT
48392019-06-25 Tom Tromey <tom@tromey.com>
4840
4841 * tui/tui-regs.c (tui_show_registers): Update.
4842 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
4843 bool.
4844 * tui/tui-data.c (tui_data_window::clear_detail)
4845 (tui_data_window): Update.
4846
238eb706
TT
48472019-06-25 Tom Tromey <tom@tromey.com>
4848
4849 * tui/tui-windata.c (tui_display_all_data)
4850 (tui_display_data_from_line, tui_display_data_from)
4851 (tui_check_data_values, tui_data_window::do_scroll_vertical):
4852 Update.
4853 * tui/tui-regs.c (tui_last_regs_line_no)
4854 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4855 (tui_show_registers, tui_show_register_group)
4856 (tui_display_registers_from, tui_display_reg_element_at_line)
4857 (tui_display_registers_from_line, tui_check_register_values)
4858 (tui_reg_next, tui_reg_prev): Update.
4859 * tui/tui-layout.c (tui_set_layout, show_data): Update.
4860 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
4861 tui_data_window.
4862 (struct tui_win_info) <detail>: Remove. Add new fields from
4863 tui_data_info.
4864 (TUI_DATA_WIN): Add cast.
4865 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
4866 (~tui_data_window): Simplify.
4867
81491aa0
TT
48682019-06-25 Tom Tromey <tom@tromey.com>
4869
4870 * tui/tui-layout.c (show_source_disasm_command)
4871 (show_source_or_disasm_and_command): Update.
4872 * tui/tui-io.c (update_cmdwin_start_line)
4873 (tui_redisplay_readline): Update.
4874 * tui/tui-data.h (struct tui_command_info): Remove.
4875 (struct tui_win_info) <detail>: Remove command_info member.
4876 (struct tui_data_window) <start_line>: New member, from
4877 tui_command_info.
4878 (TUI_CMD_WIN): Add casts.
4879
e6e41501
TT
48802019-06-25 Tom Tromey <tom@tromey.com>
4881
4882 * tui/tui-winsource.c (tui_update_source_window)
4883 (tui_refill_source_window)
4884 (tui_source_window_base::do_scroll_horizontal)
4885 (tui_update_breakpoint_info, tui_set_exec_info_content)
4886 (tui_show_exec_info_content, tui_erase_exec_info_content)
4887 (tui_clear_exec_info_content): Update.
4888 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
4889 Update.
4890 * tui/tui-win.c (make_invisible_and_set_new_height)
4891 (make_visible_with_new_height): Update.
4892 * tui/tui-source.c (tui_set_source_content)
4893 (tui_show_symtab_source): Update.
4894 * tui/tui-layout.c (extract_display_start_addr)
4895 (show_source_disasm_command, show_data)
4896 (make_source_or_disasm_window)
4897 (show_source_or_disasm_and_command): Update.
4898 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
4899 (tui_disasm_window::do_scroll_vertical): Remove shadowing
4900 "gdbarch".
4901 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
4902 to tui_source_window_base.
4903 (struct tui_win_info) <detail>: Remove source_info member.
4904 (struct tui_source_window_base) <has_locator>: Inline.
4905 Move contents from tui_source_info; rename has_locator member to
4906 m_has_locator.
4907 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
4908 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
4909 header file.
4910 (tui_source_window_base::clear_detail, ~tui_source_window_base):
4911 Simplify.
4912 (tui_free_all_source_wins_content): Cast to
4913 tui_source_window_base.
4914
44f0e208
TT
49152019-06-25 Tom Tromey <tom@tromey.com>
4916
4917 * tui/tui-win.c (make_invisible_and_set_new_height)
4918 (make_visible_with_new_height): Call has_locator method.
4919 * tui/tui-layout.c (show_source_disasm_command, show_data)
4920 (show_source_or_disasm_and_command): Update for bool change.
4921 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
4922 (tui_win_info) <has_locator>: New method.
4923 (struct tui_source_window_base) <has_locator>: New method.
4924 (tui_win_has_locator): Don't declare.
4925 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
4926 from tui_win_has_locator.
4927 (tui_source_window_base): Use false, not FALSE.
4928
7778b912
TT
49292019-06-25 Tom Tromey <tom@tromey.com>
4930
4931 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
4932 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
4933 clear_detail method directly.
4934 (tui_clear_win_detail): Remove.
4935
f83d391c
TT
49362019-06-25 Tom Tromey <tom@tromey.com>
4937
4938 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
4939 "this", not TUI_DISASM_WIN.
4940
13446e05
TT
49412019-06-25 Tom Tromey <tom@tromey.com>
4942
4943 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
4944 declare.
4945 * tui/tui-winsource.c
4946 (tui_source_window_base::do_scroll_horizontal): Rename from
4947 tui_horizontal_source_scroll.
4948 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
4949 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
4950 from tui_vertical_data_scroll.
4951 * tui/tui-win.h (tui_scroll): Don't declare.
4952 * tui/tui-win.c (tui_win_info::forward_scroll)
4953 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4954 (tui_win_info::right_scroll): Rename and update.
4955 (tui_scroll_forward_command, tui_scroll_backward_command)
4956 (tui_scroll_left_command, tui_scroll_right_command): Update.
4957 (tui_scroll): Remove.
4958 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
4959 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
4960 from tui_vertical_source_scroll.
4961 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
4962 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
4963 from tui_vertical_disassem_scroll.
4964 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
4965 do_scroll_horizontal>: New methods.
4966 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
4967 Likewise.
4968 (struct tui_source_window_base): Add do_scroll_horizontal.
4969 (struct tui_source_window, struct tui_disasm_window): Add
4970 do_scroll_vertical.
4971 (struct tui_data_window, struct tui_cmd_window): Add
4972 do_scroll_horizontal and do_scroll_vertical.
4973 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
4974
5cf82909
TT
49752019-06-25 Tom Tromey <tom@tromey.com>
4976
4977 * tui/tui-data.h (struct tui_source_window_base): New struct.
4978 (struct tui_source_window): Derive from tui_source_window_base.
4979 (struct tui_disasm_window): New struct.
4980 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
4981 from tui_source_window::clear_detail.
4982 (tui_source_window_base): Rename from tui_source_window.
4983 (~tui_source_window_base): Rename from ~tui_source_window.
4984 (tui_alloc_win_info): Create a tui_disasm_window.
4985
ee1d42d6
TT
49862019-06-25 Tom Tromey <tom@tromey.com>
4987
4988 * tui/tui-data.h (struct tui_source_window)
4989 (struct tui_data_window): Declare destructors.
4990 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
4991 destructors.
4992 (tui_win_info): Simplify.
4993
b4eb2452
TT
49942019-06-25 Tom Tromey <tom@tromey.com>
4995
4996 * tui/tui-winsource.c (tui_display_main)
4997 (tui_update_source_windows_with_addr)
4998 (tui_update_all_breakpoint_info): Update.
4999 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5000 (new_height_ok, parse_scrolling_args): Update.
5001 * tui/tui-stack.c (tui_show_frame_info): Update.
5002 * tui/tui-data.h (struct tui_list): Remove.
5003 (tui_source_windows): Return a reference to a std::vector.
5004 * tui/tui-data.c (source_windows): Now a std::vector.
5005 (tui_source_windows): Change return type.
5006 (tui_clear_source_windows): Rewrite.
5007 (tui_clear_source_windows_detail, tui_add_to_source_windows)
5008 (tui_free_all_source_wins_content): Rewrite.
5009
8761a91b
TT
50102019-06-25 Tom Tromey <tom@tromey.com>
5011
5012 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
5013 (struct tui_data_window, struct tui_cmd_window): Declare
5014 clear_detail method.
5015 * tui/tui-data.c (tui_source_window::clear_detail)
5016 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
5017 methods.
5018 (tui_clear_win_detail): Simplify.
5019
0ed69eda
TT
50202019-06-25 Tom Tromey <tom@tromey.com>
5021
5022 * tui/tui-layout.c (make_source_window, make_disasm_window)
5023 (make_source_or_disasm_window): Remove win_info_ptr parameter.
5024 Return the new window.
5025 (show_source_disasm_command, show_data)
5026 (show_source_or_disasm_and_command): Update.
5027
82432e10
TT
50282019-06-25 Tom Tromey <tom@tromey.com>
5029
5030 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
5031 parameter. Return the new window.
5032 (show_source_disasm_command): Update and remove NULL check.
5033 (show_source_or_disasm_and_command): Update.
5034
ec328aa5
TT
50352019-06-25 Tom Tromey <tom@tromey.com>
5036
5037 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
5038
33b906ab
TT
50392019-06-25 Tom Tromey <tom@tromey.com>
5040
5041 * tui/tui-data.h (struct tui_win_info): Make constructor
5042 protected. Make destructor virtual. Add initializers.
5043 (tui_source_window, tui_data_window, tui_cmd_window): New
5044 classes.
5045 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
5046 constructor. Add "type" parameter.
5047 (tui_source_window, tui_data_window, tui_cmd_window): New
5048 constructors.
5049 (tui_alloc_win_info): Instantiate the appropriate subclass.
5050
e7e11af4
TT
50512019-06-25 Tom Tromey <tom@tromey.com>
5052
5053 * tui/tui-win.c (tui_resize_all): Use delete.
5054 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
5055 destructor.
5056 (tui_free_window): Don't declare.
5057 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
5058 Update.
5059
6792b55e
TT
50602019-06-25 Tom Tromey <tom@tromey.com>
5061
5062 * tui/tui-data.h (struct tui_win_info): Add constructor.
5063 * tui/tui-data.c (tui_alloc_win_info): Use new.
5064 (tui_free_window): Use delete.
5065
f95675e1
TT
50662019-06-22 Tom Tromey <tom@tromey.com>
5067
5068 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
5069 declare.
5070 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
5071
5bff081c
TT
50722019-06-22 Tom Tromey <tom@tromey.com>
5073
5074 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
5075 declare.
5076 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
5077
47e3f474
TV
50782019-06-22 Tom de Vries <tdevries@suse.de>
5079
5080 * dwarf2read.c (create_addrmap_from_aranges)
5081 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
5082 instead of '%zu'.
5083
fd5866f6
SM
50842019-06-21 Simon Marchi <simon.marchi@efficios.com>
5085
5086 * dwarf2read.h (dwarf2_section_info_def): Remove.
5087 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
5088 * dwarf2read.c (struct dwo_sections) <types>: Change type to
5089 std::vector<dwarf2_section_info>.
5090 (struct dwo_file) <~dwo_file>: Remove.
5091 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
5092 types field.
5093 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
5094 (dwarf2_read_debug_names): Likewise.
5095 (create_debug_types_hash_table): Change parameter type to
5096 array_view, adjust code accordingly.
5097 (dwarf2_locate_dwo_sections): Adjust to std::vector.
5098 (partial_die_info::fixup): Likewise.
5099 (determine_prefix): Likewise.
5100 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
5101
fb1eb2f9
SM
51022019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5103
5104 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
5105 gdb_bfd_ref_ptr.
5106 <~dwo_file>: Remove call to gdb_bfd_unref.
5107 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
5108 gdb_bfd_ref_ptr::get.
5109
51ac9db5
SM
51102019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5111
5112 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
5113 type to htab_up.
5114 * dwarf2read.c (struct dwo_file): Initialize fields.
5115 <~dwo_file>: New.
5116 (free_dwo_file): Remove, move content to ~dwo_file.
5117 (struct dwo_file_deleter): Remove.
5118 (dwo_file_up>: Remove custom deleter.
5119 (free_dwo_files): Remove.
5120 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
5121 dwo_files.
5122 (process_skeletonless_type_units): Call unique_ptr::get.
5123 (allocate_dwo_file_hash_table): Add deleter to created hash
5124 table. Change return type to htab_up.
5125 (lookup_dwo_file_slot): Don't memset dwo_file, call
5126 unique_ptr::get.
5127 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
5128 (create_dwo_unit_in_dwp_v2): Likewise.
5129 (open_and_init_dwo_file): Likewise.
5130 (free_dwo_file_from_slot): Remove.
5131
dc4ccb6f
SM
51322019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5133
5134 * dwarf2read.h (struct dwarf2_section_info) <readin,
5135 is_virtual>: Change type to bool.
5136 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
5137 true instead of 1.
5138
e6a1c5cb
TT
51392019-06-19 Tom Tromey <tom@tromey.com>
5140
5141 * tui/tui-data.h (tui_init_content_element): Don't declare.
5142
6f6ffbeb
TT
51432019-06-19 Tom Tromey <tom@tromey.com>
5144
5145 * tui/tui-data.h (tui_init_win_info): Don't declare.
5146
f23f598e
TV
51472019-06-19 Tom de Vries <tdevries@suse.de>
5148
5149 * dwarf2read.h (abstract_to_concrete): Change type to
5150 std::unordered_map<sect_offset, std::vector<sect_offset>,
5151 gdb::hash_enum<sect_offset>>.
5152
680e1bee
TT
51532019-06-19 Tom Tromey <tromey@adacore.com>
5154
5155 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
5156 EVAL_AVOID_SIDE_EFFECTS specially.
5157
dcf37923
TT
51582019-06-19 Tom Tromey <tromey@adacore.com>
5159
5160 * source-cache.c (highlighter): New global.
5161 (source_cache::get_source_lines): Create a highlighter on demand.
5162
494986d5
AB
51632019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
5164
5165 * defs.h (deprecated_interactive_hook): Delete declaration.
5166 * interps.c (clear_interpreter_hooks): Remove use of
5167 deprecated_interactive_hook.
5168 * top.c (deprecated_interactive_hook): Delete definition.
5169 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
5170
3360b6e7
TV
51712019-06-18 Tom de Vries <tdevries@suse.de>
5172
5173 PR gdb/24515
5174 * dwarf2read.h (abstract_to_concrete): Change type from
5175 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
5176 std::unordered_map<sect_offset, std::vector<sect_offset>>.
5177 * dwarf2read.c (read_variable): Update.
5178 (dwarf2_fetch_die_loc_sect_off): Update.
5179
310b3441
TV
51802019-06-17 Tom de Vries <tdevries@suse.de>
5181
5182 PR gdb/24617
5183 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
5184 accessing parent[parent_len - 1].
5185
ba9777be
PP
51862019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
5187
5188 PR gdb/24364
5189 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
5190 call dtrace_process_dof with NULL dof.
5191
2b9f6e89
TV
51922019-06-16 Tom de Vries <tdevries@suse.de>
5193
5194 PR gdb/24445
5195 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
5196
431b3ead
TT
51972019-06-16 Tom Tromey <tom@tromey.com>
5198
5199 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5200 (make_all_visible): Use address of member.
5201
d04b44a1
TT
52022019-06-16 Tom Tromey <tom@tromey.com>
5203
5204 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
5205 (tui_free_window, free_content, free_content_elements): Remove
5206 unnecessary cast.
5207 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
5208 cast.
5209 * tui/tui-regs.c (tui_show_register_group)
5210 (tui_display_registers_from, tui_display_reg_element_at_line):
5211 Remove unnecessary cast.
5212
bf5142e7
AB
52132019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5214
5215 * linux-nat.c (normal_mask): Delete.
5216 (_initialize_linux_nat): Don't initialise normal_mask.
5217
c4973306
SM
52182019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
5219
5220 PR gdb/24445
5221 * dwarf-index-write.h (write_psymtabs_to_index): Add
5222 dwz_basename parameter.
5223 * dwarf-index-write.c (write_gdbindex): Move file writing to
5224 write_gdbindex_1. Change return type void.
5225 (assert_file_size): Move up, remove filename parameter.
5226 (write_gdbindex_1): New function.
5227 (write_debug_names): Change return type to void, call
5228 assert_file_size.
5229 (struct index_wip_file): New struct.
5230 (write_psymtabs_to_index): Add dwz_basename parameter. Move
5231 file logic to index_wip_file. Write index for dwz file if
5232 needed.
5233 (save_gdb_index_command): Pass basename of dwz file, if present.
5234 * dwarf-index-cache.c (index_cache::store): Obtain and pass
5235 build-id of dwz file, if present.
5236 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
5237 (dwarf2_get_dwz_file): Likewise.
5238 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
5239 (dwarf2_get_dwz_file): Likewise.
5240
395f9c91
TT
52412019-06-16 Tom Tromey <tom@tromey.com>
5242
5243 * coffread.c (process_coff_symbol): Use xstrdup.
5244 * value.c (create_internalvar): Use xstrdup.
5245
cafb3438
TT
52462019-06-16 Tom Tromey <tom@tromey.com>
5247
5248 * valops.c (value_cast, value_slice): Remove unnecessary cast.
5249 * breakpoint.c (stopin_command, stopat_command)
5250 (until_break_command, decode_location_default): Remove unnecessary
5251 cast.
5252 * utils.c (subset_compare): Remove unnecessary cast.
5253 * ada-lang.c (ada_update_initial_language): Remove unnecessary
5254 cast.
5255 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
5256 cast.
5257 * infcmd.c (path_command): Remove unnecessary cast.
5258 * coffread.c (decode_type): Remove unnecessary cast.
5259 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
5260 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
5261 * tui/tui-stack.c (tui_show_locator_content)
5262 (tui_show_frame_info): Remove unnecessary cast.
5263 * tui/tui-win.c (tui_scroll_forward_command)
5264 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
5265 (parse_scrolling_args): Remove unnecessary cast.
5266 * tui/tui-data.c (init_win_info, tui_del_window)
5267 (tui_free_window, tui_del_data_windows, tui_free_data_content)
5268 (free_content_elements): Remove unnecessary cast.
5269 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
5270 unnecessary cast.
5271 * tui/tui-source.c (tui_set_source_content)
5272 (tui_vertical_source_scroll): Remove unnecessary cast.
5273 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
5274 cast.
5275 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
5276 * tui/tui-regs.c (tui_display_registers_from)
5277 (tui_display_register): Remove unnecessary cast.
5278 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
5279 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
5280 (make_visible): Remove unnecessary cast.
5281 * tui/tui-winsource.c (tui_erase_source_content)
5282 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
5283 unnecessary cast.
5284 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
5285 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
5286 * stabsread.c (read_type, read_array_type, read_range_type):
5287 Remove unnecessary cast.
5288 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
5289 (parse_symbol, parse_type, upgrade_type, parse_external)
5290 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
5291 unnecessary cast.
5292 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
5293
730ead81
TT
52942019-06-16 Tom Tromey <tom@tromey.com>
5295
5296 * tui/tui-data.c (tui_alloc_generic_win_info)
5297 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
5298 checks.
5299
584a927c
AB
53002019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
5301 Andrew Burgess <andrew.burgess@embecosm.com>
5302
5303 * f-typeprint.c (f_print_type): Don't return early for not
5304 associated or not allocated types.
5305 (f_type_print_varspec_suffix): Add print_rank parameter and print
5306 ranks of array types in case they dangling.
5307 (f_type_print_base): Add print_rank parameter.
5308
30056ea0
AB
53092019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5310
5311 * NEWS: Mention new MI commands.
5312 * break-catch-throw.c (enum exception_event_kind): Move to
5313 breakpoint.h.
5314 (print_mention_exception_catchpoint): Output text as a single
5315 message.
5316 (catch_exception_command_1): Rename to...
5317 (catch_exception_event): ...this, make non-static, update header
5318 command, and change some parameter types.
5319 (catch_catch_command): Update for changes to
5320 catch_exception_command_1.
5321 (catch_throw_command): Likewise.
5322 (catch_rethrow_command): Likewise.
5323 * breakpoint.c (enum exception_event_kind): Delete.
5324 * breakpoint.h (enum exception_event_kind): Moved here from
5325 break-catch-throw.c.
5326 (catch_exception_event): Declare.
5327 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
5328 (mi_cmd_catch_throw): New function.
5329 (mi_cmd_catch_rethrow): New function.
5330 (mi_cmd_catch_catch): New function.
5331 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
5332 'catch-catch' entries.
5333 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
5334 (mi_cmd_catch_rethrow): Declare.
5335 (mi_cmd_catch_catch): Declare.
5336
ec8e2b6d
AB
53372019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5338
5339 * annotate.c (annotate_source_line): Change return type to void,
5340 update implementation to match.
5341 * annotate.h (annotate_source_line): Change return type to void,
5342 update header comment.
5343 * stack.c (print_frame_info): Don't change what frame information
5344 is printed based on whether annotations are on or not.
5345
0d3abd8c
AB
53462019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5347
5348 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
5349 (annotate_source): Make static.
5350 (annotate_source_line): Moved from source.c and renamed from
5351 identify_source_line. Update the return type.
5352 * annotate.h (annotate_source): Delete declaration.
5353 (annotate_source_line): Declaration moved from source.h, and
5354 renamed from identify_source_line. Return type updated.
5355 * source.c (identify_source_line): Moved to annotate.c and renamed
5356 to annotate_source_line.
5357 (info_line_command): Remove check of annotation_level.
5358 * source.h (identify_source_line): Move declaration to annotate.h
5359 and rename to annotate_source_line.
5360 * stack.c: Add 'annotate.h' include.
5361 (print_frame_info): Remove check of annotation_level before
5362 calling annotate_source_line.
5363
00df30ae
AB
53642019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5365
5366 * source-cache.c (source_cache::get_plain_source_lines): Use
5367 open_source_file_with_line_charpos instead of just
5368 open_source_file, remove call to find_source_lines.
5369 (source_cache::get_source_lines): Likewise.
5370 * source.c (find_source_lines): Make static.
5371 (get_filename_and_charpos): Renamed into...
5372 (open_source_file_with_line_charpos): ..this along with changes to
5373 return a scoped_fd, and some other minor clean ups.
5374 (identify_source_line): Use open_source_file_with_line_charpos.
5375 (search_command_helper): Use open_source_file_with_line_charpos
5376 instead of just open_source_file, remove call to
5377 find_source_lines.
5378 * source.h (open_source_file_with_line_charpos): Declare new
5379 function.
5380 (find_source_lines): Delete declaration.
5381
afda45a2
AB
53822019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5383
5384 * source.c (get_filename_and_charpos): Remove fullname
5385 parameter.
5386 (identify_source_line): Update call to get_filename_and_charpos.
5387
0735b091
TT
53882019-06-14 Tom Tromey <tromey@adacore.com>
5389
5390 PR gdb/24502:
5391 * ui-style.h (skip_ansi_escape): Update comment.
5392 * ui-file.h (class no_terminal_escape_file): New class.
5393 * ui-file.c (no_terminal_escape_file::write)
5394 (no_terminal_escape_file::puts): New methods.
5395 * cli/cli-logging.c (handle_redirections): Use
5396 no_terminal_escape_file.
5397
52ce35e2
TT
53982019-06-14 Tom Tromey <tromey@adacore.com>
5399
5400 * NEWS: Move convenience variable news above Python news.
5401
73cc7272
TT
54022019-06-14 Tom Tromey <tom@tromey.com>
5403
5404 * gnulib: Move directory to top-level.
5405 * configure.ac: Don't configure gnulib.
5406 * configure: Rebuild.
5407 * common/common-defs.h: Use new path to gnulib.
5408 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
5409 (GNULIB_H): Remove.
5410 (INCGNU): Look in new gnulib location.
5411 (HFILES_NO_SRCDIR): Remove gnulib files.
5412 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
5413 (generated_files): Remove GNULIB_H.
5414 ($(LIBGNU), all-lib): Remove targets.
5415 (distclean): Don't mention GNULIB_BUILDDIR.
5416 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
5417
f5686554
TT
54182019-06-14 Tom Tromey <tromey@adacore.com>
5419
5420 * symfile.c (add_symbol_file_command): Remove obsolete comment.
5421 Warn if symbol file does not provide any symbols.
5422
a0c1ffed
TT
54232019-06-14 Tom Tromey <tromey@adacore.com>
5424
5425 * source.c (find_and_open_source): Respect basenames_may_differ.
5426
7c39e397
AB
54272019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
5428
5429 * annotate.c (annotate_breakpoints_invalid): Make use of
5430 scoped_restore_terminal_state.
5431 (annotate_frames_invalid): Likewise.
5432
f411722c
TT
54332019-06-14 Tom Tromey <tromey@adacore.com>
5434
5435 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
5436 allow assignment to an internalvar.
5437
4268ec18
TT
54382019-06-14 Tom Tromey <tromey@adacore.com>
5439
5440 * ada-lex.l: Allow "_" in attribute names.
5441
abdb711e
TT
54422019-06-14 Tom Tromey <tromey@adacore.com>
5443
5444 PR gdb/24653:
5445 * regcache.c (registers_changed): Don't call alloca.
5446 * top.c (execute_command): Don't call alloca.
5447
4c048731
PA
54482019-06-13 Pedro Alves <palves@redhat.com>
5449
5450 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
5451 'expression'. When parsing an expression, error out if there's
5452 junk after "unlimited".
5453 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5454 (do_set_command): Adjust calls to is_unlimited_literal.
5455
66eb1ed3
PA
54562019-06-13 Pedro Alves <palves@redhat.com>
5457
5458 * compile/compile.c (make_compile_options_def_group): Add braces
5459 around array_view initializer.
5460 * thread.c (make_thread_apply_all_options_def_group)
5461 (make_thread_apply_all_options_def_group): Likewise.
5462
3345721a
PA
54632019-06-13 Pedro Alves <palves@redhat.com>
5464
5465 * NEWS (New commands): Mention "maint test-options
5466 require-delimiter", "maint test-options unknown-is-error", "maint
5467 test-options unknown-is-operand" and "maint show
5468 test-options-completion-result".
5469 (New command options, command completion): New section.
5470 (Completion improvements): New section.
5471 Mention that you can abbreviate "unlimited".
5472
6206060d
PA
54732019-06-13 Pedro Alves <palves@redhat.com>
5474
5475 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
5476 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
5477 * unittests/cli-utils-selftests.c (test_parse_flags)
5478 (test_parse_flags_qcs): Delete.
5479 (test_cli_utils): Don't call deleted functions.
5480
6665660a
PA
54812019-06-13 Pedro Alves <palves@redhat.com>
5482
5483 * thread.c: Include "cli/cli-option.h".
5484 (tp_array_compar_ascending): Global.
5485 (tp_array_compar): Delete function.
5486 (tp_array_compar_ascending, tp_array_compar_descending): New
5487 functions.
5488 (ascending_option_def, qcs_flag_option_def)
5489 (thr_qcs_flags_option_defs)
5490 (make_thread_apply_all_options_def_group)
5491 (make_thread_apply_options_def_group): New.
5492 (thread_apply_all_command): Use gdb::option::process_options.
5493 (thread_apply_command_completer)
5494 (thread_apply_all_command_completer): New.
5495 (thread_apply_command): Use gdb::option::process_options.
5496 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
5497 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
5498 to generate help text of "thread apply". Adjust "taas"'s help.
5499 * tid-parse.c (tid_range_parser::in_thread_range): New method.
5500 * tid-parse.h (tid_range_parser::in_thread_range): New method.
5501
f7e13587
PA
55022019-06-13 Pedro Alves <palves@redhat.com>
5503
5504 * thread.c (thread_apply_command): Check for invalid TID with
5505 isdigit instead of !isalpha.
5506
5d707134
PA
55072019-06-13 Pedro Alves <palves@redhat.com>
5508
5509 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
5510 (validate_flags_qcs): New.
5511 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
5512 (validate_flags_qcs): Declare.
5513 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
5514 (make_frame_apply_options_def_group): New.
5515 (frame_apply_command_count): Process options with
5516 gdb::option::process_options.
5517 (frame_apply_completer): New.
5518 (frame_apply_level_completer, frame_apply_all_completer)
5519 (frame_apply_completer): New.
5520 (_initialize_stack): Update help of "frame apply", "frame apply
5521 level", "frame apply all" and "faas" to mention supported options
5522 and install command completers.
5523 * stack.h (frame_apply_all_completer): Declare.
5524 * thread.c: Include "stack.h".
5525 (tfaas_command): Add "--".
5526 (_initialize_thread): Update help "tfaas" to mention supported
5527 options and install command completer.
5528
272d4594
PA
55292019-06-13 Pedro Alves <palves@redhat.com>
5530
5531 * completer.c (complete_nested_command_line): New.
5532 (gdb_completion_word_break_characters_throw): Add assertion.
5533 * completer.h (complete_nested_command_line): Declare.
5534
90a1ef87
PA
55352019-06-13 Pedro Alves <palves@redhat.com>
5536
5537 * stack.c (parse_backtrace_qualifiers): New.
5538 (backtrace_command): Use it.
5539 (backtrace_command_completer): Complete on qualifiers.
5540
d4c16835
PA
55412019-06-13 Pedro Alves <palves@redhat.com>
5542
5543 * frame.c: Include "cli/cli-option.h.
5544 (user_set_backtrace_options): New.
5545 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
5546 Delete.
5547 (get_prev_frame): Adjust.
5548 (boolean_option_def, uinteger_option_def)
5549 (set_backtrace_option_defs): New.
5550 (_initialize_frame): Adjust and use
5551 gdb::option::add_setshow_cmds_for_options to install "set
5552 backtrace past-main" and "set backtrace past-entry".
5553 * frame.h: Include "cli/cli-option.h".
5554 (struct frame_print_options): Forward declare.
5555 (print_frame_arguments_all, print_frame_arguments_scalars)
5556 (print_frame_arguments_none): Declare.
5557 (print_entry_values): Delete declaration.
5558 (struct frame_print_options, user_frame_print_options): New.
5559 (struct set_backtrace_options): New.
5560 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
5561 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
5562 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
5563 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
5564 (list_args_or_locals): Add frame_print_options parameter.
5565 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5566 * python/py-framefilter.c (enumerate_args): Pass down
5567 USER_FRAME_PRINT_OPTIONS.
5568 * stack.c: Include "cli/cli-option.h".
5569 (print_frame_arguments_all, print_frame_arguments_scalars)
5570 (print_frame_arguments_none): Declare.
5571 (print_raw_frame_arguments, print_entry_values): Delete.
5572 (user_frame_print_options): New.
5573 (boolean_option_def, enum_option_def, frame_print_option_defs):
5574 New.
5575 (struct backtrace_cmd_options): New.
5576 (bt_flag_option_def): New.
5577 (backtrace_command_option_defs): New.
5578 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5579 (print_frame_arg, read_frame_arg, print_frame_args)
5580 (print_frame_info, print_frame): Add frame_print_options parameter
5581 and use it.
5582 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
5583 (backtrace_command_1): Add frame_print_options and
5584 backtrace_cmd_options parameters and use them.
5585 (make_backtrace_options_def_group): New.
5586 (backtrace_command): Process command options with
5587 gdb::option::process_options.
5588 (backtrace_command_completer): New.
5589 (_initialize_stack): Extend "backtrace"'s help to mention
5590 supported options. Install completer for "backtrace".
5591 Install some settings commands with add_setshow_cmds_for_options.
5592
2daf894e
PA
55932019-06-13 Pedro Alves <palves@redhat.com>
5594
5595 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
5596 and that "set/show print raw frame-arguments" are now deprecated.
5597
5598 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
5599 command.
5600 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
5601 * stack.c (_initialize_stack): Install "set/show print
5602 raw-frame-arguments", and deprecate "set/show print raw
5603 frame-arguments".
5604 * valprint.c (_initialize_valprint): Deprecate "set/show print
5605 raw".
5606
e6ed716c
PA
56072019-06-13 Pedro Alves <palves@redhat.com>
5608
5609 * compile/compile.c (struct compile_options): New.
5610 (compile_flag_option_def, compile_command_option_defs)
5611 (make_compile_options_def_group): New.
5612 (compile_file_command): Handle options with
5613 gdb::option::process_options.
5614 (compile_file_command_completer): New function.
5615 (compile_code_command): Handle options with
5616 gdb::option::process_options.
5617 (compile_code_command_completer): New function.
5618 (_initialize_compiler): Install completers for "compile code" and
5619 "compile file". Mention available options in "compile code" and
5620 "compile code"'s help.
5621 * completer.c (advance_to_completion_word): New, factored out from
5622 ...
5623 (advance_to_expression_complete_word_point): ... this.
5624 (advance_to_filename_complete_word_point): New.
5625 * completer.h (advance_to_filename_complete_word_point): New
5626 declaration.
5627
7d8062de
PA
56282019-06-13 Pedro Alves <palves@redhat.com>
5629
5630 * compile/compile.c: Include "cli/cli-option.h".
5631 (compile_print_value): Scope data pointer is now a
5632 value_print_options pointer; adjust.
5633 (compile_print_command): Process options. Scope data pointer is
5634 now a value_print_options pointer; adjust.
5635 (_initialize_compile): Update "compile print"'s help to include
5636 supported options. Install a completer for "compile print".
5637 * cp-valprint.c (show_vtblprint, show_objectprint)
5638 (show_static_field_print): Delete.
5639 (_initialize_cp_valprint): Don't install "set print
5640 static-members", "set print vtbl", "set print object" here.
5641 * printcmd.c: Include "cli/cli-option.h" and
5642 "common/gdb_optional.h".
5643 (print_command_parse_format): Rework to fill in a
5644 value_print_options instead of a format_data.
5645 (print_value): Change parameter type from format_data pointer to
5646 value_print_options reference. Adjust.
5647 (print_command_1): Process options. Adjust to pass down a
5648 value_print_options.
5649 (print_command_completer): New.
5650 (_initialize_printcmd): Install print_command_completer as
5651 handle_brkchars completer for the "print" command. Update
5652 "print"'s help to include supported options.
5653 * valprint.c: Include "cli/cli-option.h".
5654 (show_vtblprint, show_objectprint, show_static_field_print): Moved
5655 here from cp-valprint.c.
5656 (boolean_option_def, uinteger_option_def)
5657 (value_print_option_defs, make_value_print_options_def_group):
5658 New. Use gdb::option::add_setshow_cmds_for_options to install
5659 "set print elements", "set print null-stop", "set print repeats",
5660 "set print pretty", "set print union", "set print array", "set
5661 print address", "set print symbol", "set print array-indexes".
5662 * valprint.h: Include <string> and "cli/cli-option.h".
5663 (make_value_print_options_def_group): Declare.
5664 (print_value): Change parameter type from format_data pointer to
5665 value_print_options reference.
5666 (print_command_completer): Declare.
5667
9d0faba9
PA
56682019-06-13 Pedro Alves <palves@redhat.com>
5669
5670 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
5671 (COMMON_SFILES): Add maint-test-settings.c.
5672 * cli/cli-decode.c (boolean_enums): New global, factored out from
5673 ...
5674 (add_setshow_boolean_cmd): ... here.
5675 * cli/cli-decode.h (boolean_enums): Declare.
5676 * cli/cli-option.c: New file.
5677 * cli/cli-option.h: New file.
5678 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
5679 factored out from ...
5680 (parse_cli_boolean_value(const char *)): ... this.
5681 (is_unlimited_literal): Change parameter type to pointer to
5682 pointer. Adjust and advance ARG pointer.
5683 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5684 (parse_cli_var_enum): New, factored out from ...
5685 (do_set_command): ... this. Adjust.
5686 * cli/cli-setshow.h (parse_cli_boolean_value)
5687 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5688 (parse_cli_var_enum): Declare.
5689 * cli/cli-utils.c: Include "cli/cli-option.h".
5690 (get_ulongest): New.
5691 * cli/cli-utils.h (get_ulongest): Declare.
5692 (check_for_argument): New overloads.
5693 * maint-test-options.c: New file.
5694
2c722807
PA
56952019-06-13 Pedro Alves <palves@redhat.com>
5696
5697 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
5698 parse a range if "-" is at the end of the string.
5699
dee7b4c8
PA
57002019-06-13 Pedro Alves <palves@redhat.com>
5701
5702 * cli/cli-setshow.c (parse_auto_binary_operation)
5703 (parse_cli_boolean_value): Don't allow "o".
5704
dca0f6c0
PA
57052019-06-13 Pedro Alves <palves@redhat.com>
5706
5707 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
5708 * NEWS: Mention maint test-settings KIND.
5709 * maint-test-settings.c: New file.
5710
597bf39d
PA
57112019-06-13 Pedro Alves <palves@redhat.com>
5712
5713 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
5714 completer.
5715 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
5716 "set" completers.
5717
48c410fb
PA
57182019-06-13 Pedro Alves <palves@redhat.com>
5719
5720 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
5721 after item.
5722
93bcb043
PA
57232019-06-13 Pedro Alves <palves@redhat.com>
5724
5725 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
5726
cbba3ecd
PA
57272019-06-13 Pedro Alves <palves@redhat.com>
5728
5729 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
5730 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
5731 call.
5732 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
5733 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
5734 calls.
5735 (check_for_argument): Skip spaces after argument.
5736
b9a3f842
PA
57372019-06-13 Pedro Alves <palves@redhat.com>
5738
5739 * thread.c (thread_apply_command): Adjust TID parsing.
5740 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
5741 detected before end of string.
5742 (tid_is_in_list): Error out if LIST is invalid.
5743
3844e605
PA
57442019-06-13 Pedro Alves <palves@redhat.com>
5745
5746 * completer.c (complete_line_internal_1): Rewind completion word
5747 point.
5748 (completion_tracker::advance_custom_word_point_by): Change
5749 parameter type to int.
5750 * completer.h (completion_tracker::advance_custom_word_point_by):
5751 Likewise.
5752
00b56dbe
PA
57532019-06-13 Pedro Alves <palves@redhat.com>
5754
5755 * completer.c (advance_to_completion_word): Handle delimiters.
5756
d106773e
PA
57572019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
5758
5759 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
5760
08f10e02
TT
57612019-06-11 Tom Tromey <tom@tromey.com>
5762
5763 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
5764 (xmalloc_failed): Move to alloc.c.
5765 * alloc.c: New file.
5766 * Makefile.in (COMMON_SFILES): Add alloc.c.
5767
1c7fe951
TT
57682019-06-11 Tom Tromey <tom@tromey.com>
5769
5770 * nat/linux-waitpid.c: Don't include server.h.
5771 (linux_debug): Remove.
5772 (my_waitpid): Update.
5773
89549d7f
TT
57742019-06-11 Tom Tromey <tromey@adacore.com>
5775
5776 * infcall.c (_initialize_infcall): Remove trailing newline from
5777 help.
5778 * user-regs.c (_initialize_user_regs): Remove trailing newline
5779 from help.
5780 * typeprint.c (_initialize_typeprint): Remove trailing newline
5781 from help.
5782 * reverse.c (_initialize_reverse): Remove trailing newlines from
5783 help.
5784 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
5785 from help.
5786 * language.c (add_set_language_command): Remove trailing newline
5787 from help.
5788 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
5789 help.
5790 * disasm.c (_initialize_disasm): Remove trailing newline from
5791 help.
5792 * top.c (init_main): Remove trailing newline from help.
5793 * interps.c (_initialize_interpreter): Remove trailing newline
5794 from help.
5795 * btrace.c (_initialize_btrace): Remove trailing newlines from
5796 help.
5797 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
5798 from help.
5799 * python/python.c (_initialize_python): Remove trailing newline
5800 from help.
5801 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
5802 help.
5803 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
5804 from help. Reformat some text.
5805 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
5806 from help.
5807 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
5808 newline from help.
5809
86108c13
TT
58102019-06-11 Tom Tromey <tromey@adacore.com>
5811
5812 * darwin-nat.c (darwin_decode_exception_message)
5813 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
5814
a7067863
AB
58152019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
5816
5817 * valops.c (value_slice): Check for not allocated or not
5818 associated values.
5819
9ab08412
TV
58202019-06-10 Tom de Vries <tdevries@suse.de>
5821
5822 PR gdb/24618
5823 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
5824 sure an empty slot (defined by a 32-bit zero pair) is recognized as
5825 invalid.
5826
f19e22e9
TV
58272019-06-10 Tom de Vries <tdevries@suse.de>
5828
5829 PR gdb/24611
5830 * linespec.c (linespec_lexer_lex_string): Remove incorrect
5831 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
5832
e99f9db0
TV
58332019-06-10 Tom de Vries <tdevries@suse.de>
5834
5835 PR symtab/24545
5836 * symtab.c (struct demangled_name_entry): Add language field.
5837 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
5838 static minimal symbol". Set and use language field.
5839
9bf7038b
TT
58402019-06-10 Tom Tromey <tromey@adacore.com>
5841
5842 * ada-lang.c (_initialize_ada_language): Update help text.
5843
422186a9
TT
58442019-06-10 Tom Tromey <tromey@adacore.com>
5845
5846 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
5847 with a newline.
5848 * guile/guile.c (handle_boot_error): Don't end warning with a
5849 newline.
5850 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
5851 warning with a newline.
5852 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
5853 newline.
5854 (s12z_frame_cache): Likewise.
5855 * dwarf-index-cache.c (index_cache::store): Don't end warning with
5856 a newline.
5857 * solib-svr4.c (disable_probes_interface): Don't end warning with
5858 a newline.
5859 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
5860 newline.
5861 * python/python.c (do_finish_initialization): Don't end warning
5862 with a newline.
5863
25ce02ee
TT
58642019-06-10 Tom Tromey <tom@tromey.com>
5865
5866 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5867 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
5868 gdbpy_enter.
5869
caa429d8
TT
58702019-06-10 Tom Tromey <tromey@adacore.com>
5871
5872 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
5873 data.
5874 (elf_new_init): Don't call stabsread_new_init.
5875 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
5876 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
5877 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
5878
81873cc8
TV
58792019-06-10 Tom de Vries <tdevries@suse.de>
5880
5881 PR symtab/16264
5882 PR symtab/24517
5883 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
5884
4fa0265e
РИ
58852019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
5886
5887 * source.c (find_and_open_source): Also rewrite relative file
5888 names.
5889
1a3da2cd
AB
58902019-04-26 Amos Bird <amosbird@gmail.com>
5891
5892 * annotate.c (annotate_thread_exited): Add "thread-exited"
5893 annotation.
5894
3847a7bf
TT
58952019-06-06 Tom Tromey <tromey@adacore.com>
5896
5897 * maint.h (class scoped_command_stats): Use
5898 DISABLE_COPY_AND_ASSIGN.
5899 <print_time>: New method.
5900 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
5901 print_time.
5902 (scoped_command_stats::print_time): New method.
5903
312617a3
AB
59042019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5905
5906 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
5907 instructions of lengths 6 or 8 bytes.
5908
b02f78f9
PA
59092019-06-04 Pedro Alves <palves@redhat.com>
5910
5911 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
5912
5913 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
5914 * breakpoint.c (condition_completer): Likewise.
5915 * cli/cli-dump.c (scan_expression): Likewise.
5916 * common/filestuff.c (mkdir_recursive): Likewise.
5917 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
5918 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
5919 (gdb_abspath): Likewise.
5920 * compile/compile-cplus-types.c
5921 (compile_cplus_instance::decl_name): Likewise.
5922 * completer.c (complete_explicit_location):
5923 (signal_completer, reg_or_group_completer_1): Likewise.
5924 * cp-support.c (cp_remove_params_if_any): Likewise.
5925 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
5926 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
5927 * infcmd.c (strip_bg_char): Likewise.
5928 * linespec.c (copy_token_string): Likewise.
5929 * mi/mi-main.c (output_cores): Likewise.
5930 * psymtab.c (psymtab_search_name):
5931 * symfile.c (test_set_ext_lang_command): Likewise.
5932 * target.c (target_fileio_read_stralloc): Likewise.
5933 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
5934 * value.c (complete_internalvar): Likewise.
5935
e1f2e1a2
CB
59362019-06-04 Christian Biesinger <cbiesinger@google.com>
5937
5938 Add objfile property to gdb.Type.
d3238f7d
PA
5939 * NEWS: Mention Python API addition.
5940 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 5941
e664d728
PW
59422019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5943
5944 * NEWS: Mention the new set|show style [title|highlight].
5945 Mention changes to "show style", "help" and "apropos".
5946
66d8c862
PW
59472019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5948
5949 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
5950 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
5951 instead of print_help_for_command.
5952 (print_doc_of_command): New function.
5953 (help_list): Add 'apropos -v word' suggestion.
5954 (print_help_for_command): Style the command name using title style.
5955 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
5956 (_initialize_cli_cmds): Describe -v in apropos_command help.
5957
9303eb2f
PW
59582019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5959
5960 * cli/cli-style.h (cli_style_option): Add name in constructor,
5961 add m_name class member, add constructor with intensity,
5962 add name class function.
5963 (cli_style_option::add_setshow_commands): Remove name argument.
5964 (highlight_style, title_style): New styles.
5965 * cli/cli-style.c (do_show): New function that shows a style
5966 characteristic styling the style name with itself.
5967 (set_style_name): New function.
5968 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
5969 Update all callers according to the changes in cli/cli-style.h.
5970 * utils.h (fputs_highlighted): New function.
5971 * utils.c (fputs_highlighted): Likewise.
5972
e2c52041
PW
59732019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5974
5975 * NEWS: Mention new pipe command and new convenience variables.
5976
947d3946
PW
59772019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5978
5979 * cli/cli-cmds.c (pipe_command): New function.
5980 (_initialize_cli_cmds): Call add_com for pipe_command.
5981 Define | as an alias for pipe.
5982 (exit_status_set_internal_vars): New function.
5983 (shell_escape): Call exit_status_set_internal_vars.
5984 cli/cli-decode.c (find_command_name_length): Recognize | as
5985 a single character command.
5986
b8fd0918
PW
59872019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5988
5989 * gdbcmd.h (execute_command_to_ui_file): New declaration.
5990 top.c (execute_command_to_ui_file): New function, mostly a copy
5991 of execute_command_to_string.
5992 (execute_command_to_string): Implement by calling
5993 execute_command_to_ui_file.
5994
68bb5386
PW
59952019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5996
5997 * top.h (saved_command_line): Remove declaration.
5998 * top.c (previous_saved_command_line, previous_repeat_arguments):
5999 New variables.
6000 (saved_command_line): Make static, define together with other
6001 'repeat variables'.
6002 (dont_repeat): Clear repeat_arguments.
6003 (repeat_previous, get_saved_command_line, save_command_line):
6004 New functions.
6005 (gdb_init): Initialize saved_command_line
6006 and previous_saved_command_line.
6007 * main.c (captured_main_1): Remove saved_command_line initialization.
6008 * event-top.c (handle_line_of_input): Update to use
6009 the new 'repeat' related functions instead of direct access to
6010 saved_command_line.
6011 * command.h (repeat_previous, get_saved_command_line,
6012 save_command_line): New declarations.
6013 (dont_repeat): Add comment.
6014
bfcdb852
TT
60152019-05-30 Tom Tromey <tromey@adacore.com>
6016
6017 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
6018 Fix comment.
6019 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
6020
0ef209f2
JV
60212019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
6022
6023 PR cli/24587
6024 * completer.c (complete): Initialize variable word.
6025
955b06fa
SDJ
60262019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
6027
6028 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6029 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
6030 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
6031 'body' is NULL to the outter 'if', protecting the '!is_define'
6032 situation as well.
6033
fa9c3fa0
TT
60342019-05-29 Tom Tromey <tromey@adacore.com>
6035
6036 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
6037 (dwarf_unknown): New function.
6038 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
6039 (dwarf_type_encoding_name): Use dwarf_unknown.
6040
4330d61d
TT
60412019-05-29 Tom Tromey <tromey@adacore.com>
6042
6043 PR c++/20020:
6044 * cp-valprint.c (cp_print_value_fields): Call
6045 cp_print_static_field inside "try".
6046
33a6bc35
TT
60472019-05-29 Tom Tromey <tromey@adacore.com>
6048
6049 * inflow.c (struct terminal_info): Add default operator=.
6050 * configure: Rebuild.
6051 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
6052 -Wdeprecated-copy-dtor, -Wredundant-move.
6053
000439d5
TT
60542019-05-29 Tom Tromey <tromey@adacore.com>
6055
6056 * NEWS: Add entry.
6057 * infcmd.c (print_return_value_1): Handle finish_print
6058 option.
6059 (show_print_finish): New function.
6060 (_initialize_infcmd): Add "set/show print finish" commands.
6061 * valprint.c (user_print_options): Initialize new member.
6062 * valprint.h (struct value_print_options) <finish_print>: New
6063 member.
6064
c0e70c62
TT
60652019-05-28 Tom Tromey <tromey@adacore.com>
6066
6067 * ada-lang.c (ada_remove_Xbn_suffix)
6068 (find_old_style_renaming_symbol)
6069 (parse_old_style_renaming): Remove.
6070 (ada_find_renaming_symbol): Don't call
6071 find_old_style_renaming_symbol.
6072 (ada_is_renaming_symbol): Rename from
6073 ada_find_renaming_symbol. Remove "block" parameter. Return
6074 bool. Now static.
6075 (ada_read_var_value): Update and simplify.
6076 * ada-exp.y (write_var_or_type): Remove old code.
6077
766f8836
AH
60782019-05-28 Alan Hayward <alan.hayward@arm.com>
6079
6080 * event-top.c: Remove include comment.
6081 * inflow.c (class scoped_ignore_sigttou): Move from here...
6082 * inflow.h (class scoped_ignore_sigttou): ...to here.
6083 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
6084 * top.c: Remove include comment.
6085
eb41253a
TT
60862019-05-27 Tom Tromey <tom@tromey.com>
6087
6088 * NEWS: Fix typo.
6089
4ca51187
TT
60902019-05-22 Tom Tromey <tromey@adacore.com>
6091
6092 * target.c (target_follow_exec): Constify parameter.
6093 * target-delegates.c: Rebuild.
6094 * remote.c (remote_target::follow_exec): Constify parameter.
6095 * infrun.c (follow_exec): Constify parameter.
6096 * target.h (struct target_ops) <follow_exec>: Constify parameter.
6097 (target_follow_exec): Likewise.
6098
8fca4da0
AH
60992019-05-22 Alan Hayward <alan.hayward@arm.com>
6100
6101 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
6102 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
6103
b7060614
AH
61042019-05-22 Alan Hayward <alan.hayward@arm.com>
6105
6106 * NEWS: Add debugredirect and testsuite sections.
6107
0a5954bd
SC
61082019-05-22 Simon Cook <simon.cook@embecosm.com>
6109
6110 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
6111 target descriptions using exclusively floating point register name
6112 aliases.
6113
dc42e902
AB
61142019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
6115
6116 PR gdb/18644:
6117 * f-lang.c (build_fortran_types): Handle the case where
6118 gdbarch_floatformat_for_type returns a nullptr.
6119
fb7806c7
TV
61202019-05-21 Tom de Vries <tdevries@suse.de>
6121
6122 PR cli/24587
6123 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
6124
34d11c68
AB
61252019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6126
6127 PR gdb/18644:
6128 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
6129 16-byte floats.
6130 * i386-tdep.c (i386_floatformat_for_type): Use
6131 floatformats_ia64_quad for the 16-byte floating point component
6132 within a fortran 32-byte complex number.
6133
122cf0f2
AB
61342019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6135
6136 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
6137 delete default constructor.
6138 (find_partial_die): Update to return const struct.
6139 (partial_die_parent_scope): Move variable declaration into scope
6140 of its use and change its type to auto.
6141 (guess_partial_die_structure_name): Likewise.
6142 (partial_die_info::fixup): Likewise.
6143
33d0e35a
TT
61442019-05-17 Tom Tromey <tromey@adacore.com>
6145
6146 * source.c (find_and_open_source): Remove cast.
6147
a45575b0
TT
61482019-05-17 Tom Tromey <tromey@adacore.com>
6149
6150 * annotate.c (annotate_source): Make "filename" const.
6151 * annotate.h (annotate_source): Use const.
6152
81f47ac2
AH
61532019-05-17 Alan Hayward <alan.hayward@arm.com>
6154
6155 * disasm.c (set_disassembler_options): Send errors to stderr.
6156
ca1285d1
AH
61572019-05-17 Alan Hayward <alan.hayward@arm.com>
6158
6159 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
6160 (cli_interp_base::set_logging): Check debug_redirect.
6161 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
6162 * cli/cli-logging.c (debug_redirect): Add static variable.
6163 (pop_output_files): Add default param.
6164 (handle_redirections): Print debug setting.
6165 (show_logging_command): Likewise.
6166 (_initialize_cli_logging): Add debugredirect command.
6167 * interps.c (current_interp_set_logging): Add debug_redirect
6168 parameter.
6169 * interps.h (set_logging): Add debug_redirect parameter.
6170 (current_interp_set_logging): Likewise.
6171 * mi/mi-common.h: Likewise.
6172 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
6173
61742019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
6175 Tom Tromey <tromey@adacore.com>
6176
6177 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
6178 directly.
6179 * cli/cli-interp.h (make_logging_output): Remove declaration.
6180 * cli/cli-logging.c (make_logging_output): Remove function.
6181 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
6182 directly.
6183 * ui-file.c (tee_file::tee_file): Remove bools.
6184 (tee_file::~tee_file): Remove deletes.
6185 * ui-file.h (tee_file): Remove bools.
6186
26648588
JV
61872019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
6188
6189 * mi/mi-cmds.h (mi_cmd_complete): New function.
6190 * mi/mi-main.c (mi_cmd_complete): Likewise.
6191 * mi/mi-cmds.c: Define new MI command -complete.
6192 * NEWS: Mention new -complete command.
6193
6e035501
JV
61942019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
6195
6196 * completer.h (complete): New function.
6197 * completer.c (complete): Likewise.
6198 * cli/cli-cmds.c: (complete_command): Update to use new complete()
6199 function defined in completer.h.
6200
7d0e2ece
JV
62012019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
6202
e79be6e5 6203 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 6204
fb816e8b
TV
62052019-05-17 Tom de Vries <tdevries@suse.de>
6206
6207 PR gdb/24094
6208 * dwarf2read.c (struct cu_partial_die_info): New struct.
6209 (find_partial_die): Return cu_partial_die_info.
6210 (partial_die_parent_scope, guess_partial_die_structure_name)
6211 (partial_die_info::fixup): Handle new return type of find_partial_die.
6212
677052f2
SDJ
62132019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6214
a1726c38 6215 PR breakpoints/24541
677052f2
SDJ
6216 * stap-probe.c (stap_parse_register_operand): Make "regname" an
6217 "std::string", simplifying the algorithm.
6218
f3da9116
SDJ
62192019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6220
6221 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
6222 (stap_static_probe_ops::get_probes): Likewise.
6223
f1bb75ab
SDJ
62242019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6225
6226 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
6227 '-')" and "else if".
6228 (stap_parse_single_operand): Join checks for
6229 "gdbarch_stap_parse_special_token_p" and
6230 "gdbarch_stap_parse_special_token" in the same "if" statement.
6231 Invert check when verifying for operation on register
6232 displacement.
6233
3ca58cde
SDJ
62342019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6235
6236 * stap-probe.c (stap_get_opcode): Update comment.
6237 (stap_get_expected_argument_type): Likewise.
6238 (handle_stap_probe): Likewise.
6239
af2d9bee
SDJ
62402019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6241
6242 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
6243 return type to 'bool'. Adjust comment. Use 'bool' when
6244 appropriate.
6245 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6246 * stap-probe.c (stap_parse_argument_1): Likewise.
6247 (stap_is_operator): Likewise.
6248 (stap_is_generic_prefix): Likewise.
6249 (stap_is_register_prefix): Likewise.
6250 (stap_is_register_indirection_prefix): Likewise.
6251 (stap_is_integer_prefix): Likewise.
6252 (stap_generic_check_suffix): Likewise.
6253 (stap_check_integer_suffix): Likewise.
6254 (stap_check_register_suffix): Likewise.
6255 (stap_check_register_indirection_suffix): Likewise.
6256 (stap_parse_register_operand): Likewise.
6257 (stap_parse_single_operand): Likewise.
6258 (stap_parse_argument_1): Likewise.
6259 (stap_probe::get_argument_count): Likewise.
6260 (stap_is_operator): Likewise.
6261
61c9c421
TT
62622019-05-16 Tom Tromey <tromey@adacore.com>
6263
6264 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
6265 keyword to foreach.
6266
9ddc1af1
SM
62672019-05-15 Simon Marchi <simon.marchi@efficios.com>
6268
6269 * linux-thread-db.c (try_thread_db_load_1): Change return type
6270 to bool.
6271 (try_thread_db_load): Likewise.
6272 (try_thread_db_load_from_pdir_1): Likewise.
6273 (try_thread_db_load_from_pdir): Likewise.
6274 (try_thread_db_load_from_sdir): Likewise.
6275 (try_thread_db_load_from_dir): Likewise.
6276 (thread_db_load_search): Likewise.
6277 (has_libpthread): Likewise.
6278 (thread_db_load): Likewise.
6279
7bede828
SDJ
62802019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
6281
6282 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6283 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
6284 NULL, and complain/return if that's the case.
6285
c5358db4
JD
62862019-05-15 John Darrington <john@darrington.wattle.id.au>
6287
6288 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
6289 (advance, posn, abstract_read_memory): New functions.
6290 [struct mem_read_abstraction]: New struct.
6291 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
6292
c408a94f
TT
62932019-05-14 Tom Tromey <tromey@adacore.com>
6294
6295 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
6296 value is not lval_memory.
6297
e7bd7fba
TT
62982019-05-14 Tom Tromey <tromey@adacore.com>
6299
6300 * solib.c (info_sharedlibrary_command): Style the file name.
6301
a6d0f249
AH
63022019-05-14 Alan Hayward <alan.hayward@arm.com>
6303
6304 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
6305 (aarch64_vnv_type): Likewise.
6306 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
6307 * common/tdesc.c: Likewise.
6308 * common/tdesc.h (enum tdesc_type_kind): Likewise.
6309 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
6310 * features/aarch64-fpu.xml: Add ieee half view.
6311 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
6312 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
6313 * gdbtypes.h (struct builtin_type): Likewise.
6314 (struct objfile_type): Likewise.
6315
66b8bb74
SM
63162019-05-12 Paul Naert <paul.naert@polymtl.ca>
6317
6318 * language.c (language_sniff_from_mangled_name): Fix "langauge"
6319 typo.
6320 * location.h (string_to_event_location): Likewise.
6321
21c219fd
JB
63222019-05-11 Joel Brobecker <brobecker@adacore.com>
6323
6324 GDB 8.3 released.
6325
13674803
SM
63262019-05-10 Simon Marchi <simon.marchi@efficios.com>
6327
6328 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
6329 New variable declaration.
6330 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
6331 New variable.
6332 (print_one_breakpoint): Use ui_out::test_flags and new global
6333 variable to compute use_fixed_output.
6334 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
6335 Remove.
6336 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
6337 (mi_multi_location_breakpoint_output_fixed): Remove.
6338 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
6339 new variable.
6340 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
6341 fix_multi_location_breakpoint_output flag if version >= 3.
6342 * ui-out.h (enum ui_out_flag)
6343 <fix_multi_location_breakpoint_output>: New enumerator.
6344
a9eac7f9
SM
63452019-05-10 Simon Marchi <simon.marchi@efficios.com>
6346
6347 * contrib/cc-with-tweaks.sh: Validate dwz's work.
6348
71bed2db
TT
63492019-05-10 Tom Tromey <tromey@adacore.com>
6350
6351 * ada-lang.c (catch_ada_completer): New function.
6352 (_initialize_ada_language): Use it.
6353
24c54127
TT
63542019-05-10 Tom Tromey <tromey@adacore.com>
6355
6356 * thread.c (print_thread_info): Make "requested_threads" const.
6357 * gdbthread.h (print_thread_info): Make "requested_threads"
6358 const.
6359 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
6360 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
6361
7a102139
TT
63622019-05-08 Tom Tromey <tom@tromey.com>
6363
6364 * gdbtypes.c (objfile_type_data): Change type.
6365 (objfile_type, _initialize_gdbtypes): Update.
6366
924d79e2
TT
63672019-05-08 Tom Tromey <tom@tromey.com>
6368
6369 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
6370 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
6371 (_initialize_dwarf2_frame): Update.
6372
4c58e337
TT
63732019-05-08 Tom Tromey <tom@tromey.com>
6374
6375 * objc-lang.c (objc_objfile_data): Change type.
6376 (find_methods): Update.
6377 (_initialize_objc_lang): Remove.
6378
d772d2ab
TT
63792019-05-08 Tom Tromey <tom@tromey.com>
6380
6381 * stabsread.c (rs6000_builtin_type_data): Change type.
6382 (rs6000_builtin_type, _initialize_stabsread): Update.
6383
d11d83f4
TT
63842019-05-08 Tom Tromey <tom@tromey.com>
6385
6386 * mips-tdep.c (mips_pdr_data): Remove.
6387 (_initialize_mips_tdep): Update.
6388
9a73f0ad
TT
63892019-05-08 Tom Tromey <tom@tromey.com>
6390
6391 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
6392 (hppa_init_objfile_priv_data, read_unwind_info)
6393 (find_unwind_entry, _initialize_hppa_tdep): Update.
6394
8127a2fa
TT
63952019-05-08 Tom Tromey <tom@tromey.com>
6396
6397 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
6398 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
6399 on obstack.
6400 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
6401
91d3055d
TT
64022019-05-08 Tom Tromey <tom@tromey.com>
6403
6404 * mdebugread.c (basic_type_data): Change type.
6405 (basic_type, _initialize_mdebugread): Update.
6406
31930bd3
TT
64072019-05-08 Tom Tromey <tom@tromey.com>
6408
6409 * common/gdb_unique_ptr.h (struct noop_deleter): New.
6410
bdb3ed9e
TT
64112019-05-08 Tom Tromey <tom@tromey.com>
6412
6413 * nto-tdep.c (nto_inferior_data_reg): Change type.
6414 (nto_inferior_data): Update.
6415 (nto_inferior_data_cleanup, nto_new_inferior_data)
6416 (_initialize_nto_tdep): Remove.
6417 * nto-tdep.h (struct nto_inferior_data): Add initializers.
6418
f37b313d
TT
64192019-05-08 Tom Tromey <tom@tromey.com>
6420
6421 * ada-lang.c (struct ada_inferior_data): Add initializers.
6422 (ada_inferior_data): Change type.
6423 (ada_inferior_data_cleanup): Remove.
6424 (get_ada_inferior_data, ada_inferior_exit)
6425 (struct ada_pspace_data): Add initializers, destructor.
6426 (ada_pspace_data_handle): Change type.
6427 (get_ada_pspace_data): Update.
6428 (ada_pspace_data_cleanup): Remove.
6429
24699405
TT
64302019-05-08 Tom Tromey <tom@tromey.com>
6431
6432 * coffread.c (struct coff_symfile_info): Add initializers.
6433 (coff_objfile_data_key): Move lower. Change type.
6434 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
6435 Update.
6436 (coff_free_info): Remove.
6437
d4e05d2f
TT
64382019-05-08 Tom Tromey <tom@tromey.com>
6439
6440 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
6441 (fbsd_pspace_data_handle): Move lower. Change type.
6442 (get_fbsd_pspace_data): Update.
6443 (fbsd_pspace_data_cleanup): Remove.
6444 (_initialize_fbsd_tdep): Update.
6445
14ef6690
TT
64462019-05-08 Tom Tromey <tom@tromey.com>
6447
6448 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
6449 (get_ada_tasks_pspace_data): Update.
6450 (ada_tasks_pspace_data_cleanup): Remove.
6451 (_initialize_tasks): Update.
6452 (ada_tasks_inferior_data_handle): Change type.
6453 (get_ada_tasks_inferior_data): Update.
6454 (ada_tasks_inferior_data_cleanup): Remove.
6455 (struct ada_tasks_pspace_data): Add initializers.
6456
814cf43a
TT
64572019-05-08 Tom Tromey <tom@tromey.com>
6458
6459 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
6460 * symfile-debug.c (debug_sym_get_probes): Change type.
6461 * stap-probe.c (handle_stap_probe):
6462 (stap_static_probe_ops::get_probes): Change type.
6463 * probe.h (class static_probe_ops) <get_probes>: Change type.
6464 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
6465 (parse_probes_in_pspace): Update.
6466 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
6467 Update.
6468 (any_static_probe_ops::get_probes): Change type.
6469 * elfread.c (elfread_data): New typedef.
6470 (probe_key): Change type.
6471 (elf_get_probes): Likewise. Update.
6472 (probe_key_free): Remove.
6473 (_initialize_elfread): Update.
6474 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
6475 Change type.
6476 (dtrace_process_dof_probe, dtrace_process_dof)
6477 (dtrace_static_probe_ops::get_probe): Change type.
6478
02dc647e
TT
64792019-05-08 Tom Tromey <tom@tromey.com>
6480
6481 * xcoffread.c (struct xcoff_symfile_info): Rename from
6482 coff_symfile_info. Add initializers.
6483 (xcoff_objfile_data_key): Move lower. Change type.
6484 (XCOFF_DATA): Rewrite.
6485 (xcoff_free_info): Remove.
6486 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
6487 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
6488 (xcoff_initial_scan): Update.
6489
09232438
TT
64902019-05-08 Tom Tromey <tom@tromey.com>
6491
6492 * solib-svr4.c (struct svr4_info): Add initializers and
6493 destructor.
6494 <probes_table>: Now an htab_up.
6495 (solib_svr4_pspace_data): Change type.
6496 (free_probes_table): Simplify.
6497 (~svr4_info): Rename from svr4_pspace_data_cleanup.
6498 (get_svr4_info, probes_table_htab_remove_objfile_probes)
6499 (probes_table_remove_objfile_probes, register_solib_event_probe)
6500 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
6501 (_initialize_svr4_solib): Update.
6502
7b4a314f
TT
65032019-05-08 Tom Tromey <tom@tromey.com>
6504
6505 * remote.c (remote_pspace_data): Change type.
6506 (remote_pspace_data_cleanup): Remove.
6507 (get_remote_exec_file, set_pspace_remote_exec_file)
6508 (_initialize_remote): Update.
6509
51d3063a
TT
65102019-05-08 Tom Tromey <tom@tromey.com>
6511
6512 * breakpoint.c (breakpoint_objfile_key): Change type.
6513 (get_breakpoint_objfile_data): Update.
6514 (free_breakpoint_objfile_data): Remove.
6515 (_initialize_breakpoint): Update.
6516
89fb8848
TT
65172019-05-08 Tom Tromey <tom@tromey.com>
6518
6519 * linux-tdep.c (struct linux_info): Add initializers.
6520 (linux_inferior_data): Move. Change type.
6521 (invalidate_linux_cache_inf): Update.
6522 (linux_inferior_data_cleanup): Remove.
6523 (get_linux_inferior_data, _initialize_linux_tdep): Update.
6524
e9b89e2d
TT
65252019-05-08 Tom Tromey <tom@tromey.com>
6526
6527 * auxv.c (auxv_inferior_data): Move. Change type.
6528 (auxv_inferior_data_cleanup): Remove.
6529 (invalidate_auxv_cache_inf): Rewrite.
6530 (get_auxv_inferior_data, _initialize_auxv): Update.
6531
8c42777c
TT
65322019-05-08 Tom Tromey <tom@tromey.com>
6533
6534 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
6535 (symfile_debug_objfile_data_key): Change type.
6536 (symfile_debug_installed, debug_qf_has_symbols)
6537 (debug_qf_find_last_source_symtab)
6538 (debug_qf_forget_cached_source_info)
6539 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
6540 (debug_qf_print_stats, debug_qf_dump)
6541 (debug_qf_expand_symtabs_for_function)
6542 (debug_qf_expand_all_symtabs)
6543 (debug_qf_expand_symtabs_with_fullname)
6544 (debug_qf_map_matching_symbols)
6545 (debug_qf_expand_symtabs_matching)
6546 (debug_qf_find_pc_sect_compunit_symtab)
6547 (debug_qf_map_symbol_filenames)
6548 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
6549 (debug_sym_new_init, debug_sym_init, debug_sym_read)
6550 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
6551 (debug_sym_read_linetable, debug_sym_relocate): Update.
6552 (symfile_debug_free_objfile): Remove.
6553 (install_symfile_debug_logging, _initialize_symfile_debug):
6554 Update.
6555
5bfd760d
TT
65562019-05-08 Tom Tromey <tom@tromey.com>
6557
6558 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
6559 allocate_on_obstack.
6560 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
6561 (get_dwarf2_per_objfile): Update.
6562 (set_dwarf2_per_objfile): Remove.
6563 (dwarf2_has_info, dwarf2_get_section_info): Update.
6564 (dwarf2_free_objfile): Remove.
6565 (_initialize_dwarf2_read): Update.
6566
e85e19b4
TT
65672019-05-08 Tom Tromey <tom@tromey.com>
6568
6569 * auto-load.c (struct auto_load_pspace_info): Add destructor and
6570 initializers.
6571 <unsupported_script_warning_printed,
6572 script_not_found_warning_printed>: Now bool.
6573 (auto_load_pspace_data): Change type.
6574 (~auto_load_pspace_info): Rename from
6575 auto_load_pspace_data_cleanup.
6576 (get_auto_load_pspace_data, init_loaded_scripts_info)
6577 (clear_section_scripts, maybe_print_unsupported_script_warning)
6578 (maybe_print_script_not_found_warning, _initialize_auto_load):
6579 Update.
6580
f6aa7436
TT
65812019-05-08 Tom Tromey <tom@tromey.com>
6582
6583 * objfiles.c (objfile_pspace_info): Add destructor and
6584 initializers.
6585 (objfiles_pspace_data): Change type.
6586 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
6587 (get_objfile_pspace_data): Update.
6588 (objfiles_bfd_data): Change type.
6589 (get_objfile_bfd_data): Update.
6590 (objfile_bfd_data_free, _initialize_objfiles): Remove.
6591
6ae614f6
TT
65922019-05-08 Tom Tromey <tom@tromey.com>
6593
6594 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
6595 Change type.
6596 (get_catch_syscall_inferior_data): Update.
6597 (catch_syscall_inferior_data_cleanup): Remove.
6598 (_initialize_break_catch_syscall): Update.
6599
6509b8eb
TT
66002019-05-08 Tom Tromey <tom@tromey.com>
6601
6602 * inflow.c (struct terminal_info): Add destructor and
6603 initializers.
6604 (inflow_inferior_data): Change type.
6605 (~terminal_info): Rename from inflow_inferior_data_cleanup.
6606 (get_inflow_inferior_data, inflow_inferior_exit)
6607 (swap_terminal_info, _initialize_inflow): Update.
6608
35632941
TT
66092019-05-08 Tom Tromey <tom@tromey.com>
6610
6611 * target-dcache.c (target_dcache_cleanup): Remove.
6612 (target_dcache_aspace_key): Change type.
6613 (target_dcache_init_p, target_dcache_invalidate)
6614 (target_dcache_get, target_dcache_get_or_init)
6615 (_initialize_target_dcache): Update.
6616 * dcache.h (struct dcache_deleter): New.
6617
3017b94d
TT
66182019-05-08 Tom Tromey <tom@tromey.com>
6619
6620 * symtab.c (struct symbol_cache): Add destructor and
6621 initializers.
6622 (symbol_cache_key): Move. Change type.
6623 (make_symbol_cache, free_symbol_cache): Remove.
6624 (get_symbol_cache): Update.
6625 (symbol_cache_cleanup): Remove.
6626 (ALL_PSPACES, symbol_cache_flush)
6627 (maintenance_print_symbol_cache)
6628 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
6629 Update.
6630
a32ad8c5
TT
66312019-05-08 Tom Tromey <tom@tromey.com>
6632
6633 * symtab.c (struct main_info): Add destructor and initializers.
6634 (main_progspace_key): Move. Change type.
6635 (get_main_info): Update.
6636 (main_info_cleanup): Remove.
6637 (_initialize_symtab): Update.
6638
5f6e90a0
TT
66392019-05-08 Tom Tromey <tom@tromey.com>
6640
6641 * registry.h (DECLARE_REGISTRY): Define the _key class.
6642
1bd0c6e4
AB
66432019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6644
6645 * NEWS: Merge two 'New commands' sections.
6646
2228ef77
XR
66472019-05-08 Joel Brobecker <brobecker@adacore.com>
6648
6649 * ada-valprint.c (ada_val_print_gnat_array): Remove language
6650 parameter and use Ada language definition instead.
6651 (ada_val_print_ptr): Remove unused language parameter.
6652 (ada_val_print_num): Remove language parameter and use Ada language
6653 definition instead.
6654 (ada_val_print_enum, ada_val_print_flt): Remove unused language
6655 parameter.
6656 (ada_val_print_struct_union, ada_val_print_ref): Remove language
6657 parameter and use Ada language definition instead.
6658 (ada_val_print_1): Update all ada_val_print_xxx calls.
6659 Remove language parameter.
6660 (ada_val_print): Update ada_val_print_1 call.
6661
60fcc1c3
TT
66622019-05-08 Tom Tromey <tromey@adacore.com>
6663
6664 * remote.c (remote_hw_watchpoint_limit)
6665 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
6666 Now static.
6667
ed2b7c17
TT
66682019-05-08 Tom Tromey <tromey@adacore.com>
6669
6670 * maint.c (_initialize_maint_cmds): Move initialization code to
6671 remote.c.
6672 (watchdog, show_watchdog): Move to remote.c.
6673 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
6674 "watchdog" static.
6675 (_initialize_remote): Move initialization code from maint.c.
6676 * defs.h (watchdog): Don't declare.
6677
b0be6c91
TT
66782019-05-08 Tom Tromey <tromey@adacore.com>
6679
6680 * tui/tui-interp.c: Include main.h.
6681 * interps.c: Include main.h.
6682 * main.h (interpreter_p): Declare.
6683 * defs.h (interpreter_p): Don't declare.
6684
587ee17b
TT
66852019-05-08 Tom Tromey <tromey@adacore.com>
6686
6687 * dwarf2loc.c: Include dwarf2read.h.
6688 * defs.h (read_unsigned_leb128): Don't declare.
6689 * dwarf2read.h (read_unsigned_leb128): Declare.
6690
ca1df239
TT
66912019-05-08 Tom Tromey <tromey@adacore.com>
6692
6693 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
6694 method.
6695
99f20f08
TT
66962019-05-08 Tom Tromey <tromey@adacore.com>
6697
6698 * utils.c (fputs_maybe_filtered): Reset style after paging, even
6699 when no wrap column is set.
6700
80e55b13
TT
67012019-05-08 Tom Tromey <tromey@adacore.com>
6702
6703 * c-lang.c (c_get_string): Handle non-C-style arrays.
6704
9d3421af
TT
67052019-05-08 Tom Tromey <tromey@adacore.com>
6706
6707 * typeprint.c (print_offset_data::update): Print the bit offset,
6708 not the number of bits remaining.
6709
844333e2
TT
67102019-05-08 Tom Tromey <tromey@adacore.com>
6711
6712 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
6713 padding at end of comment.
6714
988915ee
TT
67152019-05-08 Tom Tromey <tromey@adacore.com>
6716
6717 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
6718 Compare main types.
6719
26bfd823
TT
67202019-05-06 Tom Tromey <tom@tromey.com>
6721
6722 * common/scoped_mmap.c: Include common-defs.h.
6723 * common/scoped_mmap.h: Don't include config.h.
6724
89055eaa
TT
67252019-05-04 Tom Tromey <tom@tromey.com>
6726
6727 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
6728 (struct aarch64_call_info): Add initializers.
6729 <si>: Now a std::vector.
6730 (pass_on_stack, aarch64_push_dummy_call): Update.
6731
5da01df5
TT
67322019-05-04 Simon Marchi <simon.marchi@efficios.com>
6733 Tom Tromey <tom@tromey.com>
6734
6735 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
6736 (ppc_threads): Now a std::vector. Now static.
6737 (hwdebug_find_thread_points_by_tid)
6738 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
6739 Update.
6740
fbdf05a1
TT
67412019-05-04 Tom Tromey <tom@tromey.com>
6742
6743 * arc-tdep.c (arc_tdesc_init): Return bool.
6744
06d16ec9
TT
67452019-05-04 Tom Tromey <tom@tromey.com>
6746
6747 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
6748 Use gdb_assert_not_reached.
6749
9c056022
TT
67502019-05-04 Tom Tromey <tom@tromey.com>
6751
6752 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
6753 "false".
6754
fa9c2a59
TT
67552019-05-04 Tom Tromey <tom@tromey.com>
6756
6757 * arc-tdep.c (arc_tdesc_init): Use bool.
6758
e2eb806a
TT
67592019-05-04 Tom Tromey <tom@tromey.com>
6760
6761 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
6762
6fe87677
TT
67632019-05-04 Tom Tromey <tom@tromey.com>
6764
6765 * cli/cli-cmds.c (valid_command_p): Return bool.
6766
7f008c9e
TT
67672019-05-04 Tom Tromey <tom@tromey.com>
6768
6769 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
6770 * command.h (valid_user_defined_cmd_name_p): Channge return type.
6771
b6484282
RT
67722019-05-04 Raul Tambre <raul@tambre.ee>
6773
6774 * python/lib/gdb/prompt.py (_ExtendedPrompt)
6775 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
6776 operator for comparison.
6777
af97b416
TT
67782019-05-04 Tom Tromey <tom@tromey.com>
6779
6780 * psymtab.c (psymbol_name_matches, match_partial_symbol)
6781 (lookup_partial_symbol, print_partial_symbols)
6782 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
6783 (psymbol_compare): Update.
6784 (add_psymbol_to_bcache): Clear the entire psymbol.
6785 (maintenance_check_psymtabs): Update.
6786 * psympriv.h (struct partial_symbol): Don't derive from
6787 general_symbol_info.
6788 <obj_section, unrelocated_address, address,
6789 set_unrelocated_address>: Update.
6790 <ginfo>: New member.
6791 * dwarf-index-write.c (write_psymbols, debug_names::insert)
6792 (debug_names::write_psymbols): Update.
6793
9d6d4be8
TV
67942019-05-04 Tom de Vries <tdevries@suse.de>
6795
6796 * contrib/cc-with-tweaks.sh: Support -n arg.
6797
66452beb
PW
67982019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6799
6800 * corelow.c (core_target::detach): Ensure frame cache and
6801 register caches are cleared.
6802 inferior.c (exit_inferior_1): Likewise.
6803
bde09ab7
TT
68042019-05-03 Sandra Loosemore <sandra@codesourcery.com>
6805 Tom Tromey <tom@tromey.com>
6806
6807 * dictionary.c (collate_pending_symbols_by_language): Remove
6808 "struct" from foreach.
6809 * symtab.c (lookup_global_symbol_from_objfile)
6810 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
6811 foreach.
6812 * ser-tcp.c (net_open): Remove "struct" from foreach.
6813 * objfiles.c (objfile_relocate, objfile_rebase)
6814 (objfile_has_symbols): Remove "struct" from foreach.
6815 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
6816 from foreach.
6817 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
6818 foreach.
6819 * darwin-nat.c (thread_info_from_private_thread_info): Remove
6820 "struct" from foreach.
6821 * ada-lang.c (create_excep_cond_exprs)
6822 (ada_exception_catchpoint_cond_string): Remove "struct" from
6823 foreach.
6824
222a8d25
TT
68252019-05-03 Tom Tromey <tromey@adacore.com>
6826
6827 * ada-exp.y (convert_char_literal): Check suffix of each
6828 enumerator.
6829
fcd60b84
DP
68302019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
6831
6832 PR ada/21406:
6833 * ada-exp.y (yywrap): Don't define.
6834 * ada-lex.l (%option): Add noyywrap
6835 (yywrap): Remove.
6836
5f2459c2
EZ
68372019-05-03 Eli Zaretskii <eliz@gnu.org>
6838
353ea2d1
EZ
6839 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
6840 _WIN32_WINNT to the XP level, unless already defined to a higher
6841 level.
6842
6843 * unittests/parse-connection-spec-selftests.c:
6844 * ser-tcp.c:
6845 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
6846 override.
6847
5f2459c2
EZ
6848 * symfile.c (find_separate_debug_file): Remove colon from the
6849 drive spec of DOS/Windows file names of the target, so that the
6850 file name produced from DEBUGDIR and the target's directory will
6851 be valid on DOS/Windows systems.
6852
80062eb9
AB
68532019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
6854
6855 * rust-lang.c (val_print_struct): Handle printing structures
6856 containing strings.
6857
b8c05e85
TT
68582019-05-02 Tom Tromey <tromey@adacore.com>
6859
6860 * valarith.c (_initialize_valarith): Remove.
6861
4504bbde
TT
68622019-05-01 Tom Tromey <tromey@adacore.com>
6863
6864 * ada-lang.c (ada_value_primitive_field): Treat more fields as
6865 bitfields.
6866
d48e62f4
TT
68672019-05-01 Tom Tromey <tromey@adacore.com>
6868
6869 * ada-lang.c (ada_value_assign): Correctly compute starting offset
6870 for big-endian copies.
6871
15f18d14
AT
68722019-04-30 Ali Tamur <tamur@google.com>
6873 * gdb/dwarf2read.c (read_3_bytes): New declaration.
6874 (read_attribute_value): Added DW_FORM_strx1-4 cases.
6875 (read_3_bytes): New function.
6876
ab4ee614
JB
68772019-04-30 Joel Brobecker <brobecker@adacore.com>
6878
6879 * windows-nat.c (main_thread_id): Delete.
6880 (handle_output_debug_string): Replace main_thread_id by
6881 current_event.dwThreadId.
6882 (fake_create_process): Likewise.
6883 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
6884 Do not set main_thread_id.
6885 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
6886 current_event.dwThreadId.
6887 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
6888
8ed5b76e
JB
68892019-04-30 Joel Brobecker <brobecker@adacore.com>
6890
6891 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
6892 Use current_event.dwThreadId instead of main_thread_id.
6893
2ff0a947
TT
68942019-04-30 Tom Tromey <tromey@adacore.com>
6895
6896 * ada-lang.c (ada_lookup_simple_minsyms): New function.
6897 (create_excep_cond_exprs): Iterate over program spaces.
6898 (ada_exception_catchpoint_cond_string): Examine all minimal
6899 symbols for exception types.
6900
a776957c
TT
69012019-04-30 Tom Tromey <tromey@adacore.com>
6902
6903 PR c++/24470:
6904 * dwarf2read.c (process_structure_scope): Handle case where type
6905 has template parameters but no symbol was created.
6906
bc68014d
AB
69072019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6908 Chris January <chris.january@arm.com>
6909
6910 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
6911 qualifier.
6912 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
6913
f1fdc960
AB
69142019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6915
6916 * f-typeprint.c (f_print_type): Update rules for printing
6917 whitespace.
6918 (f_type_print_varspec_suffix): Likewise.
6919
bf7a4de1
AB
69202019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6921 Chris January <chris.january@arm.com>
6922
6923 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
6924 function arguments.
6925
bbe75b9d
AB
69262019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6927
6928 * f-lang.c (build_fortran_types): Change name of void type to
6929 lower case.
6930 * f-typeprint.c (f_type_print_base): Print the name of the void
6931 type, rather than a fixed string.
6932 * f-valprint.c (f_decorations): Use lower case void string.
6933
1db455a7
AB
69342019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6935 Chris January <chris.january@arm.com>
6936
6937 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
6938 types for Fortran.
6939
b6d03bb2
AB
69402019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6941 Chris January <chris.january@arm.com>
6942 David Lecomber <david.lecomber@arm.com>
6943
6944 * f-exp.y (BINOP_INTRINSIC): New token.
6945 (exp): New parser rule handling BINOP_INTRINSIC.
6946 (f77_keywords): Add new builtin procedures.
6947 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
6948 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6949 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
6950 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6951 (print_unop_subexp_f): New function.
6952 (print_binop_subexp_f): New function.
6953 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6954 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6955 (dump_subexp_body_f): Likewise.
6956 (operator_check_f): Likewise.
6957 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6958 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
6959
83228e93
AB
69602019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6961
6962 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
6963 UNOP_KIND.
6964 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
6965 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
6966 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
6967 (operator_length_f): New fuction.
6968 (print_subexp_f): New function.
6969 (op_name_f): New function.
6970 (dump_subexp_body_f): New function.
6971 (operator_check_f): New function.
6972 (exp_descriptor_f): Replace standard expression handling functions
6973 with new functions.
6974 * gdb/fortran-operator.def: New file.
6975 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
6976 * gdb/std-operator.def: Remove UNOP_KIND.
6977
6fdcd7cc
AB
69782019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6979
6980 * std-operator.def: Remove unbalanced, stray double quote
6981 character.
6982
2e62ab40
AB
69832019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6984 Chris January <chris.january@arm.com>
6985 Daniel Everett <daniel.everett@arm.com>
6986 Nick Forrington <nick.forrington@arm.com>
6987 Richard Bunt <richard.bunt@arm.com>
6988
6989 * cp-valprint.c (cp_print_value_fields): Allow an additional level
6990 of depth when printing anonymous structs or unions.
6991 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
6992 Don't print either the top-level value, or the children if the
6993 max-depth is exceeded.
6994 (ppscm_print_children): When printing the key of a map, allow one
6995 extra level of depth.
6996 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
6997 print either the top-level value, or the children if the max-depth
6998 is exceeded.
6999 (print_children): When printing the key of a map, allow one extra
7000 level of depth.
7001 * python/py-value.c (valpy_format_string): Add max_depth keyword.
7002 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
7003 (user_print_options): Initialise max_depth field.
7004 (val_print_scalar_or_string_type_p): New function.
7005 (val_print): Check to see if the max depth has been reached.
7006 (val_print_check_max_depth): Define new function.
7007 (show_print_max_depth): New function.
7008 (_initialize_valprint): Add 'print max-depth' option.
7009 * valprint.h (struct value_print_options) <max_depth>: New field.
7010 (val_print_check_max_depth): Declare new function.
7011 * NEWS: Document new feature.
7012
4be290b2
AB
70132019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7014
7015 * ada-lang.c (ada_language_defn): Initialise new field.
7016 * c-lang.c (c_is_string_type_p): New function.
7017 (c_language_defn): Initialise new field.
7018 (cplus_language_defn): Initialise new field.
7019 (asm_language_defn): Initialise new field.
7020 (minimal_language_defn): Initialise new field.
7021 * c-lang.h (c_is_string_type_p): Declare new function.
7022 * d-lang.c (d_language_defn): Initialise new field.
7023 * f-lang.c (f_is_string_type_p): New function.
7024 (f_language_defn): Initialise new field.
7025 * go-lang.c (go_is_string_type_p): New function.
7026 (go_language_defn): Initialise new field.
7027 * language.c (default_is_string_type_p): New function.
7028 (unknown_language_defn): Initialise new field.
7029 (auto_language_defn): Initialise new field.
7030 * language.h (struct language_defn) <la_is_string_type_p>: New
7031 member variable.
7032 (default_is_string_type_p): Declare new function.
7033 * m2-lang.c (m2_language_defn): Initialise new field.
7034 * objc-lang.c (objc_language_defn): Initialise new field.
7035 * opencl-lang.c (opencl_language_defn): Initialise new field.
7036 * p-lang.c (pascal_is_string_type_p): New function.
7037 (pascal_language_defn): Initialise new field.
7038 * rust-lang.c (rust_is_string_type_p): New function.
7039 (rust_language_defn): Initialise new field.
7040
721b08c6
AB
70412019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7042
7043 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
7044 New field.
7045 * ada-lang.c (ada_language_defn): Initialise new field.
7046 * c-lang.c (c_language_defn): Likewise.
7047 (cplus_language_defn): Likewise.
7048 (asm_language_defn): Likewise.
7049 (minimal_language_defn): Likewise.
7050 * d-lang.c (d_language_defn): Likewise.
7051 * f-lang.c (f_language_defn): Likewise.
7052 * go-lang.c (go_language_defn): Likewise.
7053 * language.c (unknown_language_defn): Likewise.
7054 (auto_language_defn): Likewise.
7055 * m2-lang.c (m2_language_defn): Likewise.
7056 * objc-lang.c (objc_language_defn): Likewise.
7057 * opencl-lang.c (opencl_language_defn): Likewise.
7058 * p-lang.c (pascal_language_defn): Likewise.
7059 * rust-lang.c (rust_language_defn): Likewise.
7060
fc913e53
AB
70612019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7062
7063 * ada-lang.c (ada_is_character_type): Change return type to bool.
7064 (ada_is_string_type): Likewise.
7065 * ada-lang.h (ada_is_character_type): Update declaration
7066 (ada_is_string_type): Likewise.
7067
fa731fa0
PW
70682019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7069
7070 Support style in 'frame|thread apply'
7071
7072 * gdbcmd.h (execute_command_to_string): New term_out parameter.
7073 * record.c (record_start, record_stop): Update callers of
7074 execute_command_to_string with false.
7075 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
7076 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
7077 methods.
7078 (class string_file): New constructor with term_out parameter.
7079 Override methods term_out and can_emit_style_escape. New member
7080 term_out.
7081 (class stdio_file): Override can_emit_style_escape.
7082 (class tee_file): Override term_out and can_emit_style_escape.
7083 * utils.h (can_emit_style_escape): Remove.
7084 * utils.c (can_emit_style_escape): Likewise.
7085 Update all callers of can_emit_style_escape (SOMESTREAM) to
7086 SOMESTREAM->can_emit_style_escape.
7087 * source-cache.c (source_cache::get_source_lines): Likewise.
7088 * stack.c (frame_apply_command_count): Call execute_command_to_string
7089 passing the term_out characteristic of the current gdb_stdout.
7090 * thread.c (thr_try_catch_cmd): Likewise.
7091 * top.c (execute_command_to_string): pass term_out parameter
7092 to construct the string_file for the command output.
7093 * ui-file.c (term_cli_styling): New function (most code moved
7094 from utils.c can_emit_style_escape).
7095 (string_file::string_file, string_file::can_emit_style_escape,
7096 stdio_file::can_emit_style_escape, tee_file::term_out,
7097 tee_file::can_emit_style_escape): New functions.
7098
136afab8
PW
70992019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7100
7101 * NEWS: Mention the new set|show may-call-functions.
7102 * infcall.c (may_call_functions_p): New variable.
7103 (show_may_call_functions_p): New function.
7104 (call_function_by_hand_dummy): Throws an error if not
7105 may-call-functions.
7106 (_initialize_infcall): Call add_setshow_boolean_cmd for
7107 may-call-functions.
7108
725cbb63
KS
71092019-04-25 Keith Seitz <keiths@redhat.com>
7110
7111 PR c++/24367
7112 * cp-support.c (inspect_type): Don't attempt substitutions
7113 of symbol with the same name.
7114
3d1cbb78
TT
71152019-04-25 Tom Tromey <tromey@adacore.com>
7116
7117 PR gdb/24475:
7118 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
7119 static.
7120
94aeb44b
TT
71212019-04-25 Tom Tromey <tromey@adacore.com>
7122
7123 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
7124 rvalue reference.
7125 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
7126 (gdb_xml_parser::parse): Use std::move.
7127 * python/python-internal.h (gdbpy_convert_exception): Take a const
7128 reference.
7129 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
7130 std::move.
7131 * python/py-utils.c (gdbpy_convert_exception): Take a const
7132 reference.
7133 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7134 Use std::move.
7135 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7136 Use std::move.
7137 * mi/mi-main.c (mi_print_exception): Take a const reference.
7138 * main.c (handle_command_errors): Take a const reference.
7139 * linespec.c (parse_linespec): Use std::move.
7140 * infcall.c (run_inferior_call): Use std::move.
7141 (call_function_by_hand_dummy): Use std::move.
7142 * exec.c (try_open_exec_file): Use std::move.
7143 * exceptions.h (exception_print, exception_fprintf)
7144 (exception_print_same): Update.
7145 * exceptions.c (print_exception, exception_print)
7146 (exception_fprintf, exception_print_same): Change parameters to
7147 const reference.
7148 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
7149 * common/new-op.c: Use std::move.
7150 * common/common-exceptions.h (struct gdb_exception): Add move
7151 constructor.
7152 (struct gdb_exception_error, struct gdb_exception_quit, struct
7153 gdb_quit_bad_alloc): Change constructor to move constructor.
7154 (throw_exception): Change parameter to rvalue reference.
7155 * common/common-exceptions.c (throw_exception): Take rvalue
7156 reference.
7157 * cli/cli-interp.c (safe_execute_command): Use std::move.
7158 * breakpoint.c (insert_bp_location, location_to_sals): Use
7159 std::move.
7160
680d7fd5
TT
71612019-04-25 Tom Tromey <tromey@adacore.com>
7162
7163 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
7164 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
7165 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
7166 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
7167 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
7168 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
7169 guile/scm-value.c: Use unpack.
7170 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
7171 gdbscm_gdb_exception.
7172 (gdbscm_throw_gdb_exception): Likewise.
7173 (struct gdbscm_gdb_exception): New.
7174 (unpack): New function.
7175 (gdbscm_wrap): Use unpack.
7176
c6fdd8b2
TT
71772019-04-25 Tom Tromey <tromey@adacore.com>
7178
7179 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7180 (gdb_rl_callback_handler): Use std::move.
7181 * common/common-exceptions.h (struct gdb_exception): Add move
7182 assignment operator.
7183 (throw_exception_sjlj): Change "exception" to const reference.
7184 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
7185 (throw_exception_sjlj): Change "exception" to const reference.
7186
cc06b668
TT
71872019-04-25 Tom Tromey <tromey@adacore.com>
7188
7189 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
7190 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
7191 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7192 Update.
7193 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7194 Update.
7195 * mi/mi-interp.c (mi_interp::exec): Update.
7196 * linespec.c (parse_linespec): Update.
7197 * infcall.c (run_inferior_call): Update.
7198 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
7199 * guile/scm-symbol.c (gdbscm_lookup_symbol)
7200 (gdbscm_lookup_global_symbol): Update.
7201 * guile/scm-param.c (gdbscm_parameter_value): Update.
7202 * guile/scm-frame.c (gdbscm_frame_read_register)
7203 (gdbscm_frame_read_var): Update.
7204 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7205 * exec.c (try_open_exec_file): Update.
7206 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7207 (gdb_rl_callback_handler): Update.
7208 * common/common-exceptions.h (exception_none): Don't declare.
7209 * common/common-exceptions.c (exception_none): Don't define.
7210 (struct catcher) <exception>: Update.
7211 * cli/cli-interp.c (safe_execute_command): Update.
7212 * breakpoint.c (insert_bp_location, location_to_sals): Update.
7213
cf532bd1
AT
72142019-04-25 Ali Tamur <tamur@google.com>
7215
7216 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
7217 (read_attribute_value): Likewise.
7218 (dwarf2_read_addr_index): Update comment.
7219 (read_str_index): Add DW_FORM_strx.
7220 (dwarf2_string_attr): Likewise.
7221 (dwarf2_const_value_attr): Likewise.
7222 (dump_die_shallow): Likewise.
7223 (dwarf2_fetch_constant_bytes): Likewise.
7224 (skip_form_bytes): Likewise.
7225 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
7226
82433e3e
SDJ
72272019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7228
7229 PR corefiles/11608
7230 PR corefiles/18187
7231 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
7232 OFFSET. Verify if current mapping contains an ELF header.
7233 (linux_find_memory_regions_full): Adjust call to
7234 dump_mapping_p.
7235
723adb65
SL
72362019-04-25 Sandra Loosemore <sandra@codesourcery.com>
7237 Kang Li <kanglictf@gmail.com>
7238
7239 PR gdb/21600
7240
7241 * dwarf2-frame.c (read_initial_length): Be consistent about using
7242 unsigned representation of length.
7243 (decode_frame_entry_1): Likewise. Check for wraparound of
7244 end pointer as well as buffer overflow.
7245
596179f7
SDJ
72462019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7247
7248 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
7249 "vq".
7250
a59240a4
TT
72512019-04-24 Tom Tromey <tromey@adacore.com>
7252
7253 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
7254
f872fdbb
AB
72552019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7256
7257 * s12z-tdep.c (s12z_unwind_pc): Delete.
7258 (s12z_unwind_sp): Delete.
7259 (s12z_gdbarch_init): Don't register deleted functions with
7260 gdbarch.
7261
b614e6f3
AB
72622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7263
7264 * rl78-tdep.c (rl78_unwind_sp): Delete.
7265 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
7266
14faed38
AB
72672019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7268
7269 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
7270 (xstormy16_unwind_pc): Delete.
7271 (xstormy16_dummy_id): Delete.
7272 (xstormy16_gdbarch_init): Don't register deleted functions with
7273 gdbarch.
7274
541aad8a
AB
72752019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7276
7277 * vax-tdep.c (vax_unwind_pc): Delete.
7278 (vax_gdbarch_init): Don't register deleted function with gdbarch.
7279
29222070
AB
72802019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7281
7282 * v850-tdep.c (v850_unwind_sp): Delete.
7283 (v850_unwind_pc): Delete.
7284 (v850_dummy_id): Delete.
7285 (v850_gdbarch_init): Don't register deleted functions with
7286 gdbarch.
7287
0f534d76
AB
72882019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7289
7290 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
7291 (tilegx_unwind_pc): Delete.
7292 (tilegx_unwind_dummy_id): Delete.
7293 (tilegx_gdbarch_init): Don't register deleted functions with
7294 gdbarch.
7295
1ba7b7f9
AB
72962019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7297
7298 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
7299 (tic6x_dummy_id): Delete.
7300 (tic6x_gdbarch_init): Don't register deleted functions with
7301 gdbarch.
7302
d31f262c
AB
73032019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7304
7305 * sparc-tdep.c (sparc_unwind_pc): Delete.
7306 (sparc32_gdbarch_init): Don't register deleted function with
7307 gdbarch.
7308
6d14d64d
AB
73092019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7310
7311 * sh-tdep.c (sh_unwind_sp): Delete.
7312 (sh_unwind_pc): Delete.
7313 (sh_dummy_id): Delete.
7314 (sh_gdbarch_init): Don't register deleted functions with
7315 gdbarch.
7316
a40dde9d
AB
73172019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7318
7319 * score-tdep.c (score_unwind_sp): Delete.
7320 (score_unwind_pc): Delete.
7321 (score_dummy_id): Delete.
7322 (score_gdbarch_init): Don't register deleted functions with
7323 gdbarch.
7324
47c47d69
AB
73252019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7326
7327 * rx-tdep.c (rx_unwind_pc): Delete.
7328 (rx_unwind_sp): Delete.
7329 (rx_dummy_id): Delete.
7330 (rx_gdbarch_init): Don't register deleted functions with
7331 gdbarch. Update comment.
7332
833a4480
AB
73332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7334
7335 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
7336 (rs6000_dummy_id): Delete.
7337 (rs6000_gdbarch_init): Don't register deleted functions with
7338 gdbarch.
7339
3f2cef49
AB
73402019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7341
7342 * or1k-tdep.c (or1k_dummy_id): Delete.
7343 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
7344
96acf884
AB
73452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7346
7347 * nios2-tdep.c (nios2_dummy_id): Delete.
7348 (nios2_unwind_sp): Delete.
7349 (nios2_gdbarch_init): Don't register deleted functions with
7350 gdbarch.
7351
ca0ab0aa
AB
73522019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7353
7354 * nds32-tdep.c (nds32_dummy_id): Delete.
7355 (nds32_unwind_pc): Delete.
7356 (nds32_unwind_sp): Delete.
7357 (nds32_gdbarch_init): Don't register deleted functions with
7358 gdbarch.
7359
c8259044
AB
73602019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7361
7362 * msp430-tdep.c (msp430_unwind_pc): Delete.
7363 (msp430_unwind_sp): Delete.
7364 (msp430_dummy_id): Delete.
7365 (msp430_gdbarch_init): Don't register deleted functions with
7366 gdbarch.
7367
27f113c8
AB
73682019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7369
7370 * moxie-tdep.c (moxie_unwind_sp): Delete.
7371 (moxie_unwind_pc): Delete.
7372 (moxie_dummy_id): Delete.
7373 (moxie_gdbarch_init): Don't register deleted functions with
7374 gdbarch.
7375
aee6c3cd
AB
73762019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7377
7378 * mn10300-tdep.c (mn10300_dummy_id): Delete.
7379 (mn10300_unwind_pc): Delete.
7380 (mn10300_unwind_sp): Delete.
7381 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
7382 mn10300_unwind_sp.
7383 (mn10300_frame_unwind_init): Don't register deleted functions with
7384 gdbarch.
7385
8e2b5aea
AB
73862019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7387
7388 * mep-tdep.c (mep_unwind_pc): Delete.
7389 (mep_unwind_sp): Delete.
7390 (mep_dummy_id): Delete.
7391 (mep_gdbarch_init): Don't register deleted functions with
7392 gdbarch.
7393
43cf3ede
AB
73942019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7395
7396 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
7397 (m68hc11_unwind_sp): Delete.
7398 (m68hc11_gdbarch_init): Don't register deleted functions with
7399 gdbarch.
7400
5e79b7bb
AB
74012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7402
7403 * m32r-tdep.c (m32r_unwind_sp): Delete.
7404 (m32r_unwind_pc): Delete.
7405 (m32r_dummy_id): Delete.
7406 (m32r_gdbarch_init): Don't register deleted functions with
7407 gdbarch.
7408
89b268d8
AB
74092019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7410
7411 * m32c-tdep.c (m32c_unwind_pc): Delete.
7412 (m32c_unwind_sp): Delete.
7413 (m32c_dummy_id): Delete.
7414 (m32c_gdbarch_init): Don't register deleted functions with
7415 gdbarch.
7416
946c28d2
AB
74172019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7418
7419 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
7420 (lm32_unwind_pc): Delete.
7421 (lm32_dummy_id): Delete.
7422 (lm32_gdbarch_init): Don't register deleted functions with
7423 gdbarch.
7424
bf12844a
AB
74252019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7426
7427 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
7428 (iq2000_unwind_pc): Delete.
7429 (iq2000_dummy_id): Delete.
7430 (iq2000_gdbarch_init): Don't register deleted functions with
7431 gdbarch.
7432
ecbc06d2
AB
74332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7434
7435 * nds32-tdep.c (nds32_type_align): Delete.
7436 (nds32_push_dummy_call): Use type_align instead.
7437
030197b4
AB
74382019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7439
7440 * arm-tdep.c (arm_type_align): Only handle vector override case.
7441 (arm_push_dummy_call): Use type_align.
7442 (arm_gdbarch_init): Register arm_type_align gdbarch function.
7443
b907456c
AB
74442019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7445
7446 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
7447 case.
7448 (pass_on_stack): Use type_align.
7449 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
7450 function.
7451
9e97ba43
TT
74522019-04-23 Tom Tromey <tromey@adacore.com>
7453
7454 * dwarf2read.c (line_header::file_name_at): Remove unused
7455 overload.
7456
6892f601
TV
74572019-04-23 Tom de Vries <tdevries@suse.de>
7458
7459 PR gdb/24438
7460 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
7461 invocation.
7462
336d760d
AT
7463
74642019-03-27 Ali Tamur <tamur@google.com>
7465
7466 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
7467 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
7468 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
7469 (dwarf_expr_context::get_addr_index): Likewise
7470 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
7471 (symbol_needs_eval_context::get_addr_index): Likewise
7472 (disassemble_dwarf_expression): Add DW_OP_addrx
7473 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
7474 (read_cutu_die_from_dwo): Update comment
7475 (skip_one_die): Add DW_FORM_addrx
7476 (read_attribute_value): Likewise
7477 (var_decode_location): Add DW_OP_addrx
7478 (dwarf2_const_value_attr): Add DW_FORM_addrx
7479 (dump_die_shallow): Likewise
7480 (dwarf2_fetch_constant_bytes): Likewise
7481 (decode_locdesc): Add DW_OP_addrx
7482 (skip_form_bytes): Add DW_FORM_addrx
7483
ad9d13f8
AT
74842019-04-22 Ali Tamur <tamur@google.com>
7485
7486 * MAINTAINERS (Write After Approval): Add self.
7487
d70cc3ba
SM
74882019-04-22 Simon Marchi <simon.marchi@efficios.com>
7489
7490 * solib-svr4.c (get_svr4_info): Add pspace parameter.
7491 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
7492 (open_symbol_file_object): Likewise.
7493 (svr4_default_sos): Add info parameter.
7494 (svr4_read_so_list): Likewise.
7495 (svr4_current_sos_direct): Adjust functions calls to pass down
7496 info.
7497 (svr4_current_sos_1): Add info parameter.
7498 (svr4_current_sos): Call get_svr4_info, pass info down to
7499 svr4_current_sos_1.
7500 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
7501 get_svr4_info.
7502 (svr4_in_dynsym_resolve_code): Pass current_program_space to
7503 get_svr4_info.
7504 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
7505 to get_svr4_info.
7506 (probes_table_remove_objfile_probes): Likewise.
7507 (register_solib_event_probe): Add info parameter.
7508 (solist_update_incremental): Pass info parameter down to
7509 svr4_read_so_list.
7510 (disable_probes_interface): Add info parameter.
7511 (svr4_handle_solib_event): Pass current_program_space to
7512 get_svr4_info. Adjust disable_probes_interface cleanup.
7513 (svr4_create_probe_breakpoints): Add info parameter, pass it
7514 down to register_solib_event_probe.
7515 (svr4_create_solib_event_breakpoints): Add info parameter,
7516 pass it down to svr4_create_probe_breakpoints.
7517 (enable_break): Pass info down to
7518 svr4_create_solib_event_breakpoints.
7519 (svr4_solib_create_inferior_hook): Pass current_program_space to
7520 get_svr4_info.
7521 (svr4_clear_solib): Likewise.
7522
7905fc35
PA
75232019-04-22 Pedro Alves <palves@redhat.com>
7524
7525 * solib-svr4.c (svr4_free_objfile_observer): New.
7526 (probe_and_action::objfile): New field.
7527 (probes_table_htab_remove_objfile_probes)
7528 (probes_table_remove_objfile_probes): New functions.
7529 (register_solib_event_probe): Add 'objfile' parameter. Store it
7530 in the new probe_and_action. Don't store the probe in 'lookup'.
7531 (svr4_create_probe_breakpoints): Pass objfile to
7532 register_solib_event_probe.
7533 (_initialize_svr4_solib): Register a free_objfile observer.
7534
fb881986
TT
75352019-04-19 Tom Tromey <tom@tromey.com>
7536
7537 * common/queue.h: Remove.
7538
8732db6c
TT
75392019-04-19 Tom Tromey <tom@tromey.com>
7540
7541 * event-loop.c: Don't include "common/queue.h".
7542
97dfbadd
TT
75432019-04-19 Tom Tromey <tom@tromey.com>
7544
7545 * remote.c (remote_target): Use delete.
7546 * remote-notif.h: Include <list>, not "common/queue.h".
7547 (notif_client_p): Remove typedef.
7548 (remote_notif_state): Add constructor, destructor, initializer.
7549 <notif_queue>: Now a std::list.
7550 (remote_notif_state_xfree): Don't declare.
7551 * remote-notif.c (remote_notif_process, handle_notification)
7552 (remote_notif_state_allocate): Update.
7553 (~remote_notif_state): Rename from remote_notif_state_xfree.
7554
cf250e36
TT
75552019-04-19 Tom Tromey <tom@tromey.com>
7556
7557 * symfile.c (reread_symbols): Update.
7558 * objfiles.c (objfile_register_static_link)
7559 (objfile_lookup_static_link): Update
7560 (~objfile) Don't delete static_links.
7561 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
7562
61f4b350
TT
75632019-04-19 Tom Tromey <tom@tromey.com>
7564
7565 * type-stack.h (struct type_stack) <insert>: Constify string.
7566 * type-stack.c (type_stack::insert): Constify string.
7567 * gdbtypes.h (lookup_template_type): Update.
7568 (address_space_name_to_int): Update.
7569 * gdbtypes.c (address_space_name_to_int): Make space_identifier
7570 const.
7571 (lookup_template_type): Make name const.
7572 * c-exp.y: Update rules.
7573 (lex_one_token, classify_name, classify_inner_name)
7574 (c_print_token): Update.
7575 * p-exp.y: Update rules.
7576 (yylex): Update.
7577 * f-exp.y: Update rules.
7578 (yylex): Update.
7579 * d-exp.y: Update rules.
7580 (lex_one_token, classify_name, classify_inner_name): Update.
7581 * parse.c (write_dollar_variable, copy_name): Return std::string.
7582 * parser-defs.h (copy_name): Change return type.
7583 * m2-exp.y: Update rules.
7584 (yylex): Update.
7585 * go-exp.y (lex_one_token): Update.
7586 Update rules.
7587 (classify_unsafe_function, classify_packaged_name)
7588 (classify_name, yylex): Update.
7589
189b8c2e
ST
75902019-04-19 Sergei Trofimovich <siarheit@google.com>
7591
7592 * configure.ac: add --enable-source-highlight switch.
7593 * configure: Regenerate.
7594 * top.c (print_gdb_version): plumb --enable-source-highlight
7595 status to "show configuration".
7596
8ecb59f8
TT
75972019-04-19 Tom Tromey <tromey@adacore.com>
7598
7599 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
7600 Check ADA_TYPE_P.
7601 (empty_record, ada_template_to_fixed_record_type_1)
7602 (template_to_static_fixed_type)
7603 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
7604 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
7605 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
7606 macros.
7607
62160ec9
TT
76082019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
7609
7610 PR symtab/24423:
7611 * source.c (print_source_lines_base): Advance "iter" when a
7612 control character is seen.
7613
f2ae8bc8
PW
76142019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7615
7616 * inferior.h (struct infcall_suspend_state_deleter):
7617 Catch exception in destructor to avoid crash.
7618
d563b953
PW
76192019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7620
7621 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
7622 close to the add_com "shell".
7623
dc34c897
TT
76242019-04-18 Tom Tromey <tromey@adacore.com>
7625
7626 * process-stratum-target.h (class process_stratum_target)
7627 <stratum>: Add "final".
7628
a12e5744
TT
76292019-04-17 Tom Tromey <tromey@adacore.com>
7630
7631 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
7632 against nullptr before use.
7633
a7e559cc
AH
76342019-04-17 Alan Hayward <alan.hayward@arm.com>
7635
7636 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
7637
c01660c6
AB
76382019-04-17 Jim Wilson <jimw@sifive.com>
7639 Andrew Burgess <andrew.burgess@embecosm.com>
7640
7641 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
7642 code read might fail, assume 4-byte breakpoint in that case.
7643
4aa866af
LS
76442019-04-15 Leszek Swirski <leszeks@google.com>
7645
7646 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
7647 rather than a hand-rolled POD check when checking for forced MEMORY
7648 classification.
7649
48574d91
AH
76502019-04-15 Alan Hayward <alan.hayward@arm.com>
7651
7652 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
7653 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
7654 function.
7655 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
7656 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
7657 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
7658 declaration.
7659
4da037ef
AH
76602019-04-15 Alan Hayward <alan.hayward@arm.com>
7661
7662 * aarch64-linux-nat.c
7663 (aarch64_linux_nat_target::thread_architecture): Add override.
7664 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
7665 each VQ.
7666
ccb8d7e8
AH
76672019-04-15 Alan Hayward <alan.hayward@arm.com>
7668
7669 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
7670
35add35e
AB
76712019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
7672
7673 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
7674 target types of size 96-bits, add some additional comments, and
7675 check that the builtin type we found was the correct size.
7676
51196bbc
EZ
76772019-04-12 Eli Zaretskii <eliz@gnu.org>
7678
7679 * utils.c (prompt_for_continue): Don't restore the styling at the
7680 end, as applied_style has the wrong value. This fixes styling in
7681 long lists of file names that are interrupted by the "Continue?"
7682 prompt.
7683
62253a61
AB
76842019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
7685
7686 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
7687 * c-lang.c (c_language_defn): Likewise.
7688 (cplus_language_defn): Likewise.
7689 (asm_language_defn): Likewise.
7690 (minimal_language_defn): Likewise.
7691 * d-lang.c (d_language_defn): Likewise.
7692 * f-lang.c (f_language_defn): Likewise.
7693 * go-lang.c (go_language_defn): Likewise.
7694 * language.c (unknown_language_defn): Likewise.
7695 (auto_language_defn): Likewise.
7696 * language.h (struct language_defn): Remove la_magic field.
7697 (LANG_MAGIC): Delete.
7698 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
7699 * objc-lang.c (objc_language_defn): Likewise.
7700 * opencl-lang.c (opencl_language_defn): Likewise.
7701 * p-lang.c (pascal_language_defn): Likewise.
7702 * rust-lang.c (rust_language_defn): Likewise.
7703
a9158a86
AB
77042019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7705
7706 * riscv-tdep.c (riscv_type_align): New function.
7707 (riscv_type_alignment): Delete.
7708 (riscv_arg_location): Use 'type_align'.
7709 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
7710
41077b66
AB
77112019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7712
7713 * gdbtypes.c (type_align): A struct with no non-static fields also
7714 has alignment of 1.
7715
9f0272f8
AB
77162019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7717
7718 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
7719 component to 0.
7720 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
7721 member.
7722 (riscv_struct_info::analyse): New implementation using new
7723 analyse_inner member function.
7724 (riscv_struct_info::field_offset): New member function.
7725 (riscv_struct_info::m_offsets): New member variable.
7726 (riscv_struct_info::analyse_inner): New private member function,
7727 takes the old implementation of riscv_struct_info::analyse but
7728 extended to track field offsets.
7729 (riscv_call_arg_struct): Update the struct folding special cases
7730 to handle cases where empty C++ structs, which are non-zero
7731 length, are found.
7732 (riscv_arg_location): Initialise the length of each location, a
7733 non-zero length now indicates the location is in use.
7734 (riscv_push_dummy_call): Allow for the first location having a
7735 non-zero offset when setting up arguments.
7736 (riscv_return_value): Likewise, but for return values.
7737
02cf60c7
TT
77382019-04-11 Tom Tromey <tromey@adacore.com>
7739
7740 * utils.c (internal_vproblem): Make "msg" const.
7741
68811f8f
AH
77422019-04-11 Alan Hayward <alan.hayward@arm.com>
7743
7744 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
7745 * trad-frame.c (trad_frame_reset_saved_regs): New function.
7746 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
7747 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
7748
3f52fdbc
KB
77492019-04-10 Kevin Buettner <kevinb@redhat.com>
7750
7751 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
7752 function.
7753 (fill_gregset): Call amd64_linux_collect_native_gregset instead
7754 of amd64_collect_native_gregset.
7755 (amd64_linux_nat_target::store_registers): Likewise.
7756
e9ad22ee
TT
77572019-04-10 Tom Tromey <tom@tromey.com>
7758
7759 * symtab.c (lookup_global_symbol_from_objfile)
7760 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
7761 * objfiles.h (class separate_debug_iterator): New.
7762 (class separate_debug_range): New.
7763 (struct objfile) <separate_debug_objfiles>: New method.
7764 (objfile_separate_debug_iterate): Don't declare.
7765 * objfiles.c (separate_debug_iterator::operator++): Rename from
7766 objfile_separate_debug_iterate.
7767 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
7768 iterator.
7769 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
7770 iterator.
7771
ee371134
TT
77722019-04-10 Tom Tromey <tom@tromey.com>
7773
7774 * symfile.c (reread_symbols): Remove old comment.
7775 * objfiles.c (free_all_objfiles): Fix a typo.
7776
bf227d61
TT
77772019-04-10 Tom Tromey <tom@tromey.com>
7778
7779 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
7780 * minsyms.c (lookup_minimal_symbol): Use foreach.
7781 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7782 (lookup_minimal_symbol_solib_trampoline): Likewise.
7783 * symfile.c (reread_symbols): Use foreach.
7784
8dc433a0
TT
77852019-04-09 Ivan Begert <ivanbegert@gmail.com>
7786 Tom Tromey <tromey@adacore.com>
7787
7788 PR rust/24414:
7789 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
7790 (rust_lex_int_test): Change "value" to be LONGEST.
7791 (rust_lex_tests): Add test for long integer literal.
7792
9ab8741a
TT
77932019-04-09 Tom Tromey <tromey@adacore.com>
7794
7795 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
7796 to bool.
7797 (extended_remote_target::attach): Update.
7798 (remote_target::remote_notice_new_inferior): Update.
7799 (remote_target::add_current_inferior_and_thread): Update.
7800 * inferior.c (exit_inferior_1): Use "false".
7801 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
7802
e242fd12
SM
78032019-04-09 Simon Marchi <simon.marchi@efficios.com>
7804
9ca1957f 7805 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
7806 the "start" command.
7807
2b0c8b01
KB
78082019-04-08 Kevin Buettner <kevinb@redhat.com>
7809
7810 * python/py-inferior.c (infpy_thread_from_thread_handle):
7811 Adjust comments to reflect renaming of thread_from_thread_handle
7812 to thread_from_handle. Adjust keywords. Fix type error message.
7813 (inferior_object_methods): Add thread_from_handle. Retain
7814 thread_from_thread_handle, but mark it as deprecated.
7815
50a82723
KB
78162019-04-08 Kevin Buettner <kevinb@redhat.com>
7817
7818 * gdbthread.h (find_thread_by_handle): Revise declaration.
7819 * thread.c (find_thread_by_handle): Likewise. Adjust
7820 implementation too.
7821 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
7822 support for buffer objects as handles.
7823
cf63b016
KB
78242019-04-08 Kevin Buettner <kevinb@redhat.com>
7825
7826 * python/py-infthread.c (thpy_thread_handle): New function.
7827 (thread_object_methods): Register thpy_thread_handle.
7828
3d6c6204
KB
78292019-04-08 Kevin Buettner <kevinb@redhat.com>
7830
7831 * gdbthread.h (thread_to_thread_handle): Declare.
7832 * thread.c (gdbtypes.h): Include.
7833 (thread_to_thread_handle): New function.
7834
7835 * target.h (struct target_ops): Add thread_info_to_thread_handle.
7836 (target_thread_info_to_thread_handle): Declare.
7837 * target.c (target_thread_info_to_thread_handle): New function.
7838 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
7839 * target-delegates.c: Regenerate.
7840
7841 * linux-thread-db.c (class thread_db_target): Add method
7842 thread_info_to_thread_handle.
7843 (thread_db_target::thread_info_to_thread_handle): Define.
7844 * remote.c (class remote_target): Add new method
7845 thread_info_to_thread_handle.
7846 (remote_target::thread_info_to_thread_handle): Define.
7847
56be6ea8
PA
78482019-04-08 Pedro Alves <palves@redhat.com>
7849
7850 * common/common-exceptions.c (throw_exception): Don't create
7851 named object to throw; throw directly.
7852 (throw_it): Likewise. Don't initialize gdb_exception::message
7853 here, with new; pass FMT and AP to the ctor instead.
7854 * common/common-exceptions.h: Include <string>.
7855 (gdb_exception::gdb_exception(enum return_reason, enum errors,
7856 const char *, va_list)): New ctor. Use std::make_shared.
7857 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
7858 errors)): Delete.
7859 (gdb_exception_error::gdb_exception_error(enum errors, const char
7860 *, va_list)): New.
7861 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
7862 Add assertion.
7863 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
7864 errors)): Delete.
7865 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
7866 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
7867 Add assertion.
7868
eedc3f4f
TT
78692019-04-08 Tom Tromey <tom@tromey.com>
7870
7871 * valops.c (value_rtti_indirect_type): Replace throw_exception
7872 with throw.
7873 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
7874 with throw.
7875 * thread.c (thr_try_catch_cmd): Replace throw_exception with
7876 throw.
7877 * target.c (target_translate_tls_address): Replace throw_exception
7878 with throw.
7879 * stack.c (frame_apply_command_count): Replace throw_exception
7880 with throw.
7881 * solib-spu.c (append_ocl_sos): Replace throw_exception with
7882 throw.
7883 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
7884 with throw.
7885 * rs6000-tdep.c (rs6000_frame_cache)
7886 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
7887 * remote.c: Replace throw_exception with throw.
7888 * record-full.c (record_full_message, record_full_wait_1)
7889 (record_full_restore): Replace throw_exception with throw.
7890 * record-btrace.c:
7891 (get_thread_current_frame_id, record_btrace_start_replaying)
7892 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
7893 (cmd_record_btrace_start): Replace throw_exception with throw.
7894 * parse.c (parse_exp_in_context_1): Replace throw_exception with
7895 throw.
7896 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
7897 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
7898 * linespec.c:
7899 (find_linespec_symbols): Replace throw_exception with throw.
7900 * infrun.c (displaced_step_prepare, resume): Replace
7901 throw_exception with throw.
7902 * infcmd.c (post_create_inferior): Replace throw_exception with
7903 throw.
7904 * inf-loop.c (inferior_event_handler): Replace throw_exception
7905 with throw.
7906 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
7907 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
7908 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
7909 (get_prev_frame_always, get_frame_pc_if_available)
7910 (get_frame_address_in_block_if_available, get_frame_language):
7911 Replace throw_exception with throw.
7912 * frame-unwind.c (frame_unwind_try_unwinder): Replace
7913 throw_exception with throw.
7914 * eval.c (fetch_subexp_value, evaluate_var_value)
7915 (evaluate_funcall, evaluate_subexp_standard): Replace
7916 throw_exception with throw.
7917 * dwarf2loc.c (call_site_find_chain)
7918 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
7919 Replace throw_exception with throw.
7920 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
7921 with throw.
7922 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
7923 throw.
7924 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
7925 * completer.c (complete_line_internal): Replace throw_exception
7926 with throw.
7927 * compile/compile-object-run.c (compile_object_run): Replace
7928 throw_exception with throw.
7929 * cli/cli-script.c (process_next_line): Replace throw_exception
7930 with throw.
7931 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
7932 (btrace_enable, btrace_maint_update_pt_packets): Replace
7933 throw_exception with throw.
7934 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
7935 throw_exception with throw.
7936 * break-catch-throw.c (re_set_exception_catchpoint): Replace
7937 throw_exception with throw.
7938 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7939 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
7940 * aarch64-tdep.c (aarch64_make_prologue_cache)
7941 (aarch64_make_stub_cache): Replace throw_exception with throw.
7942
26003a20
TT
79432019-04-08 Tom Tromey <tom@tromey.com>
7944
7945 * common/common-exceptions.c (throw_exception): Rename from
7946 throw_exception_cxx. Remove old copy. Make argument const.
7947 (throw_it): Create and throw exception objects directly.
7948 * common/common-exceptions.h (throw_exception): Make argument
7949 const.
7950 (struct gdb_exception_error): Add constructor.
7951 (struct gdb_exception_quit): Add constructor.
7952
d272eb37
TT
79532019-04-08 Tom Tromey <tom@tromey.com>
7954
7955 * common/common-exceptions.h (exception_rethrow): Don't declare.
7956 (TRY_SJLJ): Update comment.
7957 (TRY, CATCH, END_CATCH): Remove.
7958 * common/common-exceptions.c (exception_rethrow): Remove.
7959
230d2906
TT
79602019-04-08 Tom Tromey <tom@tromey.com>
7961
7962 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
7963 Remove.
7964 (gdb_exception_error): Rename from
7965 gdb_exception_RETURN_MASK_ERROR.
7966 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
7967 (gdb_quit_bad_alloc): Update.
7968 * aarch64-tdep.c: Update.
7969 * ada-lang.c: Update.
7970 * ada-typeprint.c: Update.
7971 * ada-valprint.c: Update.
7972 * amd64-tdep.c: Update.
7973 * arch-utils.c: Update.
7974 * break-catch-throw.c: Update.
7975 * breakpoint.c: Update.
7976 * btrace.c: Update.
7977 * c-varobj.c: Update.
7978 * cli/cli-cmds.c: Update.
7979 * cli/cli-interp.c: Update.
7980 * cli/cli-script.c: Update.
7981 * common/common-exceptions.c: Update.
7982 * common/new-op.c: Update.
7983 * common/selftest.c: Update.
7984 * compile/compile-c-symbols.c: Update.
7985 * compile/compile-cplus-symbols.c: Update.
7986 * compile/compile-object-load.c: Update.
7987 * compile/compile-object-run.c: Update.
7988 * completer.c: Update.
7989 * corelow.c: Update.
7990 * cp-abi.c: Update.
7991 * cp-support.c: Update.
7992 * cp-valprint.c: Update.
7993 * darwin-nat.c: Update.
7994 * disasm-selftests.c: Update.
7995 * dtrace-probe.c: Update.
7996 * dwarf-index-cache.c: Update.
7997 * dwarf-index-write.c: Update.
7998 * dwarf2-frame-tailcall.c: Update.
7999 * dwarf2-frame.c: Update.
8000 * dwarf2loc.c: Update.
8001 * dwarf2read.c: Update.
8002 * eval.c: Update.
8003 * event-loop.c: Update.
8004 * event-top.c: Update.
8005 * exec.c: Update.
8006 * f-valprint.c: Update.
8007 * fbsd-tdep.c: Update.
8008 * frame-unwind.c: Update.
8009 * frame.c: Update.
8010 * gdbtypes.c: Update.
8011 * gnu-v3-abi.c: Update.
8012 * guile/guile-internal.h: Update.
8013 * guile/scm-block.c: Update.
8014 * guile/scm-breakpoint.c: Update.
8015 * guile/scm-cmd.c: Update.
8016 * guile/scm-disasm.c: Update.
8017 * guile/scm-frame.c: Update.
8018 * guile/scm-lazy-string.c: Update.
8019 * guile/scm-math.c: Update.
8020 * guile/scm-param.c: Update.
8021 * guile/scm-ports.c: Update.
8022 * guile/scm-pretty-print.c: Update.
8023 * guile/scm-symbol.c: Update.
8024 * guile/scm-symtab.c: Update.
8025 * guile/scm-type.c: Update.
8026 * guile/scm-value.c: Update.
8027 * i386-linux-tdep.c: Update.
8028 * i386-tdep.c: Update.
8029 * inf-loop.c: Update.
8030 * infcall.c: Update.
8031 * infcmd.c: Update.
8032 * infrun.c: Update.
8033 * jit.c: Update.
8034 * language.c: Update.
8035 * linespec.c: Update.
8036 * linux-fork.c: Update.
8037 * linux-nat.c: Update.
8038 * linux-tdep.c: Update.
8039 * linux-thread-db.c: Update.
8040 * main.c: Update.
8041 * mi/mi-cmd-break.c: Update.
8042 * mi/mi-cmd-stack.c: Update.
8043 * mi/mi-interp.c: Update.
8044 * mi/mi-main.c: Update.
8045 * objc-lang.c: Update.
8046 * p-valprint.c: Update.
8047 * parse.c: Update.
8048 * ppc-linux-tdep.c: Update.
8049 * printcmd.c: Update.
8050 * python/py-arch.c: Update.
8051 * python/py-breakpoint.c: Update.
8052 * python/py-cmd.c: Update.
8053 * python/py-finishbreakpoint.c: Update.
8054 * python/py-frame.c: Update.
8055 * python/py-framefilter.c: Update.
8056 * python/py-gdb-readline.c: Update.
8057 * python/py-inferior.c: Update.
8058 * python/py-infthread.c: Update.
8059 * python/py-lazy-string.c: Update.
8060 * python/py-linetable.c: Update.
8061 * python/py-objfile.c: Update.
8062 * python/py-param.c: Update.
8063 * python/py-prettyprint.c: Update.
8064 * python/py-progspace.c: Update.
8065 * python/py-record-btrace.c: Update.
8066 * python/py-record.c: Update.
8067 * python/py-symbol.c: Update.
8068 * python/py-type.c: Update.
8069 * python/py-unwind.c: Update.
8070 * python/py-utils.c: Update.
8071 * python/py-value.c: Update.
8072 * python/python.c: Update.
8073 * record-btrace.c: Update.
8074 * record-full.c: Update.
8075 * remote-fileio.c: Update.
8076 * remote.c: Update.
8077 * riscv-tdep.c: Update.
8078 * rs6000-aix-tdep.c: Update.
8079 * rs6000-tdep.c: Update.
8080 * rust-exp.y: Update.
8081 * rust-lang.c: Update.
8082 * s390-tdep.c: Update.
8083 * selftest-arch.c: Update.
8084 * solib-dsbt.c: Update.
8085 * solib-frv.c: Update.
8086 * solib-spu.c: Update.
8087 * solib-svr4.c: Update.
8088 * solib.c: Update.
8089 * sparc64-linux-tdep.c: Update.
8090 * stack.c: Update.
8091 * symfile-mem.c: Update.
8092 * symmisc.c: Update.
8093 * target.c: Update.
8094 * thread.c: Update.
8095 * top.c: Update.
8096 * tracefile-tfile.c: Update.
8097 * tui/tui.c: Update.
8098 * typeprint.c: Update.
8099 * unittests/cli-utils-selftests.c: Update.
8100 * unittests/parse-connection-spec-selftests.c: Update.
8101 * valops.c: Update.
8102 * valprint.c: Update.
8103 * value.c: Update.
8104 * varobj.c: Update.
8105 * windows-nat.c: Update.
8106 * x86-linux-nat.c: Update.
8107 * xml-support.c: Update.
8108
a70b8144
TT
81092019-04-08 Tom Tromey <tom@tromey.com>
8110
8111 * xml-support.c: Use C++ exception handling.
8112 * x86-linux-nat.c: Use C++ exception handling.
8113 * windows-nat.c: Use C++ exception handling.
8114 * varobj.c: Use C++ exception handling.
8115 * value.c: Use C++ exception handling.
8116 * valprint.c: Use C++ exception handling.
8117 * valops.c: Use C++ exception handling.
8118 * unittests/parse-connection-spec-selftests.c: Use C++ exception
8119 handling.
8120 * unittests/cli-utils-selftests.c: Use C++ exception handling.
8121 * typeprint.c: Use C++ exception handling.
8122 * tui/tui.c: Use C++ exception handling.
8123 * tracefile-tfile.c: Use C++ exception handling.
8124 * top.c: Use C++ exception handling.
8125 * thread.c: Use C++ exception handling.
8126 * target.c: Use C++ exception handling.
8127 * symmisc.c: Use C++ exception handling.
8128 * symfile-mem.c: Use C++ exception handling.
8129 * stack.c: Use C++ exception handling.
8130 * sparc64-linux-tdep.c: Use C++ exception handling.
8131 * solib.c: Use C++ exception handling.
8132 * solib-svr4.c: Use C++ exception handling.
8133 * solib-spu.c: Use C++ exception handling.
8134 * solib-frv.c: Use C++ exception handling.
8135 * solib-dsbt.c: Use C++ exception handling.
8136 * selftest-arch.c: Use C++ exception handling.
8137 * s390-tdep.c: Use C++ exception handling.
8138 * rust-lang.c: Use C++ exception handling.
8139 * rust-exp.y: Use C++ exception handling.
8140 * rs6000-tdep.c: Use C++ exception handling.
8141 * rs6000-aix-tdep.c: Use C++ exception handling.
8142 * riscv-tdep.c: Use C++ exception handling.
8143 * remote.c: Use C++ exception handling.
8144 * remote-fileio.c: Use C++ exception handling.
8145 * record-full.c: Use C++ exception handling.
8146 * record-btrace.c: Use C++ exception handling.
8147 * python/python.c: Use C++ exception handling.
8148 * python/py-value.c: Use C++ exception handling.
8149 * python/py-utils.c: Use C++ exception handling.
8150 * python/py-unwind.c: Use C++ exception handling.
8151 * python/py-type.c: Use C++ exception handling.
8152 * python/py-symbol.c: Use C++ exception handling.
8153 * python/py-record.c: Use C++ exception handling.
8154 * python/py-record-btrace.c: Use C++ exception handling.
8155 * python/py-progspace.c: Use C++ exception handling.
8156 * python/py-prettyprint.c: Use C++ exception handling.
8157 * python/py-param.c: Use C++ exception handling.
8158 * python/py-objfile.c: Use C++ exception handling.
8159 * python/py-linetable.c: Use C++ exception handling.
8160 * python/py-lazy-string.c: Use C++ exception handling.
8161 * python/py-infthread.c: Use C++ exception handling.
8162 * python/py-inferior.c: Use C++ exception handling.
8163 * python/py-gdb-readline.c: Use C++ exception handling.
8164 * python/py-framefilter.c: Use C++ exception handling.
8165 * python/py-frame.c: Use C++ exception handling.
8166 * python/py-finishbreakpoint.c: Use C++ exception handling.
8167 * python/py-cmd.c: Use C++ exception handling.
8168 * python/py-breakpoint.c: Use C++ exception handling.
8169 * python/py-arch.c: Use C++ exception handling.
8170 * printcmd.c: Use C++ exception handling.
8171 * ppc-linux-tdep.c: Use C++ exception handling.
8172 * parse.c: Use C++ exception handling.
8173 * p-valprint.c: Use C++ exception handling.
8174 * objc-lang.c: Use C++ exception handling.
8175 * mi/mi-main.c: Use C++ exception handling.
8176 * mi/mi-interp.c: Use C++ exception handling.
8177 * mi/mi-cmd-stack.c: Use C++ exception handling.
8178 * mi/mi-cmd-break.c: Use C++ exception handling.
8179 * main.c: Use C++ exception handling.
8180 * linux-thread-db.c: Use C++ exception handling.
8181 * linux-tdep.c: Use C++ exception handling.
8182 * linux-nat.c: Use C++ exception handling.
8183 * linux-fork.c: Use C++ exception handling.
8184 * linespec.c: Use C++ exception handling.
8185 * language.c: Use C++ exception handling.
8186 * jit.c: Use C++ exception handling.
8187 * infrun.c: Use C++ exception handling.
8188 * infcmd.c: Use C++ exception handling.
8189 * infcall.c: Use C++ exception handling.
8190 * inf-loop.c: Use C++ exception handling.
8191 * i386-tdep.c: Use C++ exception handling.
8192 * i386-linux-tdep.c: Use C++ exception handling.
8193 * guile/scm-value.c: Use C++ exception handling.
8194 * guile/scm-type.c: Use C++ exception handling.
8195 * guile/scm-symtab.c: Use C++ exception handling.
8196 * guile/scm-symbol.c: Use C++ exception handling.
8197 * guile/scm-pretty-print.c: Use C++ exception handling.
8198 * guile/scm-ports.c: Use C++ exception handling.
8199 * guile/scm-param.c: Use C++ exception handling.
8200 * guile/scm-math.c: Use C++ exception handling.
8201 * guile/scm-lazy-string.c: Use C++ exception handling.
8202 * guile/scm-frame.c: Use C++ exception handling.
8203 * guile/scm-disasm.c: Use C++ exception handling.
8204 * guile/scm-cmd.c: Use C++ exception handling.
8205 * guile/scm-breakpoint.c: Use C++ exception handling.
8206 * guile/scm-block.c: Use C++ exception handling.
8207 * guile/guile-internal.h: Use C++ exception handling.
8208 * gnu-v3-abi.c: Use C++ exception handling.
8209 * gdbtypes.c: Use C++ exception handling.
8210 * frame.c: Use C++ exception handling.
8211 * frame-unwind.c: Use C++ exception handling.
8212 * fbsd-tdep.c: Use C++ exception handling.
8213 * f-valprint.c: Use C++ exception handling.
8214 * exec.c: Use C++ exception handling.
8215 * event-top.c: Use C++ exception handling.
8216 * event-loop.c: Use C++ exception handling.
8217 * eval.c: Use C++ exception handling.
8218 * dwarf2read.c: Use C++ exception handling.
8219 * dwarf2loc.c: Use C++ exception handling.
8220 * dwarf2-frame.c: Use C++ exception handling.
8221 * dwarf2-frame-tailcall.c: Use C++ exception handling.
8222 * dwarf-index-write.c: Use C++ exception handling.
8223 * dwarf-index-cache.c: Use C++ exception handling.
8224 * dtrace-probe.c: Use C++ exception handling.
8225 * disasm-selftests.c: Use C++ exception handling.
8226 * darwin-nat.c: Use C++ exception handling.
8227 * cp-valprint.c: Use C++ exception handling.
8228 * cp-support.c: Use C++ exception handling.
8229 * cp-abi.c: Use C++ exception handling.
8230 * corelow.c: Use C++ exception handling.
8231 * completer.c: Use C++ exception handling.
8232 * compile/compile-object-run.c: Use C++ exception handling.
8233 * compile/compile-object-load.c: Use C++ exception handling.
8234 * compile/compile-cplus-symbols.c: Use C++ exception handling.
8235 * compile/compile-c-symbols.c: Use C++ exception handling.
8236 * common/selftest.c: Use C++ exception handling.
8237 * common/new-op.c: Use C++ exception handling.
8238 * cli/cli-script.c: Use C++ exception handling.
8239 * cli/cli-interp.c: Use C++ exception handling.
8240 * cli/cli-cmds.c: Use C++ exception handling.
8241 * c-varobj.c: Use C++ exception handling.
8242 * btrace.c: Use C++ exception handling.
8243 * breakpoint.c: Use C++ exception handling.
8244 * break-catch-throw.c: Use C++ exception handling.
8245 * arch-utils.c: Use C++ exception handling.
8246 * amd64-tdep.c: Use C++ exception handling.
8247 * ada-valprint.c: Use C++ exception handling.
8248 * ada-typeprint.c: Use C++ exception handling.
8249 * ada-lang.c: Use C++ exception handling.
8250 * aarch64-tdep.c: Use C++ exception handling.
8251
3d6e9d23
TT
82522019-04-08 Tom Tromey <tom@tromey.com>
8253
8254 * xml-support.c (gdb_xml_parser::parse): Update.
8255 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8256 * value.c (show_convenience): Update.
8257 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
8258 (test_parse_flags_qcs): Update.
8259 * thread.c (thr_try_catch_cmd): Update.
8260 * target.c (target_translate_tls_address): Update.
8261 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
8262 (info_frame_command_core, frame_apply_command_count): Update.
8263 * rust-exp.y (rust_lex_exception_test): Update.
8264 * riscv-tdep.c (riscv_print_one_register_info): Update.
8265 * remote.c (remote_target::enable_btrace): Update.
8266 * record-btrace.c (record_btrace_enable_warn): Update.
8267 * python/py-utils.c (gdbpy_convert_exception): Update.
8268 * printcmd.c (do_one_display, print_variable_and_value): Update.
8269 * mi/mi-main.c (mi_print_exception): Update.
8270 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
8271 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
8272 * linux-nat.c (linux_nat_target::attach): Update.
8273 * linux-fork.c (class scoped_switch_fork_info): Update.
8274 * infrun.c (displaced_step_prepare): Update.
8275 * infcall.c (call_function_by_hand_dummy): Update.
8276 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
8277 * gnu-v3-abi.c (print_one_vtable): Update.
8278 * frame.c (get_prev_frame_always): Update.
8279 * f-valprint.c (info_common_command_for_block): Update.
8280 * exec.c (try_open_exec_file): Update.
8281 * exceptions.c (print_exception, exception_print)
8282 (exception_fprintf, exception_print_same): Update.
8283 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
8284 * dwarf-index-cache.c (index_cache::store)
8285 (index_cache::lookup_gdb_index): Update.
8286 * darwin-nat.c (maybe_cache_shell): Update.
8287 * cp-valprint.c (cp_print_value_fields): Update.
8288 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
8289 (gcc_cplus_symbol_address): Update.
8290 * compile/compile-c-symbols.c (gcc_convert_symbol)
8291 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
8292 * common/selftest.c: Update.
8293 * common/common-exceptions.h (struct gdb_exception) <message>: Now
8294 a std::string.
8295 (exception_try_scope_entry, exception_try_scope_exit): Don't
8296 declare.
8297 (struct exception_try_scope): Remove.
8298 (TRY): Don't use exception_try_scope.
8299 (struct gdb_exception): Add constructor, operator=.
8300 <what>: New method.
8301 (struct gdb_exception_RETURN_MASK_ALL)
8302 (struct gdb_exception_RETURN_MASK_ERROR)
8303 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
8304 (struct gdb_quit_bad_alloc): Update.
8305 * common/common-exceptions.c (exception_none): Change
8306 initializer.
8307 (struct catcher) <state, exception>: Initialize inline.
8308 <prev>: Remove member.
8309 (current_catcher): Remove.
8310 (catchers): New global.
8311 (exceptions_state_mc_init): Simplify.
8312 (catcher_pop): Remove.
8313 (exceptions_state_mc, exceptions_state_mc_catch): Update.
8314 (try_scope_depth, exception_try_scope_entry)
8315 (exception_try_scope_exit): Remove.
8316 (throw_exception_sjlj): Update.
8317 (exception_messages, exception_messages_size): Remove.
8318 (throw_it): Simplify.
8319 (gdb_exception_sliced_copy): Remove.
8320 (throw_exception_cxx): Update.
8321 * cli/cli-script.c (script_from_file): Update.
8322 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
8323 Update.
8324 * ada-valprint.c (ada_val_print): Update.
8325 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
8326 (create_excep_cond_exprs): Update.
8327
c5c10118
TT
83282019-04-08 Tom Tromey <tom@tromey.com>
8329
8330 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
8331 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
8332 (TRY, CATCH, END_CATCH): Remove some definitions.
8333 * common/common-exceptions.c: Don't use GDB_XCPT.
8334 (catcher_list_size): Remove.
8335 (throw_exception, throw_it): Simplify.
8336
4de283e4
TT
83372019-04-05 Tom Tromey <tom@tromey.com>
8338
8339 Revert the header-sorting patch.
8340 * ft32-tdep.c: Revert.
8341 * frv-tdep.c: Revert.
8342 * frv-linux-tdep.c: Revert.
8343 * frame.c: Revert.
8344 * frame-unwind.c: Revert.
8345 * frame-base.c: Revert.
8346 * fork-child.c: Revert.
8347 * findvar.c: Revert.
8348 * findcmd.c: Revert.
8349 * filesystem.c: Revert.
8350 * filename-seen-cache.h: Revert.
8351 * filename-seen-cache.c: Revert.
8352 * fbsd-tdep.c: Revert.
8353 * fbsd-nat.h: Revert.
8354 * fbsd-nat.c: Revert.
8355 * f-valprint.c: Revert.
8356 * f-typeprint.c: Revert.
8357 * f-lang.c: Revert.
8358 * extension.h: Revert.
8359 * extension.c: Revert.
8360 * extension-priv.h: Revert.
8361 * expprint.c: Revert.
8362 * exec.h: Revert.
8363 * exec.c: Revert.
8364 * exceptions.c: Revert.
8365 * event-top.c: Revert.
8366 * event-loop.c: Revert.
8367 * eval.c: Revert.
8368 * elfread.c: Revert.
8369 * dwarf2read.h: Revert.
8370 * dwarf2read.c: Revert.
8371 * dwarf2loc.c: Revert.
8372 * dwarf2expr.h: Revert.
8373 * dwarf2expr.c: Revert.
8374 * dwarf2-frame.c: Revert.
8375 * dwarf2-frame-tailcall.c: Revert.
8376 * dwarf-index-write.h: Revert.
8377 * dwarf-index-write.c: Revert.
8378 * dwarf-index-common.c: Revert.
8379 * dwarf-index-cache.h: Revert.
8380 * dwarf-index-cache.c: Revert.
8381 * dummy-frame.c: Revert.
8382 * dtrace-probe.c: Revert.
8383 * disasm.h: Revert.
8384 * disasm.c: Revert.
8385 * disasm-selftests.c: Revert.
8386 * dictionary.c: Revert.
8387 * dicos-tdep.c: Revert.
8388 * demangle.c: Revert.
8389 * dcache.h: Revert.
8390 * dcache.c: Revert.
8391 * darwin-nat.h: Revert.
8392 * darwin-nat.c: Revert.
8393 * darwin-nat-info.c: Revert.
8394 * d-valprint.c: Revert.
8395 * d-namespace.c: Revert.
8396 * d-lang.c: Revert.
8397 * ctf.c: Revert.
8398 * csky-tdep.c: Revert.
8399 * csky-linux-tdep.c: Revert.
8400 * cris-tdep.c: Revert.
8401 * cris-linux-tdep.c: Revert.
8402 * cp-valprint.c: Revert.
8403 * cp-support.c: Revert.
8404 * cp-namespace.c: Revert.
8405 * cp-abi.c: Revert.
8406 * corelow.c: Revert.
8407 * corefile.c: Revert.
8408 * continuations.c: Revert.
8409 * completer.h: Revert.
8410 * completer.c: Revert.
8411 * complaints.c: Revert.
8412 * coffread.c: Revert.
8413 * coff-pe-read.c: Revert.
8414 * cli-out.h: Revert.
8415 * cli-out.c: Revert.
8416 * charset.c: Revert.
8417 * c-varobj.c: Revert.
8418 * c-valprint.c: Revert.
8419 * c-typeprint.c: Revert.
8420 * c-lang.c: Revert.
8421 * buildsym.c: Revert.
8422 * buildsym-legacy.c: Revert.
8423 * build-id.h: Revert.
8424 * build-id.c: Revert.
8425 * btrace.c: Revert.
8426 * bsd-uthread.c: Revert.
8427 * breakpoint.h: Revert.
8428 * breakpoint.c: Revert.
8429 * break-catch-throw.c: Revert.
8430 * break-catch-syscall.c: Revert.
8431 * break-catch-sig.c: Revert.
8432 * blockframe.c: Revert.
8433 * block.c: Revert.
8434 * bfin-tdep.c: Revert.
8435 * bfin-linux-tdep.c: Revert.
8436 * bfd-target.c: Revert.
8437 * bcache.c: Revert.
8438 * ax-general.c: Revert.
8439 * ax-gdb.h: Revert.
8440 * ax-gdb.c: Revert.
8441 * avr-tdep.c: Revert.
8442 * auxv.c: Revert.
8443 * auto-load.c: Revert.
8444 * arm-wince-tdep.c: Revert.
8445 * arm-tdep.c: Revert.
8446 * arm-symbian-tdep.c: Revert.
8447 * arm-pikeos-tdep.c: Revert.
8448 * arm-obsd-tdep.c: Revert.
8449 * arm-nbsd-tdep.c: Revert.
8450 * arm-nbsd-nat.c: Revert.
8451 * arm-linux-tdep.c: Revert.
8452 * arm-linux-nat.c: Revert.
8453 * arm-fbsd-tdep.c: Revert.
8454 * arm-fbsd-nat.c: Revert.
8455 * arm-bsd-tdep.c: Revert.
8456 * arch-utils.c: Revert.
8457 * arc-tdep.c: Revert.
8458 * arc-newlib-tdep.c: Revert.
8459 * annotate.h: Revert.
8460 * annotate.c: Revert.
8461 * amd64-windows-tdep.c: Revert.
8462 * amd64-windows-nat.c: Revert.
8463 * amd64-tdep.c: Revert.
8464 * amd64-sol2-tdep.c: Revert.
8465 * amd64-obsd-tdep.c: Revert.
8466 * amd64-obsd-nat.c: Revert.
8467 * amd64-nbsd-tdep.c: Revert.
8468 * amd64-nbsd-nat.c: Revert.
8469 * amd64-nat.c: Revert.
8470 * amd64-linux-tdep.c: Revert.
8471 * amd64-linux-nat.c: Revert.
8472 * amd64-fbsd-tdep.c: Revert.
8473 * amd64-fbsd-nat.c: Revert.
8474 * amd64-dicos-tdep.c: Revert.
8475 * amd64-darwin-tdep.c: Revert.
8476 * amd64-bsd-nat.c: Revert.
8477 * alpha-tdep.c: Revert.
8478 * alpha-obsd-tdep.c: Revert.
8479 * alpha-nbsd-tdep.c: Revert.
8480 * alpha-mdebug-tdep.c: Revert.
8481 * alpha-linux-tdep.c: Revert.
8482 * alpha-linux-nat.c: Revert.
8483 * alpha-bsd-tdep.c: Revert.
8484 * alpha-bsd-nat.c: Revert.
8485 * aix-thread.c: Revert.
8486 * agent.c: Revert.
8487 * addrmap.c: Revert.
8488 * ada-varobj.c: Revert.
8489 * ada-valprint.c: Revert.
8490 * ada-typeprint.c: Revert.
8491 * ada-tasks.c: Revert.
8492 * ada-lang.c: Revert.
8493 * aarch64-tdep.c: Revert.
8494 * aarch64-ravenscar-thread.c: Revert.
8495 * aarch64-newlib-tdep.c: Revert.
8496 * aarch64-linux-tdep.c: Revert.
8497 * aarch64-linux-nat.c: Revert.
8498 * aarch64-fbsd-tdep.c: Revert.
8499 * aarch64-fbsd-nat.c: Revert.
8500 * aarch32-linux-nat.c: Revert.
8501
d55e5aa6
TT
85022019-04-05 Tom Tromey <tom@tromey.com>
8503
8504 * ft32-tdep.c: Sort headers.
8505 * frv-tdep.c: Sort headers.
8506 * frv-linux-tdep.c: Sort headers.
8507 * frame.c: Sort headers.
8508 * frame-unwind.c: Sort headers.
8509 * frame-base.c: Sort headers.
8510 * fork-child.c: Sort headers.
8511 * findvar.c: Sort headers.
8512 * findcmd.c: Sort headers.
8513 * filesystem.c: Sort headers.
8514 * filename-seen-cache.h: Sort headers.
8515 * filename-seen-cache.c: Sort headers.
8516 * fbsd-tdep.c: Sort headers.
8517 * fbsd-nat.h: Sort headers.
8518 * fbsd-nat.c: Sort headers.
8519 * f-valprint.c: Sort headers.
8520 * f-typeprint.c: Sort headers.
8521 * f-lang.c: Sort headers.
8522 * extension.h: Sort headers.
8523 * extension.c: Sort headers.
8524 * extension-priv.h: Sort headers.
8525 * expprint.c: Sort headers.
8526 * exec.h: Sort headers.
8527 * exec.c: Sort headers.
8528 * exceptions.c: Sort headers.
8529 * event-top.c: Sort headers.
8530 * event-loop.c: Sort headers.
8531 * eval.c: Sort headers.
8532 * elfread.c: Sort headers.
8533 * dwarf2read.h: Sort headers.
8534 * dwarf2read.c: Sort headers.
8535 * dwarf2loc.c: Sort headers.
8536 * dwarf2expr.h: Sort headers.
8537 * dwarf2expr.c: Sort headers.
8538 * dwarf2-frame.c: Sort headers.
8539 * dwarf2-frame-tailcall.c: Sort headers.
8540 * dwarf-index-write.h: Sort headers.
8541 * dwarf-index-write.c: Sort headers.
8542 * dwarf-index-common.c: Sort headers.
8543 * dwarf-index-cache.h: Sort headers.
8544 * dwarf-index-cache.c: Sort headers.
8545 * dummy-frame.c: Sort headers.
8546 * dtrace-probe.c: Sort headers.
8547 * disasm.h: Sort headers.
8548 * disasm.c: Sort headers.
8549 * disasm-selftests.c: Sort headers.
8550 * dictionary.c: Sort headers.
8551 * dicos-tdep.c: Sort headers.
8552 * demangle.c: Sort headers.
8553 * dcache.h: Sort headers.
8554 * dcache.c: Sort headers.
8555 * darwin-nat.h: Sort headers.
8556 * darwin-nat.c: Sort headers.
8557 * darwin-nat-info.c: Sort headers.
8558 * d-valprint.c: Sort headers.
8559 * d-namespace.c: Sort headers.
8560 * d-lang.c: Sort headers.
8561 * ctf.c: Sort headers.
8562 * csky-tdep.c: Sort headers.
8563 * csky-linux-tdep.c: Sort headers.
8564 * cris-tdep.c: Sort headers.
8565 * cris-linux-tdep.c: Sort headers.
8566 * cp-valprint.c: Sort headers.
8567 * cp-support.c: Sort headers.
8568 * cp-namespace.c: Sort headers.
8569 * cp-abi.c: Sort headers.
8570 * corelow.c: Sort headers.
8571 * corefile.c: Sort headers.
8572 * continuations.c: Sort headers.
8573 * completer.h: Sort headers.
8574 * completer.c: Sort headers.
8575 * complaints.c: Sort headers.
8576 * coffread.c: Sort headers.
8577 * coff-pe-read.c: Sort headers.
8578 * cli-out.h: Sort headers.
8579 * cli-out.c: Sort headers.
8580 * charset.c: Sort headers.
8581 * c-varobj.c: Sort headers.
8582 * c-valprint.c: Sort headers.
8583 * c-typeprint.c: Sort headers.
8584 * c-lang.c: Sort headers.
8585 * buildsym.c: Sort headers.
8586 * buildsym-legacy.c: Sort headers.
8587 * build-id.h: Sort headers.
8588 * build-id.c: Sort headers.
8589 * btrace.c: Sort headers.
8590 * bsd-uthread.c: Sort headers.
8591 * breakpoint.h: Sort headers.
8592 * breakpoint.c: Sort headers.
8593 * break-catch-throw.c: Sort headers.
8594 * break-catch-syscall.c: Sort headers.
8595 * break-catch-sig.c: Sort headers.
8596 * blockframe.c: Sort headers.
8597 * block.c: Sort headers.
8598 * bfin-tdep.c: Sort headers.
8599 * bfin-linux-tdep.c: Sort headers.
8600 * bfd-target.c: Sort headers.
8601 * bcache.c: Sort headers.
8602 * ax-general.c: Sort headers.
8603 * ax-gdb.h: Sort headers.
8604 * ax-gdb.c: Sort headers.
8605 * avr-tdep.c: Sort headers.
8606 * auxv.c: Sort headers.
8607 * auto-load.c: Sort headers.
8608 * arm-wince-tdep.c: Sort headers.
8609 * arm-tdep.c: Sort headers.
8610 * arm-symbian-tdep.c: Sort headers.
8611 * arm-pikeos-tdep.c: Sort headers.
8612 * arm-obsd-tdep.c: Sort headers.
8613 * arm-nbsd-tdep.c: Sort headers.
8614 * arm-nbsd-nat.c: Sort headers.
8615 * arm-linux-tdep.c: Sort headers.
8616 * arm-linux-nat.c: Sort headers.
8617 * arm-fbsd-tdep.c: Sort headers.
8618 * arm-fbsd-nat.c: Sort headers.
8619 * arm-bsd-tdep.c: Sort headers.
8620 * arch-utils.c: Sort headers.
8621 * arc-tdep.c: Sort headers.
8622 * arc-newlib-tdep.c: Sort headers.
8623 * annotate.h: Sort headers.
8624 * annotate.c: Sort headers.
8625 * amd64-windows-tdep.c: Sort headers.
8626 * amd64-windows-nat.c: Sort headers.
8627 * amd64-tdep.c: Sort headers.
8628 * amd64-sol2-tdep.c: Sort headers.
8629 * amd64-obsd-tdep.c: Sort headers.
8630 * amd64-obsd-nat.c: Sort headers.
8631 * amd64-nbsd-tdep.c: Sort headers.
8632 * amd64-nbsd-nat.c: Sort headers.
8633 * amd64-nat.c: Sort headers.
8634 * amd64-linux-tdep.c: Sort headers.
8635 * amd64-linux-nat.c: Sort headers.
8636 * amd64-fbsd-tdep.c: Sort headers.
8637 * amd64-fbsd-nat.c: Sort headers.
8638 * amd64-dicos-tdep.c: Sort headers.
8639 * amd64-darwin-tdep.c: Sort headers.
8640 * amd64-bsd-nat.c: Sort headers.
8641 * alpha-tdep.c: Sort headers.
8642 * alpha-obsd-tdep.c: Sort headers.
8643 * alpha-nbsd-tdep.c: Sort headers.
8644 * alpha-mdebug-tdep.c: Sort headers.
8645 * alpha-linux-tdep.c: Sort headers.
8646 * alpha-linux-nat.c: Sort headers.
8647 * alpha-bsd-tdep.c: Sort headers.
8648 * alpha-bsd-nat.c: Sort headers.
8649 * aix-thread.c: Sort headers.
8650 * agent.c: Sort headers.
8651 * addrmap.c: Sort headers.
8652 * ada-varobj.c: Sort headers.
8653 * ada-valprint.c: Sort headers.
8654 * ada-typeprint.c: Sort headers.
8655 * ada-tasks.c: Sort headers.
8656 * ada-lang.c: Sort headers.
8657 * aarch64-tdep.c: Sort headers.
8658 * aarch64-ravenscar-thread.c: Sort headers.
8659 * aarch64-newlib-tdep.c: Sort headers.
8660 * aarch64-linux-tdep.c: Sort headers.
8661 * aarch64-linux-nat.c: Sort headers.
8662 * aarch64-fbsd-tdep.c: Sort headers.
8663 * aarch64-fbsd-nat.c: Sort headers.
8664 * aarch32-linux-nat.c: Sort headers.
8665
699bd4cf
TT
86662019-04-04 Tom Tromey <tom@tromey.com>
8667
8668 * varobj.c (varobj_create): Update.
8669 * rust-exp.y (struct rust_parser) <update_innermost_block,
8670 lookup_symbol>: New methods.
8671 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
8672 Rename.
8673 (rust_parser::rust_lookup_type)
8674 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8675 * printcmd.c (display_command, do_one_display): Update.
8676 * parser-defs.h (struct parser_state) <parser_state>: Add
8677 "tracker" parameter.
8678 (block_tracker): New member.
8679 (class innermost_block_tracker) <innermost_block_tracker>: Add
8680 "types" parameter.
8681 <reset>: Remove method.
8682 (innermost_block): Don't declare.
8683 (null_post_parser): Update.
8684 * parse.c (innermost_block): Remove global.
8685 (write_dollar_variable): Update.
8686 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
8687 Remove "tracker_types" parameter.
8688 (parse_expression): Add "tracker" parameter.
8689 (parse_expression_for_completion): Update.
8690 (null_post_parser): Add "tracker" parameter.
8691 * p-exp.y: Update rules.
8692 * m2-exp.y: Update rules.
8693 * language.h (struct language_defn) <la_post_parser>: Add
8694 "tracker" parameter.
8695 * go-exp.y: Update rules.
8696 * f-exp.y: Update rules.
8697 * expression.h (parse_expression, parse_exp_1): Add "tracker"
8698 parameter.
8699 * d-exp.y: Update rules.
8700 * c-exp.y: Update rules.
8701 * breakpoint.c (set_breakpoint_condition): Create an
8702 innermost_block_tracker.
8703 (watch_command_1): Likewise.
8704 * ada-lang.c (resolve): Add "tracker" parameter.
8705 (resolve_subexp): Likewise.
8706 * ada-exp.y (write_var_from_sym): Update.
8707
dac43e32
TT
87082019-04-04 Tom Tromey <tom@tromey.com>
8709
8710 * type-stack.h: New file.
8711 * type-stack.c: New file.
8712 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
8713 type-stack.h.
8714 (insert_into_type_stack, insert_type, push_type, push_type_int)
8715 (insert_type_address_space, pop_type, pop_type_int)
8716 (pop_typelist, pop_type_stack, append_type_stack)
8717 (push_type_stack, get_type_stack, push_typelist)
8718 (follow_type_instance_flags, follow_types): Don't declare.
8719 * parse.c (type_stack): Remove global.
8720 (parse_exp_in_context): Update.
8721 (insert_into_type_stack, insert_type, push_type, push_type_int)
8722 (insert_type_address_space, pop_type, pop_type_int)
8723 (pop_typelist, pop_type_stack, append_type_stack)
8724 (push_type_stack, get_type_stack, push_typelist)
8725 (follow_type_instance_flags, follow_types): Remove (moved to
8726 type-stack.c).
8727 * f-exp.y (type_stack): New global.
8728 Update rules.
8729 (push_kind_type, f_parse): Update.
8730 * d-exp.y (type_stack): New global.
8731 Update rules.
8732 (d_parse): Update.
8733 * c-exp.y (struct c_parse_state) <type_stack>: New member.
8734 Update rules.
8735 * Makefile.in (COMMON_SFILES): Add type-stack.c.
8736 (HFILES_NO_SRCDIR): Add type-stack.h.
8737
2a612529
TT
87382019-04-04 Tom Tromey <tom@tromey.com>
8739
8740 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
8741 (rust_parser::convert_ast_to_expression, rust_parse)
8742 (rust_lex_test_completion, rust_lex_tests): Update.
8743 * parser-defs.h (struct expr_completion_state): New.
8744 (struct parser_state) <parser_state>: Add completion parameter.
8745 <mark_struct_expression, mark_completion_tag>: New methods.
8746 <parse_completion, m_completion_state>: New members.
8747 (prefixify_expression, null_post_parser): Update.
8748 (mark_struct_expression, mark_completion_tag): Don't declare.
8749 * parse.c (parse_completion, expout_last_struct)
8750 (expout_tag_completion_type, expout_completion_name): Remove
8751 globals.
8752 (parser_state::mark_struct_expression)
8753 (parser_state::mark_completion_tag): Now methods.
8754 (prefixify_expression): Add last_struct parameter.
8755 (prefixify_subexp): Likewise.
8756 (parse_exp_1): Update.
8757 (parse_exp_in_context): Add cstate parameter. Update.
8758 (parse_expression_for_completion): Create an
8759 expr_completion_state.
8760 (null_post_parser): Add "completion" parameter.
8761 * p-exp.y: Update rules.
8762 (yylex): Update.
8763 * language.h (struct language_defn) <la_post_parser>: Add
8764 "completing" parameter.
8765 * go-exp.y: Update rules.
8766 (lex_one_token): Update.
8767 * expression.h (parse_completion): Don't declare.
8768 * d-exp.y: Update rules.
8769 (lex_one_token): Update rules.
8770 * c-exp.y: Update rules.
8771 (lex_one_token): Update.
8772 * ada-lang.c (resolve): Add "parse_completion" parameter.
8773 (resolve_subexp): Likewise.
8774 (ada_resolve_function): Likewise.
8775
43476f0b
TT
87762019-04-04 Tom Tromey <tom@tromey.com>
8777
8778 * parser-defs.h (struct parser_state) <start_arglist,
8779 end_arglist>: New methods.
8780 <arglist_len, m_funcall_chain>: New members.
8781 (arglist_len, start_arglist, end_arglist): Don't declare.
8782 * parse.c (arglist_len, funcall_chain): Remove global.
8783 (start_arglist, end_arglist): Remove functions.
8784 (parse_exp_in_context): Update.
8785 * p-exp.y: Update rules.
8786 * m2-exp.y: Update rules.
8787 * go-exp.y: Update rules.
8788 * f-exp.y: Update rules.
8789 * d-exp.y: Update rules.
8790 * c-exp.y: Update rules.
8791
5776fca3
TT
87922019-04-04 Tom Tromey <tom@tromey.com>
8793
8794 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
8795 lex_operator, push_back>: New methods.
8796 Update all rules.
8797 (rust_parser::lex_hex, lex_escape): Rename and update.
8798 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
8799 (rust_parser::lex_operator): Rename and update.
8800 (rust_parser::lex_number, rustyylex, rustyyerror)
8801 (rust_lex_test_init, rust_lex_test_sequence)
8802 (rust_lex_test_push_back, rust_lex_tests): Update.
8803 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
8804 parameter.
8805 <lexptr, prev_lexptr>: New members.
8806 (lexptr, prev_lexptr): Don't declare.
8807 * parse.c (lexptr, prev_lexptr): Remove globals.
8808 (parse_exp_in_context): Update.
8809 * p-exp.y (yylex, yyerror): Update.
8810 * m2-exp.y (parse_number, yylex, yyerror): Update.
8811 * go-exp.y (lex_one_token, yyerror): Update.
8812 * f-exp.y (match_string_literal, yylex, yyerror): Update.
8813 * d-exp.y (lex_one_token, yyerror): Update.
8814 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
8815 (lex_one_token, yyerror): Update.
8816 * ada-lex.l (YY_INPUT): Update.
8817 (rewind_to_char): Update.
8818 * ada-exp.y (yyerror): Update.
8819
8621b685
TT
88202019-04-04 Tom Tromey <tom@tromey.com>
8821
8822 * rust-exp.y (rustyylex, rust_lex_tests): Update.
8823 * parser-defs.h (struct parser_state) <parser_state>: Add new
8824 parameter.
8825 <comma_terminates>: New member.
8826 (comma_terminates): Don't declare global.
8827 * parse.c (comma_terminates): Remove global.
8828 (parse_exp_in_context): Update.
8829 * p-exp.y (yylex): Update.
8830 * m2-exp.y (yylex): Update.
8831 * go-exp.y (lex_one_token): Update.
8832 * f-exp.y (yylex): Update.
8833 * d-exp.y (lex_one_token): Update.
8834 * c-exp.y (lex_one_token): Update.
8835 * ada-lex.l: Update.
8836
28aaf3fd
TT
88372019-04-04 Tom Tromey <tom@tromey.com>
8838
8839 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
8840 (rustyylex, rust_lex_test_init, rust_lex_test_one)
8841 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
8842 * parser-defs.h (paren_depth): Don't declare.
8843 * parse.c (paren_depth): Remove global.
8844 (parse_exp_in_context): Update.
8845 * p-exp.y (paren_depth): New global.
8846 (pascal_parse): Initialize it.
8847 * m2-exp.y (paren_depth): New global.
8848 (m2_parse): Initialize it.
8849 * go-exp.y (paren_depth): New global.
8850 (go_parse): Initialize it.
8851 * f-exp.y (paren_depth): New global.
8852 (f_parse): Initialize it.
8853 * d-exp.y (paren_depth): New global.
8854 (d_parse): Initialize it.
8855 * c-exp.y (paren_depth): New global.
8856 (c_parse): Initialize it.
8857 * ada-lex.l (paren_depth): New global.
8858 (lexer_init): Initialize it.
8859
1e58a4a4
TT
88602019-04-04 Tom Tromey <tom@tromey.com>
8861
8862 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
8863 (rust_parser::convert_ast_to_type)
8864 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8865 * parser-defs.h (struct parser_state) <parser_state>: Add
8866 parameters. Initialize new members.
8867 <expression_context_block, expression_context_pc>: New members.
8868 * parse.c (expression_context_block, expression_context_pc):
8869 Remove globals.
8870 (parse_exp_in_context): Update.
8871 * p-exp.y: Update all rules.
8872 (yylex): Update.
8873 * m2-exp.y: Update all rules.
8874 (yylex): Update.
8875 * go-exp.y (yylex): Update.
8876 * f-exp.y (yylex): Update.
8877 * d-exp.y: Update all rules.
8878 (yylex): Update.
8879 * c-exp.y: Update all rules.
8880 (lex_one_token, classify_name, yylex, c_parse): Update.
8881 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
8882
37eedb39
TT
88832019-04-04 Tom Tromey <tom@tromey.com>
8884
8885 * gdbarch.h, gdbarch.c: Rebuild.
8886 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
8887 * stap-probe.h:
8888 (struct stap_parse_info): Replace "parser_state" with
8889 "expr_builder".
8890 * parser-defs.h (struct expr_builder): Rename from "parser_state".
8891 (parser_state): New class.
8892 * parse.c (expr_builder): Rename.
8893 (expr_builder::release): Rename.
8894 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
8895 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
8896 (write_exp_elt_longcst, write_exp_elt_floatcst)
8897 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
8898 (write_exp_string_vector, write_exp_bitstring)
8899 (write_exp_msymbol, mark_struct_expression)
8900 (write_dollar_variable)
8901 (insert_type_address_space, increase_expout_size): Replace
8902 "parser_state" with "expr_builder".
8903 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
8904 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
8905 "parser_state" with "expr_builder".
8906
73923d7e
TT
89072019-04-04 Tom Tromey <tom@tromey.com>
8908
8909 * rust-exp.y: Replace "parse_language" with method call.
8910 * p-exp.y:
8911 (yylex): Replace "parse_language" with method call.
8912 * m2-exp.y:
8913 (yylex): Replace "parse_language" with method call.
8914 * go-exp.y (classify_name): Replace "parse_language" with method
8915 call.
8916 * f-exp.y (yylex): Replace "parse_language" with method call.
8917 * d-exp.y (lex_one_token): Replace "parse_language" with method
8918 call.
8919 * c-exp.y:
8920 (lex_one_token, classify_name, yylex): Replace "parse_language"
8921 with method call.
8922 * ada-exp.y (find_primitive_type, type_char)
8923 (type_system_address): Replace "parse_language" with method call.
8924
fa9f5be6
TT
89252019-04-04 Tom Tromey <tom@tromey.com>
8926
8927 * rust-exp.y: Replace "parse_gdbarch" with method call.
8928 * parse.c (write_dollar_variable, insert_type_address_space):
8929 Replace "parse_gdbarch" with method call.
8930 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
8931 call.
8932 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
8933 call.
8934 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
8935 "parse_gdbarch" with method call.
8936 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
8937 with method call.
8938 * f-exp.y (parse_type, parse_f_type, yylex): Replace
8939 "parse_gdbarch" with method call.
8940 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
8941 "parse_gdbarch" with method call.
8942 * c-exp.y (parse_type, parse_number, classify_name): Replace
8943 "parse_gdbarch" with method call.
8944 * ada-lex.l: Replace "parse_gdbarch" with method call.
8945 * ada-exp.y (parse_type, find_primitive_type, type_char)
8946 (type_system_address): Replace "parse_gdbarch" with method call.
8947
1201a264
TT
89482019-04-04 Tom Tromey <tom@tromey.com>
8949
8950 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
8951 * stap-probe.c (stap_parse_argument): Update.
8952 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
8953 initial_size parameter.
8954 * rust-exp.y (rust_lex_tests): Update.
8955 * parse.c (parser_state): Update.
8956 (parse_exp_in_context): Update.
8957 * parser-defs.h (struct parser_state) <parser_state>: Remove
8958 "initial_size" parameter.
8959
e3980ce2
TT
89602019-04-04 Tom Tromey <tom@tromey.com>
8961
8962 * parser-defs.h (increase_expout_size): Don't declare.
8963 * parse.c (increase_expout_size): Now static.
8964
e9f8e3f1
TS
89652019-04-04 Thomas Schwinge <thomas@codesourcery.com>
8966
8967 * gnu-nat.c (gnu_nat_target::wait): Fix
8968 target_waitstatus_to_string call.
8969
d7df6549
AB
89702019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8971
8972 * eval.c (evaluate_subexp_standard): Handle internal functions
8973 during Fortran function call handling.
8974
8bdc1658
AB
89752019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8976
8977 * NEWS: Mention new internal functions.
8978 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
8979 (read_base_type): Use dwarf2_init_complex_target_type.
8980 * value.c (creal_internal_fn): New function.
8981 (cimag_internal_fn): New function.
8982 (_initialize_values): Register new internal functions.
8983
c29705b7
PW
89842019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8985
8986 * infrun.c (stop_all_threads): If debug_infrun, always
8987 trace the wait status after wait_one, using
8988 target_waitstatus_to_string and target_pid_to_str.
8989 (handle_inferior_event): Replace various trace of
8990 wait status kind by a single trace.
8991 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
8992 wait status kind image by target_waitstatus_to_string.
8993 * target/waitstatus.c (target_waitstatus_to_string): Fix
8994 obsolete comment.
8995
05caa1d2
TT
89962019-04-01 Tom Tromey <tromey@adacore.com>
8997
8998 PR symtab/23331:
8999 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
9000
9d1447e0
SDJ
90012019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
9002 Pedro Alves <palves@redhat.com>
9003
9004 * top.c (quit_force): Call 'finalize_values'.
9005 * value.c (finalize_values): New function.
9006 * value.h (finalize_values): Declare.
9007
7734102d
EZ
90082019-03-30 Eli Zaretskii <eliz@gnu.org>
9009
9010 * NEWS: Announce $_gdb_major and $_gdb_minor.
9011
9012 * top.c (init_gdb_version_vars): New function.
9013 (gdb_init): Call init_gdb_version_vars.
9014
188e1fa9
TT
90152019-03-29 Tom Tromey <tromey@adacore.com>
9016
9017 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
9018 help text. Remove dead code.
9019
2880242d
KS
90202019-03-29 Keith Seitz <keiths@redhat.com>
9021
9022 From Siddhesh Poyarekar:
9023 * f-lang.h (f77_get_upperbound): Return LONGEST.
9024 (f77_get_lowerbound): Likewise.
9025 * f-typeprint.c (f_type_print_varspec_suffix): Expand
9026 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
9027 print them.
9028 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
9029 plongest to format print it.
9030 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
9031 (f77_get_upperbound): Likewise.
9032 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
9033 LOWER_BOUND to LONGEST.
9034 (f77_create_arrayprint_offset_tbl): Likewise.
9035
cc1defb1
KS
90362019-03-29 Keith Seitz <keiths@redhat.com>
9037
9038 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
9039 %s/pulongest for TYPE_LENGTH instead of %d in format
9040 strings.
9041 * ada-typerint.c (ada_print_type): Likewise.
9042 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
9043 * compile/compile-c-support.c (generate_register_struct): Likewise.
9044 * gdbtypes.c (recursive_dump_type): Likewise.
9045 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
9046 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
9047 instead of %d in format strings.
9048 * riscv-tdep.c (riscv_type_alignment): Cast second argument
9049 to std::min to ULONGEST.
9050 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
9051 instead of %d in format strings.
9052 * tracepoint.c (info_scope_command): Likewise.
9053 * typeprint.c (print_offset_data::update)
9054 (print_offset_data::finish): Likewise.
9055 * xtensa-tdep.c (xtensa_store_return_value)
9056 (xtensa_push_dummy_call): Likewise.
9057
e432ccf1
JT
90582019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
9059
9060 * windows-nat.c (display_selector): Fixed format specifications
9061 for 64-bit Cygwin.
9062
65d2b333
PW
90632019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9064
9065 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
9066
f489207e
SL
90672019-03-28 Sandra Loosemore <sandra@codesourcery.com>
9068
9069 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
9070 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
9071 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
9072 (nios2_linux_init_abi): Install it.
9073
bffa1015
AH
90742019-03-28 Alan Hayward <alan.hayward@arm.com>
9075
9076 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
9077
fc96163a
AH
90782019-03-28 Alan Hayward <alan.hayward@arm.com>
9079
9080 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
9081
20dc7e9b
PW
90822019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9083 Tom Tromey <tromey@adacore.com>
9084
9085 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
9086
7f5331a8
JB
90872019-03-26 Joel Brobecker <brobecker@adacore.com>
9088
9089 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
9090 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
9091 method to compute the bounds of range types. Also print "[evaluated]"
9092 if the bounds' values come from a dynamic evaluation.
9093
18c77628
AB
90942019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
9095
9096 * cp-valprint.c (cp_print_value_fields): Don't print trailing
9097 whitespace when pretty printing is on.
9098
53c973f2
AH
90992019-03-26 Alan Hayward <alan.hayward@arm.com>
9100
e79be6e5 9101 * ppc-linux-nat.c: Add include.
53c973f2 9102
d851aa71
AH
91032019-03-26 Alan Hayward <alan.hayward@arm.com>
9104
e79be6e5 9105 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 9106
2fe7bab7
AH
91072019-03-26 Alan Hayward <alan.hayward@arm.com>
9108
e79be6e5 9109 * arm-linux-nat.c: Add include.
2fe7bab7 9110
068ef30e
SM
91112019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
9112
9113 * source-cache.c (source_cache::get_source_lines): Re-read
9114 fullname after calling open_source_file.
9115
81a24d04
JB
91162019-03-25 John Baldwin <jhb@FreeBSD.org>
9117
9118 * NEWS: Mention TLS support for FreeBSD.
9119
79e7ae11
TT
91202019-03-25 Tom Tromey <tromey@adacore.com>
9121
9122 * minsyms.c (BUNCH_SIZE): Update comment.
9123 (~minimal_symbol_reader): Remove old comment.
9124 (compact_minimal_symbols): Update comment.
9125 (minimal_symbol_reader::install): Remove old comment. Update
9126 other comments.
9127
d45963c2
AH
91282019-03-25 Alan Hayward <alan.hayward@arm.com>
9129
9130 * s390-linux-nat.c: Add include.
9131
0f83012e
AH
91322019-03-25 Alan Hayward <alan.hayward@arm.com>
9133
9134 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
9135 Call linux_get_hwcap.
9136 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
9137 Likewise.
9138 (aarch64_linux_get_hwcap): Remove function.
9139 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
9140 declaration.
9141 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
9142 linux_get_hwcap.
9143 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
9144 * linux-tdep.c (linux_get_hwcap): Add function.
9145 (linux_get_hwcap2): Likewise.
9146 * linux-tdep.h (linux_get_hwcap): Add declaration.
9147 (linux_get_hwcap2): Likewise.
9148 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
9149 (ppc_linux_get_hwcap2): Likewise.
9150 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
9151 linux_get_hwcap.
9152 (ppc_linux_nat_target::insert_watchpoint): Likewise.
9153 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
9154 (ppc_linux_nat_target::read_description): Likewise.
9155 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
9156 * s390-linux-nat.c: Likewise.
9157 * s390-linux-tdep.c (s390_core_read_description): Likewise.
9158
6640a367
TT
91592019-03-24 Tom Tromey <tom@tromey.com>
9160
9161 * ada-lang.c (standard_lookup): Simplify initialization.
9162 (ada_lookup_symbol_nonlocal): Simplify return.
9163 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
9164 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
9165 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
9166 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
9167 initialization.
9168 * solib.c (solib_global_lookup): Simplify.
9169 * symtab.c (null_block_symbol): Remove.
9170 (symbol_cache_lookup): Simplify returns.
9171 (lookup_language_this): Simplify returns.
9172 (lookup_symbol_aux): Simplify return.
9173 (lookup_local_symbol): Simplify returns.
9174 (lookup_global_symbol_from_objfile): Simplify return.
9175 (lookup_symbol_in_objfile_symtabs)
9176 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
9177 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
9178 (lookup_static_symbol, lookup_global_symbol): Simplify return.
9179 * cp-namespace.c (cp_lookup_bare_symbol)
9180 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
9181 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
9182 (cp_lookup_nested_symbol): Don't use null_block_symbol.
9183 (cp_lookup_symbol_via_imports): Simplify initialization.
9184 (find_symbol_in_baseclass): Likewise.
9185 * symtab.h (null_block_symbol): Remove.
9186 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
9187 (d_lookup_nested_symbol, d_lookup_symbol_imports)
9188 (d_lookup_symbol_module): Likewise.
9189 (find_symbol_in_baseclass): Simplify initialization.
9190
a930ebcd
TT
91912019-03-24 Tom Tromey <tom@tromey.com>
9192
9193 * expression.h: Don't include symtab.h.
9194 (struct block): Forward declare.
9195
582942f4
TT
91962019-03-24 Tom Tromey <tom@tromey.com>
9197
9198 * c-exp.y (typebase): Remove casts.
9199 * gdbtypes.c (lookup_unsigned_typename, )
9200 (lookup_signed_typename): Remove cast.
9201 * eval.c (parse_to_comma_and_eval): Remove cast.
9202 * parse.c (write_dollar_variable): Remove cast.
9203 * block.h (struct block) <superblock>: Now const.
9204 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
9205 * psymtab.c (psym_map_matching_symbols): Make "block" const.
9206 (map_block): Make "block" const.
9207 * symfile.h (struct quick_symbol_functions)
9208 <map_matching_symbols>: Constify block argument to "callback".
9209 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
9210 const.
9211 (find_pc_sect_compunit_symtab): Make "b" const.
9212 (find_symbol_at_address): Likewise.
9213 (search_symbols): Likewise.
9214 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
9215 (dw2_debug_names_lookup_symbol): Likewise.
9216 (dw2_map_matching_symbols): Update.
9217 * p-valprint.c (pascal_val_print): Remove "block".
9218 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
9219 (aux_add_nonlocal_symbols): Make "block" const.
9220 (resolve_subexp): Remove cast.
9221 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
9222 const.
9223 (iterate_over_file_blocks): Likewise.
9224 * f-exp.y (%union) <bval>: Remove.
9225 * coffread.c (patch_opaque_types): Make "b" const.
9226 * spu-tdep.c (spu_catch_start): Make "block" const.
9227 * c-valprint.c (print_unpacked_pointer): Remove "block".
9228 * symmisc.c (dump_symtab_1): Make "b" const.
9229 (block_depth): Make "block" const.
9230 * d-exp.y (%union) <bval>: Remove.
9231 * cp-support.h (cp_lookup_rtti_type): Update.
9232 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
9233 * psymtab.c (psym_lookup_symbol): Make "block" const.
9234 (maintenance_check_psymtabs): Make "b" const.
9235 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
9236 (enumerate_locals, enumerate_args): Update.
9237 * python/py-symtab.c (stpy_global_block): Make "block" const.
9238 (stpy_static_block): Likewise.
9239 * inline-frame.c (block_starting_point_at): Make "new_block"
9240 const.
9241 * block.c (find_block_in_blockvector): Make return type const.
9242 (blockvector_for_pc_sect): Make "b" const.
9243 (find_block_in_blockvector): Make "b" const.
9244
7ad417dd
TT
92452019-03-23 Tom Tromey <tom@tromey.com>
9246
9247 * varobj.c (varobj_create): Update.
9248 * symfile.c (clear_symtab_users): Don't reset innermost_block.
9249 * printcmd.c (display_command, do_one_display): Don't reset
9250 innermost_block.
9251 * parser-defs.h (enum innermost_block_tracker_type): Move to
9252 expression.h.
9253 (innermost_block): Update comment.
9254 * parse.c (parse_exp_1): Add tracker_types parameter.
9255 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
9256 tracker_types parameter. Reset innermost_block.
9257 (parse_exp_in_context): Remove.
9258 (parse_expression_for_completion): Update.
9259 * objfiles.c (~objfile): Don't reset expression_context_block or
9260 innermost_block.
9261 * expression.h (enum innermost_block_tracker_type): Move from
9262 parser-defs.h.
9263 (parse_exp_1): Add tracker_types parameter.
9264 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
9265 reset innermost_block.
9266
b366c208
TT
92672019-03-23 Tom Tromey <tom@tromey.com>
9268
9269 * objfiles.h: Include bcache.h.
9270
9bb9b2f9
TT
92712019-03-23 Tom Tromey <tom@tromey.com>
9272
9273 * linespec.c (get_current_search_block): Use
9274 scoped_restore_current_language.
9275 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
9276
59c28372
AH
92772019-03-22 Alan Hayward <alan.hayward@arm.com>
9278 Jiong Wang <jiong.wang@arm.com>
9279
9280 * aarch64-linux-tdep.c
9281 (aarch64_linux_iterate_over_regset_sections): Check for pauth
9282 section.
9283 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
9284
17e116a7
AH
92852019-03-22 Alan Hayward <alan.hayward@arm.com>
9286 Jiong Wang <jiong.wang@arm.com>
9287
9288 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
9289 instructions.
9290 (aarch64_analyze_prologue_test): Add PACIASP test.
9291 (aarch64_prologue_prev_register): Unmask PC value.
9292
11e1b75f
AH
92932019-03-22 Alan Hayward <alan.hayward@arm.com>
9294 Jiong Wang <jiong.wang@arm.com>
9295
9296 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
9297 (aarch64_dwarf2_prev_register): Unmask PC value.
9298 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
9299 (aarch64_execute_dwarf_cfa_vendor_op): Check for
9300 DW_CFA_AARCH64_negate_ra_state.
9301 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
9302
34dcc7cf
AH
93032019-03-22 Alan Hayward <alan.hayward@arm.com>
9304 Jiong Wang <jiong.wang@arm.com>
9305
9306 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
9307 registers.
9308 (aarch64_pseudo_register_name): Likewise.
9309 (aarch64_pseudo_register_type): Likewise.
9310 (aarch64_pseudo_register_reggroup_p): Likewise.
9311 (aarch64_gdbarch_init): Add pauth registers.
9312 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
9313 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
9314 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
9315 (struct gdbarch_tdep): Add regnum for ra_state.
9316
1ef53e6b
AH
93172019-03-22 Alan Hayward <alan.hayward@arm.com>
9318 Jiong Wang <jiong.wang@arm.com>
9319
9320 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
9321
76bed0fd
AH
93222019-03-22 Alan Hayward <alan.hayward@arm.com>
9323 Jiong Wang <jiong.wang@arm.com>
9324
9325 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
9326 function.
9327 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
9328 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
9329 (aarch64_gdbarch_init): Add puth registers.
9330 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
9331 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
9332 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
9333
ee4fbcfa
AH
93342019-03-22 Alan Hayward <alan.hayward@arm.com>
9335 Jiong Wang <jiong.wang@arm.com>
9336
9337 * aarch64-linux-nat.c
9338 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
9339 * aarch64-linux-tdep.c
9340 (aarch64_linux_core_read_description): Likewise.
9341 (aarch64_linux_get_hwcap): New function.
9342 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
9343 (aarch64_linux_get_hwcap): New declaration.
9344
6dc0ebde
AH
93452019-03-22 Alan Hayward <alan.hayward@arm.com>
9346 Jiong Wang <jiong.wang@arm.com>
9347
9348 * aarch64-linux-nat.c
9349 (aarch64_linux_nat_target::read_description): Add pauth param.
9350 * aarch64-linux-tdep.c
9351 (aarch64_linux_core_read_description): Likewise.
9352 * aarch64-tdep.c (struct target_desc): Add in pauth.
9353 (aarch64_read_description): Add pauth param.
9354 (aarch64_gdbarch_init): Likewise.
9355 * aarch64-tdep.h (aarch64_read_description): Likewise.
9356 * arch/aarch64.c (aarch64_create_target_description): Likewise.
9357 * arch/aarch64.h (aarch64_create_target_description): Likewise.
9358 * features/Makefile: Add new files.
9359 * features/aarch64-pauth.c: New file.
9360 * features/aarch64-pauth.xml: New file.
9361
595915c1
TT
93622019-03-20 Tom Tromey <tromey@adacore.com>
9363
9364 * infrun.c (handle_inferior_event): Rename from
9365 handle_inferior_event_1. Create a scoped_value_mark.
9366 (handle_inferior_event): Remove.
9367
4c7d57e7
TT
93682019-03-19 Tom Tromey <tromey@adacore.com>
9369
9370 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
9371 * infrun.h (print_stop_event): Add "displays" parameter.
9372 * infrun.c (print_stop_event): Add "displays" parameter.
9373
cb246234
PA
93742019-03-19 Pedro Alves <palves@redhat.com>
9375
9376 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
9377 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
9378 to -1. Fix TABs vs spaces.
9379 (tui_ui_out::tui_ui_out): Don't initialize fields here.
9380 * tui/tui-out.h (tui_ui_out) Add intro comments.
9381 <m_line, m_start_of_line>: In-class initialize, and add describing
9382 comment.
9383
3a0e45b2
AH
93842019-03-18 Alan Hayward <alan.hayward@arm.com>
9385
9386 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
9387 variable names.
9388 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
9389
5371b850
PA
93902019-03-18 Pedro Alves <palves@redhat.com>
9391 Eli Zaretskii <eliz@gnu.org>
9392
9393 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
9394 m_line and m_start_of_line.
9395
b17c4cd0
EZ
93962019-03-18 Eli Zaretskii <eliz@gnu.org>
9397
9398 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
9399 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
9400 it returns a newline. This fixes a regression in TU mode, whereby
9401 the next line is output on the same screen line as the user input.
9402
4bd56d18
TT
94032019-03-18 Tom Tromey <tromey@adacore.com>
9404
9405 * minsyms.c (minimal_symbol_reader::install): Remove call to
9406 obstack_blank.
9407
55c10aca
PA
94082019-03-18 Pedro Alves <palves@redhat.com>
9409
9410 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
9411 New globals.
9412 (apply_style): New, factored out from ...
9413 (apply_ansi_escape): ... this. Handle reverse video mode.
9414 (tui_set_reverse_mode): New function.
9415 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
9416 * tui/tui-winsource.c (tui_show_source_line): Use
9417 tui_set_reverse_mode instead of setting A_STANDOUT.
9418 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
9419 New setter methods.
9420
647bb750
HD
94212019-03-18 Hannes Domani <ssbssa@yahoo.de>
9422
9423 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
9424 Handle tabs.
9425
bff8c71f
TT
94262019-03-18 Tom Tromey <tromey@adacore.com>
9427
9428 * ada-lang.c (empty_array): Add "high" parameter.
9429 (ada_evaluate_subexp): Update.
9430
58785d98
ST
94312019-03-17 Sergei Trofimovich <siarheit@google.com>
9432
9433 * unittests/string_view-selftests.c: Define
9434 _initialize_string_view_selftests unconditionally.
9435
d4cbef22
ВМ
94362019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9437
9438 PR gdb/24350
9439 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
9440
fce4c071
ВМ
94412019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9442
9443 PR gdb/24351
9444 * windows-nat.c (display_selector): Fix format specifiers.
9445
f7f0a123
EZ
94462019-03-17 Eli Zaretskii <eliz@gnu.org>
9447
9448 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
9449 tui_refill_source_window instead of tui_refresh_win, to update the
9450 current execution line. This fixes redisplay of the current line
9451 when stepping through the code with "next" or "step".
9452
ab42892f
EZ
94532019-03-16 Eli Zaretskii <eliz@gnu.org>
9454
9455 * source-cache.c (source_cache::get_source_lines): Call
9456 find_source_lines to initialize s->nlines. This fixes vertical
9457 scrolling of TUI source window when the DOWN arrow is pressed.
9458
8d8c087f
PW
94592019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9460
9461 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
9462 linux-thread-db.c (_initialize_thread_db): Likewise.
9463
798e1c30
EZ
94642019-03-16 Eli Zaretskii <eliz@gnu.org>
9465
9466 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
9467 wclrtoeol in tui_show_source_line". This reverts changes made in
9468 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
9469
eefba3da
TT
94702019-03-15 Tom Tromey <tom@tromey.com>
9471
9472 * symtab.h (struct minimal_symbol): Derive from
9473 general_symbol_info.
9474 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
9475 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9476 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9477 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9478 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
9479 (MSYMBOL_SEARCH_NAME): Update.
9480 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
9481 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
9482 * minsyms.c (minimal_symbol_reader::record_full): Update.
9483
0de2420c
TT
94842019-03-15 Tom Tromey <tom@tromey.com>
9485
9486 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
9487
042d75e4
TT
94882019-03-15 Tom Tromey <tom@tromey.com>
9489
9490 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
9491 unique_xmalloc_ptr.
9492 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
9493 Update.
9494 * minsyms.c (lookup_minimal_symbol_by_pc_section)
9495 (build_minimal_symbol_hash_tables)
9496 (minimal_symbol_reader::install): Update.
9497
db92718b
TT
94982019-03-15 Tom Tromey <tom@tromey.com>
9499
9500 * symtab.c (create_demangled_names_hash): Update.
9501 (symbol_set_names): Update.
9502 * objfiles.h (struct objfile_per_bfd_storage)
9503 <demangled_names_hash>: Now an htab_up.
9504 * objfiles.c (objfile_per_bfd_storage): Simplify.
9505
d6797f46
TT
95062019-03-15 Tom Tromey <tom@tromey.com>
9507
9508 * objfiles.h (struct objfile_per_bfd_storage): Declare
9509 destructor.
9510 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
9511 New.
9512 (get_objfile_bfd_data): Use new. Don't initialize
9513 language_of_main.
9514 (free_objfile_per_bfd_storage): Remove.
9515 (objfile_bfd_data_free, objfile::~objfile): Use delete.
9516
741d7538
TT
95172019-03-15 Tom Tromey <tom@tromey.com>
9518
9519 * symfile.c (reread_symbols): Update.
9520 * objfiles.c (objfile::objfile): Update.
9521 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
9522 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
9523 comment.
9524 (minimal_symbol_reader::install): Update.
9525 (terminate_minimal_symbol_table): Remove.
9526 * jit.c (jit_object_close_impl): Update.
9527
788c80d1
TT
95282019-03-15 Tom Tromey <tom@tromey.com>
9529
9530 * minsyms.c (minimal_symbol_reader::record_full): Remove some
9531 initializations.
9532
1b7a07cb
TT
95332019-03-15 Tom Tromey <tom@tromey.com>
9534
9535 * objfiles.h (struct objfile_per_bfd_storage)
9536 <demangled_hash_languages>: Now a bitset.
9537 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
9538 (lookup_minimal_symbol): Update.
9539
3db066bc
TT
95402019-03-15 Tom Tromey <tom@tromey.com>
9541
9542 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
9543 Don't return the symbol.
9544 * coffread.c (record_minimal_symbol): Use record_full.
9545
3fff2c37
EZ
95462019-03-14 Eli Zaretskii <eliz@gnu.org>
9547
9548 The MS-Windows port of ncurses fails to switch to a color pair if
9549 one or both of the colors are the implicit default colors. This
9550 change records the default colors when TUI is initialized, and
9551 then specifies them explicitly when a color pair uses the default
9552 colors. This allows color styling in TUI mode on MS-Windows.
9553
9554 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
9555 ncurses_norm_attr.
9556 (tui_initialize_io) [__MINGW32__]: Record the default terminal
9557 colors in ncurses_norm_attr.
9558 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
9559 "none", replace it with the default color recorded in
9560 ncurses_norm_attr.
9561
3b336828
TT
95622019-03-14 Tom Tromey <tromey@adacore.com>
9563
9564 * source-cache.h (class source_cache) <get_source_lines>: Return
9565 std::string.
9566 * source-cache.c (source_cache::extract_lines): Handle case where
9567 first_pos==npos. Return std::string.
9568 (source_cache::get_source_lines): Update.
9569
d085f989
TT
95702019-03-14 Tom Tromey <tromey@adacore.com>
9571
9572 * NEWS: Add item for "style sources" commands.
9573 * source-cache.c (source_cache::get_source_lines): Check
9574 source_styling.
9575 * cli/cli-style.c (source_styling): New global.
9576 (_initialize_cli_style): Add "style sources" commands.
9577 (show_style_sources): New function.
9578 * cli/cli-style.h (source_styling): Declare.
9579
6f11e682
TT
95802019-03-14 Pedro Alves <palves@redhat.com>
9581 Tom Tromey <tromey@adacore.com>
9582
9583 * tui/tui-winsource.h (tui_refill_source_window): Declare.
9584 * tui/tui-winsource.c (tui_refill_source_window): New function,
9585 from...
9586 (tui_horizontal_source_scroll): ... here. Move some logic.
9587 * cli/cli-style.c (set_style_enabled): Notify new observable.
9588 * tui/tui-hooks.c (tui_redisplay_source): New function.
9589 (tui_attach_detach_observers): Attach or detach
9590 tui_redisplay_source.
9591 * observable.h (source_styling_changed): New observable.
9592 * observable.c: Define source_styling_changed observable.
9593
a068643d
TT
95942019-03-13 Tom Tromey <tromey@adacore.com>
9595
9596 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
9597 (i386_gnu_nat_target::store_registers): Update.
9598 * target-debug.h (target_debug_print_std_string): New macro.
9599 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9600 * windows-tdep.c (display_one_tib): Update.
9601 * tui/tui-stack.c (tui_make_status_line): Update.
9602 * top.c (print_inferior_quit_action): Update.
9603 * thread.c (thr_try_catch_cmd): Update.
9604 (add_thread_with_info): Update.
9605 (thread_target_id_str): Update.
9606 (thr_try_catch_cmd): Update.
9607 (thread_command): Update.
9608 (thread_find_command): Update.
9609 * record-btrace.c (record_btrace_target::info_record)
9610 (record_btrace_resume_thread, record_btrace_target::resume)
9611 (record_btrace_cancel_resume, record_btrace_step_thread)
9612 (record_btrace_target::wait, record_btrace_target::wait)
9613 (record_btrace_target::wait, record_btrace_target::stop): Update.
9614 * progspace.c (print_program_space): Update.
9615 * process-stratum-target.c
9616 (process_stratum_target::thread_address_space): Update.
9617 * linux-fork.c (linux_fork_mourn_inferior)
9618 (detach_checkpoint_command, info_checkpoints_command)
9619 (linux_fork_context): Update.
9620 (linux_fork_detach): Update.
9621 (class scoped_switch_fork_info): Update.
9622 (delete_checkpoint_command): Update.
9623 * infrun.c (follow_fork_inferior): Update.
9624 (follow_fork_inferior): Update.
9625 (proceed_after_vfork_done): Update.
9626 (handle_vfork_child_exec_or_exit): Update.
9627 (follow_exec): Update.
9628 (displaced_step_prepare_throw): Update.
9629 (displaced_step_restore): Update.
9630 (start_step_over): Update.
9631 (resume_1): Update.
9632 (clear_proceed_status_thread): Update.
9633 (proceed): Update.
9634 (print_target_wait_results): Update.
9635 (do_target_wait): Update.
9636 (context_switch): Update.
9637 (stop_all_threads): Update.
9638 (restart_threads): Update.
9639 (finish_step_over): Update.
9640 (handle_signal_stop): Update.
9641 (switch_back_to_stepped_thread): Update.
9642 (keep_going_pass_signal): Update.
9643 (print_exited_reason): Update.
9644 (normal_stop): Update.
9645 * inferior.c (inferior_pid_to_str): Change return type.
9646 (print_selected_inferior): Update.
9647 (add_inferior): Update.
9648 (detach_inferior): Update.
9649 * dummy-frame.c (fprint_dummy_frames): Update.
9650 * dcache.c (dcache_info_1): Update.
9651 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
9652 (btrace_fetch, btrace_clear): Update.
9653 * linux-tdep.c (linux_core_pid_to_str): Change return type.
9654 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
9655 type.
9656 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
9657 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
9658 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
9659 * gdbarch.c, gdbarch.h: Rebuild.
9660 * gdbarch.sh (core_pid_to_str): Change return type.
9661 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
9662 return type.
9663 (windows_nat_target::pid_to_str): Change return type.
9664 (windows_delete_thread): Update.
9665 (windows_nat_target::attach): Update.
9666 (windows_nat_target::files_info): Update.
9667 * target-delegates.c: Rebuild.
9668 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
9669 return type.
9670 (sol_thread_target::pid_to_str): Change return type.
9671 * remote.c (class remote_target) <pid_to_str>: Change return
9672 type.
9673 (remote_target::pid_to_str): Change return type.
9674 (extended_remote_target::attach, remote_target::remote_stop_ns)
9675 (remote_target::remote_notif_remove_queued_reply)
9676 (remote_target::push_stop_reply, remote_target::disable_btrace):
9677 Update.
9678 (extended_remote_target::attach): Update.
9679 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
9680 type.
9681 (gdbsim_target::pid_to_str): Change return type.
9682 * ravenscar-thread.c (struct ravenscar_thread_target)
9683 <pid_to_str>: Change return type.
9684 (ravenscar_thread_target::pid_to_str): Change return type.
9685 * procfs.c (class procfs_target) <pid_to_str>: Change return
9686 type.
9687 (procfs_target::pid_to_str): Change return type.
9688 (procfs_target::attach): Update.
9689 (procfs_target::detach): Update.
9690 (procfs_target::fetch_registers): Update.
9691 (procfs_target::store_registers): Update.
9692 (procfs_target::wait): Update.
9693 (procfs_target::files_info): Update.
9694 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
9695 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
9696 return type.
9697 (nto_procfs_target::pid_to_str): Change return type.
9698 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
9699 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
9700 return type.
9701 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
9702 (exit_lwp): Update.
9703 (attach_proc_task_lwp_callback, get_detach_signal)
9704 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
9705 (linux_nat_target::resume, wait_lwp, stop_callback)
9706 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
9707 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
9708 (linux_nat_wait_1, resume_stopped_resumed_lwps)
9709 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
9710 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
9711 type.
9712 (inf_ptrace_target::attach): Update.
9713 (inf_ptrace_target::files_info): Update.
9714 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
9715 type.
9716 (go32_nat_target::pid_to_str): Change return type.
9717 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
9718 (gnu_nat_target::wait): Update.
9719 (gnu_nat_target::wait): Update.
9720 (gnu_nat_target::resume): Update.
9721 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
9722 (fbsd_nat_target::wait): Update.
9723 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
9724 type.
9725 (darwin_nat_target::attach): Update.
9726 * corelow.c (class core_target) <pid_to_str>: Change return type.
9727 (core_target::pid_to_str): Change return type.
9728 * target.c (normal_pid_to_str): Change return type.
9729 (default_pid_to_str): Likewise.
9730 (target_pid_to_str): Change return type.
9731 (target_translate_tls_address): Update.
9732 (target_announce_detach): Update.
9733 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
9734 return type.
9735 (bsd_uthread_target::pid_to_str): Change return type.
9736 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
9737 type.
9738 (bsd_kvm_target::pid_to_str): Change return type.
9739 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
9740 return type.
9741 (aix_thread_target::pid_to_str): Change return type.
9742 * target.h (struct target_ops) <pid_to_str>: Change return type.
9743 (target_pid_to_str, normal_pid_to_str): Likewise.
9744 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
9745 type.
9746 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
9747 type.
9748 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
9749 return type.
9750 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
9751 type.
9752 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
9753 type.
9754 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
9755 return type.
9756
b4be1b06
SM
97572019-03-13 Simon Marchi <simon.marchi@ericsson.com>
9758
9759 * NEWS: Mention that the new default MI version is 3. Mention
9760 changes to the output of commands and events that deal with
9761 multi-location breakpoints.
9762 * breakpoint.c: Include "mi/mi-out.h".
9763 (print_one_breakpoint): Change output syntax if using MI version
9764 >= 3.
9765 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
9766 New.
9767 (mi_multi_location_breakpoint_output_fixed): New.
9768 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
9769 (mi_cmd_fix_multi_location_breakpoint_output): New.
9770 (mi_multi_location_breakpoint_output_fixed): New.
9771 * mi/mi-cmds.c (mi_cmds): Register command
9772 -fix-multi-location-breakpoint-output.
9773 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
9774 interpreter "mi".
9775
8e5e5494
SM
97762019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9777
9778 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
9779 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
9780 instantiate mi_ui_out based on interpreter name.
9781 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
9782 * mi/mi-main.c (mi_load_progress): Likewise.
9783
197df35e
JB
97842019-03-12 John Baldwin <jhb@FreeBSD.org>
9785
9786 * NEWS: Combine separate "New targets" sections for 8.3.
9787
8399425f
JB
97882019-03-12 John Baldwin <jhb@FreeBSD.org>
9789
9790 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
9791 (ppcfbsd_init_abi): Install gdbarch
9792 "fetch_tls_load_module_address" and "get_thread_local_address"
9793 methods.
9794
b0f87ed0
JB
97952019-03-12 John Baldwin <jhb@FreeBSD.org>
9796
9797 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
9798 (riscv_fbsd_init_abi): Install gdbarch
9799 "fetch_tls_load_module_address" and "get_thread_local_address"
9800 methods.
9801
ce25aa57
JB
98022019-03-12 John Baldwin <jhb@FreeBSD.org>
9803
9804 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
9805 (i386fbsd_init_abi): Install gdbarch
9806 "fetch_tls_load_module_address" and "get_thread_local_address"
9807 methods.
9808
f5424cfa
JB
98092019-03-12 John Baldwin <jhb@FreeBSD.org>
9810
9811 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
9812 (amd64fbsd_init_abi): Install gdbarch
9813 "fetch_tls_load_module_address" and "get_thread_local_address"
9814 methods.
9815
945f3901
JB
98162019-03-12 John Baldwin <jhb@FreeBSD.org>
9817
9818 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
9819 (struct fbsd_pspace_data): New type.
9820 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
9821 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
9822 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
9823 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
9824 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
9825
ef0bd204
JB
98262019-03-12 John Baldwin <jhb@FreeBSD.org>
9827
9828 * gdbtypes.c (lookup_struct_elt): New function.
9829 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
9830 * gdbtypes.h (struct struct_elt): New type.
9831 (lookup_struct_elt): New prototype.
9832
36c53a02
JB
98332019-03-12 John Baldwin <jhb@FreeBSD.org>
9834
9835 * gdbtypes.c (lookup_struct_elt_type): Update comment and
9836 remove disabled code block.
9837
6e056c81
JB
98382019-03-12 John Baldwin <jhb@FreeBSD.org>
9839
9840 * gdbarch.sh (get_thread_local_address): New method.
9841 * gdbarch.h, gdbarch.c: Regenerate.
9842 * target.c (target_translate_tls_address): Use
9843 gdbarch_get_thread_local_address if present instead of
9844 target::get_thread_local_address.
9845
cd250a18
JB
98462019-03-12 John Baldwin <jhb@FreeBSD.org>
9847
9848 * target.h (target::get_thread_local_address): Update comment.
9849
df22c1e5
JB
98502019-03-12 John Baldwin <jhb@FreeBSD.org>
9851
9852 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
9853 objfile->separate_debug_objfile_backlink if not NULL.
9854
dd6876c9
JB
98552019-03-12 John Baldwin <jhb@FreeBSD.org>
9856
9857 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
9858 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
9859 (amd64bsd_store_inferior_registers): Likewise.
9860 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9861 Enable segment base registers.
9862 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
9863 PT_GETFSBASE and PT_GETGSBASE.
9864 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
9865 PT_SETGSBASE.
9866 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
9867 segment base registers.
9868 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9869
1163a4b7
JB
98702019-03-12 John Baldwin <jhb@FreeBSD.org>
9871
9872 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9873 Update calls to i386_target_description to add 'segments'
9874 parameter.
9875 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
9876 add segment base registers.
9877 * arch/i386.c (i386_create_target_description): Add 'segments'
9878 parameter to enable segment base registers.
9879 * arch/i386.h (i386_create_target_description): Likewise.
9880 * features/i386/32bit-segments.xml: New file.
9881 * features/i386/32bit-segments.c: Generate.
9882 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
9883 call to i386_target_description to add 'segments' parameter.
9884 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9885 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
9886 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
9887 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
9888 if feature is present.
9889 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
9890 Add 'segments' parameter to call to i386_target_description.
9891 (i386_target_description): Add 'segments' parameter to enable
9892 segment base registers.
9893 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
9894 to call to i386_target_description.
9895 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
9896 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
9897 Define I386_NUM_REGS.
9898 (i386_target_description): Add 'segments' parameter to enable
9899 segment base registers.
9900
3a350822
EZ
99012019-03-12 Eli Zaretskii <eliz@gnu.org>
9902
9903 PR/24325
9904 * source-cache.c: #undef open and close, to avoid unresolved
9905 externals during linking.
9906
ffdd69cf
TT
99072019-03-12 Tom Tromey <tromey@adacore.com>
9908
9909 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
9910 const. Add initializers.
9911 (_initialize_remote): Don't initialize ptid globals.
9912
ec148c57
PA
99132019-03-12 Pedro Alves <palves@redhat.com>
9914
9915 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
9916
32764270
PA
99172019-03-12 Pedro Alves <palves@redhat.com>
9918
9919 * cp-name-parser.y (main): Remove unused 'len' variable.
9920
17547186
TT
99212019-03-12 Tom Tromey <tromey@adacore.com>
9922
9923 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
9924 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
9925
d3a70e03
TT
99262019-03-12 Tom Tromey <tromey@adacore.com>
9927
9928 * linux-nat.c (iterate_over_lwps): Update.
9929 (stop_callback): Remove parameter.
9930 (stop_wait_callback, detach_callback, resume_set_callback)
9931 (select_singlestep_lwp_callback, set_ignore_sigint)
9932 (status_callback, resumed_callback, resume_clear_callback)
9933 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
9934 data parameter.
9935 (linux_nat_target::detach, linux_nat_target::resume)
9936 (linux_stop_and_wait_all_lwps, select_event_lwp)
9937 (linux_nat_filter_event, linux_nat_wait_1)
9938 (linux_nat_target::kill, linux_nat_target::stop)
9939 (linux_nat_target::stop): Update.
9940 (linux_nat_resume_callback): Change type.
9941 (resume_stopped_resumed_lwps, count_events_callback)
9942 (select_event_lwp_callback): Likewise.
9943 (linux_stop_lwp, linux_nat_stop_lwp): Update.
9944 * arm-linux-nat.c (struct update_registers_data): Remove.
9945 (update_registers_callback): Change type.
9946 (arm_linux_insert_hw_breakpoint1): Update.
9947 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
9948 parameter.
9949 (x86_linux_dr_set_addr): Update.
9950 (x86_linux_dr_set_control): Update.
9951 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
9952 (iterate_over_lwps): Use gdb::function_view.
9953 * nat/aarch64-linux-hw-point.c (struct
9954 aarch64_dr_update_callback_param): Remove.
9955 (debug_reg_change_callback): Change type.
9956 (aarch64_notify_debug_reg_change): Update.
9957 * s390-linux-nat.c (s390_refresh_per_info): Update.
9958
82cb27ff
TT
99592019-03-11 Tom Tromey <tromey@adacore.com>
9960
9961 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
9962 redundant assignment to "this_cu".
9963
568c0683
SM
99642019-03-08 Simon Marchi <simon.marchi@efficios.com>
9965
9966 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
9967
f09ce22d
SM
99682019-03-08 Simon Marchi <simon.marchi@efficios.com>
9969
9970 * gdbtypes.c (rank_one_type_parm_set): New function extracted
9971 from...
9972 (rank_one_type): ... this.
9973
595f96a9
SM
99742019-03-08 Simon Marchi <simon.marchi@efficios.com>
9975
9976 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
9977 from...
9978 (rank_one_type): ... this.
9979
2598a94b
SM
99802019-03-08 Simon Marchi <simon.marchi@efficios.com>
9981
9982 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
9983 from...
9984 (rank_one_type): ... this.
9985
7f17b20d
SM
99862019-03-08 Simon Marchi <simon.marchi@efficios.com>
9987
9988 * gdbtypes.c (rank_one_type_parm_float): New function extracted
9989 from...
9990 (rank_one_type): ... this.
9991
2c509035
SM
99922019-03-08 Simon Marchi <simon.marchi@efficios.com>
9993
9994 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
9995 from...
9996 (rank_one_type): ... this.
9997
0dd322dc
SM
99982019-03-08 Simon Marchi <simon.marchi@efficios.com>
9999
10000 * gdbtypes.c (rank_one_type_parm_range): New function extracted
10001 from...
10002 (rank_one_type): ... this.
10003
41ea4728
SM
100042019-03-08 Simon Marchi <simon.marchi@efficios.com>
10005
10006 * gdbtypes.c (rank_one_type_parm_char): New function extracted
10007 from...
10008 (rank_one_type): ... this.
10009
793cd1d2
SM
100102019-03-08 Simon Marchi <simon.marchi@efficios.com>
10011
10012 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
10013 from...
10014 (rank_one_type): ... this.
10015
34910087
SM
100162019-03-08 Simon Marchi <simon.marchi@efficios.com>
10017
10018 * gdbtypes.c (rank_one_type_parm_int): New function extracted
10019 from...
10020 (rank_one_type): ... this.
10021
f1f832d6
SM
100222019-03-08 Simon Marchi <simon.marchi@efficios.com>
10023
10024 * gdbtypes.c (rank_one_type_parm_func): New function extracted
10025 from...
10026 (rank_one_type): ... this.
10027
b9f4512f
SM
100282019-03-08 Simon Marchi <simon.marchi@efficios.com>
10029
10030 * gdbtypes.c (rank_one_type_parm_array): New function extracted
10031 from...
10032 (rank_one_type): ... this.
10033
9293fc63
SM
100342019-03-08 Simon Marchi <simon.marchi@efficios.com>
10035
10036 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
10037 from...
10038 (rank_one_type): ... this.
10039
e3abbe7e
PW
100402019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10041
10042 * inferior.c (initialize_inferiors): Ensure 'help set/show print
10043 inferior-events' shows the example events.
10044
e4adb939
EZ
100452019-03-08 Eli Zaretskii <eliz@gnu.org>
10046
10047 Support styling on native MS-Windows console
10048
10049 PR/24315
10050 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
10051 on MS-Windows if $TERM is not defined.
10052
10053 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
10054
10055 * posix-hdep.c (gdb_console_fputs):
10056 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
10057 functions.
10058 * ui-file.h (gdb_console_fputs): Add prototype.
10059
10060 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
10061 back to fputs only if the former returns zero.
10062
25629dfd
TT
100632019-03-07 Tom Tromey <tom@tromey.com>
10064
10065 * symmisc.c (print_symbol_bcache_statistics): Update.
10066 (print_objfile_statistics): Update.
10067 * symfile.c (allocate_symtab): Update.
10068 * stabsread.c: Don't include bcache.h.
10069 * psymtab.h (struct psymbol_bcache): Don't declare.
10070 (class psymtab_storage) <psymbol_cache>: Now a bcache.
10071 (psymbol_bcache_init, psymbol_bcache_free)
10072 (psymbol_bcache_get_bcache): Don't declare.
10073 * psymtab.c (struct psymbol_bcache): Remove.
10074 (psymtab_storage::psymtab_storage): Update.
10075 (psymtab_storage::~psymtab_storage): Update.
10076 (psymbol_bcache_init, psymbol_bcache_free)
10077 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
10078 (add_psymbol_to_bcache): Update.
10079 (allocate_psymtab): Update.
10080 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10081 macro_cache>: No longer pointers.
10082 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
10083 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
10084 * macrotab.c (macro_bcache): Update.
10085 * macroexp.c: Don't include bcache.h.
10086 * gdbtypes.c (check_types_worklist): Update.
10087 (types_deeply_equal): Remove TRY/CATCH. Update.
10088 * elfread.c (elf_symtab_read): Update.
10089 * dwarf2read.c: Don't include bcache.h.
10090 * buildsym.c (buildsym_compunit::get_macro_table): Update.
10091 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
10092 (print_bcache_statistics, bcache_memory_used): Don't declare.
10093 (struct bcache): Move from bcache.c. Add constructor, destructor,
10094 methods. Rename all data members.
10095 * bcache.c (struct bcache): Move to bcache.h.
10096 (bcache::expand_hash_table): Rename from expand_hash_table.
10097 (bcache): Remove.
10098 (bcache::insert): Rename from bcache_full.
10099 (bcache::compare): Rename from bcache_compare.
10100 (bcache_xmalloc): Remove.
10101 (bcache::~bcache): Rename from bcache_xfree.
10102 (bcache::print_statistics): Rename from print_bcache_statistics.
10103 (bcache::memory_used): Rename from bcache_memory_used.
10104
fe726667
PA
101052019-03-07 Pedro Alves <palves@redhat.com>
10106
10107 * infrun.c (normal_stop): Also check for
10108 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
10109
7584bb30
AB
101102019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10111
10112 * f-lang.c (value_from_host_double): Moved to...
10113 * value.c (value_from_host_double): ...here.
10114 * value.h (value_from_host_double): Declare.
10115 * guile/scm-math.c (vlscm_convert_typed_number): Use
10116 value_from_host_double.
10117 (vlscm_convert_number): Likewise.
10118 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
10119 * python/py-value.c (convert_value_from_python): Likewise.
10120
a7b1986e
TT
101212019-03-06 Tom Tromey <tom@tromey.com>
10122
10123 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
10124
0ccf4211
TT
101252019-03-06 Tom Tromey <tom@tromey.com>
10126
10127 * utils.h (free_current_contents): Don't declare.
10128 * utils.c (free_current_contents): Remove.
10129
fe7b42e5
TT
101302019-03-06 Tom Tromey <tom@tromey.com>
10131
10132 * top.c (quit_force): Update.
10133 * main.c (captured_command_loop): Update.
10134 * common/new-op.c (operator new): Update.
10135 * common/common-exceptions.c (struct catcher)
10136 <save_cleanup_chain>: Remove member.
10137 (exceptions_state_mc_init): Update.
10138 (exception_try_scope_entry): Return nullptr.
10139 (exception_try_scope_exit, exception_rethrow)
10140 (throw_exception_sjlj, throw_exception_cxx): Update.
10141 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
10142 (all_cleanups, do_cleanups, discard_cleanups)
10143 (discard_final_cleanups, save_cleanups, save_final_cleanups)
10144 (restore_cleanups, restore_final_cleanups): Don't declare.
10145 (do_final_cleanups): Remove parameter.
10146 * common/cleanups.c (cleanup_chain, make_cleanup)
10147 (make_cleanup_dtor, all_cleanups, do_cleanups)
10148 (discard_my_cleanups, discard_cleanups)
10149 (discard_final_cleanups, save_my_cleanups, save_cleanups)
10150 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
10151 (null_cleanup): Remove.
10152 (do_final_cleanups): Remove parameter.
10153
c6321f19
TT
101542019-03-06 Tom Tromey <tom@tromey.com>
10155
10156 * remote.c (remote_target::remote_parse_stop_reply): Use
10157 unique_xmalloc_ptr.
10158
61b30099
TT
101592019-03-06 Tom Tromey <tom@tromey.com>
10160
10161 * stabsread.c (struct stabs_field_info): Rename from field_info.
10162 <list, fnlist>: Add initializers.
10163 <obstack>: New member.
10164 (read_member_functions, read_struct_fields, read_baseclasses):
10165 Allocate on obstack. Don't use cleanups.
10166 (read_one_struct_field, read_member_functions, read_struct_fields)
10167 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
10168 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
10169 (read_struct_type): Update.
10170
6cceac94
TT
101712019-03-06 Tom Tromey <tom@tromey.com>
10172
10173 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
10174 * common/filestuff.h (make_cleanup_close): Don't declare.
10175 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
10176 Remove.
10177
72412762
TT
101782019-03-06 Tom Tromey <tom@tromey.com>
10179
10180 * solib-aix.c: Use make_scope_exit.
10181
2b6ff1c0
TT
101822019-03-06 Tom Tromey <tom@tromey.com>
10183
10184 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
10185 Use make_scope_exit.
10186
d01c5877
TT
101872019-03-06 Tom Tromey <tom@tromey.com>
10188
10189 * solib-svr4.c (disable_probes_interface): Remove parameter.
10190 (svr4_handle_solib_event): Use make_scope_exit.
10191
32603266
TT
101922019-03-06 Tom Tromey <tom@tromey.com>
10193
10194 * remote.c (struct stop_reply_deleter): Remove.
10195 (stop_reply_up): Update.
10196 (struct stop_reply): Derive from notif_event. Don't typedef.
10197 <regcache>: Now a std::vector.
10198 (stop_reply_xfree): Remove.
10199 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
10200 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
10201 (remote_target::discard_pending_stop_replies): Use delete.
10202 (remote_target::remote_parse_stop_reply): Update.
10203 (remote_target::process_stop_reply): Update.
10204 * remote-notif.h (struct notif_event): Add virtual destructor.
10205 Remove "dtr" member.
10206 (struct notif_client) <alloc_event>: Return a unique_ptr.
10207 (notif_event_xfree): Don't declare.
10208 (notif_event_up): New typedef.
10209 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
10210 (notif_event_xfree, do_notif_event_xfree): Remove.
10211 (remote_notif_state_xfree): Update.
10212
9799571e
TT
102132019-03-06 Tom Tromey <tom@tromey.com>
10214
10215 * infrun.c (displaced_step_clear_cleanup): Now a
10216 forward_scope_exit type.
10217 (displaced_step_prepare_throw): Update.
10218 (displaced_step_fixup): Update.
10219
09e3c4ca
TT
102202019-03-06 Tom Tromey <tom@tromey.com>
10221
10222 * inferior.h (class inferior): Update comment.
10223 * gdbthread.h (class thread_info): Update comment.
10224
e2a03548
TT
102252019-03-06 Joel Brobecker <brobecker@adacore.com>
10226 Tom Tromey <tom@tromey.com>
10227
10228 * stabsread.h (struct stab_section_list): Remove.
10229 (coffstab_build_psymtabs): Update.
10230 * dbxread.c (symbuf_sections): Now a std::vector.
10231 (sect_idx): New global.
10232 (fill_symbuf): Update.
10233 (coffstab_build_psymtabs): Change type of stabsects parameter.
10234 Update.
10235 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
10236 std::vector.
10237 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
10238 (coff_locate_sections): Update.
10239 (coff_symfile_read): Remove cleanups. Update.
10240 (init_stringtab): Add storage parameter.
10241 (free_stringtab, free_stringtab_cleanup): Remove.
10242 (init_lineno): Add storage parameter.
10243 (free_linetab, free_linetab_cleanup): Remove.
10244
b7e60d85
PA
102452019-03-06 Pedro Alves <palves@redhat.com>
10246
10247 * linux-fork.c (fork_info::clobber_regs): Delete.
10248 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
10249 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
10250 comment. Adjust.
10251 (scoped_switch_fork_info::scoped_switch_fork_info)
10252 (checkpoint_command, linux_fork_context): Adjust
10253 fork_save_infrun_state calls.
10254
e52c971f
PA
102552019-03-06 Pedro Alves <palves@redhat.com>
10256
10257 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
10258 (inf_has_multiple_threads): Return 'bool' and rewrite using
10259 inferior_info::threads().
10260
06974e6c
PA
102612019-03-06 Pedro Alves <palves@redhat.com>
10262
10263 * linux-fork.c: Include <list>.
10264 (fork_list): Now a std::list instance.
10265 (fork_info): Add ctor, dtor, and in-class initialize all fields.
10266 (forks_exist_p, find_last_fork): Adjust.
10267 (new_fork): Delete.
10268 (one_fork_p): New.
10269 (add_fork): Adjust.
10270 (free_fork): Delete, folded into fork_info::~fork_info().
10271 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
10272 Adjust.
10273 (init_fork_list): Delete.
10274 (linux_fork_killall, linux_fork_mourn_inferior)
10275 (linux_fork_detach, info_checkpoints_command): Adjust.
10276 (_initialize_linux_fork): No longer call init_fork_list.
10277
72f31aea
PA
102782019-03-06 Pedro Alves <palves@redhat.com>
10279
10280 * linux-fork.c (new_fork): New, split out of ...
10281 (add_fork): ... this. Return void. Move "first fork" special
10282 case from here, to ...
10283 (checkpoint_command): ... here.
10284 * linux-linux.h (add_fork): Return void.
10285
efbecbc1
AB
102862019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10287
10288 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
10289
0841c79a
AB
102902019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10291 Chris January <chris.january@arm.com>
10292 David Lecomber <david.lecomber@arm.com>
10293
10294 * f-exp.y: New token, UNOP_INTRINSIC.
10295 (exp): New pattern using UNOP_INTRINSIC token.
10296 (f77_keywords): Add 'abs' keyword.
10297 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
10298 (value_from_host_double): New function.
10299 (evaluate_subexp_f): Support UNOP_ABS.
10300
4a270568
AB
103012019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10302
10303 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
10304 types.
10305
067630bd
AB
103062019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10307
10308 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
10309 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
10310 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
10311
3be47f7a
AB
103122019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10313
10314 * f-exp.y (convert_to_kind_type): Handle more type kinds.
10315
4d00f5d8
AB
103162019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10317 Chris January <chris.january@arm.com>
10318
10319 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
10320 * f-exp.y: Define 'KIND' token.
10321 (exp): New pattern for KIND expressions.
10322 (ptype): Handle types with a kind extension.
10323 (direct_abs_decl): Extend to spot kind extensions.
10324 (f77_keywords): Add 'kind' to the list.
10325 (push_kind_type): New function.
10326 (convert_to_kind_type): New function.
10327 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
10328 * parse.c (operator_length_standard): Likewise.
10329 * parser-defs.h (enum type_pieces): Add tp_kind.
10330 * std-operator.def: Add UNOP_KIND.
10331
e454224f
AB
103322019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10333
10334 * f-exp.y (f_parse): Set yydebug.
10335
9dad4a58
AB
103362019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10337
10338 * f-lang.c (evaluate_subexp_f): New function.
10339 (exp_descriptor_f): New global.
10340 (f_language_defn): Use exp_descriptor_f instead of
10341 exp_descriptor_standard.
10342
c8f91604
AB
103432019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10344
10345 * f-exp.y (struct token): Add comments.
10346 (dot_ops): Remove uppercase versions and the end marker.
10347 (f77_keywords): Likewise.
10348 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
10349 entries in the dot_ops array are case insensitive, and use
10350 strncasecmp to compare strings. Also some whitespace cleanup in
10351 this area. Similar for the f77_keywords array, except entries in
10352 this list might be case sensitive.
10353
dd9f2c76
AB
103542019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10355
10356 * f-exp.y (struct f77_boolean_val): Add comments.
10357 (boolean_values): Remove uppercase versions, and end marker.
10358 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
10359 and use strncasecmp to achieve case insensitivity. Additionally,
10360 perform whitespace cleanup around this code.
10361
67a3048c
TT
103622019-03-06 Tom Tromey <tromey@adacore.com>
10363
10364 * remote-sim.c (gdbsim_target_open): Use result of
10365 gdb_argv::release.
10366
aa3cfbda
RB
103672019-03-06 Richard Bunt <richard.bunt@arm.com>
10368 Dirk Schubert <dirk.schubert@arm.com>
10369 Chris January <chris.january@arm.com>
10370
10371 * eval.c (evaluate_subexp_standard): Call Fortran argument
10372 wrapping logic.
10373 * f-lang.c (struct value): A value which can be passed into a
10374 Fortran function call.
10375 (fortran_argument_convert): Wrap Fortran arguments in a pointer
10376 where appropriate.
10377 (struct type): Value ready for a Fortran function call.
10378 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
10379 is needed.
10380 * f-lang.h (fortran_argument_convert): Declaration.
10381 (fortran_preserve_arg_pointer): Declaration.
10382 * infcall.c (value_arg_coerce): Call Fortran argument logic.
10383
ea38e5df
TT
103842019-03-05 Tom Tromey <tromey@adacore.com>
10385
10386 * python/py-prettyprint.c (print_string_repr): Remove #if.
10387 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
10388
06b5b831
TT
103892019-03-05 Tom Tromey <tromey@adacore.com>
10390
10391 * target.c (the_dummy_target): Move later. Change type to
10392 "dummy_target".
10393 (initialize_targets): Don't initialize the_dummy_target.
10394
edbd9e45
TT
103952019-03-05 Tom Tromey <tromey@adacore.com>
10396
10397 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
10398 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
10399
c119e040
TT
104002019-03-05 Tom Tromey <tromey@adacore.com>
10401
10402 * windows-nat.c (windows_nat_target::attach)
10403 (windows_nat_target::detach): Don't call gdb_flush.
10404 * valprint.c (generic_val_print, val_print, val_print_string):
10405 Don't call gdb_flush.
10406 * utils.c (defaulted_query): Don't call gdb_flush.
10407 * typeprint.c (print_type_scalar): Don't call gdb_flush.
10408 * target.c (target_announce_detach): Don't call gdb_flush.
10409 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
10410 * remote.c (extended_remote_target::attach): Don't call
10411 gdb_flush.
10412 * procfs.c (procfs_target::detach): Don't call gdb_flush.
10413 * printcmd.c (do_examine): Don't call gdb_flush.
10414 (info_display_command): Don't call gdb_flush.
10415 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
10416 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
10417 * memattr.c (info_mem_command): Don't call gdb_flush.
10418 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
10419 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
10420 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
10421 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
10422 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
10423 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
10424 (gnu_nat_target::detach): Don't call gdb_flush.
10425 * f-valprint.c (f_val_print): Don't call gdb_flush.
10426 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
10427 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
10428 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
10429 gdb_flush.
10430 * c-valprint.c (c_val_print): Don't call gdb_flush.
10431 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
10432
895dafa6
TT
104332019-03-05 Tom Tromey <tromey@adacore.com>
10434
10435 * varobj.c (update_dynamic_varobj_children): Update.
10436 (install_default_visualizer): Use reset, not release.
10437 * value.c (set_internalvar): Update.
10438 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
10439 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
10440 ATTRIBUTE_UNUSED_RESULT.
10441
88a774b9
TT
104422019-03-05 Tom Tromey <tromey@adacore.com>
10443
10444 * remote.c (class scoped_remote_fd) <release>: Add
10445 ATTRIBUTE_UNUSED_RESULT.
10446
4e4a8b93
TT
104472019-03-05 Tom Tromey <tromey@adacore.com>
10448
10449 * macroexp.c (struct macro_buffer) <release>: Add
10450 ATTRIBUTE_UNUSED_RESULT.
10451
083eef1f
TT
104522019-03-05 Tom Tromey <tromey@adacore.com>
10453
10454 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
10455 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
10456 ATTRIBUTE_UNUSED_RESULT.
10457
3cabd438
TT
104582019-03-05 Tom Tromey <tromey@adacore.com>
10459
10460 * common/scoped_fd.h (class scoped_fd) <release>: Add
10461 ATTRIBUTE_UNUSED_RESULT.
10462
41e3300a
TT
104632019-03-05 Tom Tromey <tromey@adacore.com>
10464
10465 * parser-defs.h (struct parser_state) <release>: Add
10466 ATTRIBUTE_UNUSED_RESULT.
10467
18cb7c9f
TT
104682019-03-05 Tom Tromey <tromey@adacore.com>
10469
10470 * utils.h (class gdb_argv) <release>: Add
10471 ATTRIBUTE_UNUSED_RESULT.
10472 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
10473
41fa577f
EZ
104742019-03-02 Eli Zaretskii <eliz@gnu.org>
10475
a6a4b2c6
EZ
10476 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
10477 for-loop range, to avoid compiler warnings.
10478
10479 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
10480 avoid compiler warnings about unused variables.
10481
742a7df5
EZ
10482 * NEWS: Mention end of support for native debugging on MS-Windows
10483 before XP.
10484
41fa577f
EZ
10485 PR gdb/24292
10486 * common/netstuff.c:
10487 * gdbserver/gdbreplay.c
10488 * gdbserver/remote-utils.c:
10489 * ser-tcp.c:
10490 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
10491 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
10492 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
10493 'getaddrinfo' and 'freeaddrinfo' were not available before
10494 Windows XP, and mingw.org's MinGW headers by default define
10495 _WIN32_WINNT to 0x500.
10496
827f438f
GB
104972019-03-01 Gary Benson <gbenson@redhat.com>
10498
10499 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
10500
92137da0
RO
105012019-02-28 Brian Vandenberg <phantall@gmail.com>
10502 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10503
10504 PR gdb/8527
10505 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
10506 set_sigint_trap, clear_sigint_trap.
10507
799efbe8
PW
105082019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10509
10510 * target.c (target_detach): Clear the regcache and the
10511 frame cache.
10512
8ed25214
PA
105132019-02-27 Pedro Alves <palves@redhat.com>
10514
10515 * utils.c (set_screen_size): When we cap the height/width sizes,
10516 tweak the corresponding command variable to show "unlimited":
10517
23031e31
SJ
105182019-02-27 Saagar Jha <saagar@saagarjha.com>
10519 Pedro Alves <palves@redhat.com>
10520
10521 * utils.c (set_screen_size): Reduce "infinite" rows and columns
10522 before calling rl_set_screen_size.
10523
6c28e44a
TT
105242019-02-27 Tom Tromey <tromey@adacore.com>
10525
10526 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
10527 define.
10528 * python/py-value.c: Remove Python 2.4 workaround.
10529 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
10530 workaround.
10531 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
10532 Python 2.4 workaround.
10533 * python/python-internal.h: Remove Python 2.4 comment.
10534 (Py_ssize_t): Don't define.
10535 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
10536 (gdb_Py_DECREF): Remove Python 2.4 workaround.
10537 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
10538 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
10539 * python/python.c (do_start_initialization): Remove Python 2.4
10540 workaround.
10541 * python/py-prettyprint.c (class dummy_python_frame): Remove.
10542 (print_children): Remove Python 2.4 workaround.
10543 * python/py-inferior.c (buffer_procs): Remove Python 2.4
10544 workaround.
10545 (CHARBUFFERPROC_NAME): Remove.
10546 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
10547 Python 2.4 workaround.
10548
2c3fc25d 105492019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 10550
2c3fc25d
KB
10551 * NEWS: Note minimum Python version.
10552
6ca62222
KB
105532019-02-27 Kevin Buettner <kevinb@redhat.com>
10554
10555 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
10556 code from these functions. Remove corresponding ifdefs. Use
10557 Py_buffer_up instead of explicit calls to PyBuffer_Release.
10558 Remove gotos and target of gotos.
10559 (infpy_search_memory): Likewise.
10560
f4bc7d2c
AB
105612019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10562
10563 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
10564 (hppa_gdbarch_init): Don't register deleted functions with
10565 gdbarch.
10566
9734a586
AB
105672019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10568
10569 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
10570 (h8300_unwind_sp): Delete.
10571 (h8300_dummy_id): Delete.
10572 (h8300_gdbarch_init): Don't register deleted functions with
10573 gdbarch.
10574
68b867f3
AB
105752019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10576
10577 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
10578 (ft32_unwind_pc): Delete.
10579 (ft32_unwind_sp): Delete.
10580 (ft32_gdbarch_init): Don't register deleted functions with
10581 gdbarch.
10582
2fbe7ad0
AB
105832019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10584
10585 * gdb/frv-tdep.c (frv_dummy_id): Delete.
10586 (frv_unwind_pc): Delete.
10587 (frv_unwind_sp): Delete.
10588 (frv_gdbarch_init): Don't register deleted functions with
10589 gdbarch.
10590
76055cbe
AB
105912019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10592
10593 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
10594 (riscv_unwind_pc): Delete.
10595 (riscv_unwind_sp): Delete.
10596 (riscv_gdbarch_init): Don't register deleted functions with
10597 gdbarch.
10598
4133e5a1
AB
105992019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10600
10601 * gdb/csky-tdep.c (csky_dummy_id): Delete.
10602 (csky_unwind_pc): Delete.
10603 (csky_unwind_sp): Delete.
10604 (csky_gdbarch_init): Don't register deleted functions with
10605 gdbarch.
10606
8010f576
AB
106072019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10608
10609 * gdb/cris-tdep.c (cris_dummy_id): Delete.
10610 (cris_unwind_pc): Delete.
10611 (cris_unwind_sp): Delete.
10612 (cris_gdbarch_init): Don't register deleted functions with
10613 gdbarch.
10614
b56bf084
AB
106152019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10616
10617 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
10618 (bfin_unwind_pc): Delete.
10619 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
10620
a19a650f
AB
106212019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10622
10623 * gdb/arm-tdep.c (arm_dummy_id): Delete.
10624 (arm_unwind_pc): Delete.
10625 (arm_unwind_sp): Delete.
10626 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
10627
f8278c3c
AB
106282019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10629
10630 * gdb/arc-tdep.c (arc_dummy_id): Delete.
10631 (arc_unwind_pc): Delete.
10632 (arc_unwind_sp): Delete.
10633 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
10634
480e46cf
AB
106352019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10636
10637 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
10638 (alpha_unwind_pc): Delete.
10639 (alpha_gdbarch_init): Don't register deleted functions with
10640 gdbarch.
10641
7a995095
AB
106422019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10643
10644 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
10645 (aarch64_unwind_pc): Delete.
10646 (aarch64_unwind_sp): Delete.
10647 (aarch64_gdbarch_init): Don't register deleted functions with
10648 gdbarch.
10649
bf9a735e
AB
106502019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10651
10652 * gdbtypes.c (type_align): Don't consider static members when
10653 computing structure alignment.
10654
5561fc30
AB
106552019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10656
10657 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
10658 return 0 for other types.
10659 * arch-utils.c (default_type_align): Always return 0.
10660 * gdbarch.h: Regenerate.
10661 * gdbarch.sh (type_align): Extend comment.
10662 * gdbtypes.c (type_align): Add additional comments, always call
10663 gdbarch_type_align before applying the default rules.
10664 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
10665 generic code will then apply a suitable default.
10666 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
10667 types, return 0 for other types.
10668
9335e75a
JB
106692019-02-27 Joel Brobecker <brobecker@adacore.com>
10670
10671 * NEWS: Create a new section for the next release branch.
10672 Rename the section of the current branch, now that it has
10673 been cut.
10674
3d34d8de
JB
106752019-02-27 Joel Brobecker <brobecker@adacore.com>
10676
10677 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
10678 * version.in: Bump version to 8.3.50.DATE-git.
10679
143420fb
SM
106802019-02-26 Simon Marchi <simon.marchi@efficios.com>
10681
10682 * aix-thread.c (ptid_cmp): Remove unused variable.
10683 (get_signaled_thread): Likewise.
10684 (store_regs_user_thread): Likewise.
10685 (store_regs_kernel_thread): Likewise.
10686 (fetch_regs_kernel_thread): Remove shadowed variable.
10687
172fb711
AB
106882019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
10689
10690 * features/riscv/32bit-cpu.xml: Add register numbers.
10691 * features/riscv/32bit-fpu.c: Regenerate.
10692 * features/riscv/32bit-fpu.xml: Add register numbers.
10693 * features/riscv/64bit-cpu.xml: Add register numbers.
10694 * features/riscv/64bit-fpu.c: Regenerate.
10695 * features/riscv/64bit-fpu.xml: Add register numbers.
10696
26c89782
KB
106972019-02-26 Kevin Buettner <kevinb@redhat.com>
10698
af54ade9 10699 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
10700 * python/py-value.c (convert_buffer_and_type_to_value): New
10701 function.
10702 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
10703 Add support for handling an optional second argument. Call
10704 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
10705 * python/python-internal.h (Py_buffer_deleter): New struct.
10706 (Py_buffer_up): New typedef.
10707
0f58c9e8
JB
107082019-02-25 John Baldwin <jhb@FreeBSD.org>
10709
10710 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
10711 instead of releasing ownership.
10712
0a0f4c01
JR
107132019-02-25 Jordan Rupprecht <rupprecht@google.com>
10714
10715 * dwarf2read.c (open_and_init_dwp_file): Call
10716 elf_numsections instead of bfd_count_sections to initialize
10717 dwp_file->num_sections.
10718
cd5a152c
TT
107192019-02-25 Tom Tromey <tromey@adacore.com>
10720
10721 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
10722
8a6a8513
SDJ
107232019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
10724
10725 * gcore.in: Add '--readnever' option when invoking GDB.
10726
04dcda9c
SM
107272019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10728
10729 * MAINTAINERS: Update my email address.
10730
07bc701d
SM
107312019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10732
10733 * build-id.c (build_id_to_debug_bfd_1): New function.
10734 (build_id_to_debug_bfd): Look for separate debug file in
10735 sysroot.
10736
c6f4a5d0
AB
107372019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
10738
10739 * gdbarch.sh: Update the copyright year range that is placed into
10740 generated files.
10741
9600246d
KS
107422019-02-22 Keith Seitz <keiths@redhat.com>
10743
10744 PR symtab/23853
10745 * linespec.c (create_sals_line_offset): Search for the default
10746 symtab's filename instead of its fullname.
10747
7557a514
AH
107482019-02-21 Alan Hayward <alan.hayward@arm.com>
10749
10750 * NEWS: Update style defaults.
10751
ee2bcb0c
AH
107522019-02-21 Alan Hayward <alan.hayward@arm.com>
10753
10754 * main.c (captured_main_1): Disable styling in batch mode.
10755
0c95f9ed
TT
107562019-02-20 Tom Tromey <tom@tromey.com>
10757
10758 * symtab.c (symtab_symbol_info): Fix typos.
10759
c763b894
TT
107602019-02-20 Tom Tromey <tromey@adacore.com>
10761
10762 * findcmd.c (_initialize_mem_search): Use upper case for
10763 metasyntactic variables.
10764
0ef8a082
AH
107652019-02-20 Alan Hayward <alan.hayward@arm.com>
10766
10767 * aarch64-tdep.c (aarch64_add_reggroups): New function.
10768 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
10769
6caa91b6
SM
107702019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
10771
10772 * top.h (source_file_name): Change to std::string.
10773 * top.c (source_file_name): Likewise.
10774 (command_line_input): Adjust.
10775 * cli/cli-script.c (script_from_file): Adjust.
10776
98814c6c
TT
107772019-02-19 Tom Tromey <tromey@adacore.com>
10778
10779 * ravenscar-thread.c
10780 (ravenscar_thread_target::update_thread_list): Don't call
10781 ada_build_task_list.
10782 * ada-lang.h (ada_build_task_list): Don't declare.
10783 * ada-tasks.c (struct ada_tasks_inferior_data)
10784 <task_list_valid_p>: Now bool.
10785 (read_known_tasks, ada_task_list_changed)
10786 (ada_tasks_invalidate_inferior_data): Update.
10787 (read_known_tasks_array): Return bool.
10788 (read_known_tasks_list): Likewise.
10789 (read_known_tasks): Return void.
10790 (ada_build_task_list): Now static.
10791
70cd633e
AB
107922019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
10793
10794 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
10795 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
10796
040b3e95
PW
107972019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10798
10799 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
10800 variant for ada_tasks_pspace_data_handle and
10801 ada_tasks_inferior_data_handle.
10802 (ada_tasks_pspace_data_cleanup): New function.
10803 (ada_tasks_inferior_data_cleanup): New function.
10804
9409233b
TT
108052019-02-17 Tom Tromey <tom@tromey.com>
10806
10807 * macrotab.h (macro_source_fullname): Return a std::string.
10808 * macrotab.c (macro_include, check_for_redefinition)
10809 (macro_undef, macro_lookup_definition, foreach_macro)
10810 (foreach_macro_in_scope): Update.
10811 (macro_source_fullname): Return a std::string.
10812 * macrocmd.c (show_pp_source_pos): Update.
10813
6506371f
TT
108142019-02-17 Tom Tromey <tom@tromey.com>
10815
10816 * macrocmd.c (show_pp_source_pos): Style the file names.
10817
0c820d67
TT
108182019-02-17 Tom Tromey <tom@tromey.com>
10819
10820 PR tui/24197:
10821 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
10822
a0087920
TT
108232019-02-17 Tom Tromey <tom@tromey.com>
10824
10825 * ada-lang.c (user_select_syms): Use filtered printing.
10826 * utils.c (wrap_style): New global.
10827 (desired_style): Remove.
10828 (emit_style_escape): Add stream parameter.
10829 (set_output_style, reset_terminal_style, prompt_for_continue):
10830 Update.
10831 (flush_wrap_buffer): Only flush gdb_stdout.
10832 (wrap_here): Set wrap_style.
10833 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
10834 treat escape sequences as a character. Change when wrap buffer is
10835 flushed.
10836 (fputs_styled): Do not set the output style when the default is
10837 requested.
10838 * ui-style.h (struct ui_file_style) <is_default>: New method.
10839 * source.c (print_source_lines_base): Emit escape sequences in one
10840 piece.
10841
75ba10dc
JB
108422019-02-17 Joel Brobecker <brobecker@adacore.com>
10843
10844 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
10845 integers and enumeration types.
10846
a2cd4f14
JB
108472019-02-17 Joel Brobecker <brobecker@adacore.com>
10848
10849 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
10850 instead of lookup_symbol_in_language
10851 (do_exact_match): New function.
10852 (ada_get_symbol_name_matcher): Return do_exact_match when
10853 doing a verbatim match.
10854
485b851b
TT
108552019-02-15 Tom Tromey <tromey@adacore.com>
10856
10857 * ravenscar-thread.c (ravenscar_thread_target::resume)
10858 (ravenscar_thread_target::wait): Special case wildcard requests.
10859
0b790b1e
TT
108602019-02-15 Tom Tromey <tromey@adacore.com>
10861
10862 * ravenscar-thread.c (base_ptid): Remove.
10863 (struct ravenscar_thread_target) <close>: New method.
10864 <m_base_ptid>: New member.
10865 <update_inferior_ptid, active_task, task_is_currently_active,
10866 runtime_initialized>: Declare methods.
10867 <ravenscar_thread_target>: Add constructor.
10868 (ravenscar_thread_target::task_is_currently_active)
10869 (ravenscar_thread_target::update_inferior_ptid)
10870 (ravenscar_runtime_initialized): Rename. Now methods.
10871 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
10872 (ravenscar_thread_target::update_thread_list): Update.
10873 (ravenscar_thread_target::active_task): Now method.
10874 (ravenscar_thread_target::store_registers)
10875 (ravenscar_thread_target::prepare_to_store)
10876 (ravenscar_thread_target::prepare_to_store)
10877 (ravenscar_thread_target::mourn_inferior): Update.
10878 (ravenscar_inferior_created): Use "new" to create target.
10879 (ravenscar_thread_target::get_ada_task_ptid): Update.
10880 (_initialize_ravenscar): Don't initialize base_ptid.
10881 (ravenscar_ops): Remove global.
10882
dea57a62
TT
108832019-02-15 Tom Tromey <tromey@adacore.com>
10884
10885 * target.h (push_target): Declare new overload.
10886 * target.c (push_target): New overload, taking an rvalue reference.
10887 * remote.c (remote_target::open_1): Use push_target overload.
10888 * corelow.c (core_target_open): Use push_target overload.
10889
989f3c58
TT
108902019-02-15 Tom Tromey <tromey@adacore.com>
10891
10892 * ravenscar-thread.c (is_ravenscar_task)
10893 (ravenscar_task_is_currently_active): Return bool.
10894 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
10895 (_initialize_ravenscar): Remove "(void)".
10896 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
10897 Return bool.
10898
6cbcc006
TT
108992019-02-15 Tom Tromey <tromey@adacore.com>
10900
10901 * ravenscar-thread.c (ravenscar_runtime_initializer)
10902 (has_ravenscar_runtime, get_running_thread_id)
10903 (ravenscar_thread_target::resume): Fix indentation.
10904
7657f14d
TT
109052019-02-15 Tom Tromey <tromey@adacore.com>
10906
10907 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
10908 from ravenscar_arch_ops.
10909 (sparc_ravenscar_ops::fetch_registers)
10910 (sparc_ravenscar_ops::store_registers): Now methods.
10911 (sparc_ravenscar_prepare_to_store): Remove.
10912 (sparc_ravenscar_ops): Redefine.
10913 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
10914 methods and destructor. Remove members.
10915 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
10916 (ravenscar_thread_target::store_registers)
10917 (ravenscar_thread_target::prepare_to_store): Update.
10918 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
10919 Remove.
10920 (struct ppc_ravenscar_powerpc_ops): Derive from
10921 ravenscar_arch_ops.
10922 (ppc_ravenscar_powerpc_ops::fetch_registers)
10923 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
10924 (ppc_ravenscar_powerpc_ops): Redefine.
10925 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
10926 (ppc_ravenscar_e500_ops::fetch_registers)
10927 (ppc_ravenscar_e500_ops::store_registers): Now methods.
10928 (ppc_ravenscar_e500_ops): Redefine.
10929 * aarch64-ravenscar-thread.c
10930 (aarch64_ravenscar_generic_prepare_to_store): Remove.
10931 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
10932 (aarch64_ravenscar_fetch_registers)
10933 (aarch64_ravenscar_store_registers): Now methods.
10934 (aarch64_ravenscar_ops): Redefine.
10935
5b6ea500
TT
109362019-02-15 Tom Tromey <tromey@adacore.com>
10937
10938 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
10939 (ravenscar_thread_target::stopped_by_hw_breakpoint)
10940 (ravenscar_thread_target::stopped_by_watchpoint)
10941 (ravenscar_thread_target::stopped_data_address)
10942 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
10943
e397fd39
TT
109442019-02-15 Tom Tromey <tromey@adacore.com>
10945
10946 * ravenscar-thread.c: Fix some typos.
10947
cc12f4a8
TT
109482019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10949 Tom Tromey <tromey@adacore.com>
10950
10951 * ada-lang.c (ada_exception_sal): Change addr_string to a
10952 std::string.
10953 (create_ada_exception_catchpoint): Update.
10954
5f486660
TT
109552019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10956 Tom Tromey <tromey@adacore.com>
10957
10958 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
10959 (bp_location_ops): Remove.
10960 (base_breakpoint_allocate_location): Update.
10961 (free_bp_location): Update.
10962 * ada-lang.c (class ada_catchpoint_location)
10963 <ada_catchpoint_location>: Remove ops parameter.
10964 (ada_catchpoint_location_dtor): Remove.
10965 (ada_catchpoint_location_ops): Remove.
10966 (allocate_location_exception): Update.
10967 * breakpoint.h (struct bp_location_ops): Remove.
10968 (class bp_location) <bp_location>: Remove bp_location_ops
10969 parameter.
10970 <~bp_location>: Add destructor.
10971 <ops>: Remove.
10972
b671c7fb
TS
109732019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10974 Pedro Alves <palves@redhat.com>
10975
10976 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
10977 'PATH_MAX'.
10978
8071c5ce
DM
109792019-02-14 David Michael <fedora.dm0@gmail.com>
10980 Samuel Thibault <samuel.thibault@gnu.org>
10981 Thomas Schwinge <thomas@codesourcery.com>
10982
10983 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
10984 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
10985
b1041ae0
TS
109862019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10987
924514e1
TS
10988 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
10989 (check_empty): Use "const char *".
10990
c29ee8d4
TS
10991 * gnu-nat.c (gnu_nat_target::detach): Instead of
10992 'detach_inferior (pid)' call
10993 'detach_inferior (find_inferior_pid (pid))'.
10994
6c6ef69f
TS
10995 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
10996 'nat/fork-inferior.o'.
10997 * gnu-nat.c: #include "nat/fork-inferior.h".
10998
2d0a338c
TS
10999 * gnu-nat.c (gnu_nat_target::detach): Instead of
11000 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
11001 * gnu-nat.h: #include "inf-child.h".
11002 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
11003 'i386_gnu_nat_target::fetch_registers'.
11004 (gnu_store_registers): Rename/move to
11005 'i386_gnu_nat_target::store_registers'.
11006
cabb5f06
TS
11007 * config/i386/nm-i386gnu.h: Don't "#include" any files.
11008 * gnu-nat.h (mach_thread_info): New function.
11009 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
11010
b1041ae0
TS
11011 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
11012
2988d01e
KF
110132019-02-14 Frederic Konrad <konrad@adacore.com>
11014
11015 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
11016
c559d709
JB
110172019-02-14 Joel Brobecker <brobecker@adacore.com>
11018
11019 * windows-nat.c (windows_add_thread): Add new parameter
11020 "main_thread_p" with default value set to false. Update
11021 function documentation as well as all callers.
11022 (windows_delete_thread): Likewise.
11023 (fake_create_process): Update call to windows_add_thread.
11024 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
11025 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
11026 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
11027 call to windows_delete_thread.
11028
007024cc
SM
110292019-02-13 Simon Marchi <simon.marchi@ericsson.com>
11030
11031 * MAINTAINERS: Add Andrew Burgess as global maintainer.
11032
f62318e9
JB
110332019-02-12 John Baldwin <jhb@FreeBSD.org>
11034
11035 * symfile.c (find_separate_debug_file): Use canonical path of
11036 sysroot with child_path instead of gdb_sysroot if it is valid.
11037
cd4b7848
JB
110382019-02-12 John Baldwin <jhb@FreeBSD.org>
11039
11040 * symfile.c (find_separate_debug_file): Use child_path to
11041 determine if an object file is under a sysroot.
11042
efac4bfe
JB
110432019-02-12 John Baldwin <jhb@FreeBSD.org>
11044
11045 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11046 unittests/child-path-selftests.c.
11047 * common/pathstuff.c (child_path): New function.
11048 * common/pathstuff.h (child_path): New prototype.
11049 * unittests/child-path-selftests.c: New file.
11050
402d2bfe
JB
110512019-02-12 John Baldwin <jhb@FreeBSD.org>
11052
11053 * symfile.c (find_separate_debug_file): Look for separate debug
11054 files in debug directories under the sysroot.
11055
1ed9f74e
PW
110562019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11057
11058 * symtab.h (struct minimal_symbol data_p): New const method.
11059 (struct minimal_symbol text_p): Likewise.
11060 * symtab.c (output_source_filename): Use file name style
11061 to print file name.
11062 (print_symbol_info): Likewise.
11063 (print_msymbol_info): Use address style to print addresses.
11064 Use function name style to print executable text symbols.
11065 (expand_symtab_containing_pc): Use data_p.
11066 (find_pc_sect_compunit_symtab): Likewise.
11067
2636d81d
PW
110682019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11069
11070 * breakpoint.c (describe_other_breakpoints): Use address style
11071 to print addresses.
11072 (say_where): Likewise.
11073
ac8c53cc
PW
110742019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11075
11076 * ada-typeprint.c (print_func_type): Print function name
11077 style to print function name.
11078 * c-typeprint.c (c_print_type_1): Likewise.
11079
ea638c43
AH
110802019-02-11 Alan Hayward <alan.hayward@arm.com>
11081
11082 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
11083 for execve.
11084
ab759ca8
PW
110852019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11086
11087 * c-exp.y (direct_abs_decl): Use emplace_back to record the
11088 type_stack.
11089
aff29d1c
JB
110902019-02-10 Joel Brobecker <brobecker@adacore.com>
11091
11092 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
11093 TYPE_CODE_REF types.
11094
617126bc
JW
110952019-02-08 Jim Wilson <jimw@sifive.com>
11096
11097 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
11098 (riscv_linux_fregset): New.
11099 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
11100
46e3ed7f
TT
111012019-02-07 Tom Tromey <tom@tromey.com>
11102
11103 * thread.c (thread_cancel_execution_command): Update.
11104 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
11105 methods.
11106 (struct thread_fsm_ops): Remove.
11107 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
11108 (thread_fsm_should_stop, thread_fsm_return_value)
11109 (thread_fsm_set_finished, thread_fsm_finished_p)
11110 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
11111 Don't declare.
11112 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
11113 * infrun.c (clear_proceed_status_thread)
11114 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
11115 (print_stop_event): Update.
11116 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
11117 Add constructor.
11118 (step_command_fsm_ops): Remove.
11119 (new_step_command_fsm): Remove.
11120 (step_1): Update.
11121 (step_command_fsm::should_stop): Rename from
11122 step_command_fsm_should_stop.
11123 (step_command_fsm::clean_up): Rename from
11124 step_command_fsm_clean_up.
11125 (step_command_fsm::do_async_reply_reason): Rename from
11126 step_command_fsm_async_reply_reason.
11127 (struct until_next_fsm): Inherit from thread_fsm. Add
11128 constructor.
11129 (until_next_fsm_ops): Remove.
11130 (new_until_next_fsm): Remove.
11131 (until_next_fsm::should_stop): Rename from
11132 until_next_fsm_should_stop.
11133 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
11134 (until_next_fsm::do_async_reply_reason): Rename from
11135 until_next_fsm_async_reply_reason.
11136 (struct finish_command_fsm): Inherit from thread_fsm. Add
11137 constructor. Change type of breakpoint.
11138 (finish_command_fsm_ops): Remove.
11139 (new_finish_command_fsm): Remove.
11140 (finish_command_fsm::should_stop): Rename from
11141 finish_command_fsm_should_stop.
11142 (finish_command_fsm::clean_up): Rename from
11143 finish_command_fsm_clean_up.
11144 (finish_command_fsm::return_value): Rename from
11145 finish_command_fsm_return_value.
11146 (finish_command_fsm::do_async_reply_reason): Rename from
11147 finish_command_fsm_async_reply_reason.
11148 (finish_command): Update.
11149 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
11150 Add constructor.
11151 (call_thread_fsm_ops): Remove.
11152 (call_thread_fsm::call_thread_fsm): Rename from
11153 new_call_thread_fsm.
11154 (call_thread_fsm::should_stop): Rename from
11155 call_thread_fsm_should_stop.
11156 (call_thread_fsm::should_notify_stop): Rename from
11157 call_thread_fsm_should_notify_stop.
11158 (run_inferior_call, call_function_by_hand_dummy): Update.
11159 * cli/cli-interp.c (should_print_stop_to_console): Update.
11160 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
11161 Add constructor. Change type of location_breakpoint,
11162 caller_breakpoint.
11163 (until_break_fsm_ops): Remove.
11164 (new_until_break_fsm): Remove.
11165 (until_break_fsm::should_stop): Rename from
11166 until_break_fsm_should_stop.
11167 (until_break_fsm::clean_up): Rename from
11168 until_break_fsm_clean_up.
11169 (until_break_fsm::do_async_reply_reason): Rename from
11170 until_break_fsm_async_reply_reason.
11171 (until_break_command): Update.
11172 * thread-fsm.c: Remove.
11173 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
11174
1a5c2598
TT
111752019-02-07 Tom Tromey <tom@tromey.com>
11176
11177 * yy-remap.h: Add include guard.
11178 * xtensa-tdep.h: Add include guard.
11179 * xcoffread.h: Rename include guard.
11180 * varobj-iter.h: Add include guard.
11181 * tui/tui.h: Rename include guard.
11182 * tui/tui-winsource.h: Rename include guard.
11183 * tui/tui-wingeneral.h: Rename include guard.
11184 * tui/tui-windata.h: Rename include guard.
11185 * tui/tui-win.h: Rename include guard.
11186 * tui/tui-stack.h: Rename include guard.
11187 * tui/tui-source.h: Rename include guard.
11188 * tui/tui-regs.h: Rename include guard.
11189 * tui/tui-out.h: Rename include guard.
11190 * tui/tui-layout.h: Rename include guard.
11191 * tui/tui-io.h: Rename include guard.
11192 * tui/tui-hooks.h: Rename include guard.
11193 * tui/tui-file.h: Rename include guard.
11194 * tui/tui-disasm.h: Rename include guard.
11195 * tui/tui-data.h: Rename include guard.
11196 * tui/tui-command.h: Rename include guard.
11197 * tic6x-tdep.h: Add include guard.
11198 * target/waitstatus.h: Rename include guard.
11199 * target/wait.h: Rename include guard.
11200 * target/target.h: Rename include guard.
11201 * target/resume.h: Rename include guard.
11202 * target-float.h: Rename include guard.
11203 * stabsread.h: Add include guard.
11204 * rs6000-tdep.h: Add include guard.
11205 * riscv-fbsd-tdep.h: Add include guard.
11206 * regformats/regdef.h: Rename include guard.
11207 * record.h: Rename include guard.
11208 * python/python.h: Rename include guard.
11209 * python/python-internal.h: Rename include guard.
11210 * python/py-stopevent.h: Rename include guard.
11211 * python/py-ref.h: Rename include guard.
11212 * python/py-record.h: Rename include guard.
11213 * python/py-record-full.h: Rename include guard.
11214 * python/py-record-btrace.h: Rename include guard.
11215 * python/py-instruction.h: Rename include guard.
11216 * python/py-events.h: Rename include guard.
11217 * python/py-event.h: Rename include guard.
11218 * procfs.h: Add include guard.
11219 * proc-utils.h: Add include guard.
11220 * p-lang.h: Add include guard.
11221 * or1k-tdep.h: Rename include guard.
11222 * observable.h: Rename include guard.
11223 * nto-tdep.h: Rename include guard.
11224 * nat/x86-linux.h: Rename include guard.
11225 * nat/x86-linux-dregs.h: Rename include guard.
11226 * nat/x86-gcc-cpuid.h: Add include guard.
11227 * nat/x86-dregs.h: Rename include guard.
11228 * nat/x86-cpuid.h: Rename include guard.
11229 * nat/ppc-linux.h: Rename include guard.
11230 * nat/mips-linux-watch.h: Rename include guard.
11231 * nat/linux-waitpid.h: Rename include guard.
11232 * nat/linux-ptrace.h: Rename include guard.
11233 * nat/linux-procfs.h: Rename include guard.
11234 * nat/linux-osdata.h: Rename include guard.
11235 * nat/linux-nat.h: Rename include guard.
11236 * nat/linux-namespaces.h: Rename include guard.
11237 * nat/linux-btrace.h: Rename include guard.
11238 * nat/glibc_thread_db.h: Rename include guard.
11239 * nat/gdb_thread_db.h: Rename include guard.
11240 * nat/gdb_ptrace.h: Rename include guard.
11241 * nat/fork-inferior.h: Rename include guard.
11242 * nat/amd64-linux-siginfo.h: Rename include guard.
11243 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
11244 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
11245 * nat/aarch64-linux.h: Rename include guard.
11246 * nat/aarch64-linux-hw-point.h: Rename include guard.
11247 * mn10300-tdep.h: Add include guard.
11248 * mips-linux-tdep.h: Add include guard.
11249 * mi/mi-parse.h: Rename include guard.
11250 * mi/mi-out.h: Rename include guard.
11251 * mi/mi-main.h: Rename include guard.
11252 * mi/mi-interp.h: Rename include guard.
11253 * mi/mi-getopt.h: Rename include guard.
11254 * mi/mi-console.h: Rename include guard.
11255 * mi/mi-common.h: Rename include guard.
11256 * mi/mi-cmds.h: Rename include guard.
11257 * mi/mi-cmd-break.h: Rename include guard.
11258 * m2-lang.h: Add include guard.
11259 * location.h: Rename include guard.
11260 * linux-record.h: Rename include guard.
11261 * linux-nat.h: Add include guard.
11262 * linux-fork.h: Add include guard.
11263 * i386-darwin-tdep.h: Rename include guard.
11264 * hppa-linux-offsets.h: Add include guard.
11265 * guile/guile.h: Rename include guard.
11266 * guile/guile-internal.h: Rename include guard.
11267 * gnu-nat.h: Rename include guard.
11268 * gdb-stabs.h: Rename include guard.
11269 * frv-tdep.h: Add include guard.
11270 * f-lang.h: Add include guard.
11271 * event-loop.h: Add include guard.
11272 * darwin-nat.h: Rename include guard.
11273 * cp-abi.h: Rename include guard.
11274 * config/sparc/nm-sol2.h: Rename include guard.
11275 * config/nm-nto.h: Rename include guard.
11276 * config/nm-linux.h: Add include guard.
11277 * config/i386/nm-i386gnu.h: Rename include guard.
11278 * config/djgpp/nl_types.h: Rename include guard.
11279 * config/djgpp/langinfo.h: Rename include guard.
11280 * compile/gcc-cp-plugin.h: Add include guard.
11281 * compile/gcc-c-plugin.h: Add include guard.
11282 * compile/compile.h: Rename include guard.
11283 * compile/compile-object-run.h: Rename include guard.
11284 * compile/compile-object-load.h: Rename include guard.
11285 * compile/compile-internal.h: Rename include guard.
11286 * compile/compile-cplus.h: Rename include guard.
11287 * compile/compile-c.h: Rename include guard.
11288 * common/xml-utils.h: Rename include guard.
11289 * common/x86-xstate.h: Rename include guard.
11290 * common/version.h: Rename include guard.
11291 * common/vec.h: Rename include guard.
11292 * common/tdesc.h: Rename include guard.
11293 * common/selftest.h: Rename include guard.
11294 * common/scoped_restore.h: Rename include guard.
11295 * common/scoped_mmap.h: Rename include guard.
11296 * common/scoped_fd.h: Rename include guard.
11297 * common/safe-iterator.h: Rename include guard.
11298 * common/run-time-clock.h: Rename include guard.
11299 * common/refcounted-object.h: Rename include guard.
11300 * common/queue.h: Rename include guard.
11301 * common/ptid.h: Rename include guard.
11302 * common/print-utils.h: Rename include guard.
11303 * common/preprocessor.h: Rename include guard.
11304 * common/pathstuff.h: Rename include guard.
11305 * common/observable.h: Rename include guard.
11306 * common/netstuff.h: Rename include guard.
11307 * common/job-control.h: Rename include guard.
11308 * common/host-defs.h: Rename include guard.
11309 * common/gdb_wait.h: Rename include guard.
11310 * common/gdb_vecs.h: Rename include guard.
11311 * common/gdb_unlinker.h: Rename include guard.
11312 * common/gdb_unique_ptr.h: Rename include guard.
11313 * common/gdb_tilde_expand.h: Rename include guard.
11314 * common/gdb_sys_time.h: Rename include guard.
11315 * common/gdb_string_view.h: Rename include guard.
11316 * common/gdb_splay_tree.h: Rename include guard.
11317 * common/gdb_setjmp.h: Rename include guard.
11318 * common/gdb_ref_ptr.h: Rename include guard.
11319 * common/gdb_optional.h: Rename include guard.
11320 * common/gdb_locale.h: Rename include guard.
11321 * common/gdb_assert.h: Rename include guard.
11322 * common/filtered-iterator.h: Rename include guard.
11323 * common/filestuff.h: Rename include guard.
11324 * common/fileio.h: Rename include guard.
11325 * common/environ.h: Rename include guard.
11326 * common/common-utils.h: Rename include guard.
11327 * common/common-types.h: Rename include guard.
11328 * common/common-regcache.h: Rename include guard.
11329 * common/common-inferior.h: Rename include guard.
11330 * common/common-gdbthread.h: Rename include guard.
11331 * common/common-exceptions.h: Rename include guard.
11332 * common/common-defs.h: Rename include guard.
11333 * common/common-debug.h: Rename include guard.
11334 * common/cleanups.h: Rename include guard.
11335 * common/buffer.h: Rename include guard.
11336 * common/btrace-common.h: Rename include guard.
11337 * common/break-common.h: Rename include guard.
11338 * cli/cli-utils.h: Rename include guard.
11339 * cli/cli-style.h: Rename include guard.
11340 * cli/cli-setshow.h: Rename include guard.
11341 * cli/cli-script.h: Rename include guard.
11342 * cli/cli-interp.h: Rename include guard.
11343 * cli/cli-decode.h: Rename include guard.
11344 * cli/cli-cmds.h: Rename include guard.
11345 * charset-list.h: Add include guard.
11346 * buildsym-legacy.h: Rename include guard.
11347 * bfin-tdep.h: Add include guard.
11348 * ax.h: Rename include guard.
11349 * arm-linux-tdep.h: Add include guard.
11350 * arm-fbsd-tdep.h: Add include guard.
11351 * arch/xtensa.h: Rename include guard.
11352 * arch/tic6x.h: Add include guard.
11353 * arch/i386.h: Add include guard.
11354 * arch/arm.h: Rename include guard.
11355 * arch/arm-linux.h: Rename include guard.
11356 * arch/arm-get-next-pcs.h: Rename include guard.
11357 * arch/amd64.h: Add include guard.
11358 * arch/aarch64-insn.h: Rename include guard.
11359 * arch-utils.h: Rename include guard.
11360 * annotate.h: Add include guard.
11361 * amd64-darwin-tdep.h: Rename include guard.
11362 * aarch64-linux-tdep.h: Add include guard.
11363 * aarch64-fbsd-tdep.h: Add include guard.
11364 * aarch32-linux-nat.h: Add include guard.
11365
ab9268d2
PW
113662019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11367
11368 * macrotab.c (macro_define_internal): New function that
11369 factorizes macro_define_object_internal and macro_define_function
11370 code.
11371 (macro_define_object_internal): Use macro_define_internal.
11372 (macro_define_function): Likewise.
11373
bb0da2b4
PW
113742019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11375
11376 * macrocmd.c (extract_identifier): Return
11377 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
11378 callers.
11379
424eb552
JB
113802019-02-06 John Baldwin <jhb@FreeBSD.org>
11381
11382 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
11383
1688cb29
TT
113842019-02-05 Tom Tromey <tom@tromey.com>
11385
11386 * target.c (target_stack::unpush): Move assertion earlier.
11387
b5eba2d8
TT
113882019-01-30 Tom Tromey <tom@tromey.com>
11389
11390 PR python/23615:
11391 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
11392 (gdbpy_parse_and_eval): Likewise.
11393 * python/python-internal.h (gdbpy_allow_threads): New class.
11394
7054e2ff
JB
113952019-01-28 John Baldwin <jhb@FreeBSD.org>
11396
11397 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
11398 (aarch64_fbsd_fpregmap): Move earlier.
11399 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
11400 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11401 instead of individual calls to trad_frame_set_reg_addr.
11402 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
11403 earlier.
11404 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
11405 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11406 instead of individual calls to trad_frame_set_reg_addr.
11407
36c25ffa
AH
114082019-01-28 Alan Hayward <alan.hayward@arm.com>
11409
11410 * CONTRIBUTE: Replace contribution list with wiki link.
11411
a0707f3c
TT
114122019-01-25 Tom Tromey <tom@tromey.com>
11413
11414 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
11415
0747795c
TT
114162019-01-25 Tom Tromey <tom@tromey.com>
11417
11418 * xtensa-linux-nat.c: Fix common/ includes.
11419 * xml-support.h: Fix common/ includes.
11420 * xml-support.c: Fix common/ includes.
11421 * x86-linux-nat.c: Fix common/ includes.
11422 * windows-nat.c: Fix common/ includes.
11423 * varobj.h: Fix common/ includes.
11424 * varobj.c: Fix common/ includes.
11425 * value.c: Fix common/ includes.
11426 * valops.c: Fix common/ includes.
11427 * utils.c: Fix common/ includes.
11428 * unittests/xml-utils-selftests.c: Fix common/ includes.
11429 * unittests/utils-selftests.c: Fix common/ includes.
11430 * unittests/unpack-selftests.c: Fix common/ includes.
11431 * unittests/tracepoint-selftests.c: Fix common/ includes.
11432 * unittests/style-selftests.c: Fix common/ includes.
11433 * unittests/string_view-selftests.c: Fix common/ includes.
11434 * unittests/scoped_restore-selftests.c: Fix common/ includes.
11435 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
11436 * unittests/scoped_fd-selftests.c: Fix common/ includes.
11437 * unittests/rsp-low-selftests.c: Fix common/ includes.
11438 * unittests/parse-connection-spec-selftests.c: Fix common/
11439 includes.
11440 * unittests/optional-selftests.c: Fix common/ includes.
11441 * unittests/offset-type-selftests.c: Fix common/ includes.
11442 * unittests/observable-selftests.c: Fix common/ includes.
11443 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
11444 * unittests/memrange-selftests.c: Fix common/ includes.
11445 * unittests/memory-map-selftests.c: Fix common/ includes.
11446 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
11447 * unittests/function-view-selftests.c: Fix common/ includes.
11448 * unittests/environ-selftests.c: Fix common/ includes.
11449 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
11450 * unittests/common-utils-selftests.c: Fix common/ includes.
11451 * unittests/cli-utils-selftests.c: Fix common/ includes.
11452 * unittests/array-view-selftests.c: Fix common/ includes.
11453 * ui-file.c: Fix common/ includes.
11454 * tui/tui-io.c: Fix common/ includes.
11455 * tracepoint.h: Fix common/ includes.
11456 * tracepoint.c: Fix common/ includes.
11457 * tracefile-tfile.c: Fix common/ includes.
11458 * top.h: Fix common/ includes.
11459 * top.c: Fix common/ includes.
11460 * thread.c: Fix common/ includes.
11461 * target/waitstatus.h: Fix common/ includes.
11462 * target/waitstatus.c: Fix common/ includes.
11463 * target.h: Fix common/ includes.
11464 * target.c: Fix common/ includes.
11465 * target-memory.c: Fix common/ includes.
11466 * target-descriptions.c: Fix common/ includes.
11467 * symtab.h: Fix common/ includes.
11468 * symfile.c: Fix common/ includes.
11469 * stap-probe.c: Fix common/ includes.
11470 * spu-linux-nat.c: Fix common/ includes.
11471 * sparc-nat.c: Fix common/ includes.
11472 * source.c: Fix common/ includes.
11473 * solib.c: Fix common/ includes.
11474 * solib-target.c: Fix common/ includes.
11475 * ser-unix.c: Fix common/ includes.
11476 * ser-tcp.c: Fix common/ includes.
11477 * ser-pipe.c: Fix common/ includes.
11478 * ser-base.c: Fix common/ includes.
11479 * selftest-arch.c: Fix common/ includes.
11480 * s12z-tdep.c: Fix common/ includes.
11481 * rust-exp.y: Fix common/ includes.
11482 * rs6000-aix-tdep.c: Fix common/ includes.
11483 * riscv-tdep.c: Fix common/ includes.
11484 * remote.c: Fix common/ includes.
11485 * remote-notif.h: Fix common/ includes.
11486 * remote-fileio.h: Fix common/ includes.
11487 * remote-fileio.c: Fix common/ includes.
11488 * regcache.h: Fix common/ includes.
11489 * regcache.c: Fix common/ includes.
11490 * record-btrace.c: Fix common/ includes.
11491 * python/python.c: Fix common/ includes.
11492 * python/py-type.c: Fix common/ includes.
11493 * python/py-inferior.c: Fix common/ includes.
11494 * progspace.h: Fix common/ includes.
11495 * producer.c: Fix common/ includes.
11496 * procfs.c: Fix common/ includes.
11497 * proc-api.c: Fix common/ includes.
11498 * printcmd.c: Fix common/ includes.
11499 * ppc-linux-nat.c: Fix common/ includes.
11500 * parser-defs.h: Fix common/ includes.
11501 * osdata.c: Fix common/ includes.
11502 * obsd-nat.c: Fix common/ includes.
11503 * nat/x86-linux.c: Fix common/ includes.
11504 * nat/x86-linux-dregs.c: Fix common/ includes.
11505 * nat/x86-dregs.h: Fix common/ includes.
11506 * nat/x86-dregs.c: Fix common/ includes.
11507 * nat/ppc-linux.c: Fix common/ includes.
11508 * nat/mips-linux-watch.h: Fix common/ includes.
11509 * nat/mips-linux-watch.c: Fix common/ includes.
11510 * nat/linux-waitpid.c: Fix common/ includes.
11511 * nat/linux-ptrace.h: Fix common/ includes.
11512 * nat/linux-ptrace.c: Fix common/ includes.
11513 * nat/linux-procfs.c: Fix common/ includes.
11514 * nat/linux-personality.c: Fix common/ includes.
11515 * nat/linux-osdata.c: Fix common/ includes.
11516 * nat/linux-namespaces.c: Fix common/ includes.
11517 * nat/linux-btrace.h: Fix common/ includes.
11518 * nat/linux-btrace.c: Fix common/ includes.
11519 * nat/fork-inferior.c: Fix common/ includes.
11520 * nat/amd64-linux-siginfo.c: Fix common/ includes.
11521 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
11522 * nat/aarch64-linux.c: Fix common/ includes.
11523 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
11524 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
11525 * namespace.h: Fix common/ includes.
11526 * mips-linux-tdep.c: Fix common/ includes.
11527 * minsyms.c: Fix common/ includes.
11528 * mi/mi-parse.h: Fix common/ includes.
11529 * mi/mi-main.c: Fix common/ includes.
11530 * mi/mi-cmd-env.c: Fix common/ includes.
11531 * memrange.h: Fix common/ includes.
11532 * memattr.c: Fix common/ includes.
11533 * maint.h: Fix common/ includes.
11534 * maint.c: Fix common/ includes.
11535 * main.c: Fix common/ includes.
11536 * machoread.c: Fix common/ includes.
11537 * location.c: Fix common/ includes.
11538 * linux-thread-db.c: Fix common/ includes.
11539 * linux-nat.c: Fix common/ includes.
11540 * linux-fork.c: Fix common/ includes.
11541 * inline-frame.c: Fix common/ includes.
11542 * infrun.c: Fix common/ includes.
11543 * inflow.c: Fix common/ includes.
11544 * inferior.h: Fix common/ includes.
11545 * inferior.c: Fix common/ includes.
11546 * infcmd.c: Fix common/ includes.
11547 * inf-ptrace.c: Fix common/ includes.
11548 * inf-child.c: Fix common/ includes.
11549 * ia64-linux-nat.c: Fix common/ includes.
11550 * i387-tdep.c: Fix common/ includes.
11551 * i386-tdep.c: Fix common/ includes.
11552 * i386-linux-tdep.c: Fix common/ includes.
11553 * i386-linux-nat.c: Fix common/ includes.
11554 * i386-go32-tdep.c: Fix common/ includes.
11555 * i386-fbsd-tdep.c: Fix common/ includes.
11556 * i386-fbsd-nat.c: Fix common/ includes.
11557 * guile/scm-type.c: Fix common/ includes.
11558 * guile/guile.c: Fix common/ includes.
11559 * go32-nat.c: Fix common/ includes.
11560 * gnu-nat.c: Fix common/ includes.
11561 * gdbthread.h: Fix common/ includes.
11562 * gdbarch-selftests.c: Fix common/ includes.
11563 * gdb_usleep.c: Fix common/ includes.
11564 * gdb_select.h: Fix common/ includes.
11565 * gdb_bfd.c: Fix common/ includes.
11566 * gcore.c: Fix common/ includes.
11567 * fork-child.c: Fix common/ includes.
11568 * findvar.c: Fix common/ includes.
11569 * fbsd-nat.c: Fix common/ includes.
11570 * event-top.c: Fix common/ includes.
11571 * event-loop.c: Fix common/ includes.
11572 * dwarf2read.c: Fix common/ includes.
11573 * dwarf2loc.c: Fix common/ includes.
11574 * dwarf2-frame.c: Fix common/ includes.
11575 * dwarf-index-cache.c: Fix common/ includes.
11576 * dtrace-probe.c: Fix common/ includes.
11577 * disasm-selftests.c: Fix common/ includes.
11578 * defs.h: Fix common/ includes.
11579 * csky-tdep.c: Fix common/ includes.
11580 * cp-valprint.c: Fix common/ includes.
11581 * cp-support.h: Fix common/ includes.
11582 * cp-support.c: Fix common/ includes.
11583 * corelow.c: Fix common/ includes.
11584 * completer.h: Fix common/ includes.
11585 * completer.c: Fix common/ includes.
11586 * compile/compile.c: Fix common/ includes.
11587 * compile/compile-loc2c.c: Fix common/ includes.
11588 * compile/compile-cplus-types.c: Fix common/ includes.
11589 * compile/compile-cplus-symbols.c: Fix common/ includes.
11590 * command.h: Fix common/ includes.
11591 * cli/cli-dump.c: Fix common/ includes.
11592 * cli/cli-cmds.c: Fix common/ includes.
11593 * charset.c: Fix common/ includes.
11594 * build-id.c: Fix common/ includes.
11595 * btrace.h: Fix common/ includes.
11596 * btrace.c: Fix common/ includes.
11597 * breakpoint.h: Fix common/ includes.
11598 * breakpoint.c: Fix common/ includes.
11599 * ax.h:
11600 (enum agent_op): Fix common/ includes.
11601 * ax-general.c (struct aop_map): Fix common/ includes.
11602 * ax-gdb.c: Fix common/ includes.
11603 * auxv.c: Fix common/ includes.
11604 * auto-load.c: Fix common/ includes.
11605 * arm-tdep.c: Fix common/ includes.
11606 * arch/riscv.c: Fix common/ includes.
11607 * arch/ppc-linux-common.c: Fix common/ includes.
11608 * arch/i386.c: Fix common/ includes.
11609 * arch/arm.c: Fix common/ includes.
11610 * arch/arm-linux.c: Fix common/ includes.
11611 * arch/arm-get-next-pcs.c: Fix common/ includes.
11612 * arch/amd64.c: Fix common/ includes.
11613 * arch/aarch64.c: Fix common/ includes.
11614 * arch/aarch64-insn.c: Fix common/ includes.
11615 * arch-utils.c: Fix common/ includes.
11616 * amd64-windows-tdep.c: Fix common/ includes.
11617 * amd64-tdep.c: Fix common/ includes.
11618 * amd64-sol2-tdep.c: Fix common/ includes.
11619 * amd64-obsd-tdep.c: Fix common/ includes.
11620 * amd64-nbsd-tdep.c: Fix common/ includes.
11621 * amd64-linux-tdep.c: Fix common/ includes.
11622 * amd64-linux-nat.c: Fix common/ includes.
11623 * amd64-fbsd-tdep.c: Fix common/ includes.
11624 * amd64-fbsd-nat.c: Fix common/ includes.
11625 * amd64-dicos-tdep.c: Fix common/ includes.
11626 * amd64-darwin-tdep.c: Fix common/ includes.
11627 * agent.c: Fix common/ includes.
11628 * ada-lang.h: Fix common/ includes.
11629 * ada-lang.c: Fix common/ includes.
11630 * aarch64-tdep.c: Fix common/ includes.
11631
2f5c153e
TT
116322019-01-25 Tom Tromey <tom@tromey.com>
11633
11634 * common/create-version.sh: Use common/version.h.
11635
adc6a863
PA
116362019-01-24 Pedro Alves <palves@redhat.com>
11637
11638 * infrun.c (signal_stop, signal_print, signal_program)
11639 (signal_catch, signal_pass): Now arrays instead of pointers.
11640 (update_signals_program_target, do_target_resume)
11641 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
11642 * linux-nat.c (linux_nat_target::pass_signals)
11643 (linux_nat_target::create_inferior, linux_nat_target::attach):
11644 Adjust.
11645 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
11646 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
11647 * procfs.c (procfs_target::pass_signals): Adjust.
11648 * record-full.c (record_full_target::resume): Adjust.
11649 * remote.c (remote_target::pass_signals)
11650 (remote_target::program_signals): Adjust.
11651 * target-debug.h (target_debug_print_signals): Now takes a
11652 gdb::array_view as parameter. Adjust.
11653 * target.h (target_ops) <pass_signals, program_signals>: Replace
11654 pointer and length parameters with gdb::array_view.
11655 (target_pass_signals, target_program_signals): Likewise.
11656 * target-delegates.c: Regenerate.
11657
3046d67a
PA
116582019-01-24 Pedro Alves <palves@redhat.com>
11659
11660 * common/forward-scope-exit.h
11661 (forward_scope_exit::forward_scope_exit): Pass arguments to
11662 m_bind_function directly, instead of creating a std::bind and
11663 copying that.
11664
353229bf
AH
116652019-01-24 Alan Hayward <alan.hayward@arm.com>
11666
11667 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11668 for static members.
11669 (pass_in_v_vfp_candidate): Likewise.
11670
311dc83a
TT
116712019-01-23 Tom Tromey <tom@tromey.com>
11672 Pedro Alves <palves@redhat.com>
11673
11674 * regcache.c (class regcache_invalidator): Remove.
11675 (regcache::raw_write): Use make_scope_exit.
11676
296bd123
TT
116772019-01-23 Tom Tromey <tom@tromey.com>
11678
11679 * ui-out.h (class ui_out_emit_type): Update comment.
11680
979a0d13
TT
116812019-01-23 Tom Tromey <tom@tromey.com>
11682
11683 * infrun.c (fetch_inferior_event): Update comment.
11684
d238133d
TT
116852019-01-23 Tom Tromey <tom@tromey.com>
11686 Pedro Alves <palves@redhat.com>
11687
11688 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
11689 parameter.
11690 (fetch_inferior_event): Use SCOPE_EXIT.
11691
11692
9885e6bb
TT
116932019-01-23 Tom Tromey <tom@tromey.com>
11694 Pedro Alves <palves@redhat.com>
11695
11696 * infrun.c (disable_thread_events): Delete.
11697 (stop_all_threads): Use SCOPE_EXIT.
11698
286526c1
TT
116992019-01-23 Tom Tromey <tom@tromey.com>
11700 Pedro Alves <palves@redhat.com>
11701
11702 * symfile.c: Include forward-scope-exit.h.
11703 (clear_symtab_users_cleanup): Replace forward declaration with
11704 a FORWARD_SCOPE_EXIT.
11705 (syms_from_objfile_1): Use the forward_scope_exit and
11706 gdb::optional instead of cleanup_function.
11707 (reread_symbols): Use the forward_scope_exit instead of
11708 cleanup_function.
11709 (clear_symtab_users_cleanup): Remove function.
11710
1db93f14
TT
117112019-01-23 Tom Tromey <tom@tromey.com>
11712 Pedro Alves <palves@redhat.com>
11713
11714 * linux-nat.c: Include scope-exit.h.
11715 (cleanup_target_stop): Remove.
11716 (linux_nat_target::static_tracepoint_markers_by_strid): Use
11717 SCOPE_EXIT.
11718
2cc83d1e
TT
117192019-01-23 Tom Tromey <tom@tromey.com>
11720 Pedro Alves <palves@redhat.com>
11721
11722 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
11723 (call_function_by_hand_dummy): Use SCOPE_EXIT.
11724
694c6bf5
TT
117252019-01-23 Tom Tromey <tom@tromey.com>
11726 Andrew Burgess <andrew.burgess@embecosm.com>
11727 Pedro Alves <palves@redhat.com>
11728
11729 * infrun.c (fetch_inferior_event): Use scope_exit.
11730 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
11731 * top.c (execute_command): Use scope_exit.
11732 * breakpoint.c (bpstat_do_actions): Use scope_exit.
11733 * utils.c (do_bpstat_clear_actions_cleanup)
11734 (make_bpstat_clear_actions_cleanup): Remove.
11735
4c41382a
TT
117362019-01-23 Tom Tromey <tom@tromey.com>
11737 Pedro Alves <palves@redhat.com>
11738
11739 * infrun.c: Include "common/scope-exit.h"
11740 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
11741 (wait_for_inferior): Use SCOPE_EXIT.
11742 (fetch_inferior_event): Use scope_exit.
11743
89f8fb50
TT
117442019-01-23 Tom Tromey <tom@tromey.com>
11745 Pedro Alves <palves@redhat.com>
11746
11747 * breakpoint.c (create_breakpoint): Remove cleanup.
11748
5419bdae
TT
117492019-01-23 Tom Tromey <tom@tromey.com>
11750 Andrew Burgess <andrew.burgess@embecosm.com>
11751 Pedro Alves <palves@redhat.com>
11752
e587ef42
PA
117532019-01-23 Pedro Alves <palves@redhat.com>
11754
11755 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
11756
77f0e74c
PA
117572019-01-23 Pedro Alves <palves@redhat.com>
11758 Andrew Burgess <andrew.burgess@embecosm.com>
11759
11760 * gdbthread.h: Include "common/forward-scope-exit.h".
11761 (scoped_finish_thread_state): Redefine custom class in terms of
11762 forward_scope_exit.
11763
5b9b3e53
PA
117642019-01-23 Pedro Alves <palves@redhat.com>
11765 Andrew Burgess <andrew.burgess@embecosm.com>
11766
11767 * common/forward-scope-exit.h: New file.
11768
54b65c9b
PA
117692019-01-23 Pedro Alves <palves@redhat.com>
11770 Andrew Burgess <andrew.burgess@embecosm.com>
11771 Tom Tromey <tom@tromey.com>
11772
11773 * common/scope-exit.h: New file.
11774
cf08fb29
PA
117752019-01-23 Pedro Alves <palves@redhat.com>
11776
11777 * common/preprocessor.h (ESC): Rename to ...
11778 (ESC_PARENS): ... this.
11779 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
11780 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
11781
ae73e2e2
TT
117822019-01-23 Tom Tromey <tom@tromey.com>
11783
11784 * language.h (class scoped_switch_to_sym_language_if_auto):
11785 Initialize m_lang in both cases.
11786
6594e122
AH
117872019-01-23 Alan Hayward <alan.hayward@arm.com>
11788
11789 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
11790 with XCNEW.
11791
a7c9855d
TT
117922019-01-22 Tom Tromey <tom@tromey.com>
11793
11794 * corelow.c: Do not include sys/file.h.
11795
93cc1d53
TT
117962019-01-22 Tom Tromey <tom@tromey.com>
11797
11798 * tui/tui-wingeneral.h: Include gdb_curses.h.
11799
38561778
TT
118002019-01-22 Tom Tromey <tom@tromey.com>
11801
11802 * source-cache.h (class source_cache) <get_source_lines,
11803 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
11804
37b3ab5b
TT
118052019-01-22 Tom Tromey <tom@tromey.com>
11806
11807 * remote-fileio.h (struct remote_target): Declare.
11808
3fabc016
TT
118092019-01-22 Tom Tromey <tom@tromey.com>
11810
11811 * python/py-arch.c: Do not include py-ref.h.
11812 * python/py-bpevent.c: Do not include py-ref.h.
11813 * python/py-cmd.c: Do not include py-ref.h.
11814 * python/py-continueevent.c: Do not include py-ref.h.
11815 * python/py-event.h: Do not include py-ref.h.
11816 * python/py-evtregistry.c: Do not include py-ref.h.
11817 * python/py-finishbreakpoint.c: Do not include py-ref.h.
11818 * python/py-frame.c: Do not include py-ref.h.
11819 * python/py-framefilter.c: Do not include py-ref.h.
11820 * python/py-function.c: Do not include py-ref.h.
11821 * python/py-infevents.c: Do not include py-ref.h.
11822 * python/py-linetable.c: Do not include py-ref.h.
11823 * python/py-objfile.c: Do not include py-ref.h.
11824 * python/py-param.c: Do not include py-ref.h.
11825 * python/py-prettyprint.c: Do not include py-ref.h.
11826 * python/py-progspace.c: Do not include py-ref.h.
11827 * python/py-symbol.c: Do not include py-ref.h.
11828 * python/py-symtab.c: Do not include py-ref.h.
11829 * python/py-type.c: Do not include py-ref.h.
11830 * python/py-unwind.c: Do not include py-ref.h.
11831 * python/py-utils.c: Do not include py-ref.h.
11832 * python/py-value.c: Do not include py-ref.h.
11833 * python/py-varobj.c: Do not include py-ref.h.
11834 * python/py-xmethods.c: Do not include py-ref.h.
11835 * python/python.c: Do not include py-ref.h.
11836 * varobj.c: Do not include py-ref.h.
11837
6b4d7774
TT
118382019-01-22 Tom Tromey <tom@tromey.com>
11839
11840 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
11841 keyword for bcache.
11842
7af7e9b5
TT
118432019-01-22 Tom Tromey <tom@tromey.com>
11844
11845 * compile/compile-cplus-types.c: Remove a comment by #include.
11846
951d1049
TT
118472019-01-22 Tom Tromey <tom@tromey.com>
11848
11849 * compile/gcc-c-plugin.h: Include compile-internal.h.
11850
d65d5705
TT
118512019-01-22 Tom Tromey <tom@tromey.com>
11852
11853 * stabsread.c (EXTERN): Do not define.
11854 (symnum, next_symbol_text_func, processing_gcc_compilation)
11855 (within_function, global_sym_chain, global_stabs)
11856 (previous_stab_code, this_object_header_files)
11857 (n_this_object_header_files)
11858 (n_allocated_this_object_header_files): Define.
11859 * stabsread.h (EXTERN): Never define. Use "extern".
11860
b6fb1ee5
PW
118612019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11862
11863 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
11864 history_value.
11865
be6d4f74
TT
118662019-01-21 Tom Tromey <tom@tromey.com>
11867
11868 * ui-out.c: Fix includes.
11869 * tui/tui-source.c: Fix includes.
11870 * target.c: Fix includes.
11871 * remote.c: Fix includes.
11872 * regcache.c: Fix includes.
11873 * python/py-block.c: Fix includes.
11874 * printcmd.c: Fix includes.
11875 * or1k-tdep.c: Fix includes.
11876 * mi/mi-main.c: Fix includes.
11877 * m32r-tdep.c: Fix includes.
11878 * csky-tdep.c: Fix includes.
11879 * compile/compile-cplus-types.c: Fix includes.
11880 * cli/cli-interp.c: Fix includes.
11881
73021deb
AH
118822019-01-21 Alan Hayward <alan.hayward@arm.com>
11883
11884 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11885 for padding.
11886
7932255d
TT
118872019-01-16 Tom Tromey <tom@tromey.com>
11888
11889 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
11890 earlier.
11891 (struct objfile) <msymbols_range>: Move from top level.
11892 <msymbols>: New method.
11893 (class objfile_msymbols): Remove.
11894 * symtab.c (default_collect_symbol_completion_matches_break_on):
11895 Update.
11896 * symmisc.c (dump_msymbols): Update.
11897 * stabsread.c (scan_file_globals): Update.
11898 * objc-lang.c (info_selectors_command, info_classes_command)
11899 (find_methods): Update.
11900 * minsyms.c (find_solib_trampoline_target): Update.
11901 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
11902 * coffread.c (coff_symfile_read): Update.
11903 * ada-lang.c (ada_lookup_simple_minsym)
11904 (ada_collect_symbol_completion_matches): Update.
11905
604b1bfb
TT
119062019-01-16 Tom Tromey <tom@tromey.com>
11907
11908 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
11909 type. Remove no-argument constructor.
11910 <iterator::operator++>: Simplify.
11911 <begin>: Update.
11912 <end>: Use minimal_symbol_count.
11913
f252c6d5
TT
119142019-01-16 Tom Tromey <tom@tromey.com>
11915
11916 * objfiles.h (struct objfile) <psymtabs>: New method.
11917 (class objfile_psymtabs): Remove.
11918 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
11919 typedef.
11920 <range>: New method.
11921 (require_partial_symbols): Change return type.
11922 * psymtab.c (require_partial_symbols)
11923 (psym_expand_symtabs_matching): Update.
11924 * mdebugread.c (parse_partial_symbols): Update.
11925 * dbxread.c (dbx_end_psymtab): Update.
11926
b669c953
TT
119272019-01-15 Tom Tromey <tom@tromey.com>
11928
11929 * symtab.c (lookup_objfile_from_block)
11930 (lookup_symbol_in_objfile_symtabs)
11931 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
11932 (find_line_symtab, info_sources_command)
11933 (default_collect_symbol_completion_matches_break_on)
11934 (make_source_files_completion_list): Update.
11935 * symmisc.c (print_objfile_statistics, dump_objfile)
11936 (maintenance_print_symbols, maintenance_info_symtabs)
11937 (maintenance_check_symtabs, maintenance_info_line_tables):
11938 Update.
11939 * source.c (select_source_symtab)
11940 (forget_cached_source_info_for_objfile): Update.
11941 * objfiles.h (class objfile_compunits): Remove.
11942 (struct objfile) <compunits_range>: New typedef.
11943 (compunits): New method.
11944 * objfiles.c (objfile_relocate1): Update.
11945 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11946 * maint.c (count_symtabs_and_blocks): Update.
11947 * linespec.c (iterate_over_all_matching_symtabs): Update.
11948 * cp-support.c (add_symbol_overload_list_qualified): Update.
11949 * coffread.c (coff_symtab_read): Update.
11950 * ada-lang.c (add_nonlocal_symbols)
11951 (ada_collect_symbol_completion_matches)
11952 (ada_add_global_exceptions): Update.
11953
7e955d83
TT
119542019-01-15 Tom Tromey <tom@tromey.com>
11955
11956 * progspace.h (program_space) <objfiles_safe_range>: New
11957 typedef.
11958 <objfiles_safe>: New method.
11959 * objfiles.h (class all_objfiles_safe): Remove.
11960 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
11961 * jit.c (jit_inferior_exit_hook): Update.
11962
2030c079
TT
119632019-01-17 Tom Tromey <tom@tromey.com>
11964
11965 * progspace.h (program_space) <objfiles_range>: New typedef.
11966 <objfiles>: New method.
11967 <objfiles_head>: Rename from objfiles.
11968 (object_files): Update.
11969 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
11970 * guile/scm-pretty-print.c
11971 (ppscm_find_pretty_printer_from_objfiles): Update.
11972 * guile/scm-objfile.c (gdbscm_objfiles): Update.
11973 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
11974 Update.
11975 * python/py-progspace.c (pspy_get_objfiles): Update.
11976 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11977 Update.
11978 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11979 (objfpy_lookup_objfile_by_build_id): Update.
11980 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11981 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11982 Update.
11983 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11984 (expand_symtab_containing_pc, lookup_objfile_from_block)
11985 (lookup_static_symbol, basic_lookup_transparent_type)
11986 (find_pc_sect_compunit_symtab, find_symbol_at_address)
11987 (find_line_symtab, info_sources_command)
11988 (default_collect_symbol_completion_matches_break_on)
11989 (make_source_files_completion_list, find_main_name): Update.
11990 * symmisc.c (print_symbol_bcache_statistics)
11991 (print_objfile_statistics, maintenance_print_symbols)
11992 (maintenance_print_msymbols, maintenance_print_objfiles)
11993 (maintenance_info_symtabs, maintenance_check_symtabs)
11994 (maintenance_expand_symtabs, maintenance_info_line_tables):
11995 Update.
11996 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
11997 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
11998 (map_overlay_command, unmap_overlay_command)
11999 (simple_overlay_update, expand_symtabs_matching)
12000 (map_symbol_filenames): Update.
12001 * symfile-debug.c (set_debug_symfile): Update.
12002 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
12003 Update.
12004 * source.c (select_source_symtab, forget_cached_source_info):
12005 Update.
12006 * solib.c (solib_read_symbols): Update.
12007 * solib-spu.c (append_ocl_sos): Update.
12008 * psymtab.c (maintenance_print_psymbols)
12009 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
12010 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
12011 * printcmd.c (info_symbol_command): Update.
12012 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
12013 Update.
12014 * objfiles.h (class all_objfiles): Remove.
12015 * objfiles.c (have_partial_symbols, have_full_symbols)
12016 (have_minimal_symbols, qsort_cmp, update_section_map)
12017 (shared_objfile_contains_address_p)
12018 (default_iterate_over_objfiles_in_search_order): Update.
12019 * objc-lang.c (info_selectors_command, info_classes_command)
12020 (find_methods): Update.
12021 * minsyms.c (find_solib_trampoline_target): Update.
12022 * maint.c (maintenance_info_sections)
12023 (maintenance_translate_address, count_symtabs_and_blocks):
12024 Update.
12025 * main.c (captured_main_1): Update.
12026 * linux-thread-db.c (try_thread_db_load_from_pdir)
12027 (has_libpthread): Update.
12028 * linespec.c (iterate_over_all_matching_symtabs)
12029 (search_minsyms_for_name): Update.
12030 * jit.c (jit_find_objf_with_entry_addr): Update.
12031 * hppa-tdep.c (find_unwind_entry)
12032 (hppa_lookup_stub_minimal_symbol): Update.
12033 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
12034 Update.
12035 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12036 (elf_gnu_ifunc_resolve_by_got): Update.
12037 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
12038 * dwarf-index-write.c (save_gdb_index_command): Update.
12039 * cp-support.c (add_symbol_overload_list_qualified): Update.
12040 * breakpoint.c (create_overlay_event_breakpoint)
12041 (create_longjmp_master_breakpoint)
12042 (create_std_terminate_master_breakpoint)
12043 (create_exception_master_breakpoint): Update.
12044 * blockframe.c (find_pc_partial_function): Update.
12045 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
12046 (ada_collect_symbol_completion_matches)
12047 (ada_add_global_exceptions): Update.
12048
776489e0
TT
120492019-01-17 Tom Tromey <tom@tromey.com>
12050
12051 * solib-target.c (lm_info_target_p): Remove typedef. Don't
12052 declare VEC.
12053 (solib_target_parse_libraries): Change return type.
12054 (library_list_start_segment, library_list_start_section)
12055 (library_list_end_library, library_list_start_library); Update.
12056 (solib_target_free_library_list): Remove.
12057 (solib_target_parse_libraries): Remove cleanup. Change return
12058 type.
12059 (solib_target_current_sos): Update.
12060
6471e7d2
TT
120612019-01-17 Tom Tromey <tromey@bapiya>
12062
12063 * valprint.c: Replace "the the" with "the".
12064 * symtab.c: Replace "the the" with "the".
12065 * solib.c: Replace "the the" with "the".
12066 * solib-dsbt.c: Replace "the the" with "the".
12067 * linespec.c: Replace "the the" with "the".
12068 * dwarf2loc.h: Replace "the the" with "the".
12069 * amd64-windows-tdep.c: Replace "the the" with "the".
12070 * aarch64-tdep.c: Replace "the the" with "the".
12071
c24bdb02
KS
120722019-01-16 Keith Seitz <keiths@redhat.com>
12073
12074 PR gdb/23773
12075 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
12076 <builder>: Rename to ..
12077 <m_builder>: ... this and make private.
12078 (dwarf2_cu::get_builder): New method. Change all users of
12079 `builder' to use this method.
12080 (dwarf2_start_symtab): Move to ...
12081 (dwarf2_cu::start_symtab): ... here. Update all callers
12082 (setup_type_unit_groups): Move to ...
12083 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
12084 callers.
12085 (dwarf2_cu::reset_builder): New method.
12086 (process_full_compunit, process_full_type_unit): Use
12087 dwarf2_cu::reset_builder.
12088 (follow_die_offset): Record the ancestor CU if it is different
12089 from the followed DIE's CU.
12090 (follow_die_sig_1): Likewise.
12091
8d64371b
TT
120922019-01-15 Tom Tromey <tom@tromey.com>
12093
12094 * remote.c (class remote_state) <buf>: Now a char_vector.
12095 <buf_size>: Remove.
12096 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
12097 parameter.
12098 (remote_target::getpkt_or_notif_sane_1)
12099 (remote_target::getpkt_sane)
12100 (remote_target::getpkt_or_notif_sane): Likewise.
12101 (class remote_target) <putpkt>: New overload.
12102 (remote_target::read_frame): Change type of "buf_p". Remove
12103 sizeof_p parameter.
12104 (packet_ok): New overload.
12105 (packet_check_result): New overload.
12106 Update all uses.
12107
bb277751
TT
121082019-01-14 Tom Tromey <tom@tromey.com>
12109
12110 * remote-notif.c (handle_notification, remote_notif_ack)
12111 (remote_notif_parse): Make "buf" const.
12112 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
12113 const.
12114 (remote_notif_parse, remote_notif_ack, handle_notification):
12115 Likewise.
12116 * remote.c (remote_notif_stop_parse): Make "buf" const.
12117 (remote_target::remote_parse_stop_reply): Make "buf" const.
12118 (remote_notif_stop_ack): Make "buf" const.
12119
05be00a8
TT
121202019-01-14 Tom Tromey <tom@tromey.com>
12121
12122 * remote.c (remote_console_output): Make parameter const.
12123
491adeca
TT
121242019-01-14 Tom Tromey <tom@tromey.com>
12125
12126 * target-debug.h (target_debug_print_signals): Constify.
12127 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
12128 * procfs.c (procfs_target::pass_signals): Update.
12129 * linux-nat.c (linux_nat_target::pass_signals): Update.
12130 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
12131 * target-delegates.c: Rebuild.
12132 * remote.c (remote_target::program_signals): Update.
12133 (remote_target::pass_signals): Update.
12134 * target.c (target_pass_signals): Constify argument.
12135 (target_program_signals): Likewise.
12136 * target.h (struct target_ops) <pass_signals, program_signals>:
12137 Constify argument.
12138 (target_pass_signals, target_program_signals): Constify argument.
12139
bbd94648
TT
121402019-01-14 Tom Tromey <tom@tromey.com>
12141
12142 PR tui/28819:
12143 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
12144
6f072a10
PFC
121452019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12146
12147 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
12148 field.
12149 * rs6000-tdep.c: Include reggroups.h.
12150 (IS_V_ALIAS_PSEUDOREG): Define.
12151 (rs6000_register_name): Return names for the "vX" aliases.
12152 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
12153 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
12154 aliases. Call default_register_reggroup_p for all other
12155 pseudo-registers.
12156 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
12157 New functions.
12158 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
12159 Handle "vX" aliases.
12160 (v_alias_pseudo_register_collect): New function.
12161 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
12162 (rs6000_gdbarch_init): Initialize "vX" aliases as
12163 pseudo-registers. Restore registration of
12164 rs6000_pseudo_register_reggroup_p with
12165 set_tdesc_pseudo_register_reggroup_p.
12166
1a782351
MF
121672019-01-13 Max Filippov <jcmvbkbc@gmail.com>
12168
12169 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
12170 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
12171 set_gdbarch_num_pseudo_regs.
12172
d73cff18
PW
121732019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12174
12175 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
12176 Remove arg prefixname, add do_set and do_show.
12177 Add member functions set_list and show_list.
12178 * cli/cli-style.c (class cli_style_option): Update accordingly.
12179 (style_set_list): Move to file scope.
12180 (style_show_list): Likewise.
12181 (set_style): Call help_list.
12182 (show_style): Call cmd_show_list.
12183 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
12184 Update to use the new macro.
12185
60a90376
JB
121862019-10-12 Joel Brobecker <brobecker@adacore.com>
12187
12188 * ada-lang.c (_initialize_ada_language): Expand the help text
12189 for the "catch exception" command.
12190
9d7c67bf
PW
121912019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12192
12193 * symtab.c (matching_obj_sections): Initialize obj,
12194 declare it closer to its usage.
12195
7cf47dc4
TT
121962019-01-10 Tom Tromey <tom@tromey.com>
12197
12198 * thread-iter.h (inf_threads_iterator): Use next_iterator.
12199 (basic_inf_threads_range): Remove.
12200 (inf_threads_range, inf_non_exited_threads_range)
12201 (safe_inf_threads_range): Use next_adapter.
12202
d3cb6808
KS
122032019-01-10 Keith Seitz <keiths@redhat.com>
12204
12205 PR gdb/23712
12206 PR symtab/23010
12207 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
12208 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
12209
63a20375
KS
122102019-01-10 Keith Seitz <keiths@redhat.com>
12211
12212 PR gdb/23712
12213 PR symtab/23010
12214 * dictionary.c (pending_to_vector): Remove.
12215 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12216 Remove _1 suffix, replacing functions of the same name. Update
12217 all callers.
12218 (dict_create_hashed, dict_create_hashed_expandable)
12219 (dict_create_linear, dict_create_linear_expandable, dict_free)
12220 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
12221 Make functions static.
12222
b026f593
KS
122232019-01-10 Keith Seitz <keiths@redhat.com>
12224
12225 PR gdb/23712
12226 PR symtab/23010
12227 * dictionary.h (struct dictionary): Replace declaration with
12228 multidictionary.
12229 (dict_create_hashed, dict_create_hashed_expandable)
12230 (dict_create_linear, dict_create_linear_expandable)
12231 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
12232 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
12233 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
12234 taking multidictionary argument.
12235 [ALL_DICT_SYMBOLS]: Update for multidictionary.
12236 * block.h (struct block) <dict>: Change to multidictionary
12237 and rename `multidict'.
12238 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
12239 symmisc.c: Update all dictionary references to multidictionary.
12240
c7748ee9
KS
122412019-01-10 Keith Seitz <keiths@redhat.com>
12242
12243 PR gdb/23712
12244 PR symtab/23010
12245 * dictionary.c: Include unordered_map.
12246 (pending_to_vector): New function.
12247 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12248 Rewrite the non-"_1" functions to take vector instead
12249 of linked list.
12250 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
12251 "new" _1 versions of the same name.
12252 (multidictionary): Define.
12253 (std::hash<enum language): New definition.
12254 (collate_pending_symbols_by_language, mdict_create_hashed)
12255 (mdict_create_hashed_expandable, mdict_create_linear)
12256 (mdict_create_linear_expandable, mdict_free)
12257 (find_language_dictionary, create_new_language_dictionary)
12258 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
12259 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
12260 (mdict_size, mdict_empty): New functions.
12261 * dictionary.h (mdict_iterator): Define.
12262
67aa1f3c
PA
122632019-01-10 Pedro Alves <palves@redhat.com>
12264
12265 * breakpoint.c (read_uploaded_action)
12266 (create_tracepoint_from_upload): Adjust to use
12267 gdb::unique_xmalloc_ptr.
12268 * ctf.c (ctf_write_uploaded_tp):
12269 (SET_ARRAY_FIELD): Use emplace_back.
12270 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
12271 * tracefile-tfile.c (tfile_write_uploaded_tp):
12272 * tracepoint.c (parse_tracepoint_definition): Adjust to use
12273 gdb::unique_xmalloc_ptr.
12274 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
12275 at_string, cond_string, cmd_strings>: Replace char pointers
12276 with gdb::unique_xmalloc_ptr.
12277
2f667667
PA
122782019-01-10 Pedro Alves <palves@redhat.com>
12279
12280 * solib-target.c (library_list_start_library): Don't xstrdup name.
12281
36cb7237
PA
122822019-01-10 Pedro Alves <palves@redhat.com>
12283
12284 * mdebugread.c (parse_partial_symbols): Use
12285 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
12286
da584958
AB
122872019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12288
12289 * linux-fork.c (scoped_switch_fork_info)
12290 <~scoped_switch_fork_info>: Fix incorrect variable name.
12291
1ef8573c
AB
122922019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12293
12294 * linux-fork.c (scoped_switch_fork_info)
12295 <scoped_switch_fork_info>: Make explicit.
12296 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
12297
8d7bcccb
TT
122982019-01-10 Tom Tromey <tom@tromey.com>
12299
12300 * objfiles.h (objfile::reset_psymtabs): Update.
12301 * objfiles.c (objfile::objfile): Update.
12302 * psymtab.h (psymtab_storage::obstack): Update.
12303 (psymtab_storage::m_obstack): Use gdb::optional.
12304 (class psymtab_storage): Update comment. Remove objfile
12305 parameter.
12306 * psymtab.c (psymtab_storage::psymtab_storage): Update.
12307
b596a3c7
TT
123082019-01-10 Tom Tromey <tom@tromey.com>
12309
12310 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
12311 <free_psymtabs>: Now private.
12312 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
12313 (allocate_psymtab): Use new method.
12314
a9342b62
TT
123152019-01-10 Tom Tromey <tom@tromey.com>
12316
12317 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
12318 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
12319 * mdebugread.c (parse_partial_symbols): Use
12320 allocate_dependencies.
12321 * dwarf2read.c (dwarf2_create_include_psymtab): Use
12322 allocate_dependencies.
12323 (process_psymtab_comp_unit_reader)
12324 (build_type_psymtab_dependencies): Likewise.
12325 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
12326
5af70966
TT
123272019-01-10 Tom Tromey <tom@tromey.com>
12328
12329 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
12330 PSYMBOL_SET_LANGUAGE.
12331 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
12332
5923a04c
TT
123332019-01-10 Tom Tromey <tom@tromey.com>
12334
12335 * psymtab.h (psymtab_storage::obstack): New method.
12336 <m_obstack>: Rename from obstack; now private.
12337 * psymtab.c (psymtab_storage): Update.
12338 * dwarf2read.c (create_addrmap_from_index)
12339 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
12340 Update.
12341
6d6a12bf
TT
123422019-01-10 Tom Tromey <tom@tromey.com>
12343
12344 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
12345 * objfiles.h (objfile::reset_psymtabs): New method.
12346
d320c2b5
TT
123472019-01-10 Tom Tromey <tom@tromey.com>
12348
12349 * symmisc.c (print_symbol_bcache_statistics): Update.
12350 (print_objfile_statistics): Update.
12351 * symfile.c (reread_symbols): Update.
12352 * psymtab.h (class psymtab_storage): New.
12353 * psymtab.c (psymtab_storage): New constructor.
12354 (~psymtab_storage): New destructor.
12355 (require_partial_symbols): Update.
12356 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
12357 (find_pc_sect_psymtab, find_pc_sect_psymbol)
12358 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
12359 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
12360 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
12361 (start_psymtab_common, end_psymtab_common)
12362 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
12363 (allocate_psymtab): Update.
12364 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
12365 Update.
12366 (dump_psymtab_addrmap, maintenance_print_psymbols)
12367 (maintenance_check_psymtabs): Update.
12368 (class objfile_psymtabs): Move to objfiles.h.
12369 * psympriv.h (discard_psymtab): Now inline.
12370 (psymtab_discarder::psymtab_discarder): Update.
12371 (psymtab_discarder::~psymtab_discarder): Update.
12372 (ALL_OBJFILE_PSYMTABS): Rewrite.
12373 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
12374 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
12375 Remove fields.
12376 <partial_symtabs>: New field.
12377 (class objfile_psymtabs): Move from psymtab.h. Update.
12378 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
12379 psymbol_cache.
12380 (objfile::~objfile): Don't destroy psymbol_cache.
12381 * mdebugread.c (parse_partial_symbols): Update.
12382 * dwarf2read.c (create_addrmap_from_index)
12383 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12384 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
12385 (add_partial_subprogram, dwarf2_ranges_read): Update.
12386 * dwarf-index-write.c (write_address_map)
12387 (write_one_signatured_type, recursively_write_psymbols)
12388 (class debug_names, class debug_names, write_psymtabs_to_index):
12389 Update.
12390
1d94a5a3
TT
123912019-01-10 Tom Tromey <tom@tromey.com>
12392
12393 * symtab.h (SYMBOL_SET_NAMES): Update.
12394 (symbol_set_names): Update.
12395 (MSYMBOL_SET_NAMES): Update.
12396 * symtab.c (symbol_set_names): Change argument to be an
12397 objfile_per_bfd_storage.
12398 * psymtab.c (add_psymbol_to_bcache): Update.
12399 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
12400
0f14768a
TT
124012019-01-10 Tom Tromey <tom@tromey.com>
12402
12403 * symtab.c (create_demangled_names_hash): Change argument to be an
12404 objfile_per_bfd_storage.
12405 (symbol_set_names): Update.
12406
6eee24ce
TT
124072019-01-10 Tom Tromey <tom@tromey.com>
12408
12409 * xcoffread.c (xcoff_initial_scan): Unconditionally call
12410 init_psymbol_list.
12411 * psymtab.c (init_psymbol_list): Do nothing if already called.
12412 * psympriv.h (init_psymbol_list): Add comment.
12413 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
12414 init_psymbol_list.
12415 * dbxread.c (dbx_symfile_read): Unconditionally call
12416 init_psymbol_list.
12417
75aedd27
TT
124182019-01-10 Tom Tromey <tom@tromey.com>
12419
12420 * xcoffread.c (scan_xcoff_symtab): Update.
12421 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
12422 "where".
12423 * mdebugread.c (parse_partial_symbols)
12424 (handle_psymbol_enumerators): Update.
12425 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
12426 * dbxread.c (read_dbx_symtab): Update.
12427 * psympriv.h (psymbol_placement): New enum.
12428 (add_psymbol_to_list): Update.
12429
939652a5
TT
124302019-01-10 Tom Tromey <tom@tromey.com>
12431
12432 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
12433 static_psymbols parameters.
12434 (scan_xcoff_symtab): Update.
12435 * psymtab.c (start_psymtab_common): Remove global_psymbols and
12436 static_psymbols parameters.
12437 * psympriv.h (start_psymtab_common): Update.
12438 * mdebugread.c (parse_partial_symbols): Update.
12439 * dwarf2read.c (create_partial_symtab): Update.
12440 * dbxread.c (read_dbx_symtab): Update.
12441 (start_psymtab): Remove global_psymbols and static_psymbols
12442 parameters.
12443
baa62830
TT
124442019-01-10 Tom Tromey <tom@tromey.com>
12445
12446 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
12447 * psymtab.c (allocate_psymtab): Add comment.
12448 * psympriv.h (allocate_psymtab): Add comment.
12449 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
12450 initializations.
12451 * dbxread.c (dbx_end_psymtab): Remove some initializations.
12452
0e8f53ba
TT
124532019-01-10 Tom Tromey <tom@tromey.com>
12454
12455 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12456 Don't declare.
12457 * mipsread.c: Include mdebugread.h.
12458 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12459 Declare.
12460 * elfread.c: Include mdebugread.h.
12461
b22a7c6a
TT
124622019-01-09 Tom Tromey <tom@tromey.com>
12463
12464 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
12465 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
12466 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
12467 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
12468 (psym_lookup_symbol, psym_find_last_source_symtab)
12469 (psym_forget_cached_source_info, psym_print_stats)
12470 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
12471 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
12472 (psym_map_matching_symbols, psym_expand_symtabs_matching)
12473 (psym_find_compunit_symtab_by_address)
12474 (maintenance_print_psymbols, maintenance_info_psymtabs)
12475 (maintenance_check_psymtabs): Use ranged for.
12476 * psymtab.h (class objfile_psymtabs): New.
12477 (require_partial_symbols): Return objfile_psymtabs.
12478 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
12479
3b9d3ac2
TT
124802019-01-09 Tom Tromey <tom@tromey.com>
12481
12482 * symfile.c (overlay_invalidate_all, find_pc_overlay)
12483 (find_pc_mapped_section, list_overlays_command)
12484 (map_overlay_command, unmap_overlay_command)
12485 (simple_overlay_update): Use all_objfiles.
12486 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
12487 * printcmd.c (info_symbol_command): Use all_objfiles.
12488 * objfiles.h (ALL_OBJSECTIONS): Remove.
12489 * maint.c (maintenance_translate_address): Use all_objfiles.
12490 * gcore.c (gcore_create_callback): Use all_objfiles.
12491 (objfile_find_memory_regions): Likewise.
12492
8b31193a
TT
124932019-01-09 Tom Tromey <tom@tromey.com>
12494
12495 * symtab.c (find_line_symtab, info_sources_command)
12496 (make_source_files_completion_list): Use objfile_compunits.
12497 * source.c (select_source_symtab): Use objfile_compunits.
12498 * objfiles.h (struct objfile): Update comment.
12499 (ALL_OBJFILES): Remove.
12500 (ALL_FILETABS): Remove.
12501 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
12502 objfile_compunits.
12503
d5da8b3c
TT
125042019-01-09 Tom Tromey <tom@tromey.com>
12505
12506 * symmisc.c (print_objfile_statistics, dump_objfile)
12507 (maintenance_print_symbols): Use compunit_filetabs.
12508 * source.c (forget_cached_source_info_for_objfile): Use
12509 compunit_filetabs.
12510 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
12511 (ALL_FILETABS): Use compunit_filetabs.
12512 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
12513 * coffread.c (coff_symtab_read): Use compunit_filetabs.
12514
5accd1a0
TT
125152019-01-09 Tom Tromey <tom@tromey.com>
12516
12517 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
12518 (compunit_filetabs): New.
12519 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
12520 compunit_filetabs.
12521 (info_sources_command, make_source_files_completion_list): Remove
12522 declaration.
12523 * symmisc.c (print_objfile_statistics, dump_objfile)
12524 (maintenance_print_symbols): Remove declaration.
12525 (maintenance_info_symtabs): Use compunit_filetabs.
12526 (maintenance_info_line_tables): Likewise.
12527 * source.c (select_source_symtab): Change local variable name.
12528 (forget_cached_source_info_for_objfile): Remove declaration.
12529 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
12530 * objfiles.c (objfile_relocate1): Remove declaration.
12531 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12532 declaration.
12533 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
12534 * coffread.c (coff_symtab_read): Remove declaration.
12535 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
12536 compunit_filetabs.
12537
d8aeb77f
TT
125382019-01-09 Tom Tromey <tom@tromey.com>
12539
12540 * symtab.c (lookup_objfile_from_block)
12541 (find_pc_sect_compunit_symtab, search_symbols)
12542 (default_collect_symbol_completion_matches_break_on): Use
12543 objfile_compunits.
12544 * objfiles.h (ALL_COMPUNITS): Remove.
12545 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
12546 * cp-support.c (add_symbol_overload_list_qualified): Use
12547 objfile_compunits.
12548 * ada-lang.c (ada_collect_symbol_completion_matches)
12549 (ada_add_global_exceptions): Use objfile_compunits.
12550
592553c4
TT
125512019-01-09 Tom Tromey <tom@tromey.com>
12552
12553 * source.c (select_source_symtab)
12554 (forget_cached_source_info_for_objfile): Remove declaration.
12555 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12556 declaration.
12557 * maint.c (count_symtabs_and_blocks): Remove declaration.
12558 * cp-support.c (add_symbol_overload_list_qualified): Remove
12559 declaration.
12560 * coffread.c (coff_symtab_read): Remove declaration.
12561 * symtab.c (lookup_symbol_in_objfile_symtabs)
12562 (basic_lookup_transparent_type_1): Use objfile_compunits.
12563 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
12564 (info_sources_command, search_symbols)
12565 (default_collect_symbol_completion_matches_break_on)
12566 (make_source_files_completion_list): Remove declaration.
12567 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
12568 (ada_collect_symbol_completion_matches)
12569 (ada_add_global_exceptions): Remove declaration.
12570 * linespec.c (iterate_over_all_matching_symtabs): Use
12571 objfile_compunits.
12572 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
12573 (class objfile_compunits): New.
12574 (ALL_COMPUNITS): Use objfile_compunits.
12575 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
12576 (maintenance_check_symtabs, maintenance_info_line_tables): Use
12577 objfile_compunits.
12578 * objfiles.c (objfile_relocate1): Use objfile_compunits.
12579
5325b9bf
TT
125802019-01-09 Tom Tromey <tom@tromey.com>
12581
12582 * symtab.c (search_symbols)
12583 (default_collect_symbol_completion_matches_break_on): Use
12584 objfile_msymbols.
12585 * ada-lang.c (ada_lookup_simple_minsym)
12586 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
12587 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
12588 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
12589 objfile_msymbols.
12590 * coffread.c (coff_symfile_read): Use objfile_msymbols.
12591 * symmisc.c (dump_msymbols): Use objfile_msymbols.
12592 * objc-lang.c (find_methods): Use objfile_msymbols.
12593 (info_selectors_command, info_classes_command): Likewise.
12594 * stabsread.c (scan_file_globals): Use objfile_msymbols.
12595 * objfiles.h (class objfile_msymbols): New.
12596 (ALL_OBJFILE_MSYMBOLS): Remove.
12597 (ALL_MSYMBOLS): Remove.
12598
cac85af2
TT
125992019-01-09 Tom Tromey <tom@tromey.com>
12600
12601 * common/next-iterator.h (next_adapter): Add Iterator template
12602 parameter.
12603 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
12604 (class all_objfiles_safe): New.
12605 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
12606 * objfiles.c (put_objfile_before): Update comment.
12607 (add_separate_debug_objfile): Likewise.
12608 (free_all_objfiles): Use all_objfiles_safe.
12609 (objfile_purge_solibs): Likewise.
12610
aed57c53
TT
126112019-01-09 Tom Tromey <tom@tromey.com>
12612
12613 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12614 (expand_symtab_containing_pc, lookup_static_symbol)
12615 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
12616 (find_symbol_at_address, find_line_symtab, find_main_name): Use
12617 all_objfiles.
12618 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
12619 * breakpoint.c (create_overlay_event_breakpoint)
12620 (create_longjmp_master_breakpoint)
12621 (create_std_terminate_master_breakpoint)
12622 (create_exception_master_breakpoint): Use all_objfiles.
12623 * linux-thread-db.c (try_thread_db_load_from_pdir)
12624 (has_libpthread): Use all_objfiles.
12625 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
12626 * linespec.c (iterate_over_all_matching_symtabs)
12627 (search_minsyms_for_name): Use all_objfiles.
12628 * maint.c (maintenance_info_sections): Use all_objfiles.
12629 * main.c (captured_main_1): Use all_objfiles.
12630 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
12631 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
12632 * guile/scm-pretty-print.c
12633 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
12634 * solib-spu.c (append_ocl_sos): Use all_objfiles.
12635 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
12636 (maintenance_print_msymbols): Use all_objfiles.
12637 * source.c (select_source_symtab): Use all_objfiles.
12638 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
12639 * symfile.c (remove_symbol_file_command)
12640 (expand_symtabs_matching, map_symbol_filenames): Use
12641 all_objfiles.
12642 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
12643 all_objfiles.
12644 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
12645 * objc-lang.c (find_methods): Use all_objfiles.
12646 * objfiles.c (have_partial_symbols, have_full_symbols)
12647 (have_minimal_symbols, qsort_cmp)
12648 (default_iterate_over_objfiles_in_search_order): Use
12649 all_objfiles.
12650 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
12651 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
12652 (maintenance_check_psymtabs): Use all_objfiles.
12653 (ALL_PSYMTABS): Remove.
12654 * compile/compile-object-run.c (do_module_cleanup): Use
12655 all_objfiles.
12656 * blockframe.c (find_pc_partial_function): Use all_objfiles.
12657 * cp-support.c (add_symbol_overload_list_qualified): Use
12658 all_objfiles.
12659 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12660 Use all_objfiles.
12661 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
12662 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
12663 all_objfiles.
12664 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12665 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
12666 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12667 Uses all_objfiles.
12668 * solib.c (solib_read_symbols): Use all_objfiles
12669
99d89cde
TT
126702019-01-09 Tom Tromey <tom@tromey.com>
12671
12672 * probe.c (parse_probes_in_pspace): Use all_objfiles.
12673 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
12674 all_objfiles.
12675 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
12676 * symmisc.c (print_symbol_bcache_statistics)
12677 (print_objfile_statistics, maintenance_print_objfiles)
12678 (maintenance_info_symtabs, maintenance_check_symtabs)
12679 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
12680 all_objfiles.
12681 * source.c (forget_cached_source_info): Use all_objfiles.
12682 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
12683 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12684 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
12685 * objfiles.c (update_section_map): Use all_objfiles.
12686 (shared_objfile_contains_address_p): Likewise.
12687 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
12688 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
12689
21708325
TT
126902019-01-09 Tom Tromey <tom@tromey.com>
12691
12692 * common/next-iterator.h: New file.
12693 * objfiles.h (class all_objfiles): New.
12694 (struct objfile_iterator): New.
12695
669e09f6
PW
126962019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12697
12698 * NEWS: Move the description of the changed "frame", "select-frame",
12699 and "info frame" commands to the Changed commands section.
12700
041be526
SM
127012019-01-09 Simon Marchi <simon.marchi@ericsson.com>
12702
12703 * gdbtypes.c (check_stub_method_group): Remove handling of old
12704 mangling schemes.
12705 * linespec.c (find_methods): Likewise.
12706 * stabsread.c (read_member_functions): Likewise.
12707 * valops.c (search_struct_method): Likewise.
12708 (value_struct_elt_for_reference): Likewise.
12709 * NEWS: Mention this change.
12710
0e2a2133
AB
127112019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12712
12713 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
12714 print_source_lines.
12715 * source.c (print_source_lines_base): Update line number check.
12716 (print_source_lines): New function.
12717 (source_lines_range::source_lines_range): New function.
12718 * source.h (class source_lines_range): New class.
12719 (print_source_lines): New declaration.
12720
1055a3b4
PW
127212019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12722
12723 * linespec.c (linespec_state_destructor): Free self->canonical_names.
12724
cfeadda5
TT
127252019-01-08 Tom Tromey <tom@tromey.com>
12726 Simon Marchi <simon.marchi@ericsson.com>
12727
12728 PR gdb/24060
12729 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
12730 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
12731 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12732 * f-exp.y (DOLLAR_VARIABLE): Likewise.
12733 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
12734 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12735
583068ca
AB
127362019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12737
12738 * source.c (select_source_symtab): Move header comment to
12739 declaration in source.h.
12740 (forget_cached_source_info_for_objfile): Likewise.
12741 (forget_cached_source_info): Likewise.
12742 (identify_source_line): Likewise.
12743 * source.h (identify_source_line): Move declaration from symtab.h
12744 and add comment from source.c
12745 (print_source_lines): Likewise.
12746 (forget_cached_source_info_for_objfile): Likewise.
12747 (forget_cached_source_info): Likewise.
12748 (select_source_symtab): Likewise.
12749 (enum print_source_lines_flag): Move definition from symtab.h.
12750 * symtab.h (identify_source_line): Move declaration to source.h.
12751 (print_source_lines): Likewise.
12752 (forget_cached_source_info_for_objfile): Likewise.
12753 (forget_cached_source_info): Likewise.
12754 (select_source_symtab): Likewise.
12755 (enum print_source_lines_flag): Move definition to source.h.
12756 * tui/tui-hooks.c: Add 'source.h' include.
12757
ec98a4ad
AB
127582019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12759
12760 * source.c (print_source_lines_base): Handle requests to print
12761 reverse line number sequences, and guard against empty lines
12762 string.
12763
62ea19c1
AB
127642019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12765
12766 * source.c (print_source_lines_base): Fix skip of '\r' if next
12767 character is '\n'.
12768
9d30e1fd
TT
127692019-01-06 Tom Tromey <tom@tromey.com>
12770
12771 * c-exp.y (struct c_parse_state) <macro_original_text,
12772 expansion_obstack>: New member.
12773 (macro_original_text, expansion_obstack): Remove globals.
12774 (scan_macro_expansion, scanning_macro_expansion)
12775 (finished_macro_expansion): Update.
12776 (scan_macro_cleanup): Remove.
12777 (yylex, c_parse): Update.
12778
c65bac38
TT
127792019-01-06 Tom Tromey <tom@tromey.com>
12780
12781 * c-exp.y (struct c_parse_state) <strings>: New member.
12782 (operator_stoken): Update.
12783
02e12e38
TT
127842019-01-06 Tom Tromey <tom@tromey.com>
12785
12786 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
12787 (union type_stack_elt) <typelist_val>: Now a pointer to
12788 std::vector.
12789 (type_stack_cleanup): Don't declare.
12790 (push_typelist): Update.
12791 * parse.c (pop_typelist): Return a std::vector.
12792 (push_typelist): Take a std::vector.
12793 (follow_types): Update. Do not free args.
12794 (type_stack_cleanup): Remove.
12795 * c-exp.y (struct c_parse_state): New.
12796 (cpstate): New global.
12797 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
12798 (nonempty_typelist): Update.
12799 (func_mod): Create a new vector.
12800 (c_parse): Create a c_parse_state.
12801 (check_parameter_typelist): Do not delete params.
12802 (function_method): Update. Do not delete type_list.
12803
f097f5ad
TT
128042019-01-06 Tom Tromey <tom@tromey.com>
12805
12806 PR gdb/28155:
12807 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
12808 check_typedef.
12809 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
12810 (print_return_value): Likewise.
12811
d2adf9f1
TT
128122019-01-05 Tom Tromey <tom@tromey.com>
12813
12814 * contrib/cleanup_check.py: Remove.
12815 * contrib/gcc-with-excheck: Remove.
12816 * contrib/exsummary.py: Remove.
12817 * contrib/excheck.py: Remove.
12818
2eab46b1
JB
128192019-01-05 Joel Brobecker <brobecker@adacore.com>
12820
12821 * thread.c (delete_thread_1): Add gdb_assert that THR is not
12822 NULL. Initialize tpprev to NULL instead of assigning it
12823 to NULL on the next statement.
12824 * windows-nat.c (windows_delete_thread): Remove check for
12825 main_thread_id before printing thread exit notifications.
12826 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
12827 Remove thread ID check against main_thread_id.
12828 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
12829 windows_delete_thread.
12830 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
12831
48c5e7e2
TT
128322019-01-04 Tom Tromey <tom@tromey.com>
12833
12834 * compile/compile.c (_initialize_compile): Use upper case for
12835 metasyntactic variables.
12836 * symmisc.c (_initialize_symmisc): Use upper case for
12837 metasyntactic variables.
12838 * psymtab.c (_initialize_psymtab): Use upper case for
12839 metasyntactic variables.
12840 * demangle.c (demangle_command): Use upper case for metasyntactic
12841 variables.
12842 (_initialize_demangler): Likewise.
12843 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
12844 variables.
12845
986041cd
TT
128462019-01-03 Tom Tromey <tom@tromey.com>
12847
12848 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
12849
7c711119
TT
128502019-01-03 Tom Tromey <tom@tromey.com>
12851
12852 * python/py-symtab.c (salpy_str): Update.
12853 (struct salpy_sal_object) <symtab>: Now a PyObject.
12854 (salpy_dealloc): Update.
12855 (del_objfile_sal): Use gdbpy_ref.
12856
1b20edf0
TT
128572019-01-03 Tom Tromey <tom@tromey.com>
12858
12859 * python/py-type.c (convert_field): Use new_reference. Return
12860 gdbpy_ref.
12861 (make_fielditem): Return gdbpy_ref.
12862 (typy_fields): Update.
12863 (typy_getitem): Update.
12864 (field_name): Return gdbpy_ref. Use new_reference.
12865 (typy_iterator_iternext): Update.
12866
ea41325b
TT
128672019-01-03 Tom Tromey <tom@tromey.com>
12868
12869 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
12870
2a3c71d6
TT
128712019-01-03 Tom Tromey <tom@tromey.com>
12872
12873 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
12874 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
12875 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
12876 (pspy_set_frame_filters, pspy_set_frame_unwinders)
12877 (pspy_set_type_printers): Likewise.
12878 * python/py-function.c (fnpy_init): Use gdbpy_ref.
12879 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
12880 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
12881 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
12882 (objfpy_set_type_printers): Likewise.
12883
5c329e6a
TT
128842019-01-03 Tom Tromey <tom@tromey.com>
12885
12886 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
12887 (gdbpy_print_stack): Use gdbpy_err_fetch.
12888 * python/python-internal.h (class gdbpy_err_fetch): New class.
12889 (class gdbpy_enter) <m_error_type, m_error_value,
12890 m_error_traceback>: Remove.
12891 <m_error>: New member.
12892 (gdbpy_exception_to_string): Don't declare.
12893 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
12894 * python/py-value.c (convert_value_from_python): Use
12895 gdbpy_err_fetch.
12896 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
12897 gdbpy_exception_to_string.
12898 (gdbpy_handle_exception): Use gdbpy_err_fetch.
12899 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
12900 gdbpy_err_fetch.
12901
169bb27b
AB
129022019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12903
12904 * linux-nat.c (delete_lwp_cleanup): Delete.
12905 (struct lwp_deleter): New struct.
12906 (lwp_info_up): New typedef.
12907 (linux_nat_target::follow_fork): Delete cleanup, and make use of
12908 lwp_info_up.
12909
a07c8880
AB
129102019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12911
12912 * linux-fork.c (class scoped_switch_fork_info): New class.
12913 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
12914
26089c49
AB
129152019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12916
12917 * valops.c (find_overload_match): Remove use of null_cleanup, and
12918 calls to do_cleanups.
12919
06d3e5b0
AB
129202019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12921
12922 * compile/compile-cplus-types.c
12923 (compile_cplus_instance::decl_name): Handle changes to
12924 cp_func_name.
12925 * cp-support.c (cp_func_name): Update header comment, update
12926 return type.
12927 * cp-support.h (cp_func_name): Update return type in declaration.
12928 * valops.c (find_overload_match): Move temp_func local to top
12929 level of function and change its type. Use temp_func to hold and
12930 delete temporary string obtained from cp_func_name.
12931
66644cd3
AB
129322019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12933
12934 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
12935 gdb::char_vector, remove cleanup, and update uses of `msg`.
12936
592d8c0a
JW
129372019-01-03 Jim Wilson <jimw@sifive.com>
12938
12939 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
12940
c55d06ec
TT
129412019-01-02 Tom Tromey <tom@tromey.com>
12942
12943 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
12944 (tdesc_parse_xml): Remove cleanups.
12945 * target-descriptions.h (make_cleanup_free_target_description):
12946 Don't declare.
12947 (target_desc_deleter): New struct.
12948 (target_desc_up): New typedef.
12949 * target-descriptions.c (target_desc_deleter::operator()): Rename
12950 from free_target_description.
12951 (make_cleanup_free_target_description): Remove.
12952
3a6ae42d
TT
129532019-01-02 Tom Tromey <tom@tromey.com>
12954
12955 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
12956 constructor, destructor.
12957 (linespec_parser): Remove typedef.
12958 (~linespec_parser): Rename from linespec_parser_delete.
12959 (linespec_lex_to_end, linespec_complete_label)
12960 (linespec_complete): Update.
12961 (decode_line_full): Remove cleanups.
12962 (decode_line_1): Update.
12963
61fd3e73
TT
129642019-01-02 Tom Tromey <tom@tromey.com>
12965
12966 * python/python-internal.h (inferior_to_inferior_object): Change
12967 return type.
12968 * python/py-exitedevent.c (create_exited_event_object): Update.
12969 * python/py-inferior.c (inferior_to_inferior_object): Return
12970 gdbpy_ref.
12971 (python_new_inferior, python_inferior_deleted)
12972 (thread_to_thread_object, delete_thread_object)
12973 (build_inferior_list, gdbpy_selected_inferior): Update.
12974 * python/py-infthread.c (create_thread_object): Update. Also fail
12975 if inferior_to_inferior_object fails.
12976
d20172fc
SM
129772019-01-02 Simon Marchi <simon.marchi@ericsson.com>
12978
12979 * inferior.h (class inferior) <displaced_step_state>: New field.
12980 * infrun.h (struct displaced_step_state): Move here from
12981 infrun.c. Initialize fields, add constructor.
12982 <inf>: Remove field.
12983 <reset>: New method.
12984 * infrun.c (struct displaced_step_inferior_state): Move to
12985 infrun.h.
12986 (displaced_step_inferior_states): Remove.
12987 (get_displaced_stepping_state): Adust.
12988 (displaced_step_in_progress_any_inferior): Adjust.
12989 (displaced_step_in_progress_thread): Adjust.
12990 (displaced_step_in_progress): Adjust.
12991 (add_displaced_stepping_state): Remove.
12992 (get_displaced_step_closure_by_addr): Adjust.
12993 (remove_displaced_stepping_state): Remove.
12994 (infrun_inferior_exit): Call displaced_step_state.reset.
12995 (use_displaced_stepping): Don't check for NULL.
12996 (displaced_step_prepare_throw): Call
12997 get_displaced_stepping_state.
12998 (displaced_step_fixup): Don't check for NULL.
12999 (prepare_for_detach): Don't check for NULL.
13000
e3319240
PW
130012019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13002
13003 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
13004 in case of call that did not complete.
13005
5d36dfb9
AU
130062019-01-02 Andrey Utkin <autkin@undo.io>
13007
13008 * symfile.c (find_separate_debug_file): Fix search of debug files for
13009 remote debuggee.
13010
8833fbf0
TT
130112019-01-02 Tom Tromey <tom@tromey.com>
13012
13013 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
13014 indentation.
13015 * python/py-frame.c (frapy_older): Remove cast.
13016 (frapy_newer): Likewise.
13017 * python/py-breakpoint.c (local_setattro): Remove cast.
13018 * python/py-arch.c (archpy_name): Remove local variable.
13019 * python/py-type.c (gdbpy_lookup_type): Remove cast.
13020
4ada3dfd
JB
130212019-01-02 Joel Brobecker <brobecker@adacore.com>
13022
13023 * unittests/basic_string_view/element_access/char/empty.cc:
13024 Fix year range in copyright header.
13025
113b7b81
AB
130262019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
13027
13028 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
13029 Delete.
13030 <operator==>: Update with for removed field.
13031 <hash>: Likewise.
13032 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
13033 <isa_features>: ...this.
13034 <abi_features>: New field.
13035 (riscv_isa_flen): Update comment.
13036 (riscv_abi_xlen): New declaration.
13037 (riscv_abi_flen): New declaration.
13038 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
13039 isa_features.
13040 (riscv_abi_xlen): New function.
13041 (riscv_isa_flen): Update to get answer from isa_features.
13042 (riscv_abi_flen): New function.
13043 (riscv_has_fp_abi): Update to get answer from abi_features.
13044 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
13045 xlen and flen.
13046 (riscv_call_info) <xlen, flen>: Update comment.
13047 (riscv_call_arg_struct): Remove invalid assertions
13048 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
13049 is removed.
13050 (riscv_gdbarch_init): Gather isa features and abi features
13051 separately, ensure both match on the gdbarch when reusing an old
13052 gdbarch. Relax an error check to allow 32-bit abi float to run on
13053 a target with 64-bit float hardware.
13054
b18ca514
PW
130552019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13056
13057 * source.c (search_command_helper): Stop reverse search
13058 when line 1 has been searched.
13059
ec70d8db
PW
130602019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13061
13062 * record-full.c (record_full_base_target::close): Rewrite
13063 record_full_core_buf_list free logic.
13064
5b38f9c1
PW
130652019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13066
13067 * break-catch-syscall.c (print_one_catch_syscall): xfree
13068 the last text.
13069
66d91b39
JB
130702019-01-01 Joel Brobecker <brobecker@adacore.com>
13071
13072 * top.c (print_gdb_version): Update Copyright year in version
13073 message.
13074
42a4f53d
JB
130752019-01-01 Joel Brobecker <brobecker@adacore.com>
13076
13077 Update copyright year range in all GDB files.
13078
7e955d83 130792019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 13080
5bbd631d 13081 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 13082
5bbd631d 13083For older changes see ChangeLog-2018.
c906108c
SS
13084\f
13085Local Variables:
13086mode: change-log
13087left-margin: 8
13088fill-column: 74
13089version-control: never
57da7796 13090coding: utf-8
c906108c 13091End:
5bbd631d 13092
This page took 4.585999 seconds and 4 git commands to generate.