]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Do not expose stub types to Python
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5d63b30a
TT
12019-09-26 Tom Tromey <tromey@adacore.com>
2
3 * python/py-type.c (type_to_type_object): Call check_typedef
4 for stub types.
5
12904d37
TT
62019-09-26 Tom Tromey <tom@tromey.com>
7
8 * utils.h (initialize_utils): Don't declare.
9 * top.c (gdb_init): Don't call initialize_utils.
10 * utils.c (initialize_utils): Remove. Move contents...
11 (_initialize_utils): ... here.
12
858f25f0
TT
132019-09-25 Tom Tromey <tom@tromey.com>
14
15 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
16 * utils.h (make_hex_string): Don't declare.
17 * utils.c (make_hex_string): Remove.
18
3d435220
TV
192019-09-24 Tom de Vries <tdevries@suse.de>
20
21 PR gdb/23815
22 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
23 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
24
ddd44b70
DD
252019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
26
27 * NEWS: Mention new simulator port for PRU.
28
f945dedf
CB
292019-09-23 Christian Biesinger <cbiesinger@google.com>
30
31 * ada-exp.y (write_object_remaining): Update.
32 * ada-lang.c (ada_decode): Return a std::string instead of a char*
33 and eliminate the static buffer.
34 (ada_decode_symbol): Update.
35 (ada_la_decode): Update.
36 (ada_sniff_from_mangled_name): Update.
37 (is_valid_name_for_wild_match): Update.
38 (ada_lookup_name_info::matches): Update and simplify.
39 (name_matches_regex): Update.
40 (ada_add_global_exceptions): Update.
41 * ada-lang.h (ada_decode): Update signature.
42 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
43 * dwarf-index-write.c (debug_names::insert): Update.
44
7ab78ccb
SM
452019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
46
47 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
48 formatting.
49
9252448b
SM
502019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
51
52 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
53 Change "nonzero" to "true" in documentation.
54
626ca2c0
CB
552019-09-20 Christian Biesinger <cbiesinger@google.com>
56
57 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
58 (_initialize_darwin_solib): Don't set
59 darwin_so_ops.lookup_lib_global_symbol.
60 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
61 set_gdbarch_iterate_over_objfiles_in_search_order.
62 (elf_lookup_lib_symbol): Rename to...
63 (svr4_iterate_over_objfiles_in_search_order): this, and update
64 to iterate semantics.
65 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
66 * solib.c (solib_global_lookup): Remove.
67 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
68 (solib_global_lookup): Remove.
69 * symtab.c (lookup_global_or_static_symbol): Remove call to
70 solib_global_lookup.
71
5a3a0d63
JB
722019-09-20 Joel Brobecker <brobecker@adacore.com>
73
74 * NEWS: Move entries about default MI version now being
75 version 3, and about the GDB/MI fix for multi-location
76 breakpoints to the "since GDB 8.3" section.
77
ffea1427
JB
782019-09-20 Joel Brobecker <brobecker@adacore.com>
79
80 GDB 8.3.1 released.
81
abf516c6
UW
822019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
83
84 * NEWS: Mention that Cell/B.E. debugging support was removed.
85 * MAINTAINERS: Remove spu target.
86
87 * config/djgpp/fnchange.lst: Remove entries for removed files.
88
89 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
90 spu-multiarch.o, and spu-tdep.o.
91 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
92 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
93 spu-multiarch.c, and spu-tdep.c.
94 * spu-linux-nat.c: Remove file.
95 * spu-multiarch.c: Remove file.
96 * spu-tdep.c: Remove file.
97 * spu-tdep.h: Remove file.
98 * solib-spu.c: Remove file.
99 * solib-spu.h: Remove file.
100
101 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
102 * configure.nat (spu-linux): Remove.
103 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
104 solib-multiarch.o from gdb_target_obs.
105 (spu*-*-*): Remove.
106
107 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
108 feature flag.
109 (ppc_linux_no_features): Update.
110 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
111 Cell/B.E. support.
112 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
113 (tdesc_powerpc_cell64l): Likewise.
114 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
115 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
116 Cell/B.E. support.
117 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
118 Do not include "features/rs6000/powerpc-cell32l.c" or
119 "features/rs6000/powerpc-cell64l.c".
120 (ppc_linux_spu_section): Remove.
121 (ppc_linux_core_read_description): Remove Cell/B.E. support.
122 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
123 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
124 (ppc_linux_spe_context_lookup): Remove.
125 (ppc_linux_spe_context_inferior_created): Remove.
126 (ppc_linux_spe_context_solib_loaded): Remove.
127 (ppc_linux_spe_context_solib_unloaded): Remove.
128 (ppc_linux_spe_context): Remove.
129 (struct ppu2spu_cache): Remove.
130 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
131 (struct ppu2spu_data): Remove.
132 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
133 ppu2spu_unwind): Remove.
134 (ppc_linux_init_abi): Remove Cell/B.E. support.
135 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
136
137 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
138 (rs6000/powerpc-cell64l-expedite): Likewise
139 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
140 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
141 rs6000/powerpc-cell64l.xml.
142 * features/rs6000/powerpc-cell32l.xml: Remove.
143 * features/rs6000/powerpc-cell64l.xml: Likewise.
144 * features/rs6000/powerpc-cell32l.c: Remove generated file.
145 * features/rs6000/powerpc-cell64l.c: Likewise.
146 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
147 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
148 * regformats/reg-spu.dat: Remove.
149
150 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
151 * corelow.c (struct spuid_list): Remove.
152 (add_to_spuid_list): Remove.
153 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
154 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
155 (remote_protocol_features): Remove associated entries.
156 (_initialize_remote): No longer initialize them.
157 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
158 * linux-nat.c (SPUFS_MAGIC): Remove.
159 (linux_proc_xfer_spu): Remove.
160 (spu_enumerate_spu_ids): Remove.
161 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
162 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
163 (linux_make_corefile_notes): No longer call it.
164
165 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
166 (cooked_write_test): Likewise.
167
78e8cb91
TT
1682019-09-20 Tom Tromey <tom@tromey.com>
169
170 * NEWS: Mention case-sensitivity of TUI commands.
171 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
172 (tui_set_win_height_command, parse_scrolling_args): Likewise.
173 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
174
f074b67e
TT
1752019-09-20 Tom Tromey <tom@tromey.com>
176
177 * tui/tui-source.c (tui_source_window::set_contents): Use
178 make_unique_xstrdup.
179 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
180 make_unique_xstrdup.
181
63c4bf19
TT
1822019-09-20 Tom Tromey <tom@tromey.com>
183
184 * tui/tui-data.c: Remove separator comments.
185 * tui/tui-layout.c: Remove separator comments.
186 * tui/tui-win.c: Remove separator comments.
187 * tui/tui-wingeneral.c: Remove separator comments.
188
43df9b2f
TT
1892019-09-20 Tom Tromey <tom@tromey.com>
190
191 * tui/tui.h (strcat_to_buf): Don't declare.
192 * tui/tui.c (strcat_to_buf): Remove.
193
7226433c
TT
1942019-09-20 Tom Tromey <tom@tromey.com>
195
196 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
197 from "fullname".
198 * tui/tui-source.c (tui_source_window::set_contents)
199 (tui_source_window::location_matches_p)
200 (tui_source_window::maybe_update): Update.
201
80df3337
TT
2022019-09-20 Tom Tromey <tom@tromey.com>
203
204 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
205 Update.
206 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
207 prefix.
208 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
209 (tui_data_window::line_from_reg_element_no)
210 (tui_data_window::first_reg_element_no_inline)
211 (tui_data_window::show_registers)
212 (tui_data_window::show_register_group)
213 (tui_data_window::display_registers_from)
214 (tui_data_window::display_registers_from_line)
215 (tui_data_window::first_data_item_displayed)
216 (tui_data_window::delete_data_content_windows)
217 (tui_data_window::erase_data_content)
218 (tui_data_window::do_scroll_vertical)
219 (tui_data_window::refresh_window)
220 (tui_data_window::check_register_values): Update.
221
9923f347
TT
2222019-09-20 Tom Tromey <tom@tromey.com>
223
224 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
225 (struct tui_locator_window) <full_name, proc_name>: Now
226 std::string.
227 * tui/tui-stack.c (tui_locator_window::make_status_line)
228 (tui_locator_window::set_locator_fullname)
229 (tui_locator_window::set_locator_info): Update.
230 * tui/tui-source.c (tui_source_window::set_contents)
231 (tui_source_window::showing_source_p): Update.
232
b76251ab
TT
2332019-09-20 Tom Tromey <tom@tromey.com>
234
235 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
236 Don't call tui_locator_win_info_ptr.
237
0891be08
TT
2382019-09-20 Tom Tromey <tom@tromey.com>
239
240 * tui/tui-win.c (tui_resize_all): Don't call refresh.
241
1b935acf
TT
2422019-09-20 Tom Tromey <tom@tromey.com>
243
244 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
245 height for locator.
246 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
247 * tui/tui-layout.c (show_source_disasm_command, show_data)
248 (show_source_or_disasm_and_command): Use 1 as height for locator.
249
9abd8a65
TT
2502019-09-20 Tom Tromey <tom@tromey.com>
251
252 * tui/tui.c (tui_enable): Update.
253 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
254 Update.
255 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
256 Update.
257 * tui/tui-data.c (win_resized): Now bool.
258 (tui_win_resized): Return bool.
259 (tui_set_win_resized_to): Accept a bool.
260
b5457826
TT
2612019-09-20 Tom Tromey <tom@tromey.com>
262
263 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
264 Change type of "refresh_values_only".
265 * tui/tui-regs.c (tui_data_window::show_register_group): Change
266 type of "refresh_values_only".
267
6b915f7d
TT
2682019-09-20 Tom Tromey <tom@tromey.com>
269
270 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
271 std::string.
272 (tui_disassemble): Add "pos" parameter.
273 (tui_disasm_window::set_contents): Simplify.
274
2ad52f6f
TT
2752019-09-20 Tom Tromey <tom@tromey.com>
276
277 * tui/tui-winsource.h (struct tui_source_window_base)
278 <show_source_content>: Now private.
279 * tui/tui-winsource.c
280 (tui_source_window_base::show_source_content): Don't handle empty
281 content case.
282
b3b1bde6
TT
2832019-09-20 Tom Tromey <tom@tromey.com>
284
285 * tui/tui-layout.c (show_source_disasm_command)
286 (show_source_or_disasm_and_command): Don't call
287 show_source_content.
288
71a25ed2
TT
2892019-09-20 Tom Tromey <tom@tromey.com>
290
291 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
292 Declare.
293 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
294 from tui_make_status_line.
295 (tui_locator_window::rerender): Update.
296
f8532154
TT
2972019-09-20 Tom Tromey <tom@tromey.com>
298
299 * tui/tui-stack.c (tui_make_status_line): Return std::string.
300 (tui_locator_window::rerender): Update.
301
2d81b349
TT
3022019-09-20 Tom Tromey <tom@tromey.com>
303
304 * tui/tui-winsource.h (struct tui_source_window_base)
305 <~tui_source_window_base>: Don't declare.
306 <fullname>: Remove.
307 * tui/tui-winsource.c (~tui_source_window_base): Remove.
308 * tui/tui-source.h (struct tui_source_window) <fullname>: New
309 member.
310 * tui/tui-source.c (tui_source_window::set_contents): Update.
311 (tui_source_window::location_matches_p)
312 (tui_source_window::maybe_update): Update.
313
f14bec58
TT
3142019-09-20 Tom Tromey <tom@tromey.com>
315
316 * tui/tui-winsource.h (~tui_source_element): Remove.
317 (tui_source_element): Update.
318 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
319 * tui/tui-winsource.c (tui_show_source_line): Update.
320 * tui/tui-source.c (tui_source_window::set_contents): Update.
321 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
322
78d5933a
TT
3232019-09-20 Tom Tromey <tom@tromey.com>
324
325 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
326 declare.
327 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
328 tui_clear_source_windows_detail.
329 * tui/tui-winsource.h (struct tui_source_window_base)
330 <clear_detail>: Don't declare.
331 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
332 Remove.
333 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
334
d4207696
TT
3352019-09-20 Tom Tromey <tromey@adacore.com>
336
337 PR ada/24919:
338 * block.c (contained_in): Fix final return value.
339
00f93c44
AM
3402019-09-20 Alan Modra <amodra@gmail.com>
341
342 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
343 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
344 (read_indirect_string_from_dwz): Use bfd accessor.
345 * dwarf2read.h (struct dwz_file <filename>): Likewise.
346 * machoread.c (macho_symfile_read_all_oso): Likewise.
347 * solib.c (solib_bfd_open): Likewise.
348
e4153ae6
CB
3492019-09-19 Christian Biesinger <cbiesinger@google.com>
350
351 * eval.c: Move declaration of overload_resolution to...
352 * value.h: ...here.
353
c7ae7675
CB
3542019-09-19 Christian Biesinger <cbiesinger@google.com>
355
356 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
357 * arm-linux-tdep.c: Likewise.
358 * arm-nbsd-nat.c: Likewise.
359 * arm-tdep.h: Declare arm_apcs_32.
360 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
361
e86f08d2
CB
3622019-09-19 Christian Biesinger <cbiesinger@google.com>
363
364 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
365 * dwarf2read.h: Declare dwarf_always_disassemble.
366
f64e2f40
TV
3672019-09-19 Tom de Vries <tdevries@suse.de>
368
369 PR gdb/25009
370 * source-cache.c (source_cache::ensure): Catch exception thrown during
371 construction of the highlighter.
372
fd361982
AM
3732019-09-18 Alan Modra <amodra@gmail.com>
374
375 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
376 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
377 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
378 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
379 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
380 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
381 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
382 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
383 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
384 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
385 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
386 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
387 * solib-spu.c, * solib-svr4.c, * solib-target.c,
388 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
389 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
390 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
391 * mi/mi-interp.c: Update throughout for bfd section macro and
392 function changes.
393 * gcore (gcore_create_callback): Use bfd_set_section_lma.
394 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
395
11061048
TT
3962019-09-18 Tom Tromey <tom@tromey.com>
397
398 * NEWS: Add entry.
399 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
400 call rl_initialize.
401 (tui_enable): Do not call rl_initialize.
402
7a27b85f
CG
4032019-09-18 Christian Groessler <chris@groessler.org>
404
405 * alpha-linux-nat.c: Include gdbarch.h.
406
f64eea3a
SM
4072019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
408
409 * ui-file.c: Include cli/cli-style.h.
410 (term_cli_styling): Remove cli_styling declaration.
411
e6f7f6d1
AM
4122019-09-18 Alan Modra <amodra@gmail.com>
413
414 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
415 to bfd_asymbol_section.
416
1d38e9d1
AM
4172019-09-18 Alan Modra <amodra@gmail.com>
418
419 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
420 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
421 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
422
90d92a63
AM
4232019-09-18 Alan Modra <amodra@gmail.com>
424
425 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
426 * spu-linux-nat.c (spu_bfd_open): Likewise.
427
a3d181d2
CB
4282019-09-18 Christian Biesinger <cbiesinger@google.com>
429
430 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
431 to bool to match definition in dwarf2read.c.
432
491144b5
CB
4332019-09-17 Christian Biesinger <cbiesinger@google.com>
434
435 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
436 (print_signatures): Likewise.
437 (trust_pad_over_xvs): Likewise.
438 * arch/aarch64-insn.c (aarch64_debug): Likewise.
439 * arch/aarch64-insn.h (aarch64_debug): Likewise.
440 * arm-linux-nat.c (arm_apcs_32): Likewise.
441 * arm-linux-tdep.c (arm_apcs_32): Likewise.
442 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
443 * arm-tdep.c (arm_debug): Likewise.
444 (arm_apcs_32): Likewise.
445 * auto-load.c (debug_auto_load): Likewise.
446 (auto_load_gdb_scripts): Likewise.
447 (global_auto_load): Likewise.
448 (auto_load_local_gdbinit): Likewise.
449 (auto_load_local_gdbinit_loaded): Likewise.
450 * auto-load.h (global_auto_load): Likewise.
451 (auto_load_local_gdbinit): Likewise.
452 (auto_load_local_gdbinit_loaded): Likewise.
453 * breakpoint.c (disconnected_dprintf): Likewise.
454 (breakpoint_proceeded): Likewise.
455 (automatic_hardware_breakpoints): Likewise.
456 (always_inserted_mode): Likewise.
457 (target_exact_watchpoints): Likewise.
458 (_initialize_breakpoint): Update.
459 * breakpoint.h (target_exact_watchpoints): Change to bool.
460 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
461 * cli/cli-cmds.c (trace_commands): Likewise.
462 * cli/cli-cmds.h (trace_commands): Likewise.
463 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
464 to bool*.
465 * cli/cli-logging.c (logging_overwrite): Change to bool.
466 (logging_redirect): Likewise.
467 (debug_redirect): Likewise.
468 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
469 (struct boolean_option_def) <get_var_address_cb_>: Change return type
470 to bool.
471 <boolean_option_def>: Update.
472 (struct flag_option_def): Change default type of Context to bool
473 from int.
474 <flag_option_def>: Change return type of var_address_cb_ to bool*.
475 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
476 (get_setshow_command_value_string): Likewise.
477 * cli/cli-style.c (cli_styling): Change to bool.
478 (source_styling): Likewise.
479 * cli/cli-style.h (source_styling): Likewise.
480 (cli_styling): Likewise.
481 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
482 to bool.
483 * command.h (var_types): Update comment.
484 (add_setshow_boolean_cmd): Change int* var argument to bool*.
485 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
486 bool.
487 (debug_compile_cplus_scopes): Likewise.
488 * compile/compile-internal.h (compile_debug): Likewise.
489 * compile/compile.c (compile_debug): Likewise.
490 (struct compile_options) <raw>: Likewise.
491 * cp-support.c (catch_demangler_crashes): Likewise.
492 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
493 (usr_cmd_cris_dwarf2_cfi): Likewise.
494 * csky-tdep.c (csky_debug): Likewise.
495 * darwin-nat.c (enable_mach_exceptions): Likewise.
496 * dcache.c (dcache_enabled_p): Likewise.
497 * defs.h (info_verbose): Likewise.
498 * demangle.c (demangle): Likewise.
499 (asm_demangle): Likewise.
500 * dwarf-index-cache.c (debug_index_cache): Likewise.
501 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
502 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
503 * dwarf2read.c (check_physname): Likewise.
504 (use_deprecated_index_sections): Likewise.
505 (dwarf_always_disassemble): Likewise.
506 * eval.c (overload_resolution): Likewise.
507 * event-top.c (set_editing_cmd_var): Likewise.
508 (exec_done_display_p): Likewise.
509 * event-top.h (set_editing_cmd_var): Likewise.
510 (exec_done_display_p): Likewise.
511 * exec.c (write_files): Likewise.
512 * fbsd-nat.c (debug_fbsd_lwp): Likewise
513 (debug_fbsd_nat): Likewise.
514 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
515 Likewise.
516 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
517 <backtrace_past_entry> Likewise.
518 * gdb-demangle.h (demangle): Likewise.
519 (asm_demangle): Likewise.
520 * gdb_bfd.c (bfd_sharing): Likewise.
521 * gdbcore.h (write_files): Likewise.
522 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
523 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
524 * gdbthread.h (print_thread_events): Likewise.
525 * gdbtypes.c (opaque_type_resolution): Likewise.
526 (strict_type_checking): Likewise.
527 * gnu-nat.c (gnu_debug_flag): Likewise.
528 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
529 * guile/scm-param.c (pascm_variable): Add boolval.
530 (add_setshow_generic): Update.
531 (pascm_param_value): Update.
532 (pascm_set_param_value_x): Update.
533 * hppa-tdep.c (hppa_debug): Change to bool..
534 * infcall.c (may_call_functions_p): Likewise.
535 (coerce_float_to_double_p): Likewise.
536 (unwind_on_signal_p): Likewise.
537 (unwind_on_terminating_exception_p): Likewise.
538 * infcmd.c (startup_with_shell): Likewise.
539 * inferior.c (print_inferior_events): Likewise.
540 * inferior.h (startup_with_shell): Likewise.
541 (print_inferior_events): Likewise.
542 * infrun.c (step_stop_if_no_debug): Likewise.
543 (detach_fork): Likewise.
544 (debug_displaced): Likewise.
545 (disable_randomization): Likewise.
546 (non_stop): Likewise.
547 (non_stop_1): Likewise.
548 (observer_mode): Likewise.
549 (observer_mode_1): Likewise.
550 (set_observer_mode): Update.
551 (sched_multi): Change to bool.
552 * infrun.h (debug_displaced): Likewise.
553 (sched_multi): Likewise.
554 (step_stop_if_no_debug): Likewise.
555 (non_stop): Likewise.
556 (disable_randomization): Likewise.
557 * linux-tdep.c (use_coredump_filter): Likewise.
558 (dump_excluded_mappings): Likewise.
559 * linux-thread-db.c (auto_load_thread_db): Likewise.
560 (check_thread_db_on_load): Likewise.
561 * main.c (captured_main_1): Update.
562 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
563 xx2_opt, boolean_opt>: Change to bool.
564 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
565 * maint.c (maintenance_profile_p): Likewise.
566 (per_command_time): Likewise.
567 (per_command_space): Likewise.
568 (per_command_symtab): Likewise.
569 * memattr.c (inaccessible_by_default): Likewise.
570 * mi/mi-main.c (mi_async): Likewise.
571 (mi_async_1): Likewise.
572 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
573 * nat/fork-inferior.h (startup_with_shell): Likewise.
574 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
575 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
576 * nios2-tdep.c (nios2_debug): Likewise.
577 * or1k-tdep.c (or1k_debug): Likewise.
578 * parse.c (parser_debug): Likewise.
579 * parser-defs.h (parser_debug): Likewise.
580 * printcmd.c (print_symbol_filename): Likewise.
581 * proc-api.c (procfs_trace): Likewise.
582 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
583 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
584 (set_parameter_value): Update.
585 (add_setshow_generic): Update.
586 * python/py-value.c (copy_py_bool_obj): Change argument from int*
587 to bool*.
588 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
589 int*.
590 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
591 * record-btrace.c (record_btrace_target::store_registers): Update.
592 * record-full.c (record_full_memory_query): Change to bool.
593 (record_full_stop_at_limit): Likewise.
594 * record-full.h (record_full_memory_query): Likewise.
595 * remote-notif.c (notif_debug): Likewise.
596 * remote-notif.h (notif_debug): Likewise.
597 * remote.c (use_range_stepping): Likewise.
598 (interrupt_on_connect): Likewise.
599 (remote_break): Likewise.
600 * ser-tcp.c (tcp_auto_retry): Likewise.
601 * ser-unix.c (serial_hwflow): Likewise.
602 * skip.c (debug_skip): Likewise.
603 * solib-aix.c (solib_aix_debug): Likewise.
604 * spu-tdep.c (spu_stop_on_load_p): Likewise.
605 (spu_auto_flush_cache_p): Likewise.
606 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
607 Likewise.
608 (struct info_print_options) <quiet>: Likewise.
609 * symfile-debug.c (debug_symfile): Likewise.
610 * symfile.c (auto_solib_add): Likewise.
611 (separate_debug_file_debug): Likewise.
612 * symfile.h (auto_solib_add): Likewise.
613 (separate_debug_file_debug): Likewise.
614 * symtab.c (basenames_may_differ): Likewise.
615 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
616 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
617 (struct info_types_options) <quiet>: Likewise.
618 * symtab.h (demangle): Likewise.
619 (basenames_may_differ): Likewise.
620 * target-dcache.c (stack_cache_enabled_1): Likewise.
621 (code_cache_enabled_1): Likewise.
622 * target.c (trust_readonly): Likewise.
623 (may_write_registers): Likewise.
624 (may_write_memory): Likewise.
625 (may_insert_breakpoints): Likewise.
626 (may_insert_tracepoints): Likewise.
627 (may_insert_fast_tracepoints): Likewise.
628 (may_stop): Likewise.
629 (auto_connect_native_target): Likewise.
630 (target_stop_and_wait): Update.
631 (target_async_permitted): Change to bool.
632 (target_async_permitted_1): Likewise.
633 (may_write_registers_1): Likewise.
634 (may_write_memory_1): Likewise.
635 (may_insert_breakpoints_1): Likewise.
636 (may_insert_tracepoints_1): Likewise.
637 (may_insert_fast_tracepoints_1): Likewise.
638 (may_stop_1): Likewise.
639 * target.h (target_async_permitted): Likewise.
640 (may_write_registers): Likewise.
641 (may_write_memory): Likewise.
642 (may_insert_breakpoints): Likewise.
643 (may_insert_tracepoints): Likewise.
644 (may_insert_fast_tracepoints): Likewise.
645 (may_stop): Likewise.
646 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
647 (make_thread_apply_all_options_def_group): Change argument from int*
648 to bool*.
649 (thread_apply_all_command): Update.
650 (print_thread_events): Change to bool.
651 * top.c (confirm): Likewise.
652 (command_editing_p): Likewise.
653 (history_expansion_p): Likewise.
654 (write_history_p): Likewise.
655 (info_verbose): Likewise.
656 * top.h (confirm): Likewise.
657 (history_expansion_p): Likewise.
658 * tracepoint.c (disconnected_tracing): Likewise.
659 (circular_trace_buffer): Likewise.
660 * typeprint.c (print_methods): Likewise.
661 (print_typedefs): Likewise.
662 * utils.c (debug_timestamp): Likewise.
663 (sevenbit_strings): Likewise.
664 (pagination_enabled): Likewise.
665 * utils.h (sevenbit_strings): Likewise.
666 (pagination_enabled): Likewise.
667 * valops.c (overload_resolution): Likewise.
668 * valprint.h (struct value_print_options) <prettyformat_arrays,
669 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
670 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
671 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
672 Likewise.
673 * windows-nat.c (new_console): Likewise.
674 (cygwin_exceptions): Likewise.
675 (new_group): Likewise.
676 (debug_exec): Likewise.
677 (debug_events): Likewise.
678 (debug_memory): Likewise.
679 (debug_exceptions): Likewise.
680 (useshell): Likewise.
681 * windows-tdep.c (maint_display_all_tib): Likewise.
682 * xml-support.c (debug_xml): Likewise.
683
f1b620e9
MG
6842019-09-17 Mike Gulick <mgulick@mathworks.com>
685
686 * source.c (prepare_path_for_appending): New function.
687 (openp): Make use of new function.
688 (find_and_open_source): Search for the compilation directory and
689 source file as a relative path beneath the directory search path.
690
67f3ed6a
AB
6912019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
692
693 * source-cache.c (source_cache::get_line_charpos): Catch
694 exceptions and return false, this matches the behaviour documented
695 in the header file.
696
74332189
JB
6972019-09-17 Joel Brobecker <brobecker@adacore.com>
698
699 * ada-tasks.c (info_task): Remove quoting of the task's name.
700
f2f24aa9
CB
7012019-09-16 Christian Biesinger <cbiesinger@google.com>
702
703 * symfile.c (auto_solib_add): Replace comment with a reference
704 to the header file.
705
6a062a93
CB
7062019-09-14 Christian Biesinger <cbiesinger@google.com>
707
708 * NEWS: Mention that gdb can now be compiled with Python 3
709 on Windows.
710
ec6c8338
AB
7112019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
712
713 * maint.c (maint_print_section_data::maint_print_section_data):
714 Force use of 'float log10 (float)' by casting the argument to
715 float.
716
aa17805f
AB
7172019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
718
719 * maint.c: Add 'cmath' include.
720 (struct maint_print_section_data): New structure.
721 (print_section_index): New function.
722 (print_bfd_section_info): Add header comment, small whitespace
723 cleanup, and update to call new print_section_index function.
724 (print_objfile_section_info): Likewise.
725 (maint_obj_section_from_bfd_section): New function.
726 (print_bfd_section_info_maybe_relocated): New function.
727 (maintenance_info_sections): Add header comment, always use
728 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
729
3dd9bb46
AB
7302019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
731
732 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
733 inner scope, add check that the objfile has psymtabs before
734 checking psymtabs_addrmap.
735 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
736
4993045d
PW
7372019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
738
739 * NEWS: Announce that Ada task names are now shown at more places,
740 and between quotes (except in info task output).
741 * gdb/ada-tasks.c (task_to_str): New function.
742 (display_current_task_id): Call task_to_str.
743 (task_command_1): Likewise.
744 (print_ada_task_info): In non-mi mode, Properly align headers and data
745 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
746
7a289707
RO
7472019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
748
749 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
750 prstatus.pr_lwp.pr_info instead of making it up.
751
f2aec7f6
CB
7522019-09-11 Christian Biesinger <cbiesinger@google.com>
753
754 * auto-load.c (auto_load_expand_dir_vars): Update.
755 * defs.h (gdb_datadir): Change to std::string.
756 (python_libdir): Likewise.
757 (relocate_gdb_directory): Change return type to std::string.
758 * guile/guile.c (gdbscm_data_directory): Update.
759 (initialize_scheme_side): Update.
760 * jit.c (jit_reader_dir): Change to std::string.
761 (jit_reader_load_command): Update.
762 * main.c (gdb_datadir): Change to std::string.
763 (python_libdir): Likewise.
764 (set_gdb_data_directory): Update.
765 (relocate_path): Change to return std::string.
766 (relocate_gdb_directory): Change to return std::string.
767 (relocate_gdbinit_path_maybe_in_datadir): Update.
768 (captured_main_1): Update.
769 * python/python.c (do_start_initialization): Update.
770 * top.c (show_gdb_datadir): Update.
771 * xml-syscall.c (xml_init_syscalls_info): Update.
772 (init_syscalls_info): Update.
773
9224a013
CB
7742019-09-11 Christian Biesinger <cbiesinger@google.com>
775
776 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
777 out of get_init_files.
778 (get_init_files): Update.
779
f48cd836
CB
7802019-09-11 Christian Biesinger <cbiesinger@google.com>
781
782 * main.c (get_init_files): Change to use std::string.
783 (captured_main_1): Update.
784 (print_gdb_help): Update.
785
9cab7ecd
AT
7862019-09-11 Ali Tamur <tamur@google.com>
787
788 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
789 implementation.
790
67547d89
CB
7912019-09-11 Christian Biesinger <cbiesinger@google.com>
792
793 * dbxread.c (read_dbx_symtab): Update.
794 * dwarf2read.c (load_partial_dies): Update.
795 * mdebugread.c (parse_partial_symbols): Update.
796 (handle_psymbol_enumerators): Update.
797 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
798 * psymtab.c (add_psymbol_to_bcache): Likewise.
799 (add_psymbol_to_list): Likewise.
800 * symtab.c (symbol_set_names): Likewise.
801 * symtab.h (symbol_set_names): Likewise.
802 * xcoffread.c (scan_xcoff_symtab): Update.
803
64b2d4a0
TT
8042019-09-11 Tom Tromey <tom@tromey.com>
805
806 * symfile-mem.c (symbol_file_add_from_memory): Use
807 bfd_set_filename.
808 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
809 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
810
3b00ef10
TT
8112019-09-10 Tom Tromey <tromey@adacore.com>
812
813 * dwarf-index-write.c (write_psymbols): Extend error message.
814 (debug_names::insert): Add Ada code.
815 (debug_names::write_psymbols): Remove Ada check.
816 (debug_names) <m_string_obstack>: New member.
817 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
818 (gdb_index_symbol_name_matcher::matches): Remove.
819 (mapped_index_base::find_name_components_bounds): Add "lang"
820 parameter.
821 (mapped_index_base::build_name_components): Also split names
822 according to Ada syntax.
823 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
824 type of "match_callback".
825 (check_match, check_find_bounds_finds)
826 (dw2_expand_symtabs_matching): Update.
827 (dw2_debug_names_iterator): Add new constructor.
828 (dw2_debug_names_map_matching_symbols): New function.
829 (dw2_debug_names_expand_symtabs_matching): Update.
830 (dwarf2_debug_names_functions): Use
831 dw2_debug_names_map_matching_symbols.
832
aa391654
TT
8332019-09-10 Tom Tromey <tromey@adacore.com>
834
835 * dwarf2read.c (dw2_get_file_names_reader): Add the
836 CU's file name to the results.
837
b054970d
TT
8382019-09-10 Tom Tromey <tromey@adacore.com>
839
840 * ada-lang.c (add_nonlocal_symbols): Combine calls to
841 map_matching_symbols. Update.
842 * dwarf2read.c (dw2_map_matching_symbols): Update.
843 * psymtab.c (match_partial_symbol): Change type; update.
844 (psym_map_matching_symbols): Likewise.
845 * symfile-debug.c (debug_qf_map_matching_symbols): Change
846 type; update.
847 * symfile.h (struct quick_symbol_functions)
848 <map_matching_symbols>: Change "name" to be a lookup_name_info.
849 Remove "match".
850
6a3dbf1b
TT
8512019-09-10 Tom Tromey <tromey@adacore.com>
852
853 * psymtab.c (map_block): Remove.
854 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
855 * symtab.c (iterate_over_symbols_terminated): New function.
856 * symtab.c (iterate_over_symbols_terminated): Declare.
857
6969f124
TT
8582019-09-10 Tom Tromey <tromey@adacore.com>
859
860 * ada-lang.c (ada_iterate_over_symbols): Return bool.
861 * language.h (struct language_defn) <la_iterate_over_symbols>:
862 Return bool.
863 * symtab.c (iterate_over_symbols): Return bool.
864 * symtab.h (iterate_over_symbols): Return bool.
865
199b4314
TT
8662019-09-10 Tom Tromey <tromey@adacore.com>
867
868 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
869 (add_nonlocal_symbols): Update.
870 * dwarf2read.c (dw2_map_matching_symbols): Change type.
871 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
872 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
873 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
874 Change type of "callback". Remove "data".
875
a084a2a6
AT
876
8772019-09-09 Ali Tamur <tamur@google.com>
878
879 * dwarf2read.c (comp_unit_head): Update comment.
880 (dwarf2_dwo_name): New function declaration.
881 (dwarf_unit_type_name): New function declaration.
882 (read_comp_unit_head): Add support for new compilation units,
883 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
884 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
885 (currently named as "signature") in their header. Also clarify error
886 messages.
887 (lookup_dwo_id): New function. Returns the dwo id of the given
888 compile unit.
889 (lookup_dwo_unit): Use the new lookup_dwo_id function.
890 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
891 functions.
892 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
893 (dwarf2_dwo_name): Get the dwo name if present.
894 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
895 purposes.
896
25a2915e
TT
8972019-09-09 Tom Tromey <tom@tromey.com>
898
899 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
900
e4df0874
PW
9012019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
902
903 * python/python.c (do_start_initialization): Make progname_copy static,
904 to avoid a leak report.
905
8634b462
TT
9062019-09-08 Tom Tromey <tom@tromey.com>
907
908 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
909
c7f839cb
SM
9102019-09-07 Simon Marchi <simon.marchi@efficios.com>
911
912 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
913 Change type to gdb::optional<block_enum>.
914 (dw2_symtab_iter_init): Change block_index parameter type
915 to gdb::optional<block_enum>.
916 (dw2_lookup_symbol): Change block_index parameter
917 type to block_enum.c
918 (dw2_debug_names_lookup_symbol): Likewise.
919 * psymtab.c (psym_lookup_symbol): Likewise.
920 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
921 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
922 Likewise.
923
ead0e69a
CB
9242019-09-06 Christian Biesinger <cbiesinger@google.com>
925
926 * defs.h (relocate_gdb_directory): Change int to bool in
927 signature and rename flag to relocatable.
928 * main.c (relocate_path): Likewise.
929 (relocate_gdb_directory): Likewise.
930
b16c44de
AM
9312019-09-06 Alan Modra <amodra@gmail.com>
932
933 * coffread.c (coff_symfile_read): Constify filename variable.
934 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
935 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
936 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
937 * solib.c (reload_shared_libraries_1): Likewise.
938 * symfile.c (reread_symbols): Likewise.
939 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
940 * solib-darwin.c (darwin_bfd_open): Likewise.
941 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
942
06ff036e
AB
9432019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
944
945 * psymtab.c (print_partial_symbols): Handle missing domain_enum
946 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
947
4e962e74
TT
9482019-09-03 Tom Tromey <tromey@adacore.com>
949
950 * ada-valprint.c (ada_val_print_num): Don't recurse for range
951 types.
952 (has_negatives): Unbias a range type bound.
953 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
954 * gdbtypes.c (operator==): Handle new field.
955 (create_range_type): Add "bias" parameter.
956 (create_static_range_type, resolve_dynamic_range): Update.
957 * gdbtypes.h (struct range_bounds) <bias>: New member.
958 (create_range_type): Add bias parameter.
959 * printcmd.c (print_scalar_formatted): Unbias range types.
960 * value.c (unpack_long): Unbias range types.
961 (pack_long): Bias range types.
962
d90b8f26
AH
9632019-09-02 Alan Hayward <alan.hayward@arm.com>
964
965 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
966 probe arguments.
967
fe01123e
AH
9682019-09-02 Alan Hayward <alan.hayward@arm.com>
969
970 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
971 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
972 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
973 (compile_probe_arg): Likewise.
974 * probe.h (get_argument_count): Likewise.
975 * solib-svr4.c (solib_event_probe_action): Likewise.
976 * stap-probe.c (stap_probe::get_argument_count): Likewise.
977
e661ef01
AH
9782019-09-02 Alan Hayward <alan.hayward@arm.com>
979
980 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
981 code to here...
982 (svr4_create_solib_event_breakpoints): ...from here.
983
47a536d9
SDJ
9842019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
985
986 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
987 suffix from warning message.
988
d6a00eba
TT
9892019-08-30 Tom Tromey <tom@tromey.com>
990
991 * tui/tui-winsource.h (struct tui_source_window_base)
992 <refresh_all>: Don't declare.
993 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
994 Remove.
995 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
996 tui_show_locator_content.
997 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
998 declare.
999 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
1000 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
1001 declare.
1002
55b2657b
TT
10032019-08-30 Tom Tromey <tom@tromey.com>
1004
1005 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
1006
12a8555a
TT
10072019-08-30 Tom Tromey <tom@tromey.com>
1008
1009 * tui/tui-stack.c (_initialize_tui_stack): Move later.
1010 Remove unnecessary forward declarations.
1011
900ac242
TT
10122019-08-30 Tom Tromey <tom@tromey.com>
1013
1014 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
1015 rerender.
1016 (tui_update_locator_fullname, tui_show_frame_info): Don't call
1017 tui_show_locator_content.
1018
99ab33fb
TT
10192019-08-30 Tom Tromey <tom@tromey.com>
1020
1021 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
1022 (tui_locator_window::rerender): Rewrite using body of previous
1023 tui_show_locator_content.
1024
e594a5d1
TT
10252019-08-30 Tom Tromey <tom@tromey.com>
1026
1027 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
1028 set_locator_fullname>: New methods.
1029 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1030 Rename from tui_set_locator_fullname.
1031 (tui_locator_window::set_locator_info): Rename from
1032 tui_set_locator_info. Return bool.
1033 (tui_update_locator_fullname, tui_show_frame_info): Update.
1034
715bb467
TT
10352019-08-30 Tom Tromey <tom@tromey.com>
1036
1037 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
1038
772f3f03
TT
10392019-08-30 Tom Tromey <tom@tromey.com>
1040
1041 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
1042 call touchwin.
1043
108e13ab
TT
10442019-08-30 Tom Tromey <tom@tromey.com>
1045
1046 * tui/tui-wingeneral.c (box_win): Assume win_info and
1047 win_info->handle cannot be NULL.
1048
cdaa6eb4
TT
10492019-08-30 Tom Tromey <tom@tromey.com>
1050
1051 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
1052 refresh_window>: Declare.
1053 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
1054 resize.
1055 (tui_data_item_window::rerender): Rename from
1056 tui_display_register.
1057 (tui_data_item_window::refresh_window): New method.
1058 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
1059 no-op.
1060
89df7f90
TT
10612019-08-30 Tom Tromey <tom@tromey.com>
1062
1063 * tui/tui-regs.h (struct tui_data_window) <regs_content,
1064 regs_column_count, current_group>: Move later. Now private.
1065 <get_current_group>: New method.
1066 * tui/tui-regs.c (tui_reg_command): Update.
1067 * tui/tui-layout.c (tui_set_layout): Update.
1068
1bf2866a
TT
10692019-08-30 Tom Tromey <tom@tromey.com>
1070
1071 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1072 (tui_data_window::rerender): Don't call
1073 check_and_display_highlight_if_needed.
1074 (tui_data_window::refresh_all): Remove call to
1075 erase_data_content.
1076
0670413d
TT
10772019-08-30 Tom Tromey <tom@tromey.com>
1078
1079 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1080 (tui_data_window::display_registers_from)
1081 (tui_data_window::display_reg_element_at_line)
1082 (tui_data_window::display_registers_from_line): Remove checks of
1083 "empty".
1084
18bb55c7
TT
10852019-08-30 Tom Tromey <tom@tromey.com>
1086
1087 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
1088 Don't declare.
1089 * tui/tui-regs.c (tui_data_window::show_registers): Call
1090 rerender.
1091 (tui_data_window::rerender): Rename from display_all_data.
1092 (tui_data_window::rerender): Remove old implementation.
1093
1f6d2f10
TT
10942019-08-30 Tom Tromey <tom@tromey.com>
1095
1096 * tui/tui-regs.c (tui_data_window::display_all_data): Change
1097 text.
1098 * tui/tui-data.h (NO_DATA_STRING): Remove define.
1099
16d01f9c
BW
11002019-08-29 Bernhard Wodok <barto@gmx.net>
1101 Sergio Durigan Junior <sergiodj@redhat.com>
1102
1103 PR win32/24284
1104 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
1105
d8f27c60
AB
11062019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1107
1108 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
1109 when searching for types.
1110
1f20c35e
AB
11112019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1112
1113 * f-lang.c (f_language_defn): Use f_print_typedef.
1114 * f-lang.h (f_print_typedef): Declare.
1115 * f-typeprint.c (f_print_typedef): Define.
1116
550105b7
CB
11172019-08-27 Christian Biesinger <cbiesinger@google.com>
1118
1119 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
1120
4acfdd20
AB
11212019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
1122
1123 * cli/cli-utils.c (info_print_options_defs): Delete.
1124 (make_info_print_options_def_group): Delete.
1125 (extract_info_print_options): Delete.
1126 (info_print_command_completer): Delete.
1127 (info_print_args_help): Add extra parameter, and optionally
1128 include text about -n flag.
1129 * cli/cli-utils.h (struct info_print_options): Delete.
1130 (extract_info_print_options): Delete declaration.
1131 (info_print_command_completer): Delete declaration.
1132 (info_print_args_help): Add extra parameter, extend header
1133 comment.
1134 * python/python.c (gdbpy_rbreak): Pass additional parameter to
1135 search_symbols.
1136 * stack.c (struct info_print_options): New type.
1137 (info_print_options_defs): New file scoped variable.
1138 (make_info_print_options_def_group): New static function.
1139 (info_print_command_completer): New static function.
1140 (info_locals_command): Update to use new local functions.
1141 (info_args_command): Likewise.
1142 (_initialize_stack): Add extra parameter to calls to
1143 info_print_args_help.
1144 * symtab.c (search_symbols): Add extra parameter, use this to
1145 possibly excluse non-debug symbols.
1146 (symtab_symbol_info): Add extra parameter, which is passed on to
1147 search_symbols.
1148 (struct info_print_options): New type.
1149 (info_print_options_defs): New file scoped variable.
1150 (make_info_print_options_def_group): New static function.
1151 (info_print_command_completer): New static function.
1152 (info_variables_command): Update to use local functions, and pass
1153 extra parameter through to symtab_symbol_info.
1154 (info_functions_command): Likewise.
1155 (info_types_command): Pass additional argument through to
1156 symtab_symbol_info.
1157 (rbreak_command): Pass extra argument to search_symbols.
1158 (_initialize_symtab): Add extra arguments for calls to
1159 info_print_args_help, and update help text for 'info variables',
1160 'whereis', and 'info functions' commands.
1161 * symtab.h (search_symbols): Add extra argument to declaration.
1162 * NEWS: Mention new flags.
1163
9aa55206
CB
11642019-08-26 Christian Biesinger <cbiesinger@google.com>
1165
1166 * symtab.c (lookup_static_symbol): Call the new function (and move
1167 it down to be next to lookup_global_symbol).
1168 (struct global_sym_lookup_data): Add block_enum member and rename to...
1169 (struct global_or_static_sym_lookup_data): ...this.
1170 (lookup_symbol_global_iterator_cb): Pass block_index instead of
1171 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
1172 (lookup_symbol_global_or_static_iterator_cb): ...this.
1173 (lookup_global_or_static_symbol): New function.
1174 (lookup_global_symbol): Call new function.
1175
5c31b358
TV
11762019-08-26 Tom de Vries <tdevries@suse.de>
1177
1178 PR c++/24852
1179 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
1180 when pc_probe.prob == NULL.
1181
23c13d42
SM
11822019-08-25 Simon Marchi <simon.marchi@efficios.com>
1183
1184 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
1185 variable symbol_linkage to symbol_linkage_.
1186
beadd3e8
SM
11872019-08-25 Simon Marchi <simon.marchi@efficios.com>
1188
1189 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
1190 represent whether the symbol is static, dynamic, or we don't
1191 know.
1192
e3ec872f
YS
11932019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
1194
1195 * gdb/rx-tdep.c (rx_register_names): New.
1196 (rx_register_name): Delete.
1197 (rx_psw_type): Delete.
1198 (rx_fpsw_type): Delete.
1199 (rx_register_type): Delete.
1200 (rx_gdbarch_init): Convert target-descriptions.
1201 (_initialize_rx_tdep): Add initialize_tdesc_rx.
1202 * gdb/features/Makefile: Add rx.xml.
1203 * gdb/features/rx.xml: New.
1204 * gdb/features/rx.c: Generated.
1205 * gdb/NEWS: Mention target description support.
1206
d0509ba4
CB
12072019-08-22 Christian Biesinger <cbiesinger@google.com>
1208
1209 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
1210 *slot_ptr.
1211
2d41fa11
SDJ
12122019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1213
1214 * configure.ac: Don't check for 'dlfcn.h' (moved to
1215 gdbsupport/common.m4).
1216 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
1217 'gdbsupport/'.
1218 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
1219 * compile/compile-c-support.c: Include
1220 'gdbsupport/gdb-dlfcn.h'.
1221 * gdbsupport/common.m4: Check for 'dlfcn.h'.
1222 * gdb-dlfcn.c: Move to...
1223 * gdbsupport/gdb-dlfcn.c: ... here.
1224 * gdb-dlfcn.h: Move to...
1225 * gdbsupport/gdb-dlfcn.h: ... here.
1226
de8af808
SL
12272019-08-23 Sandra Loosemore <sandra@codesourcery.com>
1228
1229 * nios2-tdep.c (struct reg_value): Improve comments. Make
1230 the offset field signed.
1231
27204489
CB
12322019-08-22 Christian Biesinger <cbiesinger@google.com>
1233
1234 * python/lib/gdb/__init__.py (_execute_file): New function.
1235 * python/python.c (python_run_simple_file): Call gdb._execute_file
1236 on Windows.
1237
43771869
AB
12382019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
1239
1240 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
1241 all uses as this was never set to anything but a zero value.
1242
26c957f1
PA
12432019-08-21 Bogdan Harjoc <harjoc@gmail.com>
1244
1245 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
1246
c07aae6e
CB
12472019-08-21 Christian Biesinger <cbiesinger@google.com>
1248
1249 * tui/tui-data.h (tui_gen_win_info): Add an =default
1250 move constructor, required by some GCC versions.
1251
3960cb7a
JF
12522019-08-21 Jinke Fan <fanjinke51@yeah.net>
1253
1254 * go32-nat.c (go32_sysinfo): Add hygon_p.
1255
04c72a68
TT
12562019-08-20 Tom Tromey <tom@tromey.com>
1257
1258 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
1259 line_from_reg_element_no, first_reg_element_no_inline,
1260 display_all_data, delete_data_content_windows,
1261 erase_data_content>: Now private.
1262
072272ce
TT
12632019-08-20 Tom Tromey <tom@tromey.com>
1264
1265 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
1266 (tui_unhighlight_win, tui_highlight_win)
1267 (tui_win_info::make_window): Update.
1268 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
1269
973961bd
TT
12702019-08-20 Tom Tromey <tom@tromey.com>
1271
1272 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1273 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1274 (MAX_PID_WIDTH): Move to tui-stack.c.
1275 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1276 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1277 (MAX_PID_WIDTH): Move from tui-data.h.
1278
ab0e1f1a
TT
12792019-08-20 Tom Tromey <tom@tromey.com>
1280
1281 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
1282 * tui/tui-wingeneral.c (box_win): Change type of win_info.
1283 (box_win): Update.
1284 (tui_gen_win_info::make_window): Rename from tui_make_window.
1285 (tui_win_info::make_window): New method.
1286 (tui_gen_win_info::make_visible): Update.
1287 * tui/tui-source.c (tui_source_window::set_contents): Update.
1288 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1289 (tui_data_window::display_registers_from): Update.
1290 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1291 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
1292 Declare.
1293 <can_box>: Remove.
1294 <title>: Remove.
1295 (struct tui_win_info) <make_window>: Declare.
1296 <can_box>: Now virtual.
1297 <title>: New member.
1298 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
1299 * tui/tui-command.c (tui_cmd_window::resize): Update.
1300
100c2bf3
TT
13012019-08-20 Tom Tromey <tom@tromey.com>
1302
1303 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
1304 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1305 (tui_data_window::check_register_values): Update.
1306
fa4dc567
TT
13072019-08-20 Tom Tromey <tom@tromey.com>
1308
1309 * tui/tui-regs.h (struct tui_data_window): Use
1310 DISABLE_COPY_AND_ASSIGN.
1311 <regs_content>: Change type, removing unique_ptr.
1312 <tui_data_window>: Add move constructor.
1313 * tui/tui-regs.c (tui_data_window::show_registers)
1314 (tui_data_window::show_register_group)
1315 (tui_data_window::display_registers_from)
1316 (tui_data_window::display_registers_from)
1317 (tui_data_window::first_data_item_displayed)
1318 (tui_data_window::delete_data_content_windows)
1319 (tui_data_window::rerender, tui_data_window::refresh_window)
1320 (tui_data_window::check_register_values): Update.
1321
ca02d7c8
TT
13222019-08-20 Tom Tromey <tom@tromey.com>
1323
1324 * tui/tui-regs.h (struct tui_data_window) <show_registers,
1325 show_register_group>: Declare.
1326 (tui_show_register_group): Don't declare.
1327 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
1328 tui_show_registers.
1329 (tui_data_window::show_register_group): Rename from
1330 tui_show_register_group.
1331 (tui_data_window::check_register_values, tui_reg_command):
1332 Update.
1333 * tui/tui-layout.c (tui_set_layout): Update.
1334
63356bfd
TT
13352019-08-20 Tom Tromey <tom@tromey.com>
1336
1337 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
1338 Declare.
1339 (tui_check_register_values): Don't declare.
1340 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
1341 from tui_check_register_values.
1342 * tui/tui-hooks.c (tui_register_changed): Update.
1343
42cc14a7
TT
13442019-08-20 Tom Tromey <tom@tromey.com>
1345
1346 * tui/tui-regs.c (tui_reg_layout): Move later.
1347 (tui_show_registers): Don't enable TUI mode or change layout.
1348
b9ad3686
TT
13492019-08-20 Tom Tromey <tom@tromey.com>
1350
1351 * tui/tui-regs.h (struct tui_data_item_window)
1352 <~tui_data_item_window>: Remove.
1353 <content>: Now a unique_xmalloc_ptr.
1354 * tui/tui-regs.c (tui_register_format): Return a
1355 unique_xmalloc_ptr.
1356 (tui_get_register): Update.
1357 (~tui_data_item_window): Remove.
1358 (tui_data_window::display_registers_from, tui_display_register):
1359 Update.
1360 * tui/tui-io.h (tui_expand_tabs): Update.
1361 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
1362 Remove "col" parameter.
1363
8e114aab
TT
13642019-08-20 Tom Tromey <tom@tromey.com>
1365
1366 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
1367 field.
1368 * tui/tui-regs.c (~tui_data_item_window): Update.
1369
1a4f81dd
TT
13702019-08-20 Tom Tromey <tom@tromey.com>
1371
1372 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
1373 earlier.
1374
0f8d8876
TT
13752019-08-20 Tom Tromey <tom@tromey.com>
1376
1377 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
1378
605dc2c2
TT
13792019-08-20 Tom Tromey <tom@tromey.com>
1380
1381 * tui/tui-source.h (struct tui_source_window): Update.
1382 * tui/tui-regs.c (tui_show_registers): Update.
1383 * tui/tui-disasm.h (struct tui_disasm_window): Update.
1384 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
1385 (NO_REGS_STRING): Remove defines.
1386
aedbe3bb
CM
13872019-08-20 Conrad Meyer <cem@FreeBSD.org>
1388
1389 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
1390 unnecessary thread walk if remote doesn't support the packet.
1391
7ce8f214
TT
13922019-08-19 Tom Tromey <tromey@adacore.com>
1393
1394 * python/py-value.c (value_has_field): Fix indentation.
1395
f21c2bd7
TT
13962019-08-19 Tom Tromey <tromey@adacore.com>
1397
1398 * printcmd.c (do_one_display, info_display_command): Update.
1399 * block.h (contained_in): Return bool. Add allow_nested
1400 parameter.
1401 * block.c (contained_in): Return bool. Add allow_nested
1402 parameter.
1403
d806ea2d
TT
14042019-08-19 Tom Tromey <tom@tromey.com>
1405
1406 * configure: Rebuild.
1407 * configure.ac: Disallow the combination of -static-libstdc++ and
1408 source highlight.
1409 * source-cache.c (get_language_name): Handle rust.
1410 (source_cache::get_source_lines): Ignore highlighting exceptions.
1411
398fdd60
TT
14122019-08-16 Tom Tromey <tom@tromey.com>
1413
1414 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
1415 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
1416 (struct tui_source_window_base) <make_visible, refresh_window,
1417 resize>: Remove methods.
1418 <execution_info>: Remove field.
1419 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
1420 (tui_show_source_line, tui_source_window_base)
1421 (~tui_source_window_base): Update.
1422 (tui_source_window_base::resize)
1423 (tui_source_window_base::make_visible)
1424 (tui_source_window_base::refresh_window): Remove.
1425 (tui_source_window_base::update_exec_info): Update.
1426 * tui/tui-source.c (tui_source_window::set_contents): Update.
1427 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1428
e699d331
TT
14292019-08-16 Tom Tromey <tom@tromey.com>
1430
1431 * tui/tui-hooks.c (tui_remove_hooks): Don't set
1432 deprecated_query_hook.
1433
bb01dbfc
TT
14342019-08-16 Tom Tromey <tom@tromey.com>
1435
1436 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
1437 (tui_update_source_windows_with_line): Update.
1438 * tui/tui-source.h (struct tui_source_window)
1439 <show_symtab_source>: Declare.
1440 (tui_show_symtab_source): Don't declare.
1441 * tui/tui-source.c (tui_show_symtab_source): Rename from
1442 tui_show_symtab_source.
1443
81c82c4b
TT
14442019-08-16 Tom Tromey <tom@tromey.com>
1445
1446 * tui/tui-winsource.h (struct tui_source_window_base)
1447 <set_contents>: Declare.
1448 * tui/tui-winsource.c
1449 (tui_source_window_base::update_source_window_as_is): Update.
1450 * tui/tui-source.h (struct tui_source_window) <set_contents>:
1451 Declare.
1452 (tui_set_source_content): Don't declare.
1453 * tui/tui-source.c (tui_source_window::set_contents): Rename from
1454 tui_set_source_content.
1455 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
1456 Declare.
1457 (tui_set_disassem_content): Don't declare.
1458 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
1459 tui_set_disassem_content.
1460
2ddaf614
TT
14612019-08-16 Tom Tromey <tom@tromey.com>
1462
1463 * tui/tui-winsource.h (struct tui_source_window_base)
1464 <update_breakpoint_info>: Declare.
1465 (tui_update_breakpoint_info): Don't declare.
1466 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
1467 (tui_update_all_breakpoint_info): Update.
1468 (tui_source_window_base::update_breakpoint_info): Rename from
1469 tui_update_breakpoint_info.
1470 (tui_source_window_base::update_exec_info): Update.
1471
017f9828
TT
14722019-08-16 Tom Tromey <tom@tromey.com>
1473
1474 * tui/tui-winsource.h (struct tui_source_window_base)
1475 <update_source_window>: Declare.
1476 (tui_update_source_window): Don't declare.
1477 * tui/tui-winsource.c
1478 (tui_source_window_base::update_source_window): Rename from
1479 tui_update_source_window.
1480 (tui_source_window_base::rerender): Update.
1481 * tui/tui-source.c (tui_source_window::maybe_update): Update.
1482 * tui/tui-disasm.c (tui_show_disassem)
1483 (tui_show_disassem_and_update_source)
1484 (tui_disasm_window::maybe_update): Update.
1485
ed8358e9
TT
14862019-08-16 Tom Tromey <tom@tromey.com>
1487
1488 * tui/tui-winsource.h (struct tui_source_window_base)
1489 <update_source_window_as_is>: Declare.
1490 (tui_update_source_window_as_is): Don't declare.
1491 * tui/tui-winsource.c (tui_update_source_window): Update
1492 (tui_source_window_base::update_source_window_as_is): Rename from
1493 tui_update_source_window_as_is.
1494 (tui_source_window_base::refill): Update.
1495 * tui/tui-source.c (tui_show_symtab_source): Update.
1496 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
1497 Update.
1498
20149b6b
TT
14992019-08-16 Tom Tromey <tom@tromey.com>
1500
1501 * tui/tui-winsource.h (tui_update_source_window)
1502 (tui_update_source_window_as_is): Remove "noerror" parameter.
1503 * tui/tui-winsource.c (tui_update_source_window)
1504 (tui_update_source_window_as_is): Remove "noerror" parameter.
1505 (tui_update_source_windows_with_addr)
1506 (tui_update_source_windows_with_line)
1507 (tui_source_window_base::rerender)
1508 (tui_source_window_base::refill): Update.
1509 * tui/tui-source.h (tui_set_source_content)
1510 (tui_show_symtab_source): Remove "noerror" parameter.
1511 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
1512 parameter.
1513 (tui_show_symtab_source): Likewise.
1514 (tui_source_window::maybe_update): Update.
1515 * tui/tui-disasm.c (tui_show_disassem)
1516 (tui_show_disassem_and_update_source)
1517 (tui_disasm_window::do_scroll_vertical)
1518 (tui_disasm_window::maybe_update): Update.
1519
2d83e710
TT
15202019-08-16 Tom Tromey <tom@tromey.com>
1521
1522 * tui/tui.c (tui_is_window_visible): Update.
1523 * tui/tui-wingeneral.c (tui_make_window)
1524 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
1525 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
1526 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
1527 (tui_set_win_height_command, parse_scrolling_args): Update.
1528 * tui/tui-source.c (tui_source_window::style_changed): Update.
1529 * tui/tui-regs.c (tui_show_registers)
1530 (tui_data_window::first_data_item_displayed)
1531 (tui_data_window::delete_data_content_windows)
1532 (tui_check_register_values, tui_reg_command): Update.
1533 * tui/tui-disasm.c (tui_show_disassem): Update.
1534 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
1535 method.
1536 <is_visible>: Remove field.
1537 * tui/tui-data.c (tui_next_win, tui_prev_win)
1538 (tui_delete_invisible_windows): Update.
1539
d4ab829a
TT
15402019-08-16 Tom Tromey <tom@tromey.com>
1541
1542 * tui/tui-winsource.h (struct tui_source_window_base)
1543 <m_has_locator>: Remove.
1544 * tui/tui-layout.c (show_source_disasm_command, show_data)
1545 (show_source_or_disasm_and_command): Update.
1546
aa7ca1bb
AH
15472019-08-16 Alan Hayward <alan.hayward@arm.com>
1548
1549 * NEWS (Other MI changes): New subsection.
1550 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
1551 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
1552 * arch-utils.c (default_get_pc_address_flags): New function.
1553 * arch-utils.h (default_get_pc_address_flags): New declaration.
1554 * gdbarch.sh: Add get_pc_address_flags.
1555 * gdbarch.c: Regenerate.
1556 * gdbarch.h: Likewise.
1557 * stack.c (print_pc): New function.
1558 (print_frame_info) (print_frame): Call print_pc.
1559
6eac171f
TV
15602019-08-16 Tom de Vries <tdevries@suse.de>
1561
1562 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
1563 print_objfile_section_info.
1564
3df505f6
TT
15652019-08-15 Tom Tromey <tom@tromey.com>
1566
1567 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
1568 calling update_cmdwin_start_line.
1569 * tui/tui-winsource.h (struct tui_source_window_base)
1570 <do_make_visible_with_new_height, set_new_height>: Don't declare.
1571 <rerender>: Declare.
1572 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
1573 Call rerender.
1574 (tui_source_window_base::set_new_height): Remove.
1575 (tui_source_window_base::rerender): Rename from
1576 do_make_visible_with_new_height.
1577 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
1578 resize method.
1579 (tui_win_info::make_invisible_and_set_new_height)
1580 (tui_win_info::make_visible_with_new_height): Remove.
1581 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
1582 Declare.
1583 * tui/tui-stack.c (tui_locator_window::rerender): New method.
1584 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
1585 do_make_visible_with_new_height>: Don't declare.
1586 <rerender>: Declare.
1587 * tui/tui-regs.c (tui_data_window::rerender): Rename from
1588 set_new_height.
1589 (tui_data_window::do_make_visible_with_new_height): Remove.
1590 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
1591 call tui_show_locator_content.
1592 (tui_gen_win_info::resize): Call rerender.
1593 (show_source_or_disasm_and_command): Don't call
1594 tui_show_locator_content.
1595 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
1596 method.
1597 (struct tui_win_info) <rerender>: Declare.
1598 <set_new_height, make_invisible_and_set_new_height,
1599 make_visible_with_new_height>: Don't declare.
1600 * tui/tui-data.c (tui_win_list::rerender): New method.
1601 * tui/tui-command.h (struct tui_cmd_window)
1602 <do_make_visible_with_new_height>: Don't declare.
1603 * tui/tui-command.c
1604 (tui_cmd_window::do_make_visible_with_new_height): Remove.
1605
272560b5
TT
16062019-08-15 Tom Tromey <tromey@adacore.com>
1607
1608 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
1609 * ada-lang.c (ada_enum_name): Likewise.
1610
08235187
CB
16112019-08-15 Christian Biesinger <cbiesinger@google.com>
1612
1613 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
1614 leading underscore.
1615 (GdbOutputErrorFile): Likewise.
1616 (global scope): Adjust constructor calls to GdbOutput{,Error}File
1617 accordingly.
1618 (execute_unwinders): Rename to have a leading underscore.
1619 (auto_load_packages): Likewise.
1620 (global scope): Adjust call to auto_load_packages accordingly.
1621 (GdbSetPythonDirectory): Likewise.
1622 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
1623 instead of execute_unwinders.
1624
db502012
TT
16252019-08-15 Tom Tromey <tom@tromey.com>
1626
1627 * tui/tui-layout.c (show_layout, show_source_disasm_command)
1628 (show_data): Don't change window visibility.
1629 (tui_gen_win_info::resize): Remove special case for command
1630 window. Use wresize, when available.
1631 (show_source_or_disasm_and_command): Don't change window
1632 visibility.
1633 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
1634 <make_visible>: New method.
1635 * tui/tui-command.c (tui_cmd_window::resize): New method.
1636
3891b65e
TT
16372019-08-15 Tom Tromey <tom@tromey.com>
1638
1639 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
1640 (struct tui_source_windows): New.
1641 * tui/tui-winsource.c (tui_display_main): Update.
1642 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
1643 (new_height_ok, parse_scrolling_args): Update.
1644 * tui/tui-layout.c (show_layout, show_data): Update.
1645 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
1646 (tui_add_to_source_windows): Don't declare.
1647 * tui/tui-data.c (source_windows, tui_source_windows)
1648 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
1649
ee556432
TT
16502019-08-15 Tom Tromey <tom@tromey.com>
1651
1652 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
1653 Rename from reset.
1654 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
1655 * tui/tui-layout.c (show_source_disasm_command, show_data):
1656 Update.
1657 (tui_gen_win_info::resize): Rename.
1658 (show_source_or_disasm_and_command): Update.
1659 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
1660 reset.
1661
46f438e3
TT
16622019-08-15 Tom Tromey <tom@tromey.com>
1663
1664 * tui/tui-stack.c (tui_initialize_static_data): Remove.
1665 * tui/tui-interp.c (tui_interp::init): Don't call
1666 tui_initialize_static_data.
1667 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
1668
f4ce562c
TT
16692019-08-15 Tom Tromey <tom@tromey.com>
1670
1671 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
1672 examine tui_win_list.
1673
c398c3d0
TT
16742019-08-15 Tom Tromey <tom@tromey.com>
1675
1676 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
1677 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
1678 tui_clear_source_content.
1679 (tui_clear_source_content): Remove.
1680 (tui_source_window_base::do_erase_source_content): Hoist call to
1681 content.clear().
1682 * tui/tui-stack.c (tui_show_frame_info): Don't call
1683 tui_clear_source_content.
1684
e25d2004
TT
16852019-08-15 Tom Tromey <tom@tromey.com>
1686
1687 * tui/tui-winsource.h (struct tui_source_window_base)
1688 <do_erase_source_content>: New method.
1689 <erase_source_content>: New method.
1690 (tui_erase_source_content): Don't declare.
1691 * tui/tui-winsource.c (tui_clear_source_content): Update.
1692 (tui_source_window_base::do_erase_source_content): Rename from
1693 tui_erase_source_content.
1694 (tui_source_window_base::show_source_content): Update.
1695 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1696 * tui/tui-source.h (struct tui_source_window)
1697 <erase_source_content>: New method.
1698 * tui/tui-disasm.h (struct tui_disasm_window)
1699 <erase_source_content>: New method.
1700
002f15c2
TT
17012019-08-15 Tom Tromey <tom@tromey.com>
1702
1703 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
1704 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
1705 constructor.
1706 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
1707 * tui/tui-source.c (tui_set_source_content): Update.
1708 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1709
c9033fe8
TT
17102019-08-15 Tom Tromey <tom@tromey.com>
1711
1712 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
1713 * tui/tui-winsource.c (tui_line_is_displayed): Move to
1714 tui-source.c.
1715 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
1716 Declare.
1717 * tui/tui-source.c (tui_source_window::line_is_displayed): New
1718 method.
1719 (tui_source_window::maybe_update): Update.
1720
088f37dd
TT
17212019-08-15 Tom Tromey <tom@tromey.com>
1722
1723 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
1724 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
1725 tui-disasm.c.
1726 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
1727 Declare.
1728 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
1729 method.
1730 (tui_disasm_window::maybe_update): Update.
1731
a54700c6
TT
17322019-08-15 Tom Tromey <tom@tromey.com>
1733
1734 * tui/tui-winsource.h (struct tui_source_window_base)
1735 <maybe_update>: Declare.
1736 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
1737 method.
1738 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
1739 Declare.
1740 * tui/tui-source.c (tui_source_window::maybe_update): New method.
1741 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
1742 Declare.
1743 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
1744
e2a678a5
TT
17452019-08-15 Tom Tromey <tom@tromey.com>
1746
1747 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
1748
f2dda477
TT
17492019-08-15 Tom Tromey <tom@tromey.com>
1750
1751 * tui/tui-wingeneral.c: Include tui-stack.h.
1752 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
1753 (struct tui_locator_window): Move from tui-data.h.
1754 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
1755 (tui_initialize_static_data): Move from tui-data.c.
1756 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
1757 (struct tui_locator_window): Move to tui-stack.c.
1758 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
1759 (tui_initialize_static_data): Move to tui-stack.c.
1760
ed4a1084
TT
17612019-08-15 Tom Tromey <tom@tromey.com>
1762
1763 * tui/tui-layout.c (show_source_disasm_command)
1764 (show_source_or_disasm_and_command): Use make_visible method, not
1765 tui_make_window.
1766 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
1767 Remove.
1768
65962b20
TT
17692019-08-15 Tom Tromey <tom@tromey.com>
1770
1771 * tui/tui-wingeneral.h (tui_make_window): Update.
1772 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
1773 parameter.
1774 (tui_gen_win_info::make_visible): Update.
1775 * tui/tui-regs.c (tui_data_window::display_registers_from):
1776 Update.
1777 * tui/tui-layout.c (show_source_disasm_command)
1778 (show_source_or_disasm_and_command): Update.
1779 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
1780 (enum tui_box): Remove.
1781 (struct tui_win_info) <can_box>: New method.
1782 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
1783 method.
1784
2208ee91
TV
17852019-08-15 Tom de Vries <tdevries@suse.de>
1786
1787 * linux-nat-trad.c: Include gdbarch.h.
1788
75faf5c4
AH
17892019-08-14 Alan Hayward <alan.hayward@arm.com>
1790
1791 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
1792 register sizes.
1793
b1c896b3
TT
17942019-08-14 Tom Tromey <tromey@adacore.com>
1795
1796 * darwin-nat.c: Include gdbarch.h.
1797 * darwin-nat-info.c: Include gdbarch.h.
1798
6405cd73
TT
17992019-08-13 Tom Tromey <tom@tromey.com>
1800
1801 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
1802 Remove.
1803 * tui/tui-data.c (tui_initialize_static_data): Update.
1804
5216580d
TT
18052019-08-13 Tom Tromey <tom@tromey.com>
1806
1807 * tui/tui-winsource.h (struct tui_exec_info_window)
1808 <~tui_exec_info_window, maybe_allocate_content, get_content,
1809 m_content>: Remove.
1810 (struct tui_source_window_base) <set_exec_info_content,
1811 show_exec_info_content>: Don't declare.
1812 * tui/tui-winsource.c
1813 (tui_exec_info_window::maybe_allocate_content): Remove.
1814 (tui_source_window_base::update_exec_info): Rename from
1815 set_exec_info_content.
1816 (tui_source_window_base::show_exec_info_content)
1817 (tui_source_window_base::update_exec_info): Remove.
1818
93858ad3
TT
18192019-08-13 Tom Tromey <tom@tromey.com>
1820
1821 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
1822 declare.
1823 * tui/tui-winsource.c (tui_update_source_window_as_is)
1824 (tui_update_source_windows_with_addr, tui_erase_source_content):
1825 Update.
1826 (tui_clear_exec_info_content): Remove.
1827
e321e7ce
TT
18282019-08-13 Tom Tromey <tom@tromey.com>
1829
1830 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
1831 declare.
1832 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
1833 call tui_erase_exec_info_content.
1834 (tui_clear_exec_info_content): Rename from
1835 tui_erase_exec_info_content.
1836 (tui_clear_exec_info_content): Delete.
1837
8270ac62
TT
18382019-08-13 Tom Tromey <tom@tromey.com>
1839
1840 * tui/tui-winsource.h (struct tui_source_window_base)
1841 <show_exec_info_content>: Declare.
1842 (tui_show_exec_info_content): Don't declare.
1843 * tui/tui-winsource.c
1844 (tui_source_window_base::show_exec_info_content): Rename from
1845 tui_show_exec_info_content.
1846 (tui_source_window_base::update_exec_info): Update.
1847
7b56485d
TT
18482019-08-13 Tom Tromey <tom@tromey.com>
1849
1850 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
1851 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
1852 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
1853 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
1854 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
1855 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
1856 ... here.
1857
7ba913dc
TT
18582019-08-13 Tom Tromey <tom@tromey.com>
1859
1860 * tui/tui-winsource.h (struct tui_source_window_base)
1861 <update_exec_info>: Declare.
1862 (tui_update_exec_info): Don't declare.
1863 * tui/tui-winsource.c (tui_update_source_window_as_is)
1864 (tui_source_window_base::refresh_all)
1865 (tui_update_all_breakpoint_info): Update.
1866 (tui_source_window_base::update_exec_info): Rename from
1867 tui_update_exec_info.
1868 * tui/tui-stack.c (tui_show_frame_info): Update.
1869
37a4a131
TT
18702019-08-13 Tom Tromey <tom@tromey.com>
1871
1872 * tui/tui-winsource.h (struct tui_source_window_base)
1873 <set_exec_info_content>: Declare.
1874 (tui_set_exec_info_content): Don't declare.
1875 * tui/tui-winsource.c
1876 (tui_source_window_base::set_exec_info_content): Rename from
1877 tui_set_exec_info_content.
1878 (tui_update_exec_info): Update.
1879
0bd27e07
TT
18802019-08-13 Tom Tromey <tom@tromey.com>
1881
1882 * tui/tui-winsource.h (struct tui_source_window_base)
1883 <show_source_content>: Declare.
1884 (tui_show_source_content): Don't declare.
1885 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1886 (tui_source_window_base::show_source_content): Rename from
1887 tui_show_source_content.
1888 (tui_source_window_base::refresh_all): Update.
1889 * tui/tui-layout.c (show_source_disasm_command)
1890 (show_source_or_disasm_and_command): Update.
1891
b4ef5aeb
TT
18922019-08-13 Tom Tromey <tom@tromey.com>
1893
1894 * tui/tui-winsource.c (tui_erase_source_content)
1895 (tui_show_source_content, tui_source_window_base::refresh_all):
1896 Update.
1897 * tui/tui-wingeneral.h
1898 (tui_check_and_display_highlight_if_needed): Don't declare.
1899 * tui/tui-wingeneral.c
1900 (tui_win_info::check_and_display_highlight_if_needed): Rename from
1901 check_and_display_highlight_if_needed.
1902 * tui/tui-win.c (tui_rehighlight_all)
1903 (tui_win_info::make_visible_with_new_height): Update.
1904 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1905 (tui_data_window::erase_data_content)
1906 (tui_data_window::display_all_data): Update.
1907 * tui/tui-data.h (struct tui_win_info)
1908 <check_and_display_highlight_if_needed>: Declare.
1909
fede5273
TT
19102019-08-13 Tom Tromey <tom@tromey.com>
1911
1912 * tui/tui-win.c (tui_resize_all): Call
1913 tui_delete_invisible_windows.
1914 * tui/tui-layout.c (show_layout): Call
1915 tui_delete_invisible_windows.
1916 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
1917 * tui/tui-data.c (tui_delete_invisible_windows): New function.
1918
22c3f490
TT
19192019-08-13 Tom Tromey <tom@tromey.com>
1920
1921 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
1922 tui_add_win_to_layout.
1923
16cb7910
TT
19242019-08-13 Tom Tromey <tom@tromey.com>
1925
1926 * tui/tui-layout.h (tui_default_win_height): Don't declare.
1927 * tui/tui-layout.c (tui_default_win_height): Now static.
1928
cc0c3ffb
TT
19292019-08-13 Tom Tromey <tom@tromey.com>
1930
1931 * tui/tui-layout.c (show_layout): Unify all layout cases into a
1932 single switch.
1933 (show_source_disasm_command, show_source_or_disasm_and_command):
1934 Don't check current layout.
1935
3f3ffe54
TT
19362019-08-13 Tom Tromey <tom@tromey.com>
1937
1938 * tui/tui-wingeneral.c (make_all_visible): Remove.
1939 (tui_make_all_invisible): Simplify.
1940 * tui/tui-layout.c (tui_make_all_invisible): Move from
1941 tui-wingeneral.c; simplify.
1942 (show_layout): Hoist call to tui_make_all_invisible.
1943 (show_data): Don't call tui_make_all_invisible.
1944
69258091
TT
19452019-08-13 Tom Tromey <tom@tromey.com>
1946
1947 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
1948 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
1949
62cf57fe
TT
19502019-08-13 Tom Tromey <tom@tromey.com>
1951
1952 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
1953 tui-data.c.
1954 (show_source_disasm_command, show_data)
1955 (show_source_or_disasm_and_command): Don't use
1956 tui_set_current_layout_to.
1957 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
1958 * tui/tui-data.c (current_layout, tui_current_layout): Move to
1959 tui-layout.c.
1960 (tui_set_current_layout_to): Remove.
1961
2afade5d
TT
19622019-08-13 Tom Tromey <tom@tromey.com>
1963
1964 * tui/tui-layout.c (tui_set_layout): Update.
1965 * tui/tui-data.h (struct tui_layout_def): Remove.
1966 (tui_layout_def): Don't declare.
1967 * tui/tui-data.c (layout_def): Remove.
1968 (tui_layout_def): Remove.
1969
a3504e96
TT
19702019-08-13 Tom Tromey <tom@tromey.com>
1971
1972 * tui/tui-winsource.h (struct tui_source_window_base)
1973 <clear_detail>: No longer "override".
1974 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
1975 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
1976 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
1977 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
1978 Remove.
1979 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
1980
29c92911
TT
19812019-08-13 Tom Tromey <tromey@adacore.com>
1982
1983 * tracepoint.c: Don't include readline.h or history.h.
1984
86c6b807
TT
19852019-08-12 Tom Tromey <tom@tromey.com>
1986
1987 * configure: Rebuild.
1988 * configure.ac: Check for readline 7.
1989 * NEWS: Mention readline 7 requirement.
1990 * README: Update.
1991
5db2718c
TT
19922019-08-12 Tom Tromey <tom@tromey.com>
1993
1994 * mingw-hdep.c (gdb_select): Remove readline hack.
1995
dac36daf
PFC
19962019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1997
1998 * blockframe.c (find_pc_partial_function): Set *block to nullptr
1999 when the function fails.
2000
1022c627
AA
20012019-08-09 Andreas Arnez <arnez@linux.ibm.com>
2002
2003 * s390-tdep.c (s390_type_align): New function.
2004 (s390_gdbarch_init): Set it as type_align gdbarch method.
2005
eba4caf2
TV
20062019-08-09 Tom de Vries <tdevries@suse.de>
2007
2008 PR gdb/24591
2009 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
2010 pc_low with relocation offset.
2011
123cd851
TT
20122019-08-07 Tom Tromey <tromey@adacore.com>
2013
2014 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2015 (print_frame_args): Update.
2016 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
2017 Update.
2018 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2019 * frame.h (struct frame_arg): Add initializers.
2020 <error>: Now a unique_xmalloc_ptr.
2021
3d31bc39
AH
20222019-08-07 Alan Hayward <alan.hayward@arm.com>
2023
2024 * NEWS: Expand the Pointer Authentication entry.
2025 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
2026 (aarch64_frame_unmask_lr): ... to this.
2027 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
2028 Call aarch64_frame_unmask_lr.
2029 * frame.c (struct frame_info): Add "masked" variable.
2030 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
2031 (fprint_frame): Check for masked pc.
2032 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
2033 declarations.
2034 * python/py-framefilter.c (py_print_frame): Check for masked pc.
2035 * stack.c (print_frame): Check for masked pc.
2036
0cf9feb9
TT
20372019-08-06 Tom Tromey <tom@tromey.com>
2038
2039 * stabsread.c (patch_block_stabs, read_one_struct_field)
2040 (read_enum_type): Use obstack_strndup.
2041 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
2042 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
2043 * dwarf2read.c (guess_full_die_structure_name)
2044 (anonymous_struct_prefix): Use obstack_strndup.
2045 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
2046 * c-exp.y (yylex): Use obstack_strndup.
2047 * ada-exp.y (write_object_renaming, write_ambiguous_var)
2048 (write_var_or_type): Use obstack_strndup.
2049
efba19b0
TT
20502019-08-06 Tom Tromey <tom@tromey.com>
2051
2052 * symfile.c (reread_symbols): Use obstack_strdup.
2053 * stabsread.c (read_type): Use obstack_strdup.
2054 * gdb_obstack.h (obstack_strdup): New overload.
2055 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
2056 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
2057 (dwarf2_canonicalize_name): Use obstack_strdup.
2058 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
2059 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
2060 Use obstack_strdup.
2061
f25102f7
TT
20622019-08-06 Tom Tromey <tom@tromey.com>
2063
2064 * gdb_obstack.h (obstack_strdup): Define.
2065 * gdb_obstack.c (obstack_strdup): Don't define.
2066
021887d8
TT
20672019-08-06 Tom Tromey <tom@tromey.com>
2068
2069 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
2070 obstack_strdup.
2071 * typeprint.c (typedef_hash_table::find_global_typedef): Use
2072 obstack_strdup.
2073 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
2074 * stabsread.c (common_block_start): Use obstack_strdup.
2075 * objfiles.c (set_objfile_main_name, objfile): Use
2076 obstack_strdup.
2077 * namespace.c (add_using_directive): Use obstack_strdup.
2078 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
2079 * jit.c (finalize_symtab): Use obstack_strdup.
2080 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
2081 (guess_partial_die_structure_name, partial_die_info::fixup)
2082 (dwarf2_name): Use obstack_strdup.
2083 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
2084 obstack_strdup.
2085 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
2086 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
2087 obstack_strdup.
2088 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
2089
d2834edc
PW
20902019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2091
2092 * unittests/help-doc-selftests.c: New file.
2093 * Makefile.in: Add the new file.
2094
590042fc
PW
20952019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2096
2097 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
2098 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
2099 the full first line, except when FOR_VALUE_PREFIX. In this case,
2100 the trailing '.' is not output, and the first character is uppercased.
2101 (print_help_for_command): Update call to print_doc_line.
2102 (print_doc_of_command): Likewise.
2103 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
2104 * cli/cli-option.c (append_indented_doc): Do not append newline.
2105 (build_help_option): Append newline after first appended_indented_doc
2106 only if a second call is done.
2107 (build_help): Append 2 new lines before each option, except the first
2108 one.
2109 * compile/compile.c (_initialize_compile): Add new lines after
2110 %OPTIONS%, when not at the end of the help.
2111 Change help doc or code
2112 producing the help doc to respect the invariants.
2113 * maint-test-options.c (_initialize_maint_test_options): Likewise.
2114 Also removed the new line after 'Options:', as all other commands
2115 do not put an empty line between 'Options:' and the first option.
2116 * printcmd.c (_initialize_printcmd): Likewise.
2117 * stack.c (_initialize_stack): Likewise.
2118 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
2119 incorrectly telling COMMAND is optional.
2120 * ada-lang.c (_initialize_ada_language): Change help doc or code
2121 producing the help doc to respect the invariants.
2122 * ada-tasks.c (_initialize_ada_tasks): Likewise.
2123 * breakpoint.c (_initialize_breakpoint): Likewise.
2124 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
2125 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
2126 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
2127 * cli/cli-style.c (cli_style_option::add_setshow_commands,
2128 _initialize_cli_style): Likewise.
2129 * corelow.c (core_target_info): Likewise.
2130 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
2131 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
2132 * filesystem.c (_initialize_filesystem): Likewise.
2133 * frame.c (_initialize_frame): Likewise.
2134 * gnu-nat.c (add_task_commands): Likewise.
2135 * infcall.c (_initialize_infcall): Likewise.
2136 * infcmd.c (_initialize_infcmd): Likewise.
2137 * interps.c (_initialize_interpreter): Likewise.
2138 * language.c (_initialize_language): Likewise.
2139 * linux-fork.c (_initialize_linux_fork): Likewise.
2140 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
2141 * maint.c (_initialize_maint_cmds): Likewise.
2142 * memattr.c (_initialize_mem): Likewise.
2143 * printcmd.c (_initialize_printcmd): Likewise.
2144 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
2145 _RegEx): Likewise.
2146 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
2147 * record-btrace.c (_initialize_record_btrace): Likewise.
2148 * record-full.c (_initialize_record_full): Likewise.
2149 * record.c (_initialize_record): Likewise.
2150 * regcache-dump.c (_initialize_regcache_dump): Likewise.
2151 * regcache.c (_initialize_regcache): Likewise.
2152 * remote.c (add_packet_config_cmd, init_remote_threadtests,
2153 _initialize_remote): Likewise.
2154 * ser-tcp.c (_initialize_ser_tcp): Likewise.
2155 * serial.c (_initialize_serial): Likewise.
2156 * skip.c (_initialize_step_skip): Likewise.
2157 * source.c (_initialize_source): Likewise.
2158 * stack.c (_initialize_stack): Likewise.
2159 * symfile.c (_initialize_symfile): Likewise.
2160 * symtab.c (_initialize_symtab): Likewise.
2161 * target-descriptions.c (_initialize_target_descriptions): Likewise.
2162 * top.c (init_main): Likewise.
2163 * tracefile-tfile.c (tfile_target_info): Likewise.
2164 * tracepoint.c (_initialize_tracepoint): Likewise.
2165 * tui/tui-win.c (_initialize_tui_win): Likewise.
2166 * utils.c (add_internal_problem_command): Likewise.
2167 * valprint.c (value_print_option_defs): Likewise.
2168
404f2902
FCE
21692019-08-06 Frank Ch. Eigler <fche@redhat.com>
2170
2171 PR build/24886
2172 * configure.ac: Drop enable-libmcheck support.
2173 * configure, config.in: Rebuild.
2174 * libmcheck.m4: Remove.
2175 * acinclude.m4: Don't include it.
2176 * Makefile.in: Don't distribute it.
2177 * top.c (print_gdb_configuration): Don't mention it.
2178
046bebe1
TT
21792019-08-06 Tom Tromey <tom@tromey.com>
2180
2181 * utils.c (set_output_style): Sometimes pass stream to
2182 emit_style_escape.
2183 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
2184 * record-btrace.c (btrace_insn_history): Update.
2185 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
2186 method.
2187 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
2188 Update initializers.
2189 <m_uiout>: New field.
2190 <m_di>: Move lower.
2191 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2192 Remove "uiout" parameter.
2193 (dump_insns): Update.
2194 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
2195 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
2196
ddbcedf5
CB
21972019-08-06 Christian Biesinger <cbiesinger@google.com>
2198
2199 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
2200 (error_in_psymtab_expansion): Likewise.
2201 (lookup_symbol_via_quick_fns): Likewise.
2202 (basic_lookup_transparent_type_quick): Likewise.
2203 (basic_lookup_transparent_type_1): Likewise.
2204
b08b16c8
TT
22052019-08-06 Tom Tromey <tromey@adacore.com>
2206
2207 * source.c (last_source_error): Now bool.
2208 (print_source_lines_base): Make "noprint" bool. Only open
2209 source file when last_source_visited changes.
2210
cb44333d
TT
22112019-08-06 Tom Tromey <tromey@adacore.com>
2212
2213 * annotate.c (annotate_source_line): Use g_source_cache.
2214 * source-cache.c (source_cache::get_plain_source_lines): Change
2215 parameters. Populate m_offset_cache.
2216 (source_cache::ensure): New method.
2217 (source_cache::get_line_charpos): New method.
2218 (extract_lines): Move lower. Change parameters.
2219 (source_cache::get_source_lines): Move lower.
2220 * source-cache.h (class source_cache): Update comment.
2221 <get_line_charpos>: New method.
2222 <get_source_lines>: Update comment.
2223 <clear>: Clear m_offset_cache.
2224 <get_plain_source_lines>: Change parameters.
2225 <ensure>: New method
2226 <m_offset_cache>: New member.
2227 * source.c (forget_cached_source_info_for_objfile): Update.
2228 (info_source_command): Use g_source_cache.
2229 (find_source_lines, open_source_file_with_line_charpos): Remove.
2230 (print_source_lines_base, search_command_helper): Use g_source_cache.
2231 * source.h (open_source_file_with_line_charpos): Don't declare.
2232 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
2233 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
2234 Use g_source_cache.
2235
872dceaa
TT
22362019-08-06 Tom Tromey <tromey@adacore.com>
2237
2238 * source-cache.c (source_cache::get_plain_source_lines):
2239 Remove "first_line" and "last_line" parameters.
2240 (source_cache::get_source_lines): Cache plain text.
2241 * source-cache.h (class source_cache)
2242 <get_plain_source_lines>: Update.
2243
269249d9
TT
22442019-08-06 Tom Tromey <tromey@adacore.com>
2245
2246 * source-cache.c (extract_lines): No longer a method.
2247 Changed type of parameter. Include final newline.
2248 (selftests::extract_lines_test): New function.
2249 (_initialize_source_cache): Likewise.
2250 * source-cache.h (class source_cache)
2251 <extract_lines>: Don't declare.
2252
c0e8dcd8
TT
22532019-08-06 Tom Tromey <tromey@adacore.com>
2254
2255 * breakpoint.c (init_breakpoint_sal): Update.
2256 (breakpoint): Update.
2257 * breakpoint.h (struct breakpoint) <filter>: Now a
2258 unique_xmalloc_ptr.
2259
0b27c27d
CB
22602019-08-05 Christian Biesinger <cbiesinger@google.com>
2261
2262 * NEWS: Mention dictionary access on blocks.
2263 * python/py-block.c (blpy_getitem): New function.
2264 (block_object_as_mapping): New struct.
2265 (block_object_type): Use new struct for tp_as_mapping field.
2266
4ee94178
CB
22672019-08-05 Christian Biesinger <cbiesinger@google.com>
2268
2269 * objfiles.h (objfile): Add a comment describing partial symbols.
2270
8abfcabc
TT
22712019-08-05 Tom Tromey <tromey@adacore.com>
2272
2273 * compile/compile.c (_initialize_compile): Use _(), not N_().
2274 * thread.c (_initialize_thread): Use _(), not N_().
2275 * stack.c (_initialize_stack): Use _(), not N_().
2276 * printcmd.c (_initialize_printcmd): Use _(), not N_().
2277
2b79f376
SM
22782019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2279
2280 * dwarf2read.c (struct dw2_symtab_iterator):
2281 <want_specific_block>: Remove.
2282 <block_index>: Change type to gdb::optional.
2283 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
2284 change type of BLOCK_INDEX parameter to gdb::optional.
2285 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
2286 (dw2_lookup_symbol): Don't pass argument for
2287 WANT_SPECIFIC_BLOCK.
2288 (dw2_expand_symtabs_for_function): Don't pass argument for
2289 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
2290 (class dw2_debug_names_iterator)
2291 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
2292 parameter, change BLOCK_INDEX type to gdb::optional.
2293 <m_want_specific_block>: Remove.
2294 <m_block_index>: Change type to gdb::optional.
2295 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
2296 gdb::optional. Re-write in function of gdb::optional.
2297 (dw2_debug_names_lookup_symbol): Don't pass argument for
2298 WANT_SPECIFIC_BLOCK.
2299 (dw2_debug_names_expand_symtabs_for_function): Don't pass
2300 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
2301 BLOCK_INDEX.
2302
ae60f04e
PW
23032019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2304
2305 * NEWS: Mention changes to "info sources" command.
2306
28cd9371
PW
23072019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2308
2309 * symtab.c (filename_partial_match_opts): New struct type.
2310 (struct output_source_filename_data): New members
2311 regexp, c_regexp, partial_match.
2312 (output_source_filename): Use new members to decide to print file.
2313 (info_sources_option_defs): New variable.
2314 (make_info_sources_options_def_group, print_info_sources_header,
2315 info_sources_command_completer):
2316 New functions.
2317 (info_sources_command): Read new optional arguments.
2318 (_initialize_symtab): Update info sources help.
2319
ca683e3a
AO
23202019-08-02 Alexandre Oliva <oliva@adacore.com>
2321
2322 * ada-lang.c (exception_support_info_v0): Renamed from...
2323 (default_exception_support_info): ... this. Create new
2324 definition for v1.
2325 (ada_has_this_exception_support): Look up catch_handlers_sym.
2326 (ada_exception_support_info_sniffer): Try v0 after default.
2327
f1264162
TT
23282019-08-01 Tom Tromey <tromey@adacore.com>
2329
2330 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
2331 gdbarch.h.
2332
0a7b2485
CB
23332019-08-01 Christian Biesinger <cbiesinger@google.com>
2334
2335 * s12z-tdep.c: Fix include path for s12z-opc.h.
2336
c6bdbeb7
AH
23372019-08-01 Alan Hayward <alan.hayward@arm.com>
2338
2339 * NEWS: Require GNU make 3.82.
2340
a2bd7b82
TT
23412019-07-16 Tom Tromey <tom@tromey.com>
2342
2343 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
2344 declare.
2345
aa3b6533
TT
23462019-07-30 Tom Tromey <tromey@adacore.com>
2347
2348 * block.c (contained_in): Remove BLOCK_FUNCTION check.
2349
a1530dc7
KB
23502019-07-30 Kevin Buettner <kevinb@redhat.com>
2351
2352 * printcmd.c (print_address_symbolic): Print negative offsets.
2353 (build_address_symbolic): Force signed arithmetic when computing
2354 offset.
2355
2906593f
CB
23562019-07-30 Christian Biesinger <cbiesinger@google.com>
2357
2358 PR/24474: Add a function to lookup static variables.
2359 * NEWS: Mention this new function.
2360 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
2361 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
2362 * python/python.c (python_GdbMethods): Add new function.
2363
c620ed88
CB
23642019-07-29 Christian Biesinger <cbiesinger@google.com>
2365
2366 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
2367 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
2368 (objfpy_lookup_static_symbol): New function.
2369 (objfile_object_methods): Add new functions.
2370
bc4268a5
PW
23712019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2372
2373 * NEWS: Mention 'set|show print frame-info'. Mention new
2374 'presence' value for 'frame-arguments'. Mention new '-frame-info'
2375 backtrace argument. Mention that python frame filtering code
2376 is now consistent with what 'backtrace' command prints.
2377
4b5e8d19
PW
23782019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2379
2380 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
2381 comments.
2382 (print_frame_info_auto, print_frame_info_source_line,
2383 print_frame_info_location, print_frame_info_source_and_location,
2384 print_frame_info_location_and_address, print_frame_info_short_location):
2385 New declarations.
2386 (struct frame_print_options): New member print_frame_info.
2387 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
2388 * stack.h (get_user_print_what_frame_info): New declaration.
2389 (frame_show_address): New declaration.
2390 * stack.c (print_frame_arguments_choices): New value 'presence'.
2391 (print_frame_info_auto, print_frame_info_source_line,
2392 print_frame_info_location, print_frame_info_source_and_location,
2393 print_frame_info_location_and_address, print_frame_info_short_location,
2394 print_frame_info_choices, print_frame_info_print_what): New definitions.
2395 (print_frame_args): Only print dots for args if print frame-arguments
2396 is 'presence'.
2397 (frame_print_option_defs): New element for "frame-info".
2398 (get_user_print_what_frame_info): New function.
2399 (frame_show_address): Make non static. Move comment to stack.h.
2400 (print_frame_info_to_print_what): New function.
2401 (print_frame_info): Update comment. Use fp_opts.print_frame_info
2402 to decide what to print.
2403 (backtrace_command_1): Handle the new print_frame_arguments_presence
2404 value.
2405 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
2406 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
2407 (py_print_frame): In non-mi mode, use LOCATION as default for
2408 print_what, similarly to frame information printed directly by
2409 backtrace command. Handle frame-info user option in non MI mode.
2410
6bdfee81
KB
24112019-07-27 Kevin Buettner <kevinb@redhat.com>
2412
2413 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
2414 Add case for debugging 32-bit target on 64-bit host. Revise
2415 comment.
2416
98a617f8
KB
24172019-07-27 Kevin Buettner <kevinb@redhat.com>
2418
2419 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
2420 instead of find_function_entry_range_from_pc.
2421
567238c9
KB
24222019-07-27 Kevin Buettner <kevinb@redhat.com>
2423
2424 * stack.c (find_frame_funname): Remove code which preferred
2425 minsym over symtab sym in "certain pathological cases".
2426
2dc80cf8
KB
2427 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
2428 parameter. Change type of "do_demangle" to bool.
2429 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2430 Pass suitable "prefer_sym_over_minsym" flag to
2431 build_address_symbolic(). Don't output "+" for negative offsets.
2432 * printcmd.c (print_address_symbolic): Update invocation of
2433 build_address_symbolic to include a "prefer_sym_over_minsym"
2434 flag.
2435 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
2436 Restrict cases in which use of minimal symbol is preferred to that
2437 of a found symbol. Update comments.
2438
1aff7173
KB
2439 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
2440 for entry pc when entry pc is out of range for that FDE.
2441
89b085ac
BC
24422019-07-26 Brian Callahan <bcallah@openbsd.org>
2443
2444 PR gdb/24839:
2445 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
2446 type.
2447
f32feb4a
CB
24482019-07-25 Christian Biesinger <cbiesinger@google.com>
2449
2450 * python/py-objfile.c (add_separate_debug_file): Fix comment about
2451 this function's Python signature.
2452
2453
24542019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
2455
2456 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
2457 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2458 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2459 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
2460 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
2461
2462
c54e4253
YS
24632019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
2464
2465 * h8300-tdep.c (h8300_register_name_common): New.
2466 h8300_register_name): Use h8300_register_name_common.
2467 (h8300s_register_name): Likewise.
2468 (h8300sx_register_name): Likewise.
2469 (h8300h_register_nam): New.
2470 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
2471
2472
40eadf04
SP
24732019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2474
2475 * arm-tdep.c (arm_skip_cmse_entry): New function.
2476 (arm_is_sgstubs_section): New function.
2477 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
2478
bfa2a36d
TT
24792019-07-22 Tom Tromey <tom@tromey.com>
2480
2481 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
2482 Don't self-assign.
2483
a8e9d247
AB
24842019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2485
2486 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
2487 type_print.
2488
eb86c5e2
AB
24892019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2490
2491 * symtab.c (search_symbols): Adjust msymbol matching type arrays
2492 so that GDB doesn't match any msymbols when searching in the
2493 TYPES_DOMAIN.
2494 (print_symbol_info): Print using typedef_print or type_print based
2495 on the type of the symbol. Add updated FIXME comment moved from...
2496 (_initialize_symtab): ... move and update FIXME comment to above.
2497
a8eab7c6
AB
24982019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2499
2500 * NEWS: Mention adding -q option to "info types".
2501 * symtab.c (struct info_types_options): New struct.
2502 (info_types_options_defs): New variable.
2503 (make_info_types_options_def_group): New function.
2504 (info_types_command): Use gdb::option framework to parse options.
2505 (info_types_command_completer): New function.
2506 (_initialize_symtab): Extend the help text on "info types" and
2507 register command completer.
2508
b4603c34
CB
25092019-07-21 Christian Biesinger <cbiesinger@google.com>
2510
2511 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
2512 (lookup_symbol_in_objfile): Change int to block_enum and add a
2513 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
2514
c8cdc1e0
CB
25152019-07-20 Christian Biesinger <cbiesinger@google.com>
2516
2517 * MAINTAINERS (Write After Approval): Add self.
2518
01e175fe
AB
25192019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
2520
2521 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
2522 instruction to the dummy code region.
2523
56f79b63
TT
25242019-07-19 Tom Tromey <tromey@adacore.com>
2525
2526 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
2527 (ARGSUSED, PARAMS, __func__): Remove rules.
2528
4c5aa8e0
AH
25292019-07-19 Alan Hayward <alan.hayward@arm.com>
2530
2531 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
2532 * features/arm/arm-with-iwmmxt.c: Remove.
2533 * features/arm/arm-with-iwmmxt.xml: Remove.
2534 * features/arm/arm-with-m-fpa-layout.c: Remove.
2535 * features/arm/arm-with-m-fpa-layout.xml: Remove.
2536 * features/arm/arm-with-m-vfp-d16.c: Remove.
2537 * features/arm/arm-with-m-vfp-d16.xml: Remove.
2538 * features/arm/arm-with-m.c: Remove.
2539 * features/arm/arm-with-m.xml: Remove.
2540 * features/arm/arm-with-neon.c: Remove.
2541 * features/arm/arm-with-neon.xml: Remove.
2542 * features/arm/arm-with-vfpv2.c: Remove.
2543 * features/arm/arm-with-vfpv2.xml: Remove.
2544 * features/arm/arm-with-vfpv3.c: Remove.
2545 * features/arm/arm-with-vfpv3.xml: Remove.
2546
f42b2617
AH
25472019-07-19 Alan Hayward <alan.hayward@arm.com>
2548
2549 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
2550
f29ec966
AH
25512019-07-19 Alan Hayward <alan.hayward@arm.com>
2552
2553 * arch/aarch32.c (aarch32_create_target_description): Create
2554 target descriptions using features.
2555 * arch/arm.c (arm_create_target_description)
2556 (arm_create_mprofile_target_description): Likewise.
2557 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
2558
d105cce5
AH
25592019-07-19 Alan Hayward <alan.hayward@arm.com>
2560
2561 * Makefile.in: Add new files.
2562 * aarch32-tdep.c: New file.
2563 * aarch32-tdep.h: New file.
2564 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2565 Call aarch32_read_description.
2566 * arch/aarch32.c: New file.
2567 * arch/aarch32.h: New file.
2568 * arch/arm.c (arm_create_target_description)
2569 (arm_create_mprofile_target_description): New function.
2570 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
2571 (arm_create_target_description)
2572 (arm_create_mprofile_target_description): New declaration.
2573 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
2574 read_description functions.
2575 * arm-linux-nat.c (arm_linux_nat_target::read_description):
2576 Likewise.
2577 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2578 * arm-tdep.c (tdesc_arm_list): New variable.
2579 (arm_register_g_packet_guesses): Call create description functions.
2580 (arm_read_description) (arm_read_mprofile_description): New
2581 function.
2582 * arm-tdep.h (arm_read_description)
2583 (arm_read_mprofile_description): Add declaration.
2584 * configure.tgt: Add new files.
2585
afe09f0b
GL
25862019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
2587
2588 * top.c (new_ui_command): Open specified terminal just once.
2589
cd215b2e
TT
25902019-07-18 Tom Tromey <tromey@adacore.com>
2591
2592 * symtab.c (main_name): Constify return type.
2593 * symfile.c (set_initial_language): Update.
2594 * symtab.h (main_name): Constify return type.
2595
d8f68fcb
TT
25962019-07-17 Tom Tromey <tom@tromey.com>
2597
2598 * tui/tui-winsource.c (tui_update_source_window)
2599 (tui_update_source_window_as_is)
2600 (tui_update_source_windows_with_line): Remove return.
2601 * tui/tui-disasm.c (tui_show_disassem)
2602 (tui_show_disassem_and_update_source): Remove return.
2603 * tui/tui.c (tui_reset): Remove return.
2604 * tui/tui-wingeneral.c
2605 (tui_check_and_display_highlight_if_needed): Remove return.
2606
ca5af91e
TT
26072019-07-17 Tom Tromey <tom@tromey.com>
2608
2609 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
2610
5104fe36
TT
26112019-07-17 Tom Tromey <tom@tromey.com>
2612
2613 * tui/tui-winsource.h (struct tui_exec_info_window)
2614 (struct tui_source_window_base): Move from tui-data.h.
2615 * tui/tui-winsource.c: Move many method definitions from
2616 elsewhere. Remove "structuring" comments.
2617 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
2618 (tui_source_window_base::refresh_window): Move to
2619 tui-winsource.c.
2620 * tui/tui-win.c (tui_source_window_base::refresh_all)
2621 (tui_source_window_base::update_tab_width)
2622 (tui_source_window_base::set_new_height)
2623 (tui_source_window_base::do_make_visible_with_new_height): Move to
2624 tui-winsource.c.
2625 * tui/tui-source.h: Update.
2626 * tui/tui-source.c (tui_source_window_base::reset): Move to
2627 tui-winsource.c.
2628 * tui/tui-disasm.h: Update.
2629 * tui/tui-data.h (struct tui_exec_info_window): Move to
2630 tui-winsource.h.
2631 (struct tui_source_window_base): Likewise.
2632 * tui/tui-data.c (tui_source_window_base::clear_detail)
2633 (tui_source_window_base, ~tui_source_window_base): Move to
2634 tui-winsource.c.
2635
daa15dde
TT
26362019-07-17 Tom Tromey <tom@tromey.com>
2637
2638 * tui/tui-win.c (tui_resize_all)
2639 (tui_source_window_base::update_tab_width)
2640 (tui_adjust_win_heights): Update.
2641 (tui_win_info::make_invisible_and_set_new_height): Rename from
2642 make_invisible_and_set_new_height.
2643 * tui/tui-data.h (struct tui_win_info)
2644 <make_invisible_and_set_new_height>: New method.
2645
bfad4537
TT
26462019-07-17 Tom Tromey <tom@tromey.com>
2647
2648 * tui/tui.c: Update.
2649 * tui/tui-source.h (struct tui_source_window): Move from
2650 tui-data.h.
2651 * tui/tui-layout.c: Update.
2652 * tui/tui-disasm.c: Update.
2653 * tui/tui-data.h (struct tui_source_window): Move to
2654 tui-source.h.
2655
88f7e873
TT
26562019-07-17 Tom Tromey <tom@tromey.com>
2657
2658 * tui/tui-disasm.h (struct tui_disasm_window): Move from
2659 tui-data.h.
2660 * tui/tui-data.h (struct tui_disasm_window): Move to
2661 tui-disasm.h.
2662
96bd6233
TT
26632019-07-17 Tom Tromey <tom@tromey.com>
2664
2665 * tui/tui-regs.h (struct tui_data_item_window): Move from
2666 tui-data.h.
2667 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
2668 * tui/tui-data.h (struct tui_data_item_window): Move to
2669 tui-regs.h.
2670 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
2671
ce38393b
TT
26722019-07-17 Tom Tromey <tom@tromey.com>
2673
2674 * tui/tui.c: Update.
2675 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
2676 (tui_cmd_window::max_height): Move to tui-command.c.
2677 * tui/tui-layout.c: Update.
2678 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
2679 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
2680 tui-command.c.
2681 * tui/tui-command.h (struct tui_cmd_window): Move from
2682 tui-data.h.
2683 * tui/tui-command.c: Remove "structuring" comments.
2684 (tui_cmd_window::clear_detail)
2685 (tui_cmd_window::do_make_visible_with_new_height)
2686 (tui_cmd_window::max_height): Move from elsewhere.
2687
2d8b51cb
TT
26882019-07-17 Tom Tromey <tom@tromey.com>
2689
2690 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
2691 Now static.
2692 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
2693 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
2694
18ab23af
TT
26952019-07-17 Tom Tromey <tom@tromey.com>
2696
2697 * tui/tui.c: Update.
2698 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
2699 tui-regs.c.
2700 * tui/tui-windata.h: Remove file.
2701 * tui/tui-windata.c: Remove file.
2702 * tui/tui-win.c (tui_data_window::set_new_height)
2703 (tui_data_window::do_make_visible_with_new_height): Move to
2704 tui-regs.c.
2705 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
2706 * tui/tui-regs.c: Remove "structuring" comments.
2707 (tui_data_window::first_data_item_displayed)
2708 (tui_data_window::delete_data_content_windows)
2709 (tui_data_window::erase_data_content)
2710 (tui_data_window::display_all_data)
2711 (tui_data_window::refresh_all)
2712 (tui_data_window::do_scroll_vertical)
2713 (tui_data_window::clear_detail, tui_data_window::set_new_height)
2714 (tui_data_window::do_make_visible_with_new_height)
2715 (tui_data_window::refresh_window): Move from elsewhere.
2716 (_initialize_tui_regs): Move to end of file.
2717 * tui/tui-layout.c: Update.
2718 * tui/tui-hooks.c: Update.
2719 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
2720 * tui/tui-data.c (tui_data_window::clear_detail): Move to
2721 tui-regs.c.
2722 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
2723
88b7e7cc
TT
27242019-07-17 Tom Tromey <tom@tromey.com>
2725
2726 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
2727 seen.
2728
0fcd3711
TT
27292019-07-17 Tom Tromey <tom@tromey.com>
2730
2731 * tui/tui-win.c (tui_source_window_base::set_new_height)
2732 (tui_source_window_base::do_make_visible_with_new_height): Use
2733 m_has_locator field directly.
2734 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
2735 method.
2736 (struct tui_source_window_base) <has_locator>: Likewise.
2737
4a38112d
TT
27382019-07-17 Tom Tromey <tom@tromey.com>
2739
2740 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
2741 Don't declare.
2742 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
2743 Remove.
2744 * tui/tui-win.c (tui_source_window_base::set_new_height)
2745 (tui_source_window_base::set_new_height)
2746 (make_invisible_and_set_new_height)
2747 (tui_source_window_base::do_make_visible_with_new_height)
2748 (tui_source_window_base::do_make_visible_with_new_height):
2749 Update.
2750 * tui/tui-layout.c (show_source_disasm_command, show_data)
2751 (show_source_or_disasm_and_command): Update.
2752 * tui/tui-layout.c (show_layout): Update.
2753
09129226
TT
27542019-07-17 Tom Tromey <tom@tromey.com>
2755
2756 * tui/tui-layout.c (make_data_window): Remove.
2757 (show_data): Unify creation and re-initialization cases.
2758
4a8a5e84
TT
27592019-07-17 Tom Tromey <tom@tromey.com>
2760
2761 * tui/tui-layout.c (make_source_window, make_disasm_window):
2762 Remove.
2763 (show_data): Unify creation and re-initialization cases.
2764
76d2be8e
TT
27652019-07-17 Tom Tromey <tom@tromey.com>
2766
2767 * tui/tui-layout.c (make_command_window): Remove.
2768 (show_source_disasm_command, show_source_or_disasm_and_command):
2769 Unify creation and re-initialization cases.
2770
890b8bde
TT
27712019-07-17 Tom Tromey <tom@tromey.com>
2772
2773 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
2774 creation and re-initialization cases.
2775
2cdfa113
TT
27762019-07-17 Tom Tromey <tom@tromey.com>
2777
2778 * tui/tui-regs.c (tui_get_register): Return void.
2779
8e3cfd09
TT
27802019-07-17 Tom Tromey <tom@tromey.com>
2781
2782 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
2783 Simplify.
2784
f4e04977
TT
27852019-07-17 Tom Tromey <tom@tromey.com>
2786
2787 * tui/tui-layout.c (show_source_disasm_command): Simplify window
2788 resetting.
2789
0379b883
TT
27902019-07-17 Tom Tromey <tom@tromey.com>
2791
2792 * tui/tui.h (tui_set_layout_by_name): Don't declare.
2793 * tui/tui-regs.c (tui_reg_layout): New function.
2794 (tui_show_registers, tui_reg_command): Use it.
2795 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
2796 (tui_layout_command): Rename from tui_set_layout_by_name. Change
2797 parameters.
2798 (tui_layout_command): Remove.
2799
b7fbad91
TT
28002019-07-17 Tom Tromey <tom@tromey.com>
2801
2802 * tui/tui-layout.h (tui/tui-layout): Return void.
2803 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
2804
4e1e56b9
TT
28052019-07-17 Tom Tromey <tom@tromey.com>
2806
2807 * tui/tui-layout.c (show_source_disasm_command, show_data):
2808 Update.
2809 (reset_locator): Remove.
2810 (show_source_or_disasm_and_command): Update.
2811
1e0c09ba
TT
28122019-07-17 Tom Tromey <tom@tromey.com>
2813
2814 * tui/tui-source.c (tui_source_window_base::reset): Remove
2815 win_type parameter.
2816 * tui/tui-layout.c (make_command_window, make_source_window)
2817 (make_disasm_window, make_data_window)
2818 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
2819 (reset_locator, show_source_or_disasm_and_command): Update.
2820 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
2821 win_type parameter.
2822 (struct tui_source_window_base) <reset>: Likewise.
2823
1bf605de
TT
28242019-07-17 Tom Tromey <tom@tromey.com>
2825
2826 * tui/tui-layout.c (show_source_disasm_command): Use
2827 reset_locator.
2828 (reset_locator): New function.
2829 (init_and_make_win): Remove.
2830 (show_source_or_disasm_and_command): Use reset_locator.
2831
098f9ed4
TT
28322019-07-17 Tom Tromey <tom@tromey.com>
2833
2834 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
2835 condition.
2836 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
2837 Remove condition.
2838 * tui/tui-source.c (tui_source_window_base::reset): New method.
2839 * tui/tui-layout.c (make_command_window): Don't call
2840 init_and_make_win.
2841 (make_source_window, make_disasm_window): Don't call
2842 make_source_or_disasm_window.
2843 (make_data_window): Don't call init_and_make_win. Change calling
2844 convention.
2845 (show_source_disasm_command, show_data): Simplify.
2846 (make_source_or_disasm_window): Remove.
2847 (show_source_or_disasm_and_command): Simplify.
2848 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
2849 (struct tui_source_window_base) <reset>: Likewise.
2850 <execution_info>: Remove initializer.
2851 * tui/tui-data.c (tui_source_window_base): Initialize
2852 execution_info.
2853
80110957
TT
28542019-07-17 Tom Tromey <tom@tromey.com>
2855
2856 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
2857 variable.
2858
cf82af05
TT
28592019-07-17 Tom Tromey <tom@tromey.com>
2860
2861 * tui/tui.c (tui_rl_other_window): Update.
2862 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
2863 superclass method first. Always iterate over regs_content.
2864 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
2865 method.
2866 * tui/tui-win.c (tui_set_focus_command): Update.
2867
01aeb396
TT
28682019-07-17 Tom Tromey <tom@tromey.com>
2869
2870 * tui/tui-win.c (tui_set_focus_command): Rename from
2871 tui_set_focus. Call tui_enable.
2872 (tui_set_focus_command): Remove.
2873
fd6c75ee
TT
28742019-07-17 Tom Tromey <tom@tromey.com>
2875
2876 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
2877 refresh_window.
2878 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
2879 touchwin.
2880 (tui_data_window::refresh_window): Call refresh_window on data
2881 items. Always call superclass refresh_window.
2882 (tui_win_info::refresh): Remove.
2883 (tui_source_window_base::refresh_window): Update.
2884 (tui_refresh_all): Update.
2885 * tui/tui-layout.c (show_source_disasm_command): Remove call to
2886 refresh_window.
2887 (show_source_or_disasm_and_command): Likewise.
2888 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
2889 (struct tui_source_window_base) <refresh>: Likewise.
2890
f6cc34a9
TT
28912019-07-17 Tom Tromey <tom@tromey.com>
2892
2893 * tui/tui-winsource.c (tui_clear_source_content)
2894 (tui_show_source_content): Update.
2895 * tui/tui-source.c (tui_source_window::showing_source_p): Check
2896 whether content is empty.
2897 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
2898 Remove.
2899
f31ec9af
TT
29002019-07-17 Tom Tromey <tom@tromey.com>
2901
2902 * tui/tui-winsource.c (tui_erase_source_content): Clear the
2903 window's contents.
2904 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
2905 * tui/tui-source.c (tui_set_source_content_nil): Remove.
2906
d1b6f1e5
TT
29072019-07-17 Tom Tromey <tom@tromey.com>
2908
2909 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
2910 (struct tui_data_item_window): Update.
2911
d9743a13
TT
29122019-07-17 Tom Tromey <tom@tromey.com>
2913
2914 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
2915 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
2916 defines.
2917
caf0bc4e
TT
29182019-07-17 Tom Tromey <tom@tromey.com>
2919
2920 * tui/tui-winsource.h (tui_erase_source_content)
2921 (tui_clear_source_content): Remove "display_prompt" parameter.
2922 * tui/tui-winsource.c (tui_update_source_window_as_is)
2923 (tui_update_source_windows_with_addr): Update.
2924 (tui_clear_source_content): Remove "display_prompt" parameter.
2925 (tui_erase_source_content): Likewise. Simplify.
2926 (tui_show_source_content): Update.
2927 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2928 * tui/tui-stack.c (tui_show_frame_info): Update.
2929 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
2930 Remove defines.
2931
9d391078
TT
29322019-07-17 Tom Tromey <tom@tromey.com>
2933
2934 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2935 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
2936 parameter.
2937 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
2938 parameter.
2939
a38da35d
TT
29402019-07-17 Tom Tromey <tom@tromey.com>
2941
2942 * tui/tui-winsource.c (tui_clear_source_content)
2943 (tui_show_source_content, tui_show_exec_info_content)
2944 (tui_clear_exec_info_content): Update.
2945 * tui/tui-stack.c (tui_show_locator_content): Update.
2946 (tui_show_frame_info): Update.
2947 * tui/tui-source.h (tui_source_window): Don't declare.
2948 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
2949 from tui_source_is_displayed.
2950 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
2951 Remove field.
2952 (struct tui_source_window_base) <content_in_use>: New field. Now
2953 bool.
2954 (struct tui_source_window) <showing_source_p>: New method.
2955 (TUI_SRC_WIN): Change cast.
2956 * tui/tui-data.c (tui_initialize_static_data): Update.
2957
c2cd8994
TT
29582019-07-17 Tom Tromey <tom@tromey.com>
2959
2960 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
2961 location_matches_p.
2962 * tui/tui-source.c (tui_source_window::location_matches_p): New
2963 method.
2964 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
2965 method.
2966 * tui/tui-data.h (struct tui_source_window_base)
2967 <location_matches_p>: New method.
2968 (struct tui_source_window, struct tui_disasm_window)
2969 <location_matches_p>: Likewise.
2970
4dde7b34
TT
29712019-07-17 Tom Tromey <tom@tromey.com>
2972
2973 * tui/tui-win.c (tui_set_win_height_command): Rename from
2974 tui_set_win_height.
2975 (tui_set_win_height_command): Remove.
2976
b73dd877
TT
29772019-07-17 Tom Tromey <tom@tromey.com>
2978
2979 * tui/tui-source.c (tui_source_window): New constructor. Add
2980 observer.
2981 (~tui_source_window): New destructor.
2982 (tui_source_window::style_changed): New method.
2983 * tui/tui-hooks.c (tui_redisplay_source): Remove.
2984 (tui_attach_detach_observers): Update.
2985 * tui/tui-data.h (struct tui_source_window): Make constructor not
2986 inline. Add destructor.
2987 (struct tui_source_window) <style_changed>: New method.
2988 <m_observable>: New member.
2989
ae2b5380
TT
29902019-07-17 Tom Tromey <tom@tromey.com>
2991
2992 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
2993 * tui/tui-win.c (tui_resize_all): Fix typo.
2994
1ce3e844
TT
29952019-07-17 Tom Tromey <tom@tromey.com>
2996
2997 * tui/tui-wingeneral.h (tui_refresh_all): Update.
2998 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
2999 (tui_refresh_all): Remove "list" parameter. Use foreach.
3000 * tui/tui-win.c (window_name_completer): Use foreach.
3001 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
3002 (update_tab_width): Likewise.
3003 * tui/tui-layout.c (show_layout): Update.
3004 * tui/tui-data.h (class tui_window_iterator): New.
3005 (struct all_tui_windows): New.
3006 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
3007
fe3eaf1c
TT
30082019-07-17 Tom Tromey <tom@tromey.com>
3009
3010 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
3011 parameter. Don't reference globals.
3012 (tui_reg_command): Update.
3013
368c1354
TT
30142019-07-17 Tom Tromey <tom@tromey.com>
3015
3016 * tui/tui-regs.c (tui_show_registers): Simplify.
3017
e80cd204
TT
30182019-07-17 Tom Tromey <tom@tromey.com>
3019
3020 * tui/tui-regs.c (tui_show_registers): Update.
3021 (tui_show_register_group): Add win_info parameter.
3022
aca2dd16
TT
30232019-07-17 Tom Tromey <tom@tromey.com>
3024
3025 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
3026 Rename from tui_display_reg_element_at_line.
3027 (tui_data_window::display_registers_from_line): Update.
3028 * tui/tui-data.h (struct tui_data_window)
3029 <display_reg_element_at_line>: New method.
3030
517e9505
TT
30312019-07-17 Tom Tromey <tom@tromey.com>
3032
3033 * tui/tui-regs.h (tui_display_registers_from)
3034 (tui_display_registers_from_line): Don't declare.
3035 * tui/tui-windata.c (tui_data_window::display_all_data)
3036 (tui_data_window::refresh_all)
3037 (tui_data_window::do_scroll_vertical): Update.
3038 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
3039 from tui_display_registers_from.
3040 (tui_display_reg_element_at_line): Update.
3041 (tui_data_window::display_registers_from_line): Rename from
3042 tui_display_registers_from_line.
3043 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
3044 display_registers_from_line>: New methods.
3045
f76d8b19
TT
30462019-07-17 Tom Tromey <tom@tromey.com>
3047
3048 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
3049 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
3050 from tui_erase_data_content.
3051 (tui_data_window::display_all_data)
3052 (tui_data_window::refresh_all)
3053 (tui_data_window::do_scroll_vertical): Update.
3054 * tui/tui-regs.c (tui_show_registers): Update.
3055 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
3056 New method.
3057
b4094625
TT
30582019-07-17 Tom Tromey <tom@tromey.com>
3059
3060 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
3061 declare.
3062 * tui/tui-windata.c
3063 (tui_data_window::delete_data_content_windows): Rename from
3064 tui_delete_data_content_windows.
3065 (tui_data_window::display_all_data)
3066 (tui_data_window::do_scroll_vertical): Update.
3067 * tui/tui-data.h (struct tui_data_window)
3068 <delete_data_content_windows>: New method.
3069
c223a729
TT
30702019-07-17 Tom Tromey <tom@tromey.com>
3071
3072 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
3073 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
3074
50daf268
TT
30752019-07-17 Tom Tromey <tom@tromey.com>
3076
3077 * tui/tui-windata.h (tui_display_all_data): Don't declare.
3078 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
3079 from tui_display_all_data.
3080 * tui/tui-win.c
3081 (tui_data_window::do_make_visible_with_new_height): Update.
3082 * tui/tui-regs.c (tui_show_registers): Update.
3083 * tui/tui-layout.c (tui_set_layout): Update.
3084 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
3085 method.
3086
df5f8cab
TT
30872019-07-17 Tom Tromey <tom@tromey.com>
3088
3089 * tui/tui-windata.h (tui_display_data_from): Don't declare.
3090 * tui/tui-windata.c (tui_display_data_from): Remove.
3091 (tui_data_window::refresh_all): Update.
3092
80cb6c27
TT
30932019-07-17 Tom Tromey <tom@tromey.com>
3094
3095 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
3096 * tui/tui-windata.c (tui_display_data_from_line): Remove.
3097 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
3098 tui_display_registers_from_line.
3099 * tui/tui-regs.h (tui_display_registers_from_line): Update.
3100 * tui/tui-regs.c (tui_display_registers_from_line): Remove
3101 "force_display" parameter.
3102
baff0c28
TT
31032019-07-17 Tom Tromey <tom@tromey.com>
3104
3105 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
3106 declare.
3107 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
3108 Rename from tui_first_reg_element_no_inline.
3109 (tui_display_reg_element_at_line)
3110 (tui_display_registers_from_line): Update.
3111 * tui/tui-data.h (struct tui_data_window)
3112 <first_reg_element_no_inline>: New method.
3113
3b23c5f2
TT
31142019-07-17 Tom Tromey <tom@tromey.com>
3115
3116 * tui/tui-windata.c (tui_display_data_from)
3117 (tui_data_window::do_scroll_vertical): Update.
3118 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
3119 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
3120 Rename from tui_line_from_reg_element_no.
3121 (tui_display_registers_from_line): Update.
3122 * tui/tui-data.h (struct tui_data_window)
3123 <line_from_reg_element_no>: New method.
3124
0b5ec218
TT
31252019-07-17 Tom Tromey <tom@tromey.com>
3126
3127 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
3128 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
3129 tui_last_regs_line_no.
3130 (tui_display_reg_element_at_line)
3131 (tui_display_registers_from_line): Update.
3132 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
3133 method.
3134
0807ab7b
TT
31352019-07-17 Tom Tromey <tom@tromey.com>
3136
3137 PR tui/24722:
3138 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
3139 (tui_update_breakpoint_info): Add "being_deleted" parameter.
3140 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3141 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
3142 (tui_update_breakpoint_info): Likewise.
3143 * tui/tui-hooks.c (tui_event_create_breakpoint)
3144 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
3145 Update.
3146
9ad7fdef
TT
31472019-07-17 Tom Tromey <tom@tromey.com>
3148
3149 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
3150
5813316f
TT
31512019-07-17 Tom Tromey <tom@tromey.com>
3152
3153 * tui/tui-winsource.c (tui_update_source_window_as_is)
3154 (tui_update_source_windows_with_addr): Update.
3155 * tui/tui-source.h (tui_set_source_content)
3156 (tui_show_symtab_source): Add "win_info" parameter.
3157 * tui/tui-source.c (tui_set_source_content): Add "win_info"
3158 parameter.
3159 (tui_show_symtab_source): Likewise.
3160
00e264e7
TT
31612019-07-17 Tom Tromey <tom@tromey.com>
3162
3163 * tui/tui-wingeneral.c
3164 (tui_check_and_display_highlight_if_needed): Check can_highlight.
3165
06210ce4
TT
31662019-07-17 Tom Tromey <tom@tromey.com>
3167
3168 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
3169 (struct tui_cmd_window) <can_scroll>: New method.
3170 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
3171 method.
3172
381befee
TT
31732019-07-17 Tom Tromey <tromey@adacore.com>
3174
3175 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
3176 do_field_signed>: Rename. Change type of "value".
3177 * ui-out.c (ui_out::field_signed): Rename from field_int.
3178 Change type of "value".
3179 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
3180 type of "value".
3181 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
3182 do_field_int. Change type of "value".
3183 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
3184 do_field_int. Change type of "value".
3185 * tracepoint.c (trace_status_mi, tfind_1)
3186 (print_one_static_tracepoint_marker): Update.
3187 * thread.c (print_thread_info_1, print_selected_thread_frame):
3188 Update.
3189 * stack.c (print_frame, print_frame_info): Update.
3190 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
3191 Update.
3192 * source.c (print_source_lines_base): Update.
3193 * skip.c (info_skip_command): Update.
3194 * record-btrace.c (btrace_ui_out_decode_error)
3195 (btrace_call_history_src_line): Update.
3196 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
3197 Update.
3198 * progspace.c (print_program_space): Update.
3199 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
3200 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
3201 do_field_int. Change type of "value".
3202 * mi/mi-out.c (mi_ui_out::do_table_begin)
3203 (mi_ui_out::do_table_header): Update.
3204 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
3205 type of "value".
3206 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
3207 (mi_cmd_data_list_changed_registers, output_register)
3208 (mi_cmd_data_read_memory, mi_load_progress)
3209 (mi_cmd_trace_frame_collected): Update.
3210 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
3211 Update.
3212 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3213 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
3214 (mi_cmd_var_list_children, varobj_update_one): Update.
3215 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
3216 (mi_cmd_stack_list_args, list_arg_or_local): Update.
3217 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
3218 * inferior.c (print_inferior): Update.
3219 * gdb_bfd.c (print_one_bfd): Update.
3220 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3221 Update.
3222 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
3223 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
3224 do_field_int. Change type of "value".
3225 * cli-out.c (cli_ui_out::do_field_signed): Rename from
3226 do_field_int. Change type of "value".
3227 * breakpoint.c (watchpoint_check, print_breakpoint_location)
3228 (print_one_breakpoint_location, print_it_catch_fork)
3229 (print_one_catch_fork, print_it_catch_vfork)
3230 (print_one_catch_vfork, print_it_catch_solib)
3231 (print_it_catch_exec, print_it_ranged_breakpoint)
3232 (print_mention_watchpoint, print_mention_masked_watchpoint)
3233 (bkpt_print_it, update_static_tracepoint): Update.
3234 * break-catch-throw.c (print_it_exception_catchpoint): Update.
3235 * break-catch-syscall.c (print_it_catch_syscall): Update.
3236 * ada-tasks.c (print_ada_task_info): Update.
3237 * ada-lang.c (print_it_exception, print_mention_exception):
3238 Update.
3239
6b78c3f8
AB
32402019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3241
3242 PR breakpoints/24541
3243 * gdbarch.c: Regenerate.
3244 * gdbarch.h: Regenerate.
3245 * gdbarch.sh: Adjust return type and parameter types for
3246 'stap_adjust_register'.
3247 (i386_stap_adjust_register): Adjust signature and return new
3248 register name.
3249 * stap-probe.c (stap_parse_register_operand): Adjust use of
3250 'gdbarch_stap_adjust_register'.
3251
d72a9b85
TT
32522019-07-17 Tom Tromey <tromey@adacore.com>
3253
3254 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
3255 declare VEC.
3256 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
3257 std::vector.
3258 (struct s390_process_info): Add initializers.
3259 (s390_add_process): Use new.
3260 (s390_linux_nat_target::low_forget_process): Use delete.
3261 (s390_linux_nat_target::low_new_fork)
3262 (s390_linux_nat_target::stopped_by_watchpoint)
3263 (s390_linux_nat_target::low_prepare_to_resume)
3264 (s390_linux_nat_target::insert_watchpoint)
3265 (s390_linux_nat_target::insert_hw_breakpoint)
3266 (s390_linux_nat_target::remove_watchpoint)
3267 (s390_linux_nat_target::remove_hw_breakpoint): Update.
3268
206e6c58
JB
32692019-07-16 John Baldwin <jhb@FreeBSD.org>
3270
3271 * aarch64-fbsd-nat.c: Include regcache.h.
3272 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
3273 argument.
3274 (aarch64_fbsd_nat_target::fetch_registers)
3275 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
3276 variable.
3277 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
3278
cbde90f2
JB
32792019-07-16 John Baldwin <jhb@FreeBSD.org>
3280
3281 * fbsd-nat.c: Include gdbarch.h.
3282
07128006
TT
32832019-07-15 Tom Tromey <tromey@adacore.com>
3284
3285 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
3286
1f77b012
TT
32872019-07-15 Tom Tromey <tromey@adacore.com>
3288
3289 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
3290 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
3291 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
3292 * cli-out.c (cli_ui_out::do_field_int): New method.
3293 * ui-out.c (ui_out::field_unsigned): New method.
3294 * symfile.c (generic_load): Use field_unsigned.
3295 (print_transfer_performance): Likewise.
3296 * record-btrace.c (ui_out_field_uint): Remove.
3297 (btrace_call_history_insn_range, btrace_call_history): Use
3298 field_unsigned.
3299 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3300 field_unsigned.
3301 * ui-out.h (class ui_out) <field_unsigned>: New method.
3302 <do_field_unsigned>: Likewise.
3303
33eca680
TT
33042019-07-15 Tom Tromey <tromey@adacore.com>
3305
3306 * mi/mi-main.c (list_available_thread_groups): Use field_string.
3307 * mi/mi-interp.c (mi_memory_changed): Use field_string.
3308 * target.c (flash_erase_command): Use field_string.
3309 * infrun.c (print_signal_received_reason): Use field_string.
3310 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
3311 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
3312 field_string.
3313 * ada-tasks.c (print_ada_task_info): Use field_string.
3314
ca8d69be
TT
33152019-07-15 Tom Tromey <tromey@adacore.com>
3316
3317 * target.c (flash_erase_command): Use field_core_addr.
3318 * symfile.c (generic_load): Use field_core_addr.
3319 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3320 Use field_core_addr.
3321 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
3322 field_core_addr.
3323
0d4e84ed
AB
33242019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3325
3326 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
3327 value if its desired type is smaller than a CORE_ADDR and signed.
3328
9a49df9d
AB
33292019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3330
3331 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
3332 of changes to field names, and use new is_reference field to
3333 decide if a property is a reference or not.
3334 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
3335 field.
3336 (struct dwarf2_property_baton): Update header comment, rename
3337 'referenced_type' to 'property_type' and update comments.
3338 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
3339 default property type, store in property baton, update to take
3340 accound of renamed field.
3341 (read_func_scope): Update call to attr_to_dynamic_prop.
3342 (read_array_type): Likewise.
3343 (dwarf2_per_cu_addr_sized_int_type): New function.
3344 (read_subrange_index_type): Move type finding code to
3345 dwarf2_per_cu_addr_sized_int_type.
3346 (read_subrange_type): Update calls to attr_to_dynamic_prop.
3347 (dwarf2_per_cu_addr_type): New function.
3348 (set_die_type): Update calls to attr_to_dynamic_prop.
3349
b86352cf
AB
33502019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3351
3352 * dwarf2read.c (read_subrange_index_type): New function.
3353 (read_subrange_type): Move code into new function and call it.
3354 * gdbtypes.c (create_range_type): Add some asserts.
3355
603490bf
AB
33562019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3357
3358 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
3359 update return statements.
3360 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
3361 declaration, and update comment to match.
3362 * gdbtypes.c (resolve_dynamic_array): Update call to
3363 dwarf2_evaluate_property to match new return type.
3364
592f9d27
AB
33652019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3366
3367 * valarith.c (value_subscripted_rvalue): Change lowerbound
3368 parameter type from int to LONGEST.
3369 * value.h (value_subscripted_rvalue): Likewise in declaration.
3370
60cfcb20
AB
33712019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3372
3373 * cli/cli-utils.c (info_print_command_completer): New function.
3374 * cli/cli-utils.h: Add 'completer.h' include, and forward
3375 declaration for 'struct cmd_list_element'.
3376 (info_print_command_completer): Declare.
3377 * stack.c (_initialize_stack): Add completer for 'info locals' and
3378 'info args'.
3379 * symtab.c (_initialize_symtab): Add completer for 'info
3380 variables' and 'info functions'.
3381 * NEWS: Mention completion for additional info commands.
3382
b16507e0
AB
33832019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3384
3385 * cli/cli-utils.c (extract_info_print_args): Delete.
3386 (extract_arg_maybe_quoted): Delete.
3387 (info_print_options_defs): New variable.
3388 (make_info_print_options_def_group): New function.
3389 (extract_info_print_options): Define new function.
3390 * cli/cli-utils.h (extract_info_print_args): Delete.
3391 (struct info_print_options): New structure.
3392 (extract_info_print_options): Declare new function.
3393 * stack.c (info_locals_command): Update to use new
3394 extract_info_print_options, also add a header comment.
3395 (info_args_command): Likewise.
3396 * symtab.c (info_variables_command): Likewise.
3397 (info_functions_command): Likewise.
3398
021d8588
AB
33992019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3400
3401 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
3402 to extract string arguments.
3403 * common/common-utils.c (extract_string_maybe_quoted): New function.
3404 * common/common-utils.h (extract_string_maybe_quoted): Declare.
3405
b777eb6d
TT
34062019-07-11 Tom Tromey <tromey@adacore.com>
3407
3408 * main.c (get_init_files): Use GDBINIT, not gdbinit.
3409 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
3410 * top.h (gdbinit): Don't declare.
3411 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
3412 into...
3413 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
3414 * top.c (gdb_init): Don't call init_cli_cmds.
3415 (gdbinit): Remove.
3416 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
3417
72ee03ff
TT
34182019-07-11 Tom Tromey <tromey@adacore.com>
3419
3420 * python/py-inferior.c (add_thread_object): Don't use thread_obj
3421 after it has been moved.
3422
00db9531
SM
34232019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3424
3425 * valops.c (value_must_coerce_to_target): Change return type to
3426 bool.
3427 * value.h (value_must_coerce_to_target): Likewise.
3428
f2478a7e
SM
34292019-07-10 Simon Marchi <simon.marchi@efficios.com>
3430
3431 * breakpoint.c (is_hardware_watchpoint): Remove
3432 forward-declaration.
3433 (is_masked_watchpoint): Change return type to bool.
3434 (is_tracepoint): Likewise.
3435 (is_breakpoint): Likewise.
3436 (is_hardware_watchpoint): Likewise.
3437 (is_watchpoint): Likewise.
3438 (is_no_memory_software_watchpoint): Likewise.
3439 (is_catchpoint): Likewise.
3440 (breakpoint_1): Make FILTER parameter's return type bool.
3441 is_masked_watchpoint): Change return type to bool.
3442 (save_breakpoints): Make FILTER parameter's return type bool.
3443 * breakpoint.h (is_breakpoint): Change return type to bool.
3444 (is_watchpoint): Likewise.
3445 (is_catchpoint): Likewise.
3446 (is_tracepoint): Likewise.
3447
0d12e84c
TT
34482019-07-10 Tom Tromey <tom@tromey.com>
3449
3450 * defs.h: Don't include gdbarch.h.
3451 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
3452 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
3453 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
3454 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
3455 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
3456 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
3457 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
3458 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
3459 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
3460 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
3461 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
3462 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
3463 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
3464 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
3465 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
3466 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
3467 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
3468 record-btrace.c, record.h, regcache-dump.c, regcache.h,
3469 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
3470 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
3471 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
3472 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
3473 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
3474 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
3475 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
3476 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
3477 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
3478
f06f1252
TT
34792019-07-10 Tom Tromey <tromey@adacore.com>
3480
3481 * ada-lang.h (is_ada_exception_catchpoint): Declare.
3482 * breakpoint.c (init_ada_exception_breakpoint): Register as
3483 bp_catchpoint.
3484 (print_one_breakpoint_location, print_one_breakpoint): Use
3485 is_ada_exception_catchpoint.
3486 * ada-lang.c (class ada_catchpoint_location): Pass
3487 bp_loc_software_breakpoint to bp_location constructor.
3488 (is_ada_exception_catchpoint): New function.
3489
7a5d944b
TT
34902019-07-10 Tom Tromey <tromey@adacore.com>
3491
3492 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
3493 VEC.
3494 (struct arm_exidx_entry): New method operator<.
3495 (struct arm_exidx_data) <section_maps>: Change type.
3496 (arm_exidx_data_free): Remove.
3497 (arm_exidx_data_key): Change type. Move lower.
3498 (arm_exidx_new_objfile): Update.
3499 (arm_compare_exidx_entries): Remove.
3500 (arm_find_exidx_entry, _initialize_arm_tdep)
3501
48c66e1d
TT
35022019-07-10 Tom Tromey <tromey@adacore.com>
3503
3504 * solib-spu.c (ocl_program_data_key): Change type.
3505 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
3506 Update.
3507
a269fbf1
TT
35082019-07-10 Tom Tromey <tromey@adacore.com>
3509
3510 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
3511 (struct solib_aix_inferior_data) <library_list>: Change type.
3512 (solib_aix_inferior_data_handle): Change type.
3513 (get_solib_aix_inferior_data): Update.
3514 (solib_aix_free_library_list): Remove.
3515 (library_list_start_library): Update.
3516 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
3517 return type.
3518 (solib_aix_get_library_list)
3519 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
3520 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
3521
c294730c
TT
35222019-07-10 Tom Tromey <tromey@adacore.com>
3523
3524 * solib-dsbt.c (struct dsbt_info): Add initializers.
3525 (solib_dsbt_pspace_data): Change type.
3526 (dsbt_pspace_data_cleanup): Remove.
3527 (get_dsbt_info, _initialize_dsbt_solib): Update.
3528
9d52077d
TT
35292019-07-10 Tom Tromey <tromey@adacore.com>
3530
3531 * spu-tdep.c (spu_overlay_data): Change type.
3532 (spu_get_overlay_table, spu_overlay_new_objfile)
3533 (_initialize_spu_tdep): Update.
3534
22a20dca
TT
35352019-07-10 Tom Tromey <tromey@adacore.com>
3536
3537 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
3538 destructor.
3539 (dbx_objfile_data_key): Change type and declare later.
3540 (DBX_SYMFILE_INFO): Rewrite.
3541 * dbxread.c (dbx_objfile_data_key): Change type.
3542 (dbx_symfile_init): Update.
3543 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
3544 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3545 (stabsect_build_psymtabs, _initialize_dbxread): Update.
3546
cb60f420
TT
35472019-07-10 Tom Tromey <tromey@adacore.com>
3548
3549 * jit.c (jit_program_space_key): Change type. Move lower.
3550 (get_jit_program_space_data): Update.
3551 (jit_program_space_data_cleanup): Remove.
3552 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
3553 Update.
3554 (struct jit_program_space_data): Add initializers.
3555
51df2ae3
TT
35562019-07-10 Tom Tromey <tromey@adacore.com>
3557
3558 * solib-darwin.c (struct darwin_info): Add initializers.
3559 (solib_darwin_pspace_data): Change type.
3560 (darwin_pspace_data_cleanup): Remove.
3561 (get_darwin_info, _initialize_darwin_solib): Update.
3562
18101a35
TT
35632019-07-10 Tom Tromey <tromey@adacore.com>
3564
3565 * remote-sim.c (struct sim_inferior_data): Add initializers,
3566 constructor, and destructor.
3567 (sim_inferior_data_key): Change type. Move lower.
3568 (check_for_duplicate_sim_descriptor): Update.
3569 (get_sim_inferior_data): Use new. Update.
3570 (~sim_inferior_data_cleanup): Rename from
3571 sim_inferior_data_cleanup. Simplify.
3572 (gdbsim_close_inferior, simulator_command)
3573 (sim_command_completer, _initialize_remote_sim): Update.
3574 (next_pid, INITIAL_PID): Move earlier.
3575
05b08ac1
TT
35762019-07-10 Tom Tromey <tromey@adacore.com>
3577
3578 * python/python-internal.h (create_thread_object): Return
3579 gdbpy_ref.
3580 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
3581 * python/py-inferior.c (struct threadlist_entry): Add
3582 constructor.
3583 <thread_obj>: Now a gdbpy_ref.
3584 (thread_to_thread_object): Update.
3585 (add_thread_object): Use new.
3586 (delete_thread_object): Use delete.
3587 (infpy_threads): Update.
3588 (py_free_inferior): Update. Construct "inf_obj" after acquiring
3589 GIL.
3590
32372d80
TT
35912019-07-10 Tom Tromey <tromey@adacore.com>
3592
3593 * valops.c (value_cast): Specialize error message for Ada.
3594
5c458ae8
SM
35952019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3596
3597 * breakpoint.c (breakpoint_1): Update doc and parameter names.
3598
4c462cb0
SM
35992019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3600
3601 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
3602 bpstat_should_step): Return bool, adjust comments.
3603 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
3604 bpstat_should_step): Likewise.
3605
89abbcc2
AH
36062019-07-10 Alan Hayward <alan.hayward@arm.com>
3607
3608 * features/Makefile: Use feature target descriptions for Arm.
3609 * features/arm/arm-core.c: Generate new file.
3610 * features/arm/arm-fpa.c: Likewise.
3611 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
3612 * features/arm/arm-m-profile.c: Likewise.
3613 * features/arm/arm-vfpv2.c: Likewise.
3614 * features/arm/arm-vfpv3.c: Likewise.
3615 * features/arm/xscale-iwmmxt.c: Likewise.
3616 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
3617
166a82be
AH
36182019-07-10 Alan Hayward <alan.hayward@arm.com>
3619
3620 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
3621 ptrace earlier.
3622
9fb4c7e9
AH
36232019-07-10 Alan Hayward <alan.hayward@arm.com>
3624
3625 * features/aarch64-pauth.c: Regenerate.
3626
e2d0f980
SM
36272019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
3628
3629 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
3630 bool.
3631 (bpstat_what): Use false instead of 0.
3632
a38118e5
PA
36332019-07-09 Pedro Alves <palves@redhat.com>
3634
3635 * break-catch-throw.c (is_exception_catchpoint): New.
3636 * breakpoint.c (print_one_breakpoint_location): New parameter
3637 'raw_loc'. Handle it. Use
3638 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
3639 looking at the breakpoint's type.
3640 (print_one_breakpoint): If handling "maint info breakpoints", also
3641 print locations of exception catchpoints.
3642 * breakpoint.h (is_exception_catchpoint): Declare.
3643
cb1e4e32
PA
36442019-07-09 Pedro Alves <palves@redhat.com>
3645
3646 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
3647 "addr" field.
3648 (allocate_location_exception_catchpoint): New.
3649 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
3650 (initialize_throw_catchpoint_ops): Install
3651 allocate_location_exception_catchpoint as allocate_location
3652 method.
3653 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
3654 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
3655 bp_loc_other.
3656 (breakpoint_address_is_meaningful): Delete.
3657 (bl_address_is_meaningful): New.
3658 (breakpoint_locations_match): Adjust comment.
3659 (bp_location_from_bp_type): New, factored out of...
3660 (bp_location::bp_location(breakpoint *)): ... this.
3661 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
3662 factored out of...
3663 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
3664 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
3665 breakpoint_address_is_meaningful.
3666 (bp_locations_compare): Adjust comment.
3667 (update_global_location_list): Use bl_address_is_meaningful
3668 instead of breakpoint_address_is_meaningful.
3669 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
3670 explicit.
3671 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
3672 * python/py-breakpoint.c (bppy_get_location): No longer check
3673 whether location is null.
3674
b58a68fe
PA
36752019-07-09 Pedro Alves <palves@redhat.com>
3676
3677 PR c++/15468
3678 * breakpoint.c (print_one_breakpoint_location): Remove
3679 single-location assert.
3680
268a13a5
TT
36812019-07-09 Tom Tromey <tom@tromey.com>
3682
3683 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
3684 * configure: Rebuild.
3685 * configure.ac: Change common to gdbsupport.
3686 * gdbsupport: Rename from common.
3687 * acinclude.m4: Change common to gdbsupport.
3688 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
3689 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
3690 gdbsupport.
3691 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
3692 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
3693 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
3694 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
3695 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
3696 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
3697 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
3698 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
3699 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
3700 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
3701 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
3702 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
3703 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
3704 coff-pe-read.c, command.h, compile/compile-c-support.c,
3705 compile/compile-c.h, compile/compile-cplus-symbols.c,
3706 compile/compile-cplus-types.c, compile/compile-cplus.h,
3707 compile/compile-loc2c.c, compile/compile.c, completer.c,
3708 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
3709 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
3710 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
3711 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
3712 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
3713 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
3714 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
3715 features/aarch64-core.c, features/aarch64-fpu.c,
3716 features/aarch64-pauth.c, features/aarch64-sve.c,
3717 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
3718 features/i386/32bit-core.c, features/i386/32bit-linux.c,
3719 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
3720 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
3721 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
3722 features/i386/64bit-core.c, features/i386/64bit-linux.c,
3723 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
3724 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
3725 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
3726 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
3727 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
3728 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
3729 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
3730 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
3731 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
3732 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
3733 go32-nat.c, guile/guile.c, guile/scm-ports.c,
3734 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
3735 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
3736 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
3737 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
3738 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
3739 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
3740 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
3741 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
3742 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
3743 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
3744 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
3745 minsyms.c, mips-linux-tdep.c, namespace.h,
3746 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
3747 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
3748 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
3749 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
3750 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
3751 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
3752 nat/linux-waitpid.c, nat/mips-linux-watch.c,
3753 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
3754 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
3755 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
3756 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
3757 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
3758 procfs.c, producer.c, progspace.h, psymtab.h,
3759 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
3760 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
3761 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
3762 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
3763 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
3764 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
3765 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
3766 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
3767 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
3768 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
3769 target-memory.c, target.c, target.h, target/waitstatus.c,
3770 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
3771 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
3772 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
3773 unittests/array-view-selftests.c,
3774 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
3775 unittests/common-utils-selftests.c,
3776 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
3777 unittests/format_pieces-selftests.c,
3778 unittests/function-view-selftests.c,
3779 unittests/lookup_name_info-selftests.c,
3780 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
3781 unittests/mkdir-recursive-selftests.c,
3782 unittests/observable-selftests.c,
3783 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
3784 unittests/parse-connection-spec-selftests.c,
3785 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
3786 unittests/scoped_fd-selftests.c,
3787 unittests/scoped_mmap-selftests.c,
3788 unittests/scoped_restore-selftests.c,
3789 unittests/string_view-selftests.c, unittests/style-selftests.c,
3790 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
3791 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
3792 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
3793 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
3794 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
3795 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
3796
5b0e2db4
AB
37972019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3798
3799 * linespec.c (decode_digits_list_mode): Set explicit_line to a
3800 bool value.
3801 (decode_digits_ordinary): Set explicit_line field in sal.
3802 * symtab.c (skip_prologue_sal): Don't skip prologue for a
3803 symtab_and_line that was set on an explicit line number in
3804 assembler code. Do always update the recorded symtab and line if
3805 we do skip the prologue.
3806
0ba852ab
AB
38072019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3808
3809 * breakpoint.c (set_breakpoint_location_function): Remove
3810 explicit_loc parameter.
3811 (momentary_breakpoint_from_master): Update call to
3812 set_breakpoint_location_function.
3813 (add_location_to_breakpoint): Likewise.
3814
b3a7d171
AB
38152019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3816
3817 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
3818 required features based on default bfd type when no specific bfd
3819 is present.
3820
1f6f6e21
PW
38212019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3822
3823 * NEWS: Mention that GDB printf and eval commands can now print
3824 C-style and Ada-style convenience var strings without
3825 calling the inferior.
3826 * printcmd.c (printf_c_string): Locally print GDB internal var
3827 instead of transiting via the inferior.
3828 (printf_wide_c_string): Likewise.
3829
38302019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
3831
3832 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
3833
0598af48
TT
38342019-07-04 Tom Tromey <tom@tromey.com>
3835
3836 PR tui/24724:
3837 * tui/tui-winsource.c (tui_clear_source_content): Update.
3838 (tui_source_window_base::set_is_exec_point_at): Fix comment.
3839 (tui_update_breakpoint_info): Update.
3840 (tui_set_exec_info_content): Update.
3841 * tui/tui-source.c (tui_set_source_content_nil): Update.
3842 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
3843 has_break.
3844 * tui/tui-data.h (enum tui_bp_flag): New.
3845 (tui_bp_flags): New enum flags type.
3846 (struct tui_source_element) <break_mode>: Change type. Rename
3847 from has_break.
3848 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
3849 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
3850 constants.
3851 * tui/tui-winsource.h: Fix comment.
3852
350fab54
AH
38532019-07-04 Alan Hayward <alan.hayward@arm.com>
3854
3855 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
3856 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
3857 (store_fpregs_to_thread)
3858 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3859 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
3860 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
3861 (IWMMXT_REGS_SIZE): Add define.
3862 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
3863 (fetch_vfp_regs, store_vfp_regs)
3864 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3865 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
3866
f0452268
AH
38672019-07-04 Alan Hayward <alan.hayward@arm.com>
3868
3869 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
3870 defines.
3871 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
3872 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
3873 (ARM_INT_REGISTER_SIZE): ...to this.
3874 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
3875 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
3876 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
3877 (arm_linux_collect_gregset, supply_nwfpe_register)
3878 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
3879 defines.
3880 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
3881 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
3882 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
3883 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
3884 (arm_return_in_memory, arm_store_return_value)
3885 (arm_get_longjmp_target, arm_register_g_packet_guesses)
3886 (arm_record_ld_st_multiple): Likewise.
3887 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
3888 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
3889
e935475c
AH
38902019-07-04 Alan Hayward <alan.hayward@arm.com>
3891
3892 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
3893 AARCH64_DISPLACED_MODIFIED_INSNS.
3894 * aarch64-tdep.c (struct aarch64_displaced_step_data)
3895 (aarch64_displaced_step_copy_insn): Likewise.
3896 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3897 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
3898 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
3899 ARM_DISPLACED_MODIFIED_INSNS.
3900 * arm-tdep.c (arm_gdbarch_init): Likewise.
3901 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3902 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
3903 (struct arm_displaced_step_closure): Use
3904 ARM_DISPLACED_MODIFIED_INSNS.
3905
df0bb381
AH
39062019-07-04 Alan Hayward <alan.hayward@arm.com>
3907
3908 * features/Makefile: Remove unused xml files.
3909 * features/aarch64.xml: Remove.
3910 * features/i386/amd64-avx-avx512-linux.xml: Remove.
3911 * features/i386/amd64-avx-avx512.xml: Remove.
3912 * features/i386/amd64-avx-linux.xml: Remove.
3913 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
3914 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
3915 * features/i386/amd64-avx-mpx-linux.xml: Remove.
3916 * features/i386/amd64-avx-mpx.xml: Remove.
3917 * features/i386/amd64-avx.xml: Remove.
3918 * features/i386/amd64-linux.xml: Remove.
3919 * features/i386/amd64-mpx-linux.xml: Remove.
3920 * features/i386/amd64-mpx.xml: Remove.
3921 * features/i386/amd64.xml: Remove.
3922 * features/i386/i386-avx-avx512-linux.xml: Remove.
3923 * features/i386/i386-avx-avx512.xml: Remove.
3924 * features/i386/i386-avx-linux.xml: Remove.
3925 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
3926 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
3927 * features/i386/i386-avx-mpx-linux.xml: Remove.
3928 * features/i386/i386-avx-mpx.xml: Remove.
3929 * features/i386/i386-avx.xml: Remove.
3930 * features/i386/i386-linux.xml: Remove.
3931 * features/i386/i386-mmx-linux.xml: Remove.
3932 * features/i386/i386-mmx.xml: Remove.
3933 * features/i386/i386-mpx-linux.xml: Remove.
3934 * features/i386/i386-mpx.xml: Remove.
3935 * features/i386/i386.xml: Remove.
3936 * features/i386/x32-avx-avx512-linux.xml: Remove.
3937 * features/i386/x32-avx-linux.xml: Remove.
3938 * features/i386/x32-linux.xml: Remove.
3939
edd6266a
AH
39402019-07-04 Alan Hayward <alan.hayward@arm.com>
3941
3942 * regformats/aarch64.dat: Remove.
3943 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
3944 * regformats/i386/amd64-avx-linux.dat: Remove.
3945 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
3946 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
3947 * regformats/i386/amd64-linux.dat: Remove.
3948 * regformats/i386/amd64-mpx-linux.dat: Remove.
3949 * regformats/i386/amd64.dat: Remove.
3950 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
3951 * regformats/i386/i386-avx-linux.dat: Remove.
3952 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
3953 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
3954 * regformats/i386/i386-linux.dat: Remove.
3955 * regformats/i386/i386-mmx-linux.dat: Remove.
3956 * regformats/i386/i386-mpx-linux.dat: Remove.
3957 * regformats/i386/i386.dat: Remove.
3958 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
3959 * regformats/i386/x32-avx-linux.dat: Remove.
3960 * regformats/i386/x32-linux.dat: Remove.
3961
2b40fda7
AH
39622019-07-04 Alan Hayward <alan.hayward@arm.com>
3963
3964 * aarch64-tdep.c: Remove xml self tests.
3965 * amd64-linux-tdep.c: Likewise.
3966 * amd64-tdep.c: Likewise.
3967 * i386-linux-tdep.c: Likewise.
3968 * i386-tdep.c: Likewise.
3969
5f4ba3e7
PA
39702019-07-03 Pedro Alves <palves@redhat.com>
3971
3972 PR cli/24732
3973 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
3974 (pipe_cmd_option_defs): New.
3975 (make_pipe_cmd_options_def_group): New.
3976 (pipe_command): Use gdb::option::process_options.
3977 (pipe_command_completer): New function.
3978 (_initialize_cli_cmds): Install completer for "pipe" command.
3979
3d9be6f5
PA
39802019-07-03 Pedro Alves <palves@redhat.com>
3981
3982 * cli/cli-option.c (union option_value) <string>: New field.
3983 (struct option_def_and_value): Add ctor, move ctor, dtor and
3984 use DISABLE_COPY_AND_ASSIGN.
3985 (option_def_and_value::clear_value): New.
3986 (parse_option, save_option_value_in_ctx, get_val_type_str)
3987 (add_setshow_cmds_for_options): Handle var_string.
3988 * cli-option.h (union option_def::var_address) <string>: New
3989 field.
3990 (struct string_option_def): New.
3991 * maint-test-options.c (struct test_options_opts): Add default
3992 ctor and use DISABLE_COPY_AND_ASSIGN.
3993 <string_opt>: New field.
3994 (test_options_opts::~test_options_opts): New.
3995 (test_options_opts::dump): Also dump "-string".
3996 (test_options_option_defs): Install "string.
3997
41fc454c
PA
39982019-07-03 Pedro Alves <palves@redhat.com>
3999
4000 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
4001 option_value with a null enumeration.
4002 (complete_options): Save the option values in the context.
4003 (save_option_value_in_ctx): New, factored out from ...
4004 (process_options): ... here.
4005 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
4006 of the function.
4007 * maint-test-options.c (test_options_opts::dump): New, factored
4008 out from ...
4009 (maintenance_test_options_command_mode): ... here.
4010 (maintenance_test_options_command_completion_result): Delete.
4011 (maintenance_test_options_command_completion_text): Update
4012 comment.
4013 (maintenance_show_test_options_completion_result): Change
4014 prototype. Just print
4015 maintenance_test_options_command_completion_text.
4016 (save_completion_result): New.
4017 (maintenance_test_options_completer_mode): Pass options context to
4018 complete_options, and then save a dump.
4019 (_initialize_maint_test_options): Use add_cmd to install "maint
4020 show test-options-completion-result".
4021
fdbc9870
PA
40222019-07-03 Pedro Alves <palves@redhat.com>
4023
4024 * NEWS (New commands): Mention "with" and "maint with".
4025 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
4026 (with_command, with_command_completer): New.
4027 (pipe_command): Adjust to new repeat_previous
4028 interface.
4029 (_initialize_cli_cmds): Install the "with" command and its "w"
4030 alias.
4031 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
4032 declarations.
4033 * cli/cli-setshow.c (parse_cli_var_uinteger)
4034 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
4035 argument strings for all var_types.
4036 (get_setshow_command_value_string): New, factored out from ...
4037 (do_show_command): ... this.
4038 * cli/cli-setshow.h: Include <string>.
4039 (get_setshow_command_value_string): Declare.
4040 * command.h (repeat_previous): Now returns const char *. Adjust
4041 comment.
4042 * maint.c: Include "cli/cli-cmds.h".
4043 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
4044 (_initialize_maint_cmds): Register the "maintenance with" command.
4045 * top.c (repeat_previous): Move bits from pipe_command here:
4046 Return the saved command line, if any; error out if there's no
4047 command to relaunch.
4048
c6ac8931
PA
40492019-07-03 Pedro Alves <palves@redhat.com>
4050
4051 * NEWS (New commands): Mention "maint set/show test-settings"
4052 instead of "maint test-settings".
4053 * maint-test-settings.c (maintenance_test_settings_list): Delete.
4054 (maintenance_test_settings_set_list): Rename to ...
4055 (maintenance_set_test_settings_list): ... this.
4056 (maintenance_test_settings_show_list): Rename to ...
4057 (maintenance_show_test_settings_list): ... this.
4058 (maintenance_test_settings_cmd): Delete.
4059 (maintenance_test_settings_set_cmd): ...
4060 (maintenance_set_test_settings_cmd): ... this.
4061 (maintenance_test_settings_show_cmd): ...
4062 (maintenance_show_test_settings_cmd): ... this.
4063 (maintenance_test_settings_show_value_cmd):
4064 (maintenance_show_test_settings_value_cmd): ... this.
4065 (_initialize_maint_test_settings): No longer install the "maint
4066 test-settings" prefix command. Rename "maint test-settings set"
4067 to "maint set test-settings", and "maint test-settings show" to
4068 "maint show test-settings". Adjust all subcommands.
4069
d1fcf2fd
PA
40702019-07-03 Pedro Alves <palves@redhat.com>
4071
4072 * maint-test-settings.c: Fix file's intro comment. Replace all
4073 references to "test-options" with references to "test-settings",
4074 in comments.
4075
970f9d09
PA
40762019-07-03 Pedro Alves <palves@redhat.com>
4077
4078 * maint-test-settings.c (maintenance_test_settings_xxx)
4079 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
4080 New.
4081 (maintenance_test_settings_enums): Use them.
4082 (maintenance_test_settings_enum): Default to
4083 maintenance_test_settings_xxx.
4084 (_initialize_maint_test_settings): Initialize
4085 MAINTENANCE_TEST_SETTINGS_FILENAME.
4086
f3869b1a
SM
40872019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4088
4089 * breakpoint.h (remove_breakpoints_inf): Change return type to
4090 void, move function documentation here.
4091 * breakpoint.c (remove_breakpoints_inf): Change return type to
4092 void, move function documentation to header.
4093
54d66006
PA
40942019-07-02 Pedro Alves <palves@redhat.com>
4095
4096 * NEWS (Completion improvements): Mention "info threads".
4097 * thread.c (struct info_threads_opts, info_threads_option_defs)
4098 (make_info_threads_options_def_group): New.
4099 (info_threads_command): Use gdb::option::process_options.
4100 (info_threads_command_completer): New.
4101 (_initialize_thread): Use gdb::option::build_help to build the
4102 help text for "info threads".
4103
854f6088
SM
41042019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4105
4106 * defs.h (generic_load): Move from here...
4107 * symfile.h (generic_load): ... to here. Rename name parameter
4108 to args.
4109 * symfile.c (generic_load): Add comment.
4110
54ee4252
TT
41112019-07-01 Tom Tromey <tromey@adacore.com>
4112
4113 * dwarf2read.c
4114 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
4115 declaration of without_params. Fix formatting.
4116
65392b3e
TT
41172019-07-01 Tom Tromey <tromey@adacore.com>
4118
4119 * ada-exp.y (find_primitive_type): Update.
4120 * ada-lang.h (ada_lookup_symbol): Update.
4121 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
4122 parameter.
4123 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
4124
7d7571f0
SDJ
41252019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4126
4127 PR breakpoints/24541
4128 * gdbarch.c: Regenerate.
4129 * gdbarch.h: Regenerate.
4130 * gdbarch.sh: Add 'stap_adjust_register'.
4131 * i386-tdep.c: Include '<unordered_set>'.
4132 (i386_stap_adjust_register): New function.
4133 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
4134 * stap-probe.c (stap_parse_register_operand): Call
4135 'gdbarch_stap_adjust_register'.
4136
5af5392a
SDJ
41372019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4138
4139 PR python/24742
4140 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
4141 * python/python.c (do_start_initialization): Use 'xmalloc'
4142 instead of 'PyMem_Malloc'.
4143
10d06d82
TT
41442019-06-28 Tom Tromey <tromey@adacore.com>
4145
4146 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
4147 for Ada.
4148
1b7f24cd
TT
41492019-06-27 Tom Tromey <tromey@adacore.com>
4150
4151 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
4152 objfile_key.
4153 (arm_find_mapping_symbol, arm_record_special_symbol)
4154 (_initialize_arm_tdep): Update.
4155 (arm_objfile_data_free): Remove.
4156
3d507ff2
TT
41572019-06-27 Tom Tromey <tromey@adacore.com>
4158
4159 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
4160 to cp_print_static_field.
4161
762c164d
TT
41622019-06-26 Tom Tromey <tromey@adacore.com>
4163
4164 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
4165 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
4166 declare.
4167
aa2f9bcf
AH
41682019-06-26 Alan Hayward <alan.hayward@arm.com>
4169
4170 * features/aarch64-core.c (create_feature_aarch64_core):
4171 Regenerate.
4172 * features/aarch64-core.xml: Add cpsr flags.
4173
3426ae57
AH
41742019-06-26 Alan Hayward <alan.hayward@arm.com>
4175
4176 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
4177 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
4178
4838e44c
SM
41792019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4180
4181 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
4182 field.
4183 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
4184 use.
4185 (arm_record_special_symbol): Don't insert new symbol in sorted
4186 position, push it at the end.
4187
54cc7474
SM
41882019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4189
4190 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
4191 (arm_mapping_symbol_s): Remove.
4192 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
4193 (arm_mapping_symbol_vec): New typedef.
4194 (struct arm_per_objfile): Add constructor.
4195 <section_maps>: Change type to
4196 std::unique_ptr<arm_mapping_symbol_vec[]>.
4197 (arm_compare_mapping_symbols): Remove.
4198 (arm_find_mapping_symbol): Adjust to section_maps type change.
4199 (arm_objfile_data_free): Call delete on arm_per_objfile.
4200 (arm_record_special_symbol): Adjust to section_maps type change.
4201 Allocate arm_per_objfile with new.
4202
b65b566c
PW
42032019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4204
4205 * cli/cli-cmds.c (alias_command): Compare the alias prefix
4206 with the command prefix.
4207
c2fc64f5
TT
42082019-06-25 Tom Tromey <tom@tromey.com>
4209
4210 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
4211 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
4212
fb54fa76
TT
42132019-06-25 Tom Tromey <tom@tromey.com>
4214
4215 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
4216 type.
4217 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
4218 protected.
4219
f7952c57
TT
42202019-06-25 Tom Tromey <tom@tromey.com>
4221
4222 * tui/tui-winsource.c
4223 (tui_source_window_base::set_is_exec_point_at): Add check against
4224 LOA_ADDRESS.
4225
17568d78
TT
42262019-06-25 Tom Tromey <tom@tromey.com>
4227
4228 * tui/tui-source.c (tui_set_source_content): Don't check before
4229 xfree.
4230 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
4231
53e7cdba
TT
42322019-06-25 Tom Tromey <tom@tromey.com>
4233
4234 * tui/tui-winsource.h (tui_update_source_window_as_is)
4235 (tui_alloc_source_buffer, tui_line_is_displayed)
4236 (tui_addr_is_displayed): Change type of win_info.
4237 * tui/tui-winsource.c (tui_update_source_window_as_is)
4238 (tui_clear_source_content, tui_show_source_line)
4239 (tui_show_source_content, tui_source_window_base::refill)
4240 (tui_source_window_base::set_is_exec_point_at)
4241 (tui_source_window_base::set_is_exec_point_at)
4242 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
4243 (tui_alloc_source_buffer, tui_line_is_displayed)
4244 (tui_addr_is_displayed): Change type of win_info. Update.
4245 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4246 (tui_source_window_base::do_make_visible_with_new_height):
4247 Update.
4248 * tui/tui-source.c (tui_set_source_content)
4249 (tui_set_source_content_nil)
4250 (tui_source_window::do_scroll_vertical): Update.
4251 * tui/tui-layout.c (show_layout): Update.
4252 * tui/tui-disasm.c (tui_set_disassem_content)
4253 (tui_disasm_window::do_scroll_vertical): Update.
4254 * tui/tui-data.h (tui_win_content): Remove.
4255 (struct tui_gen_win_info) <content, content_size>: Remove.
4256 (struct tui_source_element): Add initializers and destructor.
4257 (union tui_which_element, struct tui_win_element): Remove.
4258 (struct tui_source_window_base) <content>: New field.
4259 (struct tui_data_window): Remove destructor.
4260 (tui_alloc_content, tui_free_win_content)
4261 (tui_free_all_source_wins_content): Don't declare.
4262 * tui/tui-data.c (tui_initialize_static_data): Update.
4263 (init_content_element, tui_alloc_content): Remove.
4264 (~tui_gen_win_info): Update.
4265 (~tui_data_window, tui_free_all_source_wins_content)
4266 (tui_free_win_content, free_content, free_content_elements):
4267 Remove.
4268
7908abbf
TT
42692019-06-25 Tom Tromey <tom@tromey.com>
4270
4271 * tui/tui-winsource.h (tui_clear_source_content)
4272 (tui_erase_source_content, tui_show_source_content): Change type
4273 of win_info.
4274 * tui/tui-winsource.c (tui_clear_source_content)
4275 (tui_erase_source_content, tui_show_source_content): Change type
4276 of win_info.
4277 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4278 * tui/tui-source.h (tui_set_source_content_nil): Change type of
4279 win_info.
4280 * tui/tui-source.c (tui_set_source_content_nil): Change type of
4281 win_info.
4282 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
4283
02c28df0
TT
42842019-06-25 Tom Tromey <tom@tromey.com>
4285
4286 * tui/tui-winsource.c (tui_clear_source_content)
4287 (tui_source_window_base::set_is_exec_point_at): Update.
4288 * tui/tui-source.c (tui_set_source_content_nil): Update.
4289 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
4290 a bool.
4291 * tui/tui-data.c (init_content_element): Update.
4292
6658b1bf
TT
42932019-06-25 Tom Tromey <tom@tromey.com>
4294
4295 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
4296 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
4297 * tui/tui-layout.c (init_and_make_win): Update.
4298 * tui/tui.h (enum tui_win_type): Update.
4299 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
4300 tui_win_is_auxillary.
4301 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
4302 tui_win_is_auxillary.
4303
21e1c91e
TT
43042019-06-25 Tom Tromey <tom@tromey.com>
4305
4306 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
4307 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
4308 (tui_delete_data_content_windows, tui_display_all_data)
4309 (tui_data_window::do_scroll_vertical, tui_display_data_from):
4310 Update.
4311 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
4312 * tui/tui-regs.c (tui_last_regs_line_no)
4313 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4314 (tui_show_registers): Update.
4315 (tui_show_register_group): Return void. Update.
4316 (tui_display_registers_from, tui_display_reg_element_at_line)
4317 (tui_display_registers_from_line, tui_check_register_values):
4318 Update.
4319 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
4320 member.
4321 (struct tui_data_window) <regs_content>: Now a std::vector.
4322 <regs_content_count>: Remove.
4323 (tui_add_content_elements, tui_free_data_content): Don't declare.
4324 * tui/tui-data.c (tui_data_window::clear_detail): Update.
4325 (init_content_element): Remove DATA_WIN case. Add assert.
4326 (tui_add_content_elements): Remove.
4327 (tui_data_window): Update.
4328 (tui_free_data_content): Remove.
4329 (free_content_elements): Remove DATA_WIN case.
4330
115ac53b
TT
43312019-06-25 Tom Tromey <tom@tromey.com>
4332
4333 * tui/tui-data.c (tui_data_item_window): Update.
4334 * tui/tui-windata.h (tui_check_data_values): Don't declare.
4335 * tui/tui-windata.c (tui_display_all_data)
4336 (tui_display_data_from_line): Update.
4337 (tui_check_data_values): Remove.
4338 * tui/tui-regs.c (tui_show_register_group)
4339 (tui_display_reg_element_at_line): Update.
4340 * tui/tui-hooks.c (tui_register_changed)
4341 (tui_refresh_frame_and_register_information): Call
4342 tui_check_register_values.
4343 * tui/tui-data.h (struct tui_data_window) <data_content,
4344 data_content_count, data_type>: Remove.
4345 (enum tui_data_type): Remove.
4346
4347 * tui/tui-data.c (tui_data_window::clear_detail)
4348 (~tui_data_window): Update.
4349
eaf9738b
TT
43502019-06-25 Tom Tromey <tom@tromey.com>
4351
4352 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
4353 declare.
4354 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
4355 Rename from tui_first_data_item_displayed. Update.
4356 (tui_data_window::refresh_all)
4357 (tui_data_window::do_scroll_vertical): Update.
4358 * tui/tui-data.h (struct tui_data_window)
4359 <first_data_item_displayed>: Declare new method.
4360
31ca4723
TT
43612019-06-25 Tom Tromey <tom@tromey.com>
4362
4363 * tui/tui-data.h (tui_init_generic_part): Don't declare.
4364 * tui/tui-data.c (tui_init_generic_part): Remove, moving
4365 contents...
4366 (tui_initialize_static_data): ...here.
4367
41bcff7f
TT
43682019-06-25 Tom Tromey <tom@tromey.com>
4369
4370 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4371 (tui_display_registers_from, tui_check_register_values): Update.
4372 (tui_display_register): Remove win_info parameter; update.
4373 (tui_get_register): Change type of parameters.
4374 * tui/tui-data.h (struct tui_data_element): Remove.
4375 (union tui_which_element) <data>: Remove.
4376 <data_window>: Change type.
4377 (struct tui_data_item_window): New.
4378 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
4379 case. Add assert.
4380 (~tui_data_item_window): New destructor.
4381 (free_content_elements): Remove DATA_ITEM_WIN case.
4382
d2802c33
TT
43832019-06-25 Tom Tromey <tom@tromey.com>
4384
4385 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
4386 Remove.
4387
dd835f8b
TT
43882019-06-25 Tom Tromey <tom@tromey.com>
4389
4390 * tui/tui-data.h (struct tui_command_element): Remove.
4391 (union tui_which_element) <command>: Remove.
4392 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
4393 assert.
4394 (free_content_elements): Remove CMD_WIN case.
4395
bd7db367
TT
43962019-06-25 Tom Tromey <tom@tromey.com>
4397
4398 * tui/tui-layout.c (tui_set_layout): Update.
4399 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
4400 * tui/tui-data.c (layout_def): Update.
4401
3add462f
TT
44022019-06-25 Tom Tromey <tom@tromey.com>
4403
4404 * tui/tui-wingeneral.c (tui_refresh_all): Update.
4405 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4406 (tui_source_window_base::set_new_height): Update.
4407 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
4408 Update.
4409 (tui_set_locator_fullname, tui_set_locator_info)
4410 (tui_show_frame_info): Update.
4411 * tui/tui-source.c (tui_set_source_content)
4412 (tui_source_is_displayed): Update.
4413 * tui/tui-layout.c (show_source_disasm_command, show_data)
4414 (show_source_or_disasm_and_command): Update.
4415 * tui/tui-disasm.c (tui_set_disassem_content)
4416 (tui_get_begin_asm_address): Update.
4417 * tui/tui-data.h (struct tui_locator_element): Remove.
4418 (union tui_which_element) <locator>: Remove.
4419 (struct tui_locator_window): New.
4420 (tui_locator_win_info_ptr): Change return type.
4421 * tui/tui-data.c (_locator): Change type.
4422 (tui_locator_win_info_ptr): Change return type.
4423 (init_content_element): Remove LOCATOR_WIN case. Add assert.
4424 (tui_alloc_content): Add assert.
4425
489e9d8b
TT
44262019-06-25 Tom Tromey <tom@tromey.com>
4427
4428 * tui/tui-winsource.c
4429 (tui_exec_info_window::maybe_allocate_content): New method.
4430 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
4431 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
4432 (make_source_or_disasm_window): Add cast.
4433 * tui/tui-data.h (union tui_which_element) <simple_string>:
4434 Remove.
4435 (struct tui_source_info): New.
4436 (struct tui_source_window_base) <execution_info>: Change type.
4437 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
4438 case, and add assert.
4439 (tui_alloc_content): Add assert.
4440
c3fabb7d
TT
44412019-06-25 Tom Tromey <tom@tromey.com>
4442
4443 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
4444 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
4445 * tui/tui-data.c (tui_alloc_win_info): Remove.
4446
bbc228ee
TT
44472019-06-25 Tom Tromey <tom@tromey.com>
4448
4449 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
4450 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
4451 can_highlight.
4452
5fcee43a
TT
44532019-06-25 Tom Tromey <tom@tromey.com>
4454
4455 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
4456 make_visible_with_new_height method.
4457 (tui_win_info::make_visible_with_new_height): New method.
4458 (tui_source_window_base::do_make_visible_with_new_height)
4459 (tui_data_window::do_make_visible_with_new_height)
4460 (tui_cmd_window::do_make_visible_with_new_height): New methods.
4461 (make_visible_with_new_height): Remove.
4462 (tui_resize_all, tui_adjust_win_heights): Use
4463 make_visible_with_new_height method.
4464 * tui/tui-data.h (struct tui_win_info)
4465 <do_make_visible_with_new_height, make_visible_with_new_height>:
4466 New methods.
4467 (struct tui_source_window_base, struct tui_data_window)
4468 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
4469 methods.
4470
d83f1fe6
TT
44712019-06-25 Tom Tromey <tom@tromey.com>
4472
4473 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
4474 method.
4475 (update_tab_width): Call update_tab_width method.
4476 * tui/tui-data.h (struct tui_win_info)
4477 (struct tui_source_window_base) <update_tab_width>: New methods.
4478
17374de4
TT
44792019-06-25 Tom Tromey <tom@tromey.com>
4480
4481 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
4482 parameter.
4483 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
4484 parameter.
4485 (tui_gen_win_info::make_visible): Update.
4486 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
4487 parameter.
4488 * tui/tui-data.h (enum tui_box): New enum.
4489 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
4490
f936bca2
TT
44912019-06-25 Tom Tromey <tom@tromey.com>
4492
4493 * tui/tui-layout.c (make_source_or_disasm_window): Always use
4494 init_and_make_win for EXEC_INFO_WIN.
4495 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
4496 longer inline.
4497 (struct tui_win_info) <~tui_win_info>: Inline.
4498 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4499 Don't declare.
4500 * tui/tui-data.c (source_win, disasm_win): Remove globals.
4501 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4502 Remove.
4503 (tui_initialize_static_data): Update.
4504 (~tui_gen_win_info): Handle more cleanup here.
4505 (~tui_source_window_base): Delete "execution_info".
4506 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
4507
d6ba6a11
TT
45082019-06-25 Tom Tromey <tom@tromey.com>
4509
4510 * tui/tui-layout.c (make_command_window): Don't set
4511 can_highlight.
4512 (show_source_disasm_command): Call the reset method.
4513 (show_data): Don't set can_highlight. Call the reset method.
4514 (tui_gen_win_info::reset): Rename from init_gen_win_info
4515 (init_and_make_win): Simplify. Return tui_gen_win_info.
4516 (show_source_or_disasm_and_command): Call the reset method.
4517 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
4518 (struct tui_cmd_window): Set can_highlight.
4519
48a3bd16
TT
45202019-06-25 Tom Tromey <tom@tromey.com>
4521
4522 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
4523 from make_visible.
4524 (tui_make_visible, tui_make_invisible): Rewrite.
4525 (tui_win_info::make_visible): Remove.
4526 (tui_source_window_base::make_visible): Update.
4527 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
4528 method. Moved from...
4529 (struct tui_win_info) <make_visible>: ...here.
4530
c3bd716f
TT
45312019-06-25 Tom Tromey <tom@tromey.com>
4532
4533 * tui/tui-winsource.c
4534 (tui_source_window_base::do_scroll_horizontal): Remove direction
4535 parameter.
4536 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
4537 direction parameter.
4538 * tui/tui-win.c (tui_win_info::forward_scroll)
4539 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4540 (tui_win_info::right_scroll): Update.
4541 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
4542 direction parameter.
4543 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
4544 direction parameter.
4545 * tui/tui-data.h (enum tui_scroll_direction): Remove.
4546 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
4547 Remove direction parameter.
4548 (struct tui_source_window_base, struct tui_source_window)
4549 (struct tui_disasm_window, struct tui_data_window)
4550 (struct tui_cmd_window): Update.
4551
21c32dca
TT
45522019-06-25 Tom Tromey <tom@tromey.com>
4553
4554 * tui/tui-winsource.h (tui_set_exec_info_content)
4555 (tui_show_exec_info_content, tui_erase_exec_info_content)
4556 (tui_clear_exec_info_content, tui_update_exec_info): Change
4557 argument to tui_source_window_base.
4558 * tui/tui-winsource.c (tui_set_exec_info_content)
4559 (tui_show_exec_info_content, tui_erase_exec_info_content)
4560 (tui_clear_exec_info_content, tui_update_exec_info): Change
4561 argument to tui_source_window_base.
4562
73fbdc65
TT
45632019-06-25 Tom Tromey <tom@tromey.com>
4564
4565 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
4566 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
4567
33325343
TT
45682019-06-25 Tom Tromey <tom@tromey.com>
4569
4570 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
4571 check.
4572
29d2c474
TT
45732019-06-25 Tom Tromey <tom@tromey.com>
4574
4575 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
4576 type to void.
4577 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
4578 type to void.
4579 * tui/tui-source.c (tui_set_source_content): Update.
4580 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4581
152f3f4b
TT
45822019-06-25 Tom Tromey <tom@tromey.com>
4583
4584 * tui/tui-win.c (window_name_completer, tui_set_focus)
4585 (tui_all_windows_info): Use name method.
4586 * tui/tui-data.h (struct tui_gen_win_info)
4587 (struct tui_source_window, struct tui_disasm_window)
4588 (struct tui_data_window, struct tui_cmd_window) <name>: New
4589 method.
4590 (tui_win_name): Don't declare.
4591 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
4592 (tui_win_name): Remove.
4593
be4da588
TT
45942019-06-25 Tom Tromey <tom@tromey.com>
4595
4596 * tui/tui-winsource.h (tui_update_source_window)
4597 (tui_update_source_window_as_is): Change parameter type.
4598 * tui/tui-winsource.c (tui_update_source_window): Change win_info
4599 to be a tui_source_window_base.
4600 (tui_update_source_window_as_is): Likewise.
4601 * tui/tui-win.c (make_visible_with_new_height): Update.
4602
5b81daba
TT
46032019-06-25 Tom Tromey <tom@tromey.com>
4604
4605 * tui/tui-winsource.c (tui_erase_source_content)
4606 (tui_show_source_content, tui_show_exec_info_content)
4607 (tui_erase_exec_info_content): Use refresh_window method.
4608 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
4609 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
4610 from tui_refresh_win.
4611 (tui_data_window::refresh_window): New method.
4612 (tui_win_info::refresh, tui_source_window_base::refresh)
4613 (tui_refresh_all): Use refresh_window method.
4614 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
4615 method.
4616 * tui/tui-regs.c (tui_display_register): Call refresh_window
4617 method.
4618 * tui/tui-layout.c (show_source_disasm_command)
4619 (show_source_or_disasm_and_command): Call refresh_window method.
4620 * tui/tui-data.h (struct tui_gen_win_info)
4621 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
4622 New method.
4623
cb2ce893
TT
46242019-06-25 Tom Tromey <tom@tromey.com>
4625
4626 * tui/tui.c (tui_rl_other_window, tui_enable)
4627 (tui_is_window_visible, tui_get_command_dimension): Update.
4628 * tui/tui-winsource.c (tui_update_source_window_as_is)
4629 (tui_clear_source_content, tui_erase_source_content)
4630 (tui_show_source_line, tui_source_window_base::refill)
4631 (tui_source_window_base::do_scroll_horizontal)
4632 (tui_source_window_base::set_is_exec_point_at)
4633 (tui_update_breakpoint_info, tui_set_exec_info_content)
4634 (tui_alloc_source_buffer, tui_line_is_displayed)
4635 (tui_addr_is_displayed): Update.
4636 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4637 (tui_check_and_display_highlight_if_needed)
4638 (tui_win_info::make_visible, tui_win_info::refresh)
4639 (tui_refresh_all): Update.
4640 * tui/tui-windata.c (tui_first_data_item_displayed)
4641 (tui_delete_data_content_windows, tui_erase_data_content)
4642 (tui_display_all_data, tui_data_window::refresh_all)
4643 (tui_check_data_values): Update.
4644 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
4645 (tui_set_win_focus_to, tui_win_info::forward_scroll)
4646 (tui_win_info::backward_scroll, tui_refresh_all_win)
4647 (tui_resize_all, tui_set_focus, tui_all_windows_info)
4648 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
4649 (tui_source_window_base::set_new_height)
4650 (tui_data_window::set_new_height)
4651 (make_invisible_and_set_new_height)
4652 (make_visible_with_new_height, new_height_ok)
4653 (parse_scrolling_args): Update.
4654 * tui/tui-stack.c (tui_show_frame_info): Update.
4655 * tui/tui-source.c (tui_set_source_content)
4656 (tui_set_source_content_nil, tui_source_is_displayed)
4657 (tui_source_window::do_scroll_vertical): Update.
4658 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4659 (tui_display_registers_from, tui_display_reg_element_at_line)
4660 (tui_check_register_values, tui_reg_command): Update.
4661 * tui/tui-layout.c (tui_default_win_height)
4662 (show_source_disasm_command, show_data, init_and_make_win)
4663 (show_source_or_disasm_and_command): Update.
4664 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
4665 (tui_redisplay_readline, tui_mld_flush)
4666 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
4667 (tui_getc): Update.
4668 * tui/tui-disasm.c (tui_set_disassem_content)
4669 (tui_disasm_window::do_scroll_vertical): Update.
4670 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
4671 Now virtual.
4672 (struct tui_win_info): Derive from tui_gen_win_info.
4673 <~tui_win_info>: Mark as override.
4674 <generic>: Remove member.
4675 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
4676 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
4677 (~tui_data_window, ~tui_win_info)
4678 (tui_free_all_source_wins_content): Update.
4679 * tui/tui-command.c (tui_refresh_cmd_win): Update.
4680
ab313b35
TT
46812019-06-25 Tom Tromey <tom@tromey.com>
4682
4683 * tui/tui-layout.c (init_and_make_win): Use new.
4684 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
4685 destructor, initializers.
4686 (tui_alloc_generic_win_info): Don't declare.
4687 * tui/tui-data.c (_locator): Add argument to constructor.
4688 (source_win, disasm_win): New globals.
4689 (exec_info): Remove.
4690 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4691 Update.
4692 (tui_alloc_generic_win_info): Remove.
4693 (init_content_element): Use new.
4694 (tui_win_info::tui_win_info): Update.
4695 (free_content_elements) <case DATA_WIN>: Use delete.
4696
dc2c33e4
TT
46972019-06-25 Tom Tromey <tom@tromey.com>
4698
4699 * tui/tui-wingeneral.c (tui_refresh_win): Update.
4700 * tui/tui-windata.c (tui_first_data_item_displayed)
4701 (tui_delete_data_content_windows): Update.
4702 * tui/tui-win.c (tui_data_window::set_new_height): Update.
4703 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4704 (tui_display_registers_from, tui_check_register_values): Update.
4705 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
4706 pointer.
4707 * tui/tui-data.c (init_content_element): Update. Allocate the new
4708 window.
4709 (tui_free_data_content): Update.
4710 (free_content_elements) <case DATA_WIN>: Free the window.
4711
214a5cbe
TT
47122019-06-25 Tom Tromey <tom@tromey.com>
4713
4714 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
4715 Update.
4716 * tui/tui-layout.c (make_command_window)
4717 (show_source_disasm_command, show_data, init_and_make_win)
4718 (show_source_or_disasm_and_command): Update.
4719 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
4720 method.
4721 <can_highight, is_highlighted>: Now bool.
4722 (tui_set_win_highlight): Don't declare.
4723 * tui/tui-data.c (tui_set_win_highlight): Remove.
4724
8e2daf15
TT
47252019-06-25 Tom Tromey <tom@tromey.com>
4726
4727 * tui/tui-wingeneral.c (make_visible): Remove check of window
4728 type.
4729
8903bd8a
TT
47302019-06-25 Tom Tromey <tom@tromey.com>
4731
4732 * tui/tui-win.c (tui_win_info::max_height)
4733 (tui_cmd_window::max_height): New methods.
4734 (new_height_ok): Call max_height.
4735 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
4736 <max_height>: New method.
4737
3f02ce1e
TT
47382019-06-25 Tom Tromey <tom@tromey.com>
4739
4740 * tui/tui-win.c (tui_source_window_base::set_new_height)
4741 (tui_data_window::set_new_height): New methods.
4742 (make_invisible_and_set_new_height): Call set_new_height method.
4743 * tui/tui-data.h (struct tui_win_info)
4744 (struct tui_source_window_base, struct tui_data_window)
4745 <set_new_height>: New method.
4746
1825f487
TT
47472019-06-25 Tom Tromey <tom@tromey.com>
4748
4749 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
4750 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
4751 tui_refresh_data_win.
4752 * tui/tui-win.c (tui_source_window_base::refresh_all): New
4753 method.
4754 (tui_refresh_all_win): Call the refresh_all method.
4755 (tui_set_focus): Likewise.
4756 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
4757 (struct tui_source_window_base, struct tui_data_window) <refresh>:
4758 Likewise.
4759
ad54d15b
TT
47602019-06-25 Tom Tromey <tom@tromey.com>
4761
4762 * tui/tui-winsource.h (tui_refill_source_window)
4763 (tui_set_is_exec_point_at): Don't declare.
4764 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4765 (tui_source_window_base::refill): Rename from
4766 tui_refill_source_window.
4767 (tui_source_window_base::do_scroll_horizontal): Update.
4768 (tui_source_window_base::set_is_exec_point_at): Rename from
4769 tui_set_is_exec_point_at.
4770 (tui_update_all_breakpoint_info): Update.
4771 * tui/tui-stack.c (tui_show_frame_info): Update.
4772 * tui/tui-layout.c (show_data): Add cast.
4773 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
4774 * tui/tui-data.h (struct tui_source_window_base) <refill,
4775 set_is_exec_point_at>: New methods.
4776 (tui_source_windows, tui_add_to_source_windows): Update types.
4777 (tui_add_to_source_windows): Remove redundant declaration.
4778 * tui/tui-data.c (source_windows): Store tui_source_window_base.
4779 (tui_source_windows): Change return type.
4780 (tui_clear_source_windows_detail): Update.
4781 (tui_add_to_source_windows): Change type of parameter.
4782 (tui_free_all_source_wins_content): Update.
4783
2042b506
TT
47842019-06-25 Tom Tromey <tom@tromey.com>
4785
4786 * tui/tui-wingeneral.c (tui_win_info::refresh)
4787 (tui_source_window_base::refresh): New methods.
4788 (tui_refresh_all): Call the refresh method.
4789 * tui/tui-data.h (struct tui_win_info)
4790 (struct tui_source_window_base) <refresh>: New method.
4791
56122977
TT
47922019-06-25 Tom Tromey <tom@tromey.com>
4793
4794 * tui/tui.h (tui_is_window_visible): Return bool.
4795 * tui/tui.c (tui_is_window_visible): Return bool.
4796 * tui/tui-wingeneral.c (tui_make_window, make_visible)
4797 (tui_make_visible, tui_make_invisible)
4798 (tui_win_info::make_visible)
4799 (tui_source_window_base::make_visible, make_all_visible)
4800 (tui_make_all_visible, tui_make_all_invisible): Update.
4801 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
4802 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
4803 bool.
4804 (struct tui_win_info, struct tui_source_window_base)
4805 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
4806 * tui/tui-data.c (tui_init_generic_part): Update.
4807
cda37efb
TT
48082019-06-25 Tom Tromey <tom@tromey.com>
4809
4810 * tui/tui-wingeneral.c (tui_win_info::make_visible)
4811 (tui_source_window_base::make_visible): New methods.
4812 (make_all_visible): Make method call.
4813 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
4814 (struct tui_source_window_base, struct tui_cmd_window): Override
4815 make_visible.
4816 (tui_win_is_source_type): Don't declare.
4817 * tui/tui-data.c (tui_win_is_source_type): Remove.
4818
6a0ee02c
TT
48192019-06-25 Tom Tromey <tom@tromey.com>
4820
4821 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
4822 NULL check.
4823
63901aec
TT
48242019-06-25 Tom Tromey <tom@tromey.com>
4825
4826 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
4827 Inline constructor. Add initializers for members.
4828 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
4829 constructors; now inline in class.
4830
ceb13a13
TT
48312019-06-25 Tom Tromey <tom@tromey.com>
4832
4833 * tui/tui-regs.c (tui_show_registers): Update.
4834 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
4835 bool.
4836 * tui/tui-data.c (tui_data_window::clear_detail)
4837 (tui_data_window): Update.
4838
238eb706
TT
48392019-06-25 Tom Tromey <tom@tromey.com>
4840
4841 * tui/tui-windata.c (tui_display_all_data)
4842 (tui_display_data_from_line, tui_display_data_from)
4843 (tui_check_data_values, tui_data_window::do_scroll_vertical):
4844 Update.
4845 * tui/tui-regs.c (tui_last_regs_line_no)
4846 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4847 (tui_show_registers, tui_show_register_group)
4848 (tui_display_registers_from, tui_display_reg_element_at_line)
4849 (tui_display_registers_from_line, tui_check_register_values)
4850 (tui_reg_next, tui_reg_prev): Update.
4851 * tui/tui-layout.c (tui_set_layout, show_data): Update.
4852 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
4853 tui_data_window.
4854 (struct tui_win_info) <detail>: Remove. Add new fields from
4855 tui_data_info.
4856 (TUI_DATA_WIN): Add cast.
4857 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
4858 (~tui_data_window): Simplify.
4859
81491aa0
TT
48602019-06-25 Tom Tromey <tom@tromey.com>
4861
4862 * tui/tui-layout.c (show_source_disasm_command)
4863 (show_source_or_disasm_and_command): Update.
4864 * tui/tui-io.c (update_cmdwin_start_line)
4865 (tui_redisplay_readline): Update.
4866 * tui/tui-data.h (struct tui_command_info): Remove.
4867 (struct tui_win_info) <detail>: Remove command_info member.
4868 (struct tui_data_window) <start_line>: New member, from
4869 tui_command_info.
4870 (TUI_CMD_WIN): Add casts.
4871
e6e41501
TT
48722019-06-25 Tom Tromey <tom@tromey.com>
4873
4874 * tui/tui-winsource.c (tui_update_source_window)
4875 (tui_refill_source_window)
4876 (tui_source_window_base::do_scroll_horizontal)
4877 (tui_update_breakpoint_info, tui_set_exec_info_content)
4878 (tui_show_exec_info_content, tui_erase_exec_info_content)
4879 (tui_clear_exec_info_content): Update.
4880 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
4881 Update.
4882 * tui/tui-win.c (make_invisible_and_set_new_height)
4883 (make_visible_with_new_height): Update.
4884 * tui/tui-source.c (tui_set_source_content)
4885 (tui_show_symtab_source): Update.
4886 * tui/tui-layout.c (extract_display_start_addr)
4887 (show_source_disasm_command, show_data)
4888 (make_source_or_disasm_window)
4889 (show_source_or_disasm_and_command): Update.
4890 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
4891 (tui_disasm_window::do_scroll_vertical): Remove shadowing
4892 "gdbarch".
4893 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
4894 to tui_source_window_base.
4895 (struct tui_win_info) <detail>: Remove source_info member.
4896 (struct tui_source_window_base) <has_locator>: Inline.
4897 Move contents from tui_source_info; rename has_locator member to
4898 m_has_locator.
4899 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
4900 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
4901 header file.
4902 (tui_source_window_base::clear_detail, ~tui_source_window_base):
4903 Simplify.
4904 (tui_free_all_source_wins_content): Cast to
4905 tui_source_window_base.
4906
44f0e208
TT
49072019-06-25 Tom Tromey <tom@tromey.com>
4908
4909 * tui/tui-win.c (make_invisible_and_set_new_height)
4910 (make_visible_with_new_height): Call has_locator method.
4911 * tui/tui-layout.c (show_source_disasm_command, show_data)
4912 (show_source_or_disasm_and_command): Update for bool change.
4913 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
4914 (tui_win_info) <has_locator>: New method.
4915 (struct tui_source_window_base) <has_locator>: New method.
4916 (tui_win_has_locator): Don't declare.
4917 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
4918 from tui_win_has_locator.
4919 (tui_source_window_base): Use false, not FALSE.
4920
7778b912
TT
49212019-06-25 Tom Tromey <tom@tromey.com>
4922
4923 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
4924 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
4925 clear_detail method directly.
4926 (tui_clear_win_detail): Remove.
4927
f83d391c
TT
49282019-06-25 Tom Tromey <tom@tromey.com>
4929
4930 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
4931 "this", not TUI_DISASM_WIN.
4932
13446e05
TT
49332019-06-25 Tom Tromey <tom@tromey.com>
4934
4935 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
4936 declare.
4937 * tui/tui-winsource.c
4938 (tui_source_window_base::do_scroll_horizontal): Rename from
4939 tui_horizontal_source_scroll.
4940 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
4941 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
4942 from tui_vertical_data_scroll.
4943 * tui/tui-win.h (tui_scroll): Don't declare.
4944 * tui/tui-win.c (tui_win_info::forward_scroll)
4945 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4946 (tui_win_info::right_scroll): Rename and update.
4947 (tui_scroll_forward_command, tui_scroll_backward_command)
4948 (tui_scroll_left_command, tui_scroll_right_command): Update.
4949 (tui_scroll): Remove.
4950 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
4951 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
4952 from tui_vertical_source_scroll.
4953 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
4954 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
4955 from tui_vertical_disassem_scroll.
4956 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
4957 do_scroll_horizontal>: New methods.
4958 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
4959 Likewise.
4960 (struct tui_source_window_base): Add do_scroll_horizontal.
4961 (struct tui_source_window, struct tui_disasm_window): Add
4962 do_scroll_vertical.
4963 (struct tui_data_window, struct tui_cmd_window): Add
4964 do_scroll_horizontal and do_scroll_vertical.
4965 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
4966
5cf82909
TT
49672019-06-25 Tom Tromey <tom@tromey.com>
4968
4969 * tui/tui-data.h (struct tui_source_window_base): New struct.
4970 (struct tui_source_window): Derive from tui_source_window_base.
4971 (struct tui_disasm_window): New struct.
4972 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
4973 from tui_source_window::clear_detail.
4974 (tui_source_window_base): Rename from tui_source_window.
4975 (~tui_source_window_base): Rename from ~tui_source_window.
4976 (tui_alloc_win_info): Create a tui_disasm_window.
4977
ee1d42d6
TT
49782019-06-25 Tom Tromey <tom@tromey.com>
4979
4980 * tui/tui-data.h (struct tui_source_window)
4981 (struct tui_data_window): Declare destructors.
4982 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
4983 destructors.
4984 (tui_win_info): Simplify.
4985
b4eb2452
TT
49862019-06-25 Tom Tromey <tom@tromey.com>
4987
4988 * tui/tui-winsource.c (tui_display_main)
4989 (tui_update_source_windows_with_addr)
4990 (tui_update_all_breakpoint_info): Update.
4991 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4992 (new_height_ok, parse_scrolling_args): Update.
4993 * tui/tui-stack.c (tui_show_frame_info): Update.
4994 * tui/tui-data.h (struct tui_list): Remove.
4995 (tui_source_windows): Return a reference to a std::vector.
4996 * tui/tui-data.c (source_windows): Now a std::vector.
4997 (tui_source_windows): Change return type.
4998 (tui_clear_source_windows): Rewrite.
4999 (tui_clear_source_windows_detail, tui_add_to_source_windows)
5000 (tui_free_all_source_wins_content): Rewrite.
5001
8761a91b
TT
50022019-06-25 Tom Tromey <tom@tromey.com>
5003
5004 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
5005 (struct tui_data_window, struct tui_cmd_window): Declare
5006 clear_detail method.
5007 * tui/tui-data.c (tui_source_window::clear_detail)
5008 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
5009 methods.
5010 (tui_clear_win_detail): Simplify.
5011
0ed69eda
TT
50122019-06-25 Tom Tromey <tom@tromey.com>
5013
5014 * tui/tui-layout.c (make_source_window, make_disasm_window)
5015 (make_source_or_disasm_window): Remove win_info_ptr parameter.
5016 Return the new window.
5017 (show_source_disasm_command, show_data)
5018 (show_source_or_disasm_and_command): Update.
5019
82432e10
TT
50202019-06-25 Tom Tromey <tom@tromey.com>
5021
5022 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
5023 parameter. Return the new window.
5024 (show_source_disasm_command): Update and remove NULL check.
5025 (show_source_or_disasm_and_command): Update.
5026
ec328aa5
TT
50272019-06-25 Tom Tromey <tom@tromey.com>
5028
5029 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
5030
33b906ab
TT
50312019-06-25 Tom Tromey <tom@tromey.com>
5032
5033 * tui/tui-data.h (struct tui_win_info): Make constructor
5034 protected. Make destructor virtual. Add initializers.
5035 (tui_source_window, tui_data_window, tui_cmd_window): New
5036 classes.
5037 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
5038 constructor. Add "type" parameter.
5039 (tui_source_window, tui_data_window, tui_cmd_window): New
5040 constructors.
5041 (tui_alloc_win_info): Instantiate the appropriate subclass.
5042
e7e11af4
TT
50432019-06-25 Tom Tromey <tom@tromey.com>
5044
5045 * tui/tui-win.c (tui_resize_all): Use delete.
5046 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
5047 destructor.
5048 (tui_free_window): Don't declare.
5049 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
5050 Update.
5051
6792b55e
TT
50522019-06-25 Tom Tromey <tom@tromey.com>
5053
5054 * tui/tui-data.h (struct tui_win_info): Add constructor.
5055 * tui/tui-data.c (tui_alloc_win_info): Use new.
5056 (tui_free_window): Use delete.
5057
f95675e1
TT
50582019-06-22 Tom Tromey <tom@tromey.com>
5059
5060 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
5061 declare.
5062 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
5063
5bff081c
TT
50642019-06-22 Tom Tromey <tom@tromey.com>
5065
5066 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
5067 declare.
5068 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
5069
47e3f474
TV
50702019-06-22 Tom de Vries <tdevries@suse.de>
5071
5072 * dwarf2read.c (create_addrmap_from_aranges)
5073 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
5074 instead of '%zu'.
5075
fd5866f6
SM
50762019-06-21 Simon Marchi <simon.marchi@efficios.com>
5077
5078 * dwarf2read.h (dwarf2_section_info_def): Remove.
5079 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
5080 * dwarf2read.c (struct dwo_sections) <types>: Change type to
5081 std::vector<dwarf2_section_info>.
5082 (struct dwo_file) <~dwo_file>: Remove.
5083 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
5084 types field.
5085 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
5086 (dwarf2_read_debug_names): Likewise.
5087 (create_debug_types_hash_table): Change parameter type to
5088 array_view, adjust code accordingly.
5089 (dwarf2_locate_dwo_sections): Adjust to std::vector.
5090 (partial_die_info::fixup): Likewise.
5091 (determine_prefix): Likewise.
5092 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
5093
fb1eb2f9
SM
50942019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5095
5096 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
5097 gdb_bfd_ref_ptr.
5098 <~dwo_file>: Remove call to gdb_bfd_unref.
5099 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
5100 gdb_bfd_ref_ptr::get.
5101
51ac9db5
SM
51022019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5103
5104 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
5105 type to htab_up.
5106 * dwarf2read.c (struct dwo_file): Initialize fields.
5107 <~dwo_file>: New.
5108 (free_dwo_file): Remove, move content to ~dwo_file.
5109 (struct dwo_file_deleter): Remove.
5110 (dwo_file_up>: Remove custom deleter.
5111 (free_dwo_files): Remove.
5112 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
5113 dwo_files.
5114 (process_skeletonless_type_units): Call unique_ptr::get.
5115 (allocate_dwo_file_hash_table): Add deleter to created hash
5116 table. Change return type to htab_up.
5117 (lookup_dwo_file_slot): Don't memset dwo_file, call
5118 unique_ptr::get.
5119 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
5120 (create_dwo_unit_in_dwp_v2): Likewise.
5121 (open_and_init_dwo_file): Likewise.
5122 (free_dwo_file_from_slot): Remove.
5123
dc4ccb6f
SM
51242019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5125
5126 * dwarf2read.h (struct dwarf2_section_info) <readin,
5127 is_virtual>: Change type to bool.
5128 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
5129 true instead of 1.
5130
e6a1c5cb
TT
51312019-06-19 Tom Tromey <tom@tromey.com>
5132
5133 * tui/tui-data.h (tui_init_content_element): Don't declare.
5134
6f6ffbeb
TT
51352019-06-19 Tom Tromey <tom@tromey.com>
5136
5137 * tui/tui-data.h (tui_init_win_info): Don't declare.
5138
f23f598e
TV
51392019-06-19 Tom de Vries <tdevries@suse.de>
5140
5141 * dwarf2read.h (abstract_to_concrete): Change type to
5142 std::unordered_map<sect_offset, std::vector<sect_offset>,
5143 gdb::hash_enum<sect_offset>>.
5144
680e1bee
TT
51452019-06-19 Tom Tromey <tromey@adacore.com>
5146
5147 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
5148 EVAL_AVOID_SIDE_EFFECTS specially.
5149
dcf37923
TT
51502019-06-19 Tom Tromey <tromey@adacore.com>
5151
5152 * source-cache.c (highlighter): New global.
5153 (source_cache::get_source_lines): Create a highlighter on demand.
5154
494986d5
AB
51552019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
5156
5157 * defs.h (deprecated_interactive_hook): Delete declaration.
5158 * interps.c (clear_interpreter_hooks): Remove use of
5159 deprecated_interactive_hook.
5160 * top.c (deprecated_interactive_hook): Delete definition.
5161 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
5162
3360b6e7
TV
51632019-06-18 Tom de Vries <tdevries@suse.de>
5164
5165 PR gdb/24515
5166 * dwarf2read.h (abstract_to_concrete): Change type from
5167 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
5168 std::unordered_map<sect_offset, std::vector<sect_offset>>.
5169 * dwarf2read.c (read_variable): Update.
5170 (dwarf2_fetch_die_loc_sect_off): Update.
5171
310b3441
TV
51722019-06-17 Tom de Vries <tdevries@suse.de>
5173
5174 PR gdb/24617
5175 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
5176 accessing parent[parent_len - 1].
5177
ba9777be
PP
51782019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
5179
5180 PR gdb/24364
5181 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
5182 call dtrace_process_dof with NULL dof.
5183
2b9f6e89
TV
51842019-06-16 Tom de Vries <tdevries@suse.de>
5185
5186 PR gdb/24445
5187 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
5188
431b3ead
TT
51892019-06-16 Tom Tromey <tom@tromey.com>
5190
5191 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5192 (make_all_visible): Use address of member.
5193
d04b44a1
TT
51942019-06-16 Tom Tromey <tom@tromey.com>
5195
5196 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
5197 (tui_free_window, free_content, free_content_elements): Remove
5198 unnecessary cast.
5199 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
5200 cast.
5201 * tui/tui-regs.c (tui_show_register_group)
5202 (tui_display_registers_from, tui_display_reg_element_at_line):
5203 Remove unnecessary cast.
5204
bf5142e7
AB
52052019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5206
5207 * linux-nat.c (normal_mask): Delete.
5208 (_initialize_linux_nat): Don't initialise normal_mask.
5209
c4973306
SM
52102019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
5211
5212 PR gdb/24445
5213 * dwarf-index-write.h (write_psymtabs_to_index): Add
5214 dwz_basename parameter.
5215 * dwarf-index-write.c (write_gdbindex): Move file writing to
5216 write_gdbindex_1. Change return type void.
5217 (assert_file_size): Move up, remove filename parameter.
5218 (write_gdbindex_1): New function.
5219 (write_debug_names): Change return type to void, call
5220 assert_file_size.
5221 (struct index_wip_file): New struct.
5222 (write_psymtabs_to_index): Add dwz_basename parameter. Move
5223 file logic to index_wip_file. Write index for dwz file if
5224 needed.
5225 (save_gdb_index_command): Pass basename of dwz file, if present.
5226 * dwarf-index-cache.c (index_cache::store): Obtain and pass
5227 build-id of dwz file, if present.
5228 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
5229 (dwarf2_get_dwz_file): Likewise.
5230 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
5231 (dwarf2_get_dwz_file): Likewise.
5232
395f9c91
TT
52332019-06-16 Tom Tromey <tom@tromey.com>
5234
5235 * coffread.c (process_coff_symbol): Use xstrdup.
5236 * value.c (create_internalvar): Use xstrdup.
5237
cafb3438
TT
52382019-06-16 Tom Tromey <tom@tromey.com>
5239
5240 * valops.c (value_cast, value_slice): Remove unnecessary cast.
5241 * breakpoint.c (stopin_command, stopat_command)
5242 (until_break_command, decode_location_default): Remove unnecessary
5243 cast.
5244 * utils.c (subset_compare): Remove unnecessary cast.
5245 * ada-lang.c (ada_update_initial_language): Remove unnecessary
5246 cast.
5247 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
5248 cast.
5249 * infcmd.c (path_command): Remove unnecessary cast.
5250 * coffread.c (decode_type): Remove unnecessary cast.
5251 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
5252 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
5253 * tui/tui-stack.c (tui_show_locator_content)
5254 (tui_show_frame_info): Remove unnecessary cast.
5255 * tui/tui-win.c (tui_scroll_forward_command)
5256 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
5257 (parse_scrolling_args): Remove unnecessary cast.
5258 * tui/tui-data.c (init_win_info, tui_del_window)
5259 (tui_free_window, tui_del_data_windows, tui_free_data_content)
5260 (free_content_elements): Remove unnecessary cast.
5261 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
5262 unnecessary cast.
5263 * tui/tui-source.c (tui_set_source_content)
5264 (tui_vertical_source_scroll): Remove unnecessary cast.
5265 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
5266 cast.
5267 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
5268 * tui/tui-regs.c (tui_display_registers_from)
5269 (tui_display_register): Remove unnecessary cast.
5270 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
5271 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
5272 (make_visible): Remove unnecessary cast.
5273 * tui/tui-winsource.c (tui_erase_source_content)
5274 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
5275 unnecessary cast.
5276 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
5277 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
5278 * stabsread.c (read_type, read_array_type, read_range_type):
5279 Remove unnecessary cast.
5280 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
5281 (parse_symbol, parse_type, upgrade_type, parse_external)
5282 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
5283 unnecessary cast.
5284 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
5285
730ead81
TT
52862019-06-16 Tom Tromey <tom@tromey.com>
5287
5288 * tui/tui-data.c (tui_alloc_generic_win_info)
5289 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
5290 checks.
5291
584a927c
AB
52922019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
5293 Andrew Burgess <andrew.burgess@embecosm.com>
5294
5295 * f-typeprint.c (f_print_type): Don't return early for not
5296 associated or not allocated types.
5297 (f_type_print_varspec_suffix): Add print_rank parameter and print
5298 ranks of array types in case they dangling.
5299 (f_type_print_base): Add print_rank parameter.
5300
30056ea0
AB
53012019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5302
5303 * NEWS: Mention new MI commands.
5304 * break-catch-throw.c (enum exception_event_kind): Move to
5305 breakpoint.h.
5306 (print_mention_exception_catchpoint): Output text as a single
5307 message.
5308 (catch_exception_command_1): Rename to...
5309 (catch_exception_event): ...this, make non-static, update header
5310 command, and change some parameter types.
5311 (catch_catch_command): Update for changes to
5312 catch_exception_command_1.
5313 (catch_throw_command): Likewise.
5314 (catch_rethrow_command): Likewise.
5315 * breakpoint.c (enum exception_event_kind): Delete.
5316 * breakpoint.h (enum exception_event_kind): Moved here from
5317 break-catch-throw.c.
5318 (catch_exception_event): Declare.
5319 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
5320 (mi_cmd_catch_throw): New function.
5321 (mi_cmd_catch_rethrow): New function.
5322 (mi_cmd_catch_catch): New function.
5323 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
5324 'catch-catch' entries.
5325 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
5326 (mi_cmd_catch_rethrow): Declare.
5327 (mi_cmd_catch_catch): Declare.
5328
ec8e2b6d
AB
53292019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5330
5331 * annotate.c (annotate_source_line): Change return type to void,
5332 update implementation to match.
5333 * annotate.h (annotate_source_line): Change return type to void,
5334 update header comment.
5335 * stack.c (print_frame_info): Don't change what frame information
5336 is printed based on whether annotations are on or not.
5337
0d3abd8c
AB
53382019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5339
5340 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
5341 (annotate_source): Make static.
5342 (annotate_source_line): Moved from source.c and renamed from
5343 identify_source_line. Update the return type.
5344 * annotate.h (annotate_source): Delete declaration.
5345 (annotate_source_line): Declaration moved from source.h, and
5346 renamed from identify_source_line. Return type updated.
5347 * source.c (identify_source_line): Moved to annotate.c and renamed
5348 to annotate_source_line.
5349 (info_line_command): Remove check of annotation_level.
5350 * source.h (identify_source_line): Move declaration to annotate.h
5351 and rename to annotate_source_line.
5352 * stack.c: Add 'annotate.h' include.
5353 (print_frame_info): Remove check of annotation_level before
5354 calling annotate_source_line.
5355
00df30ae
AB
53562019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5357
5358 * source-cache.c (source_cache::get_plain_source_lines): Use
5359 open_source_file_with_line_charpos instead of just
5360 open_source_file, remove call to find_source_lines.
5361 (source_cache::get_source_lines): Likewise.
5362 * source.c (find_source_lines): Make static.
5363 (get_filename_and_charpos): Renamed into...
5364 (open_source_file_with_line_charpos): ..this along with changes to
5365 return a scoped_fd, and some other minor clean ups.
5366 (identify_source_line): Use open_source_file_with_line_charpos.
5367 (search_command_helper): Use open_source_file_with_line_charpos
5368 instead of just open_source_file, remove call to
5369 find_source_lines.
5370 * source.h (open_source_file_with_line_charpos): Declare new
5371 function.
5372 (find_source_lines): Delete declaration.
5373
afda45a2
AB
53742019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5375
5376 * source.c (get_filename_and_charpos): Remove fullname
5377 parameter.
5378 (identify_source_line): Update call to get_filename_and_charpos.
5379
0735b091
TT
53802019-06-14 Tom Tromey <tromey@adacore.com>
5381
5382 PR gdb/24502:
5383 * ui-style.h (skip_ansi_escape): Update comment.
5384 * ui-file.h (class no_terminal_escape_file): New class.
5385 * ui-file.c (no_terminal_escape_file::write)
5386 (no_terminal_escape_file::puts): New methods.
5387 * cli/cli-logging.c (handle_redirections): Use
5388 no_terminal_escape_file.
5389
52ce35e2
TT
53902019-06-14 Tom Tromey <tromey@adacore.com>
5391
5392 * NEWS: Move convenience variable news above Python news.
5393
73cc7272
TT
53942019-06-14 Tom Tromey <tom@tromey.com>
5395
5396 * gnulib: Move directory to top-level.
5397 * configure.ac: Don't configure gnulib.
5398 * configure: Rebuild.
5399 * common/common-defs.h: Use new path to gnulib.
5400 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
5401 (GNULIB_H): Remove.
5402 (INCGNU): Look in new gnulib location.
5403 (HFILES_NO_SRCDIR): Remove gnulib files.
5404 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
5405 (generated_files): Remove GNULIB_H.
5406 ($(LIBGNU), all-lib): Remove targets.
5407 (distclean): Don't mention GNULIB_BUILDDIR.
5408 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
5409
f5686554
TT
54102019-06-14 Tom Tromey <tromey@adacore.com>
5411
5412 * symfile.c (add_symbol_file_command): Remove obsolete comment.
5413 Warn if symbol file does not provide any symbols.
5414
a0c1ffed
TT
54152019-06-14 Tom Tromey <tromey@adacore.com>
5416
5417 * source.c (find_and_open_source): Respect basenames_may_differ.
5418
7c39e397
AB
54192019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
5420
5421 * annotate.c (annotate_breakpoints_invalid): Make use of
5422 scoped_restore_terminal_state.
5423 (annotate_frames_invalid): Likewise.
5424
f411722c
TT
54252019-06-14 Tom Tromey <tromey@adacore.com>
5426
5427 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
5428 allow assignment to an internalvar.
5429
4268ec18
TT
54302019-06-14 Tom Tromey <tromey@adacore.com>
5431
5432 * ada-lex.l: Allow "_" in attribute names.
5433
abdb711e
TT
54342019-06-14 Tom Tromey <tromey@adacore.com>
5435
5436 PR gdb/24653:
5437 * regcache.c (registers_changed): Don't call alloca.
5438 * top.c (execute_command): Don't call alloca.
5439
4c048731
PA
54402019-06-13 Pedro Alves <palves@redhat.com>
5441
5442 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
5443 'expression'. When parsing an expression, error out if there's
5444 junk after "unlimited".
5445 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5446 (do_set_command): Adjust calls to is_unlimited_literal.
5447
66eb1ed3
PA
54482019-06-13 Pedro Alves <palves@redhat.com>
5449
5450 * compile/compile.c (make_compile_options_def_group): Add braces
5451 around array_view initializer.
5452 * thread.c (make_thread_apply_all_options_def_group)
5453 (make_thread_apply_all_options_def_group): Likewise.
5454
3345721a
PA
54552019-06-13 Pedro Alves <palves@redhat.com>
5456
5457 * NEWS (New commands): Mention "maint test-options
5458 require-delimiter", "maint test-options unknown-is-error", "maint
5459 test-options unknown-is-operand" and "maint show
5460 test-options-completion-result".
5461 (New command options, command completion): New section.
5462 (Completion improvements): New section.
5463 Mention that you can abbreviate "unlimited".
5464
6206060d
PA
54652019-06-13 Pedro Alves <palves@redhat.com>
5466
5467 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
5468 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
5469 * unittests/cli-utils-selftests.c (test_parse_flags)
5470 (test_parse_flags_qcs): Delete.
5471 (test_cli_utils): Don't call deleted functions.
5472
6665660a
PA
54732019-06-13 Pedro Alves <palves@redhat.com>
5474
5475 * thread.c: Include "cli/cli-option.h".
5476 (tp_array_compar_ascending): Global.
5477 (tp_array_compar): Delete function.
5478 (tp_array_compar_ascending, tp_array_compar_descending): New
5479 functions.
5480 (ascending_option_def, qcs_flag_option_def)
5481 (thr_qcs_flags_option_defs)
5482 (make_thread_apply_all_options_def_group)
5483 (make_thread_apply_options_def_group): New.
5484 (thread_apply_all_command): Use gdb::option::process_options.
5485 (thread_apply_command_completer)
5486 (thread_apply_all_command_completer): New.
5487 (thread_apply_command): Use gdb::option::process_options.
5488 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
5489 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
5490 to generate help text of "thread apply". Adjust "taas"'s help.
5491 * tid-parse.c (tid_range_parser::in_thread_range): New method.
5492 * tid-parse.h (tid_range_parser::in_thread_range): New method.
5493
f7e13587
PA
54942019-06-13 Pedro Alves <palves@redhat.com>
5495
5496 * thread.c (thread_apply_command): Check for invalid TID with
5497 isdigit instead of !isalpha.
5498
5d707134
PA
54992019-06-13 Pedro Alves <palves@redhat.com>
5500
5501 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
5502 (validate_flags_qcs): New.
5503 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
5504 (validate_flags_qcs): Declare.
5505 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
5506 (make_frame_apply_options_def_group): New.
5507 (frame_apply_command_count): Process options with
5508 gdb::option::process_options.
5509 (frame_apply_completer): New.
5510 (frame_apply_level_completer, frame_apply_all_completer)
5511 (frame_apply_completer): New.
5512 (_initialize_stack): Update help of "frame apply", "frame apply
5513 level", "frame apply all" and "faas" to mention supported options
5514 and install command completers.
5515 * stack.h (frame_apply_all_completer): Declare.
5516 * thread.c: Include "stack.h".
5517 (tfaas_command): Add "--".
5518 (_initialize_thread): Update help "tfaas" to mention supported
5519 options and install command completer.
5520
272d4594
PA
55212019-06-13 Pedro Alves <palves@redhat.com>
5522
5523 * completer.c (complete_nested_command_line): New.
5524 (gdb_completion_word_break_characters_throw): Add assertion.
5525 * completer.h (complete_nested_command_line): Declare.
5526
90a1ef87
PA
55272019-06-13 Pedro Alves <palves@redhat.com>
5528
5529 * stack.c (parse_backtrace_qualifiers): New.
5530 (backtrace_command): Use it.
5531 (backtrace_command_completer): Complete on qualifiers.
5532
d4c16835
PA
55332019-06-13 Pedro Alves <palves@redhat.com>
5534
5535 * frame.c: Include "cli/cli-option.h.
5536 (user_set_backtrace_options): New.
5537 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
5538 Delete.
5539 (get_prev_frame): Adjust.
5540 (boolean_option_def, uinteger_option_def)
5541 (set_backtrace_option_defs): New.
5542 (_initialize_frame): Adjust and use
5543 gdb::option::add_setshow_cmds_for_options to install "set
5544 backtrace past-main" and "set backtrace past-entry".
5545 * frame.h: Include "cli/cli-option.h".
5546 (struct frame_print_options): Forward declare.
5547 (print_frame_arguments_all, print_frame_arguments_scalars)
5548 (print_frame_arguments_none): Declare.
5549 (print_entry_values): Delete declaration.
5550 (struct frame_print_options, user_frame_print_options): New.
5551 (struct set_backtrace_options): New.
5552 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
5553 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
5554 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
5555 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
5556 (list_args_or_locals): Add frame_print_options parameter.
5557 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5558 * python/py-framefilter.c (enumerate_args): Pass down
5559 USER_FRAME_PRINT_OPTIONS.
5560 * stack.c: Include "cli/cli-option.h".
5561 (print_frame_arguments_all, print_frame_arguments_scalars)
5562 (print_frame_arguments_none): Declare.
5563 (print_raw_frame_arguments, print_entry_values): Delete.
5564 (user_frame_print_options): New.
5565 (boolean_option_def, enum_option_def, frame_print_option_defs):
5566 New.
5567 (struct backtrace_cmd_options): New.
5568 (bt_flag_option_def): New.
5569 (backtrace_command_option_defs): New.
5570 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5571 (print_frame_arg, read_frame_arg, print_frame_args)
5572 (print_frame_info, print_frame): Add frame_print_options parameter
5573 and use it.
5574 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
5575 (backtrace_command_1): Add frame_print_options and
5576 backtrace_cmd_options parameters and use them.
5577 (make_backtrace_options_def_group): New.
5578 (backtrace_command): Process command options with
5579 gdb::option::process_options.
5580 (backtrace_command_completer): New.
5581 (_initialize_stack): Extend "backtrace"'s help to mention
5582 supported options. Install completer for "backtrace".
5583 Install some settings commands with add_setshow_cmds_for_options.
5584
2daf894e
PA
55852019-06-13 Pedro Alves <palves@redhat.com>
5586
5587 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
5588 and that "set/show print raw frame-arguments" are now deprecated.
5589
5590 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
5591 command.
5592 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
5593 * stack.c (_initialize_stack): Install "set/show print
5594 raw-frame-arguments", and deprecate "set/show print raw
5595 frame-arguments".
5596 * valprint.c (_initialize_valprint): Deprecate "set/show print
5597 raw".
5598
e6ed716c
PA
55992019-06-13 Pedro Alves <palves@redhat.com>
5600
5601 * compile/compile.c (struct compile_options): New.
5602 (compile_flag_option_def, compile_command_option_defs)
5603 (make_compile_options_def_group): New.
5604 (compile_file_command): Handle options with
5605 gdb::option::process_options.
5606 (compile_file_command_completer): New function.
5607 (compile_code_command): Handle options with
5608 gdb::option::process_options.
5609 (compile_code_command_completer): New function.
5610 (_initialize_compiler): Install completers for "compile code" and
5611 "compile file". Mention available options in "compile code" and
5612 "compile code"'s help.
5613 * completer.c (advance_to_completion_word): New, factored out from
5614 ...
5615 (advance_to_expression_complete_word_point): ... this.
5616 (advance_to_filename_complete_word_point): New.
5617 * completer.h (advance_to_filename_complete_word_point): New
5618 declaration.
5619
7d8062de
PA
56202019-06-13 Pedro Alves <palves@redhat.com>
5621
5622 * compile/compile.c: Include "cli/cli-option.h".
5623 (compile_print_value): Scope data pointer is now a
5624 value_print_options pointer; adjust.
5625 (compile_print_command): Process options. Scope data pointer is
5626 now a value_print_options pointer; adjust.
5627 (_initialize_compile): Update "compile print"'s help to include
5628 supported options. Install a completer for "compile print".
5629 * cp-valprint.c (show_vtblprint, show_objectprint)
5630 (show_static_field_print): Delete.
5631 (_initialize_cp_valprint): Don't install "set print
5632 static-members", "set print vtbl", "set print object" here.
5633 * printcmd.c: Include "cli/cli-option.h" and
5634 "common/gdb_optional.h".
5635 (print_command_parse_format): Rework to fill in a
5636 value_print_options instead of a format_data.
5637 (print_value): Change parameter type from format_data pointer to
5638 value_print_options reference. Adjust.
5639 (print_command_1): Process options. Adjust to pass down a
5640 value_print_options.
5641 (print_command_completer): New.
5642 (_initialize_printcmd): Install print_command_completer as
5643 handle_brkchars completer for the "print" command. Update
5644 "print"'s help to include supported options.
5645 * valprint.c: Include "cli/cli-option.h".
5646 (show_vtblprint, show_objectprint, show_static_field_print): Moved
5647 here from cp-valprint.c.
5648 (boolean_option_def, uinteger_option_def)
5649 (value_print_option_defs, make_value_print_options_def_group):
5650 New. Use gdb::option::add_setshow_cmds_for_options to install
5651 "set print elements", "set print null-stop", "set print repeats",
5652 "set print pretty", "set print union", "set print array", "set
5653 print address", "set print symbol", "set print array-indexes".
5654 * valprint.h: Include <string> and "cli/cli-option.h".
5655 (make_value_print_options_def_group): Declare.
5656 (print_value): Change parameter type from format_data pointer to
5657 value_print_options reference.
5658 (print_command_completer): Declare.
5659
9d0faba9
PA
56602019-06-13 Pedro Alves <palves@redhat.com>
5661
5662 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
5663 (COMMON_SFILES): Add maint-test-settings.c.
5664 * cli/cli-decode.c (boolean_enums): New global, factored out from
5665 ...
5666 (add_setshow_boolean_cmd): ... here.
5667 * cli/cli-decode.h (boolean_enums): Declare.
5668 * cli/cli-option.c: New file.
5669 * cli/cli-option.h: New file.
5670 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
5671 factored out from ...
5672 (parse_cli_boolean_value(const char *)): ... this.
5673 (is_unlimited_literal): Change parameter type to pointer to
5674 pointer. Adjust and advance ARG pointer.
5675 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5676 (parse_cli_var_enum): New, factored out from ...
5677 (do_set_command): ... this. Adjust.
5678 * cli/cli-setshow.h (parse_cli_boolean_value)
5679 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5680 (parse_cli_var_enum): Declare.
5681 * cli/cli-utils.c: Include "cli/cli-option.h".
5682 (get_ulongest): New.
5683 * cli/cli-utils.h (get_ulongest): Declare.
5684 (check_for_argument): New overloads.
5685 * maint-test-options.c: New file.
5686
2c722807
PA
56872019-06-13 Pedro Alves <palves@redhat.com>
5688
5689 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
5690 parse a range if "-" is at the end of the string.
5691
dee7b4c8
PA
56922019-06-13 Pedro Alves <palves@redhat.com>
5693
5694 * cli/cli-setshow.c (parse_auto_binary_operation)
5695 (parse_cli_boolean_value): Don't allow "o".
5696
dca0f6c0
PA
56972019-06-13 Pedro Alves <palves@redhat.com>
5698
5699 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
5700 * NEWS: Mention maint test-settings KIND.
5701 * maint-test-settings.c: New file.
5702
597bf39d
PA
57032019-06-13 Pedro Alves <palves@redhat.com>
5704
5705 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
5706 completer.
5707 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
5708 "set" completers.
5709
48c410fb
PA
57102019-06-13 Pedro Alves <palves@redhat.com>
5711
5712 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
5713 after item.
5714
93bcb043
PA
57152019-06-13 Pedro Alves <palves@redhat.com>
5716
5717 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
5718
cbba3ecd
PA
57192019-06-13 Pedro Alves <palves@redhat.com>
5720
5721 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
5722 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
5723 call.
5724 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
5725 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
5726 calls.
5727 (check_for_argument): Skip spaces after argument.
5728
b9a3f842
PA
57292019-06-13 Pedro Alves <palves@redhat.com>
5730
5731 * thread.c (thread_apply_command): Adjust TID parsing.
5732 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
5733 detected before end of string.
5734 (tid_is_in_list): Error out if LIST is invalid.
5735
3844e605
PA
57362019-06-13 Pedro Alves <palves@redhat.com>
5737
5738 * completer.c (complete_line_internal_1): Rewind completion word
5739 point.
5740 (completion_tracker::advance_custom_word_point_by): Change
5741 parameter type to int.
5742 * completer.h (completion_tracker::advance_custom_word_point_by):
5743 Likewise.
5744
00b56dbe
PA
57452019-06-13 Pedro Alves <palves@redhat.com>
5746
5747 * completer.c (advance_to_completion_word): Handle delimiters.
5748
d106773e
PA
57492019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
5750
5751 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
5752
08f10e02
TT
57532019-06-11 Tom Tromey <tom@tromey.com>
5754
5755 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
5756 (xmalloc_failed): Move to alloc.c.
5757 * alloc.c: New file.
5758 * Makefile.in (COMMON_SFILES): Add alloc.c.
5759
1c7fe951
TT
57602019-06-11 Tom Tromey <tom@tromey.com>
5761
5762 * nat/linux-waitpid.c: Don't include server.h.
5763 (linux_debug): Remove.
5764 (my_waitpid): Update.
5765
89549d7f
TT
57662019-06-11 Tom Tromey <tromey@adacore.com>
5767
5768 * infcall.c (_initialize_infcall): Remove trailing newline from
5769 help.
5770 * user-regs.c (_initialize_user_regs): Remove trailing newline
5771 from help.
5772 * typeprint.c (_initialize_typeprint): Remove trailing newline
5773 from help.
5774 * reverse.c (_initialize_reverse): Remove trailing newlines from
5775 help.
5776 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
5777 from help.
5778 * language.c (add_set_language_command): Remove trailing newline
5779 from help.
5780 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
5781 help.
5782 * disasm.c (_initialize_disasm): Remove trailing newline from
5783 help.
5784 * top.c (init_main): Remove trailing newline from help.
5785 * interps.c (_initialize_interpreter): Remove trailing newline
5786 from help.
5787 * btrace.c (_initialize_btrace): Remove trailing newlines from
5788 help.
5789 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
5790 from help.
5791 * python/python.c (_initialize_python): Remove trailing newline
5792 from help.
5793 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
5794 help.
5795 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
5796 from help. Reformat some text.
5797 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
5798 from help.
5799 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
5800 newline from help.
5801
86108c13
TT
58022019-06-11 Tom Tromey <tromey@adacore.com>
5803
5804 * darwin-nat.c (darwin_decode_exception_message)
5805 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
5806
a7067863
AB
58072019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
5808
5809 * valops.c (value_slice): Check for not allocated or not
5810 associated values.
5811
9ab08412
TV
58122019-06-10 Tom de Vries <tdevries@suse.de>
5813
5814 PR gdb/24618
5815 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
5816 sure an empty slot (defined by a 32-bit zero pair) is recognized as
5817 invalid.
5818
f19e22e9
TV
58192019-06-10 Tom de Vries <tdevries@suse.de>
5820
5821 PR gdb/24611
5822 * linespec.c (linespec_lexer_lex_string): Remove incorrect
5823 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
5824
e99f9db0
TV
58252019-06-10 Tom de Vries <tdevries@suse.de>
5826
5827 PR symtab/24545
5828 * symtab.c (struct demangled_name_entry): Add language field.
5829 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
5830 static minimal symbol". Set and use language field.
5831
9bf7038b
TT
58322019-06-10 Tom Tromey <tromey@adacore.com>
5833
5834 * ada-lang.c (_initialize_ada_language): Update help text.
5835
422186a9
TT
58362019-06-10 Tom Tromey <tromey@adacore.com>
5837
5838 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
5839 with a newline.
5840 * guile/guile.c (handle_boot_error): Don't end warning with a
5841 newline.
5842 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
5843 warning with a newline.
5844 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
5845 newline.
5846 (s12z_frame_cache): Likewise.
5847 * dwarf-index-cache.c (index_cache::store): Don't end warning with
5848 a newline.
5849 * solib-svr4.c (disable_probes_interface): Don't end warning with
5850 a newline.
5851 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
5852 newline.
5853 * python/python.c (do_finish_initialization): Don't end warning
5854 with a newline.
5855
25ce02ee
TT
58562019-06-10 Tom Tromey <tom@tromey.com>
5857
5858 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5859 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
5860 gdbpy_enter.
5861
caa429d8
TT
58622019-06-10 Tom Tromey <tromey@adacore.com>
5863
5864 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
5865 data.
5866 (elf_new_init): Don't call stabsread_new_init.
5867 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
5868 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
5869 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
5870
81873cc8
TV
58712019-06-10 Tom de Vries <tdevries@suse.de>
5872
5873 PR symtab/16264
5874 PR symtab/24517
5875 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
5876
4fa0265e
РИ
58772019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
5878
5879 * source.c (find_and_open_source): Also rewrite relative file
5880 names.
5881
1a3da2cd
AB
58822019-04-26 Amos Bird <amosbird@gmail.com>
5883
5884 * annotate.c (annotate_thread_exited): Add "thread-exited"
5885 annotation.
5886
3847a7bf
TT
58872019-06-06 Tom Tromey <tromey@adacore.com>
5888
5889 * maint.h (class scoped_command_stats): Use
5890 DISABLE_COPY_AND_ASSIGN.
5891 <print_time>: New method.
5892 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
5893 print_time.
5894 (scoped_command_stats::print_time): New method.
5895
312617a3
AB
58962019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5897
5898 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
5899 instructions of lengths 6 or 8 bytes.
5900
b02f78f9
PA
59012019-06-04 Pedro Alves <palves@redhat.com>
5902
5903 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
5904
5905 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
5906 * breakpoint.c (condition_completer): Likewise.
5907 * cli/cli-dump.c (scan_expression): Likewise.
5908 * common/filestuff.c (mkdir_recursive): Likewise.
5909 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
5910 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
5911 (gdb_abspath): Likewise.
5912 * compile/compile-cplus-types.c
5913 (compile_cplus_instance::decl_name): Likewise.
5914 * completer.c (complete_explicit_location):
5915 (signal_completer, reg_or_group_completer_1): Likewise.
5916 * cp-support.c (cp_remove_params_if_any): Likewise.
5917 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
5918 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
5919 * infcmd.c (strip_bg_char): Likewise.
5920 * linespec.c (copy_token_string): Likewise.
5921 * mi/mi-main.c (output_cores): Likewise.
5922 * psymtab.c (psymtab_search_name):
5923 * symfile.c (test_set_ext_lang_command): Likewise.
5924 * target.c (target_fileio_read_stralloc): Likewise.
5925 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
5926 * value.c (complete_internalvar): Likewise.
5927
e1f2e1a2
CB
59282019-06-04 Christian Biesinger <cbiesinger@google.com>
5929
5930 Add objfile property to gdb.Type.
d3238f7d
PA
5931 * NEWS: Mention Python API addition.
5932 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 5933
e664d728
PW
59342019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5935
5936 * NEWS: Mention the new set|show style [title|highlight].
5937 Mention changes to "show style", "help" and "apropos".
5938
66d8c862
PW
59392019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5940
5941 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
5942 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
5943 instead of print_help_for_command.
5944 (print_doc_of_command): New function.
5945 (help_list): Add 'apropos -v word' suggestion.
5946 (print_help_for_command): Style the command name using title style.
5947 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
5948 (_initialize_cli_cmds): Describe -v in apropos_command help.
5949
9303eb2f
PW
59502019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5951
5952 * cli/cli-style.h (cli_style_option): Add name in constructor,
5953 add m_name class member, add constructor with intensity,
5954 add name class function.
5955 (cli_style_option::add_setshow_commands): Remove name argument.
5956 (highlight_style, title_style): New styles.
5957 * cli/cli-style.c (do_show): New function that shows a style
5958 characteristic styling the style name with itself.
5959 (set_style_name): New function.
5960 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
5961 Update all callers according to the changes in cli/cli-style.h.
5962 * utils.h (fputs_highlighted): New function.
5963 * utils.c (fputs_highlighted): Likewise.
5964
e2c52041
PW
59652019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5966
5967 * NEWS: Mention new pipe command and new convenience variables.
5968
947d3946
PW
59692019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5970
5971 * cli/cli-cmds.c (pipe_command): New function.
5972 (_initialize_cli_cmds): Call add_com for pipe_command.
5973 Define | as an alias for pipe.
5974 (exit_status_set_internal_vars): New function.
5975 (shell_escape): Call exit_status_set_internal_vars.
5976 cli/cli-decode.c (find_command_name_length): Recognize | as
5977 a single character command.
5978
b8fd0918
PW
59792019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5980
5981 * gdbcmd.h (execute_command_to_ui_file): New declaration.
5982 top.c (execute_command_to_ui_file): New function, mostly a copy
5983 of execute_command_to_string.
5984 (execute_command_to_string): Implement by calling
5985 execute_command_to_ui_file.
5986
68bb5386
PW
59872019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5988
5989 * top.h (saved_command_line): Remove declaration.
5990 * top.c (previous_saved_command_line, previous_repeat_arguments):
5991 New variables.
5992 (saved_command_line): Make static, define together with other
5993 'repeat variables'.
5994 (dont_repeat): Clear repeat_arguments.
5995 (repeat_previous, get_saved_command_line, save_command_line):
5996 New functions.
5997 (gdb_init): Initialize saved_command_line
5998 and previous_saved_command_line.
5999 * main.c (captured_main_1): Remove saved_command_line initialization.
6000 * event-top.c (handle_line_of_input): Update to use
6001 the new 'repeat' related functions instead of direct access to
6002 saved_command_line.
6003 * command.h (repeat_previous, get_saved_command_line,
6004 save_command_line): New declarations.
6005 (dont_repeat): Add comment.
6006
bfcdb852
TT
60072019-05-30 Tom Tromey <tromey@adacore.com>
6008
6009 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
6010 Fix comment.
6011 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
6012
0ef209f2
JV
60132019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
6014
6015 PR cli/24587
6016 * completer.c (complete): Initialize variable word.
6017
955b06fa
SDJ
60182019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
6019
6020 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6021 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
6022 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
6023 'body' is NULL to the outter 'if', protecting the '!is_define'
6024 situation as well.
6025
fa9c3fa0
TT
60262019-05-29 Tom Tromey <tromey@adacore.com>
6027
6028 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
6029 (dwarf_unknown): New function.
6030 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
6031 (dwarf_type_encoding_name): Use dwarf_unknown.
6032
4330d61d
TT
60332019-05-29 Tom Tromey <tromey@adacore.com>
6034
6035 PR c++/20020:
6036 * cp-valprint.c (cp_print_value_fields): Call
6037 cp_print_static_field inside "try".
6038
33a6bc35
TT
60392019-05-29 Tom Tromey <tromey@adacore.com>
6040
6041 * inflow.c (struct terminal_info): Add default operator=.
6042 * configure: Rebuild.
6043 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
6044 -Wdeprecated-copy-dtor, -Wredundant-move.
6045
000439d5
TT
60462019-05-29 Tom Tromey <tromey@adacore.com>
6047
6048 * NEWS: Add entry.
6049 * infcmd.c (print_return_value_1): Handle finish_print
6050 option.
6051 (show_print_finish): New function.
6052 (_initialize_infcmd): Add "set/show print finish" commands.
6053 * valprint.c (user_print_options): Initialize new member.
6054 * valprint.h (struct value_print_options) <finish_print>: New
6055 member.
6056
c0e70c62
TT
60572019-05-28 Tom Tromey <tromey@adacore.com>
6058
6059 * ada-lang.c (ada_remove_Xbn_suffix)
6060 (find_old_style_renaming_symbol)
6061 (parse_old_style_renaming): Remove.
6062 (ada_find_renaming_symbol): Don't call
6063 find_old_style_renaming_symbol.
6064 (ada_is_renaming_symbol): Rename from
6065 ada_find_renaming_symbol. Remove "block" parameter. Return
6066 bool. Now static.
6067 (ada_read_var_value): Update and simplify.
6068 * ada-exp.y (write_var_or_type): Remove old code.
6069
766f8836
AH
60702019-05-28 Alan Hayward <alan.hayward@arm.com>
6071
6072 * event-top.c: Remove include comment.
6073 * inflow.c (class scoped_ignore_sigttou): Move from here...
6074 * inflow.h (class scoped_ignore_sigttou): ...to here.
6075 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
6076 * top.c: Remove include comment.
6077
eb41253a
TT
60782019-05-27 Tom Tromey <tom@tromey.com>
6079
6080 * NEWS: Fix typo.
6081
4ca51187
TT
60822019-05-22 Tom Tromey <tromey@adacore.com>
6083
6084 * target.c (target_follow_exec): Constify parameter.
6085 * target-delegates.c: Rebuild.
6086 * remote.c (remote_target::follow_exec): Constify parameter.
6087 * infrun.c (follow_exec): Constify parameter.
6088 * target.h (struct target_ops) <follow_exec>: Constify parameter.
6089 (target_follow_exec): Likewise.
6090
8fca4da0
AH
60912019-05-22 Alan Hayward <alan.hayward@arm.com>
6092
6093 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
6094 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
6095
b7060614
AH
60962019-05-22 Alan Hayward <alan.hayward@arm.com>
6097
6098 * NEWS: Add debugredirect and testsuite sections.
6099
0a5954bd
SC
61002019-05-22 Simon Cook <simon.cook@embecosm.com>
6101
6102 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
6103 target descriptions using exclusively floating point register name
6104 aliases.
6105
dc42e902
AB
61062019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
6107
6108 PR gdb/18644:
6109 * f-lang.c (build_fortran_types): Handle the case where
6110 gdbarch_floatformat_for_type returns a nullptr.
6111
fb7806c7
TV
61122019-05-21 Tom de Vries <tdevries@suse.de>
6113
6114 PR cli/24587
6115 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
6116
34d11c68
AB
61172019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6118
6119 PR gdb/18644:
6120 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
6121 16-byte floats.
6122 * i386-tdep.c (i386_floatformat_for_type): Use
6123 floatformats_ia64_quad for the 16-byte floating point component
6124 within a fortran 32-byte complex number.
6125
122cf0f2
AB
61262019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6127
6128 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
6129 delete default constructor.
6130 (find_partial_die): Update to return const struct.
6131 (partial_die_parent_scope): Move variable declaration into scope
6132 of its use and change its type to auto.
6133 (guess_partial_die_structure_name): Likewise.
6134 (partial_die_info::fixup): Likewise.
6135
33d0e35a
TT
61362019-05-17 Tom Tromey <tromey@adacore.com>
6137
6138 * source.c (find_and_open_source): Remove cast.
6139
a45575b0
TT
61402019-05-17 Tom Tromey <tromey@adacore.com>
6141
6142 * annotate.c (annotate_source): Make "filename" const.
6143 * annotate.h (annotate_source): Use const.
6144
81f47ac2
AH
61452019-05-17 Alan Hayward <alan.hayward@arm.com>
6146
6147 * disasm.c (set_disassembler_options): Send errors to stderr.
6148
ca1285d1
AH
61492019-05-17 Alan Hayward <alan.hayward@arm.com>
6150
6151 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
6152 (cli_interp_base::set_logging): Check debug_redirect.
6153 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
6154 * cli/cli-logging.c (debug_redirect): Add static variable.
6155 (pop_output_files): Add default param.
6156 (handle_redirections): Print debug setting.
6157 (show_logging_command): Likewise.
6158 (_initialize_cli_logging): Add debugredirect command.
6159 * interps.c (current_interp_set_logging): Add debug_redirect
6160 parameter.
6161 * interps.h (set_logging): Add debug_redirect parameter.
6162 (current_interp_set_logging): Likewise.
6163 * mi/mi-common.h: Likewise.
6164 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
6165
61662019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
6167 Tom Tromey <tromey@adacore.com>
6168
6169 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
6170 directly.
6171 * cli/cli-interp.h (make_logging_output): Remove declaration.
6172 * cli/cli-logging.c (make_logging_output): Remove function.
6173 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
6174 directly.
6175 * ui-file.c (tee_file::tee_file): Remove bools.
6176 (tee_file::~tee_file): Remove deletes.
6177 * ui-file.h (tee_file): Remove bools.
6178
26648588
JV
61792019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
6180
6181 * mi/mi-cmds.h (mi_cmd_complete): New function.
6182 * mi/mi-main.c (mi_cmd_complete): Likewise.
6183 * mi/mi-cmds.c: Define new MI command -complete.
6184 * NEWS: Mention new -complete command.
6185
6e035501
JV
61862019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
6187
6188 * completer.h (complete): New function.
6189 * completer.c (complete): Likewise.
6190 * cli/cli-cmds.c: (complete_command): Update to use new complete()
6191 function defined in completer.h.
6192
7d0e2ece
JV
61932019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
6194
e79be6e5 6195 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 6196
fb816e8b
TV
61972019-05-17 Tom de Vries <tdevries@suse.de>
6198
6199 PR gdb/24094
6200 * dwarf2read.c (struct cu_partial_die_info): New struct.
6201 (find_partial_die): Return cu_partial_die_info.
6202 (partial_die_parent_scope, guess_partial_die_structure_name)
6203 (partial_die_info::fixup): Handle new return type of find_partial_die.
6204
677052f2
SDJ
62052019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6206
a1726c38 6207 PR breakpoints/24541
677052f2
SDJ
6208 * stap-probe.c (stap_parse_register_operand): Make "regname" an
6209 "std::string", simplifying the algorithm.
6210
f3da9116
SDJ
62112019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6212
6213 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
6214 (stap_static_probe_ops::get_probes): Likewise.
6215
f1bb75ab
SDJ
62162019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6217
6218 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
6219 '-')" and "else if".
6220 (stap_parse_single_operand): Join checks for
6221 "gdbarch_stap_parse_special_token_p" and
6222 "gdbarch_stap_parse_special_token" in the same "if" statement.
6223 Invert check when verifying for operation on register
6224 displacement.
6225
3ca58cde
SDJ
62262019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6227
6228 * stap-probe.c (stap_get_opcode): Update comment.
6229 (stap_get_expected_argument_type): Likewise.
6230 (handle_stap_probe): Likewise.
6231
af2d9bee
SDJ
62322019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6233
6234 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
6235 return type to 'bool'. Adjust comment. Use 'bool' when
6236 appropriate.
6237 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6238 * stap-probe.c (stap_parse_argument_1): Likewise.
6239 (stap_is_operator): Likewise.
6240 (stap_is_generic_prefix): Likewise.
6241 (stap_is_register_prefix): Likewise.
6242 (stap_is_register_indirection_prefix): Likewise.
6243 (stap_is_integer_prefix): Likewise.
6244 (stap_generic_check_suffix): Likewise.
6245 (stap_check_integer_suffix): Likewise.
6246 (stap_check_register_suffix): Likewise.
6247 (stap_check_register_indirection_suffix): Likewise.
6248 (stap_parse_register_operand): Likewise.
6249 (stap_parse_single_operand): Likewise.
6250 (stap_parse_argument_1): Likewise.
6251 (stap_probe::get_argument_count): Likewise.
6252 (stap_is_operator): Likewise.
6253
61c9c421
TT
62542019-05-16 Tom Tromey <tromey@adacore.com>
6255
6256 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
6257 keyword to foreach.
6258
9ddc1af1
SM
62592019-05-15 Simon Marchi <simon.marchi@efficios.com>
6260
6261 * linux-thread-db.c (try_thread_db_load_1): Change return type
6262 to bool.
6263 (try_thread_db_load): Likewise.
6264 (try_thread_db_load_from_pdir_1): Likewise.
6265 (try_thread_db_load_from_pdir): Likewise.
6266 (try_thread_db_load_from_sdir): Likewise.
6267 (try_thread_db_load_from_dir): Likewise.
6268 (thread_db_load_search): Likewise.
6269 (has_libpthread): Likewise.
6270 (thread_db_load): Likewise.
6271
7bede828
SDJ
62722019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
6273
6274 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6275 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
6276 NULL, and complain/return if that's the case.
6277
c5358db4
JD
62782019-05-15 John Darrington <john@darrington.wattle.id.au>
6279
6280 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
6281 (advance, posn, abstract_read_memory): New functions.
6282 [struct mem_read_abstraction]: New struct.
6283 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
6284
c408a94f
TT
62852019-05-14 Tom Tromey <tromey@adacore.com>
6286
6287 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
6288 value is not lval_memory.
6289
e7bd7fba
TT
62902019-05-14 Tom Tromey <tromey@adacore.com>
6291
6292 * solib.c (info_sharedlibrary_command): Style the file name.
6293
a6d0f249
AH
62942019-05-14 Alan Hayward <alan.hayward@arm.com>
6295
6296 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
6297 (aarch64_vnv_type): Likewise.
6298 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
6299 * common/tdesc.c: Likewise.
6300 * common/tdesc.h (enum tdesc_type_kind): Likewise.
6301 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
6302 * features/aarch64-fpu.xml: Add ieee half view.
6303 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
6304 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
6305 * gdbtypes.h (struct builtin_type): Likewise.
6306 (struct objfile_type): Likewise.
6307
66b8bb74
SM
63082019-05-12 Paul Naert <paul.naert@polymtl.ca>
6309
6310 * language.c (language_sniff_from_mangled_name): Fix "langauge"
6311 typo.
6312 * location.h (string_to_event_location): Likewise.
6313
21c219fd
JB
63142019-05-11 Joel Brobecker <brobecker@adacore.com>
6315
6316 GDB 8.3 released.
6317
13674803
SM
63182019-05-10 Simon Marchi <simon.marchi@efficios.com>
6319
6320 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
6321 New variable declaration.
6322 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
6323 New variable.
6324 (print_one_breakpoint): Use ui_out::test_flags and new global
6325 variable to compute use_fixed_output.
6326 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
6327 Remove.
6328 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
6329 (mi_multi_location_breakpoint_output_fixed): Remove.
6330 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
6331 new variable.
6332 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
6333 fix_multi_location_breakpoint_output flag if version >= 3.
6334 * ui-out.h (enum ui_out_flag)
6335 <fix_multi_location_breakpoint_output>: New enumerator.
6336
a9eac7f9
SM
63372019-05-10 Simon Marchi <simon.marchi@efficios.com>
6338
6339 * contrib/cc-with-tweaks.sh: Validate dwz's work.
6340
71bed2db
TT
63412019-05-10 Tom Tromey <tromey@adacore.com>
6342
6343 * ada-lang.c (catch_ada_completer): New function.
6344 (_initialize_ada_language): Use it.
6345
24c54127
TT
63462019-05-10 Tom Tromey <tromey@adacore.com>
6347
6348 * thread.c (print_thread_info): Make "requested_threads" const.
6349 * gdbthread.h (print_thread_info): Make "requested_threads"
6350 const.
6351 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
6352 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
6353
7a102139
TT
63542019-05-08 Tom Tromey <tom@tromey.com>
6355
6356 * gdbtypes.c (objfile_type_data): Change type.
6357 (objfile_type, _initialize_gdbtypes): Update.
6358
924d79e2
TT
63592019-05-08 Tom Tromey <tom@tromey.com>
6360
6361 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
6362 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
6363 (_initialize_dwarf2_frame): Update.
6364
4c58e337
TT
63652019-05-08 Tom Tromey <tom@tromey.com>
6366
6367 * objc-lang.c (objc_objfile_data): Change type.
6368 (find_methods): Update.
6369 (_initialize_objc_lang): Remove.
6370
d772d2ab
TT
63712019-05-08 Tom Tromey <tom@tromey.com>
6372
6373 * stabsread.c (rs6000_builtin_type_data): Change type.
6374 (rs6000_builtin_type, _initialize_stabsread): Update.
6375
d11d83f4
TT
63762019-05-08 Tom Tromey <tom@tromey.com>
6377
6378 * mips-tdep.c (mips_pdr_data): Remove.
6379 (_initialize_mips_tdep): Update.
6380
9a73f0ad
TT
63812019-05-08 Tom Tromey <tom@tromey.com>
6382
6383 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
6384 (hppa_init_objfile_priv_data, read_unwind_info)
6385 (find_unwind_entry, _initialize_hppa_tdep): Update.
6386
8127a2fa
TT
63872019-05-08 Tom Tromey <tom@tromey.com>
6388
6389 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
6390 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
6391 on obstack.
6392 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
6393
91d3055d
TT
63942019-05-08 Tom Tromey <tom@tromey.com>
6395
6396 * mdebugread.c (basic_type_data): Change type.
6397 (basic_type, _initialize_mdebugread): Update.
6398
31930bd3
TT
63992019-05-08 Tom Tromey <tom@tromey.com>
6400
6401 * common/gdb_unique_ptr.h (struct noop_deleter): New.
6402
bdb3ed9e
TT
64032019-05-08 Tom Tromey <tom@tromey.com>
6404
6405 * nto-tdep.c (nto_inferior_data_reg): Change type.
6406 (nto_inferior_data): Update.
6407 (nto_inferior_data_cleanup, nto_new_inferior_data)
6408 (_initialize_nto_tdep): Remove.
6409 * nto-tdep.h (struct nto_inferior_data): Add initializers.
6410
f37b313d
TT
64112019-05-08 Tom Tromey <tom@tromey.com>
6412
6413 * ada-lang.c (struct ada_inferior_data): Add initializers.
6414 (ada_inferior_data): Change type.
6415 (ada_inferior_data_cleanup): Remove.
6416 (get_ada_inferior_data, ada_inferior_exit)
6417 (struct ada_pspace_data): Add initializers, destructor.
6418 (ada_pspace_data_handle): Change type.
6419 (get_ada_pspace_data): Update.
6420 (ada_pspace_data_cleanup): Remove.
6421
24699405
TT
64222019-05-08 Tom Tromey <tom@tromey.com>
6423
6424 * coffread.c (struct coff_symfile_info): Add initializers.
6425 (coff_objfile_data_key): Move lower. Change type.
6426 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
6427 Update.
6428 (coff_free_info): Remove.
6429
d4e05d2f
TT
64302019-05-08 Tom Tromey <tom@tromey.com>
6431
6432 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
6433 (fbsd_pspace_data_handle): Move lower. Change type.
6434 (get_fbsd_pspace_data): Update.
6435 (fbsd_pspace_data_cleanup): Remove.
6436 (_initialize_fbsd_tdep): Update.
6437
14ef6690
TT
64382019-05-08 Tom Tromey <tom@tromey.com>
6439
6440 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
6441 (get_ada_tasks_pspace_data): Update.
6442 (ada_tasks_pspace_data_cleanup): Remove.
6443 (_initialize_tasks): Update.
6444 (ada_tasks_inferior_data_handle): Change type.
6445 (get_ada_tasks_inferior_data): Update.
6446 (ada_tasks_inferior_data_cleanup): Remove.
6447 (struct ada_tasks_pspace_data): Add initializers.
6448
814cf43a
TT
64492019-05-08 Tom Tromey <tom@tromey.com>
6450
6451 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
6452 * symfile-debug.c (debug_sym_get_probes): Change type.
6453 * stap-probe.c (handle_stap_probe):
6454 (stap_static_probe_ops::get_probes): Change type.
6455 * probe.h (class static_probe_ops) <get_probes>: Change type.
6456 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
6457 (parse_probes_in_pspace): Update.
6458 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
6459 Update.
6460 (any_static_probe_ops::get_probes): Change type.
6461 * elfread.c (elfread_data): New typedef.
6462 (probe_key): Change type.
6463 (elf_get_probes): Likewise. Update.
6464 (probe_key_free): Remove.
6465 (_initialize_elfread): Update.
6466 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
6467 Change type.
6468 (dtrace_process_dof_probe, dtrace_process_dof)
6469 (dtrace_static_probe_ops::get_probe): Change type.
6470
02dc647e
TT
64712019-05-08 Tom Tromey <tom@tromey.com>
6472
6473 * xcoffread.c (struct xcoff_symfile_info): Rename from
6474 coff_symfile_info. Add initializers.
6475 (xcoff_objfile_data_key): Move lower. Change type.
6476 (XCOFF_DATA): Rewrite.
6477 (xcoff_free_info): Remove.
6478 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
6479 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
6480 (xcoff_initial_scan): Update.
6481
09232438
TT
64822019-05-08 Tom Tromey <tom@tromey.com>
6483
6484 * solib-svr4.c (struct svr4_info): Add initializers and
6485 destructor.
6486 <probes_table>: Now an htab_up.
6487 (solib_svr4_pspace_data): Change type.
6488 (free_probes_table): Simplify.
6489 (~svr4_info): Rename from svr4_pspace_data_cleanup.
6490 (get_svr4_info, probes_table_htab_remove_objfile_probes)
6491 (probes_table_remove_objfile_probes, register_solib_event_probe)
6492 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
6493 (_initialize_svr4_solib): Update.
6494
7b4a314f
TT
64952019-05-08 Tom Tromey <tom@tromey.com>
6496
6497 * remote.c (remote_pspace_data): Change type.
6498 (remote_pspace_data_cleanup): Remove.
6499 (get_remote_exec_file, set_pspace_remote_exec_file)
6500 (_initialize_remote): Update.
6501
51d3063a
TT
65022019-05-08 Tom Tromey <tom@tromey.com>
6503
6504 * breakpoint.c (breakpoint_objfile_key): Change type.
6505 (get_breakpoint_objfile_data): Update.
6506 (free_breakpoint_objfile_data): Remove.
6507 (_initialize_breakpoint): Update.
6508
89fb8848
TT
65092019-05-08 Tom Tromey <tom@tromey.com>
6510
6511 * linux-tdep.c (struct linux_info): Add initializers.
6512 (linux_inferior_data): Move. Change type.
6513 (invalidate_linux_cache_inf): Update.
6514 (linux_inferior_data_cleanup): Remove.
6515 (get_linux_inferior_data, _initialize_linux_tdep): Update.
6516
e9b89e2d
TT
65172019-05-08 Tom Tromey <tom@tromey.com>
6518
6519 * auxv.c (auxv_inferior_data): Move. Change type.
6520 (auxv_inferior_data_cleanup): Remove.
6521 (invalidate_auxv_cache_inf): Rewrite.
6522 (get_auxv_inferior_data, _initialize_auxv): Update.
6523
8c42777c
TT
65242019-05-08 Tom Tromey <tom@tromey.com>
6525
6526 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
6527 (symfile_debug_objfile_data_key): Change type.
6528 (symfile_debug_installed, debug_qf_has_symbols)
6529 (debug_qf_find_last_source_symtab)
6530 (debug_qf_forget_cached_source_info)
6531 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
6532 (debug_qf_print_stats, debug_qf_dump)
6533 (debug_qf_expand_symtabs_for_function)
6534 (debug_qf_expand_all_symtabs)
6535 (debug_qf_expand_symtabs_with_fullname)
6536 (debug_qf_map_matching_symbols)
6537 (debug_qf_expand_symtabs_matching)
6538 (debug_qf_find_pc_sect_compunit_symtab)
6539 (debug_qf_map_symbol_filenames)
6540 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
6541 (debug_sym_new_init, debug_sym_init, debug_sym_read)
6542 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
6543 (debug_sym_read_linetable, debug_sym_relocate): Update.
6544 (symfile_debug_free_objfile): Remove.
6545 (install_symfile_debug_logging, _initialize_symfile_debug):
6546 Update.
6547
5bfd760d
TT
65482019-05-08 Tom Tromey <tom@tromey.com>
6549
6550 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
6551 allocate_on_obstack.
6552 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
6553 (get_dwarf2_per_objfile): Update.
6554 (set_dwarf2_per_objfile): Remove.
6555 (dwarf2_has_info, dwarf2_get_section_info): Update.
6556 (dwarf2_free_objfile): Remove.
6557 (_initialize_dwarf2_read): Update.
6558
e85e19b4
TT
65592019-05-08 Tom Tromey <tom@tromey.com>
6560
6561 * auto-load.c (struct auto_load_pspace_info): Add destructor and
6562 initializers.
6563 <unsupported_script_warning_printed,
6564 script_not_found_warning_printed>: Now bool.
6565 (auto_load_pspace_data): Change type.
6566 (~auto_load_pspace_info): Rename from
6567 auto_load_pspace_data_cleanup.
6568 (get_auto_load_pspace_data, init_loaded_scripts_info)
6569 (clear_section_scripts, maybe_print_unsupported_script_warning)
6570 (maybe_print_script_not_found_warning, _initialize_auto_load):
6571 Update.
6572
f6aa7436
TT
65732019-05-08 Tom Tromey <tom@tromey.com>
6574
6575 * objfiles.c (objfile_pspace_info): Add destructor and
6576 initializers.
6577 (objfiles_pspace_data): Change type.
6578 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
6579 (get_objfile_pspace_data): Update.
6580 (objfiles_bfd_data): Change type.
6581 (get_objfile_bfd_data): Update.
6582 (objfile_bfd_data_free, _initialize_objfiles): Remove.
6583
6ae614f6
TT
65842019-05-08 Tom Tromey <tom@tromey.com>
6585
6586 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
6587 Change type.
6588 (get_catch_syscall_inferior_data): Update.
6589 (catch_syscall_inferior_data_cleanup): Remove.
6590 (_initialize_break_catch_syscall): Update.
6591
6509b8eb
TT
65922019-05-08 Tom Tromey <tom@tromey.com>
6593
6594 * inflow.c (struct terminal_info): Add destructor and
6595 initializers.
6596 (inflow_inferior_data): Change type.
6597 (~terminal_info): Rename from inflow_inferior_data_cleanup.
6598 (get_inflow_inferior_data, inflow_inferior_exit)
6599 (swap_terminal_info, _initialize_inflow): Update.
6600
35632941
TT
66012019-05-08 Tom Tromey <tom@tromey.com>
6602
6603 * target-dcache.c (target_dcache_cleanup): Remove.
6604 (target_dcache_aspace_key): Change type.
6605 (target_dcache_init_p, target_dcache_invalidate)
6606 (target_dcache_get, target_dcache_get_or_init)
6607 (_initialize_target_dcache): Update.
6608 * dcache.h (struct dcache_deleter): New.
6609
3017b94d
TT
66102019-05-08 Tom Tromey <tom@tromey.com>
6611
6612 * symtab.c (struct symbol_cache): Add destructor and
6613 initializers.
6614 (symbol_cache_key): Move. Change type.
6615 (make_symbol_cache, free_symbol_cache): Remove.
6616 (get_symbol_cache): Update.
6617 (symbol_cache_cleanup): Remove.
6618 (ALL_PSPACES, symbol_cache_flush)
6619 (maintenance_print_symbol_cache)
6620 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
6621 Update.
6622
a32ad8c5
TT
66232019-05-08 Tom Tromey <tom@tromey.com>
6624
6625 * symtab.c (struct main_info): Add destructor and initializers.
6626 (main_progspace_key): Move. Change type.
6627 (get_main_info): Update.
6628 (main_info_cleanup): Remove.
6629 (_initialize_symtab): Update.
6630
5f6e90a0
TT
66312019-05-08 Tom Tromey <tom@tromey.com>
6632
6633 * registry.h (DECLARE_REGISTRY): Define the _key class.
6634
1bd0c6e4
AB
66352019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6636
6637 * NEWS: Merge two 'New commands' sections.
6638
2228ef77
XR
66392019-05-08 Joel Brobecker <brobecker@adacore.com>
6640
6641 * ada-valprint.c (ada_val_print_gnat_array): Remove language
6642 parameter and use Ada language definition instead.
6643 (ada_val_print_ptr): Remove unused language parameter.
6644 (ada_val_print_num): Remove language parameter and use Ada language
6645 definition instead.
6646 (ada_val_print_enum, ada_val_print_flt): Remove unused language
6647 parameter.
6648 (ada_val_print_struct_union, ada_val_print_ref): Remove language
6649 parameter and use Ada language definition instead.
6650 (ada_val_print_1): Update all ada_val_print_xxx calls.
6651 Remove language parameter.
6652 (ada_val_print): Update ada_val_print_1 call.
6653
60fcc1c3
TT
66542019-05-08 Tom Tromey <tromey@adacore.com>
6655
6656 * remote.c (remote_hw_watchpoint_limit)
6657 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
6658 Now static.
6659
ed2b7c17
TT
66602019-05-08 Tom Tromey <tromey@adacore.com>
6661
6662 * maint.c (_initialize_maint_cmds): Move initialization code to
6663 remote.c.
6664 (watchdog, show_watchdog): Move to remote.c.
6665 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
6666 "watchdog" static.
6667 (_initialize_remote): Move initialization code from maint.c.
6668 * defs.h (watchdog): Don't declare.
6669
b0be6c91
TT
66702019-05-08 Tom Tromey <tromey@adacore.com>
6671
6672 * tui/tui-interp.c: Include main.h.
6673 * interps.c: Include main.h.
6674 * main.h (interpreter_p): Declare.
6675 * defs.h (interpreter_p): Don't declare.
6676
587ee17b
TT
66772019-05-08 Tom Tromey <tromey@adacore.com>
6678
6679 * dwarf2loc.c: Include dwarf2read.h.
6680 * defs.h (read_unsigned_leb128): Don't declare.
6681 * dwarf2read.h (read_unsigned_leb128): Declare.
6682
ca1df239
TT
66832019-05-08 Tom Tromey <tromey@adacore.com>
6684
6685 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
6686 method.
6687
99f20f08
TT
66882019-05-08 Tom Tromey <tromey@adacore.com>
6689
6690 * utils.c (fputs_maybe_filtered): Reset style after paging, even
6691 when no wrap column is set.
6692
80e55b13
TT
66932019-05-08 Tom Tromey <tromey@adacore.com>
6694
6695 * c-lang.c (c_get_string): Handle non-C-style arrays.
6696
9d3421af
TT
66972019-05-08 Tom Tromey <tromey@adacore.com>
6698
6699 * typeprint.c (print_offset_data::update): Print the bit offset,
6700 not the number of bits remaining.
6701
844333e2
TT
67022019-05-08 Tom Tromey <tromey@adacore.com>
6703
6704 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
6705 padding at end of comment.
6706
988915ee
TT
67072019-05-08 Tom Tromey <tromey@adacore.com>
6708
6709 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
6710 Compare main types.
6711
26bfd823
TT
67122019-05-06 Tom Tromey <tom@tromey.com>
6713
6714 * common/scoped_mmap.c: Include common-defs.h.
6715 * common/scoped_mmap.h: Don't include config.h.
6716
89055eaa
TT
67172019-05-04 Tom Tromey <tom@tromey.com>
6718
6719 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
6720 (struct aarch64_call_info): Add initializers.
6721 <si>: Now a std::vector.
6722 (pass_on_stack, aarch64_push_dummy_call): Update.
6723
5da01df5
TT
67242019-05-04 Simon Marchi <simon.marchi@efficios.com>
6725 Tom Tromey <tom@tromey.com>
6726
6727 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
6728 (ppc_threads): Now a std::vector. Now static.
6729 (hwdebug_find_thread_points_by_tid)
6730 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
6731 Update.
6732
fbdf05a1
TT
67332019-05-04 Tom Tromey <tom@tromey.com>
6734
6735 * arc-tdep.c (arc_tdesc_init): Return bool.
6736
06d16ec9
TT
67372019-05-04 Tom Tromey <tom@tromey.com>
6738
6739 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
6740 Use gdb_assert_not_reached.
6741
9c056022
TT
67422019-05-04 Tom Tromey <tom@tromey.com>
6743
6744 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
6745 "false".
6746
fa9c2a59
TT
67472019-05-04 Tom Tromey <tom@tromey.com>
6748
6749 * arc-tdep.c (arc_tdesc_init): Use bool.
6750
e2eb806a
TT
67512019-05-04 Tom Tromey <tom@tromey.com>
6752
6753 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
6754
6fe87677
TT
67552019-05-04 Tom Tromey <tom@tromey.com>
6756
6757 * cli/cli-cmds.c (valid_command_p): Return bool.
6758
7f008c9e
TT
67592019-05-04 Tom Tromey <tom@tromey.com>
6760
6761 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
6762 * command.h (valid_user_defined_cmd_name_p): Channge return type.
6763
b6484282
RT
67642019-05-04 Raul Tambre <raul@tambre.ee>
6765
6766 * python/lib/gdb/prompt.py (_ExtendedPrompt)
6767 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
6768 operator for comparison.
6769
af97b416
TT
67702019-05-04 Tom Tromey <tom@tromey.com>
6771
6772 * psymtab.c (psymbol_name_matches, match_partial_symbol)
6773 (lookup_partial_symbol, print_partial_symbols)
6774 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
6775 (psymbol_compare): Update.
6776 (add_psymbol_to_bcache): Clear the entire psymbol.
6777 (maintenance_check_psymtabs): Update.
6778 * psympriv.h (struct partial_symbol): Don't derive from
6779 general_symbol_info.
6780 <obj_section, unrelocated_address, address,
6781 set_unrelocated_address>: Update.
6782 <ginfo>: New member.
6783 * dwarf-index-write.c (write_psymbols, debug_names::insert)
6784 (debug_names::write_psymbols): Update.
6785
9d6d4be8
TV
67862019-05-04 Tom de Vries <tdevries@suse.de>
6787
6788 * contrib/cc-with-tweaks.sh: Support -n arg.
6789
66452beb
PW
67902019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6791
6792 * corelow.c (core_target::detach): Ensure frame cache and
6793 register caches are cleared.
6794 inferior.c (exit_inferior_1): Likewise.
6795
bde09ab7
TT
67962019-05-03 Sandra Loosemore <sandra@codesourcery.com>
6797 Tom Tromey <tom@tromey.com>
6798
6799 * dictionary.c (collate_pending_symbols_by_language): Remove
6800 "struct" from foreach.
6801 * symtab.c (lookup_global_symbol_from_objfile)
6802 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
6803 foreach.
6804 * ser-tcp.c (net_open): Remove "struct" from foreach.
6805 * objfiles.c (objfile_relocate, objfile_rebase)
6806 (objfile_has_symbols): Remove "struct" from foreach.
6807 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
6808 from foreach.
6809 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
6810 foreach.
6811 * darwin-nat.c (thread_info_from_private_thread_info): Remove
6812 "struct" from foreach.
6813 * ada-lang.c (create_excep_cond_exprs)
6814 (ada_exception_catchpoint_cond_string): Remove "struct" from
6815 foreach.
6816
222a8d25
TT
68172019-05-03 Tom Tromey <tromey@adacore.com>
6818
6819 * ada-exp.y (convert_char_literal): Check suffix of each
6820 enumerator.
6821
fcd60b84
DP
68222019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
6823
6824 PR ada/21406:
6825 * ada-exp.y (yywrap): Don't define.
6826 * ada-lex.l (%option): Add noyywrap
6827 (yywrap): Remove.
6828
5f2459c2
EZ
68292019-05-03 Eli Zaretskii <eliz@gnu.org>
6830
353ea2d1
EZ
6831 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
6832 _WIN32_WINNT to the XP level, unless already defined to a higher
6833 level.
6834
6835 * unittests/parse-connection-spec-selftests.c:
6836 * ser-tcp.c:
6837 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
6838 override.
6839
5f2459c2
EZ
6840 * symfile.c (find_separate_debug_file): Remove colon from the
6841 drive spec of DOS/Windows file names of the target, so that the
6842 file name produced from DEBUGDIR and the target's directory will
6843 be valid on DOS/Windows systems.
6844
80062eb9
AB
68452019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
6846
6847 * rust-lang.c (val_print_struct): Handle printing structures
6848 containing strings.
6849
b8c05e85
TT
68502019-05-02 Tom Tromey <tromey@adacore.com>
6851
6852 * valarith.c (_initialize_valarith): Remove.
6853
4504bbde
TT
68542019-05-01 Tom Tromey <tromey@adacore.com>
6855
6856 * ada-lang.c (ada_value_primitive_field): Treat more fields as
6857 bitfields.
6858
d48e62f4
TT
68592019-05-01 Tom Tromey <tromey@adacore.com>
6860
6861 * ada-lang.c (ada_value_assign): Correctly compute starting offset
6862 for big-endian copies.
6863
15f18d14
AT
68642019-04-30 Ali Tamur <tamur@google.com>
6865 * gdb/dwarf2read.c (read_3_bytes): New declaration.
6866 (read_attribute_value): Added DW_FORM_strx1-4 cases.
6867 (read_3_bytes): New function.
6868
ab4ee614
JB
68692019-04-30 Joel Brobecker <brobecker@adacore.com>
6870
6871 * windows-nat.c (main_thread_id): Delete.
6872 (handle_output_debug_string): Replace main_thread_id by
6873 current_event.dwThreadId.
6874 (fake_create_process): Likewise.
6875 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
6876 Do not set main_thread_id.
6877 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
6878 current_event.dwThreadId.
6879 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
6880
8ed5b76e
JB
68812019-04-30 Joel Brobecker <brobecker@adacore.com>
6882
6883 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
6884 Use current_event.dwThreadId instead of main_thread_id.
6885
2ff0a947
TT
68862019-04-30 Tom Tromey <tromey@adacore.com>
6887
6888 * ada-lang.c (ada_lookup_simple_minsyms): New function.
6889 (create_excep_cond_exprs): Iterate over program spaces.
6890 (ada_exception_catchpoint_cond_string): Examine all minimal
6891 symbols for exception types.
6892
a776957c
TT
68932019-04-30 Tom Tromey <tromey@adacore.com>
6894
6895 PR c++/24470:
6896 * dwarf2read.c (process_structure_scope): Handle case where type
6897 has template parameters but no symbol was created.
6898
bc68014d
AB
68992019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6900 Chris January <chris.january@arm.com>
6901
6902 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
6903 qualifier.
6904 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
6905
f1fdc960
AB
69062019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6907
6908 * f-typeprint.c (f_print_type): Update rules for printing
6909 whitespace.
6910 (f_type_print_varspec_suffix): Likewise.
6911
bf7a4de1
AB
69122019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6913 Chris January <chris.january@arm.com>
6914
6915 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
6916 function arguments.
6917
bbe75b9d
AB
69182019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6919
6920 * f-lang.c (build_fortran_types): Change name of void type to
6921 lower case.
6922 * f-typeprint.c (f_type_print_base): Print the name of the void
6923 type, rather than a fixed string.
6924 * f-valprint.c (f_decorations): Use lower case void string.
6925
1db455a7
AB
69262019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6927 Chris January <chris.january@arm.com>
6928
6929 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
6930 types for Fortran.
6931
b6d03bb2
AB
69322019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6933 Chris January <chris.january@arm.com>
6934 David Lecomber <david.lecomber@arm.com>
6935
6936 * f-exp.y (BINOP_INTRINSIC): New token.
6937 (exp): New parser rule handling BINOP_INTRINSIC.
6938 (f77_keywords): Add new builtin procedures.
6939 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
6940 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6941 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
6942 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6943 (print_unop_subexp_f): New function.
6944 (print_binop_subexp_f): New function.
6945 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6946 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6947 (dump_subexp_body_f): Likewise.
6948 (operator_check_f): Likewise.
6949 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6950 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
6951
83228e93
AB
69522019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6953
6954 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
6955 UNOP_KIND.
6956 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
6957 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
6958 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
6959 (operator_length_f): New fuction.
6960 (print_subexp_f): New function.
6961 (op_name_f): New function.
6962 (dump_subexp_body_f): New function.
6963 (operator_check_f): New function.
6964 (exp_descriptor_f): Replace standard expression handling functions
6965 with new functions.
6966 * gdb/fortran-operator.def: New file.
6967 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
6968 * gdb/std-operator.def: Remove UNOP_KIND.
6969
6fdcd7cc
AB
69702019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6971
6972 * std-operator.def: Remove unbalanced, stray double quote
6973 character.
6974
2e62ab40
AB
69752019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6976 Chris January <chris.january@arm.com>
6977 Daniel Everett <daniel.everett@arm.com>
6978 Nick Forrington <nick.forrington@arm.com>
6979 Richard Bunt <richard.bunt@arm.com>
6980
6981 * cp-valprint.c (cp_print_value_fields): Allow an additional level
6982 of depth when printing anonymous structs or unions.
6983 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
6984 Don't print either the top-level value, or the children if the
6985 max-depth is exceeded.
6986 (ppscm_print_children): When printing the key of a map, allow one
6987 extra level of depth.
6988 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
6989 print either the top-level value, or the children if the max-depth
6990 is exceeded.
6991 (print_children): When printing the key of a map, allow one extra
6992 level of depth.
6993 * python/py-value.c (valpy_format_string): Add max_depth keyword.
6994 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
6995 (user_print_options): Initialise max_depth field.
6996 (val_print_scalar_or_string_type_p): New function.
6997 (val_print): Check to see if the max depth has been reached.
6998 (val_print_check_max_depth): Define new function.
6999 (show_print_max_depth): New function.
7000 (_initialize_valprint): Add 'print max-depth' option.
7001 * valprint.h (struct value_print_options) <max_depth>: New field.
7002 (val_print_check_max_depth): Declare new function.
7003 * NEWS: Document new feature.
7004
4be290b2
AB
70052019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7006
7007 * ada-lang.c (ada_language_defn): Initialise new field.
7008 * c-lang.c (c_is_string_type_p): New function.
7009 (c_language_defn): Initialise new field.
7010 (cplus_language_defn): Initialise new field.
7011 (asm_language_defn): Initialise new field.
7012 (minimal_language_defn): Initialise new field.
7013 * c-lang.h (c_is_string_type_p): Declare new function.
7014 * d-lang.c (d_language_defn): Initialise new field.
7015 * f-lang.c (f_is_string_type_p): New function.
7016 (f_language_defn): Initialise new field.
7017 * go-lang.c (go_is_string_type_p): New function.
7018 (go_language_defn): Initialise new field.
7019 * language.c (default_is_string_type_p): New function.
7020 (unknown_language_defn): Initialise new field.
7021 (auto_language_defn): Initialise new field.
7022 * language.h (struct language_defn) <la_is_string_type_p>: New
7023 member variable.
7024 (default_is_string_type_p): Declare new function.
7025 * m2-lang.c (m2_language_defn): Initialise new field.
7026 * objc-lang.c (objc_language_defn): Initialise new field.
7027 * opencl-lang.c (opencl_language_defn): Initialise new field.
7028 * p-lang.c (pascal_is_string_type_p): New function.
7029 (pascal_language_defn): Initialise new field.
7030 * rust-lang.c (rust_is_string_type_p): New function.
7031 (rust_language_defn): Initialise new field.
7032
721b08c6
AB
70332019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7034
7035 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
7036 New field.
7037 * ada-lang.c (ada_language_defn): Initialise new field.
7038 * c-lang.c (c_language_defn): Likewise.
7039 (cplus_language_defn): Likewise.
7040 (asm_language_defn): Likewise.
7041 (minimal_language_defn): Likewise.
7042 * d-lang.c (d_language_defn): Likewise.
7043 * f-lang.c (f_language_defn): Likewise.
7044 * go-lang.c (go_language_defn): Likewise.
7045 * language.c (unknown_language_defn): Likewise.
7046 (auto_language_defn): Likewise.
7047 * m2-lang.c (m2_language_defn): Likewise.
7048 * objc-lang.c (objc_language_defn): Likewise.
7049 * opencl-lang.c (opencl_language_defn): Likewise.
7050 * p-lang.c (pascal_language_defn): Likewise.
7051 * rust-lang.c (rust_language_defn): Likewise.
7052
fc913e53
AB
70532019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7054
7055 * ada-lang.c (ada_is_character_type): Change return type to bool.
7056 (ada_is_string_type): Likewise.
7057 * ada-lang.h (ada_is_character_type): Update declaration
7058 (ada_is_string_type): Likewise.
7059
fa731fa0
PW
70602019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7061
7062 Support style in 'frame|thread apply'
7063
7064 * gdbcmd.h (execute_command_to_string): New term_out parameter.
7065 * record.c (record_start, record_stop): Update callers of
7066 execute_command_to_string with false.
7067 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
7068 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
7069 methods.
7070 (class string_file): New constructor with term_out parameter.
7071 Override methods term_out and can_emit_style_escape. New member
7072 term_out.
7073 (class stdio_file): Override can_emit_style_escape.
7074 (class tee_file): Override term_out and can_emit_style_escape.
7075 * utils.h (can_emit_style_escape): Remove.
7076 * utils.c (can_emit_style_escape): Likewise.
7077 Update all callers of can_emit_style_escape (SOMESTREAM) to
7078 SOMESTREAM->can_emit_style_escape.
7079 * source-cache.c (source_cache::get_source_lines): Likewise.
7080 * stack.c (frame_apply_command_count): Call execute_command_to_string
7081 passing the term_out characteristic of the current gdb_stdout.
7082 * thread.c (thr_try_catch_cmd): Likewise.
7083 * top.c (execute_command_to_string): pass term_out parameter
7084 to construct the string_file for the command output.
7085 * ui-file.c (term_cli_styling): New function (most code moved
7086 from utils.c can_emit_style_escape).
7087 (string_file::string_file, string_file::can_emit_style_escape,
7088 stdio_file::can_emit_style_escape, tee_file::term_out,
7089 tee_file::can_emit_style_escape): New functions.
7090
136afab8
PW
70912019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7092
7093 * NEWS: Mention the new set|show may-call-functions.
7094 * infcall.c (may_call_functions_p): New variable.
7095 (show_may_call_functions_p): New function.
7096 (call_function_by_hand_dummy): Throws an error if not
7097 may-call-functions.
7098 (_initialize_infcall): Call add_setshow_boolean_cmd for
7099 may-call-functions.
7100
725cbb63
KS
71012019-04-25 Keith Seitz <keiths@redhat.com>
7102
7103 PR c++/24367
7104 * cp-support.c (inspect_type): Don't attempt substitutions
7105 of symbol with the same name.
7106
3d1cbb78
TT
71072019-04-25 Tom Tromey <tromey@adacore.com>
7108
7109 PR gdb/24475:
7110 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
7111 static.
7112
94aeb44b
TT
71132019-04-25 Tom Tromey <tromey@adacore.com>
7114
7115 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
7116 rvalue reference.
7117 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
7118 (gdb_xml_parser::parse): Use std::move.
7119 * python/python-internal.h (gdbpy_convert_exception): Take a const
7120 reference.
7121 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
7122 std::move.
7123 * python/py-utils.c (gdbpy_convert_exception): Take a const
7124 reference.
7125 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7126 Use std::move.
7127 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7128 Use std::move.
7129 * mi/mi-main.c (mi_print_exception): Take a const reference.
7130 * main.c (handle_command_errors): Take a const reference.
7131 * linespec.c (parse_linespec): Use std::move.
7132 * infcall.c (run_inferior_call): Use std::move.
7133 (call_function_by_hand_dummy): Use std::move.
7134 * exec.c (try_open_exec_file): Use std::move.
7135 * exceptions.h (exception_print, exception_fprintf)
7136 (exception_print_same): Update.
7137 * exceptions.c (print_exception, exception_print)
7138 (exception_fprintf, exception_print_same): Change parameters to
7139 const reference.
7140 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
7141 * common/new-op.c: Use std::move.
7142 * common/common-exceptions.h (struct gdb_exception): Add move
7143 constructor.
7144 (struct gdb_exception_error, struct gdb_exception_quit, struct
7145 gdb_quit_bad_alloc): Change constructor to move constructor.
7146 (throw_exception): Change parameter to rvalue reference.
7147 * common/common-exceptions.c (throw_exception): Take rvalue
7148 reference.
7149 * cli/cli-interp.c (safe_execute_command): Use std::move.
7150 * breakpoint.c (insert_bp_location, location_to_sals): Use
7151 std::move.
7152
680d7fd5
TT
71532019-04-25 Tom Tromey <tromey@adacore.com>
7154
7155 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
7156 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
7157 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
7158 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
7159 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
7160 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
7161 guile/scm-value.c: Use unpack.
7162 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
7163 gdbscm_gdb_exception.
7164 (gdbscm_throw_gdb_exception): Likewise.
7165 (struct gdbscm_gdb_exception): New.
7166 (unpack): New function.
7167 (gdbscm_wrap): Use unpack.
7168
c6fdd8b2
TT
71692019-04-25 Tom Tromey <tromey@adacore.com>
7170
7171 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7172 (gdb_rl_callback_handler): Use std::move.
7173 * common/common-exceptions.h (struct gdb_exception): Add move
7174 assignment operator.
7175 (throw_exception_sjlj): Change "exception" to const reference.
7176 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
7177 (throw_exception_sjlj): Change "exception" to const reference.
7178
cc06b668
TT
71792019-04-25 Tom Tromey <tromey@adacore.com>
7180
7181 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
7182 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
7183 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7184 Update.
7185 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7186 Update.
7187 * mi/mi-interp.c (mi_interp::exec): Update.
7188 * linespec.c (parse_linespec): Update.
7189 * infcall.c (run_inferior_call): Update.
7190 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
7191 * guile/scm-symbol.c (gdbscm_lookup_symbol)
7192 (gdbscm_lookup_global_symbol): Update.
7193 * guile/scm-param.c (gdbscm_parameter_value): Update.
7194 * guile/scm-frame.c (gdbscm_frame_read_register)
7195 (gdbscm_frame_read_var): Update.
7196 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7197 * exec.c (try_open_exec_file): Update.
7198 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7199 (gdb_rl_callback_handler): Update.
7200 * common/common-exceptions.h (exception_none): Don't declare.
7201 * common/common-exceptions.c (exception_none): Don't define.
7202 (struct catcher) <exception>: Update.
7203 * cli/cli-interp.c (safe_execute_command): Update.
7204 * breakpoint.c (insert_bp_location, location_to_sals): Update.
7205
cf532bd1
AT
72062019-04-25 Ali Tamur <tamur@google.com>
7207
7208 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
7209 (read_attribute_value): Likewise.
7210 (dwarf2_read_addr_index): Update comment.
7211 (read_str_index): Add DW_FORM_strx.
7212 (dwarf2_string_attr): Likewise.
7213 (dwarf2_const_value_attr): Likewise.
7214 (dump_die_shallow): Likewise.
7215 (dwarf2_fetch_constant_bytes): Likewise.
7216 (skip_form_bytes): Likewise.
7217 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
7218
82433e3e
SDJ
72192019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7220
7221 PR corefiles/11608
7222 PR corefiles/18187
7223 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
7224 OFFSET. Verify if current mapping contains an ELF header.
7225 (linux_find_memory_regions_full): Adjust call to
7226 dump_mapping_p.
7227
723adb65
SL
72282019-04-25 Sandra Loosemore <sandra@codesourcery.com>
7229 Kang Li <kanglictf@gmail.com>
7230
7231 PR gdb/21600
7232
7233 * dwarf2-frame.c (read_initial_length): Be consistent about using
7234 unsigned representation of length.
7235 (decode_frame_entry_1): Likewise. Check for wraparound of
7236 end pointer as well as buffer overflow.
7237
596179f7
SDJ
72382019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7239
7240 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
7241 "vq".
7242
a59240a4
TT
72432019-04-24 Tom Tromey <tromey@adacore.com>
7244
7245 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
7246
f872fdbb
AB
72472019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7248
7249 * s12z-tdep.c (s12z_unwind_pc): Delete.
7250 (s12z_unwind_sp): Delete.
7251 (s12z_gdbarch_init): Don't register deleted functions with
7252 gdbarch.
7253
b614e6f3
AB
72542019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7255
7256 * rl78-tdep.c (rl78_unwind_sp): Delete.
7257 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
7258
14faed38
AB
72592019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7260
7261 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
7262 (xstormy16_unwind_pc): Delete.
7263 (xstormy16_dummy_id): Delete.
7264 (xstormy16_gdbarch_init): Don't register deleted functions with
7265 gdbarch.
7266
541aad8a
AB
72672019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7268
7269 * vax-tdep.c (vax_unwind_pc): Delete.
7270 (vax_gdbarch_init): Don't register deleted function with gdbarch.
7271
29222070
AB
72722019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7273
7274 * v850-tdep.c (v850_unwind_sp): Delete.
7275 (v850_unwind_pc): Delete.
7276 (v850_dummy_id): Delete.
7277 (v850_gdbarch_init): Don't register deleted functions with
7278 gdbarch.
7279
0f534d76
AB
72802019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7281
7282 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
7283 (tilegx_unwind_pc): Delete.
7284 (tilegx_unwind_dummy_id): Delete.
7285 (tilegx_gdbarch_init): Don't register deleted functions with
7286 gdbarch.
7287
1ba7b7f9
AB
72882019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7289
7290 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
7291 (tic6x_dummy_id): Delete.
7292 (tic6x_gdbarch_init): Don't register deleted functions with
7293 gdbarch.
7294
d31f262c
AB
72952019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7296
7297 * sparc-tdep.c (sparc_unwind_pc): Delete.
7298 (sparc32_gdbarch_init): Don't register deleted function with
7299 gdbarch.
7300
6d14d64d
AB
73012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7302
7303 * sh-tdep.c (sh_unwind_sp): Delete.
7304 (sh_unwind_pc): Delete.
7305 (sh_dummy_id): Delete.
7306 (sh_gdbarch_init): Don't register deleted functions with
7307 gdbarch.
7308
a40dde9d
AB
73092019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7310
7311 * score-tdep.c (score_unwind_sp): Delete.
7312 (score_unwind_pc): Delete.
7313 (score_dummy_id): Delete.
7314 (score_gdbarch_init): Don't register deleted functions with
7315 gdbarch.
7316
47c47d69
AB
73172019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7318
7319 * rx-tdep.c (rx_unwind_pc): Delete.
7320 (rx_unwind_sp): Delete.
7321 (rx_dummy_id): Delete.
7322 (rx_gdbarch_init): Don't register deleted functions with
7323 gdbarch. Update comment.
7324
833a4480
AB
73252019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7326
7327 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
7328 (rs6000_dummy_id): Delete.
7329 (rs6000_gdbarch_init): Don't register deleted functions with
7330 gdbarch.
7331
3f2cef49
AB
73322019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7333
7334 * or1k-tdep.c (or1k_dummy_id): Delete.
7335 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
7336
96acf884
AB
73372019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7338
7339 * nios2-tdep.c (nios2_dummy_id): Delete.
7340 (nios2_unwind_sp): Delete.
7341 (nios2_gdbarch_init): Don't register deleted functions with
7342 gdbarch.
7343
ca0ab0aa
AB
73442019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7345
7346 * nds32-tdep.c (nds32_dummy_id): Delete.
7347 (nds32_unwind_pc): Delete.
7348 (nds32_unwind_sp): Delete.
7349 (nds32_gdbarch_init): Don't register deleted functions with
7350 gdbarch.
7351
c8259044
AB
73522019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7353
7354 * msp430-tdep.c (msp430_unwind_pc): Delete.
7355 (msp430_unwind_sp): Delete.
7356 (msp430_dummy_id): Delete.
7357 (msp430_gdbarch_init): Don't register deleted functions with
7358 gdbarch.
7359
27f113c8
AB
73602019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7361
7362 * moxie-tdep.c (moxie_unwind_sp): Delete.
7363 (moxie_unwind_pc): Delete.
7364 (moxie_dummy_id): Delete.
7365 (moxie_gdbarch_init): Don't register deleted functions with
7366 gdbarch.
7367
aee6c3cd
AB
73682019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7369
7370 * mn10300-tdep.c (mn10300_dummy_id): Delete.
7371 (mn10300_unwind_pc): Delete.
7372 (mn10300_unwind_sp): Delete.
7373 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
7374 mn10300_unwind_sp.
7375 (mn10300_frame_unwind_init): Don't register deleted functions with
7376 gdbarch.
7377
8e2b5aea
AB
73782019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7379
7380 * mep-tdep.c (mep_unwind_pc): Delete.
7381 (mep_unwind_sp): Delete.
7382 (mep_dummy_id): Delete.
7383 (mep_gdbarch_init): Don't register deleted functions with
7384 gdbarch.
7385
43cf3ede
AB
73862019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7387
7388 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
7389 (m68hc11_unwind_sp): Delete.
7390 (m68hc11_gdbarch_init): Don't register deleted functions with
7391 gdbarch.
7392
5e79b7bb
AB
73932019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7394
7395 * m32r-tdep.c (m32r_unwind_sp): Delete.
7396 (m32r_unwind_pc): Delete.
7397 (m32r_dummy_id): Delete.
7398 (m32r_gdbarch_init): Don't register deleted functions with
7399 gdbarch.
7400
89b268d8
AB
74012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7402
7403 * m32c-tdep.c (m32c_unwind_pc): Delete.
7404 (m32c_unwind_sp): Delete.
7405 (m32c_dummy_id): Delete.
7406 (m32c_gdbarch_init): Don't register deleted functions with
7407 gdbarch.
7408
946c28d2
AB
74092019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7410
7411 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
7412 (lm32_unwind_pc): Delete.
7413 (lm32_dummy_id): Delete.
7414 (lm32_gdbarch_init): Don't register deleted functions with
7415 gdbarch.
7416
bf12844a
AB
74172019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7418
7419 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
7420 (iq2000_unwind_pc): Delete.
7421 (iq2000_dummy_id): Delete.
7422 (iq2000_gdbarch_init): Don't register deleted functions with
7423 gdbarch.
7424
ecbc06d2
AB
74252019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7426
7427 * nds32-tdep.c (nds32_type_align): Delete.
7428 (nds32_push_dummy_call): Use type_align instead.
7429
030197b4
AB
74302019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7431
7432 * arm-tdep.c (arm_type_align): Only handle vector override case.
7433 (arm_push_dummy_call): Use type_align.
7434 (arm_gdbarch_init): Register arm_type_align gdbarch function.
7435
b907456c
AB
74362019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7437
7438 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
7439 case.
7440 (pass_on_stack): Use type_align.
7441 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
7442 function.
7443
9e97ba43
TT
74442019-04-23 Tom Tromey <tromey@adacore.com>
7445
7446 * dwarf2read.c (line_header::file_name_at): Remove unused
7447 overload.
7448
6892f601
TV
74492019-04-23 Tom de Vries <tdevries@suse.de>
7450
7451 PR gdb/24438
7452 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
7453 invocation.
7454
336d760d
AT
7455
74562019-03-27 Ali Tamur <tamur@google.com>
7457
7458 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
7459 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
7460 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
7461 (dwarf_expr_context::get_addr_index): Likewise
7462 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
7463 (symbol_needs_eval_context::get_addr_index): Likewise
7464 (disassemble_dwarf_expression): Add DW_OP_addrx
7465 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
7466 (read_cutu_die_from_dwo): Update comment
7467 (skip_one_die): Add DW_FORM_addrx
7468 (read_attribute_value): Likewise
7469 (var_decode_location): Add DW_OP_addrx
7470 (dwarf2_const_value_attr): Add DW_FORM_addrx
7471 (dump_die_shallow): Likewise
7472 (dwarf2_fetch_constant_bytes): Likewise
7473 (decode_locdesc): Add DW_OP_addrx
7474 (skip_form_bytes): Add DW_FORM_addrx
7475
ad9d13f8
AT
74762019-04-22 Ali Tamur <tamur@google.com>
7477
7478 * MAINTAINERS (Write After Approval): Add self.
7479
d70cc3ba
SM
74802019-04-22 Simon Marchi <simon.marchi@efficios.com>
7481
7482 * solib-svr4.c (get_svr4_info): Add pspace parameter.
7483 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
7484 (open_symbol_file_object): Likewise.
7485 (svr4_default_sos): Add info parameter.
7486 (svr4_read_so_list): Likewise.
7487 (svr4_current_sos_direct): Adjust functions calls to pass down
7488 info.
7489 (svr4_current_sos_1): Add info parameter.
7490 (svr4_current_sos): Call get_svr4_info, pass info down to
7491 svr4_current_sos_1.
7492 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
7493 get_svr4_info.
7494 (svr4_in_dynsym_resolve_code): Pass current_program_space to
7495 get_svr4_info.
7496 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
7497 to get_svr4_info.
7498 (probes_table_remove_objfile_probes): Likewise.
7499 (register_solib_event_probe): Add info parameter.
7500 (solist_update_incremental): Pass info parameter down to
7501 svr4_read_so_list.
7502 (disable_probes_interface): Add info parameter.
7503 (svr4_handle_solib_event): Pass current_program_space to
7504 get_svr4_info. Adjust disable_probes_interface cleanup.
7505 (svr4_create_probe_breakpoints): Add info parameter, pass it
7506 down to register_solib_event_probe.
7507 (svr4_create_solib_event_breakpoints): Add info parameter,
7508 pass it down to svr4_create_probe_breakpoints.
7509 (enable_break): Pass info down to
7510 svr4_create_solib_event_breakpoints.
7511 (svr4_solib_create_inferior_hook): Pass current_program_space to
7512 get_svr4_info.
7513 (svr4_clear_solib): Likewise.
7514
7905fc35
PA
75152019-04-22 Pedro Alves <palves@redhat.com>
7516
7517 * solib-svr4.c (svr4_free_objfile_observer): New.
7518 (probe_and_action::objfile): New field.
7519 (probes_table_htab_remove_objfile_probes)
7520 (probes_table_remove_objfile_probes): New functions.
7521 (register_solib_event_probe): Add 'objfile' parameter. Store it
7522 in the new probe_and_action. Don't store the probe in 'lookup'.
7523 (svr4_create_probe_breakpoints): Pass objfile to
7524 register_solib_event_probe.
7525 (_initialize_svr4_solib): Register a free_objfile observer.
7526
fb881986
TT
75272019-04-19 Tom Tromey <tom@tromey.com>
7528
7529 * common/queue.h: Remove.
7530
8732db6c
TT
75312019-04-19 Tom Tromey <tom@tromey.com>
7532
7533 * event-loop.c: Don't include "common/queue.h".
7534
97dfbadd
TT
75352019-04-19 Tom Tromey <tom@tromey.com>
7536
7537 * remote.c (remote_target): Use delete.
7538 * remote-notif.h: Include <list>, not "common/queue.h".
7539 (notif_client_p): Remove typedef.
7540 (remote_notif_state): Add constructor, destructor, initializer.
7541 <notif_queue>: Now a std::list.
7542 (remote_notif_state_xfree): Don't declare.
7543 * remote-notif.c (remote_notif_process, handle_notification)
7544 (remote_notif_state_allocate): Update.
7545 (~remote_notif_state): Rename from remote_notif_state_xfree.
7546
cf250e36
TT
75472019-04-19 Tom Tromey <tom@tromey.com>
7548
7549 * symfile.c (reread_symbols): Update.
7550 * objfiles.c (objfile_register_static_link)
7551 (objfile_lookup_static_link): Update
7552 (~objfile) Don't delete static_links.
7553 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
7554
61f4b350
TT
75552019-04-19 Tom Tromey <tom@tromey.com>
7556
7557 * type-stack.h (struct type_stack) <insert>: Constify string.
7558 * type-stack.c (type_stack::insert): Constify string.
7559 * gdbtypes.h (lookup_template_type): Update.
7560 (address_space_name_to_int): Update.
7561 * gdbtypes.c (address_space_name_to_int): Make space_identifier
7562 const.
7563 (lookup_template_type): Make name const.
7564 * c-exp.y: Update rules.
7565 (lex_one_token, classify_name, classify_inner_name)
7566 (c_print_token): Update.
7567 * p-exp.y: Update rules.
7568 (yylex): Update.
7569 * f-exp.y: Update rules.
7570 (yylex): Update.
7571 * d-exp.y: Update rules.
7572 (lex_one_token, classify_name, classify_inner_name): Update.
7573 * parse.c (write_dollar_variable, copy_name): Return std::string.
7574 * parser-defs.h (copy_name): Change return type.
7575 * m2-exp.y: Update rules.
7576 (yylex): Update.
7577 * go-exp.y (lex_one_token): Update.
7578 Update rules.
7579 (classify_unsafe_function, classify_packaged_name)
7580 (classify_name, yylex): Update.
7581
189b8c2e
ST
75822019-04-19 Sergei Trofimovich <siarheit@google.com>
7583
7584 * configure.ac: add --enable-source-highlight switch.
7585 * configure: Regenerate.
7586 * top.c (print_gdb_version): plumb --enable-source-highlight
7587 status to "show configuration".
7588
8ecb59f8
TT
75892019-04-19 Tom Tromey <tromey@adacore.com>
7590
7591 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
7592 Check ADA_TYPE_P.
7593 (empty_record, ada_template_to_fixed_record_type_1)
7594 (template_to_static_fixed_type)
7595 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
7596 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
7597 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
7598 macros.
7599
62160ec9
TT
76002019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
7601
7602 PR symtab/24423:
7603 * source.c (print_source_lines_base): Advance "iter" when a
7604 control character is seen.
7605
f2ae8bc8
PW
76062019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7607
7608 * inferior.h (struct infcall_suspend_state_deleter):
7609 Catch exception in destructor to avoid crash.
7610
d563b953
PW
76112019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7612
7613 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
7614 close to the add_com "shell".
7615
dc34c897
TT
76162019-04-18 Tom Tromey <tromey@adacore.com>
7617
7618 * process-stratum-target.h (class process_stratum_target)
7619 <stratum>: Add "final".
7620
a12e5744
TT
76212019-04-17 Tom Tromey <tromey@adacore.com>
7622
7623 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
7624 against nullptr before use.
7625
a7e559cc
AH
76262019-04-17 Alan Hayward <alan.hayward@arm.com>
7627
7628 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
7629
c01660c6
AB
76302019-04-17 Jim Wilson <jimw@sifive.com>
7631 Andrew Burgess <andrew.burgess@embecosm.com>
7632
7633 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
7634 code read might fail, assume 4-byte breakpoint in that case.
7635
4aa866af
LS
76362019-04-15 Leszek Swirski <leszeks@google.com>
7637
7638 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
7639 rather than a hand-rolled POD check when checking for forced MEMORY
7640 classification.
7641
48574d91
AH
76422019-04-15 Alan Hayward <alan.hayward@arm.com>
7643
7644 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
7645 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
7646 function.
7647 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
7648 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
7649 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
7650 declaration.
7651
4da037ef
AH
76522019-04-15 Alan Hayward <alan.hayward@arm.com>
7653
7654 * aarch64-linux-nat.c
7655 (aarch64_linux_nat_target::thread_architecture): Add override.
7656 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
7657 each VQ.
7658
ccb8d7e8
AH
76592019-04-15 Alan Hayward <alan.hayward@arm.com>
7660
7661 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
7662
35add35e
AB
76632019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
7664
7665 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
7666 target types of size 96-bits, add some additional comments, and
7667 check that the builtin type we found was the correct size.
7668
51196bbc
EZ
76692019-04-12 Eli Zaretskii <eliz@gnu.org>
7670
7671 * utils.c (prompt_for_continue): Don't restore the styling at the
7672 end, as applied_style has the wrong value. This fixes styling in
7673 long lists of file names that are interrupted by the "Continue?"
7674 prompt.
7675
62253a61
AB
76762019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
7677
7678 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
7679 * c-lang.c (c_language_defn): Likewise.
7680 (cplus_language_defn): Likewise.
7681 (asm_language_defn): Likewise.
7682 (minimal_language_defn): Likewise.
7683 * d-lang.c (d_language_defn): Likewise.
7684 * f-lang.c (f_language_defn): Likewise.
7685 * go-lang.c (go_language_defn): Likewise.
7686 * language.c (unknown_language_defn): Likewise.
7687 (auto_language_defn): Likewise.
7688 * language.h (struct language_defn): Remove la_magic field.
7689 (LANG_MAGIC): Delete.
7690 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
7691 * objc-lang.c (objc_language_defn): Likewise.
7692 * opencl-lang.c (opencl_language_defn): Likewise.
7693 * p-lang.c (pascal_language_defn): Likewise.
7694 * rust-lang.c (rust_language_defn): Likewise.
7695
a9158a86
AB
76962019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7697
7698 * riscv-tdep.c (riscv_type_align): New function.
7699 (riscv_type_alignment): Delete.
7700 (riscv_arg_location): Use 'type_align'.
7701 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
7702
41077b66
AB
77032019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7704
7705 * gdbtypes.c (type_align): A struct with no non-static fields also
7706 has alignment of 1.
7707
9f0272f8
AB
77082019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7709
7710 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
7711 component to 0.
7712 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
7713 member.
7714 (riscv_struct_info::analyse): New implementation using new
7715 analyse_inner member function.
7716 (riscv_struct_info::field_offset): New member function.
7717 (riscv_struct_info::m_offsets): New member variable.
7718 (riscv_struct_info::analyse_inner): New private member function,
7719 takes the old implementation of riscv_struct_info::analyse but
7720 extended to track field offsets.
7721 (riscv_call_arg_struct): Update the struct folding special cases
7722 to handle cases where empty C++ structs, which are non-zero
7723 length, are found.
7724 (riscv_arg_location): Initialise the length of each location, a
7725 non-zero length now indicates the location is in use.
7726 (riscv_push_dummy_call): Allow for the first location having a
7727 non-zero offset when setting up arguments.
7728 (riscv_return_value): Likewise, but for return values.
7729
02cf60c7
TT
77302019-04-11 Tom Tromey <tromey@adacore.com>
7731
7732 * utils.c (internal_vproblem): Make "msg" const.
7733
68811f8f
AH
77342019-04-11 Alan Hayward <alan.hayward@arm.com>
7735
7736 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
7737 * trad-frame.c (trad_frame_reset_saved_regs): New function.
7738 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
7739 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
7740
3f52fdbc
KB
77412019-04-10 Kevin Buettner <kevinb@redhat.com>
7742
7743 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
7744 function.
7745 (fill_gregset): Call amd64_linux_collect_native_gregset instead
7746 of amd64_collect_native_gregset.
7747 (amd64_linux_nat_target::store_registers): Likewise.
7748
e9ad22ee
TT
77492019-04-10 Tom Tromey <tom@tromey.com>
7750
7751 * symtab.c (lookup_global_symbol_from_objfile)
7752 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
7753 * objfiles.h (class separate_debug_iterator): New.
7754 (class separate_debug_range): New.
7755 (struct objfile) <separate_debug_objfiles>: New method.
7756 (objfile_separate_debug_iterate): Don't declare.
7757 * objfiles.c (separate_debug_iterator::operator++): Rename from
7758 objfile_separate_debug_iterate.
7759 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
7760 iterator.
7761 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
7762 iterator.
7763
ee371134
TT
77642019-04-10 Tom Tromey <tom@tromey.com>
7765
7766 * symfile.c (reread_symbols): Remove old comment.
7767 * objfiles.c (free_all_objfiles): Fix a typo.
7768
bf227d61
TT
77692019-04-10 Tom Tromey <tom@tromey.com>
7770
7771 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
7772 * minsyms.c (lookup_minimal_symbol): Use foreach.
7773 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7774 (lookup_minimal_symbol_solib_trampoline): Likewise.
7775 * symfile.c (reread_symbols): Use foreach.
7776
8dc433a0
TT
77772019-04-09 Ivan Begert <ivanbegert@gmail.com>
7778 Tom Tromey <tromey@adacore.com>
7779
7780 PR rust/24414:
7781 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
7782 (rust_lex_int_test): Change "value" to be LONGEST.
7783 (rust_lex_tests): Add test for long integer literal.
7784
9ab8741a
TT
77852019-04-09 Tom Tromey <tromey@adacore.com>
7786
7787 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
7788 to bool.
7789 (extended_remote_target::attach): Update.
7790 (remote_target::remote_notice_new_inferior): Update.
7791 (remote_target::add_current_inferior_and_thread): Update.
7792 * inferior.c (exit_inferior_1): Use "false".
7793 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
7794
e242fd12
SM
77952019-04-09 Simon Marchi <simon.marchi@efficios.com>
7796
9ca1957f 7797 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
7798 the "start" command.
7799
2b0c8b01
KB
78002019-04-08 Kevin Buettner <kevinb@redhat.com>
7801
7802 * python/py-inferior.c (infpy_thread_from_thread_handle):
7803 Adjust comments to reflect renaming of thread_from_thread_handle
7804 to thread_from_handle. Adjust keywords. Fix type error message.
7805 (inferior_object_methods): Add thread_from_handle. Retain
7806 thread_from_thread_handle, but mark it as deprecated.
7807
50a82723
KB
78082019-04-08 Kevin Buettner <kevinb@redhat.com>
7809
7810 * gdbthread.h (find_thread_by_handle): Revise declaration.
7811 * thread.c (find_thread_by_handle): Likewise. Adjust
7812 implementation too.
7813 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
7814 support for buffer objects as handles.
7815
cf63b016
KB
78162019-04-08 Kevin Buettner <kevinb@redhat.com>
7817
7818 * python/py-infthread.c (thpy_thread_handle): New function.
7819 (thread_object_methods): Register thpy_thread_handle.
7820
3d6c6204
KB
78212019-04-08 Kevin Buettner <kevinb@redhat.com>
7822
7823 * gdbthread.h (thread_to_thread_handle): Declare.
7824 * thread.c (gdbtypes.h): Include.
7825 (thread_to_thread_handle): New function.
7826
7827 * target.h (struct target_ops): Add thread_info_to_thread_handle.
7828 (target_thread_info_to_thread_handle): Declare.
7829 * target.c (target_thread_info_to_thread_handle): New function.
7830 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
7831 * target-delegates.c: Regenerate.
7832
7833 * linux-thread-db.c (class thread_db_target): Add method
7834 thread_info_to_thread_handle.
7835 (thread_db_target::thread_info_to_thread_handle): Define.
7836 * remote.c (class remote_target): Add new method
7837 thread_info_to_thread_handle.
7838 (remote_target::thread_info_to_thread_handle): Define.
7839
56be6ea8
PA
78402019-04-08 Pedro Alves <palves@redhat.com>
7841
7842 * common/common-exceptions.c (throw_exception): Don't create
7843 named object to throw; throw directly.
7844 (throw_it): Likewise. Don't initialize gdb_exception::message
7845 here, with new; pass FMT and AP to the ctor instead.
7846 * common/common-exceptions.h: Include <string>.
7847 (gdb_exception::gdb_exception(enum return_reason, enum errors,
7848 const char *, va_list)): New ctor. Use std::make_shared.
7849 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
7850 errors)): Delete.
7851 (gdb_exception_error::gdb_exception_error(enum errors, const char
7852 *, va_list)): New.
7853 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
7854 Add assertion.
7855 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
7856 errors)): Delete.
7857 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
7858 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
7859 Add assertion.
7860
eedc3f4f
TT
78612019-04-08 Tom Tromey <tom@tromey.com>
7862
7863 * valops.c (value_rtti_indirect_type): Replace throw_exception
7864 with throw.
7865 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
7866 with throw.
7867 * thread.c (thr_try_catch_cmd): Replace throw_exception with
7868 throw.
7869 * target.c (target_translate_tls_address): Replace throw_exception
7870 with throw.
7871 * stack.c (frame_apply_command_count): Replace throw_exception
7872 with throw.
7873 * solib-spu.c (append_ocl_sos): Replace throw_exception with
7874 throw.
7875 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
7876 with throw.
7877 * rs6000-tdep.c (rs6000_frame_cache)
7878 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
7879 * remote.c: Replace throw_exception with throw.
7880 * record-full.c (record_full_message, record_full_wait_1)
7881 (record_full_restore): Replace throw_exception with throw.
7882 * record-btrace.c:
7883 (get_thread_current_frame_id, record_btrace_start_replaying)
7884 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
7885 (cmd_record_btrace_start): Replace throw_exception with throw.
7886 * parse.c (parse_exp_in_context_1): Replace throw_exception with
7887 throw.
7888 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
7889 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
7890 * linespec.c:
7891 (find_linespec_symbols): Replace throw_exception with throw.
7892 * infrun.c (displaced_step_prepare, resume): Replace
7893 throw_exception with throw.
7894 * infcmd.c (post_create_inferior): Replace throw_exception with
7895 throw.
7896 * inf-loop.c (inferior_event_handler): Replace throw_exception
7897 with throw.
7898 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
7899 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
7900 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
7901 (get_prev_frame_always, get_frame_pc_if_available)
7902 (get_frame_address_in_block_if_available, get_frame_language):
7903 Replace throw_exception with throw.
7904 * frame-unwind.c (frame_unwind_try_unwinder): Replace
7905 throw_exception with throw.
7906 * eval.c (fetch_subexp_value, evaluate_var_value)
7907 (evaluate_funcall, evaluate_subexp_standard): Replace
7908 throw_exception with throw.
7909 * dwarf2loc.c (call_site_find_chain)
7910 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
7911 Replace throw_exception with throw.
7912 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
7913 with throw.
7914 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
7915 throw.
7916 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
7917 * completer.c (complete_line_internal): Replace throw_exception
7918 with throw.
7919 * compile/compile-object-run.c (compile_object_run): Replace
7920 throw_exception with throw.
7921 * cli/cli-script.c (process_next_line): Replace throw_exception
7922 with throw.
7923 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
7924 (btrace_enable, btrace_maint_update_pt_packets): Replace
7925 throw_exception with throw.
7926 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
7927 throw_exception with throw.
7928 * break-catch-throw.c (re_set_exception_catchpoint): Replace
7929 throw_exception with throw.
7930 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7931 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
7932 * aarch64-tdep.c (aarch64_make_prologue_cache)
7933 (aarch64_make_stub_cache): Replace throw_exception with throw.
7934
26003a20
TT
79352019-04-08 Tom Tromey <tom@tromey.com>
7936
7937 * common/common-exceptions.c (throw_exception): Rename from
7938 throw_exception_cxx. Remove old copy. Make argument const.
7939 (throw_it): Create and throw exception objects directly.
7940 * common/common-exceptions.h (throw_exception): Make argument
7941 const.
7942 (struct gdb_exception_error): Add constructor.
7943 (struct gdb_exception_quit): Add constructor.
7944
d272eb37
TT
79452019-04-08 Tom Tromey <tom@tromey.com>
7946
7947 * common/common-exceptions.h (exception_rethrow): Don't declare.
7948 (TRY_SJLJ): Update comment.
7949 (TRY, CATCH, END_CATCH): Remove.
7950 * common/common-exceptions.c (exception_rethrow): Remove.
7951
230d2906
TT
79522019-04-08 Tom Tromey <tom@tromey.com>
7953
7954 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
7955 Remove.
7956 (gdb_exception_error): Rename from
7957 gdb_exception_RETURN_MASK_ERROR.
7958 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
7959 (gdb_quit_bad_alloc): Update.
7960 * aarch64-tdep.c: Update.
7961 * ada-lang.c: Update.
7962 * ada-typeprint.c: Update.
7963 * ada-valprint.c: Update.
7964 * amd64-tdep.c: Update.
7965 * arch-utils.c: Update.
7966 * break-catch-throw.c: Update.
7967 * breakpoint.c: Update.
7968 * btrace.c: Update.
7969 * c-varobj.c: Update.
7970 * cli/cli-cmds.c: Update.
7971 * cli/cli-interp.c: Update.
7972 * cli/cli-script.c: Update.
7973 * common/common-exceptions.c: Update.
7974 * common/new-op.c: Update.
7975 * common/selftest.c: Update.
7976 * compile/compile-c-symbols.c: Update.
7977 * compile/compile-cplus-symbols.c: Update.
7978 * compile/compile-object-load.c: Update.
7979 * compile/compile-object-run.c: Update.
7980 * completer.c: Update.
7981 * corelow.c: Update.
7982 * cp-abi.c: Update.
7983 * cp-support.c: Update.
7984 * cp-valprint.c: Update.
7985 * darwin-nat.c: Update.
7986 * disasm-selftests.c: Update.
7987 * dtrace-probe.c: Update.
7988 * dwarf-index-cache.c: Update.
7989 * dwarf-index-write.c: Update.
7990 * dwarf2-frame-tailcall.c: Update.
7991 * dwarf2-frame.c: Update.
7992 * dwarf2loc.c: Update.
7993 * dwarf2read.c: Update.
7994 * eval.c: Update.
7995 * event-loop.c: Update.
7996 * event-top.c: Update.
7997 * exec.c: Update.
7998 * f-valprint.c: Update.
7999 * fbsd-tdep.c: Update.
8000 * frame-unwind.c: Update.
8001 * frame.c: Update.
8002 * gdbtypes.c: Update.
8003 * gnu-v3-abi.c: Update.
8004 * guile/guile-internal.h: Update.
8005 * guile/scm-block.c: Update.
8006 * guile/scm-breakpoint.c: Update.
8007 * guile/scm-cmd.c: Update.
8008 * guile/scm-disasm.c: Update.
8009 * guile/scm-frame.c: Update.
8010 * guile/scm-lazy-string.c: Update.
8011 * guile/scm-math.c: Update.
8012 * guile/scm-param.c: Update.
8013 * guile/scm-ports.c: Update.
8014 * guile/scm-pretty-print.c: Update.
8015 * guile/scm-symbol.c: Update.
8016 * guile/scm-symtab.c: Update.
8017 * guile/scm-type.c: Update.
8018 * guile/scm-value.c: Update.
8019 * i386-linux-tdep.c: Update.
8020 * i386-tdep.c: Update.
8021 * inf-loop.c: Update.
8022 * infcall.c: Update.
8023 * infcmd.c: Update.
8024 * infrun.c: Update.
8025 * jit.c: Update.
8026 * language.c: Update.
8027 * linespec.c: Update.
8028 * linux-fork.c: Update.
8029 * linux-nat.c: Update.
8030 * linux-tdep.c: Update.
8031 * linux-thread-db.c: Update.
8032 * main.c: Update.
8033 * mi/mi-cmd-break.c: Update.
8034 * mi/mi-cmd-stack.c: Update.
8035 * mi/mi-interp.c: Update.
8036 * mi/mi-main.c: Update.
8037 * objc-lang.c: Update.
8038 * p-valprint.c: Update.
8039 * parse.c: Update.
8040 * ppc-linux-tdep.c: Update.
8041 * printcmd.c: Update.
8042 * python/py-arch.c: Update.
8043 * python/py-breakpoint.c: Update.
8044 * python/py-cmd.c: Update.
8045 * python/py-finishbreakpoint.c: Update.
8046 * python/py-frame.c: Update.
8047 * python/py-framefilter.c: Update.
8048 * python/py-gdb-readline.c: Update.
8049 * python/py-inferior.c: Update.
8050 * python/py-infthread.c: Update.
8051 * python/py-lazy-string.c: Update.
8052 * python/py-linetable.c: Update.
8053 * python/py-objfile.c: Update.
8054 * python/py-param.c: Update.
8055 * python/py-prettyprint.c: Update.
8056 * python/py-progspace.c: Update.
8057 * python/py-record-btrace.c: Update.
8058 * python/py-record.c: Update.
8059 * python/py-symbol.c: Update.
8060 * python/py-type.c: Update.
8061 * python/py-unwind.c: Update.
8062 * python/py-utils.c: Update.
8063 * python/py-value.c: Update.
8064 * python/python.c: Update.
8065 * record-btrace.c: Update.
8066 * record-full.c: Update.
8067 * remote-fileio.c: Update.
8068 * remote.c: Update.
8069 * riscv-tdep.c: Update.
8070 * rs6000-aix-tdep.c: Update.
8071 * rs6000-tdep.c: Update.
8072 * rust-exp.y: Update.
8073 * rust-lang.c: Update.
8074 * s390-tdep.c: Update.
8075 * selftest-arch.c: Update.
8076 * solib-dsbt.c: Update.
8077 * solib-frv.c: Update.
8078 * solib-spu.c: Update.
8079 * solib-svr4.c: Update.
8080 * solib.c: Update.
8081 * sparc64-linux-tdep.c: Update.
8082 * stack.c: Update.
8083 * symfile-mem.c: Update.
8084 * symmisc.c: Update.
8085 * target.c: Update.
8086 * thread.c: Update.
8087 * top.c: Update.
8088 * tracefile-tfile.c: Update.
8089 * tui/tui.c: Update.
8090 * typeprint.c: Update.
8091 * unittests/cli-utils-selftests.c: Update.
8092 * unittests/parse-connection-spec-selftests.c: Update.
8093 * valops.c: Update.
8094 * valprint.c: Update.
8095 * value.c: Update.
8096 * varobj.c: Update.
8097 * windows-nat.c: Update.
8098 * x86-linux-nat.c: Update.
8099 * xml-support.c: Update.
8100
a70b8144
TT
81012019-04-08 Tom Tromey <tom@tromey.com>
8102
8103 * xml-support.c: Use C++ exception handling.
8104 * x86-linux-nat.c: Use C++ exception handling.
8105 * windows-nat.c: Use C++ exception handling.
8106 * varobj.c: Use C++ exception handling.
8107 * value.c: Use C++ exception handling.
8108 * valprint.c: Use C++ exception handling.
8109 * valops.c: Use C++ exception handling.
8110 * unittests/parse-connection-spec-selftests.c: Use C++ exception
8111 handling.
8112 * unittests/cli-utils-selftests.c: Use C++ exception handling.
8113 * typeprint.c: Use C++ exception handling.
8114 * tui/tui.c: Use C++ exception handling.
8115 * tracefile-tfile.c: Use C++ exception handling.
8116 * top.c: Use C++ exception handling.
8117 * thread.c: Use C++ exception handling.
8118 * target.c: Use C++ exception handling.
8119 * symmisc.c: Use C++ exception handling.
8120 * symfile-mem.c: Use C++ exception handling.
8121 * stack.c: Use C++ exception handling.
8122 * sparc64-linux-tdep.c: Use C++ exception handling.
8123 * solib.c: Use C++ exception handling.
8124 * solib-svr4.c: Use C++ exception handling.
8125 * solib-spu.c: Use C++ exception handling.
8126 * solib-frv.c: Use C++ exception handling.
8127 * solib-dsbt.c: Use C++ exception handling.
8128 * selftest-arch.c: Use C++ exception handling.
8129 * s390-tdep.c: Use C++ exception handling.
8130 * rust-lang.c: Use C++ exception handling.
8131 * rust-exp.y: Use C++ exception handling.
8132 * rs6000-tdep.c: Use C++ exception handling.
8133 * rs6000-aix-tdep.c: Use C++ exception handling.
8134 * riscv-tdep.c: Use C++ exception handling.
8135 * remote.c: Use C++ exception handling.
8136 * remote-fileio.c: Use C++ exception handling.
8137 * record-full.c: Use C++ exception handling.
8138 * record-btrace.c: Use C++ exception handling.
8139 * python/python.c: Use C++ exception handling.
8140 * python/py-value.c: Use C++ exception handling.
8141 * python/py-utils.c: Use C++ exception handling.
8142 * python/py-unwind.c: Use C++ exception handling.
8143 * python/py-type.c: Use C++ exception handling.
8144 * python/py-symbol.c: Use C++ exception handling.
8145 * python/py-record.c: Use C++ exception handling.
8146 * python/py-record-btrace.c: Use C++ exception handling.
8147 * python/py-progspace.c: Use C++ exception handling.
8148 * python/py-prettyprint.c: Use C++ exception handling.
8149 * python/py-param.c: Use C++ exception handling.
8150 * python/py-objfile.c: Use C++ exception handling.
8151 * python/py-linetable.c: Use C++ exception handling.
8152 * python/py-lazy-string.c: Use C++ exception handling.
8153 * python/py-infthread.c: Use C++ exception handling.
8154 * python/py-inferior.c: Use C++ exception handling.
8155 * python/py-gdb-readline.c: Use C++ exception handling.
8156 * python/py-framefilter.c: Use C++ exception handling.
8157 * python/py-frame.c: Use C++ exception handling.
8158 * python/py-finishbreakpoint.c: Use C++ exception handling.
8159 * python/py-cmd.c: Use C++ exception handling.
8160 * python/py-breakpoint.c: Use C++ exception handling.
8161 * python/py-arch.c: Use C++ exception handling.
8162 * printcmd.c: Use C++ exception handling.
8163 * ppc-linux-tdep.c: Use C++ exception handling.
8164 * parse.c: Use C++ exception handling.
8165 * p-valprint.c: Use C++ exception handling.
8166 * objc-lang.c: Use C++ exception handling.
8167 * mi/mi-main.c: Use C++ exception handling.
8168 * mi/mi-interp.c: Use C++ exception handling.
8169 * mi/mi-cmd-stack.c: Use C++ exception handling.
8170 * mi/mi-cmd-break.c: Use C++ exception handling.
8171 * main.c: Use C++ exception handling.
8172 * linux-thread-db.c: Use C++ exception handling.
8173 * linux-tdep.c: Use C++ exception handling.
8174 * linux-nat.c: Use C++ exception handling.
8175 * linux-fork.c: Use C++ exception handling.
8176 * linespec.c: Use C++ exception handling.
8177 * language.c: Use C++ exception handling.
8178 * jit.c: Use C++ exception handling.
8179 * infrun.c: Use C++ exception handling.
8180 * infcmd.c: Use C++ exception handling.
8181 * infcall.c: Use C++ exception handling.
8182 * inf-loop.c: Use C++ exception handling.
8183 * i386-tdep.c: Use C++ exception handling.
8184 * i386-linux-tdep.c: Use C++ exception handling.
8185 * guile/scm-value.c: Use C++ exception handling.
8186 * guile/scm-type.c: Use C++ exception handling.
8187 * guile/scm-symtab.c: Use C++ exception handling.
8188 * guile/scm-symbol.c: Use C++ exception handling.
8189 * guile/scm-pretty-print.c: Use C++ exception handling.
8190 * guile/scm-ports.c: Use C++ exception handling.
8191 * guile/scm-param.c: Use C++ exception handling.
8192 * guile/scm-math.c: Use C++ exception handling.
8193 * guile/scm-lazy-string.c: Use C++ exception handling.
8194 * guile/scm-frame.c: Use C++ exception handling.
8195 * guile/scm-disasm.c: Use C++ exception handling.
8196 * guile/scm-cmd.c: Use C++ exception handling.
8197 * guile/scm-breakpoint.c: Use C++ exception handling.
8198 * guile/scm-block.c: Use C++ exception handling.
8199 * guile/guile-internal.h: Use C++ exception handling.
8200 * gnu-v3-abi.c: Use C++ exception handling.
8201 * gdbtypes.c: Use C++ exception handling.
8202 * frame.c: Use C++ exception handling.
8203 * frame-unwind.c: Use C++ exception handling.
8204 * fbsd-tdep.c: Use C++ exception handling.
8205 * f-valprint.c: Use C++ exception handling.
8206 * exec.c: Use C++ exception handling.
8207 * event-top.c: Use C++ exception handling.
8208 * event-loop.c: Use C++ exception handling.
8209 * eval.c: Use C++ exception handling.
8210 * dwarf2read.c: Use C++ exception handling.
8211 * dwarf2loc.c: Use C++ exception handling.
8212 * dwarf2-frame.c: Use C++ exception handling.
8213 * dwarf2-frame-tailcall.c: Use C++ exception handling.
8214 * dwarf-index-write.c: Use C++ exception handling.
8215 * dwarf-index-cache.c: Use C++ exception handling.
8216 * dtrace-probe.c: Use C++ exception handling.
8217 * disasm-selftests.c: Use C++ exception handling.
8218 * darwin-nat.c: Use C++ exception handling.
8219 * cp-valprint.c: Use C++ exception handling.
8220 * cp-support.c: Use C++ exception handling.
8221 * cp-abi.c: Use C++ exception handling.
8222 * corelow.c: Use C++ exception handling.
8223 * completer.c: Use C++ exception handling.
8224 * compile/compile-object-run.c: Use C++ exception handling.
8225 * compile/compile-object-load.c: Use C++ exception handling.
8226 * compile/compile-cplus-symbols.c: Use C++ exception handling.
8227 * compile/compile-c-symbols.c: Use C++ exception handling.
8228 * common/selftest.c: Use C++ exception handling.
8229 * common/new-op.c: Use C++ exception handling.
8230 * cli/cli-script.c: Use C++ exception handling.
8231 * cli/cli-interp.c: Use C++ exception handling.
8232 * cli/cli-cmds.c: Use C++ exception handling.
8233 * c-varobj.c: Use C++ exception handling.
8234 * btrace.c: Use C++ exception handling.
8235 * breakpoint.c: Use C++ exception handling.
8236 * break-catch-throw.c: Use C++ exception handling.
8237 * arch-utils.c: Use C++ exception handling.
8238 * amd64-tdep.c: Use C++ exception handling.
8239 * ada-valprint.c: Use C++ exception handling.
8240 * ada-typeprint.c: Use C++ exception handling.
8241 * ada-lang.c: Use C++ exception handling.
8242 * aarch64-tdep.c: Use C++ exception handling.
8243
3d6e9d23
TT
82442019-04-08 Tom Tromey <tom@tromey.com>
8245
8246 * xml-support.c (gdb_xml_parser::parse): Update.
8247 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8248 * value.c (show_convenience): Update.
8249 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
8250 (test_parse_flags_qcs): Update.
8251 * thread.c (thr_try_catch_cmd): Update.
8252 * target.c (target_translate_tls_address): Update.
8253 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
8254 (info_frame_command_core, frame_apply_command_count): Update.
8255 * rust-exp.y (rust_lex_exception_test): Update.
8256 * riscv-tdep.c (riscv_print_one_register_info): Update.
8257 * remote.c (remote_target::enable_btrace): Update.
8258 * record-btrace.c (record_btrace_enable_warn): Update.
8259 * python/py-utils.c (gdbpy_convert_exception): Update.
8260 * printcmd.c (do_one_display, print_variable_and_value): Update.
8261 * mi/mi-main.c (mi_print_exception): Update.
8262 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
8263 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
8264 * linux-nat.c (linux_nat_target::attach): Update.
8265 * linux-fork.c (class scoped_switch_fork_info): Update.
8266 * infrun.c (displaced_step_prepare): Update.
8267 * infcall.c (call_function_by_hand_dummy): Update.
8268 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
8269 * gnu-v3-abi.c (print_one_vtable): Update.
8270 * frame.c (get_prev_frame_always): Update.
8271 * f-valprint.c (info_common_command_for_block): Update.
8272 * exec.c (try_open_exec_file): Update.
8273 * exceptions.c (print_exception, exception_print)
8274 (exception_fprintf, exception_print_same): Update.
8275 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
8276 * dwarf-index-cache.c (index_cache::store)
8277 (index_cache::lookup_gdb_index): Update.
8278 * darwin-nat.c (maybe_cache_shell): Update.
8279 * cp-valprint.c (cp_print_value_fields): Update.
8280 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
8281 (gcc_cplus_symbol_address): Update.
8282 * compile/compile-c-symbols.c (gcc_convert_symbol)
8283 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
8284 * common/selftest.c: Update.
8285 * common/common-exceptions.h (struct gdb_exception) <message>: Now
8286 a std::string.
8287 (exception_try_scope_entry, exception_try_scope_exit): Don't
8288 declare.
8289 (struct exception_try_scope): Remove.
8290 (TRY): Don't use exception_try_scope.
8291 (struct gdb_exception): Add constructor, operator=.
8292 <what>: New method.
8293 (struct gdb_exception_RETURN_MASK_ALL)
8294 (struct gdb_exception_RETURN_MASK_ERROR)
8295 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
8296 (struct gdb_quit_bad_alloc): Update.
8297 * common/common-exceptions.c (exception_none): Change
8298 initializer.
8299 (struct catcher) <state, exception>: Initialize inline.
8300 <prev>: Remove member.
8301 (current_catcher): Remove.
8302 (catchers): New global.
8303 (exceptions_state_mc_init): Simplify.
8304 (catcher_pop): Remove.
8305 (exceptions_state_mc, exceptions_state_mc_catch): Update.
8306 (try_scope_depth, exception_try_scope_entry)
8307 (exception_try_scope_exit): Remove.
8308 (throw_exception_sjlj): Update.
8309 (exception_messages, exception_messages_size): Remove.
8310 (throw_it): Simplify.
8311 (gdb_exception_sliced_copy): Remove.
8312 (throw_exception_cxx): Update.
8313 * cli/cli-script.c (script_from_file): Update.
8314 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
8315 Update.
8316 * ada-valprint.c (ada_val_print): Update.
8317 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
8318 (create_excep_cond_exprs): Update.
8319
c5c10118
TT
83202019-04-08 Tom Tromey <tom@tromey.com>
8321
8322 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
8323 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
8324 (TRY, CATCH, END_CATCH): Remove some definitions.
8325 * common/common-exceptions.c: Don't use GDB_XCPT.
8326 (catcher_list_size): Remove.
8327 (throw_exception, throw_it): Simplify.
8328
4de283e4
TT
83292019-04-05 Tom Tromey <tom@tromey.com>
8330
8331 Revert the header-sorting patch.
8332 * ft32-tdep.c: Revert.
8333 * frv-tdep.c: Revert.
8334 * frv-linux-tdep.c: Revert.
8335 * frame.c: Revert.
8336 * frame-unwind.c: Revert.
8337 * frame-base.c: Revert.
8338 * fork-child.c: Revert.
8339 * findvar.c: Revert.
8340 * findcmd.c: Revert.
8341 * filesystem.c: Revert.
8342 * filename-seen-cache.h: Revert.
8343 * filename-seen-cache.c: Revert.
8344 * fbsd-tdep.c: Revert.
8345 * fbsd-nat.h: Revert.
8346 * fbsd-nat.c: Revert.
8347 * f-valprint.c: Revert.
8348 * f-typeprint.c: Revert.
8349 * f-lang.c: Revert.
8350 * extension.h: Revert.
8351 * extension.c: Revert.
8352 * extension-priv.h: Revert.
8353 * expprint.c: Revert.
8354 * exec.h: Revert.
8355 * exec.c: Revert.
8356 * exceptions.c: Revert.
8357 * event-top.c: Revert.
8358 * event-loop.c: Revert.
8359 * eval.c: Revert.
8360 * elfread.c: Revert.
8361 * dwarf2read.h: Revert.
8362 * dwarf2read.c: Revert.
8363 * dwarf2loc.c: Revert.
8364 * dwarf2expr.h: Revert.
8365 * dwarf2expr.c: Revert.
8366 * dwarf2-frame.c: Revert.
8367 * dwarf2-frame-tailcall.c: Revert.
8368 * dwarf-index-write.h: Revert.
8369 * dwarf-index-write.c: Revert.
8370 * dwarf-index-common.c: Revert.
8371 * dwarf-index-cache.h: Revert.
8372 * dwarf-index-cache.c: Revert.
8373 * dummy-frame.c: Revert.
8374 * dtrace-probe.c: Revert.
8375 * disasm.h: Revert.
8376 * disasm.c: Revert.
8377 * disasm-selftests.c: Revert.
8378 * dictionary.c: Revert.
8379 * dicos-tdep.c: Revert.
8380 * demangle.c: Revert.
8381 * dcache.h: Revert.
8382 * dcache.c: Revert.
8383 * darwin-nat.h: Revert.
8384 * darwin-nat.c: Revert.
8385 * darwin-nat-info.c: Revert.
8386 * d-valprint.c: Revert.
8387 * d-namespace.c: Revert.
8388 * d-lang.c: Revert.
8389 * ctf.c: Revert.
8390 * csky-tdep.c: Revert.
8391 * csky-linux-tdep.c: Revert.
8392 * cris-tdep.c: Revert.
8393 * cris-linux-tdep.c: Revert.
8394 * cp-valprint.c: Revert.
8395 * cp-support.c: Revert.
8396 * cp-namespace.c: Revert.
8397 * cp-abi.c: Revert.
8398 * corelow.c: Revert.
8399 * corefile.c: Revert.
8400 * continuations.c: Revert.
8401 * completer.h: Revert.
8402 * completer.c: Revert.
8403 * complaints.c: Revert.
8404 * coffread.c: Revert.
8405 * coff-pe-read.c: Revert.
8406 * cli-out.h: Revert.
8407 * cli-out.c: Revert.
8408 * charset.c: Revert.
8409 * c-varobj.c: Revert.
8410 * c-valprint.c: Revert.
8411 * c-typeprint.c: Revert.
8412 * c-lang.c: Revert.
8413 * buildsym.c: Revert.
8414 * buildsym-legacy.c: Revert.
8415 * build-id.h: Revert.
8416 * build-id.c: Revert.
8417 * btrace.c: Revert.
8418 * bsd-uthread.c: Revert.
8419 * breakpoint.h: Revert.
8420 * breakpoint.c: Revert.
8421 * break-catch-throw.c: Revert.
8422 * break-catch-syscall.c: Revert.
8423 * break-catch-sig.c: Revert.
8424 * blockframe.c: Revert.
8425 * block.c: Revert.
8426 * bfin-tdep.c: Revert.
8427 * bfin-linux-tdep.c: Revert.
8428 * bfd-target.c: Revert.
8429 * bcache.c: Revert.
8430 * ax-general.c: Revert.
8431 * ax-gdb.h: Revert.
8432 * ax-gdb.c: Revert.
8433 * avr-tdep.c: Revert.
8434 * auxv.c: Revert.
8435 * auto-load.c: Revert.
8436 * arm-wince-tdep.c: Revert.
8437 * arm-tdep.c: Revert.
8438 * arm-symbian-tdep.c: Revert.
8439 * arm-pikeos-tdep.c: Revert.
8440 * arm-obsd-tdep.c: Revert.
8441 * arm-nbsd-tdep.c: Revert.
8442 * arm-nbsd-nat.c: Revert.
8443 * arm-linux-tdep.c: Revert.
8444 * arm-linux-nat.c: Revert.
8445 * arm-fbsd-tdep.c: Revert.
8446 * arm-fbsd-nat.c: Revert.
8447 * arm-bsd-tdep.c: Revert.
8448 * arch-utils.c: Revert.
8449 * arc-tdep.c: Revert.
8450 * arc-newlib-tdep.c: Revert.
8451 * annotate.h: Revert.
8452 * annotate.c: Revert.
8453 * amd64-windows-tdep.c: Revert.
8454 * amd64-windows-nat.c: Revert.
8455 * amd64-tdep.c: Revert.
8456 * amd64-sol2-tdep.c: Revert.
8457 * amd64-obsd-tdep.c: Revert.
8458 * amd64-obsd-nat.c: Revert.
8459 * amd64-nbsd-tdep.c: Revert.
8460 * amd64-nbsd-nat.c: Revert.
8461 * amd64-nat.c: Revert.
8462 * amd64-linux-tdep.c: Revert.
8463 * amd64-linux-nat.c: Revert.
8464 * amd64-fbsd-tdep.c: Revert.
8465 * amd64-fbsd-nat.c: Revert.
8466 * amd64-dicos-tdep.c: Revert.
8467 * amd64-darwin-tdep.c: Revert.
8468 * amd64-bsd-nat.c: Revert.
8469 * alpha-tdep.c: Revert.
8470 * alpha-obsd-tdep.c: Revert.
8471 * alpha-nbsd-tdep.c: Revert.
8472 * alpha-mdebug-tdep.c: Revert.
8473 * alpha-linux-tdep.c: Revert.
8474 * alpha-linux-nat.c: Revert.
8475 * alpha-bsd-tdep.c: Revert.
8476 * alpha-bsd-nat.c: Revert.
8477 * aix-thread.c: Revert.
8478 * agent.c: Revert.
8479 * addrmap.c: Revert.
8480 * ada-varobj.c: Revert.
8481 * ada-valprint.c: Revert.
8482 * ada-typeprint.c: Revert.
8483 * ada-tasks.c: Revert.
8484 * ada-lang.c: Revert.
8485 * aarch64-tdep.c: Revert.
8486 * aarch64-ravenscar-thread.c: Revert.
8487 * aarch64-newlib-tdep.c: Revert.
8488 * aarch64-linux-tdep.c: Revert.
8489 * aarch64-linux-nat.c: Revert.
8490 * aarch64-fbsd-tdep.c: Revert.
8491 * aarch64-fbsd-nat.c: Revert.
8492 * aarch32-linux-nat.c: Revert.
8493
d55e5aa6
TT
84942019-04-05 Tom Tromey <tom@tromey.com>
8495
8496 * ft32-tdep.c: Sort headers.
8497 * frv-tdep.c: Sort headers.
8498 * frv-linux-tdep.c: Sort headers.
8499 * frame.c: Sort headers.
8500 * frame-unwind.c: Sort headers.
8501 * frame-base.c: Sort headers.
8502 * fork-child.c: Sort headers.
8503 * findvar.c: Sort headers.
8504 * findcmd.c: Sort headers.
8505 * filesystem.c: Sort headers.
8506 * filename-seen-cache.h: Sort headers.
8507 * filename-seen-cache.c: Sort headers.
8508 * fbsd-tdep.c: Sort headers.
8509 * fbsd-nat.h: Sort headers.
8510 * fbsd-nat.c: Sort headers.
8511 * f-valprint.c: Sort headers.
8512 * f-typeprint.c: Sort headers.
8513 * f-lang.c: Sort headers.
8514 * extension.h: Sort headers.
8515 * extension.c: Sort headers.
8516 * extension-priv.h: Sort headers.
8517 * expprint.c: Sort headers.
8518 * exec.h: Sort headers.
8519 * exec.c: Sort headers.
8520 * exceptions.c: Sort headers.
8521 * event-top.c: Sort headers.
8522 * event-loop.c: Sort headers.
8523 * eval.c: Sort headers.
8524 * elfread.c: Sort headers.
8525 * dwarf2read.h: Sort headers.
8526 * dwarf2read.c: Sort headers.
8527 * dwarf2loc.c: Sort headers.
8528 * dwarf2expr.h: Sort headers.
8529 * dwarf2expr.c: Sort headers.
8530 * dwarf2-frame.c: Sort headers.
8531 * dwarf2-frame-tailcall.c: Sort headers.
8532 * dwarf-index-write.h: Sort headers.
8533 * dwarf-index-write.c: Sort headers.
8534 * dwarf-index-common.c: Sort headers.
8535 * dwarf-index-cache.h: Sort headers.
8536 * dwarf-index-cache.c: Sort headers.
8537 * dummy-frame.c: Sort headers.
8538 * dtrace-probe.c: Sort headers.
8539 * disasm.h: Sort headers.
8540 * disasm.c: Sort headers.
8541 * disasm-selftests.c: Sort headers.
8542 * dictionary.c: Sort headers.
8543 * dicos-tdep.c: Sort headers.
8544 * demangle.c: Sort headers.
8545 * dcache.h: Sort headers.
8546 * dcache.c: Sort headers.
8547 * darwin-nat.h: Sort headers.
8548 * darwin-nat.c: Sort headers.
8549 * darwin-nat-info.c: Sort headers.
8550 * d-valprint.c: Sort headers.
8551 * d-namespace.c: Sort headers.
8552 * d-lang.c: Sort headers.
8553 * ctf.c: Sort headers.
8554 * csky-tdep.c: Sort headers.
8555 * csky-linux-tdep.c: Sort headers.
8556 * cris-tdep.c: Sort headers.
8557 * cris-linux-tdep.c: Sort headers.
8558 * cp-valprint.c: Sort headers.
8559 * cp-support.c: Sort headers.
8560 * cp-namespace.c: Sort headers.
8561 * cp-abi.c: Sort headers.
8562 * corelow.c: Sort headers.
8563 * corefile.c: Sort headers.
8564 * continuations.c: Sort headers.
8565 * completer.h: Sort headers.
8566 * completer.c: Sort headers.
8567 * complaints.c: Sort headers.
8568 * coffread.c: Sort headers.
8569 * coff-pe-read.c: Sort headers.
8570 * cli-out.h: Sort headers.
8571 * cli-out.c: Sort headers.
8572 * charset.c: Sort headers.
8573 * c-varobj.c: Sort headers.
8574 * c-valprint.c: Sort headers.
8575 * c-typeprint.c: Sort headers.
8576 * c-lang.c: Sort headers.
8577 * buildsym.c: Sort headers.
8578 * buildsym-legacy.c: Sort headers.
8579 * build-id.h: Sort headers.
8580 * build-id.c: Sort headers.
8581 * btrace.c: Sort headers.
8582 * bsd-uthread.c: Sort headers.
8583 * breakpoint.h: Sort headers.
8584 * breakpoint.c: Sort headers.
8585 * break-catch-throw.c: Sort headers.
8586 * break-catch-syscall.c: Sort headers.
8587 * break-catch-sig.c: Sort headers.
8588 * blockframe.c: Sort headers.
8589 * block.c: Sort headers.
8590 * bfin-tdep.c: Sort headers.
8591 * bfin-linux-tdep.c: Sort headers.
8592 * bfd-target.c: Sort headers.
8593 * bcache.c: Sort headers.
8594 * ax-general.c: Sort headers.
8595 * ax-gdb.h: Sort headers.
8596 * ax-gdb.c: Sort headers.
8597 * avr-tdep.c: Sort headers.
8598 * auxv.c: Sort headers.
8599 * auto-load.c: Sort headers.
8600 * arm-wince-tdep.c: Sort headers.
8601 * arm-tdep.c: Sort headers.
8602 * arm-symbian-tdep.c: Sort headers.
8603 * arm-pikeos-tdep.c: Sort headers.
8604 * arm-obsd-tdep.c: Sort headers.
8605 * arm-nbsd-tdep.c: Sort headers.
8606 * arm-nbsd-nat.c: Sort headers.
8607 * arm-linux-tdep.c: Sort headers.
8608 * arm-linux-nat.c: Sort headers.
8609 * arm-fbsd-tdep.c: Sort headers.
8610 * arm-fbsd-nat.c: Sort headers.
8611 * arm-bsd-tdep.c: Sort headers.
8612 * arch-utils.c: Sort headers.
8613 * arc-tdep.c: Sort headers.
8614 * arc-newlib-tdep.c: Sort headers.
8615 * annotate.h: Sort headers.
8616 * annotate.c: Sort headers.
8617 * amd64-windows-tdep.c: Sort headers.
8618 * amd64-windows-nat.c: Sort headers.
8619 * amd64-tdep.c: Sort headers.
8620 * amd64-sol2-tdep.c: Sort headers.
8621 * amd64-obsd-tdep.c: Sort headers.
8622 * amd64-obsd-nat.c: Sort headers.
8623 * amd64-nbsd-tdep.c: Sort headers.
8624 * amd64-nbsd-nat.c: Sort headers.
8625 * amd64-nat.c: Sort headers.
8626 * amd64-linux-tdep.c: Sort headers.
8627 * amd64-linux-nat.c: Sort headers.
8628 * amd64-fbsd-tdep.c: Sort headers.
8629 * amd64-fbsd-nat.c: Sort headers.
8630 * amd64-dicos-tdep.c: Sort headers.
8631 * amd64-darwin-tdep.c: Sort headers.
8632 * amd64-bsd-nat.c: Sort headers.
8633 * alpha-tdep.c: Sort headers.
8634 * alpha-obsd-tdep.c: Sort headers.
8635 * alpha-nbsd-tdep.c: Sort headers.
8636 * alpha-mdebug-tdep.c: Sort headers.
8637 * alpha-linux-tdep.c: Sort headers.
8638 * alpha-linux-nat.c: Sort headers.
8639 * alpha-bsd-tdep.c: Sort headers.
8640 * alpha-bsd-nat.c: Sort headers.
8641 * aix-thread.c: Sort headers.
8642 * agent.c: Sort headers.
8643 * addrmap.c: Sort headers.
8644 * ada-varobj.c: Sort headers.
8645 * ada-valprint.c: Sort headers.
8646 * ada-typeprint.c: Sort headers.
8647 * ada-tasks.c: Sort headers.
8648 * ada-lang.c: Sort headers.
8649 * aarch64-tdep.c: Sort headers.
8650 * aarch64-ravenscar-thread.c: Sort headers.
8651 * aarch64-newlib-tdep.c: Sort headers.
8652 * aarch64-linux-tdep.c: Sort headers.
8653 * aarch64-linux-nat.c: Sort headers.
8654 * aarch64-fbsd-tdep.c: Sort headers.
8655 * aarch64-fbsd-nat.c: Sort headers.
8656 * aarch32-linux-nat.c: Sort headers.
8657
699bd4cf
TT
86582019-04-04 Tom Tromey <tom@tromey.com>
8659
8660 * varobj.c (varobj_create): Update.
8661 * rust-exp.y (struct rust_parser) <update_innermost_block,
8662 lookup_symbol>: New methods.
8663 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
8664 Rename.
8665 (rust_parser::rust_lookup_type)
8666 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8667 * printcmd.c (display_command, do_one_display): Update.
8668 * parser-defs.h (struct parser_state) <parser_state>: Add
8669 "tracker" parameter.
8670 (block_tracker): New member.
8671 (class innermost_block_tracker) <innermost_block_tracker>: Add
8672 "types" parameter.
8673 <reset>: Remove method.
8674 (innermost_block): Don't declare.
8675 (null_post_parser): Update.
8676 * parse.c (innermost_block): Remove global.
8677 (write_dollar_variable): Update.
8678 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
8679 Remove "tracker_types" parameter.
8680 (parse_expression): Add "tracker" parameter.
8681 (parse_expression_for_completion): Update.
8682 (null_post_parser): Add "tracker" parameter.
8683 * p-exp.y: Update rules.
8684 * m2-exp.y: Update rules.
8685 * language.h (struct language_defn) <la_post_parser>: Add
8686 "tracker" parameter.
8687 * go-exp.y: Update rules.
8688 * f-exp.y: Update rules.
8689 * expression.h (parse_expression, parse_exp_1): Add "tracker"
8690 parameter.
8691 * d-exp.y: Update rules.
8692 * c-exp.y: Update rules.
8693 * breakpoint.c (set_breakpoint_condition): Create an
8694 innermost_block_tracker.
8695 (watch_command_1): Likewise.
8696 * ada-lang.c (resolve): Add "tracker" parameter.
8697 (resolve_subexp): Likewise.
8698 * ada-exp.y (write_var_from_sym): Update.
8699
dac43e32
TT
87002019-04-04 Tom Tromey <tom@tromey.com>
8701
8702 * type-stack.h: New file.
8703 * type-stack.c: New file.
8704 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
8705 type-stack.h.
8706 (insert_into_type_stack, insert_type, push_type, push_type_int)
8707 (insert_type_address_space, pop_type, pop_type_int)
8708 (pop_typelist, pop_type_stack, append_type_stack)
8709 (push_type_stack, get_type_stack, push_typelist)
8710 (follow_type_instance_flags, follow_types): Don't declare.
8711 * parse.c (type_stack): Remove global.
8712 (parse_exp_in_context): Update.
8713 (insert_into_type_stack, insert_type, push_type, push_type_int)
8714 (insert_type_address_space, pop_type, pop_type_int)
8715 (pop_typelist, pop_type_stack, append_type_stack)
8716 (push_type_stack, get_type_stack, push_typelist)
8717 (follow_type_instance_flags, follow_types): Remove (moved to
8718 type-stack.c).
8719 * f-exp.y (type_stack): New global.
8720 Update rules.
8721 (push_kind_type, f_parse): Update.
8722 * d-exp.y (type_stack): New global.
8723 Update rules.
8724 (d_parse): Update.
8725 * c-exp.y (struct c_parse_state) <type_stack>: New member.
8726 Update rules.
8727 * Makefile.in (COMMON_SFILES): Add type-stack.c.
8728 (HFILES_NO_SRCDIR): Add type-stack.h.
8729
2a612529
TT
87302019-04-04 Tom Tromey <tom@tromey.com>
8731
8732 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
8733 (rust_parser::convert_ast_to_expression, rust_parse)
8734 (rust_lex_test_completion, rust_lex_tests): Update.
8735 * parser-defs.h (struct expr_completion_state): New.
8736 (struct parser_state) <parser_state>: Add completion parameter.
8737 <mark_struct_expression, mark_completion_tag>: New methods.
8738 <parse_completion, m_completion_state>: New members.
8739 (prefixify_expression, null_post_parser): Update.
8740 (mark_struct_expression, mark_completion_tag): Don't declare.
8741 * parse.c (parse_completion, expout_last_struct)
8742 (expout_tag_completion_type, expout_completion_name): Remove
8743 globals.
8744 (parser_state::mark_struct_expression)
8745 (parser_state::mark_completion_tag): Now methods.
8746 (prefixify_expression): Add last_struct parameter.
8747 (prefixify_subexp): Likewise.
8748 (parse_exp_1): Update.
8749 (parse_exp_in_context): Add cstate parameter. Update.
8750 (parse_expression_for_completion): Create an
8751 expr_completion_state.
8752 (null_post_parser): Add "completion" parameter.
8753 * p-exp.y: Update rules.
8754 (yylex): Update.
8755 * language.h (struct language_defn) <la_post_parser>: Add
8756 "completing" parameter.
8757 * go-exp.y: Update rules.
8758 (lex_one_token): Update.
8759 * expression.h (parse_completion): Don't declare.
8760 * d-exp.y: Update rules.
8761 (lex_one_token): Update rules.
8762 * c-exp.y: Update rules.
8763 (lex_one_token): Update.
8764 * ada-lang.c (resolve): Add "parse_completion" parameter.
8765 (resolve_subexp): Likewise.
8766 (ada_resolve_function): Likewise.
8767
43476f0b
TT
87682019-04-04 Tom Tromey <tom@tromey.com>
8769
8770 * parser-defs.h (struct parser_state) <start_arglist,
8771 end_arglist>: New methods.
8772 <arglist_len, m_funcall_chain>: New members.
8773 (arglist_len, start_arglist, end_arglist): Don't declare.
8774 * parse.c (arglist_len, funcall_chain): Remove global.
8775 (start_arglist, end_arglist): Remove functions.
8776 (parse_exp_in_context): Update.
8777 * p-exp.y: Update rules.
8778 * m2-exp.y: Update rules.
8779 * go-exp.y: Update rules.
8780 * f-exp.y: Update rules.
8781 * d-exp.y: Update rules.
8782 * c-exp.y: Update rules.
8783
5776fca3
TT
87842019-04-04 Tom Tromey <tom@tromey.com>
8785
8786 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
8787 lex_operator, push_back>: New methods.
8788 Update all rules.
8789 (rust_parser::lex_hex, lex_escape): Rename and update.
8790 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
8791 (rust_parser::lex_operator): Rename and update.
8792 (rust_parser::lex_number, rustyylex, rustyyerror)
8793 (rust_lex_test_init, rust_lex_test_sequence)
8794 (rust_lex_test_push_back, rust_lex_tests): Update.
8795 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
8796 parameter.
8797 <lexptr, prev_lexptr>: New members.
8798 (lexptr, prev_lexptr): Don't declare.
8799 * parse.c (lexptr, prev_lexptr): Remove globals.
8800 (parse_exp_in_context): Update.
8801 * p-exp.y (yylex, yyerror): Update.
8802 * m2-exp.y (parse_number, yylex, yyerror): Update.
8803 * go-exp.y (lex_one_token, yyerror): Update.
8804 * f-exp.y (match_string_literal, yylex, yyerror): Update.
8805 * d-exp.y (lex_one_token, yyerror): Update.
8806 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
8807 (lex_one_token, yyerror): Update.
8808 * ada-lex.l (YY_INPUT): Update.
8809 (rewind_to_char): Update.
8810 * ada-exp.y (yyerror): Update.
8811
8621b685
TT
88122019-04-04 Tom Tromey <tom@tromey.com>
8813
8814 * rust-exp.y (rustyylex, rust_lex_tests): Update.
8815 * parser-defs.h (struct parser_state) <parser_state>: Add new
8816 parameter.
8817 <comma_terminates>: New member.
8818 (comma_terminates): Don't declare global.
8819 * parse.c (comma_terminates): Remove global.
8820 (parse_exp_in_context): Update.
8821 * p-exp.y (yylex): Update.
8822 * m2-exp.y (yylex): Update.
8823 * go-exp.y (lex_one_token): Update.
8824 * f-exp.y (yylex): Update.
8825 * d-exp.y (lex_one_token): Update.
8826 * c-exp.y (lex_one_token): Update.
8827 * ada-lex.l: Update.
8828
28aaf3fd
TT
88292019-04-04 Tom Tromey <tom@tromey.com>
8830
8831 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
8832 (rustyylex, rust_lex_test_init, rust_lex_test_one)
8833 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
8834 * parser-defs.h (paren_depth): Don't declare.
8835 * parse.c (paren_depth): Remove global.
8836 (parse_exp_in_context): Update.
8837 * p-exp.y (paren_depth): New global.
8838 (pascal_parse): Initialize it.
8839 * m2-exp.y (paren_depth): New global.
8840 (m2_parse): Initialize it.
8841 * go-exp.y (paren_depth): New global.
8842 (go_parse): Initialize it.
8843 * f-exp.y (paren_depth): New global.
8844 (f_parse): Initialize it.
8845 * d-exp.y (paren_depth): New global.
8846 (d_parse): Initialize it.
8847 * c-exp.y (paren_depth): New global.
8848 (c_parse): Initialize it.
8849 * ada-lex.l (paren_depth): New global.
8850 (lexer_init): Initialize it.
8851
1e58a4a4
TT
88522019-04-04 Tom Tromey <tom@tromey.com>
8853
8854 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
8855 (rust_parser::convert_ast_to_type)
8856 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8857 * parser-defs.h (struct parser_state) <parser_state>: Add
8858 parameters. Initialize new members.
8859 <expression_context_block, expression_context_pc>: New members.
8860 * parse.c (expression_context_block, expression_context_pc):
8861 Remove globals.
8862 (parse_exp_in_context): Update.
8863 * p-exp.y: Update all rules.
8864 (yylex): Update.
8865 * m2-exp.y: Update all rules.
8866 (yylex): Update.
8867 * go-exp.y (yylex): Update.
8868 * f-exp.y (yylex): Update.
8869 * d-exp.y: Update all rules.
8870 (yylex): Update.
8871 * c-exp.y: Update all rules.
8872 (lex_one_token, classify_name, yylex, c_parse): Update.
8873 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
8874
37eedb39
TT
88752019-04-04 Tom Tromey <tom@tromey.com>
8876
8877 * gdbarch.h, gdbarch.c: Rebuild.
8878 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
8879 * stap-probe.h:
8880 (struct stap_parse_info): Replace "parser_state" with
8881 "expr_builder".
8882 * parser-defs.h (struct expr_builder): Rename from "parser_state".
8883 (parser_state): New class.
8884 * parse.c (expr_builder): Rename.
8885 (expr_builder::release): Rename.
8886 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
8887 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
8888 (write_exp_elt_longcst, write_exp_elt_floatcst)
8889 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
8890 (write_exp_string_vector, write_exp_bitstring)
8891 (write_exp_msymbol, mark_struct_expression)
8892 (write_dollar_variable)
8893 (insert_type_address_space, increase_expout_size): Replace
8894 "parser_state" with "expr_builder".
8895 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
8896 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
8897 "parser_state" with "expr_builder".
8898
73923d7e
TT
88992019-04-04 Tom Tromey <tom@tromey.com>
8900
8901 * rust-exp.y: Replace "parse_language" with method call.
8902 * p-exp.y:
8903 (yylex): Replace "parse_language" with method call.
8904 * m2-exp.y:
8905 (yylex): Replace "parse_language" with method call.
8906 * go-exp.y (classify_name): Replace "parse_language" with method
8907 call.
8908 * f-exp.y (yylex): Replace "parse_language" with method call.
8909 * d-exp.y (lex_one_token): Replace "parse_language" with method
8910 call.
8911 * c-exp.y:
8912 (lex_one_token, classify_name, yylex): Replace "parse_language"
8913 with method call.
8914 * ada-exp.y (find_primitive_type, type_char)
8915 (type_system_address): Replace "parse_language" with method call.
8916
fa9f5be6
TT
89172019-04-04 Tom Tromey <tom@tromey.com>
8918
8919 * rust-exp.y: Replace "parse_gdbarch" with method call.
8920 * parse.c (write_dollar_variable, insert_type_address_space):
8921 Replace "parse_gdbarch" with method call.
8922 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
8923 call.
8924 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
8925 call.
8926 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
8927 "parse_gdbarch" with method call.
8928 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
8929 with method call.
8930 * f-exp.y (parse_type, parse_f_type, yylex): Replace
8931 "parse_gdbarch" with method call.
8932 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
8933 "parse_gdbarch" with method call.
8934 * c-exp.y (parse_type, parse_number, classify_name): Replace
8935 "parse_gdbarch" with method call.
8936 * ada-lex.l: Replace "parse_gdbarch" with method call.
8937 * ada-exp.y (parse_type, find_primitive_type, type_char)
8938 (type_system_address): Replace "parse_gdbarch" with method call.
8939
1201a264
TT
89402019-04-04 Tom Tromey <tom@tromey.com>
8941
8942 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
8943 * stap-probe.c (stap_parse_argument): Update.
8944 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
8945 initial_size parameter.
8946 * rust-exp.y (rust_lex_tests): Update.
8947 * parse.c (parser_state): Update.
8948 (parse_exp_in_context): Update.
8949 * parser-defs.h (struct parser_state) <parser_state>: Remove
8950 "initial_size" parameter.
8951
e3980ce2
TT
89522019-04-04 Tom Tromey <tom@tromey.com>
8953
8954 * parser-defs.h (increase_expout_size): Don't declare.
8955 * parse.c (increase_expout_size): Now static.
8956
e9f8e3f1
TS
89572019-04-04 Thomas Schwinge <thomas@codesourcery.com>
8958
8959 * gnu-nat.c (gnu_nat_target::wait): Fix
8960 target_waitstatus_to_string call.
8961
d7df6549
AB
89622019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8963
8964 * eval.c (evaluate_subexp_standard): Handle internal functions
8965 during Fortran function call handling.
8966
8bdc1658
AB
89672019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8968
8969 * NEWS: Mention new internal functions.
8970 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
8971 (read_base_type): Use dwarf2_init_complex_target_type.
8972 * value.c (creal_internal_fn): New function.
8973 (cimag_internal_fn): New function.
8974 (_initialize_values): Register new internal functions.
8975
c29705b7
PW
89762019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8977
8978 * infrun.c (stop_all_threads): If debug_infrun, always
8979 trace the wait status after wait_one, using
8980 target_waitstatus_to_string and target_pid_to_str.
8981 (handle_inferior_event): Replace various trace of
8982 wait status kind by a single trace.
8983 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
8984 wait status kind image by target_waitstatus_to_string.
8985 * target/waitstatus.c (target_waitstatus_to_string): Fix
8986 obsolete comment.
8987
05caa1d2
TT
89882019-04-01 Tom Tromey <tromey@adacore.com>
8989
8990 PR symtab/23331:
8991 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
8992
9d1447e0
SDJ
89932019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
8994 Pedro Alves <palves@redhat.com>
8995
8996 * top.c (quit_force): Call 'finalize_values'.
8997 * value.c (finalize_values): New function.
8998 * value.h (finalize_values): Declare.
8999
7734102d
EZ
90002019-03-30 Eli Zaretskii <eliz@gnu.org>
9001
9002 * NEWS: Announce $_gdb_major and $_gdb_minor.
9003
9004 * top.c (init_gdb_version_vars): New function.
9005 (gdb_init): Call init_gdb_version_vars.
9006
188e1fa9
TT
90072019-03-29 Tom Tromey <tromey@adacore.com>
9008
9009 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
9010 help text. Remove dead code.
9011
2880242d
KS
90122019-03-29 Keith Seitz <keiths@redhat.com>
9013
9014 From Siddhesh Poyarekar:
9015 * f-lang.h (f77_get_upperbound): Return LONGEST.
9016 (f77_get_lowerbound): Likewise.
9017 * f-typeprint.c (f_type_print_varspec_suffix): Expand
9018 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
9019 print them.
9020 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
9021 plongest to format print it.
9022 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
9023 (f77_get_upperbound): Likewise.
9024 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
9025 LOWER_BOUND to LONGEST.
9026 (f77_create_arrayprint_offset_tbl): Likewise.
9027
cc1defb1
KS
90282019-03-29 Keith Seitz <keiths@redhat.com>
9029
9030 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
9031 %s/pulongest for TYPE_LENGTH instead of %d in format
9032 strings.
9033 * ada-typerint.c (ada_print_type): Likewise.
9034 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
9035 * compile/compile-c-support.c (generate_register_struct): Likewise.
9036 * gdbtypes.c (recursive_dump_type): Likewise.
9037 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
9038 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
9039 instead of %d in format strings.
9040 * riscv-tdep.c (riscv_type_alignment): Cast second argument
9041 to std::min to ULONGEST.
9042 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
9043 instead of %d in format strings.
9044 * tracepoint.c (info_scope_command): Likewise.
9045 * typeprint.c (print_offset_data::update)
9046 (print_offset_data::finish): Likewise.
9047 * xtensa-tdep.c (xtensa_store_return_value)
9048 (xtensa_push_dummy_call): Likewise.
9049
e432ccf1
JT
90502019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
9051
9052 * windows-nat.c (display_selector): Fixed format specifications
9053 for 64-bit Cygwin.
9054
65d2b333
PW
90552019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9056
9057 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
9058
f489207e
SL
90592019-03-28 Sandra Loosemore <sandra@codesourcery.com>
9060
9061 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
9062 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
9063 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
9064 (nios2_linux_init_abi): Install it.
9065
bffa1015
AH
90662019-03-28 Alan Hayward <alan.hayward@arm.com>
9067
9068 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
9069
fc96163a
AH
90702019-03-28 Alan Hayward <alan.hayward@arm.com>
9071
9072 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
9073
20dc7e9b
PW
90742019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9075 Tom Tromey <tromey@adacore.com>
9076
9077 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
9078
7f5331a8
JB
90792019-03-26 Joel Brobecker <brobecker@adacore.com>
9080
9081 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
9082 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
9083 method to compute the bounds of range types. Also print "[evaluated]"
9084 if the bounds' values come from a dynamic evaluation.
9085
18c77628
AB
90862019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
9087
9088 * cp-valprint.c (cp_print_value_fields): Don't print trailing
9089 whitespace when pretty printing is on.
9090
53c973f2
AH
90912019-03-26 Alan Hayward <alan.hayward@arm.com>
9092
e79be6e5 9093 * ppc-linux-nat.c: Add include.
53c973f2 9094
d851aa71
AH
90952019-03-26 Alan Hayward <alan.hayward@arm.com>
9096
e79be6e5 9097 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 9098
2fe7bab7
AH
90992019-03-26 Alan Hayward <alan.hayward@arm.com>
9100
e79be6e5 9101 * arm-linux-nat.c: Add include.
2fe7bab7 9102
068ef30e
SM
91032019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
9104
9105 * source-cache.c (source_cache::get_source_lines): Re-read
9106 fullname after calling open_source_file.
9107
81a24d04
JB
91082019-03-25 John Baldwin <jhb@FreeBSD.org>
9109
9110 * NEWS: Mention TLS support for FreeBSD.
9111
79e7ae11
TT
91122019-03-25 Tom Tromey <tromey@adacore.com>
9113
9114 * minsyms.c (BUNCH_SIZE): Update comment.
9115 (~minimal_symbol_reader): Remove old comment.
9116 (compact_minimal_symbols): Update comment.
9117 (minimal_symbol_reader::install): Remove old comment. Update
9118 other comments.
9119
d45963c2
AH
91202019-03-25 Alan Hayward <alan.hayward@arm.com>
9121
9122 * s390-linux-nat.c: Add include.
9123
0f83012e
AH
91242019-03-25 Alan Hayward <alan.hayward@arm.com>
9125
9126 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
9127 Call linux_get_hwcap.
9128 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
9129 Likewise.
9130 (aarch64_linux_get_hwcap): Remove function.
9131 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
9132 declaration.
9133 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
9134 linux_get_hwcap.
9135 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
9136 * linux-tdep.c (linux_get_hwcap): Add function.
9137 (linux_get_hwcap2): Likewise.
9138 * linux-tdep.h (linux_get_hwcap): Add declaration.
9139 (linux_get_hwcap2): Likewise.
9140 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
9141 (ppc_linux_get_hwcap2): Likewise.
9142 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
9143 linux_get_hwcap.
9144 (ppc_linux_nat_target::insert_watchpoint): Likewise.
9145 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
9146 (ppc_linux_nat_target::read_description): Likewise.
9147 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
9148 * s390-linux-nat.c: Likewise.
9149 * s390-linux-tdep.c (s390_core_read_description): Likewise.
9150
6640a367
TT
91512019-03-24 Tom Tromey <tom@tromey.com>
9152
9153 * ada-lang.c (standard_lookup): Simplify initialization.
9154 (ada_lookup_symbol_nonlocal): Simplify return.
9155 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
9156 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
9157 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
9158 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
9159 initialization.
9160 * solib.c (solib_global_lookup): Simplify.
9161 * symtab.c (null_block_symbol): Remove.
9162 (symbol_cache_lookup): Simplify returns.
9163 (lookup_language_this): Simplify returns.
9164 (lookup_symbol_aux): Simplify return.
9165 (lookup_local_symbol): Simplify returns.
9166 (lookup_global_symbol_from_objfile): Simplify return.
9167 (lookup_symbol_in_objfile_symtabs)
9168 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
9169 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
9170 (lookup_static_symbol, lookup_global_symbol): Simplify return.
9171 * cp-namespace.c (cp_lookup_bare_symbol)
9172 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
9173 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
9174 (cp_lookup_nested_symbol): Don't use null_block_symbol.
9175 (cp_lookup_symbol_via_imports): Simplify initialization.
9176 (find_symbol_in_baseclass): Likewise.
9177 * symtab.h (null_block_symbol): Remove.
9178 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
9179 (d_lookup_nested_symbol, d_lookup_symbol_imports)
9180 (d_lookup_symbol_module): Likewise.
9181 (find_symbol_in_baseclass): Simplify initialization.
9182
a930ebcd
TT
91832019-03-24 Tom Tromey <tom@tromey.com>
9184
9185 * expression.h: Don't include symtab.h.
9186 (struct block): Forward declare.
9187
582942f4
TT
91882019-03-24 Tom Tromey <tom@tromey.com>
9189
9190 * c-exp.y (typebase): Remove casts.
9191 * gdbtypes.c (lookup_unsigned_typename, )
9192 (lookup_signed_typename): Remove cast.
9193 * eval.c (parse_to_comma_and_eval): Remove cast.
9194 * parse.c (write_dollar_variable): Remove cast.
9195 * block.h (struct block) <superblock>: Now const.
9196 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
9197 * psymtab.c (psym_map_matching_symbols): Make "block" const.
9198 (map_block): Make "block" const.
9199 * symfile.h (struct quick_symbol_functions)
9200 <map_matching_symbols>: Constify block argument to "callback".
9201 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
9202 const.
9203 (find_pc_sect_compunit_symtab): Make "b" const.
9204 (find_symbol_at_address): Likewise.
9205 (search_symbols): Likewise.
9206 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
9207 (dw2_debug_names_lookup_symbol): Likewise.
9208 (dw2_map_matching_symbols): Update.
9209 * p-valprint.c (pascal_val_print): Remove "block".
9210 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
9211 (aux_add_nonlocal_symbols): Make "block" const.
9212 (resolve_subexp): Remove cast.
9213 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
9214 const.
9215 (iterate_over_file_blocks): Likewise.
9216 * f-exp.y (%union) <bval>: Remove.
9217 * coffread.c (patch_opaque_types): Make "b" const.
9218 * spu-tdep.c (spu_catch_start): Make "block" const.
9219 * c-valprint.c (print_unpacked_pointer): Remove "block".
9220 * symmisc.c (dump_symtab_1): Make "b" const.
9221 (block_depth): Make "block" const.
9222 * d-exp.y (%union) <bval>: Remove.
9223 * cp-support.h (cp_lookup_rtti_type): Update.
9224 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
9225 * psymtab.c (psym_lookup_symbol): Make "block" const.
9226 (maintenance_check_psymtabs): Make "b" const.
9227 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
9228 (enumerate_locals, enumerate_args): Update.
9229 * python/py-symtab.c (stpy_global_block): Make "block" const.
9230 (stpy_static_block): Likewise.
9231 * inline-frame.c (block_starting_point_at): Make "new_block"
9232 const.
9233 * block.c (find_block_in_blockvector): Make return type const.
9234 (blockvector_for_pc_sect): Make "b" const.
9235 (find_block_in_blockvector): Make "b" const.
9236
7ad417dd
TT
92372019-03-23 Tom Tromey <tom@tromey.com>
9238
9239 * varobj.c (varobj_create): Update.
9240 * symfile.c (clear_symtab_users): Don't reset innermost_block.
9241 * printcmd.c (display_command, do_one_display): Don't reset
9242 innermost_block.
9243 * parser-defs.h (enum innermost_block_tracker_type): Move to
9244 expression.h.
9245 (innermost_block): Update comment.
9246 * parse.c (parse_exp_1): Add tracker_types parameter.
9247 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
9248 tracker_types parameter. Reset innermost_block.
9249 (parse_exp_in_context): Remove.
9250 (parse_expression_for_completion): Update.
9251 * objfiles.c (~objfile): Don't reset expression_context_block or
9252 innermost_block.
9253 * expression.h (enum innermost_block_tracker_type): Move from
9254 parser-defs.h.
9255 (parse_exp_1): Add tracker_types parameter.
9256 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
9257 reset innermost_block.
9258
b366c208
TT
92592019-03-23 Tom Tromey <tom@tromey.com>
9260
9261 * objfiles.h: Include bcache.h.
9262
9bb9b2f9
TT
92632019-03-23 Tom Tromey <tom@tromey.com>
9264
9265 * linespec.c (get_current_search_block): Use
9266 scoped_restore_current_language.
9267 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
9268
59c28372
AH
92692019-03-22 Alan Hayward <alan.hayward@arm.com>
9270 Jiong Wang <jiong.wang@arm.com>
9271
9272 * aarch64-linux-tdep.c
9273 (aarch64_linux_iterate_over_regset_sections): Check for pauth
9274 section.
9275 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
9276
17e116a7
AH
92772019-03-22 Alan Hayward <alan.hayward@arm.com>
9278 Jiong Wang <jiong.wang@arm.com>
9279
9280 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
9281 instructions.
9282 (aarch64_analyze_prologue_test): Add PACIASP test.
9283 (aarch64_prologue_prev_register): Unmask PC value.
9284
11e1b75f
AH
92852019-03-22 Alan Hayward <alan.hayward@arm.com>
9286 Jiong Wang <jiong.wang@arm.com>
9287
9288 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
9289 (aarch64_dwarf2_prev_register): Unmask PC value.
9290 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
9291 (aarch64_execute_dwarf_cfa_vendor_op): Check for
9292 DW_CFA_AARCH64_negate_ra_state.
9293 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
9294
34dcc7cf
AH
92952019-03-22 Alan Hayward <alan.hayward@arm.com>
9296 Jiong Wang <jiong.wang@arm.com>
9297
9298 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
9299 registers.
9300 (aarch64_pseudo_register_name): Likewise.
9301 (aarch64_pseudo_register_type): Likewise.
9302 (aarch64_pseudo_register_reggroup_p): Likewise.
9303 (aarch64_gdbarch_init): Add pauth registers.
9304 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
9305 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
9306 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
9307 (struct gdbarch_tdep): Add regnum for ra_state.
9308
1ef53e6b
AH
93092019-03-22 Alan Hayward <alan.hayward@arm.com>
9310 Jiong Wang <jiong.wang@arm.com>
9311
9312 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
9313
76bed0fd
AH
93142019-03-22 Alan Hayward <alan.hayward@arm.com>
9315 Jiong Wang <jiong.wang@arm.com>
9316
9317 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
9318 function.
9319 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
9320 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
9321 (aarch64_gdbarch_init): Add puth registers.
9322 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
9323 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
9324 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
9325
ee4fbcfa
AH
93262019-03-22 Alan Hayward <alan.hayward@arm.com>
9327 Jiong Wang <jiong.wang@arm.com>
9328
9329 * aarch64-linux-nat.c
9330 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
9331 * aarch64-linux-tdep.c
9332 (aarch64_linux_core_read_description): Likewise.
9333 (aarch64_linux_get_hwcap): New function.
9334 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
9335 (aarch64_linux_get_hwcap): New declaration.
9336
6dc0ebde
AH
93372019-03-22 Alan Hayward <alan.hayward@arm.com>
9338 Jiong Wang <jiong.wang@arm.com>
9339
9340 * aarch64-linux-nat.c
9341 (aarch64_linux_nat_target::read_description): Add pauth param.
9342 * aarch64-linux-tdep.c
9343 (aarch64_linux_core_read_description): Likewise.
9344 * aarch64-tdep.c (struct target_desc): Add in pauth.
9345 (aarch64_read_description): Add pauth param.
9346 (aarch64_gdbarch_init): Likewise.
9347 * aarch64-tdep.h (aarch64_read_description): Likewise.
9348 * arch/aarch64.c (aarch64_create_target_description): Likewise.
9349 * arch/aarch64.h (aarch64_create_target_description): Likewise.
9350 * features/Makefile: Add new files.
9351 * features/aarch64-pauth.c: New file.
9352 * features/aarch64-pauth.xml: New file.
9353
595915c1
TT
93542019-03-20 Tom Tromey <tromey@adacore.com>
9355
9356 * infrun.c (handle_inferior_event): Rename from
9357 handle_inferior_event_1. Create a scoped_value_mark.
9358 (handle_inferior_event): Remove.
9359
4c7d57e7
TT
93602019-03-19 Tom Tromey <tromey@adacore.com>
9361
9362 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
9363 * infrun.h (print_stop_event): Add "displays" parameter.
9364 * infrun.c (print_stop_event): Add "displays" parameter.
9365
cb246234
PA
93662019-03-19 Pedro Alves <palves@redhat.com>
9367
9368 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
9369 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
9370 to -1. Fix TABs vs spaces.
9371 (tui_ui_out::tui_ui_out): Don't initialize fields here.
9372 * tui/tui-out.h (tui_ui_out) Add intro comments.
9373 <m_line, m_start_of_line>: In-class initialize, and add describing
9374 comment.
9375
3a0e45b2
AH
93762019-03-18 Alan Hayward <alan.hayward@arm.com>
9377
9378 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
9379 variable names.
9380 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
9381
5371b850
PA
93822019-03-18 Pedro Alves <palves@redhat.com>
9383 Eli Zaretskii <eliz@gnu.org>
9384
9385 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
9386 m_line and m_start_of_line.
9387
b17c4cd0
EZ
93882019-03-18 Eli Zaretskii <eliz@gnu.org>
9389
9390 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
9391 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
9392 it returns a newline. This fixes a regression in TU mode, whereby
9393 the next line is output on the same screen line as the user input.
9394
4bd56d18
TT
93952019-03-18 Tom Tromey <tromey@adacore.com>
9396
9397 * minsyms.c (minimal_symbol_reader::install): Remove call to
9398 obstack_blank.
9399
55c10aca
PA
94002019-03-18 Pedro Alves <palves@redhat.com>
9401
9402 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
9403 New globals.
9404 (apply_style): New, factored out from ...
9405 (apply_ansi_escape): ... this. Handle reverse video mode.
9406 (tui_set_reverse_mode): New function.
9407 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
9408 * tui/tui-winsource.c (tui_show_source_line): Use
9409 tui_set_reverse_mode instead of setting A_STANDOUT.
9410 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
9411 New setter methods.
9412
647bb750
HD
94132019-03-18 Hannes Domani <ssbssa@yahoo.de>
9414
9415 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
9416 Handle tabs.
9417
bff8c71f
TT
94182019-03-18 Tom Tromey <tromey@adacore.com>
9419
9420 * ada-lang.c (empty_array): Add "high" parameter.
9421 (ada_evaluate_subexp): Update.
9422
58785d98
ST
94232019-03-17 Sergei Trofimovich <siarheit@google.com>
9424
9425 * unittests/string_view-selftests.c: Define
9426 _initialize_string_view_selftests unconditionally.
9427
d4cbef22
ВМ
94282019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9429
9430 PR gdb/24350
9431 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
9432
fce4c071
ВМ
94332019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9434
9435 PR gdb/24351
9436 * windows-nat.c (display_selector): Fix format specifiers.
9437
f7f0a123
EZ
94382019-03-17 Eli Zaretskii <eliz@gnu.org>
9439
9440 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
9441 tui_refill_source_window instead of tui_refresh_win, to update the
9442 current execution line. This fixes redisplay of the current line
9443 when stepping through the code with "next" or "step".
9444
ab42892f
EZ
94452019-03-16 Eli Zaretskii <eliz@gnu.org>
9446
9447 * source-cache.c (source_cache::get_source_lines): Call
9448 find_source_lines to initialize s->nlines. This fixes vertical
9449 scrolling of TUI source window when the DOWN arrow is pressed.
9450
8d8c087f
PW
94512019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9452
9453 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
9454 linux-thread-db.c (_initialize_thread_db): Likewise.
9455
798e1c30
EZ
94562019-03-16 Eli Zaretskii <eliz@gnu.org>
9457
9458 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
9459 wclrtoeol in tui_show_source_line". This reverts changes made in
9460 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
9461
eefba3da
TT
94622019-03-15 Tom Tromey <tom@tromey.com>
9463
9464 * symtab.h (struct minimal_symbol): Derive from
9465 general_symbol_info.
9466 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
9467 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9468 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9469 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9470 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
9471 (MSYMBOL_SEARCH_NAME): Update.
9472 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
9473 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
9474 * minsyms.c (minimal_symbol_reader::record_full): Update.
9475
0de2420c
TT
94762019-03-15 Tom Tromey <tom@tromey.com>
9477
9478 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
9479
042d75e4
TT
94802019-03-15 Tom Tromey <tom@tromey.com>
9481
9482 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
9483 unique_xmalloc_ptr.
9484 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
9485 Update.
9486 * minsyms.c (lookup_minimal_symbol_by_pc_section)
9487 (build_minimal_symbol_hash_tables)
9488 (minimal_symbol_reader::install): Update.
9489
db92718b
TT
94902019-03-15 Tom Tromey <tom@tromey.com>
9491
9492 * symtab.c (create_demangled_names_hash): Update.
9493 (symbol_set_names): Update.
9494 * objfiles.h (struct objfile_per_bfd_storage)
9495 <demangled_names_hash>: Now an htab_up.
9496 * objfiles.c (objfile_per_bfd_storage): Simplify.
9497
d6797f46
TT
94982019-03-15 Tom Tromey <tom@tromey.com>
9499
9500 * objfiles.h (struct objfile_per_bfd_storage): Declare
9501 destructor.
9502 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
9503 New.
9504 (get_objfile_bfd_data): Use new. Don't initialize
9505 language_of_main.
9506 (free_objfile_per_bfd_storage): Remove.
9507 (objfile_bfd_data_free, objfile::~objfile): Use delete.
9508
741d7538
TT
95092019-03-15 Tom Tromey <tom@tromey.com>
9510
9511 * symfile.c (reread_symbols): Update.
9512 * objfiles.c (objfile::objfile): Update.
9513 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
9514 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
9515 comment.
9516 (minimal_symbol_reader::install): Update.
9517 (terminate_minimal_symbol_table): Remove.
9518 * jit.c (jit_object_close_impl): Update.
9519
788c80d1
TT
95202019-03-15 Tom Tromey <tom@tromey.com>
9521
9522 * minsyms.c (minimal_symbol_reader::record_full): Remove some
9523 initializations.
9524
1b7a07cb
TT
95252019-03-15 Tom Tromey <tom@tromey.com>
9526
9527 * objfiles.h (struct objfile_per_bfd_storage)
9528 <demangled_hash_languages>: Now a bitset.
9529 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
9530 (lookup_minimal_symbol): Update.
9531
3db066bc
TT
95322019-03-15 Tom Tromey <tom@tromey.com>
9533
9534 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
9535 Don't return the symbol.
9536 * coffread.c (record_minimal_symbol): Use record_full.
9537
3fff2c37
EZ
95382019-03-14 Eli Zaretskii <eliz@gnu.org>
9539
9540 The MS-Windows port of ncurses fails to switch to a color pair if
9541 one or both of the colors are the implicit default colors. This
9542 change records the default colors when TUI is initialized, and
9543 then specifies them explicitly when a color pair uses the default
9544 colors. This allows color styling in TUI mode on MS-Windows.
9545
9546 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
9547 ncurses_norm_attr.
9548 (tui_initialize_io) [__MINGW32__]: Record the default terminal
9549 colors in ncurses_norm_attr.
9550 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
9551 "none", replace it with the default color recorded in
9552 ncurses_norm_attr.
9553
3b336828
TT
95542019-03-14 Tom Tromey <tromey@adacore.com>
9555
9556 * source-cache.h (class source_cache) <get_source_lines>: Return
9557 std::string.
9558 * source-cache.c (source_cache::extract_lines): Handle case where
9559 first_pos==npos. Return std::string.
9560 (source_cache::get_source_lines): Update.
9561
d085f989
TT
95622019-03-14 Tom Tromey <tromey@adacore.com>
9563
9564 * NEWS: Add item for "style sources" commands.
9565 * source-cache.c (source_cache::get_source_lines): Check
9566 source_styling.
9567 * cli/cli-style.c (source_styling): New global.
9568 (_initialize_cli_style): Add "style sources" commands.
9569 (show_style_sources): New function.
9570 * cli/cli-style.h (source_styling): Declare.
9571
6f11e682
TT
95722019-03-14 Pedro Alves <palves@redhat.com>
9573 Tom Tromey <tromey@adacore.com>
9574
9575 * tui/tui-winsource.h (tui_refill_source_window): Declare.
9576 * tui/tui-winsource.c (tui_refill_source_window): New function,
9577 from...
9578 (tui_horizontal_source_scroll): ... here. Move some logic.
9579 * cli/cli-style.c (set_style_enabled): Notify new observable.
9580 * tui/tui-hooks.c (tui_redisplay_source): New function.
9581 (tui_attach_detach_observers): Attach or detach
9582 tui_redisplay_source.
9583 * observable.h (source_styling_changed): New observable.
9584 * observable.c: Define source_styling_changed observable.
9585
a068643d
TT
95862019-03-13 Tom Tromey <tromey@adacore.com>
9587
9588 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
9589 (i386_gnu_nat_target::store_registers): Update.
9590 * target-debug.h (target_debug_print_std_string): New macro.
9591 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9592 * windows-tdep.c (display_one_tib): Update.
9593 * tui/tui-stack.c (tui_make_status_line): Update.
9594 * top.c (print_inferior_quit_action): Update.
9595 * thread.c (thr_try_catch_cmd): Update.
9596 (add_thread_with_info): Update.
9597 (thread_target_id_str): Update.
9598 (thr_try_catch_cmd): Update.
9599 (thread_command): Update.
9600 (thread_find_command): Update.
9601 * record-btrace.c (record_btrace_target::info_record)
9602 (record_btrace_resume_thread, record_btrace_target::resume)
9603 (record_btrace_cancel_resume, record_btrace_step_thread)
9604 (record_btrace_target::wait, record_btrace_target::wait)
9605 (record_btrace_target::wait, record_btrace_target::stop): Update.
9606 * progspace.c (print_program_space): Update.
9607 * process-stratum-target.c
9608 (process_stratum_target::thread_address_space): Update.
9609 * linux-fork.c (linux_fork_mourn_inferior)
9610 (detach_checkpoint_command, info_checkpoints_command)
9611 (linux_fork_context): Update.
9612 (linux_fork_detach): Update.
9613 (class scoped_switch_fork_info): Update.
9614 (delete_checkpoint_command): Update.
9615 * infrun.c (follow_fork_inferior): Update.
9616 (follow_fork_inferior): Update.
9617 (proceed_after_vfork_done): Update.
9618 (handle_vfork_child_exec_or_exit): Update.
9619 (follow_exec): Update.
9620 (displaced_step_prepare_throw): Update.
9621 (displaced_step_restore): Update.
9622 (start_step_over): Update.
9623 (resume_1): Update.
9624 (clear_proceed_status_thread): Update.
9625 (proceed): Update.
9626 (print_target_wait_results): Update.
9627 (do_target_wait): Update.
9628 (context_switch): Update.
9629 (stop_all_threads): Update.
9630 (restart_threads): Update.
9631 (finish_step_over): Update.
9632 (handle_signal_stop): Update.
9633 (switch_back_to_stepped_thread): Update.
9634 (keep_going_pass_signal): Update.
9635 (print_exited_reason): Update.
9636 (normal_stop): Update.
9637 * inferior.c (inferior_pid_to_str): Change return type.
9638 (print_selected_inferior): Update.
9639 (add_inferior): Update.
9640 (detach_inferior): Update.
9641 * dummy-frame.c (fprint_dummy_frames): Update.
9642 * dcache.c (dcache_info_1): Update.
9643 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
9644 (btrace_fetch, btrace_clear): Update.
9645 * linux-tdep.c (linux_core_pid_to_str): Change return type.
9646 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
9647 type.
9648 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
9649 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
9650 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
9651 * gdbarch.c, gdbarch.h: Rebuild.
9652 * gdbarch.sh (core_pid_to_str): Change return type.
9653 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
9654 return type.
9655 (windows_nat_target::pid_to_str): Change return type.
9656 (windows_delete_thread): Update.
9657 (windows_nat_target::attach): Update.
9658 (windows_nat_target::files_info): Update.
9659 * target-delegates.c: Rebuild.
9660 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
9661 return type.
9662 (sol_thread_target::pid_to_str): Change return type.
9663 * remote.c (class remote_target) <pid_to_str>: Change return
9664 type.
9665 (remote_target::pid_to_str): Change return type.
9666 (extended_remote_target::attach, remote_target::remote_stop_ns)
9667 (remote_target::remote_notif_remove_queued_reply)
9668 (remote_target::push_stop_reply, remote_target::disable_btrace):
9669 Update.
9670 (extended_remote_target::attach): Update.
9671 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
9672 type.
9673 (gdbsim_target::pid_to_str): Change return type.
9674 * ravenscar-thread.c (struct ravenscar_thread_target)
9675 <pid_to_str>: Change return type.
9676 (ravenscar_thread_target::pid_to_str): Change return type.
9677 * procfs.c (class procfs_target) <pid_to_str>: Change return
9678 type.
9679 (procfs_target::pid_to_str): Change return type.
9680 (procfs_target::attach): Update.
9681 (procfs_target::detach): Update.
9682 (procfs_target::fetch_registers): Update.
9683 (procfs_target::store_registers): Update.
9684 (procfs_target::wait): Update.
9685 (procfs_target::files_info): Update.
9686 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
9687 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
9688 return type.
9689 (nto_procfs_target::pid_to_str): Change return type.
9690 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
9691 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
9692 return type.
9693 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
9694 (exit_lwp): Update.
9695 (attach_proc_task_lwp_callback, get_detach_signal)
9696 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
9697 (linux_nat_target::resume, wait_lwp, stop_callback)
9698 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
9699 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
9700 (linux_nat_wait_1, resume_stopped_resumed_lwps)
9701 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
9702 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
9703 type.
9704 (inf_ptrace_target::attach): Update.
9705 (inf_ptrace_target::files_info): Update.
9706 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
9707 type.
9708 (go32_nat_target::pid_to_str): Change return type.
9709 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
9710 (gnu_nat_target::wait): Update.
9711 (gnu_nat_target::wait): Update.
9712 (gnu_nat_target::resume): Update.
9713 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
9714 (fbsd_nat_target::wait): Update.
9715 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
9716 type.
9717 (darwin_nat_target::attach): Update.
9718 * corelow.c (class core_target) <pid_to_str>: Change return type.
9719 (core_target::pid_to_str): Change return type.
9720 * target.c (normal_pid_to_str): Change return type.
9721 (default_pid_to_str): Likewise.
9722 (target_pid_to_str): Change return type.
9723 (target_translate_tls_address): Update.
9724 (target_announce_detach): Update.
9725 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
9726 return type.
9727 (bsd_uthread_target::pid_to_str): Change return type.
9728 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
9729 type.
9730 (bsd_kvm_target::pid_to_str): Change return type.
9731 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
9732 return type.
9733 (aix_thread_target::pid_to_str): Change return type.
9734 * target.h (struct target_ops) <pid_to_str>: Change return type.
9735 (target_pid_to_str, normal_pid_to_str): Likewise.
9736 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
9737 type.
9738 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
9739 type.
9740 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
9741 return type.
9742 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
9743 type.
9744 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
9745 type.
9746 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
9747 return type.
9748
b4be1b06
SM
97492019-03-13 Simon Marchi <simon.marchi@ericsson.com>
9750
9751 * NEWS: Mention that the new default MI version is 3. Mention
9752 changes to the output of commands and events that deal with
9753 multi-location breakpoints.
9754 * breakpoint.c: Include "mi/mi-out.h".
9755 (print_one_breakpoint): Change output syntax if using MI version
9756 >= 3.
9757 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
9758 New.
9759 (mi_multi_location_breakpoint_output_fixed): New.
9760 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
9761 (mi_cmd_fix_multi_location_breakpoint_output): New.
9762 (mi_multi_location_breakpoint_output_fixed): New.
9763 * mi/mi-cmds.c (mi_cmds): Register command
9764 -fix-multi-location-breakpoint-output.
9765 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
9766 interpreter "mi".
9767
8e5e5494
SM
97682019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9769
9770 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
9771 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
9772 instantiate mi_ui_out based on interpreter name.
9773 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
9774 * mi/mi-main.c (mi_load_progress): Likewise.
9775
197df35e
JB
97762019-03-12 John Baldwin <jhb@FreeBSD.org>
9777
9778 * NEWS: Combine separate "New targets" sections for 8.3.
9779
8399425f
JB
97802019-03-12 John Baldwin <jhb@FreeBSD.org>
9781
9782 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
9783 (ppcfbsd_init_abi): Install gdbarch
9784 "fetch_tls_load_module_address" and "get_thread_local_address"
9785 methods.
9786
b0f87ed0
JB
97872019-03-12 John Baldwin <jhb@FreeBSD.org>
9788
9789 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
9790 (riscv_fbsd_init_abi): Install gdbarch
9791 "fetch_tls_load_module_address" and "get_thread_local_address"
9792 methods.
9793
ce25aa57
JB
97942019-03-12 John Baldwin <jhb@FreeBSD.org>
9795
9796 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
9797 (i386fbsd_init_abi): Install gdbarch
9798 "fetch_tls_load_module_address" and "get_thread_local_address"
9799 methods.
9800
f5424cfa
JB
98012019-03-12 John Baldwin <jhb@FreeBSD.org>
9802
9803 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
9804 (amd64fbsd_init_abi): Install gdbarch
9805 "fetch_tls_load_module_address" and "get_thread_local_address"
9806 methods.
9807
945f3901
JB
98082019-03-12 John Baldwin <jhb@FreeBSD.org>
9809
9810 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
9811 (struct fbsd_pspace_data): New type.
9812 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
9813 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
9814 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
9815 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
9816 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
9817
ef0bd204
JB
98182019-03-12 John Baldwin <jhb@FreeBSD.org>
9819
9820 * gdbtypes.c (lookup_struct_elt): New function.
9821 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
9822 * gdbtypes.h (struct struct_elt): New type.
9823 (lookup_struct_elt): New prototype.
9824
36c53a02
JB
98252019-03-12 John Baldwin <jhb@FreeBSD.org>
9826
9827 * gdbtypes.c (lookup_struct_elt_type): Update comment and
9828 remove disabled code block.
9829
6e056c81
JB
98302019-03-12 John Baldwin <jhb@FreeBSD.org>
9831
9832 * gdbarch.sh (get_thread_local_address): New method.
9833 * gdbarch.h, gdbarch.c: Regenerate.
9834 * target.c (target_translate_tls_address): Use
9835 gdbarch_get_thread_local_address if present instead of
9836 target::get_thread_local_address.
9837
cd250a18
JB
98382019-03-12 John Baldwin <jhb@FreeBSD.org>
9839
9840 * target.h (target::get_thread_local_address): Update comment.
9841
df22c1e5
JB
98422019-03-12 John Baldwin <jhb@FreeBSD.org>
9843
9844 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
9845 objfile->separate_debug_objfile_backlink if not NULL.
9846
dd6876c9
JB
98472019-03-12 John Baldwin <jhb@FreeBSD.org>
9848
9849 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
9850 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
9851 (amd64bsd_store_inferior_registers): Likewise.
9852 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9853 Enable segment base registers.
9854 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
9855 PT_GETFSBASE and PT_GETGSBASE.
9856 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
9857 PT_SETGSBASE.
9858 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
9859 segment base registers.
9860 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9861
1163a4b7
JB
98622019-03-12 John Baldwin <jhb@FreeBSD.org>
9863
9864 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9865 Update calls to i386_target_description to add 'segments'
9866 parameter.
9867 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
9868 add segment base registers.
9869 * arch/i386.c (i386_create_target_description): Add 'segments'
9870 parameter to enable segment base registers.
9871 * arch/i386.h (i386_create_target_description): Likewise.
9872 * features/i386/32bit-segments.xml: New file.
9873 * features/i386/32bit-segments.c: Generate.
9874 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
9875 call to i386_target_description to add 'segments' parameter.
9876 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9877 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
9878 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
9879 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
9880 if feature is present.
9881 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
9882 Add 'segments' parameter to call to i386_target_description.
9883 (i386_target_description): Add 'segments' parameter to enable
9884 segment base registers.
9885 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
9886 to call to i386_target_description.
9887 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
9888 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
9889 Define I386_NUM_REGS.
9890 (i386_target_description): Add 'segments' parameter to enable
9891 segment base registers.
9892
3a350822
EZ
98932019-03-12 Eli Zaretskii <eliz@gnu.org>
9894
9895 PR/24325
9896 * source-cache.c: #undef open and close, to avoid unresolved
9897 externals during linking.
9898
ffdd69cf
TT
98992019-03-12 Tom Tromey <tromey@adacore.com>
9900
9901 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
9902 const. Add initializers.
9903 (_initialize_remote): Don't initialize ptid globals.
9904
ec148c57
PA
99052019-03-12 Pedro Alves <palves@redhat.com>
9906
9907 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
9908
32764270
PA
99092019-03-12 Pedro Alves <palves@redhat.com>
9910
9911 * cp-name-parser.y (main): Remove unused 'len' variable.
9912
17547186
TT
99132019-03-12 Tom Tromey <tromey@adacore.com>
9914
9915 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
9916 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
9917
d3a70e03
TT
99182019-03-12 Tom Tromey <tromey@adacore.com>
9919
9920 * linux-nat.c (iterate_over_lwps): Update.
9921 (stop_callback): Remove parameter.
9922 (stop_wait_callback, detach_callback, resume_set_callback)
9923 (select_singlestep_lwp_callback, set_ignore_sigint)
9924 (status_callback, resumed_callback, resume_clear_callback)
9925 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
9926 data parameter.
9927 (linux_nat_target::detach, linux_nat_target::resume)
9928 (linux_stop_and_wait_all_lwps, select_event_lwp)
9929 (linux_nat_filter_event, linux_nat_wait_1)
9930 (linux_nat_target::kill, linux_nat_target::stop)
9931 (linux_nat_target::stop): Update.
9932 (linux_nat_resume_callback): Change type.
9933 (resume_stopped_resumed_lwps, count_events_callback)
9934 (select_event_lwp_callback): Likewise.
9935 (linux_stop_lwp, linux_nat_stop_lwp): Update.
9936 * arm-linux-nat.c (struct update_registers_data): Remove.
9937 (update_registers_callback): Change type.
9938 (arm_linux_insert_hw_breakpoint1): Update.
9939 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
9940 parameter.
9941 (x86_linux_dr_set_addr): Update.
9942 (x86_linux_dr_set_control): Update.
9943 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
9944 (iterate_over_lwps): Use gdb::function_view.
9945 * nat/aarch64-linux-hw-point.c (struct
9946 aarch64_dr_update_callback_param): Remove.
9947 (debug_reg_change_callback): Change type.
9948 (aarch64_notify_debug_reg_change): Update.
9949 * s390-linux-nat.c (s390_refresh_per_info): Update.
9950
82cb27ff
TT
99512019-03-11 Tom Tromey <tromey@adacore.com>
9952
9953 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
9954 redundant assignment to "this_cu".
9955
568c0683
SM
99562019-03-08 Simon Marchi <simon.marchi@efficios.com>
9957
9958 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
9959
f09ce22d
SM
99602019-03-08 Simon Marchi <simon.marchi@efficios.com>
9961
9962 * gdbtypes.c (rank_one_type_parm_set): New function extracted
9963 from...
9964 (rank_one_type): ... this.
9965
595f96a9
SM
99662019-03-08 Simon Marchi <simon.marchi@efficios.com>
9967
9968 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
9969 from...
9970 (rank_one_type): ... this.
9971
2598a94b
SM
99722019-03-08 Simon Marchi <simon.marchi@efficios.com>
9973
9974 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
9975 from...
9976 (rank_one_type): ... this.
9977
7f17b20d
SM
99782019-03-08 Simon Marchi <simon.marchi@efficios.com>
9979
9980 * gdbtypes.c (rank_one_type_parm_float): New function extracted
9981 from...
9982 (rank_one_type): ... this.
9983
2c509035
SM
99842019-03-08 Simon Marchi <simon.marchi@efficios.com>
9985
9986 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
9987 from...
9988 (rank_one_type): ... this.
9989
0dd322dc
SM
99902019-03-08 Simon Marchi <simon.marchi@efficios.com>
9991
9992 * gdbtypes.c (rank_one_type_parm_range): New function extracted
9993 from...
9994 (rank_one_type): ... this.
9995
41ea4728
SM
99962019-03-08 Simon Marchi <simon.marchi@efficios.com>
9997
9998 * gdbtypes.c (rank_one_type_parm_char): New function extracted
9999 from...
10000 (rank_one_type): ... this.
10001
793cd1d2
SM
100022019-03-08 Simon Marchi <simon.marchi@efficios.com>
10003
10004 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
10005 from...
10006 (rank_one_type): ... this.
10007
34910087
SM
100082019-03-08 Simon Marchi <simon.marchi@efficios.com>
10009
10010 * gdbtypes.c (rank_one_type_parm_int): New function extracted
10011 from...
10012 (rank_one_type): ... this.
10013
f1f832d6
SM
100142019-03-08 Simon Marchi <simon.marchi@efficios.com>
10015
10016 * gdbtypes.c (rank_one_type_parm_func): New function extracted
10017 from...
10018 (rank_one_type): ... this.
10019
b9f4512f
SM
100202019-03-08 Simon Marchi <simon.marchi@efficios.com>
10021
10022 * gdbtypes.c (rank_one_type_parm_array): New function extracted
10023 from...
10024 (rank_one_type): ... this.
10025
9293fc63
SM
100262019-03-08 Simon Marchi <simon.marchi@efficios.com>
10027
10028 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
10029 from...
10030 (rank_one_type): ... this.
10031
e3abbe7e
PW
100322019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10033
10034 * inferior.c (initialize_inferiors): Ensure 'help set/show print
10035 inferior-events' shows the example events.
10036
e4adb939
EZ
100372019-03-08 Eli Zaretskii <eliz@gnu.org>
10038
10039 Support styling on native MS-Windows console
10040
10041 PR/24315
10042 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
10043 on MS-Windows if $TERM is not defined.
10044
10045 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
10046
10047 * posix-hdep.c (gdb_console_fputs):
10048 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
10049 functions.
10050 * ui-file.h (gdb_console_fputs): Add prototype.
10051
10052 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
10053 back to fputs only if the former returns zero.
10054
25629dfd
TT
100552019-03-07 Tom Tromey <tom@tromey.com>
10056
10057 * symmisc.c (print_symbol_bcache_statistics): Update.
10058 (print_objfile_statistics): Update.
10059 * symfile.c (allocate_symtab): Update.
10060 * stabsread.c: Don't include bcache.h.
10061 * psymtab.h (struct psymbol_bcache): Don't declare.
10062 (class psymtab_storage) <psymbol_cache>: Now a bcache.
10063 (psymbol_bcache_init, psymbol_bcache_free)
10064 (psymbol_bcache_get_bcache): Don't declare.
10065 * psymtab.c (struct psymbol_bcache): Remove.
10066 (psymtab_storage::psymtab_storage): Update.
10067 (psymtab_storage::~psymtab_storage): Update.
10068 (psymbol_bcache_init, psymbol_bcache_free)
10069 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
10070 (add_psymbol_to_bcache): Update.
10071 (allocate_psymtab): Update.
10072 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10073 macro_cache>: No longer pointers.
10074 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
10075 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
10076 * macrotab.c (macro_bcache): Update.
10077 * macroexp.c: Don't include bcache.h.
10078 * gdbtypes.c (check_types_worklist): Update.
10079 (types_deeply_equal): Remove TRY/CATCH. Update.
10080 * elfread.c (elf_symtab_read): Update.
10081 * dwarf2read.c: Don't include bcache.h.
10082 * buildsym.c (buildsym_compunit::get_macro_table): Update.
10083 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
10084 (print_bcache_statistics, bcache_memory_used): Don't declare.
10085 (struct bcache): Move from bcache.c. Add constructor, destructor,
10086 methods. Rename all data members.
10087 * bcache.c (struct bcache): Move to bcache.h.
10088 (bcache::expand_hash_table): Rename from expand_hash_table.
10089 (bcache): Remove.
10090 (bcache::insert): Rename from bcache_full.
10091 (bcache::compare): Rename from bcache_compare.
10092 (bcache_xmalloc): Remove.
10093 (bcache::~bcache): Rename from bcache_xfree.
10094 (bcache::print_statistics): Rename from print_bcache_statistics.
10095 (bcache::memory_used): Rename from bcache_memory_used.
10096
fe726667
PA
100972019-03-07 Pedro Alves <palves@redhat.com>
10098
10099 * infrun.c (normal_stop): Also check for
10100 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
10101
7584bb30
AB
101022019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10103
10104 * f-lang.c (value_from_host_double): Moved to...
10105 * value.c (value_from_host_double): ...here.
10106 * value.h (value_from_host_double): Declare.
10107 * guile/scm-math.c (vlscm_convert_typed_number): Use
10108 value_from_host_double.
10109 (vlscm_convert_number): Likewise.
10110 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
10111 * python/py-value.c (convert_value_from_python): Likewise.
10112
a7b1986e
TT
101132019-03-06 Tom Tromey <tom@tromey.com>
10114
10115 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
10116
0ccf4211
TT
101172019-03-06 Tom Tromey <tom@tromey.com>
10118
10119 * utils.h (free_current_contents): Don't declare.
10120 * utils.c (free_current_contents): Remove.
10121
fe7b42e5
TT
101222019-03-06 Tom Tromey <tom@tromey.com>
10123
10124 * top.c (quit_force): Update.
10125 * main.c (captured_command_loop): Update.
10126 * common/new-op.c (operator new): Update.
10127 * common/common-exceptions.c (struct catcher)
10128 <save_cleanup_chain>: Remove member.
10129 (exceptions_state_mc_init): Update.
10130 (exception_try_scope_entry): Return nullptr.
10131 (exception_try_scope_exit, exception_rethrow)
10132 (throw_exception_sjlj, throw_exception_cxx): Update.
10133 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
10134 (all_cleanups, do_cleanups, discard_cleanups)
10135 (discard_final_cleanups, save_cleanups, save_final_cleanups)
10136 (restore_cleanups, restore_final_cleanups): Don't declare.
10137 (do_final_cleanups): Remove parameter.
10138 * common/cleanups.c (cleanup_chain, make_cleanup)
10139 (make_cleanup_dtor, all_cleanups, do_cleanups)
10140 (discard_my_cleanups, discard_cleanups)
10141 (discard_final_cleanups, save_my_cleanups, save_cleanups)
10142 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
10143 (null_cleanup): Remove.
10144 (do_final_cleanups): Remove parameter.
10145
c6321f19
TT
101462019-03-06 Tom Tromey <tom@tromey.com>
10147
10148 * remote.c (remote_target::remote_parse_stop_reply): Use
10149 unique_xmalloc_ptr.
10150
61b30099
TT
101512019-03-06 Tom Tromey <tom@tromey.com>
10152
10153 * stabsread.c (struct stabs_field_info): Rename from field_info.
10154 <list, fnlist>: Add initializers.
10155 <obstack>: New member.
10156 (read_member_functions, read_struct_fields, read_baseclasses):
10157 Allocate on obstack. Don't use cleanups.
10158 (read_one_struct_field, read_member_functions, read_struct_fields)
10159 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
10160 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
10161 (read_struct_type): Update.
10162
6cceac94
TT
101632019-03-06 Tom Tromey <tom@tromey.com>
10164
10165 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
10166 * common/filestuff.h (make_cleanup_close): Don't declare.
10167 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
10168 Remove.
10169
72412762
TT
101702019-03-06 Tom Tromey <tom@tromey.com>
10171
10172 * solib-aix.c: Use make_scope_exit.
10173
2b6ff1c0
TT
101742019-03-06 Tom Tromey <tom@tromey.com>
10175
10176 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
10177 Use make_scope_exit.
10178
d01c5877
TT
101792019-03-06 Tom Tromey <tom@tromey.com>
10180
10181 * solib-svr4.c (disable_probes_interface): Remove parameter.
10182 (svr4_handle_solib_event): Use make_scope_exit.
10183
32603266
TT
101842019-03-06 Tom Tromey <tom@tromey.com>
10185
10186 * remote.c (struct stop_reply_deleter): Remove.
10187 (stop_reply_up): Update.
10188 (struct stop_reply): Derive from notif_event. Don't typedef.
10189 <regcache>: Now a std::vector.
10190 (stop_reply_xfree): Remove.
10191 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
10192 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
10193 (remote_target::discard_pending_stop_replies): Use delete.
10194 (remote_target::remote_parse_stop_reply): Update.
10195 (remote_target::process_stop_reply): Update.
10196 * remote-notif.h (struct notif_event): Add virtual destructor.
10197 Remove "dtr" member.
10198 (struct notif_client) <alloc_event>: Return a unique_ptr.
10199 (notif_event_xfree): Don't declare.
10200 (notif_event_up): New typedef.
10201 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
10202 (notif_event_xfree, do_notif_event_xfree): Remove.
10203 (remote_notif_state_xfree): Update.
10204
9799571e
TT
102052019-03-06 Tom Tromey <tom@tromey.com>
10206
10207 * infrun.c (displaced_step_clear_cleanup): Now a
10208 forward_scope_exit type.
10209 (displaced_step_prepare_throw): Update.
10210 (displaced_step_fixup): Update.
10211
09e3c4ca
TT
102122019-03-06 Tom Tromey <tom@tromey.com>
10213
10214 * inferior.h (class inferior): Update comment.
10215 * gdbthread.h (class thread_info): Update comment.
10216
e2a03548
TT
102172019-03-06 Joel Brobecker <brobecker@adacore.com>
10218 Tom Tromey <tom@tromey.com>
10219
10220 * stabsread.h (struct stab_section_list): Remove.
10221 (coffstab_build_psymtabs): Update.
10222 * dbxread.c (symbuf_sections): Now a std::vector.
10223 (sect_idx): New global.
10224 (fill_symbuf): Update.
10225 (coffstab_build_psymtabs): Change type of stabsects parameter.
10226 Update.
10227 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
10228 std::vector.
10229 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
10230 (coff_locate_sections): Update.
10231 (coff_symfile_read): Remove cleanups. Update.
10232 (init_stringtab): Add storage parameter.
10233 (free_stringtab, free_stringtab_cleanup): Remove.
10234 (init_lineno): Add storage parameter.
10235 (free_linetab, free_linetab_cleanup): Remove.
10236
b7e60d85
PA
102372019-03-06 Pedro Alves <palves@redhat.com>
10238
10239 * linux-fork.c (fork_info::clobber_regs): Delete.
10240 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
10241 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
10242 comment. Adjust.
10243 (scoped_switch_fork_info::scoped_switch_fork_info)
10244 (checkpoint_command, linux_fork_context): Adjust
10245 fork_save_infrun_state calls.
10246
e52c971f
PA
102472019-03-06 Pedro Alves <palves@redhat.com>
10248
10249 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
10250 (inf_has_multiple_threads): Return 'bool' and rewrite using
10251 inferior_info::threads().
10252
06974e6c
PA
102532019-03-06 Pedro Alves <palves@redhat.com>
10254
10255 * linux-fork.c: Include <list>.
10256 (fork_list): Now a std::list instance.
10257 (fork_info): Add ctor, dtor, and in-class initialize all fields.
10258 (forks_exist_p, find_last_fork): Adjust.
10259 (new_fork): Delete.
10260 (one_fork_p): New.
10261 (add_fork): Adjust.
10262 (free_fork): Delete, folded into fork_info::~fork_info().
10263 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
10264 Adjust.
10265 (init_fork_list): Delete.
10266 (linux_fork_killall, linux_fork_mourn_inferior)
10267 (linux_fork_detach, info_checkpoints_command): Adjust.
10268 (_initialize_linux_fork): No longer call init_fork_list.
10269
72f31aea
PA
102702019-03-06 Pedro Alves <palves@redhat.com>
10271
10272 * linux-fork.c (new_fork): New, split out of ...
10273 (add_fork): ... this. Return void. Move "first fork" special
10274 case from here, to ...
10275 (checkpoint_command): ... here.
10276 * linux-linux.h (add_fork): Return void.
10277
efbecbc1
AB
102782019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10279
10280 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
10281
0841c79a
AB
102822019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10283 Chris January <chris.january@arm.com>
10284 David Lecomber <david.lecomber@arm.com>
10285
10286 * f-exp.y: New token, UNOP_INTRINSIC.
10287 (exp): New pattern using UNOP_INTRINSIC token.
10288 (f77_keywords): Add 'abs' keyword.
10289 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
10290 (value_from_host_double): New function.
10291 (evaluate_subexp_f): Support UNOP_ABS.
10292
4a270568
AB
102932019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10294
10295 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
10296 types.
10297
067630bd
AB
102982019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10299
10300 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
10301 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
10302 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
10303
3be47f7a
AB
103042019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10305
10306 * f-exp.y (convert_to_kind_type): Handle more type kinds.
10307
4d00f5d8
AB
103082019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10309 Chris January <chris.january@arm.com>
10310
10311 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
10312 * f-exp.y: Define 'KIND' token.
10313 (exp): New pattern for KIND expressions.
10314 (ptype): Handle types with a kind extension.
10315 (direct_abs_decl): Extend to spot kind extensions.
10316 (f77_keywords): Add 'kind' to the list.
10317 (push_kind_type): New function.
10318 (convert_to_kind_type): New function.
10319 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
10320 * parse.c (operator_length_standard): Likewise.
10321 * parser-defs.h (enum type_pieces): Add tp_kind.
10322 * std-operator.def: Add UNOP_KIND.
10323
e454224f
AB
103242019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10325
10326 * f-exp.y (f_parse): Set yydebug.
10327
9dad4a58
AB
103282019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10329
10330 * f-lang.c (evaluate_subexp_f): New function.
10331 (exp_descriptor_f): New global.
10332 (f_language_defn): Use exp_descriptor_f instead of
10333 exp_descriptor_standard.
10334
c8f91604
AB
103352019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10336
10337 * f-exp.y (struct token): Add comments.
10338 (dot_ops): Remove uppercase versions and the end marker.
10339 (f77_keywords): Likewise.
10340 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
10341 entries in the dot_ops array are case insensitive, and use
10342 strncasecmp to compare strings. Also some whitespace cleanup in
10343 this area. Similar for the f77_keywords array, except entries in
10344 this list might be case sensitive.
10345
dd9f2c76
AB
103462019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10347
10348 * f-exp.y (struct f77_boolean_val): Add comments.
10349 (boolean_values): Remove uppercase versions, and end marker.
10350 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
10351 and use strncasecmp to achieve case insensitivity. Additionally,
10352 perform whitespace cleanup around this code.
10353
67a3048c
TT
103542019-03-06 Tom Tromey <tromey@adacore.com>
10355
10356 * remote-sim.c (gdbsim_target_open): Use result of
10357 gdb_argv::release.
10358
aa3cfbda
RB
103592019-03-06 Richard Bunt <richard.bunt@arm.com>
10360 Dirk Schubert <dirk.schubert@arm.com>
10361 Chris January <chris.january@arm.com>
10362
10363 * eval.c (evaluate_subexp_standard): Call Fortran argument
10364 wrapping logic.
10365 * f-lang.c (struct value): A value which can be passed into a
10366 Fortran function call.
10367 (fortran_argument_convert): Wrap Fortran arguments in a pointer
10368 where appropriate.
10369 (struct type): Value ready for a Fortran function call.
10370 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
10371 is needed.
10372 * f-lang.h (fortran_argument_convert): Declaration.
10373 (fortran_preserve_arg_pointer): Declaration.
10374 * infcall.c (value_arg_coerce): Call Fortran argument logic.
10375
ea38e5df
TT
103762019-03-05 Tom Tromey <tromey@adacore.com>
10377
10378 * python/py-prettyprint.c (print_string_repr): Remove #if.
10379 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
10380
06b5b831
TT
103812019-03-05 Tom Tromey <tromey@adacore.com>
10382
10383 * target.c (the_dummy_target): Move later. Change type to
10384 "dummy_target".
10385 (initialize_targets): Don't initialize the_dummy_target.
10386
edbd9e45
TT
103872019-03-05 Tom Tromey <tromey@adacore.com>
10388
10389 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
10390 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
10391
c119e040
TT
103922019-03-05 Tom Tromey <tromey@adacore.com>
10393
10394 * windows-nat.c (windows_nat_target::attach)
10395 (windows_nat_target::detach): Don't call gdb_flush.
10396 * valprint.c (generic_val_print, val_print, val_print_string):
10397 Don't call gdb_flush.
10398 * utils.c (defaulted_query): Don't call gdb_flush.
10399 * typeprint.c (print_type_scalar): Don't call gdb_flush.
10400 * target.c (target_announce_detach): Don't call gdb_flush.
10401 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
10402 * remote.c (extended_remote_target::attach): Don't call
10403 gdb_flush.
10404 * procfs.c (procfs_target::detach): Don't call gdb_flush.
10405 * printcmd.c (do_examine): Don't call gdb_flush.
10406 (info_display_command): Don't call gdb_flush.
10407 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
10408 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
10409 * memattr.c (info_mem_command): Don't call gdb_flush.
10410 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
10411 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
10412 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
10413 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
10414 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
10415 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
10416 (gnu_nat_target::detach): Don't call gdb_flush.
10417 * f-valprint.c (f_val_print): Don't call gdb_flush.
10418 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
10419 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
10420 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
10421 gdb_flush.
10422 * c-valprint.c (c_val_print): Don't call gdb_flush.
10423 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
10424
895dafa6
TT
104252019-03-05 Tom Tromey <tromey@adacore.com>
10426
10427 * varobj.c (update_dynamic_varobj_children): Update.
10428 (install_default_visualizer): Use reset, not release.
10429 * value.c (set_internalvar): Update.
10430 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
10431 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
10432 ATTRIBUTE_UNUSED_RESULT.
10433
88a774b9
TT
104342019-03-05 Tom Tromey <tromey@adacore.com>
10435
10436 * remote.c (class scoped_remote_fd) <release>: Add
10437 ATTRIBUTE_UNUSED_RESULT.
10438
4e4a8b93
TT
104392019-03-05 Tom Tromey <tromey@adacore.com>
10440
10441 * macroexp.c (struct macro_buffer) <release>: Add
10442 ATTRIBUTE_UNUSED_RESULT.
10443
083eef1f
TT
104442019-03-05 Tom Tromey <tromey@adacore.com>
10445
10446 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
10447 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
10448 ATTRIBUTE_UNUSED_RESULT.
10449
3cabd438
TT
104502019-03-05 Tom Tromey <tromey@adacore.com>
10451
10452 * common/scoped_fd.h (class scoped_fd) <release>: Add
10453 ATTRIBUTE_UNUSED_RESULT.
10454
41e3300a
TT
104552019-03-05 Tom Tromey <tromey@adacore.com>
10456
10457 * parser-defs.h (struct parser_state) <release>: Add
10458 ATTRIBUTE_UNUSED_RESULT.
10459
18cb7c9f
TT
104602019-03-05 Tom Tromey <tromey@adacore.com>
10461
10462 * utils.h (class gdb_argv) <release>: Add
10463 ATTRIBUTE_UNUSED_RESULT.
10464 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
10465
41fa577f
EZ
104662019-03-02 Eli Zaretskii <eliz@gnu.org>
10467
a6a4b2c6
EZ
10468 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
10469 for-loop range, to avoid compiler warnings.
10470
10471 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
10472 avoid compiler warnings about unused variables.
10473
742a7df5
EZ
10474 * NEWS: Mention end of support for native debugging on MS-Windows
10475 before XP.
10476
41fa577f
EZ
10477 PR gdb/24292
10478 * common/netstuff.c:
10479 * gdbserver/gdbreplay.c
10480 * gdbserver/remote-utils.c:
10481 * ser-tcp.c:
10482 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
10483 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
10484 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
10485 'getaddrinfo' and 'freeaddrinfo' were not available before
10486 Windows XP, and mingw.org's MinGW headers by default define
10487 _WIN32_WINNT to 0x500.
10488
827f438f
GB
104892019-03-01 Gary Benson <gbenson@redhat.com>
10490
10491 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
10492
92137da0
RO
104932019-02-28 Brian Vandenberg <phantall@gmail.com>
10494 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10495
10496 PR gdb/8527
10497 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
10498 set_sigint_trap, clear_sigint_trap.
10499
799efbe8
PW
105002019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10501
10502 * target.c (target_detach): Clear the regcache and the
10503 frame cache.
10504
8ed25214
PA
105052019-02-27 Pedro Alves <palves@redhat.com>
10506
10507 * utils.c (set_screen_size): When we cap the height/width sizes,
10508 tweak the corresponding command variable to show "unlimited":
10509
23031e31
SJ
105102019-02-27 Saagar Jha <saagar@saagarjha.com>
10511 Pedro Alves <palves@redhat.com>
10512
10513 * utils.c (set_screen_size): Reduce "infinite" rows and columns
10514 before calling rl_set_screen_size.
10515
6c28e44a
TT
105162019-02-27 Tom Tromey <tromey@adacore.com>
10517
10518 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
10519 define.
10520 * python/py-value.c: Remove Python 2.4 workaround.
10521 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
10522 workaround.
10523 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
10524 Python 2.4 workaround.
10525 * python/python-internal.h: Remove Python 2.4 comment.
10526 (Py_ssize_t): Don't define.
10527 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
10528 (gdb_Py_DECREF): Remove Python 2.4 workaround.
10529 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
10530 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
10531 * python/python.c (do_start_initialization): Remove Python 2.4
10532 workaround.
10533 * python/py-prettyprint.c (class dummy_python_frame): Remove.
10534 (print_children): Remove Python 2.4 workaround.
10535 * python/py-inferior.c (buffer_procs): Remove Python 2.4
10536 workaround.
10537 (CHARBUFFERPROC_NAME): Remove.
10538 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
10539 Python 2.4 workaround.
10540
2c3fc25d 105412019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 10542
2c3fc25d
KB
10543 * NEWS: Note minimum Python version.
10544
6ca62222
KB
105452019-02-27 Kevin Buettner <kevinb@redhat.com>
10546
10547 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
10548 code from these functions. Remove corresponding ifdefs. Use
10549 Py_buffer_up instead of explicit calls to PyBuffer_Release.
10550 Remove gotos and target of gotos.
10551 (infpy_search_memory): Likewise.
10552
f4bc7d2c
AB
105532019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10554
10555 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
10556 (hppa_gdbarch_init): Don't register deleted functions with
10557 gdbarch.
10558
9734a586
AB
105592019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10560
10561 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
10562 (h8300_unwind_sp): Delete.
10563 (h8300_dummy_id): Delete.
10564 (h8300_gdbarch_init): Don't register deleted functions with
10565 gdbarch.
10566
68b867f3
AB
105672019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10568
10569 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
10570 (ft32_unwind_pc): Delete.
10571 (ft32_unwind_sp): Delete.
10572 (ft32_gdbarch_init): Don't register deleted functions with
10573 gdbarch.
10574
2fbe7ad0
AB
105752019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10576
10577 * gdb/frv-tdep.c (frv_dummy_id): Delete.
10578 (frv_unwind_pc): Delete.
10579 (frv_unwind_sp): Delete.
10580 (frv_gdbarch_init): Don't register deleted functions with
10581 gdbarch.
10582
76055cbe
AB
105832019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10584
10585 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
10586 (riscv_unwind_pc): Delete.
10587 (riscv_unwind_sp): Delete.
10588 (riscv_gdbarch_init): Don't register deleted functions with
10589 gdbarch.
10590
4133e5a1
AB
105912019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10592
10593 * gdb/csky-tdep.c (csky_dummy_id): Delete.
10594 (csky_unwind_pc): Delete.
10595 (csky_unwind_sp): Delete.
10596 (csky_gdbarch_init): Don't register deleted functions with
10597 gdbarch.
10598
8010f576
AB
105992019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10600
10601 * gdb/cris-tdep.c (cris_dummy_id): Delete.
10602 (cris_unwind_pc): Delete.
10603 (cris_unwind_sp): Delete.
10604 (cris_gdbarch_init): Don't register deleted functions with
10605 gdbarch.
10606
b56bf084
AB
106072019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10608
10609 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
10610 (bfin_unwind_pc): Delete.
10611 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
10612
a19a650f
AB
106132019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10614
10615 * gdb/arm-tdep.c (arm_dummy_id): Delete.
10616 (arm_unwind_pc): Delete.
10617 (arm_unwind_sp): Delete.
10618 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
10619
f8278c3c
AB
106202019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10621
10622 * gdb/arc-tdep.c (arc_dummy_id): Delete.
10623 (arc_unwind_pc): Delete.
10624 (arc_unwind_sp): Delete.
10625 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
10626
480e46cf
AB
106272019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10628
10629 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
10630 (alpha_unwind_pc): Delete.
10631 (alpha_gdbarch_init): Don't register deleted functions with
10632 gdbarch.
10633
7a995095
AB
106342019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10635
10636 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
10637 (aarch64_unwind_pc): Delete.
10638 (aarch64_unwind_sp): Delete.
10639 (aarch64_gdbarch_init): Don't register deleted functions with
10640 gdbarch.
10641
bf9a735e
AB
106422019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10643
10644 * gdbtypes.c (type_align): Don't consider static members when
10645 computing structure alignment.
10646
5561fc30
AB
106472019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10648
10649 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
10650 return 0 for other types.
10651 * arch-utils.c (default_type_align): Always return 0.
10652 * gdbarch.h: Regenerate.
10653 * gdbarch.sh (type_align): Extend comment.
10654 * gdbtypes.c (type_align): Add additional comments, always call
10655 gdbarch_type_align before applying the default rules.
10656 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
10657 generic code will then apply a suitable default.
10658 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
10659 types, return 0 for other types.
10660
9335e75a
JB
106612019-02-27 Joel Brobecker <brobecker@adacore.com>
10662
10663 * NEWS: Create a new section for the next release branch.
10664 Rename the section of the current branch, now that it has
10665 been cut.
10666
3d34d8de
JB
106672019-02-27 Joel Brobecker <brobecker@adacore.com>
10668
10669 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
10670 * version.in: Bump version to 8.3.50.DATE-git.
10671
143420fb
SM
106722019-02-26 Simon Marchi <simon.marchi@efficios.com>
10673
10674 * aix-thread.c (ptid_cmp): Remove unused variable.
10675 (get_signaled_thread): Likewise.
10676 (store_regs_user_thread): Likewise.
10677 (store_regs_kernel_thread): Likewise.
10678 (fetch_regs_kernel_thread): Remove shadowed variable.
10679
172fb711
AB
106802019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
10681
10682 * features/riscv/32bit-cpu.xml: Add register numbers.
10683 * features/riscv/32bit-fpu.c: Regenerate.
10684 * features/riscv/32bit-fpu.xml: Add register numbers.
10685 * features/riscv/64bit-cpu.xml: Add register numbers.
10686 * features/riscv/64bit-fpu.c: Regenerate.
10687 * features/riscv/64bit-fpu.xml: Add register numbers.
10688
26c89782
KB
106892019-02-26 Kevin Buettner <kevinb@redhat.com>
10690
af54ade9 10691 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
10692 * python/py-value.c (convert_buffer_and_type_to_value): New
10693 function.
10694 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
10695 Add support for handling an optional second argument. Call
10696 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
10697 * python/python-internal.h (Py_buffer_deleter): New struct.
10698 (Py_buffer_up): New typedef.
10699
0f58c9e8
JB
107002019-02-25 John Baldwin <jhb@FreeBSD.org>
10701
10702 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
10703 instead of releasing ownership.
10704
0a0f4c01
JR
107052019-02-25 Jordan Rupprecht <rupprecht@google.com>
10706
10707 * dwarf2read.c (open_and_init_dwp_file): Call
10708 elf_numsections instead of bfd_count_sections to initialize
10709 dwp_file->num_sections.
10710
cd5a152c
TT
107112019-02-25 Tom Tromey <tromey@adacore.com>
10712
10713 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
10714
8a6a8513
SDJ
107152019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
10716
10717 * gcore.in: Add '--readnever' option when invoking GDB.
10718
04dcda9c
SM
107192019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10720
10721 * MAINTAINERS: Update my email address.
10722
07bc701d
SM
107232019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10724
10725 * build-id.c (build_id_to_debug_bfd_1): New function.
10726 (build_id_to_debug_bfd): Look for separate debug file in
10727 sysroot.
10728
c6f4a5d0
AB
107292019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
10730
10731 * gdbarch.sh: Update the copyright year range that is placed into
10732 generated files.
10733
9600246d
KS
107342019-02-22 Keith Seitz <keiths@redhat.com>
10735
10736 PR symtab/23853
10737 * linespec.c (create_sals_line_offset): Search for the default
10738 symtab's filename instead of its fullname.
10739
7557a514
AH
107402019-02-21 Alan Hayward <alan.hayward@arm.com>
10741
10742 * NEWS: Update style defaults.
10743
ee2bcb0c
AH
107442019-02-21 Alan Hayward <alan.hayward@arm.com>
10745
10746 * main.c (captured_main_1): Disable styling in batch mode.
10747
0c95f9ed
TT
107482019-02-20 Tom Tromey <tom@tromey.com>
10749
10750 * symtab.c (symtab_symbol_info): Fix typos.
10751
c763b894
TT
107522019-02-20 Tom Tromey <tromey@adacore.com>
10753
10754 * findcmd.c (_initialize_mem_search): Use upper case for
10755 metasyntactic variables.
10756
0ef8a082
AH
107572019-02-20 Alan Hayward <alan.hayward@arm.com>
10758
10759 * aarch64-tdep.c (aarch64_add_reggroups): New function.
10760 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
10761
6caa91b6
SM
107622019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
10763
10764 * top.h (source_file_name): Change to std::string.
10765 * top.c (source_file_name): Likewise.
10766 (command_line_input): Adjust.
10767 * cli/cli-script.c (script_from_file): Adjust.
10768
98814c6c
TT
107692019-02-19 Tom Tromey <tromey@adacore.com>
10770
10771 * ravenscar-thread.c
10772 (ravenscar_thread_target::update_thread_list): Don't call
10773 ada_build_task_list.
10774 * ada-lang.h (ada_build_task_list): Don't declare.
10775 * ada-tasks.c (struct ada_tasks_inferior_data)
10776 <task_list_valid_p>: Now bool.
10777 (read_known_tasks, ada_task_list_changed)
10778 (ada_tasks_invalidate_inferior_data): Update.
10779 (read_known_tasks_array): Return bool.
10780 (read_known_tasks_list): Likewise.
10781 (read_known_tasks): Return void.
10782 (ada_build_task_list): Now static.
10783
70cd633e
AB
107842019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
10785
10786 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
10787 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
10788
040b3e95
PW
107892019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10790
10791 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
10792 variant for ada_tasks_pspace_data_handle and
10793 ada_tasks_inferior_data_handle.
10794 (ada_tasks_pspace_data_cleanup): New function.
10795 (ada_tasks_inferior_data_cleanup): New function.
10796
9409233b
TT
107972019-02-17 Tom Tromey <tom@tromey.com>
10798
10799 * macrotab.h (macro_source_fullname): Return a std::string.
10800 * macrotab.c (macro_include, check_for_redefinition)
10801 (macro_undef, macro_lookup_definition, foreach_macro)
10802 (foreach_macro_in_scope): Update.
10803 (macro_source_fullname): Return a std::string.
10804 * macrocmd.c (show_pp_source_pos): Update.
10805
6506371f
TT
108062019-02-17 Tom Tromey <tom@tromey.com>
10807
10808 * macrocmd.c (show_pp_source_pos): Style the file names.
10809
0c820d67
TT
108102019-02-17 Tom Tromey <tom@tromey.com>
10811
10812 PR tui/24197:
10813 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
10814
a0087920
TT
108152019-02-17 Tom Tromey <tom@tromey.com>
10816
10817 * ada-lang.c (user_select_syms): Use filtered printing.
10818 * utils.c (wrap_style): New global.
10819 (desired_style): Remove.
10820 (emit_style_escape): Add stream parameter.
10821 (set_output_style, reset_terminal_style, prompt_for_continue):
10822 Update.
10823 (flush_wrap_buffer): Only flush gdb_stdout.
10824 (wrap_here): Set wrap_style.
10825 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
10826 treat escape sequences as a character. Change when wrap buffer is
10827 flushed.
10828 (fputs_styled): Do not set the output style when the default is
10829 requested.
10830 * ui-style.h (struct ui_file_style) <is_default>: New method.
10831 * source.c (print_source_lines_base): Emit escape sequences in one
10832 piece.
10833
75ba10dc
JB
108342019-02-17 Joel Brobecker <brobecker@adacore.com>
10835
10836 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
10837 integers and enumeration types.
10838
a2cd4f14
JB
108392019-02-17 Joel Brobecker <brobecker@adacore.com>
10840
10841 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
10842 instead of lookup_symbol_in_language
10843 (do_exact_match): New function.
10844 (ada_get_symbol_name_matcher): Return do_exact_match when
10845 doing a verbatim match.
10846
485b851b
TT
108472019-02-15 Tom Tromey <tromey@adacore.com>
10848
10849 * ravenscar-thread.c (ravenscar_thread_target::resume)
10850 (ravenscar_thread_target::wait): Special case wildcard requests.
10851
0b790b1e
TT
108522019-02-15 Tom Tromey <tromey@adacore.com>
10853
10854 * ravenscar-thread.c (base_ptid): Remove.
10855 (struct ravenscar_thread_target) <close>: New method.
10856 <m_base_ptid>: New member.
10857 <update_inferior_ptid, active_task, task_is_currently_active,
10858 runtime_initialized>: Declare methods.
10859 <ravenscar_thread_target>: Add constructor.
10860 (ravenscar_thread_target::task_is_currently_active)
10861 (ravenscar_thread_target::update_inferior_ptid)
10862 (ravenscar_runtime_initialized): Rename. Now methods.
10863 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
10864 (ravenscar_thread_target::update_thread_list): Update.
10865 (ravenscar_thread_target::active_task): Now method.
10866 (ravenscar_thread_target::store_registers)
10867 (ravenscar_thread_target::prepare_to_store)
10868 (ravenscar_thread_target::prepare_to_store)
10869 (ravenscar_thread_target::mourn_inferior): Update.
10870 (ravenscar_inferior_created): Use "new" to create target.
10871 (ravenscar_thread_target::get_ada_task_ptid): Update.
10872 (_initialize_ravenscar): Don't initialize base_ptid.
10873 (ravenscar_ops): Remove global.
10874
dea57a62
TT
108752019-02-15 Tom Tromey <tromey@adacore.com>
10876
10877 * target.h (push_target): Declare new overload.
10878 * target.c (push_target): New overload, taking an rvalue reference.
10879 * remote.c (remote_target::open_1): Use push_target overload.
10880 * corelow.c (core_target_open): Use push_target overload.
10881
989f3c58
TT
108822019-02-15 Tom Tromey <tromey@adacore.com>
10883
10884 * ravenscar-thread.c (is_ravenscar_task)
10885 (ravenscar_task_is_currently_active): Return bool.
10886 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
10887 (_initialize_ravenscar): Remove "(void)".
10888 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
10889 Return bool.
10890
6cbcc006
TT
108912019-02-15 Tom Tromey <tromey@adacore.com>
10892
10893 * ravenscar-thread.c (ravenscar_runtime_initializer)
10894 (has_ravenscar_runtime, get_running_thread_id)
10895 (ravenscar_thread_target::resume): Fix indentation.
10896
7657f14d
TT
108972019-02-15 Tom Tromey <tromey@adacore.com>
10898
10899 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
10900 from ravenscar_arch_ops.
10901 (sparc_ravenscar_ops::fetch_registers)
10902 (sparc_ravenscar_ops::store_registers): Now methods.
10903 (sparc_ravenscar_prepare_to_store): Remove.
10904 (sparc_ravenscar_ops): Redefine.
10905 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
10906 methods and destructor. Remove members.
10907 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
10908 (ravenscar_thread_target::store_registers)
10909 (ravenscar_thread_target::prepare_to_store): Update.
10910 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
10911 Remove.
10912 (struct ppc_ravenscar_powerpc_ops): Derive from
10913 ravenscar_arch_ops.
10914 (ppc_ravenscar_powerpc_ops::fetch_registers)
10915 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
10916 (ppc_ravenscar_powerpc_ops): Redefine.
10917 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
10918 (ppc_ravenscar_e500_ops::fetch_registers)
10919 (ppc_ravenscar_e500_ops::store_registers): Now methods.
10920 (ppc_ravenscar_e500_ops): Redefine.
10921 * aarch64-ravenscar-thread.c
10922 (aarch64_ravenscar_generic_prepare_to_store): Remove.
10923 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
10924 (aarch64_ravenscar_fetch_registers)
10925 (aarch64_ravenscar_store_registers): Now methods.
10926 (aarch64_ravenscar_ops): Redefine.
10927
5b6ea500
TT
109282019-02-15 Tom Tromey <tromey@adacore.com>
10929
10930 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
10931 (ravenscar_thread_target::stopped_by_hw_breakpoint)
10932 (ravenscar_thread_target::stopped_by_watchpoint)
10933 (ravenscar_thread_target::stopped_data_address)
10934 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
10935
e397fd39
TT
109362019-02-15 Tom Tromey <tromey@adacore.com>
10937
10938 * ravenscar-thread.c: Fix some typos.
10939
cc12f4a8
TT
109402019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10941 Tom Tromey <tromey@adacore.com>
10942
10943 * ada-lang.c (ada_exception_sal): Change addr_string to a
10944 std::string.
10945 (create_ada_exception_catchpoint): Update.
10946
5f486660
TT
109472019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10948 Tom Tromey <tromey@adacore.com>
10949
10950 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
10951 (bp_location_ops): Remove.
10952 (base_breakpoint_allocate_location): Update.
10953 (free_bp_location): Update.
10954 * ada-lang.c (class ada_catchpoint_location)
10955 <ada_catchpoint_location>: Remove ops parameter.
10956 (ada_catchpoint_location_dtor): Remove.
10957 (ada_catchpoint_location_ops): Remove.
10958 (allocate_location_exception): Update.
10959 * breakpoint.h (struct bp_location_ops): Remove.
10960 (class bp_location) <bp_location>: Remove bp_location_ops
10961 parameter.
10962 <~bp_location>: Add destructor.
10963 <ops>: Remove.
10964
b671c7fb
TS
109652019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10966 Pedro Alves <palves@redhat.com>
10967
10968 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
10969 'PATH_MAX'.
10970
8071c5ce
DM
109712019-02-14 David Michael <fedora.dm0@gmail.com>
10972 Samuel Thibault <samuel.thibault@gnu.org>
10973 Thomas Schwinge <thomas@codesourcery.com>
10974
10975 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
10976 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
10977
b1041ae0
TS
109782019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10979
924514e1
TS
10980 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
10981 (check_empty): Use "const char *".
10982
c29ee8d4
TS
10983 * gnu-nat.c (gnu_nat_target::detach): Instead of
10984 'detach_inferior (pid)' call
10985 'detach_inferior (find_inferior_pid (pid))'.
10986
6c6ef69f
TS
10987 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
10988 'nat/fork-inferior.o'.
10989 * gnu-nat.c: #include "nat/fork-inferior.h".
10990
2d0a338c
TS
10991 * gnu-nat.c (gnu_nat_target::detach): Instead of
10992 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
10993 * gnu-nat.h: #include "inf-child.h".
10994 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
10995 'i386_gnu_nat_target::fetch_registers'.
10996 (gnu_store_registers): Rename/move to
10997 'i386_gnu_nat_target::store_registers'.
10998
cabb5f06
TS
10999 * config/i386/nm-i386gnu.h: Don't "#include" any files.
11000 * gnu-nat.h (mach_thread_info): New function.
11001 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
11002
b1041ae0
TS
11003 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
11004
2988d01e
KF
110052019-02-14 Frederic Konrad <konrad@adacore.com>
11006
11007 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
11008
c559d709
JB
110092019-02-14 Joel Brobecker <brobecker@adacore.com>
11010
11011 * windows-nat.c (windows_add_thread): Add new parameter
11012 "main_thread_p" with default value set to false. Update
11013 function documentation as well as all callers.
11014 (windows_delete_thread): Likewise.
11015 (fake_create_process): Update call to windows_add_thread.
11016 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
11017 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
11018 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
11019 call to windows_delete_thread.
11020
007024cc
SM
110212019-02-13 Simon Marchi <simon.marchi@ericsson.com>
11022
11023 * MAINTAINERS: Add Andrew Burgess as global maintainer.
11024
f62318e9
JB
110252019-02-12 John Baldwin <jhb@FreeBSD.org>
11026
11027 * symfile.c (find_separate_debug_file): Use canonical path of
11028 sysroot with child_path instead of gdb_sysroot if it is valid.
11029
cd4b7848
JB
110302019-02-12 John Baldwin <jhb@FreeBSD.org>
11031
11032 * symfile.c (find_separate_debug_file): Use child_path to
11033 determine if an object file is under a sysroot.
11034
efac4bfe
JB
110352019-02-12 John Baldwin <jhb@FreeBSD.org>
11036
11037 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11038 unittests/child-path-selftests.c.
11039 * common/pathstuff.c (child_path): New function.
11040 * common/pathstuff.h (child_path): New prototype.
11041 * unittests/child-path-selftests.c: New file.
11042
402d2bfe
JB
110432019-02-12 John Baldwin <jhb@FreeBSD.org>
11044
11045 * symfile.c (find_separate_debug_file): Look for separate debug
11046 files in debug directories under the sysroot.
11047
1ed9f74e
PW
110482019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11049
11050 * symtab.h (struct minimal_symbol data_p): New const method.
11051 (struct minimal_symbol text_p): Likewise.
11052 * symtab.c (output_source_filename): Use file name style
11053 to print file name.
11054 (print_symbol_info): Likewise.
11055 (print_msymbol_info): Use address style to print addresses.
11056 Use function name style to print executable text symbols.
11057 (expand_symtab_containing_pc): Use data_p.
11058 (find_pc_sect_compunit_symtab): Likewise.
11059
2636d81d
PW
110602019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11061
11062 * breakpoint.c (describe_other_breakpoints): Use address style
11063 to print addresses.
11064 (say_where): Likewise.
11065
ac8c53cc
PW
110662019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11067
11068 * ada-typeprint.c (print_func_type): Print function name
11069 style to print function name.
11070 * c-typeprint.c (c_print_type_1): Likewise.
11071
ea638c43
AH
110722019-02-11 Alan Hayward <alan.hayward@arm.com>
11073
11074 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
11075 for execve.
11076
ab759ca8
PW
110772019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11078
11079 * c-exp.y (direct_abs_decl): Use emplace_back to record the
11080 type_stack.
11081
aff29d1c
JB
110822019-02-10 Joel Brobecker <brobecker@adacore.com>
11083
11084 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
11085 TYPE_CODE_REF types.
11086
617126bc
JW
110872019-02-08 Jim Wilson <jimw@sifive.com>
11088
11089 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
11090 (riscv_linux_fregset): New.
11091 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
11092
46e3ed7f
TT
110932019-02-07 Tom Tromey <tom@tromey.com>
11094
11095 * thread.c (thread_cancel_execution_command): Update.
11096 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
11097 methods.
11098 (struct thread_fsm_ops): Remove.
11099 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
11100 (thread_fsm_should_stop, thread_fsm_return_value)
11101 (thread_fsm_set_finished, thread_fsm_finished_p)
11102 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
11103 Don't declare.
11104 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
11105 * infrun.c (clear_proceed_status_thread)
11106 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
11107 (print_stop_event): Update.
11108 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
11109 Add constructor.
11110 (step_command_fsm_ops): Remove.
11111 (new_step_command_fsm): Remove.
11112 (step_1): Update.
11113 (step_command_fsm::should_stop): Rename from
11114 step_command_fsm_should_stop.
11115 (step_command_fsm::clean_up): Rename from
11116 step_command_fsm_clean_up.
11117 (step_command_fsm::do_async_reply_reason): Rename from
11118 step_command_fsm_async_reply_reason.
11119 (struct until_next_fsm): Inherit from thread_fsm. Add
11120 constructor.
11121 (until_next_fsm_ops): Remove.
11122 (new_until_next_fsm): Remove.
11123 (until_next_fsm::should_stop): Rename from
11124 until_next_fsm_should_stop.
11125 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
11126 (until_next_fsm::do_async_reply_reason): Rename from
11127 until_next_fsm_async_reply_reason.
11128 (struct finish_command_fsm): Inherit from thread_fsm. Add
11129 constructor. Change type of breakpoint.
11130 (finish_command_fsm_ops): Remove.
11131 (new_finish_command_fsm): Remove.
11132 (finish_command_fsm::should_stop): Rename from
11133 finish_command_fsm_should_stop.
11134 (finish_command_fsm::clean_up): Rename from
11135 finish_command_fsm_clean_up.
11136 (finish_command_fsm::return_value): Rename from
11137 finish_command_fsm_return_value.
11138 (finish_command_fsm::do_async_reply_reason): Rename from
11139 finish_command_fsm_async_reply_reason.
11140 (finish_command): Update.
11141 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
11142 Add constructor.
11143 (call_thread_fsm_ops): Remove.
11144 (call_thread_fsm::call_thread_fsm): Rename from
11145 new_call_thread_fsm.
11146 (call_thread_fsm::should_stop): Rename from
11147 call_thread_fsm_should_stop.
11148 (call_thread_fsm::should_notify_stop): Rename from
11149 call_thread_fsm_should_notify_stop.
11150 (run_inferior_call, call_function_by_hand_dummy): Update.
11151 * cli/cli-interp.c (should_print_stop_to_console): Update.
11152 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
11153 Add constructor. Change type of location_breakpoint,
11154 caller_breakpoint.
11155 (until_break_fsm_ops): Remove.
11156 (new_until_break_fsm): Remove.
11157 (until_break_fsm::should_stop): Rename from
11158 until_break_fsm_should_stop.
11159 (until_break_fsm::clean_up): Rename from
11160 until_break_fsm_clean_up.
11161 (until_break_fsm::do_async_reply_reason): Rename from
11162 until_break_fsm_async_reply_reason.
11163 (until_break_command): Update.
11164 * thread-fsm.c: Remove.
11165 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
11166
1a5c2598
TT
111672019-02-07 Tom Tromey <tom@tromey.com>
11168
11169 * yy-remap.h: Add include guard.
11170 * xtensa-tdep.h: Add include guard.
11171 * xcoffread.h: Rename include guard.
11172 * varobj-iter.h: Add include guard.
11173 * tui/tui.h: Rename include guard.
11174 * tui/tui-winsource.h: Rename include guard.
11175 * tui/tui-wingeneral.h: Rename include guard.
11176 * tui/tui-windata.h: Rename include guard.
11177 * tui/tui-win.h: Rename include guard.
11178 * tui/tui-stack.h: Rename include guard.
11179 * tui/tui-source.h: Rename include guard.
11180 * tui/tui-regs.h: Rename include guard.
11181 * tui/tui-out.h: Rename include guard.
11182 * tui/tui-layout.h: Rename include guard.
11183 * tui/tui-io.h: Rename include guard.
11184 * tui/tui-hooks.h: Rename include guard.
11185 * tui/tui-file.h: Rename include guard.
11186 * tui/tui-disasm.h: Rename include guard.
11187 * tui/tui-data.h: Rename include guard.
11188 * tui/tui-command.h: Rename include guard.
11189 * tic6x-tdep.h: Add include guard.
11190 * target/waitstatus.h: Rename include guard.
11191 * target/wait.h: Rename include guard.
11192 * target/target.h: Rename include guard.
11193 * target/resume.h: Rename include guard.
11194 * target-float.h: Rename include guard.
11195 * stabsread.h: Add include guard.
11196 * rs6000-tdep.h: Add include guard.
11197 * riscv-fbsd-tdep.h: Add include guard.
11198 * regformats/regdef.h: Rename include guard.
11199 * record.h: Rename include guard.
11200 * python/python.h: Rename include guard.
11201 * python/python-internal.h: Rename include guard.
11202 * python/py-stopevent.h: Rename include guard.
11203 * python/py-ref.h: Rename include guard.
11204 * python/py-record.h: Rename include guard.
11205 * python/py-record-full.h: Rename include guard.
11206 * python/py-record-btrace.h: Rename include guard.
11207 * python/py-instruction.h: Rename include guard.
11208 * python/py-events.h: Rename include guard.
11209 * python/py-event.h: Rename include guard.
11210 * procfs.h: Add include guard.
11211 * proc-utils.h: Add include guard.
11212 * p-lang.h: Add include guard.
11213 * or1k-tdep.h: Rename include guard.
11214 * observable.h: Rename include guard.
11215 * nto-tdep.h: Rename include guard.
11216 * nat/x86-linux.h: Rename include guard.
11217 * nat/x86-linux-dregs.h: Rename include guard.
11218 * nat/x86-gcc-cpuid.h: Add include guard.
11219 * nat/x86-dregs.h: Rename include guard.
11220 * nat/x86-cpuid.h: Rename include guard.
11221 * nat/ppc-linux.h: Rename include guard.
11222 * nat/mips-linux-watch.h: Rename include guard.
11223 * nat/linux-waitpid.h: Rename include guard.
11224 * nat/linux-ptrace.h: Rename include guard.
11225 * nat/linux-procfs.h: Rename include guard.
11226 * nat/linux-osdata.h: Rename include guard.
11227 * nat/linux-nat.h: Rename include guard.
11228 * nat/linux-namespaces.h: Rename include guard.
11229 * nat/linux-btrace.h: Rename include guard.
11230 * nat/glibc_thread_db.h: Rename include guard.
11231 * nat/gdb_thread_db.h: Rename include guard.
11232 * nat/gdb_ptrace.h: Rename include guard.
11233 * nat/fork-inferior.h: Rename include guard.
11234 * nat/amd64-linux-siginfo.h: Rename include guard.
11235 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
11236 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
11237 * nat/aarch64-linux.h: Rename include guard.
11238 * nat/aarch64-linux-hw-point.h: Rename include guard.
11239 * mn10300-tdep.h: Add include guard.
11240 * mips-linux-tdep.h: Add include guard.
11241 * mi/mi-parse.h: Rename include guard.
11242 * mi/mi-out.h: Rename include guard.
11243 * mi/mi-main.h: Rename include guard.
11244 * mi/mi-interp.h: Rename include guard.
11245 * mi/mi-getopt.h: Rename include guard.
11246 * mi/mi-console.h: Rename include guard.
11247 * mi/mi-common.h: Rename include guard.
11248 * mi/mi-cmds.h: Rename include guard.
11249 * mi/mi-cmd-break.h: Rename include guard.
11250 * m2-lang.h: Add include guard.
11251 * location.h: Rename include guard.
11252 * linux-record.h: Rename include guard.
11253 * linux-nat.h: Add include guard.
11254 * linux-fork.h: Add include guard.
11255 * i386-darwin-tdep.h: Rename include guard.
11256 * hppa-linux-offsets.h: Add include guard.
11257 * guile/guile.h: Rename include guard.
11258 * guile/guile-internal.h: Rename include guard.
11259 * gnu-nat.h: Rename include guard.
11260 * gdb-stabs.h: Rename include guard.
11261 * frv-tdep.h: Add include guard.
11262 * f-lang.h: Add include guard.
11263 * event-loop.h: Add include guard.
11264 * darwin-nat.h: Rename include guard.
11265 * cp-abi.h: Rename include guard.
11266 * config/sparc/nm-sol2.h: Rename include guard.
11267 * config/nm-nto.h: Rename include guard.
11268 * config/nm-linux.h: Add include guard.
11269 * config/i386/nm-i386gnu.h: Rename include guard.
11270 * config/djgpp/nl_types.h: Rename include guard.
11271 * config/djgpp/langinfo.h: Rename include guard.
11272 * compile/gcc-cp-plugin.h: Add include guard.
11273 * compile/gcc-c-plugin.h: Add include guard.
11274 * compile/compile.h: Rename include guard.
11275 * compile/compile-object-run.h: Rename include guard.
11276 * compile/compile-object-load.h: Rename include guard.
11277 * compile/compile-internal.h: Rename include guard.
11278 * compile/compile-cplus.h: Rename include guard.
11279 * compile/compile-c.h: Rename include guard.
11280 * common/xml-utils.h: Rename include guard.
11281 * common/x86-xstate.h: Rename include guard.
11282 * common/version.h: Rename include guard.
11283 * common/vec.h: Rename include guard.
11284 * common/tdesc.h: Rename include guard.
11285 * common/selftest.h: Rename include guard.
11286 * common/scoped_restore.h: Rename include guard.
11287 * common/scoped_mmap.h: Rename include guard.
11288 * common/scoped_fd.h: Rename include guard.
11289 * common/safe-iterator.h: Rename include guard.
11290 * common/run-time-clock.h: Rename include guard.
11291 * common/refcounted-object.h: Rename include guard.
11292 * common/queue.h: Rename include guard.
11293 * common/ptid.h: Rename include guard.
11294 * common/print-utils.h: Rename include guard.
11295 * common/preprocessor.h: Rename include guard.
11296 * common/pathstuff.h: Rename include guard.
11297 * common/observable.h: Rename include guard.
11298 * common/netstuff.h: Rename include guard.
11299 * common/job-control.h: Rename include guard.
11300 * common/host-defs.h: Rename include guard.
11301 * common/gdb_wait.h: Rename include guard.
11302 * common/gdb_vecs.h: Rename include guard.
11303 * common/gdb_unlinker.h: Rename include guard.
11304 * common/gdb_unique_ptr.h: Rename include guard.
11305 * common/gdb_tilde_expand.h: Rename include guard.
11306 * common/gdb_sys_time.h: Rename include guard.
11307 * common/gdb_string_view.h: Rename include guard.
11308 * common/gdb_splay_tree.h: Rename include guard.
11309 * common/gdb_setjmp.h: Rename include guard.
11310 * common/gdb_ref_ptr.h: Rename include guard.
11311 * common/gdb_optional.h: Rename include guard.
11312 * common/gdb_locale.h: Rename include guard.
11313 * common/gdb_assert.h: Rename include guard.
11314 * common/filtered-iterator.h: Rename include guard.
11315 * common/filestuff.h: Rename include guard.
11316 * common/fileio.h: Rename include guard.
11317 * common/environ.h: Rename include guard.
11318 * common/common-utils.h: Rename include guard.
11319 * common/common-types.h: Rename include guard.
11320 * common/common-regcache.h: Rename include guard.
11321 * common/common-inferior.h: Rename include guard.
11322 * common/common-gdbthread.h: Rename include guard.
11323 * common/common-exceptions.h: Rename include guard.
11324 * common/common-defs.h: Rename include guard.
11325 * common/common-debug.h: Rename include guard.
11326 * common/cleanups.h: Rename include guard.
11327 * common/buffer.h: Rename include guard.
11328 * common/btrace-common.h: Rename include guard.
11329 * common/break-common.h: Rename include guard.
11330 * cli/cli-utils.h: Rename include guard.
11331 * cli/cli-style.h: Rename include guard.
11332 * cli/cli-setshow.h: Rename include guard.
11333 * cli/cli-script.h: Rename include guard.
11334 * cli/cli-interp.h: Rename include guard.
11335 * cli/cli-decode.h: Rename include guard.
11336 * cli/cli-cmds.h: Rename include guard.
11337 * charset-list.h: Add include guard.
11338 * buildsym-legacy.h: Rename include guard.
11339 * bfin-tdep.h: Add include guard.
11340 * ax.h: Rename include guard.
11341 * arm-linux-tdep.h: Add include guard.
11342 * arm-fbsd-tdep.h: Add include guard.
11343 * arch/xtensa.h: Rename include guard.
11344 * arch/tic6x.h: Add include guard.
11345 * arch/i386.h: Add include guard.
11346 * arch/arm.h: Rename include guard.
11347 * arch/arm-linux.h: Rename include guard.
11348 * arch/arm-get-next-pcs.h: Rename include guard.
11349 * arch/amd64.h: Add include guard.
11350 * arch/aarch64-insn.h: Rename include guard.
11351 * arch-utils.h: Rename include guard.
11352 * annotate.h: Add include guard.
11353 * amd64-darwin-tdep.h: Rename include guard.
11354 * aarch64-linux-tdep.h: Add include guard.
11355 * aarch64-fbsd-tdep.h: Add include guard.
11356 * aarch32-linux-nat.h: Add include guard.
11357
ab9268d2
PW
113582019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11359
11360 * macrotab.c (macro_define_internal): New function that
11361 factorizes macro_define_object_internal and macro_define_function
11362 code.
11363 (macro_define_object_internal): Use macro_define_internal.
11364 (macro_define_function): Likewise.
11365
bb0da2b4
PW
113662019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11367
11368 * macrocmd.c (extract_identifier): Return
11369 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
11370 callers.
11371
424eb552
JB
113722019-02-06 John Baldwin <jhb@FreeBSD.org>
11373
11374 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
11375
1688cb29
TT
113762019-02-05 Tom Tromey <tom@tromey.com>
11377
11378 * target.c (target_stack::unpush): Move assertion earlier.
11379
b5eba2d8
TT
113802019-01-30 Tom Tromey <tom@tromey.com>
11381
11382 PR python/23615:
11383 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
11384 (gdbpy_parse_and_eval): Likewise.
11385 * python/python-internal.h (gdbpy_allow_threads): New class.
11386
7054e2ff
JB
113872019-01-28 John Baldwin <jhb@FreeBSD.org>
11388
11389 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
11390 (aarch64_fbsd_fpregmap): Move earlier.
11391 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
11392 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11393 instead of individual calls to trad_frame_set_reg_addr.
11394 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
11395 earlier.
11396 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
11397 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11398 instead of individual calls to trad_frame_set_reg_addr.
11399
36c25ffa
AH
114002019-01-28 Alan Hayward <alan.hayward@arm.com>
11401
11402 * CONTRIBUTE: Replace contribution list with wiki link.
11403
a0707f3c
TT
114042019-01-25 Tom Tromey <tom@tromey.com>
11405
11406 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
11407
0747795c
TT
114082019-01-25 Tom Tromey <tom@tromey.com>
11409
11410 * xtensa-linux-nat.c: Fix common/ includes.
11411 * xml-support.h: Fix common/ includes.
11412 * xml-support.c: Fix common/ includes.
11413 * x86-linux-nat.c: Fix common/ includes.
11414 * windows-nat.c: Fix common/ includes.
11415 * varobj.h: Fix common/ includes.
11416 * varobj.c: Fix common/ includes.
11417 * value.c: Fix common/ includes.
11418 * valops.c: Fix common/ includes.
11419 * utils.c: Fix common/ includes.
11420 * unittests/xml-utils-selftests.c: Fix common/ includes.
11421 * unittests/utils-selftests.c: Fix common/ includes.
11422 * unittests/unpack-selftests.c: Fix common/ includes.
11423 * unittests/tracepoint-selftests.c: Fix common/ includes.
11424 * unittests/style-selftests.c: Fix common/ includes.
11425 * unittests/string_view-selftests.c: Fix common/ includes.
11426 * unittests/scoped_restore-selftests.c: Fix common/ includes.
11427 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
11428 * unittests/scoped_fd-selftests.c: Fix common/ includes.
11429 * unittests/rsp-low-selftests.c: Fix common/ includes.
11430 * unittests/parse-connection-spec-selftests.c: Fix common/
11431 includes.
11432 * unittests/optional-selftests.c: Fix common/ includes.
11433 * unittests/offset-type-selftests.c: Fix common/ includes.
11434 * unittests/observable-selftests.c: Fix common/ includes.
11435 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
11436 * unittests/memrange-selftests.c: Fix common/ includes.
11437 * unittests/memory-map-selftests.c: Fix common/ includes.
11438 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
11439 * unittests/function-view-selftests.c: Fix common/ includes.
11440 * unittests/environ-selftests.c: Fix common/ includes.
11441 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
11442 * unittests/common-utils-selftests.c: Fix common/ includes.
11443 * unittests/cli-utils-selftests.c: Fix common/ includes.
11444 * unittests/array-view-selftests.c: Fix common/ includes.
11445 * ui-file.c: Fix common/ includes.
11446 * tui/tui-io.c: Fix common/ includes.
11447 * tracepoint.h: Fix common/ includes.
11448 * tracepoint.c: Fix common/ includes.
11449 * tracefile-tfile.c: Fix common/ includes.
11450 * top.h: Fix common/ includes.
11451 * top.c: Fix common/ includes.
11452 * thread.c: Fix common/ includes.
11453 * target/waitstatus.h: Fix common/ includes.
11454 * target/waitstatus.c: Fix common/ includes.
11455 * target.h: Fix common/ includes.
11456 * target.c: Fix common/ includes.
11457 * target-memory.c: Fix common/ includes.
11458 * target-descriptions.c: Fix common/ includes.
11459 * symtab.h: Fix common/ includes.
11460 * symfile.c: Fix common/ includes.
11461 * stap-probe.c: Fix common/ includes.
11462 * spu-linux-nat.c: Fix common/ includes.
11463 * sparc-nat.c: Fix common/ includes.
11464 * source.c: Fix common/ includes.
11465 * solib.c: Fix common/ includes.
11466 * solib-target.c: Fix common/ includes.
11467 * ser-unix.c: Fix common/ includes.
11468 * ser-tcp.c: Fix common/ includes.
11469 * ser-pipe.c: Fix common/ includes.
11470 * ser-base.c: Fix common/ includes.
11471 * selftest-arch.c: Fix common/ includes.
11472 * s12z-tdep.c: Fix common/ includes.
11473 * rust-exp.y: Fix common/ includes.
11474 * rs6000-aix-tdep.c: Fix common/ includes.
11475 * riscv-tdep.c: Fix common/ includes.
11476 * remote.c: Fix common/ includes.
11477 * remote-notif.h: Fix common/ includes.
11478 * remote-fileio.h: Fix common/ includes.
11479 * remote-fileio.c: Fix common/ includes.
11480 * regcache.h: Fix common/ includes.
11481 * regcache.c: Fix common/ includes.
11482 * record-btrace.c: Fix common/ includes.
11483 * python/python.c: Fix common/ includes.
11484 * python/py-type.c: Fix common/ includes.
11485 * python/py-inferior.c: Fix common/ includes.
11486 * progspace.h: Fix common/ includes.
11487 * producer.c: Fix common/ includes.
11488 * procfs.c: Fix common/ includes.
11489 * proc-api.c: Fix common/ includes.
11490 * printcmd.c: Fix common/ includes.
11491 * ppc-linux-nat.c: Fix common/ includes.
11492 * parser-defs.h: Fix common/ includes.
11493 * osdata.c: Fix common/ includes.
11494 * obsd-nat.c: Fix common/ includes.
11495 * nat/x86-linux.c: Fix common/ includes.
11496 * nat/x86-linux-dregs.c: Fix common/ includes.
11497 * nat/x86-dregs.h: Fix common/ includes.
11498 * nat/x86-dregs.c: Fix common/ includes.
11499 * nat/ppc-linux.c: Fix common/ includes.
11500 * nat/mips-linux-watch.h: Fix common/ includes.
11501 * nat/mips-linux-watch.c: Fix common/ includes.
11502 * nat/linux-waitpid.c: Fix common/ includes.
11503 * nat/linux-ptrace.h: Fix common/ includes.
11504 * nat/linux-ptrace.c: Fix common/ includes.
11505 * nat/linux-procfs.c: Fix common/ includes.
11506 * nat/linux-personality.c: Fix common/ includes.
11507 * nat/linux-osdata.c: Fix common/ includes.
11508 * nat/linux-namespaces.c: Fix common/ includes.
11509 * nat/linux-btrace.h: Fix common/ includes.
11510 * nat/linux-btrace.c: Fix common/ includes.
11511 * nat/fork-inferior.c: Fix common/ includes.
11512 * nat/amd64-linux-siginfo.c: Fix common/ includes.
11513 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
11514 * nat/aarch64-linux.c: Fix common/ includes.
11515 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
11516 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
11517 * namespace.h: Fix common/ includes.
11518 * mips-linux-tdep.c: Fix common/ includes.
11519 * minsyms.c: Fix common/ includes.
11520 * mi/mi-parse.h: Fix common/ includes.
11521 * mi/mi-main.c: Fix common/ includes.
11522 * mi/mi-cmd-env.c: Fix common/ includes.
11523 * memrange.h: Fix common/ includes.
11524 * memattr.c: Fix common/ includes.
11525 * maint.h: Fix common/ includes.
11526 * maint.c: Fix common/ includes.
11527 * main.c: Fix common/ includes.
11528 * machoread.c: Fix common/ includes.
11529 * location.c: Fix common/ includes.
11530 * linux-thread-db.c: Fix common/ includes.
11531 * linux-nat.c: Fix common/ includes.
11532 * linux-fork.c: Fix common/ includes.
11533 * inline-frame.c: Fix common/ includes.
11534 * infrun.c: Fix common/ includes.
11535 * inflow.c: Fix common/ includes.
11536 * inferior.h: Fix common/ includes.
11537 * inferior.c: Fix common/ includes.
11538 * infcmd.c: Fix common/ includes.
11539 * inf-ptrace.c: Fix common/ includes.
11540 * inf-child.c: Fix common/ includes.
11541 * ia64-linux-nat.c: Fix common/ includes.
11542 * i387-tdep.c: Fix common/ includes.
11543 * i386-tdep.c: Fix common/ includes.
11544 * i386-linux-tdep.c: Fix common/ includes.
11545 * i386-linux-nat.c: Fix common/ includes.
11546 * i386-go32-tdep.c: Fix common/ includes.
11547 * i386-fbsd-tdep.c: Fix common/ includes.
11548 * i386-fbsd-nat.c: Fix common/ includes.
11549 * guile/scm-type.c: Fix common/ includes.
11550 * guile/guile.c: Fix common/ includes.
11551 * go32-nat.c: Fix common/ includes.
11552 * gnu-nat.c: Fix common/ includes.
11553 * gdbthread.h: Fix common/ includes.
11554 * gdbarch-selftests.c: Fix common/ includes.
11555 * gdb_usleep.c: Fix common/ includes.
11556 * gdb_select.h: Fix common/ includes.
11557 * gdb_bfd.c: Fix common/ includes.
11558 * gcore.c: Fix common/ includes.
11559 * fork-child.c: Fix common/ includes.
11560 * findvar.c: Fix common/ includes.
11561 * fbsd-nat.c: Fix common/ includes.
11562 * event-top.c: Fix common/ includes.
11563 * event-loop.c: Fix common/ includes.
11564 * dwarf2read.c: Fix common/ includes.
11565 * dwarf2loc.c: Fix common/ includes.
11566 * dwarf2-frame.c: Fix common/ includes.
11567 * dwarf-index-cache.c: Fix common/ includes.
11568 * dtrace-probe.c: Fix common/ includes.
11569 * disasm-selftests.c: Fix common/ includes.
11570 * defs.h: Fix common/ includes.
11571 * csky-tdep.c: Fix common/ includes.
11572 * cp-valprint.c: Fix common/ includes.
11573 * cp-support.h: Fix common/ includes.
11574 * cp-support.c: Fix common/ includes.
11575 * corelow.c: Fix common/ includes.
11576 * completer.h: Fix common/ includes.
11577 * completer.c: Fix common/ includes.
11578 * compile/compile.c: Fix common/ includes.
11579 * compile/compile-loc2c.c: Fix common/ includes.
11580 * compile/compile-cplus-types.c: Fix common/ includes.
11581 * compile/compile-cplus-symbols.c: Fix common/ includes.
11582 * command.h: Fix common/ includes.
11583 * cli/cli-dump.c: Fix common/ includes.
11584 * cli/cli-cmds.c: Fix common/ includes.
11585 * charset.c: Fix common/ includes.
11586 * build-id.c: Fix common/ includes.
11587 * btrace.h: Fix common/ includes.
11588 * btrace.c: Fix common/ includes.
11589 * breakpoint.h: Fix common/ includes.
11590 * breakpoint.c: Fix common/ includes.
11591 * ax.h:
11592 (enum agent_op): Fix common/ includes.
11593 * ax-general.c (struct aop_map): Fix common/ includes.
11594 * ax-gdb.c: Fix common/ includes.
11595 * auxv.c: Fix common/ includes.
11596 * auto-load.c: Fix common/ includes.
11597 * arm-tdep.c: Fix common/ includes.
11598 * arch/riscv.c: Fix common/ includes.
11599 * arch/ppc-linux-common.c: Fix common/ includes.
11600 * arch/i386.c: Fix common/ includes.
11601 * arch/arm.c: Fix common/ includes.
11602 * arch/arm-linux.c: Fix common/ includes.
11603 * arch/arm-get-next-pcs.c: Fix common/ includes.
11604 * arch/amd64.c: Fix common/ includes.
11605 * arch/aarch64.c: Fix common/ includes.
11606 * arch/aarch64-insn.c: Fix common/ includes.
11607 * arch-utils.c: Fix common/ includes.
11608 * amd64-windows-tdep.c: Fix common/ includes.
11609 * amd64-tdep.c: Fix common/ includes.
11610 * amd64-sol2-tdep.c: Fix common/ includes.
11611 * amd64-obsd-tdep.c: Fix common/ includes.
11612 * amd64-nbsd-tdep.c: Fix common/ includes.
11613 * amd64-linux-tdep.c: Fix common/ includes.
11614 * amd64-linux-nat.c: Fix common/ includes.
11615 * amd64-fbsd-tdep.c: Fix common/ includes.
11616 * amd64-fbsd-nat.c: Fix common/ includes.
11617 * amd64-dicos-tdep.c: Fix common/ includes.
11618 * amd64-darwin-tdep.c: Fix common/ includes.
11619 * agent.c: Fix common/ includes.
11620 * ada-lang.h: Fix common/ includes.
11621 * ada-lang.c: Fix common/ includes.
11622 * aarch64-tdep.c: Fix common/ includes.
11623
2f5c153e
TT
116242019-01-25 Tom Tromey <tom@tromey.com>
11625
11626 * common/create-version.sh: Use common/version.h.
11627
adc6a863
PA
116282019-01-24 Pedro Alves <palves@redhat.com>
11629
11630 * infrun.c (signal_stop, signal_print, signal_program)
11631 (signal_catch, signal_pass): Now arrays instead of pointers.
11632 (update_signals_program_target, do_target_resume)
11633 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
11634 * linux-nat.c (linux_nat_target::pass_signals)
11635 (linux_nat_target::create_inferior, linux_nat_target::attach):
11636 Adjust.
11637 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
11638 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
11639 * procfs.c (procfs_target::pass_signals): Adjust.
11640 * record-full.c (record_full_target::resume): Adjust.
11641 * remote.c (remote_target::pass_signals)
11642 (remote_target::program_signals): Adjust.
11643 * target-debug.h (target_debug_print_signals): Now takes a
11644 gdb::array_view as parameter. Adjust.
11645 * target.h (target_ops) <pass_signals, program_signals>: Replace
11646 pointer and length parameters with gdb::array_view.
11647 (target_pass_signals, target_program_signals): Likewise.
11648 * target-delegates.c: Regenerate.
11649
3046d67a
PA
116502019-01-24 Pedro Alves <palves@redhat.com>
11651
11652 * common/forward-scope-exit.h
11653 (forward_scope_exit::forward_scope_exit): Pass arguments to
11654 m_bind_function directly, instead of creating a std::bind and
11655 copying that.
11656
353229bf
AH
116572019-01-24 Alan Hayward <alan.hayward@arm.com>
11658
11659 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11660 for static members.
11661 (pass_in_v_vfp_candidate): Likewise.
11662
311dc83a
TT
116632019-01-23 Tom Tromey <tom@tromey.com>
11664 Pedro Alves <palves@redhat.com>
11665
11666 * regcache.c (class regcache_invalidator): Remove.
11667 (regcache::raw_write): Use make_scope_exit.
11668
296bd123
TT
116692019-01-23 Tom Tromey <tom@tromey.com>
11670
11671 * ui-out.h (class ui_out_emit_type): Update comment.
11672
979a0d13
TT
116732019-01-23 Tom Tromey <tom@tromey.com>
11674
11675 * infrun.c (fetch_inferior_event): Update comment.
11676
d238133d
TT
116772019-01-23 Tom Tromey <tom@tromey.com>
11678 Pedro Alves <palves@redhat.com>
11679
11680 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
11681 parameter.
11682 (fetch_inferior_event): Use SCOPE_EXIT.
11683
11684
9885e6bb
TT
116852019-01-23 Tom Tromey <tom@tromey.com>
11686 Pedro Alves <palves@redhat.com>
11687
11688 * infrun.c (disable_thread_events): Delete.
11689 (stop_all_threads): Use SCOPE_EXIT.
11690
286526c1
TT
116912019-01-23 Tom Tromey <tom@tromey.com>
11692 Pedro Alves <palves@redhat.com>
11693
11694 * symfile.c: Include forward-scope-exit.h.
11695 (clear_symtab_users_cleanup): Replace forward declaration with
11696 a FORWARD_SCOPE_EXIT.
11697 (syms_from_objfile_1): Use the forward_scope_exit and
11698 gdb::optional instead of cleanup_function.
11699 (reread_symbols): Use the forward_scope_exit instead of
11700 cleanup_function.
11701 (clear_symtab_users_cleanup): Remove function.
11702
1db93f14
TT
117032019-01-23 Tom Tromey <tom@tromey.com>
11704 Pedro Alves <palves@redhat.com>
11705
11706 * linux-nat.c: Include scope-exit.h.
11707 (cleanup_target_stop): Remove.
11708 (linux_nat_target::static_tracepoint_markers_by_strid): Use
11709 SCOPE_EXIT.
11710
2cc83d1e
TT
117112019-01-23 Tom Tromey <tom@tromey.com>
11712 Pedro Alves <palves@redhat.com>
11713
11714 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
11715 (call_function_by_hand_dummy): Use SCOPE_EXIT.
11716
694c6bf5
TT
117172019-01-23 Tom Tromey <tom@tromey.com>
11718 Andrew Burgess <andrew.burgess@embecosm.com>
11719 Pedro Alves <palves@redhat.com>
11720
11721 * infrun.c (fetch_inferior_event): Use scope_exit.
11722 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
11723 * top.c (execute_command): Use scope_exit.
11724 * breakpoint.c (bpstat_do_actions): Use scope_exit.
11725 * utils.c (do_bpstat_clear_actions_cleanup)
11726 (make_bpstat_clear_actions_cleanup): Remove.
11727
4c41382a
TT
117282019-01-23 Tom Tromey <tom@tromey.com>
11729 Pedro Alves <palves@redhat.com>
11730
11731 * infrun.c: Include "common/scope-exit.h"
11732 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
11733 (wait_for_inferior): Use SCOPE_EXIT.
11734 (fetch_inferior_event): Use scope_exit.
11735
89f8fb50
TT
117362019-01-23 Tom Tromey <tom@tromey.com>
11737 Pedro Alves <palves@redhat.com>
11738
11739 * breakpoint.c (create_breakpoint): Remove cleanup.
11740
5419bdae
TT
117412019-01-23 Tom Tromey <tom@tromey.com>
11742 Andrew Burgess <andrew.burgess@embecosm.com>
11743 Pedro Alves <palves@redhat.com>
11744
e587ef42
PA
117452019-01-23 Pedro Alves <palves@redhat.com>
11746
11747 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
11748
77f0e74c
PA
117492019-01-23 Pedro Alves <palves@redhat.com>
11750 Andrew Burgess <andrew.burgess@embecosm.com>
11751
11752 * gdbthread.h: Include "common/forward-scope-exit.h".
11753 (scoped_finish_thread_state): Redefine custom class in terms of
11754 forward_scope_exit.
11755
5b9b3e53
PA
117562019-01-23 Pedro Alves <palves@redhat.com>
11757 Andrew Burgess <andrew.burgess@embecosm.com>
11758
11759 * common/forward-scope-exit.h: New file.
11760
54b65c9b
PA
117612019-01-23 Pedro Alves <palves@redhat.com>
11762 Andrew Burgess <andrew.burgess@embecosm.com>
11763 Tom Tromey <tom@tromey.com>
11764
11765 * common/scope-exit.h: New file.
11766
cf08fb29
PA
117672019-01-23 Pedro Alves <palves@redhat.com>
11768
11769 * common/preprocessor.h (ESC): Rename to ...
11770 (ESC_PARENS): ... this.
11771 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
11772 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
11773
ae73e2e2
TT
117742019-01-23 Tom Tromey <tom@tromey.com>
11775
11776 * language.h (class scoped_switch_to_sym_language_if_auto):
11777 Initialize m_lang in both cases.
11778
6594e122
AH
117792019-01-23 Alan Hayward <alan.hayward@arm.com>
11780
11781 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
11782 with XCNEW.
11783
a7c9855d
TT
117842019-01-22 Tom Tromey <tom@tromey.com>
11785
11786 * corelow.c: Do not include sys/file.h.
11787
93cc1d53
TT
117882019-01-22 Tom Tromey <tom@tromey.com>
11789
11790 * tui/tui-wingeneral.h: Include gdb_curses.h.
11791
38561778
TT
117922019-01-22 Tom Tromey <tom@tromey.com>
11793
11794 * source-cache.h (class source_cache) <get_source_lines,
11795 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
11796
37b3ab5b
TT
117972019-01-22 Tom Tromey <tom@tromey.com>
11798
11799 * remote-fileio.h (struct remote_target): Declare.
11800
3fabc016
TT
118012019-01-22 Tom Tromey <tom@tromey.com>
11802
11803 * python/py-arch.c: Do not include py-ref.h.
11804 * python/py-bpevent.c: Do not include py-ref.h.
11805 * python/py-cmd.c: Do not include py-ref.h.
11806 * python/py-continueevent.c: Do not include py-ref.h.
11807 * python/py-event.h: Do not include py-ref.h.
11808 * python/py-evtregistry.c: Do not include py-ref.h.
11809 * python/py-finishbreakpoint.c: Do not include py-ref.h.
11810 * python/py-frame.c: Do not include py-ref.h.
11811 * python/py-framefilter.c: Do not include py-ref.h.
11812 * python/py-function.c: Do not include py-ref.h.
11813 * python/py-infevents.c: Do not include py-ref.h.
11814 * python/py-linetable.c: Do not include py-ref.h.
11815 * python/py-objfile.c: Do not include py-ref.h.
11816 * python/py-param.c: Do not include py-ref.h.
11817 * python/py-prettyprint.c: Do not include py-ref.h.
11818 * python/py-progspace.c: Do not include py-ref.h.
11819 * python/py-symbol.c: Do not include py-ref.h.
11820 * python/py-symtab.c: Do not include py-ref.h.
11821 * python/py-type.c: Do not include py-ref.h.
11822 * python/py-unwind.c: Do not include py-ref.h.
11823 * python/py-utils.c: Do not include py-ref.h.
11824 * python/py-value.c: Do not include py-ref.h.
11825 * python/py-varobj.c: Do not include py-ref.h.
11826 * python/py-xmethods.c: Do not include py-ref.h.
11827 * python/python.c: Do not include py-ref.h.
11828 * varobj.c: Do not include py-ref.h.
11829
6b4d7774
TT
118302019-01-22 Tom Tromey <tom@tromey.com>
11831
11832 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
11833 keyword for bcache.
11834
7af7e9b5
TT
118352019-01-22 Tom Tromey <tom@tromey.com>
11836
11837 * compile/compile-cplus-types.c: Remove a comment by #include.
11838
951d1049
TT
118392019-01-22 Tom Tromey <tom@tromey.com>
11840
11841 * compile/gcc-c-plugin.h: Include compile-internal.h.
11842
d65d5705
TT
118432019-01-22 Tom Tromey <tom@tromey.com>
11844
11845 * stabsread.c (EXTERN): Do not define.
11846 (symnum, next_symbol_text_func, processing_gcc_compilation)
11847 (within_function, global_sym_chain, global_stabs)
11848 (previous_stab_code, this_object_header_files)
11849 (n_this_object_header_files)
11850 (n_allocated_this_object_header_files): Define.
11851 * stabsread.h (EXTERN): Never define. Use "extern".
11852
b6fb1ee5
PW
118532019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11854
11855 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
11856 history_value.
11857
be6d4f74
TT
118582019-01-21 Tom Tromey <tom@tromey.com>
11859
11860 * ui-out.c: Fix includes.
11861 * tui/tui-source.c: Fix includes.
11862 * target.c: Fix includes.
11863 * remote.c: Fix includes.
11864 * regcache.c: Fix includes.
11865 * python/py-block.c: Fix includes.
11866 * printcmd.c: Fix includes.
11867 * or1k-tdep.c: Fix includes.
11868 * mi/mi-main.c: Fix includes.
11869 * m32r-tdep.c: Fix includes.
11870 * csky-tdep.c: Fix includes.
11871 * compile/compile-cplus-types.c: Fix includes.
11872 * cli/cli-interp.c: Fix includes.
11873
73021deb
AH
118742019-01-21 Alan Hayward <alan.hayward@arm.com>
11875
11876 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11877 for padding.
11878
7932255d
TT
118792019-01-16 Tom Tromey <tom@tromey.com>
11880
11881 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
11882 earlier.
11883 (struct objfile) <msymbols_range>: Move from top level.
11884 <msymbols>: New method.
11885 (class objfile_msymbols): Remove.
11886 * symtab.c (default_collect_symbol_completion_matches_break_on):
11887 Update.
11888 * symmisc.c (dump_msymbols): Update.
11889 * stabsread.c (scan_file_globals): Update.
11890 * objc-lang.c (info_selectors_command, info_classes_command)
11891 (find_methods): Update.
11892 * minsyms.c (find_solib_trampoline_target): Update.
11893 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
11894 * coffread.c (coff_symfile_read): Update.
11895 * ada-lang.c (ada_lookup_simple_minsym)
11896 (ada_collect_symbol_completion_matches): Update.
11897
604b1bfb
TT
118982019-01-16 Tom Tromey <tom@tromey.com>
11899
11900 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
11901 type. Remove no-argument constructor.
11902 <iterator::operator++>: Simplify.
11903 <begin>: Update.
11904 <end>: Use minimal_symbol_count.
11905
f252c6d5
TT
119062019-01-16 Tom Tromey <tom@tromey.com>
11907
11908 * objfiles.h (struct objfile) <psymtabs>: New method.
11909 (class objfile_psymtabs): Remove.
11910 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
11911 typedef.
11912 <range>: New method.
11913 (require_partial_symbols): Change return type.
11914 * psymtab.c (require_partial_symbols)
11915 (psym_expand_symtabs_matching): Update.
11916 * mdebugread.c (parse_partial_symbols): Update.
11917 * dbxread.c (dbx_end_psymtab): Update.
11918
b669c953
TT
119192019-01-15 Tom Tromey <tom@tromey.com>
11920
11921 * symtab.c (lookup_objfile_from_block)
11922 (lookup_symbol_in_objfile_symtabs)
11923 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
11924 (find_line_symtab, info_sources_command)
11925 (default_collect_symbol_completion_matches_break_on)
11926 (make_source_files_completion_list): Update.
11927 * symmisc.c (print_objfile_statistics, dump_objfile)
11928 (maintenance_print_symbols, maintenance_info_symtabs)
11929 (maintenance_check_symtabs, maintenance_info_line_tables):
11930 Update.
11931 * source.c (select_source_symtab)
11932 (forget_cached_source_info_for_objfile): Update.
11933 * objfiles.h (class objfile_compunits): Remove.
11934 (struct objfile) <compunits_range>: New typedef.
11935 (compunits): New method.
11936 * objfiles.c (objfile_relocate1): Update.
11937 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11938 * maint.c (count_symtabs_and_blocks): Update.
11939 * linespec.c (iterate_over_all_matching_symtabs): Update.
11940 * cp-support.c (add_symbol_overload_list_qualified): Update.
11941 * coffread.c (coff_symtab_read): Update.
11942 * ada-lang.c (add_nonlocal_symbols)
11943 (ada_collect_symbol_completion_matches)
11944 (ada_add_global_exceptions): Update.
11945
7e955d83
TT
119462019-01-15 Tom Tromey <tom@tromey.com>
11947
11948 * progspace.h (program_space) <objfiles_safe_range>: New
11949 typedef.
11950 <objfiles_safe>: New method.
11951 * objfiles.h (class all_objfiles_safe): Remove.
11952 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
11953 * jit.c (jit_inferior_exit_hook): Update.
11954
2030c079
TT
119552019-01-17 Tom Tromey <tom@tromey.com>
11956
11957 * progspace.h (program_space) <objfiles_range>: New typedef.
11958 <objfiles>: New method.
11959 <objfiles_head>: Rename from objfiles.
11960 (object_files): Update.
11961 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
11962 * guile/scm-pretty-print.c
11963 (ppscm_find_pretty_printer_from_objfiles): Update.
11964 * guile/scm-objfile.c (gdbscm_objfiles): Update.
11965 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
11966 Update.
11967 * python/py-progspace.c (pspy_get_objfiles): Update.
11968 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11969 Update.
11970 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11971 (objfpy_lookup_objfile_by_build_id): Update.
11972 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11973 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11974 Update.
11975 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11976 (expand_symtab_containing_pc, lookup_objfile_from_block)
11977 (lookup_static_symbol, basic_lookup_transparent_type)
11978 (find_pc_sect_compunit_symtab, find_symbol_at_address)
11979 (find_line_symtab, info_sources_command)
11980 (default_collect_symbol_completion_matches_break_on)
11981 (make_source_files_completion_list, find_main_name): Update.
11982 * symmisc.c (print_symbol_bcache_statistics)
11983 (print_objfile_statistics, maintenance_print_symbols)
11984 (maintenance_print_msymbols, maintenance_print_objfiles)
11985 (maintenance_info_symtabs, maintenance_check_symtabs)
11986 (maintenance_expand_symtabs, maintenance_info_line_tables):
11987 Update.
11988 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
11989 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
11990 (map_overlay_command, unmap_overlay_command)
11991 (simple_overlay_update, expand_symtabs_matching)
11992 (map_symbol_filenames): Update.
11993 * symfile-debug.c (set_debug_symfile): Update.
11994 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
11995 Update.
11996 * source.c (select_source_symtab, forget_cached_source_info):
11997 Update.
11998 * solib.c (solib_read_symbols): Update.
11999 * solib-spu.c (append_ocl_sos): Update.
12000 * psymtab.c (maintenance_print_psymbols)
12001 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
12002 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
12003 * printcmd.c (info_symbol_command): Update.
12004 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
12005 Update.
12006 * objfiles.h (class all_objfiles): Remove.
12007 * objfiles.c (have_partial_symbols, have_full_symbols)
12008 (have_minimal_symbols, qsort_cmp, update_section_map)
12009 (shared_objfile_contains_address_p)
12010 (default_iterate_over_objfiles_in_search_order): Update.
12011 * objc-lang.c (info_selectors_command, info_classes_command)
12012 (find_methods): Update.
12013 * minsyms.c (find_solib_trampoline_target): Update.
12014 * maint.c (maintenance_info_sections)
12015 (maintenance_translate_address, count_symtabs_and_blocks):
12016 Update.
12017 * main.c (captured_main_1): Update.
12018 * linux-thread-db.c (try_thread_db_load_from_pdir)
12019 (has_libpthread): Update.
12020 * linespec.c (iterate_over_all_matching_symtabs)
12021 (search_minsyms_for_name): Update.
12022 * jit.c (jit_find_objf_with_entry_addr): Update.
12023 * hppa-tdep.c (find_unwind_entry)
12024 (hppa_lookup_stub_minimal_symbol): Update.
12025 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
12026 Update.
12027 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12028 (elf_gnu_ifunc_resolve_by_got): Update.
12029 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
12030 * dwarf-index-write.c (save_gdb_index_command): Update.
12031 * cp-support.c (add_symbol_overload_list_qualified): Update.
12032 * breakpoint.c (create_overlay_event_breakpoint)
12033 (create_longjmp_master_breakpoint)
12034 (create_std_terminate_master_breakpoint)
12035 (create_exception_master_breakpoint): Update.
12036 * blockframe.c (find_pc_partial_function): Update.
12037 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
12038 (ada_collect_symbol_completion_matches)
12039 (ada_add_global_exceptions): Update.
12040
776489e0
TT
120412019-01-17 Tom Tromey <tom@tromey.com>
12042
12043 * solib-target.c (lm_info_target_p): Remove typedef. Don't
12044 declare VEC.
12045 (solib_target_parse_libraries): Change return type.
12046 (library_list_start_segment, library_list_start_section)
12047 (library_list_end_library, library_list_start_library); Update.
12048 (solib_target_free_library_list): Remove.
12049 (solib_target_parse_libraries): Remove cleanup. Change return
12050 type.
12051 (solib_target_current_sos): Update.
12052
6471e7d2
TT
120532019-01-17 Tom Tromey <tromey@bapiya>
12054
12055 * valprint.c: Replace "the the" with "the".
12056 * symtab.c: Replace "the the" with "the".
12057 * solib.c: Replace "the the" with "the".
12058 * solib-dsbt.c: Replace "the the" with "the".
12059 * linespec.c: Replace "the the" with "the".
12060 * dwarf2loc.h: Replace "the the" with "the".
12061 * amd64-windows-tdep.c: Replace "the the" with "the".
12062 * aarch64-tdep.c: Replace "the the" with "the".
12063
c24bdb02
KS
120642019-01-16 Keith Seitz <keiths@redhat.com>
12065
12066 PR gdb/23773
12067 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
12068 <builder>: Rename to ..
12069 <m_builder>: ... this and make private.
12070 (dwarf2_cu::get_builder): New method. Change all users of
12071 `builder' to use this method.
12072 (dwarf2_start_symtab): Move to ...
12073 (dwarf2_cu::start_symtab): ... here. Update all callers
12074 (setup_type_unit_groups): Move to ...
12075 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
12076 callers.
12077 (dwarf2_cu::reset_builder): New method.
12078 (process_full_compunit, process_full_type_unit): Use
12079 dwarf2_cu::reset_builder.
12080 (follow_die_offset): Record the ancestor CU if it is different
12081 from the followed DIE's CU.
12082 (follow_die_sig_1): Likewise.
12083
8d64371b
TT
120842019-01-15 Tom Tromey <tom@tromey.com>
12085
12086 * remote.c (class remote_state) <buf>: Now a char_vector.
12087 <buf_size>: Remove.
12088 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
12089 parameter.
12090 (remote_target::getpkt_or_notif_sane_1)
12091 (remote_target::getpkt_sane)
12092 (remote_target::getpkt_or_notif_sane): Likewise.
12093 (class remote_target) <putpkt>: New overload.
12094 (remote_target::read_frame): Change type of "buf_p". Remove
12095 sizeof_p parameter.
12096 (packet_ok): New overload.
12097 (packet_check_result): New overload.
12098 Update all uses.
12099
bb277751
TT
121002019-01-14 Tom Tromey <tom@tromey.com>
12101
12102 * remote-notif.c (handle_notification, remote_notif_ack)
12103 (remote_notif_parse): Make "buf" const.
12104 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
12105 const.
12106 (remote_notif_parse, remote_notif_ack, handle_notification):
12107 Likewise.
12108 * remote.c (remote_notif_stop_parse): Make "buf" const.
12109 (remote_target::remote_parse_stop_reply): Make "buf" const.
12110 (remote_notif_stop_ack): Make "buf" const.
12111
05be00a8
TT
121122019-01-14 Tom Tromey <tom@tromey.com>
12113
12114 * remote.c (remote_console_output): Make parameter const.
12115
491adeca
TT
121162019-01-14 Tom Tromey <tom@tromey.com>
12117
12118 * target-debug.h (target_debug_print_signals): Constify.
12119 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
12120 * procfs.c (procfs_target::pass_signals): Update.
12121 * linux-nat.c (linux_nat_target::pass_signals): Update.
12122 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
12123 * target-delegates.c: Rebuild.
12124 * remote.c (remote_target::program_signals): Update.
12125 (remote_target::pass_signals): Update.
12126 * target.c (target_pass_signals): Constify argument.
12127 (target_program_signals): Likewise.
12128 * target.h (struct target_ops) <pass_signals, program_signals>:
12129 Constify argument.
12130 (target_pass_signals, target_program_signals): Constify argument.
12131
bbd94648
TT
121322019-01-14 Tom Tromey <tom@tromey.com>
12133
12134 PR tui/28819:
12135 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
12136
6f072a10
PFC
121372019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12138
12139 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
12140 field.
12141 * rs6000-tdep.c: Include reggroups.h.
12142 (IS_V_ALIAS_PSEUDOREG): Define.
12143 (rs6000_register_name): Return names for the "vX" aliases.
12144 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
12145 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
12146 aliases. Call default_register_reggroup_p for all other
12147 pseudo-registers.
12148 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
12149 New functions.
12150 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
12151 Handle "vX" aliases.
12152 (v_alias_pseudo_register_collect): New function.
12153 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
12154 (rs6000_gdbarch_init): Initialize "vX" aliases as
12155 pseudo-registers. Restore registration of
12156 rs6000_pseudo_register_reggroup_p with
12157 set_tdesc_pseudo_register_reggroup_p.
12158
1a782351
MF
121592019-01-13 Max Filippov <jcmvbkbc@gmail.com>
12160
12161 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
12162 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
12163 set_gdbarch_num_pseudo_regs.
12164
d73cff18
PW
121652019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12166
12167 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
12168 Remove arg prefixname, add do_set and do_show.
12169 Add member functions set_list and show_list.
12170 * cli/cli-style.c (class cli_style_option): Update accordingly.
12171 (style_set_list): Move to file scope.
12172 (style_show_list): Likewise.
12173 (set_style): Call help_list.
12174 (show_style): Call cmd_show_list.
12175 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
12176 Update to use the new macro.
12177
60a90376
JB
121782019-10-12 Joel Brobecker <brobecker@adacore.com>
12179
12180 * ada-lang.c (_initialize_ada_language): Expand the help text
12181 for the "catch exception" command.
12182
9d7c67bf
PW
121832019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12184
12185 * symtab.c (matching_obj_sections): Initialize obj,
12186 declare it closer to its usage.
12187
7cf47dc4
TT
121882019-01-10 Tom Tromey <tom@tromey.com>
12189
12190 * thread-iter.h (inf_threads_iterator): Use next_iterator.
12191 (basic_inf_threads_range): Remove.
12192 (inf_threads_range, inf_non_exited_threads_range)
12193 (safe_inf_threads_range): Use next_adapter.
12194
d3cb6808
KS
121952019-01-10 Keith Seitz <keiths@redhat.com>
12196
12197 PR gdb/23712
12198 PR symtab/23010
12199 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
12200 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
12201
63a20375
KS
122022019-01-10 Keith Seitz <keiths@redhat.com>
12203
12204 PR gdb/23712
12205 PR symtab/23010
12206 * dictionary.c (pending_to_vector): Remove.
12207 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12208 Remove _1 suffix, replacing functions of the same name. Update
12209 all callers.
12210 (dict_create_hashed, dict_create_hashed_expandable)
12211 (dict_create_linear, dict_create_linear_expandable, dict_free)
12212 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
12213 Make functions static.
12214
b026f593
KS
122152019-01-10 Keith Seitz <keiths@redhat.com>
12216
12217 PR gdb/23712
12218 PR symtab/23010
12219 * dictionary.h (struct dictionary): Replace declaration with
12220 multidictionary.
12221 (dict_create_hashed, dict_create_hashed_expandable)
12222 (dict_create_linear, dict_create_linear_expandable)
12223 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
12224 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
12225 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
12226 taking multidictionary argument.
12227 [ALL_DICT_SYMBOLS]: Update for multidictionary.
12228 * block.h (struct block) <dict>: Change to multidictionary
12229 and rename `multidict'.
12230 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
12231 symmisc.c: Update all dictionary references to multidictionary.
12232
c7748ee9
KS
122332019-01-10 Keith Seitz <keiths@redhat.com>
12234
12235 PR gdb/23712
12236 PR symtab/23010
12237 * dictionary.c: Include unordered_map.
12238 (pending_to_vector): New function.
12239 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12240 Rewrite the non-"_1" functions to take vector instead
12241 of linked list.
12242 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
12243 "new" _1 versions of the same name.
12244 (multidictionary): Define.
12245 (std::hash<enum language): New definition.
12246 (collate_pending_symbols_by_language, mdict_create_hashed)
12247 (mdict_create_hashed_expandable, mdict_create_linear)
12248 (mdict_create_linear_expandable, mdict_free)
12249 (find_language_dictionary, create_new_language_dictionary)
12250 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
12251 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
12252 (mdict_size, mdict_empty): New functions.
12253 * dictionary.h (mdict_iterator): Define.
12254
67aa1f3c
PA
122552019-01-10 Pedro Alves <palves@redhat.com>
12256
12257 * breakpoint.c (read_uploaded_action)
12258 (create_tracepoint_from_upload): Adjust to use
12259 gdb::unique_xmalloc_ptr.
12260 * ctf.c (ctf_write_uploaded_tp):
12261 (SET_ARRAY_FIELD): Use emplace_back.
12262 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
12263 * tracefile-tfile.c (tfile_write_uploaded_tp):
12264 * tracepoint.c (parse_tracepoint_definition): Adjust to use
12265 gdb::unique_xmalloc_ptr.
12266 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
12267 at_string, cond_string, cmd_strings>: Replace char pointers
12268 with gdb::unique_xmalloc_ptr.
12269
2f667667
PA
122702019-01-10 Pedro Alves <palves@redhat.com>
12271
12272 * solib-target.c (library_list_start_library): Don't xstrdup name.
12273
36cb7237
PA
122742019-01-10 Pedro Alves <palves@redhat.com>
12275
12276 * mdebugread.c (parse_partial_symbols): Use
12277 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
12278
da584958
AB
122792019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12280
12281 * linux-fork.c (scoped_switch_fork_info)
12282 <~scoped_switch_fork_info>: Fix incorrect variable name.
12283
1ef8573c
AB
122842019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12285
12286 * linux-fork.c (scoped_switch_fork_info)
12287 <scoped_switch_fork_info>: Make explicit.
12288 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
12289
8d7bcccb
TT
122902019-01-10 Tom Tromey <tom@tromey.com>
12291
12292 * objfiles.h (objfile::reset_psymtabs): Update.
12293 * objfiles.c (objfile::objfile): Update.
12294 * psymtab.h (psymtab_storage::obstack): Update.
12295 (psymtab_storage::m_obstack): Use gdb::optional.
12296 (class psymtab_storage): Update comment. Remove objfile
12297 parameter.
12298 * psymtab.c (psymtab_storage::psymtab_storage): Update.
12299
b596a3c7
TT
123002019-01-10 Tom Tromey <tom@tromey.com>
12301
12302 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
12303 <free_psymtabs>: Now private.
12304 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
12305 (allocate_psymtab): Use new method.
12306
a9342b62
TT
123072019-01-10 Tom Tromey <tom@tromey.com>
12308
12309 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
12310 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
12311 * mdebugread.c (parse_partial_symbols): Use
12312 allocate_dependencies.
12313 * dwarf2read.c (dwarf2_create_include_psymtab): Use
12314 allocate_dependencies.
12315 (process_psymtab_comp_unit_reader)
12316 (build_type_psymtab_dependencies): Likewise.
12317 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
12318
5af70966
TT
123192019-01-10 Tom Tromey <tom@tromey.com>
12320
12321 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
12322 PSYMBOL_SET_LANGUAGE.
12323 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
12324
5923a04c
TT
123252019-01-10 Tom Tromey <tom@tromey.com>
12326
12327 * psymtab.h (psymtab_storage::obstack): New method.
12328 <m_obstack>: Rename from obstack; now private.
12329 * psymtab.c (psymtab_storage): Update.
12330 * dwarf2read.c (create_addrmap_from_index)
12331 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
12332 Update.
12333
6d6a12bf
TT
123342019-01-10 Tom Tromey <tom@tromey.com>
12335
12336 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
12337 * objfiles.h (objfile::reset_psymtabs): New method.
12338
d320c2b5
TT
123392019-01-10 Tom Tromey <tom@tromey.com>
12340
12341 * symmisc.c (print_symbol_bcache_statistics): Update.
12342 (print_objfile_statistics): Update.
12343 * symfile.c (reread_symbols): Update.
12344 * psymtab.h (class psymtab_storage): New.
12345 * psymtab.c (psymtab_storage): New constructor.
12346 (~psymtab_storage): New destructor.
12347 (require_partial_symbols): Update.
12348 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
12349 (find_pc_sect_psymtab, find_pc_sect_psymbol)
12350 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
12351 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
12352 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
12353 (start_psymtab_common, end_psymtab_common)
12354 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
12355 (allocate_psymtab): Update.
12356 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
12357 Update.
12358 (dump_psymtab_addrmap, maintenance_print_psymbols)
12359 (maintenance_check_psymtabs): Update.
12360 (class objfile_psymtabs): Move to objfiles.h.
12361 * psympriv.h (discard_psymtab): Now inline.
12362 (psymtab_discarder::psymtab_discarder): Update.
12363 (psymtab_discarder::~psymtab_discarder): Update.
12364 (ALL_OBJFILE_PSYMTABS): Rewrite.
12365 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
12366 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
12367 Remove fields.
12368 <partial_symtabs>: New field.
12369 (class objfile_psymtabs): Move from psymtab.h. Update.
12370 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
12371 psymbol_cache.
12372 (objfile::~objfile): Don't destroy psymbol_cache.
12373 * mdebugread.c (parse_partial_symbols): Update.
12374 * dwarf2read.c (create_addrmap_from_index)
12375 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12376 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
12377 (add_partial_subprogram, dwarf2_ranges_read): Update.
12378 * dwarf-index-write.c (write_address_map)
12379 (write_one_signatured_type, recursively_write_psymbols)
12380 (class debug_names, class debug_names, write_psymtabs_to_index):
12381 Update.
12382
1d94a5a3
TT
123832019-01-10 Tom Tromey <tom@tromey.com>
12384
12385 * symtab.h (SYMBOL_SET_NAMES): Update.
12386 (symbol_set_names): Update.
12387 (MSYMBOL_SET_NAMES): Update.
12388 * symtab.c (symbol_set_names): Change argument to be an
12389 objfile_per_bfd_storage.
12390 * psymtab.c (add_psymbol_to_bcache): Update.
12391 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
12392
0f14768a
TT
123932019-01-10 Tom Tromey <tom@tromey.com>
12394
12395 * symtab.c (create_demangled_names_hash): Change argument to be an
12396 objfile_per_bfd_storage.
12397 (symbol_set_names): Update.
12398
6eee24ce
TT
123992019-01-10 Tom Tromey <tom@tromey.com>
12400
12401 * xcoffread.c (xcoff_initial_scan): Unconditionally call
12402 init_psymbol_list.
12403 * psymtab.c (init_psymbol_list): Do nothing if already called.
12404 * psympriv.h (init_psymbol_list): Add comment.
12405 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
12406 init_psymbol_list.
12407 * dbxread.c (dbx_symfile_read): Unconditionally call
12408 init_psymbol_list.
12409
75aedd27
TT
124102019-01-10 Tom Tromey <tom@tromey.com>
12411
12412 * xcoffread.c (scan_xcoff_symtab): Update.
12413 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
12414 "where".
12415 * mdebugread.c (parse_partial_symbols)
12416 (handle_psymbol_enumerators): Update.
12417 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
12418 * dbxread.c (read_dbx_symtab): Update.
12419 * psympriv.h (psymbol_placement): New enum.
12420 (add_psymbol_to_list): Update.
12421
939652a5
TT
124222019-01-10 Tom Tromey <tom@tromey.com>
12423
12424 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
12425 static_psymbols parameters.
12426 (scan_xcoff_symtab): Update.
12427 * psymtab.c (start_psymtab_common): Remove global_psymbols and
12428 static_psymbols parameters.
12429 * psympriv.h (start_psymtab_common): Update.
12430 * mdebugread.c (parse_partial_symbols): Update.
12431 * dwarf2read.c (create_partial_symtab): Update.
12432 * dbxread.c (read_dbx_symtab): Update.
12433 (start_psymtab): Remove global_psymbols and static_psymbols
12434 parameters.
12435
baa62830
TT
124362019-01-10 Tom Tromey <tom@tromey.com>
12437
12438 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
12439 * psymtab.c (allocate_psymtab): Add comment.
12440 * psympriv.h (allocate_psymtab): Add comment.
12441 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
12442 initializations.
12443 * dbxread.c (dbx_end_psymtab): Remove some initializations.
12444
0e8f53ba
TT
124452019-01-10 Tom Tromey <tom@tromey.com>
12446
12447 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12448 Don't declare.
12449 * mipsread.c: Include mdebugread.h.
12450 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12451 Declare.
12452 * elfread.c: Include mdebugread.h.
12453
b22a7c6a
TT
124542019-01-09 Tom Tromey <tom@tromey.com>
12455
12456 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
12457 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
12458 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
12459 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
12460 (psym_lookup_symbol, psym_find_last_source_symtab)
12461 (psym_forget_cached_source_info, psym_print_stats)
12462 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
12463 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
12464 (psym_map_matching_symbols, psym_expand_symtabs_matching)
12465 (psym_find_compunit_symtab_by_address)
12466 (maintenance_print_psymbols, maintenance_info_psymtabs)
12467 (maintenance_check_psymtabs): Use ranged for.
12468 * psymtab.h (class objfile_psymtabs): New.
12469 (require_partial_symbols): Return objfile_psymtabs.
12470 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
12471
3b9d3ac2
TT
124722019-01-09 Tom Tromey <tom@tromey.com>
12473
12474 * symfile.c (overlay_invalidate_all, find_pc_overlay)
12475 (find_pc_mapped_section, list_overlays_command)
12476 (map_overlay_command, unmap_overlay_command)
12477 (simple_overlay_update): Use all_objfiles.
12478 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
12479 * printcmd.c (info_symbol_command): Use all_objfiles.
12480 * objfiles.h (ALL_OBJSECTIONS): Remove.
12481 * maint.c (maintenance_translate_address): Use all_objfiles.
12482 * gcore.c (gcore_create_callback): Use all_objfiles.
12483 (objfile_find_memory_regions): Likewise.
12484
8b31193a
TT
124852019-01-09 Tom Tromey <tom@tromey.com>
12486
12487 * symtab.c (find_line_symtab, info_sources_command)
12488 (make_source_files_completion_list): Use objfile_compunits.
12489 * source.c (select_source_symtab): Use objfile_compunits.
12490 * objfiles.h (struct objfile): Update comment.
12491 (ALL_OBJFILES): Remove.
12492 (ALL_FILETABS): Remove.
12493 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
12494 objfile_compunits.
12495
d5da8b3c
TT
124962019-01-09 Tom Tromey <tom@tromey.com>
12497
12498 * symmisc.c (print_objfile_statistics, dump_objfile)
12499 (maintenance_print_symbols): Use compunit_filetabs.
12500 * source.c (forget_cached_source_info_for_objfile): Use
12501 compunit_filetabs.
12502 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
12503 (ALL_FILETABS): Use compunit_filetabs.
12504 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
12505 * coffread.c (coff_symtab_read): Use compunit_filetabs.
12506
5accd1a0
TT
125072019-01-09 Tom Tromey <tom@tromey.com>
12508
12509 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
12510 (compunit_filetabs): New.
12511 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
12512 compunit_filetabs.
12513 (info_sources_command, make_source_files_completion_list): Remove
12514 declaration.
12515 * symmisc.c (print_objfile_statistics, dump_objfile)
12516 (maintenance_print_symbols): Remove declaration.
12517 (maintenance_info_symtabs): Use compunit_filetabs.
12518 (maintenance_info_line_tables): Likewise.
12519 * source.c (select_source_symtab): Change local variable name.
12520 (forget_cached_source_info_for_objfile): Remove declaration.
12521 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
12522 * objfiles.c (objfile_relocate1): Remove declaration.
12523 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12524 declaration.
12525 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
12526 * coffread.c (coff_symtab_read): Remove declaration.
12527 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
12528 compunit_filetabs.
12529
d8aeb77f
TT
125302019-01-09 Tom Tromey <tom@tromey.com>
12531
12532 * symtab.c (lookup_objfile_from_block)
12533 (find_pc_sect_compunit_symtab, search_symbols)
12534 (default_collect_symbol_completion_matches_break_on): Use
12535 objfile_compunits.
12536 * objfiles.h (ALL_COMPUNITS): Remove.
12537 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
12538 * cp-support.c (add_symbol_overload_list_qualified): Use
12539 objfile_compunits.
12540 * ada-lang.c (ada_collect_symbol_completion_matches)
12541 (ada_add_global_exceptions): Use objfile_compunits.
12542
592553c4
TT
125432019-01-09 Tom Tromey <tom@tromey.com>
12544
12545 * source.c (select_source_symtab)
12546 (forget_cached_source_info_for_objfile): Remove declaration.
12547 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12548 declaration.
12549 * maint.c (count_symtabs_and_blocks): Remove declaration.
12550 * cp-support.c (add_symbol_overload_list_qualified): Remove
12551 declaration.
12552 * coffread.c (coff_symtab_read): Remove declaration.
12553 * symtab.c (lookup_symbol_in_objfile_symtabs)
12554 (basic_lookup_transparent_type_1): Use objfile_compunits.
12555 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
12556 (info_sources_command, search_symbols)
12557 (default_collect_symbol_completion_matches_break_on)
12558 (make_source_files_completion_list): Remove declaration.
12559 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
12560 (ada_collect_symbol_completion_matches)
12561 (ada_add_global_exceptions): Remove declaration.
12562 * linespec.c (iterate_over_all_matching_symtabs): Use
12563 objfile_compunits.
12564 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
12565 (class objfile_compunits): New.
12566 (ALL_COMPUNITS): Use objfile_compunits.
12567 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
12568 (maintenance_check_symtabs, maintenance_info_line_tables): Use
12569 objfile_compunits.
12570 * objfiles.c (objfile_relocate1): Use objfile_compunits.
12571
5325b9bf
TT
125722019-01-09 Tom Tromey <tom@tromey.com>
12573
12574 * symtab.c (search_symbols)
12575 (default_collect_symbol_completion_matches_break_on): Use
12576 objfile_msymbols.
12577 * ada-lang.c (ada_lookup_simple_minsym)
12578 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
12579 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
12580 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
12581 objfile_msymbols.
12582 * coffread.c (coff_symfile_read): Use objfile_msymbols.
12583 * symmisc.c (dump_msymbols): Use objfile_msymbols.
12584 * objc-lang.c (find_methods): Use objfile_msymbols.
12585 (info_selectors_command, info_classes_command): Likewise.
12586 * stabsread.c (scan_file_globals): Use objfile_msymbols.
12587 * objfiles.h (class objfile_msymbols): New.
12588 (ALL_OBJFILE_MSYMBOLS): Remove.
12589 (ALL_MSYMBOLS): Remove.
12590
cac85af2
TT
125912019-01-09 Tom Tromey <tom@tromey.com>
12592
12593 * common/next-iterator.h (next_adapter): Add Iterator template
12594 parameter.
12595 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
12596 (class all_objfiles_safe): New.
12597 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
12598 * objfiles.c (put_objfile_before): Update comment.
12599 (add_separate_debug_objfile): Likewise.
12600 (free_all_objfiles): Use all_objfiles_safe.
12601 (objfile_purge_solibs): Likewise.
12602
aed57c53
TT
126032019-01-09 Tom Tromey <tom@tromey.com>
12604
12605 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12606 (expand_symtab_containing_pc, lookup_static_symbol)
12607 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
12608 (find_symbol_at_address, find_line_symtab, find_main_name): Use
12609 all_objfiles.
12610 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
12611 * breakpoint.c (create_overlay_event_breakpoint)
12612 (create_longjmp_master_breakpoint)
12613 (create_std_terminate_master_breakpoint)
12614 (create_exception_master_breakpoint): Use all_objfiles.
12615 * linux-thread-db.c (try_thread_db_load_from_pdir)
12616 (has_libpthread): Use all_objfiles.
12617 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
12618 * linespec.c (iterate_over_all_matching_symtabs)
12619 (search_minsyms_for_name): Use all_objfiles.
12620 * maint.c (maintenance_info_sections): Use all_objfiles.
12621 * main.c (captured_main_1): Use all_objfiles.
12622 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
12623 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
12624 * guile/scm-pretty-print.c
12625 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
12626 * solib-spu.c (append_ocl_sos): Use all_objfiles.
12627 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
12628 (maintenance_print_msymbols): Use all_objfiles.
12629 * source.c (select_source_symtab): Use all_objfiles.
12630 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
12631 * symfile.c (remove_symbol_file_command)
12632 (expand_symtabs_matching, map_symbol_filenames): Use
12633 all_objfiles.
12634 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
12635 all_objfiles.
12636 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
12637 * objc-lang.c (find_methods): Use all_objfiles.
12638 * objfiles.c (have_partial_symbols, have_full_symbols)
12639 (have_minimal_symbols, qsort_cmp)
12640 (default_iterate_over_objfiles_in_search_order): Use
12641 all_objfiles.
12642 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
12643 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
12644 (maintenance_check_psymtabs): Use all_objfiles.
12645 (ALL_PSYMTABS): Remove.
12646 * compile/compile-object-run.c (do_module_cleanup): Use
12647 all_objfiles.
12648 * blockframe.c (find_pc_partial_function): Use all_objfiles.
12649 * cp-support.c (add_symbol_overload_list_qualified): Use
12650 all_objfiles.
12651 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12652 Use all_objfiles.
12653 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
12654 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
12655 all_objfiles.
12656 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12657 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
12658 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12659 Uses all_objfiles.
12660 * solib.c (solib_read_symbols): Use all_objfiles
12661
99d89cde
TT
126622019-01-09 Tom Tromey <tom@tromey.com>
12663
12664 * probe.c (parse_probes_in_pspace): Use all_objfiles.
12665 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
12666 all_objfiles.
12667 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
12668 * symmisc.c (print_symbol_bcache_statistics)
12669 (print_objfile_statistics, maintenance_print_objfiles)
12670 (maintenance_info_symtabs, maintenance_check_symtabs)
12671 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
12672 all_objfiles.
12673 * source.c (forget_cached_source_info): Use all_objfiles.
12674 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
12675 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12676 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
12677 * objfiles.c (update_section_map): Use all_objfiles.
12678 (shared_objfile_contains_address_p): Likewise.
12679 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
12680 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
12681
21708325
TT
126822019-01-09 Tom Tromey <tom@tromey.com>
12683
12684 * common/next-iterator.h: New file.
12685 * objfiles.h (class all_objfiles): New.
12686 (struct objfile_iterator): New.
12687
669e09f6
PW
126882019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12689
12690 * NEWS: Move the description of the changed "frame", "select-frame",
12691 and "info frame" commands to the Changed commands section.
12692
041be526
SM
126932019-01-09 Simon Marchi <simon.marchi@ericsson.com>
12694
12695 * gdbtypes.c (check_stub_method_group): Remove handling of old
12696 mangling schemes.
12697 * linespec.c (find_methods): Likewise.
12698 * stabsread.c (read_member_functions): Likewise.
12699 * valops.c (search_struct_method): Likewise.
12700 (value_struct_elt_for_reference): Likewise.
12701 * NEWS: Mention this change.
12702
0e2a2133
AB
127032019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12704
12705 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
12706 print_source_lines.
12707 * source.c (print_source_lines_base): Update line number check.
12708 (print_source_lines): New function.
12709 (source_lines_range::source_lines_range): New function.
12710 * source.h (class source_lines_range): New class.
12711 (print_source_lines): New declaration.
12712
1055a3b4
PW
127132019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12714
12715 * linespec.c (linespec_state_destructor): Free self->canonical_names.
12716
cfeadda5
TT
127172019-01-08 Tom Tromey <tom@tromey.com>
12718 Simon Marchi <simon.marchi@ericsson.com>
12719
12720 PR gdb/24060
12721 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
12722 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
12723 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12724 * f-exp.y (DOLLAR_VARIABLE): Likewise.
12725 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
12726 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12727
583068ca
AB
127282019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12729
12730 * source.c (select_source_symtab): Move header comment to
12731 declaration in source.h.
12732 (forget_cached_source_info_for_objfile): Likewise.
12733 (forget_cached_source_info): Likewise.
12734 (identify_source_line): Likewise.
12735 * source.h (identify_source_line): Move declaration from symtab.h
12736 and add comment from source.c
12737 (print_source_lines): Likewise.
12738 (forget_cached_source_info_for_objfile): Likewise.
12739 (forget_cached_source_info): Likewise.
12740 (select_source_symtab): Likewise.
12741 (enum print_source_lines_flag): Move definition from symtab.h.
12742 * symtab.h (identify_source_line): Move declaration to source.h.
12743 (print_source_lines): Likewise.
12744 (forget_cached_source_info_for_objfile): Likewise.
12745 (forget_cached_source_info): Likewise.
12746 (select_source_symtab): Likewise.
12747 (enum print_source_lines_flag): Move definition to source.h.
12748 * tui/tui-hooks.c: Add 'source.h' include.
12749
ec98a4ad
AB
127502019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12751
12752 * source.c (print_source_lines_base): Handle requests to print
12753 reverse line number sequences, and guard against empty lines
12754 string.
12755
62ea19c1
AB
127562019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12757
12758 * source.c (print_source_lines_base): Fix skip of '\r' if next
12759 character is '\n'.
12760
9d30e1fd
TT
127612019-01-06 Tom Tromey <tom@tromey.com>
12762
12763 * c-exp.y (struct c_parse_state) <macro_original_text,
12764 expansion_obstack>: New member.
12765 (macro_original_text, expansion_obstack): Remove globals.
12766 (scan_macro_expansion, scanning_macro_expansion)
12767 (finished_macro_expansion): Update.
12768 (scan_macro_cleanup): Remove.
12769 (yylex, c_parse): Update.
12770
c65bac38
TT
127712019-01-06 Tom Tromey <tom@tromey.com>
12772
12773 * c-exp.y (struct c_parse_state) <strings>: New member.
12774 (operator_stoken): Update.
12775
02e12e38
TT
127762019-01-06 Tom Tromey <tom@tromey.com>
12777
12778 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
12779 (union type_stack_elt) <typelist_val>: Now a pointer to
12780 std::vector.
12781 (type_stack_cleanup): Don't declare.
12782 (push_typelist): Update.
12783 * parse.c (pop_typelist): Return a std::vector.
12784 (push_typelist): Take a std::vector.
12785 (follow_types): Update. Do not free args.
12786 (type_stack_cleanup): Remove.
12787 * c-exp.y (struct c_parse_state): New.
12788 (cpstate): New global.
12789 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
12790 (nonempty_typelist): Update.
12791 (func_mod): Create a new vector.
12792 (c_parse): Create a c_parse_state.
12793 (check_parameter_typelist): Do not delete params.
12794 (function_method): Update. Do not delete type_list.
12795
f097f5ad
TT
127962019-01-06 Tom Tromey <tom@tromey.com>
12797
12798 PR gdb/28155:
12799 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
12800 check_typedef.
12801 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
12802 (print_return_value): Likewise.
12803
d2adf9f1
TT
128042019-01-05 Tom Tromey <tom@tromey.com>
12805
12806 * contrib/cleanup_check.py: Remove.
12807 * contrib/gcc-with-excheck: Remove.
12808 * contrib/exsummary.py: Remove.
12809 * contrib/excheck.py: Remove.
12810
2eab46b1
JB
128112019-01-05 Joel Brobecker <brobecker@adacore.com>
12812
12813 * thread.c (delete_thread_1): Add gdb_assert that THR is not
12814 NULL. Initialize tpprev to NULL instead of assigning it
12815 to NULL on the next statement.
12816 * windows-nat.c (windows_delete_thread): Remove check for
12817 main_thread_id before printing thread exit notifications.
12818 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
12819 Remove thread ID check against main_thread_id.
12820 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
12821 windows_delete_thread.
12822 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
12823
48c5e7e2
TT
128242019-01-04 Tom Tromey <tom@tromey.com>
12825
12826 * compile/compile.c (_initialize_compile): Use upper case for
12827 metasyntactic variables.
12828 * symmisc.c (_initialize_symmisc): Use upper case for
12829 metasyntactic variables.
12830 * psymtab.c (_initialize_psymtab): Use upper case for
12831 metasyntactic variables.
12832 * demangle.c (demangle_command): Use upper case for metasyntactic
12833 variables.
12834 (_initialize_demangler): Likewise.
12835 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
12836 variables.
12837
986041cd
TT
128382019-01-03 Tom Tromey <tom@tromey.com>
12839
12840 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
12841
7c711119
TT
128422019-01-03 Tom Tromey <tom@tromey.com>
12843
12844 * python/py-symtab.c (salpy_str): Update.
12845 (struct salpy_sal_object) <symtab>: Now a PyObject.
12846 (salpy_dealloc): Update.
12847 (del_objfile_sal): Use gdbpy_ref.
12848
1b20edf0
TT
128492019-01-03 Tom Tromey <tom@tromey.com>
12850
12851 * python/py-type.c (convert_field): Use new_reference. Return
12852 gdbpy_ref.
12853 (make_fielditem): Return gdbpy_ref.
12854 (typy_fields): Update.
12855 (typy_getitem): Update.
12856 (field_name): Return gdbpy_ref. Use new_reference.
12857 (typy_iterator_iternext): Update.
12858
ea41325b
TT
128592019-01-03 Tom Tromey <tom@tromey.com>
12860
12861 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
12862
2a3c71d6
TT
128632019-01-03 Tom Tromey <tom@tromey.com>
12864
12865 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
12866 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
12867 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
12868 (pspy_set_frame_filters, pspy_set_frame_unwinders)
12869 (pspy_set_type_printers): Likewise.
12870 * python/py-function.c (fnpy_init): Use gdbpy_ref.
12871 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
12872 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
12873 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
12874 (objfpy_set_type_printers): Likewise.
12875
5c329e6a
TT
128762019-01-03 Tom Tromey <tom@tromey.com>
12877
12878 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
12879 (gdbpy_print_stack): Use gdbpy_err_fetch.
12880 * python/python-internal.h (class gdbpy_err_fetch): New class.
12881 (class gdbpy_enter) <m_error_type, m_error_value,
12882 m_error_traceback>: Remove.
12883 <m_error>: New member.
12884 (gdbpy_exception_to_string): Don't declare.
12885 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
12886 * python/py-value.c (convert_value_from_python): Use
12887 gdbpy_err_fetch.
12888 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
12889 gdbpy_exception_to_string.
12890 (gdbpy_handle_exception): Use gdbpy_err_fetch.
12891 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
12892 gdbpy_err_fetch.
12893
169bb27b
AB
128942019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12895
12896 * linux-nat.c (delete_lwp_cleanup): Delete.
12897 (struct lwp_deleter): New struct.
12898 (lwp_info_up): New typedef.
12899 (linux_nat_target::follow_fork): Delete cleanup, and make use of
12900 lwp_info_up.
12901
a07c8880
AB
129022019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12903
12904 * linux-fork.c (class scoped_switch_fork_info): New class.
12905 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
12906
26089c49
AB
129072019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12908
12909 * valops.c (find_overload_match): Remove use of null_cleanup, and
12910 calls to do_cleanups.
12911
06d3e5b0
AB
129122019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12913
12914 * compile/compile-cplus-types.c
12915 (compile_cplus_instance::decl_name): Handle changes to
12916 cp_func_name.
12917 * cp-support.c (cp_func_name): Update header comment, update
12918 return type.
12919 * cp-support.h (cp_func_name): Update return type in declaration.
12920 * valops.c (find_overload_match): Move temp_func local to top
12921 level of function and change its type. Use temp_func to hold and
12922 delete temporary string obtained from cp_func_name.
12923
66644cd3
AB
129242019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12925
12926 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
12927 gdb::char_vector, remove cleanup, and update uses of `msg`.
12928
592d8c0a
JW
129292019-01-03 Jim Wilson <jimw@sifive.com>
12930
12931 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
12932
c55d06ec
TT
129332019-01-02 Tom Tromey <tom@tromey.com>
12934
12935 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
12936 (tdesc_parse_xml): Remove cleanups.
12937 * target-descriptions.h (make_cleanup_free_target_description):
12938 Don't declare.
12939 (target_desc_deleter): New struct.
12940 (target_desc_up): New typedef.
12941 * target-descriptions.c (target_desc_deleter::operator()): Rename
12942 from free_target_description.
12943 (make_cleanup_free_target_description): Remove.
12944
3a6ae42d
TT
129452019-01-02 Tom Tromey <tom@tromey.com>
12946
12947 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
12948 constructor, destructor.
12949 (linespec_parser): Remove typedef.
12950 (~linespec_parser): Rename from linespec_parser_delete.
12951 (linespec_lex_to_end, linespec_complete_label)
12952 (linespec_complete): Update.
12953 (decode_line_full): Remove cleanups.
12954 (decode_line_1): Update.
12955
61fd3e73
TT
129562019-01-02 Tom Tromey <tom@tromey.com>
12957
12958 * python/python-internal.h (inferior_to_inferior_object): Change
12959 return type.
12960 * python/py-exitedevent.c (create_exited_event_object): Update.
12961 * python/py-inferior.c (inferior_to_inferior_object): Return
12962 gdbpy_ref.
12963 (python_new_inferior, python_inferior_deleted)
12964 (thread_to_thread_object, delete_thread_object)
12965 (build_inferior_list, gdbpy_selected_inferior): Update.
12966 * python/py-infthread.c (create_thread_object): Update. Also fail
12967 if inferior_to_inferior_object fails.
12968
d20172fc
SM
129692019-01-02 Simon Marchi <simon.marchi@ericsson.com>
12970
12971 * inferior.h (class inferior) <displaced_step_state>: New field.
12972 * infrun.h (struct displaced_step_state): Move here from
12973 infrun.c. Initialize fields, add constructor.
12974 <inf>: Remove field.
12975 <reset>: New method.
12976 * infrun.c (struct displaced_step_inferior_state): Move to
12977 infrun.h.
12978 (displaced_step_inferior_states): Remove.
12979 (get_displaced_stepping_state): Adust.
12980 (displaced_step_in_progress_any_inferior): Adjust.
12981 (displaced_step_in_progress_thread): Adjust.
12982 (displaced_step_in_progress): Adjust.
12983 (add_displaced_stepping_state): Remove.
12984 (get_displaced_step_closure_by_addr): Adjust.
12985 (remove_displaced_stepping_state): Remove.
12986 (infrun_inferior_exit): Call displaced_step_state.reset.
12987 (use_displaced_stepping): Don't check for NULL.
12988 (displaced_step_prepare_throw): Call
12989 get_displaced_stepping_state.
12990 (displaced_step_fixup): Don't check for NULL.
12991 (prepare_for_detach): Don't check for NULL.
12992
e3319240
PW
129932019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12994
12995 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
12996 in case of call that did not complete.
12997
5d36dfb9
AU
129982019-01-02 Andrey Utkin <autkin@undo.io>
12999
13000 * symfile.c (find_separate_debug_file): Fix search of debug files for
13001 remote debuggee.
13002
8833fbf0
TT
130032019-01-02 Tom Tromey <tom@tromey.com>
13004
13005 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
13006 indentation.
13007 * python/py-frame.c (frapy_older): Remove cast.
13008 (frapy_newer): Likewise.
13009 * python/py-breakpoint.c (local_setattro): Remove cast.
13010 * python/py-arch.c (archpy_name): Remove local variable.
13011 * python/py-type.c (gdbpy_lookup_type): Remove cast.
13012
4ada3dfd
JB
130132019-01-02 Joel Brobecker <brobecker@adacore.com>
13014
13015 * unittests/basic_string_view/element_access/char/empty.cc:
13016 Fix year range in copyright header.
13017
113b7b81
AB
130182019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
13019
13020 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
13021 Delete.
13022 <operator==>: Update with for removed field.
13023 <hash>: Likewise.
13024 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
13025 <isa_features>: ...this.
13026 <abi_features>: New field.
13027 (riscv_isa_flen): Update comment.
13028 (riscv_abi_xlen): New declaration.
13029 (riscv_abi_flen): New declaration.
13030 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
13031 isa_features.
13032 (riscv_abi_xlen): New function.
13033 (riscv_isa_flen): Update to get answer from isa_features.
13034 (riscv_abi_flen): New function.
13035 (riscv_has_fp_abi): Update to get answer from abi_features.
13036 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
13037 xlen and flen.
13038 (riscv_call_info) <xlen, flen>: Update comment.
13039 (riscv_call_arg_struct): Remove invalid assertions
13040 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
13041 is removed.
13042 (riscv_gdbarch_init): Gather isa features and abi features
13043 separately, ensure both match on the gdbarch when reusing an old
13044 gdbarch. Relax an error check to allow 32-bit abi float to run on
13045 a target with 64-bit float hardware.
13046
b18ca514
PW
130472019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13048
13049 * source.c (search_command_helper): Stop reverse search
13050 when line 1 has been searched.
13051
ec70d8db
PW
130522019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13053
13054 * record-full.c (record_full_base_target::close): Rewrite
13055 record_full_core_buf_list free logic.
13056
5b38f9c1
PW
130572019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13058
13059 * break-catch-syscall.c (print_one_catch_syscall): xfree
13060 the last text.
13061
66d91b39
JB
130622019-01-01 Joel Brobecker <brobecker@adacore.com>
13063
13064 * top.c (print_gdb_version): Update Copyright year in version
13065 message.
13066
42a4f53d
JB
130672019-01-01 Joel Brobecker <brobecker@adacore.com>
13068
13069 Update copyright year range in all GDB files.
13070
7e955d83 130712019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 13072
5bbd631d 13073 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 13074
5bbd631d 13075For older changes see ChangeLog-2018.
c906108c
SS
13076\f
13077Local Variables:
13078mode: change-log
13079left-margin: 8
13080fill-column: 74
13081version-control: never
57da7796 13082coding: utf-8
c906108c 13083End:
5bbd631d 13084