]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Remove initialize_utils
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
12904d37
TT
12019-09-26 Tom Tromey <tom@tromey.com>
2
3 * utils.h (initialize_utils): Don't declare.
4 * top.c (gdb_init): Don't call initialize_utils.
5 * utils.c (initialize_utils): Remove. Move contents...
6 (_initialize_utils): ... here.
7
858f25f0
TT
82019-09-25 Tom Tromey <tom@tromey.com>
9
10 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
11 * utils.h (make_hex_string): Don't declare.
12 * utils.c (make_hex_string): Remove.
13
3d435220
TV
142019-09-24 Tom de Vries <tdevries@suse.de>
15
16 PR gdb/23815
17 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
18 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
19
ddd44b70
DD
202019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
21
22 * NEWS: Mention new simulator port for PRU.
23
f945dedf
CB
242019-09-23 Christian Biesinger <cbiesinger@google.com>
25
26 * ada-exp.y (write_object_remaining): Update.
27 * ada-lang.c (ada_decode): Return a std::string instead of a char*
28 and eliminate the static buffer.
29 (ada_decode_symbol): Update.
30 (ada_la_decode): Update.
31 (ada_sniff_from_mangled_name): Update.
32 (is_valid_name_for_wild_match): Update.
33 (ada_lookup_name_info::matches): Update and simplify.
34 (name_matches_regex): Update.
35 (ada_add_global_exceptions): Update.
36 * ada-lang.h (ada_decode): Update signature.
37 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
38 * dwarf-index-write.c (debug_names::insert): Update.
39
7ab78ccb
SM
402019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
41
42 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
43 formatting.
44
9252448b
SM
452019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
46
47 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
48 Change "nonzero" to "true" in documentation.
49
626ca2c0
CB
502019-09-20 Christian Biesinger <cbiesinger@google.com>
51
52 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
53 (_initialize_darwin_solib): Don't set
54 darwin_so_ops.lookup_lib_global_symbol.
55 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
56 set_gdbarch_iterate_over_objfiles_in_search_order.
57 (elf_lookup_lib_symbol): Rename to...
58 (svr4_iterate_over_objfiles_in_search_order): this, and update
59 to iterate semantics.
60 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
61 * solib.c (solib_global_lookup): Remove.
62 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
63 (solib_global_lookup): Remove.
64 * symtab.c (lookup_global_or_static_symbol): Remove call to
65 solib_global_lookup.
66
5a3a0d63
JB
672019-09-20 Joel Brobecker <brobecker@adacore.com>
68
69 * NEWS: Move entries about default MI version now being
70 version 3, and about the GDB/MI fix for multi-location
71 breakpoints to the "since GDB 8.3" section.
72
ffea1427
JB
732019-09-20 Joel Brobecker <brobecker@adacore.com>
74
75 GDB 8.3.1 released.
76
abf516c6
UW
772019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
78
79 * NEWS: Mention that Cell/B.E. debugging support was removed.
80 * MAINTAINERS: Remove spu target.
81
82 * config/djgpp/fnchange.lst: Remove entries for removed files.
83
84 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
85 spu-multiarch.o, and spu-tdep.o.
86 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
87 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
88 spu-multiarch.c, and spu-tdep.c.
89 * spu-linux-nat.c: Remove file.
90 * spu-multiarch.c: Remove file.
91 * spu-tdep.c: Remove file.
92 * spu-tdep.h: Remove file.
93 * solib-spu.c: Remove file.
94 * solib-spu.h: Remove file.
95
96 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
97 * configure.nat (spu-linux): Remove.
98 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
99 solib-multiarch.o from gdb_target_obs.
100 (spu*-*-*): Remove.
101
102 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
103 feature flag.
104 (ppc_linux_no_features): Update.
105 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
106 Cell/B.E. support.
107 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
108 (tdesc_powerpc_cell64l): Likewise.
109 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
110 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
111 Cell/B.E. support.
112 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
113 Do not include "features/rs6000/powerpc-cell32l.c" or
114 "features/rs6000/powerpc-cell64l.c".
115 (ppc_linux_spu_section): Remove.
116 (ppc_linux_core_read_description): Remove Cell/B.E. support.
117 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
118 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
119 (ppc_linux_spe_context_lookup): Remove.
120 (ppc_linux_spe_context_inferior_created): Remove.
121 (ppc_linux_spe_context_solib_loaded): Remove.
122 (ppc_linux_spe_context_solib_unloaded): Remove.
123 (ppc_linux_spe_context): Remove.
124 (struct ppu2spu_cache): Remove.
125 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
126 (struct ppu2spu_data): Remove.
127 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
128 ppu2spu_unwind): Remove.
129 (ppc_linux_init_abi): Remove Cell/B.E. support.
130 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
131
132 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
133 (rs6000/powerpc-cell64l-expedite): Likewise
134 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
135 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
136 rs6000/powerpc-cell64l.xml.
137 * features/rs6000/powerpc-cell32l.xml: Remove.
138 * features/rs6000/powerpc-cell64l.xml: Likewise.
139 * features/rs6000/powerpc-cell32l.c: Remove generated file.
140 * features/rs6000/powerpc-cell64l.c: Likewise.
141 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
142 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
143 * regformats/reg-spu.dat: Remove.
144
145 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
146 * corelow.c (struct spuid_list): Remove.
147 (add_to_spuid_list): Remove.
148 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
149 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
150 (remote_protocol_features): Remove associated entries.
151 (_initialize_remote): No longer initialize them.
152 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
153 * linux-nat.c (SPUFS_MAGIC): Remove.
154 (linux_proc_xfer_spu): Remove.
155 (spu_enumerate_spu_ids): Remove.
156 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
157 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
158 (linux_make_corefile_notes): No longer call it.
159
160 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
161 (cooked_write_test): Likewise.
162
78e8cb91
TT
1632019-09-20 Tom Tromey <tom@tromey.com>
164
165 * NEWS: Mention case-sensitivity of TUI commands.
166 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
167 (tui_set_win_height_command, parse_scrolling_args): Likewise.
168 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
169
f074b67e
TT
1702019-09-20 Tom Tromey <tom@tromey.com>
171
172 * tui/tui-source.c (tui_source_window::set_contents): Use
173 make_unique_xstrdup.
174 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
175 make_unique_xstrdup.
176
63c4bf19
TT
1772019-09-20 Tom Tromey <tom@tromey.com>
178
179 * tui/tui-data.c: Remove separator comments.
180 * tui/tui-layout.c: Remove separator comments.
181 * tui/tui-win.c: Remove separator comments.
182 * tui/tui-wingeneral.c: Remove separator comments.
183
43df9b2f
TT
1842019-09-20 Tom Tromey <tom@tromey.com>
185
186 * tui/tui.h (strcat_to_buf): Don't declare.
187 * tui/tui.c (strcat_to_buf): Remove.
188
7226433c
TT
1892019-09-20 Tom Tromey <tom@tromey.com>
190
191 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
192 from "fullname".
193 * tui/tui-source.c (tui_source_window::set_contents)
194 (tui_source_window::location_matches_p)
195 (tui_source_window::maybe_update): Update.
196
80df3337
TT
1972019-09-20 Tom Tromey <tom@tromey.com>
198
199 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
200 Update.
201 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
202 prefix.
203 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
204 (tui_data_window::line_from_reg_element_no)
205 (tui_data_window::first_reg_element_no_inline)
206 (tui_data_window::show_registers)
207 (tui_data_window::show_register_group)
208 (tui_data_window::display_registers_from)
209 (tui_data_window::display_registers_from_line)
210 (tui_data_window::first_data_item_displayed)
211 (tui_data_window::delete_data_content_windows)
212 (tui_data_window::erase_data_content)
213 (tui_data_window::do_scroll_vertical)
214 (tui_data_window::refresh_window)
215 (tui_data_window::check_register_values): Update.
216
9923f347
TT
2172019-09-20 Tom Tromey <tom@tromey.com>
218
219 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
220 (struct tui_locator_window) <full_name, proc_name>: Now
221 std::string.
222 * tui/tui-stack.c (tui_locator_window::make_status_line)
223 (tui_locator_window::set_locator_fullname)
224 (tui_locator_window::set_locator_info): Update.
225 * tui/tui-source.c (tui_source_window::set_contents)
226 (tui_source_window::showing_source_p): Update.
227
b76251ab
TT
2282019-09-20 Tom Tromey <tom@tromey.com>
229
230 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
231 Don't call tui_locator_win_info_ptr.
232
0891be08
TT
2332019-09-20 Tom Tromey <tom@tromey.com>
234
235 * tui/tui-win.c (tui_resize_all): Don't call refresh.
236
1b935acf
TT
2372019-09-20 Tom Tromey <tom@tromey.com>
238
239 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
240 height for locator.
241 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
242 * tui/tui-layout.c (show_source_disasm_command, show_data)
243 (show_source_or_disasm_and_command): Use 1 as height for locator.
244
9abd8a65
TT
2452019-09-20 Tom Tromey <tom@tromey.com>
246
247 * tui/tui.c (tui_enable): Update.
248 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
249 Update.
250 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
251 Update.
252 * tui/tui-data.c (win_resized): Now bool.
253 (tui_win_resized): Return bool.
254 (tui_set_win_resized_to): Accept a bool.
255
b5457826
TT
2562019-09-20 Tom Tromey <tom@tromey.com>
257
258 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
259 Change type of "refresh_values_only".
260 * tui/tui-regs.c (tui_data_window::show_register_group): Change
261 type of "refresh_values_only".
262
6b915f7d
TT
2632019-09-20 Tom Tromey <tom@tromey.com>
264
265 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
266 std::string.
267 (tui_disassemble): Add "pos" parameter.
268 (tui_disasm_window::set_contents): Simplify.
269
2ad52f6f
TT
2702019-09-20 Tom Tromey <tom@tromey.com>
271
272 * tui/tui-winsource.h (struct tui_source_window_base)
273 <show_source_content>: Now private.
274 * tui/tui-winsource.c
275 (tui_source_window_base::show_source_content): Don't handle empty
276 content case.
277
b3b1bde6
TT
2782019-09-20 Tom Tromey <tom@tromey.com>
279
280 * tui/tui-layout.c (show_source_disasm_command)
281 (show_source_or_disasm_and_command): Don't call
282 show_source_content.
283
71a25ed2
TT
2842019-09-20 Tom Tromey <tom@tromey.com>
285
286 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
287 Declare.
288 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
289 from tui_make_status_line.
290 (tui_locator_window::rerender): Update.
291
f8532154
TT
2922019-09-20 Tom Tromey <tom@tromey.com>
293
294 * tui/tui-stack.c (tui_make_status_line): Return std::string.
295 (tui_locator_window::rerender): Update.
296
2d81b349
TT
2972019-09-20 Tom Tromey <tom@tromey.com>
298
299 * tui/tui-winsource.h (struct tui_source_window_base)
300 <~tui_source_window_base>: Don't declare.
301 <fullname>: Remove.
302 * tui/tui-winsource.c (~tui_source_window_base): Remove.
303 * tui/tui-source.h (struct tui_source_window) <fullname>: New
304 member.
305 * tui/tui-source.c (tui_source_window::set_contents): Update.
306 (tui_source_window::location_matches_p)
307 (tui_source_window::maybe_update): Update.
308
f14bec58
TT
3092019-09-20 Tom Tromey <tom@tromey.com>
310
311 * tui/tui-winsource.h (~tui_source_element): Remove.
312 (tui_source_element): Update.
313 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
314 * tui/tui-winsource.c (tui_show_source_line): Update.
315 * tui/tui-source.c (tui_source_window::set_contents): Update.
316 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
317
78d5933a
TT
3182019-09-20 Tom Tromey <tom@tromey.com>
319
320 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
321 declare.
322 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
323 tui_clear_source_windows_detail.
324 * tui/tui-winsource.h (struct tui_source_window_base)
325 <clear_detail>: Don't declare.
326 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
327 Remove.
328 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
329
d4207696
TT
3302019-09-20 Tom Tromey <tromey@adacore.com>
331
332 PR ada/24919:
333 * block.c (contained_in): Fix final return value.
334
00f93c44
AM
3352019-09-20 Alan Modra <amodra@gmail.com>
336
337 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
338 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
339 (read_indirect_string_from_dwz): Use bfd accessor.
340 * dwarf2read.h (struct dwz_file <filename>): Likewise.
341 * machoread.c (macho_symfile_read_all_oso): Likewise.
342 * solib.c (solib_bfd_open): Likewise.
343
e4153ae6
CB
3442019-09-19 Christian Biesinger <cbiesinger@google.com>
345
346 * eval.c: Move declaration of overload_resolution to...
347 * value.h: ...here.
348
c7ae7675
CB
3492019-09-19 Christian Biesinger <cbiesinger@google.com>
350
351 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
352 * arm-linux-tdep.c: Likewise.
353 * arm-nbsd-nat.c: Likewise.
354 * arm-tdep.h: Declare arm_apcs_32.
355 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
356
e86f08d2
CB
3572019-09-19 Christian Biesinger <cbiesinger@google.com>
358
359 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
360 * dwarf2read.h: Declare dwarf_always_disassemble.
361
f64e2f40
TV
3622019-09-19 Tom de Vries <tdevries@suse.de>
363
364 PR gdb/25009
365 * source-cache.c (source_cache::ensure): Catch exception thrown during
366 construction of the highlighter.
367
fd361982
AM
3682019-09-18 Alan Modra <amodra@gmail.com>
369
370 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
371 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
372 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
373 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
374 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
375 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
376 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
377 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
378 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
379 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
380 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
381 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
382 * solib-spu.c, * solib-svr4.c, * solib-target.c,
383 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
384 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
385 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
386 * mi/mi-interp.c: Update throughout for bfd section macro and
387 function changes.
388 * gcore (gcore_create_callback): Use bfd_set_section_lma.
389 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
390
11061048
TT
3912019-09-18 Tom Tromey <tom@tromey.com>
392
393 * NEWS: Add entry.
394 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
395 call rl_initialize.
396 (tui_enable): Do not call rl_initialize.
397
7a27b85f
CG
3982019-09-18 Christian Groessler <chris@groessler.org>
399
400 * alpha-linux-nat.c: Include gdbarch.h.
401
f64eea3a
SM
4022019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
403
404 * ui-file.c: Include cli/cli-style.h.
405 (term_cli_styling): Remove cli_styling declaration.
406
e6f7f6d1
AM
4072019-09-18 Alan Modra <amodra@gmail.com>
408
409 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
410 to bfd_asymbol_section.
411
1d38e9d1
AM
4122019-09-18 Alan Modra <amodra@gmail.com>
413
414 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
415 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
416 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
417
90d92a63
AM
4182019-09-18 Alan Modra <amodra@gmail.com>
419
420 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
421 * spu-linux-nat.c (spu_bfd_open): Likewise.
422
a3d181d2
CB
4232019-09-18 Christian Biesinger <cbiesinger@google.com>
424
425 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
426 to bool to match definition in dwarf2read.c.
427
491144b5
CB
4282019-09-17 Christian Biesinger <cbiesinger@google.com>
429
430 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
431 (print_signatures): Likewise.
432 (trust_pad_over_xvs): Likewise.
433 * arch/aarch64-insn.c (aarch64_debug): Likewise.
434 * arch/aarch64-insn.h (aarch64_debug): Likewise.
435 * arm-linux-nat.c (arm_apcs_32): Likewise.
436 * arm-linux-tdep.c (arm_apcs_32): Likewise.
437 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
438 * arm-tdep.c (arm_debug): Likewise.
439 (arm_apcs_32): Likewise.
440 * auto-load.c (debug_auto_load): Likewise.
441 (auto_load_gdb_scripts): Likewise.
442 (global_auto_load): Likewise.
443 (auto_load_local_gdbinit): Likewise.
444 (auto_load_local_gdbinit_loaded): Likewise.
445 * auto-load.h (global_auto_load): Likewise.
446 (auto_load_local_gdbinit): Likewise.
447 (auto_load_local_gdbinit_loaded): Likewise.
448 * breakpoint.c (disconnected_dprintf): Likewise.
449 (breakpoint_proceeded): Likewise.
450 (automatic_hardware_breakpoints): Likewise.
451 (always_inserted_mode): Likewise.
452 (target_exact_watchpoints): Likewise.
453 (_initialize_breakpoint): Update.
454 * breakpoint.h (target_exact_watchpoints): Change to bool.
455 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
456 * cli/cli-cmds.c (trace_commands): Likewise.
457 * cli/cli-cmds.h (trace_commands): Likewise.
458 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
459 to bool*.
460 * cli/cli-logging.c (logging_overwrite): Change to bool.
461 (logging_redirect): Likewise.
462 (debug_redirect): Likewise.
463 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
464 (struct boolean_option_def) <get_var_address_cb_>: Change return type
465 to bool.
466 <boolean_option_def>: Update.
467 (struct flag_option_def): Change default type of Context to bool
468 from int.
469 <flag_option_def>: Change return type of var_address_cb_ to bool*.
470 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
471 (get_setshow_command_value_string): Likewise.
472 * cli/cli-style.c (cli_styling): Change to bool.
473 (source_styling): Likewise.
474 * cli/cli-style.h (source_styling): Likewise.
475 (cli_styling): Likewise.
476 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
477 to bool.
478 * command.h (var_types): Update comment.
479 (add_setshow_boolean_cmd): Change int* var argument to bool*.
480 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
481 bool.
482 (debug_compile_cplus_scopes): Likewise.
483 * compile/compile-internal.h (compile_debug): Likewise.
484 * compile/compile.c (compile_debug): Likewise.
485 (struct compile_options) <raw>: Likewise.
486 * cp-support.c (catch_demangler_crashes): Likewise.
487 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
488 (usr_cmd_cris_dwarf2_cfi): Likewise.
489 * csky-tdep.c (csky_debug): Likewise.
490 * darwin-nat.c (enable_mach_exceptions): Likewise.
491 * dcache.c (dcache_enabled_p): Likewise.
492 * defs.h (info_verbose): Likewise.
493 * demangle.c (demangle): Likewise.
494 (asm_demangle): Likewise.
495 * dwarf-index-cache.c (debug_index_cache): Likewise.
496 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
497 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
498 * dwarf2read.c (check_physname): Likewise.
499 (use_deprecated_index_sections): Likewise.
500 (dwarf_always_disassemble): Likewise.
501 * eval.c (overload_resolution): Likewise.
502 * event-top.c (set_editing_cmd_var): Likewise.
503 (exec_done_display_p): Likewise.
504 * event-top.h (set_editing_cmd_var): Likewise.
505 (exec_done_display_p): Likewise.
506 * exec.c (write_files): Likewise.
507 * fbsd-nat.c (debug_fbsd_lwp): Likewise
508 (debug_fbsd_nat): Likewise.
509 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
510 Likewise.
511 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
512 <backtrace_past_entry> Likewise.
513 * gdb-demangle.h (demangle): Likewise.
514 (asm_demangle): Likewise.
515 * gdb_bfd.c (bfd_sharing): Likewise.
516 * gdbcore.h (write_files): Likewise.
517 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
518 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
519 * gdbthread.h (print_thread_events): Likewise.
520 * gdbtypes.c (opaque_type_resolution): Likewise.
521 (strict_type_checking): Likewise.
522 * gnu-nat.c (gnu_debug_flag): Likewise.
523 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
524 * guile/scm-param.c (pascm_variable): Add boolval.
525 (add_setshow_generic): Update.
526 (pascm_param_value): Update.
527 (pascm_set_param_value_x): Update.
528 * hppa-tdep.c (hppa_debug): Change to bool..
529 * infcall.c (may_call_functions_p): Likewise.
530 (coerce_float_to_double_p): Likewise.
531 (unwind_on_signal_p): Likewise.
532 (unwind_on_terminating_exception_p): Likewise.
533 * infcmd.c (startup_with_shell): Likewise.
534 * inferior.c (print_inferior_events): Likewise.
535 * inferior.h (startup_with_shell): Likewise.
536 (print_inferior_events): Likewise.
537 * infrun.c (step_stop_if_no_debug): Likewise.
538 (detach_fork): Likewise.
539 (debug_displaced): Likewise.
540 (disable_randomization): Likewise.
541 (non_stop): Likewise.
542 (non_stop_1): Likewise.
543 (observer_mode): Likewise.
544 (observer_mode_1): Likewise.
545 (set_observer_mode): Update.
546 (sched_multi): Change to bool.
547 * infrun.h (debug_displaced): Likewise.
548 (sched_multi): Likewise.
549 (step_stop_if_no_debug): Likewise.
550 (non_stop): Likewise.
551 (disable_randomization): Likewise.
552 * linux-tdep.c (use_coredump_filter): Likewise.
553 (dump_excluded_mappings): Likewise.
554 * linux-thread-db.c (auto_load_thread_db): Likewise.
555 (check_thread_db_on_load): Likewise.
556 * main.c (captured_main_1): Update.
557 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
558 xx2_opt, boolean_opt>: Change to bool.
559 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
560 * maint.c (maintenance_profile_p): Likewise.
561 (per_command_time): Likewise.
562 (per_command_space): Likewise.
563 (per_command_symtab): Likewise.
564 * memattr.c (inaccessible_by_default): Likewise.
565 * mi/mi-main.c (mi_async): Likewise.
566 (mi_async_1): Likewise.
567 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
568 * nat/fork-inferior.h (startup_with_shell): Likewise.
569 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
570 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
571 * nios2-tdep.c (nios2_debug): Likewise.
572 * or1k-tdep.c (or1k_debug): Likewise.
573 * parse.c (parser_debug): Likewise.
574 * parser-defs.h (parser_debug): Likewise.
575 * printcmd.c (print_symbol_filename): Likewise.
576 * proc-api.c (procfs_trace): Likewise.
577 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
578 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
579 (set_parameter_value): Update.
580 (add_setshow_generic): Update.
581 * python/py-value.c (copy_py_bool_obj): Change argument from int*
582 to bool*.
583 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
584 int*.
585 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
586 * record-btrace.c (record_btrace_target::store_registers): Update.
587 * record-full.c (record_full_memory_query): Change to bool.
588 (record_full_stop_at_limit): Likewise.
589 * record-full.h (record_full_memory_query): Likewise.
590 * remote-notif.c (notif_debug): Likewise.
591 * remote-notif.h (notif_debug): Likewise.
592 * remote.c (use_range_stepping): Likewise.
593 (interrupt_on_connect): Likewise.
594 (remote_break): Likewise.
595 * ser-tcp.c (tcp_auto_retry): Likewise.
596 * ser-unix.c (serial_hwflow): Likewise.
597 * skip.c (debug_skip): Likewise.
598 * solib-aix.c (solib_aix_debug): Likewise.
599 * spu-tdep.c (spu_stop_on_load_p): Likewise.
600 (spu_auto_flush_cache_p): Likewise.
601 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
602 Likewise.
603 (struct info_print_options) <quiet>: Likewise.
604 * symfile-debug.c (debug_symfile): Likewise.
605 * symfile.c (auto_solib_add): Likewise.
606 (separate_debug_file_debug): Likewise.
607 * symfile.h (auto_solib_add): Likewise.
608 (separate_debug_file_debug): Likewise.
609 * symtab.c (basenames_may_differ): Likewise.
610 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
611 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
612 (struct info_types_options) <quiet>: Likewise.
613 * symtab.h (demangle): Likewise.
614 (basenames_may_differ): Likewise.
615 * target-dcache.c (stack_cache_enabled_1): Likewise.
616 (code_cache_enabled_1): Likewise.
617 * target.c (trust_readonly): Likewise.
618 (may_write_registers): Likewise.
619 (may_write_memory): Likewise.
620 (may_insert_breakpoints): Likewise.
621 (may_insert_tracepoints): Likewise.
622 (may_insert_fast_tracepoints): Likewise.
623 (may_stop): Likewise.
624 (auto_connect_native_target): Likewise.
625 (target_stop_and_wait): Update.
626 (target_async_permitted): Change to bool.
627 (target_async_permitted_1): Likewise.
628 (may_write_registers_1): Likewise.
629 (may_write_memory_1): Likewise.
630 (may_insert_breakpoints_1): Likewise.
631 (may_insert_tracepoints_1): Likewise.
632 (may_insert_fast_tracepoints_1): Likewise.
633 (may_stop_1): Likewise.
634 * target.h (target_async_permitted): Likewise.
635 (may_write_registers): Likewise.
636 (may_write_memory): Likewise.
637 (may_insert_breakpoints): Likewise.
638 (may_insert_tracepoints): Likewise.
639 (may_insert_fast_tracepoints): Likewise.
640 (may_stop): Likewise.
641 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
642 (make_thread_apply_all_options_def_group): Change argument from int*
643 to bool*.
644 (thread_apply_all_command): Update.
645 (print_thread_events): Change to bool.
646 * top.c (confirm): Likewise.
647 (command_editing_p): Likewise.
648 (history_expansion_p): Likewise.
649 (write_history_p): Likewise.
650 (info_verbose): Likewise.
651 * top.h (confirm): Likewise.
652 (history_expansion_p): Likewise.
653 * tracepoint.c (disconnected_tracing): Likewise.
654 (circular_trace_buffer): Likewise.
655 * typeprint.c (print_methods): Likewise.
656 (print_typedefs): Likewise.
657 * utils.c (debug_timestamp): Likewise.
658 (sevenbit_strings): Likewise.
659 (pagination_enabled): Likewise.
660 * utils.h (sevenbit_strings): Likewise.
661 (pagination_enabled): Likewise.
662 * valops.c (overload_resolution): Likewise.
663 * valprint.h (struct value_print_options) <prettyformat_arrays,
664 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
665 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
666 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
667 Likewise.
668 * windows-nat.c (new_console): Likewise.
669 (cygwin_exceptions): Likewise.
670 (new_group): Likewise.
671 (debug_exec): Likewise.
672 (debug_events): Likewise.
673 (debug_memory): Likewise.
674 (debug_exceptions): Likewise.
675 (useshell): Likewise.
676 * windows-tdep.c (maint_display_all_tib): Likewise.
677 * xml-support.c (debug_xml): Likewise.
678
f1b620e9
MG
6792019-09-17 Mike Gulick <mgulick@mathworks.com>
680
681 * source.c (prepare_path_for_appending): New function.
682 (openp): Make use of new function.
683 (find_and_open_source): Search for the compilation directory and
684 source file as a relative path beneath the directory search path.
685
67f3ed6a
AB
6862019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
687
688 * source-cache.c (source_cache::get_line_charpos): Catch
689 exceptions and return false, this matches the behaviour documented
690 in the header file.
691
74332189
JB
6922019-09-17 Joel Brobecker <brobecker@adacore.com>
693
694 * ada-tasks.c (info_task): Remove quoting of the task's name.
695
f2f24aa9
CB
6962019-09-16 Christian Biesinger <cbiesinger@google.com>
697
698 * symfile.c (auto_solib_add): Replace comment with a reference
699 to the header file.
700
6a062a93
CB
7012019-09-14 Christian Biesinger <cbiesinger@google.com>
702
703 * NEWS: Mention that gdb can now be compiled with Python 3
704 on Windows.
705
ec6c8338
AB
7062019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
707
708 * maint.c (maint_print_section_data::maint_print_section_data):
709 Force use of 'float log10 (float)' by casting the argument to
710 float.
711
aa17805f
AB
7122019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
713
714 * maint.c: Add 'cmath' include.
715 (struct maint_print_section_data): New structure.
716 (print_section_index): New function.
717 (print_bfd_section_info): Add header comment, small whitespace
718 cleanup, and update to call new print_section_index function.
719 (print_objfile_section_info): Likewise.
720 (maint_obj_section_from_bfd_section): New function.
721 (print_bfd_section_info_maybe_relocated): New function.
722 (maintenance_info_sections): Add header comment, always use
723 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
724
3dd9bb46
AB
7252019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
726
727 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
728 inner scope, add check that the objfile has psymtabs before
729 checking psymtabs_addrmap.
730 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
731
4993045d
PW
7322019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
733
734 * NEWS: Announce that Ada task names are now shown at more places,
735 and between quotes (except in info task output).
736 * gdb/ada-tasks.c (task_to_str): New function.
737 (display_current_task_id): Call task_to_str.
738 (task_command_1): Likewise.
739 (print_ada_task_info): In non-mi mode, Properly align headers and data
740 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
741
7a289707
RO
7422019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
743
744 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
745 prstatus.pr_lwp.pr_info instead of making it up.
746
f2aec7f6
CB
7472019-09-11 Christian Biesinger <cbiesinger@google.com>
748
749 * auto-load.c (auto_load_expand_dir_vars): Update.
750 * defs.h (gdb_datadir): Change to std::string.
751 (python_libdir): Likewise.
752 (relocate_gdb_directory): Change return type to std::string.
753 * guile/guile.c (gdbscm_data_directory): Update.
754 (initialize_scheme_side): Update.
755 * jit.c (jit_reader_dir): Change to std::string.
756 (jit_reader_load_command): Update.
757 * main.c (gdb_datadir): Change to std::string.
758 (python_libdir): Likewise.
759 (set_gdb_data_directory): Update.
760 (relocate_path): Change to return std::string.
761 (relocate_gdb_directory): Change to return std::string.
762 (relocate_gdbinit_path_maybe_in_datadir): Update.
763 (captured_main_1): Update.
764 * python/python.c (do_start_initialization): Update.
765 * top.c (show_gdb_datadir): Update.
766 * xml-syscall.c (xml_init_syscalls_info): Update.
767 (init_syscalls_info): Update.
768
9224a013
CB
7692019-09-11 Christian Biesinger <cbiesinger@google.com>
770
771 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
772 out of get_init_files.
773 (get_init_files): Update.
774
f48cd836
CB
7752019-09-11 Christian Biesinger <cbiesinger@google.com>
776
777 * main.c (get_init_files): Change to use std::string.
778 (captured_main_1): Update.
779 (print_gdb_help): Update.
780
9cab7ecd
AT
7812019-09-11 Ali Tamur <tamur@google.com>
782
783 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
784 implementation.
785
67547d89
CB
7862019-09-11 Christian Biesinger <cbiesinger@google.com>
787
788 * dbxread.c (read_dbx_symtab): Update.
789 * dwarf2read.c (load_partial_dies): Update.
790 * mdebugread.c (parse_partial_symbols): Update.
791 (handle_psymbol_enumerators): Update.
792 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
793 * psymtab.c (add_psymbol_to_bcache): Likewise.
794 (add_psymbol_to_list): Likewise.
795 * symtab.c (symbol_set_names): Likewise.
796 * symtab.h (symbol_set_names): Likewise.
797 * xcoffread.c (scan_xcoff_symtab): Update.
798
64b2d4a0
TT
7992019-09-11 Tom Tromey <tom@tromey.com>
800
801 * symfile-mem.c (symbol_file_add_from_memory): Use
802 bfd_set_filename.
803 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
804 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
805
3b00ef10
TT
8062019-09-10 Tom Tromey <tromey@adacore.com>
807
808 * dwarf-index-write.c (write_psymbols): Extend error message.
809 (debug_names::insert): Add Ada code.
810 (debug_names::write_psymbols): Remove Ada check.
811 (debug_names) <m_string_obstack>: New member.
812 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
813 (gdb_index_symbol_name_matcher::matches): Remove.
814 (mapped_index_base::find_name_components_bounds): Add "lang"
815 parameter.
816 (mapped_index_base::build_name_components): Also split names
817 according to Ada syntax.
818 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
819 type of "match_callback".
820 (check_match, check_find_bounds_finds)
821 (dw2_expand_symtabs_matching): Update.
822 (dw2_debug_names_iterator): Add new constructor.
823 (dw2_debug_names_map_matching_symbols): New function.
824 (dw2_debug_names_expand_symtabs_matching): Update.
825 (dwarf2_debug_names_functions): Use
826 dw2_debug_names_map_matching_symbols.
827
aa391654
TT
8282019-09-10 Tom Tromey <tromey@adacore.com>
829
830 * dwarf2read.c (dw2_get_file_names_reader): Add the
831 CU's file name to the results.
832
b054970d
TT
8332019-09-10 Tom Tromey <tromey@adacore.com>
834
835 * ada-lang.c (add_nonlocal_symbols): Combine calls to
836 map_matching_symbols. Update.
837 * dwarf2read.c (dw2_map_matching_symbols): Update.
838 * psymtab.c (match_partial_symbol): Change type; update.
839 (psym_map_matching_symbols): Likewise.
840 * symfile-debug.c (debug_qf_map_matching_symbols): Change
841 type; update.
842 * symfile.h (struct quick_symbol_functions)
843 <map_matching_symbols>: Change "name" to be a lookup_name_info.
844 Remove "match".
845
6a3dbf1b
TT
8462019-09-10 Tom Tromey <tromey@adacore.com>
847
848 * psymtab.c (map_block): Remove.
849 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
850 * symtab.c (iterate_over_symbols_terminated): New function.
851 * symtab.c (iterate_over_symbols_terminated): Declare.
852
6969f124
TT
8532019-09-10 Tom Tromey <tromey@adacore.com>
854
855 * ada-lang.c (ada_iterate_over_symbols): Return bool.
856 * language.h (struct language_defn) <la_iterate_over_symbols>:
857 Return bool.
858 * symtab.c (iterate_over_symbols): Return bool.
859 * symtab.h (iterate_over_symbols): Return bool.
860
199b4314
TT
8612019-09-10 Tom Tromey <tromey@adacore.com>
862
863 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
864 (add_nonlocal_symbols): Update.
865 * dwarf2read.c (dw2_map_matching_symbols): Change type.
866 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
867 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
868 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
869 Change type of "callback". Remove "data".
870
a084a2a6
AT
871
8722019-09-09 Ali Tamur <tamur@google.com>
873
874 * dwarf2read.c (comp_unit_head): Update comment.
875 (dwarf2_dwo_name): New function declaration.
876 (dwarf_unit_type_name): New function declaration.
877 (read_comp_unit_head): Add support for new compilation units,
878 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
879 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
880 (currently named as "signature") in their header. Also clarify error
881 messages.
882 (lookup_dwo_id): New function. Returns the dwo id of the given
883 compile unit.
884 (lookup_dwo_unit): Use the new lookup_dwo_id function.
885 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
886 functions.
887 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
888 (dwarf2_dwo_name): Get the dwo name if present.
889 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
890 purposes.
891
25a2915e
TT
8922019-09-09 Tom Tromey <tom@tromey.com>
893
894 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
895
e4df0874
PW
8962019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
897
898 * python/python.c (do_start_initialization): Make progname_copy static,
899 to avoid a leak report.
900
8634b462
TT
9012019-09-08 Tom Tromey <tom@tromey.com>
902
903 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
904
c7f839cb
SM
9052019-09-07 Simon Marchi <simon.marchi@efficios.com>
906
907 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
908 Change type to gdb::optional<block_enum>.
909 (dw2_symtab_iter_init): Change block_index parameter type
910 to gdb::optional<block_enum>.
911 (dw2_lookup_symbol): Change block_index parameter
912 type to block_enum.c
913 (dw2_debug_names_lookup_symbol): Likewise.
914 * psymtab.c (psym_lookup_symbol): Likewise.
915 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
916 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
917 Likewise.
918
ead0e69a
CB
9192019-09-06 Christian Biesinger <cbiesinger@google.com>
920
921 * defs.h (relocate_gdb_directory): Change int to bool in
922 signature and rename flag to relocatable.
923 * main.c (relocate_path): Likewise.
924 (relocate_gdb_directory): Likewise.
925
b16c44de
AM
9262019-09-06 Alan Modra <amodra@gmail.com>
927
928 * coffread.c (coff_symfile_read): Constify filename variable.
929 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
930 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
931 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
932 * solib.c (reload_shared_libraries_1): Likewise.
933 * symfile.c (reread_symbols): Likewise.
934 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
935 * solib-darwin.c (darwin_bfd_open): Likewise.
936 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
937
06ff036e
AB
9382019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
939
940 * psymtab.c (print_partial_symbols): Handle missing domain_enum
941 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
942
4e962e74
TT
9432019-09-03 Tom Tromey <tromey@adacore.com>
944
945 * ada-valprint.c (ada_val_print_num): Don't recurse for range
946 types.
947 (has_negatives): Unbias a range type bound.
948 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
949 * gdbtypes.c (operator==): Handle new field.
950 (create_range_type): Add "bias" parameter.
951 (create_static_range_type, resolve_dynamic_range): Update.
952 * gdbtypes.h (struct range_bounds) <bias>: New member.
953 (create_range_type): Add bias parameter.
954 * printcmd.c (print_scalar_formatted): Unbias range types.
955 * value.c (unpack_long): Unbias range types.
956 (pack_long): Bias range types.
957
d90b8f26
AH
9582019-09-02 Alan Hayward <alan.hayward@arm.com>
959
960 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
961 probe arguments.
962
fe01123e
AH
9632019-09-02 Alan Hayward <alan.hayward@arm.com>
964
965 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
966 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
967 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
968 (compile_probe_arg): Likewise.
969 * probe.h (get_argument_count): Likewise.
970 * solib-svr4.c (solib_event_probe_action): Likewise.
971 * stap-probe.c (stap_probe::get_argument_count): Likewise.
972
e661ef01
AH
9732019-09-02 Alan Hayward <alan.hayward@arm.com>
974
975 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
976 code to here...
977 (svr4_create_solib_event_breakpoints): ...from here.
978
47a536d9
SDJ
9792019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
980
981 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
982 suffix from warning message.
983
d6a00eba
TT
9842019-08-30 Tom Tromey <tom@tromey.com>
985
986 * tui/tui-winsource.h (struct tui_source_window_base)
987 <refresh_all>: Don't declare.
988 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
989 Remove.
990 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
991 tui_show_locator_content.
992 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
993 declare.
994 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
995 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
996 declare.
997
55b2657b
TT
9982019-08-30 Tom Tromey <tom@tromey.com>
999
1000 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
1001
12a8555a
TT
10022019-08-30 Tom Tromey <tom@tromey.com>
1003
1004 * tui/tui-stack.c (_initialize_tui_stack): Move later.
1005 Remove unnecessary forward declarations.
1006
900ac242
TT
10072019-08-30 Tom Tromey <tom@tromey.com>
1008
1009 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
1010 rerender.
1011 (tui_update_locator_fullname, tui_show_frame_info): Don't call
1012 tui_show_locator_content.
1013
99ab33fb
TT
10142019-08-30 Tom Tromey <tom@tromey.com>
1015
1016 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
1017 (tui_locator_window::rerender): Rewrite using body of previous
1018 tui_show_locator_content.
1019
e594a5d1
TT
10202019-08-30 Tom Tromey <tom@tromey.com>
1021
1022 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
1023 set_locator_fullname>: New methods.
1024 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1025 Rename from tui_set_locator_fullname.
1026 (tui_locator_window::set_locator_info): Rename from
1027 tui_set_locator_info. Return bool.
1028 (tui_update_locator_fullname, tui_show_frame_info): Update.
1029
715bb467
TT
10302019-08-30 Tom Tromey <tom@tromey.com>
1031
1032 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
1033
772f3f03
TT
10342019-08-30 Tom Tromey <tom@tromey.com>
1035
1036 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
1037 call touchwin.
1038
108e13ab
TT
10392019-08-30 Tom Tromey <tom@tromey.com>
1040
1041 * tui/tui-wingeneral.c (box_win): Assume win_info and
1042 win_info->handle cannot be NULL.
1043
cdaa6eb4
TT
10442019-08-30 Tom Tromey <tom@tromey.com>
1045
1046 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
1047 refresh_window>: Declare.
1048 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
1049 resize.
1050 (tui_data_item_window::rerender): Rename from
1051 tui_display_register.
1052 (tui_data_item_window::refresh_window): New method.
1053 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
1054 no-op.
1055
89df7f90
TT
10562019-08-30 Tom Tromey <tom@tromey.com>
1057
1058 * tui/tui-regs.h (struct tui_data_window) <regs_content,
1059 regs_column_count, current_group>: Move later. Now private.
1060 <get_current_group>: New method.
1061 * tui/tui-regs.c (tui_reg_command): Update.
1062 * tui/tui-layout.c (tui_set_layout): Update.
1063
1bf2866a
TT
10642019-08-30 Tom Tromey <tom@tromey.com>
1065
1066 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1067 (tui_data_window::rerender): Don't call
1068 check_and_display_highlight_if_needed.
1069 (tui_data_window::refresh_all): Remove call to
1070 erase_data_content.
1071
0670413d
TT
10722019-08-30 Tom Tromey <tom@tromey.com>
1073
1074 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1075 (tui_data_window::display_registers_from)
1076 (tui_data_window::display_reg_element_at_line)
1077 (tui_data_window::display_registers_from_line): Remove checks of
1078 "empty".
1079
18bb55c7
TT
10802019-08-30 Tom Tromey <tom@tromey.com>
1081
1082 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
1083 Don't declare.
1084 * tui/tui-regs.c (tui_data_window::show_registers): Call
1085 rerender.
1086 (tui_data_window::rerender): Rename from display_all_data.
1087 (tui_data_window::rerender): Remove old implementation.
1088
1f6d2f10
TT
10892019-08-30 Tom Tromey <tom@tromey.com>
1090
1091 * tui/tui-regs.c (tui_data_window::display_all_data): Change
1092 text.
1093 * tui/tui-data.h (NO_DATA_STRING): Remove define.
1094
16d01f9c
BW
10952019-08-29 Bernhard Wodok <barto@gmx.net>
1096 Sergio Durigan Junior <sergiodj@redhat.com>
1097
1098 PR win32/24284
1099 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
1100
d8f27c60
AB
11012019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1102
1103 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
1104 when searching for types.
1105
1f20c35e
AB
11062019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1107
1108 * f-lang.c (f_language_defn): Use f_print_typedef.
1109 * f-lang.h (f_print_typedef): Declare.
1110 * f-typeprint.c (f_print_typedef): Define.
1111
550105b7
CB
11122019-08-27 Christian Biesinger <cbiesinger@google.com>
1113
1114 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
1115
4acfdd20
AB
11162019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
1117
1118 * cli/cli-utils.c (info_print_options_defs): Delete.
1119 (make_info_print_options_def_group): Delete.
1120 (extract_info_print_options): Delete.
1121 (info_print_command_completer): Delete.
1122 (info_print_args_help): Add extra parameter, and optionally
1123 include text about -n flag.
1124 * cli/cli-utils.h (struct info_print_options): Delete.
1125 (extract_info_print_options): Delete declaration.
1126 (info_print_command_completer): Delete declaration.
1127 (info_print_args_help): Add extra parameter, extend header
1128 comment.
1129 * python/python.c (gdbpy_rbreak): Pass additional parameter to
1130 search_symbols.
1131 * stack.c (struct info_print_options): New type.
1132 (info_print_options_defs): New file scoped variable.
1133 (make_info_print_options_def_group): New static function.
1134 (info_print_command_completer): New static function.
1135 (info_locals_command): Update to use new local functions.
1136 (info_args_command): Likewise.
1137 (_initialize_stack): Add extra parameter to calls to
1138 info_print_args_help.
1139 * symtab.c (search_symbols): Add extra parameter, use this to
1140 possibly excluse non-debug symbols.
1141 (symtab_symbol_info): Add extra parameter, which is passed on to
1142 search_symbols.
1143 (struct info_print_options): New type.
1144 (info_print_options_defs): New file scoped variable.
1145 (make_info_print_options_def_group): New static function.
1146 (info_print_command_completer): New static function.
1147 (info_variables_command): Update to use local functions, and pass
1148 extra parameter through to symtab_symbol_info.
1149 (info_functions_command): Likewise.
1150 (info_types_command): Pass additional argument through to
1151 symtab_symbol_info.
1152 (rbreak_command): Pass extra argument to search_symbols.
1153 (_initialize_symtab): Add extra arguments for calls to
1154 info_print_args_help, and update help text for 'info variables',
1155 'whereis', and 'info functions' commands.
1156 * symtab.h (search_symbols): Add extra argument to declaration.
1157 * NEWS: Mention new flags.
1158
9aa55206
CB
11592019-08-26 Christian Biesinger <cbiesinger@google.com>
1160
1161 * symtab.c (lookup_static_symbol): Call the new function (and move
1162 it down to be next to lookup_global_symbol).
1163 (struct global_sym_lookup_data): Add block_enum member and rename to...
1164 (struct global_or_static_sym_lookup_data): ...this.
1165 (lookup_symbol_global_iterator_cb): Pass block_index instead of
1166 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
1167 (lookup_symbol_global_or_static_iterator_cb): ...this.
1168 (lookup_global_or_static_symbol): New function.
1169 (lookup_global_symbol): Call new function.
1170
5c31b358
TV
11712019-08-26 Tom de Vries <tdevries@suse.de>
1172
1173 PR c++/24852
1174 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
1175 when pc_probe.prob == NULL.
1176
23c13d42
SM
11772019-08-25 Simon Marchi <simon.marchi@efficios.com>
1178
1179 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
1180 variable symbol_linkage to symbol_linkage_.
1181
beadd3e8
SM
11822019-08-25 Simon Marchi <simon.marchi@efficios.com>
1183
1184 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
1185 represent whether the symbol is static, dynamic, or we don't
1186 know.
1187
e3ec872f
YS
11882019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
1189
1190 * gdb/rx-tdep.c (rx_register_names): New.
1191 (rx_register_name): Delete.
1192 (rx_psw_type): Delete.
1193 (rx_fpsw_type): Delete.
1194 (rx_register_type): Delete.
1195 (rx_gdbarch_init): Convert target-descriptions.
1196 (_initialize_rx_tdep): Add initialize_tdesc_rx.
1197 * gdb/features/Makefile: Add rx.xml.
1198 * gdb/features/rx.xml: New.
1199 * gdb/features/rx.c: Generated.
1200 * gdb/NEWS: Mention target description support.
1201
d0509ba4
CB
12022019-08-22 Christian Biesinger <cbiesinger@google.com>
1203
1204 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
1205 *slot_ptr.
1206
2d41fa11
SDJ
12072019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1208
1209 * configure.ac: Don't check for 'dlfcn.h' (moved to
1210 gdbsupport/common.m4).
1211 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
1212 'gdbsupport/'.
1213 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
1214 * compile/compile-c-support.c: Include
1215 'gdbsupport/gdb-dlfcn.h'.
1216 * gdbsupport/common.m4: Check for 'dlfcn.h'.
1217 * gdb-dlfcn.c: Move to...
1218 * gdbsupport/gdb-dlfcn.c: ... here.
1219 * gdb-dlfcn.h: Move to...
1220 * gdbsupport/gdb-dlfcn.h: ... here.
1221
de8af808
SL
12222019-08-23 Sandra Loosemore <sandra@codesourcery.com>
1223
1224 * nios2-tdep.c (struct reg_value): Improve comments. Make
1225 the offset field signed.
1226
27204489
CB
12272019-08-22 Christian Biesinger <cbiesinger@google.com>
1228
1229 * python/lib/gdb/__init__.py (_execute_file): New function.
1230 * python/python.c (python_run_simple_file): Call gdb._execute_file
1231 on Windows.
1232
43771869
AB
12332019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
1234
1235 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
1236 all uses as this was never set to anything but a zero value.
1237
26c957f1
PA
12382019-08-21 Bogdan Harjoc <harjoc@gmail.com>
1239
1240 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
1241
c07aae6e
CB
12422019-08-21 Christian Biesinger <cbiesinger@google.com>
1243
1244 * tui/tui-data.h (tui_gen_win_info): Add an =default
1245 move constructor, required by some GCC versions.
1246
3960cb7a
JF
12472019-08-21 Jinke Fan <fanjinke51@yeah.net>
1248
1249 * go32-nat.c (go32_sysinfo): Add hygon_p.
1250
04c72a68
TT
12512019-08-20 Tom Tromey <tom@tromey.com>
1252
1253 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
1254 line_from_reg_element_no, first_reg_element_no_inline,
1255 display_all_data, delete_data_content_windows,
1256 erase_data_content>: Now private.
1257
072272ce
TT
12582019-08-20 Tom Tromey <tom@tromey.com>
1259
1260 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
1261 (tui_unhighlight_win, tui_highlight_win)
1262 (tui_win_info::make_window): Update.
1263 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
1264
973961bd
TT
12652019-08-20 Tom Tromey <tom@tromey.com>
1266
1267 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1268 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1269 (MAX_PID_WIDTH): Move to tui-stack.c.
1270 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1271 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1272 (MAX_PID_WIDTH): Move from tui-data.h.
1273
ab0e1f1a
TT
12742019-08-20 Tom Tromey <tom@tromey.com>
1275
1276 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
1277 * tui/tui-wingeneral.c (box_win): Change type of win_info.
1278 (box_win): Update.
1279 (tui_gen_win_info::make_window): Rename from tui_make_window.
1280 (tui_win_info::make_window): New method.
1281 (tui_gen_win_info::make_visible): Update.
1282 * tui/tui-source.c (tui_source_window::set_contents): Update.
1283 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1284 (tui_data_window::display_registers_from): Update.
1285 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1286 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
1287 Declare.
1288 <can_box>: Remove.
1289 <title>: Remove.
1290 (struct tui_win_info) <make_window>: Declare.
1291 <can_box>: Now virtual.
1292 <title>: New member.
1293 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
1294 * tui/tui-command.c (tui_cmd_window::resize): Update.
1295
100c2bf3
TT
12962019-08-20 Tom Tromey <tom@tromey.com>
1297
1298 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
1299 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1300 (tui_data_window::check_register_values): Update.
1301
fa4dc567
TT
13022019-08-20 Tom Tromey <tom@tromey.com>
1303
1304 * tui/tui-regs.h (struct tui_data_window): Use
1305 DISABLE_COPY_AND_ASSIGN.
1306 <regs_content>: Change type, removing unique_ptr.
1307 <tui_data_window>: Add move constructor.
1308 * tui/tui-regs.c (tui_data_window::show_registers)
1309 (tui_data_window::show_register_group)
1310 (tui_data_window::display_registers_from)
1311 (tui_data_window::display_registers_from)
1312 (tui_data_window::first_data_item_displayed)
1313 (tui_data_window::delete_data_content_windows)
1314 (tui_data_window::rerender, tui_data_window::refresh_window)
1315 (tui_data_window::check_register_values): Update.
1316
ca02d7c8
TT
13172019-08-20 Tom Tromey <tom@tromey.com>
1318
1319 * tui/tui-regs.h (struct tui_data_window) <show_registers,
1320 show_register_group>: Declare.
1321 (tui_show_register_group): Don't declare.
1322 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
1323 tui_show_registers.
1324 (tui_data_window::show_register_group): Rename from
1325 tui_show_register_group.
1326 (tui_data_window::check_register_values, tui_reg_command):
1327 Update.
1328 * tui/tui-layout.c (tui_set_layout): Update.
1329
63356bfd
TT
13302019-08-20 Tom Tromey <tom@tromey.com>
1331
1332 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
1333 Declare.
1334 (tui_check_register_values): Don't declare.
1335 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
1336 from tui_check_register_values.
1337 * tui/tui-hooks.c (tui_register_changed): Update.
1338
42cc14a7
TT
13392019-08-20 Tom Tromey <tom@tromey.com>
1340
1341 * tui/tui-regs.c (tui_reg_layout): Move later.
1342 (tui_show_registers): Don't enable TUI mode or change layout.
1343
b9ad3686
TT
13442019-08-20 Tom Tromey <tom@tromey.com>
1345
1346 * tui/tui-regs.h (struct tui_data_item_window)
1347 <~tui_data_item_window>: Remove.
1348 <content>: Now a unique_xmalloc_ptr.
1349 * tui/tui-regs.c (tui_register_format): Return a
1350 unique_xmalloc_ptr.
1351 (tui_get_register): Update.
1352 (~tui_data_item_window): Remove.
1353 (tui_data_window::display_registers_from, tui_display_register):
1354 Update.
1355 * tui/tui-io.h (tui_expand_tabs): Update.
1356 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
1357 Remove "col" parameter.
1358
8e114aab
TT
13592019-08-20 Tom Tromey <tom@tromey.com>
1360
1361 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
1362 field.
1363 * tui/tui-regs.c (~tui_data_item_window): Update.
1364
1a4f81dd
TT
13652019-08-20 Tom Tromey <tom@tromey.com>
1366
1367 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
1368 earlier.
1369
0f8d8876
TT
13702019-08-20 Tom Tromey <tom@tromey.com>
1371
1372 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
1373
605dc2c2
TT
13742019-08-20 Tom Tromey <tom@tromey.com>
1375
1376 * tui/tui-source.h (struct tui_source_window): Update.
1377 * tui/tui-regs.c (tui_show_registers): Update.
1378 * tui/tui-disasm.h (struct tui_disasm_window): Update.
1379 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
1380 (NO_REGS_STRING): Remove defines.
1381
aedbe3bb
CM
13822019-08-20 Conrad Meyer <cem@FreeBSD.org>
1383
1384 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
1385 unnecessary thread walk if remote doesn't support the packet.
1386
7ce8f214
TT
13872019-08-19 Tom Tromey <tromey@adacore.com>
1388
1389 * python/py-value.c (value_has_field): Fix indentation.
1390
f21c2bd7
TT
13912019-08-19 Tom Tromey <tromey@adacore.com>
1392
1393 * printcmd.c (do_one_display, info_display_command): Update.
1394 * block.h (contained_in): Return bool. Add allow_nested
1395 parameter.
1396 * block.c (contained_in): Return bool. Add allow_nested
1397 parameter.
1398
d806ea2d
TT
13992019-08-19 Tom Tromey <tom@tromey.com>
1400
1401 * configure: Rebuild.
1402 * configure.ac: Disallow the combination of -static-libstdc++ and
1403 source highlight.
1404 * source-cache.c (get_language_name): Handle rust.
1405 (source_cache::get_source_lines): Ignore highlighting exceptions.
1406
398fdd60
TT
14072019-08-16 Tom Tromey <tom@tromey.com>
1408
1409 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
1410 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
1411 (struct tui_source_window_base) <make_visible, refresh_window,
1412 resize>: Remove methods.
1413 <execution_info>: Remove field.
1414 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
1415 (tui_show_source_line, tui_source_window_base)
1416 (~tui_source_window_base): Update.
1417 (tui_source_window_base::resize)
1418 (tui_source_window_base::make_visible)
1419 (tui_source_window_base::refresh_window): Remove.
1420 (tui_source_window_base::update_exec_info): Update.
1421 * tui/tui-source.c (tui_source_window::set_contents): Update.
1422 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1423
e699d331
TT
14242019-08-16 Tom Tromey <tom@tromey.com>
1425
1426 * tui/tui-hooks.c (tui_remove_hooks): Don't set
1427 deprecated_query_hook.
1428
bb01dbfc
TT
14292019-08-16 Tom Tromey <tom@tromey.com>
1430
1431 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
1432 (tui_update_source_windows_with_line): Update.
1433 * tui/tui-source.h (struct tui_source_window)
1434 <show_symtab_source>: Declare.
1435 (tui_show_symtab_source): Don't declare.
1436 * tui/tui-source.c (tui_show_symtab_source): Rename from
1437 tui_show_symtab_source.
1438
81c82c4b
TT
14392019-08-16 Tom Tromey <tom@tromey.com>
1440
1441 * tui/tui-winsource.h (struct tui_source_window_base)
1442 <set_contents>: Declare.
1443 * tui/tui-winsource.c
1444 (tui_source_window_base::update_source_window_as_is): Update.
1445 * tui/tui-source.h (struct tui_source_window) <set_contents>:
1446 Declare.
1447 (tui_set_source_content): Don't declare.
1448 * tui/tui-source.c (tui_source_window::set_contents): Rename from
1449 tui_set_source_content.
1450 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
1451 Declare.
1452 (tui_set_disassem_content): Don't declare.
1453 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
1454 tui_set_disassem_content.
1455
2ddaf614
TT
14562019-08-16 Tom Tromey <tom@tromey.com>
1457
1458 * tui/tui-winsource.h (struct tui_source_window_base)
1459 <update_breakpoint_info>: Declare.
1460 (tui_update_breakpoint_info): Don't declare.
1461 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
1462 (tui_update_all_breakpoint_info): Update.
1463 (tui_source_window_base::update_breakpoint_info): Rename from
1464 tui_update_breakpoint_info.
1465 (tui_source_window_base::update_exec_info): Update.
1466
017f9828
TT
14672019-08-16 Tom Tromey <tom@tromey.com>
1468
1469 * tui/tui-winsource.h (struct tui_source_window_base)
1470 <update_source_window>: Declare.
1471 (tui_update_source_window): Don't declare.
1472 * tui/tui-winsource.c
1473 (tui_source_window_base::update_source_window): Rename from
1474 tui_update_source_window.
1475 (tui_source_window_base::rerender): Update.
1476 * tui/tui-source.c (tui_source_window::maybe_update): Update.
1477 * tui/tui-disasm.c (tui_show_disassem)
1478 (tui_show_disassem_and_update_source)
1479 (tui_disasm_window::maybe_update): Update.
1480
ed8358e9
TT
14812019-08-16 Tom Tromey <tom@tromey.com>
1482
1483 * tui/tui-winsource.h (struct tui_source_window_base)
1484 <update_source_window_as_is>: Declare.
1485 (tui_update_source_window_as_is): Don't declare.
1486 * tui/tui-winsource.c (tui_update_source_window): Update
1487 (tui_source_window_base::update_source_window_as_is): Rename from
1488 tui_update_source_window_as_is.
1489 (tui_source_window_base::refill): Update.
1490 * tui/tui-source.c (tui_show_symtab_source): Update.
1491 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
1492 Update.
1493
20149b6b
TT
14942019-08-16 Tom Tromey <tom@tromey.com>
1495
1496 * tui/tui-winsource.h (tui_update_source_window)
1497 (tui_update_source_window_as_is): Remove "noerror" parameter.
1498 * tui/tui-winsource.c (tui_update_source_window)
1499 (tui_update_source_window_as_is): Remove "noerror" parameter.
1500 (tui_update_source_windows_with_addr)
1501 (tui_update_source_windows_with_line)
1502 (tui_source_window_base::rerender)
1503 (tui_source_window_base::refill): Update.
1504 * tui/tui-source.h (tui_set_source_content)
1505 (tui_show_symtab_source): Remove "noerror" parameter.
1506 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
1507 parameter.
1508 (tui_show_symtab_source): Likewise.
1509 (tui_source_window::maybe_update): Update.
1510 * tui/tui-disasm.c (tui_show_disassem)
1511 (tui_show_disassem_and_update_source)
1512 (tui_disasm_window::do_scroll_vertical)
1513 (tui_disasm_window::maybe_update): Update.
1514
2d83e710
TT
15152019-08-16 Tom Tromey <tom@tromey.com>
1516
1517 * tui/tui.c (tui_is_window_visible): Update.
1518 * tui/tui-wingeneral.c (tui_make_window)
1519 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
1520 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
1521 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
1522 (tui_set_win_height_command, parse_scrolling_args): Update.
1523 * tui/tui-source.c (tui_source_window::style_changed): Update.
1524 * tui/tui-regs.c (tui_show_registers)
1525 (tui_data_window::first_data_item_displayed)
1526 (tui_data_window::delete_data_content_windows)
1527 (tui_check_register_values, tui_reg_command): Update.
1528 * tui/tui-disasm.c (tui_show_disassem): Update.
1529 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
1530 method.
1531 <is_visible>: Remove field.
1532 * tui/tui-data.c (tui_next_win, tui_prev_win)
1533 (tui_delete_invisible_windows): Update.
1534
d4ab829a
TT
15352019-08-16 Tom Tromey <tom@tromey.com>
1536
1537 * tui/tui-winsource.h (struct tui_source_window_base)
1538 <m_has_locator>: Remove.
1539 * tui/tui-layout.c (show_source_disasm_command, show_data)
1540 (show_source_or_disasm_and_command): Update.
1541
aa7ca1bb
AH
15422019-08-16 Alan Hayward <alan.hayward@arm.com>
1543
1544 * NEWS (Other MI changes): New subsection.
1545 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
1546 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
1547 * arch-utils.c (default_get_pc_address_flags): New function.
1548 * arch-utils.h (default_get_pc_address_flags): New declaration.
1549 * gdbarch.sh: Add get_pc_address_flags.
1550 * gdbarch.c: Regenerate.
1551 * gdbarch.h: Likewise.
1552 * stack.c (print_pc): New function.
1553 (print_frame_info) (print_frame): Call print_pc.
1554
6eac171f
TV
15552019-08-16 Tom de Vries <tdevries@suse.de>
1556
1557 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
1558 print_objfile_section_info.
1559
3df505f6
TT
15602019-08-15 Tom Tromey <tom@tromey.com>
1561
1562 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
1563 calling update_cmdwin_start_line.
1564 * tui/tui-winsource.h (struct tui_source_window_base)
1565 <do_make_visible_with_new_height, set_new_height>: Don't declare.
1566 <rerender>: Declare.
1567 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
1568 Call rerender.
1569 (tui_source_window_base::set_new_height): Remove.
1570 (tui_source_window_base::rerender): Rename from
1571 do_make_visible_with_new_height.
1572 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
1573 resize method.
1574 (tui_win_info::make_invisible_and_set_new_height)
1575 (tui_win_info::make_visible_with_new_height): Remove.
1576 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
1577 Declare.
1578 * tui/tui-stack.c (tui_locator_window::rerender): New method.
1579 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
1580 do_make_visible_with_new_height>: Don't declare.
1581 <rerender>: Declare.
1582 * tui/tui-regs.c (tui_data_window::rerender): Rename from
1583 set_new_height.
1584 (tui_data_window::do_make_visible_with_new_height): Remove.
1585 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
1586 call tui_show_locator_content.
1587 (tui_gen_win_info::resize): Call rerender.
1588 (show_source_or_disasm_and_command): Don't call
1589 tui_show_locator_content.
1590 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
1591 method.
1592 (struct tui_win_info) <rerender>: Declare.
1593 <set_new_height, make_invisible_and_set_new_height,
1594 make_visible_with_new_height>: Don't declare.
1595 * tui/tui-data.c (tui_win_list::rerender): New method.
1596 * tui/tui-command.h (struct tui_cmd_window)
1597 <do_make_visible_with_new_height>: Don't declare.
1598 * tui/tui-command.c
1599 (tui_cmd_window::do_make_visible_with_new_height): Remove.
1600
272560b5
TT
16012019-08-15 Tom Tromey <tromey@adacore.com>
1602
1603 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
1604 * ada-lang.c (ada_enum_name): Likewise.
1605
08235187
CB
16062019-08-15 Christian Biesinger <cbiesinger@google.com>
1607
1608 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
1609 leading underscore.
1610 (GdbOutputErrorFile): Likewise.
1611 (global scope): Adjust constructor calls to GdbOutput{,Error}File
1612 accordingly.
1613 (execute_unwinders): Rename to have a leading underscore.
1614 (auto_load_packages): Likewise.
1615 (global scope): Adjust call to auto_load_packages accordingly.
1616 (GdbSetPythonDirectory): Likewise.
1617 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
1618 instead of execute_unwinders.
1619
db502012
TT
16202019-08-15 Tom Tromey <tom@tromey.com>
1621
1622 * tui/tui-layout.c (show_layout, show_source_disasm_command)
1623 (show_data): Don't change window visibility.
1624 (tui_gen_win_info::resize): Remove special case for command
1625 window. Use wresize, when available.
1626 (show_source_or_disasm_and_command): Don't change window
1627 visibility.
1628 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
1629 <make_visible>: New method.
1630 * tui/tui-command.c (tui_cmd_window::resize): New method.
1631
3891b65e
TT
16322019-08-15 Tom Tromey <tom@tromey.com>
1633
1634 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
1635 (struct tui_source_windows): New.
1636 * tui/tui-winsource.c (tui_display_main): Update.
1637 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
1638 (new_height_ok, parse_scrolling_args): Update.
1639 * tui/tui-layout.c (show_layout, show_data): Update.
1640 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
1641 (tui_add_to_source_windows): Don't declare.
1642 * tui/tui-data.c (source_windows, tui_source_windows)
1643 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
1644
ee556432
TT
16452019-08-15 Tom Tromey <tom@tromey.com>
1646
1647 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
1648 Rename from reset.
1649 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
1650 * tui/tui-layout.c (show_source_disasm_command, show_data):
1651 Update.
1652 (tui_gen_win_info::resize): Rename.
1653 (show_source_or_disasm_and_command): Update.
1654 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
1655 reset.
1656
46f438e3
TT
16572019-08-15 Tom Tromey <tom@tromey.com>
1658
1659 * tui/tui-stack.c (tui_initialize_static_data): Remove.
1660 * tui/tui-interp.c (tui_interp::init): Don't call
1661 tui_initialize_static_data.
1662 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
1663
f4ce562c
TT
16642019-08-15 Tom Tromey <tom@tromey.com>
1665
1666 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
1667 examine tui_win_list.
1668
c398c3d0
TT
16692019-08-15 Tom Tromey <tom@tromey.com>
1670
1671 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
1672 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
1673 tui_clear_source_content.
1674 (tui_clear_source_content): Remove.
1675 (tui_source_window_base::do_erase_source_content): Hoist call to
1676 content.clear().
1677 * tui/tui-stack.c (tui_show_frame_info): Don't call
1678 tui_clear_source_content.
1679
e25d2004
TT
16802019-08-15 Tom Tromey <tom@tromey.com>
1681
1682 * tui/tui-winsource.h (struct tui_source_window_base)
1683 <do_erase_source_content>: New method.
1684 <erase_source_content>: New method.
1685 (tui_erase_source_content): Don't declare.
1686 * tui/tui-winsource.c (tui_clear_source_content): Update.
1687 (tui_source_window_base::do_erase_source_content): Rename from
1688 tui_erase_source_content.
1689 (tui_source_window_base::show_source_content): Update.
1690 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1691 * tui/tui-source.h (struct tui_source_window)
1692 <erase_source_content>: New method.
1693 * tui/tui-disasm.h (struct tui_disasm_window)
1694 <erase_source_content>: New method.
1695
002f15c2
TT
16962019-08-15 Tom Tromey <tom@tromey.com>
1697
1698 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
1699 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
1700 constructor.
1701 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
1702 * tui/tui-source.c (tui_set_source_content): Update.
1703 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1704
c9033fe8
TT
17052019-08-15 Tom Tromey <tom@tromey.com>
1706
1707 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
1708 * tui/tui-winsource.c (tui_line_is_displayed): Move to
1709 tui-source.c.
1710 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
1711 Declare.
1712 * tui/tui-source.c (tui_source_window::line_is_displayed): New
1713 method.
1714 (tui_source_window::maybe_update): Update.
1715
088f37dd
TT
17162019-08-15 Tom Tromey <tom@tromey.com>
1717
1718 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
1719 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
1720 tui-disasm.c.
1721 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
1722 Declare.
1723 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
1724 method.
1725 (tui_disasm_window::maybe_update): Update.
1726
a54700c6
TT
17272019-08-15 Tom Tromey <tom@tromey.com>
1728
1729 * tui/tui-winsource.h (struct tui_source_window_base)
1730 <maybe_update>: Declare.
1731 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
1732 method.
1733 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
1734 Declare.
1735 * tui/tui-source.c (tui_source_window::maybe_update): New method.
1736 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
1737 Declare.
1738 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
1739
e2a678a5
TT
17402019-08-15 Tom Tromey <tom@tromey.com>
1741
1742 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
1743
f2dda477
TT
17442019-08-15 Tom Tromey <tom@tromey.com>
1745
1746 * tui/tui-wingeneral.c: Include tui-stack.h.
1747 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
1748 (struct tui_locator_window): Move from tui-data.h.
1749 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
1750 (tui_initialize_static_data): Move from tui-data.c.
1751 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
1752 (struct tui_locator_window): Move to tui-stack.c.
1753 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
1754 (tui_initialize_static_data): Move to tui-stack.c.
1755
ed4a1084
TT
17562019-08-15 Tom Tromey <tom@tromey.com>
1757
1758 * tui/tui-layout.c (show_source_disasm_command)
1759 (show_source_or_disasm_and_command): Use make_visible method, not
1760 tui_make_window.
1761 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
1762 Remove.
1763
65962b20
TT
17642019-08-15 Tom Tromey <tom@tromey.com>
1765
1766 * tui/tui-wingeneral.h (tui_make_window): Update.
1767 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
1768 parameter.
1769 (tui_gen_win_info::make_visible): Update.
1770 * tui/tui-regs.c (tui_data_window::display_registers_from):
1771 Update.
1772 * tui/tui-layout.c (show_source_disasm_command)
1773 (show_source_or_disasm_and_command): Update.
1774 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
1775 (enum tui_box): Remove.
1776 (struct tui_win_info) <can_box>: New method.
1777 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
1778 method.
1779
2208ee91
TV
17802019-08-15 Tom de Vries <tdevries@suse.de>
1781
1782 * linux-nat-trad.c: Include gdbarch.h.
1783
75faf5c4
AH
17842019-08-14 Alan Hayward <alan.hayward@arm.com>
1785
1786 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
1787 register sizes.
1788
b1c896b3
TT
17892019-08-14 Tom Tromey <tromey@adacore.com>
1790
1791 * darwin-nat.c: Include gdbarch.h.
1792 * darwin-nat-info.c: Include gdbarch.h.
1793
6405cd73
TT
17942019-08-13 Tom Tromey <tom@tromey.com>
1795
1796 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
1797 Remove.
1798 * tui/tui-data.c (tui_initialize_static_data): Update.
1799
5216580d
TT
18002019-08-13 Tom Tromey <tom@tromey.com>
1801
1802 * tui/tui-winsource.h (struct tui_exec_info_window)
1803 <~tui_exec_info_window, maybe_allocate_content, get_content,
1804 m_content>: Remove.
1805 (struct tui_source_window_base) <set_exec_info_content,
1806 show_exec_info_content>: Don't declare.
1807 * tui/tui-winsource.c
1808 (tui_exec_info_window::maybe_allocate_content): Remove.
1809 (tui_source_window_base::update_exec_info): Rename from
1810 set_exec_info_content.
1811 (tui_source_window_base::show_exec_info_content)
1812 (tui_source_window_base::update_exec_info): Remove.
1813
93858ad3
TT
18142019-08-13 Tom Tromey <tom@tromey.com>
1815
1816 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
1817 declare.
1818 * tui/tui-winsource.c (tui_update_source_window_as_is)
1819 (tui_update_source_windows_with_addr, tui_erase_source_content):
1820 Update.
1821 (tui_clear_exec_info_content): Remove.
1822
e321e7ce
TT
18232019-08-13 Tom Tromey <tom@tromey.com>
1824
1825 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
1826 declare.
1827 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
1828 call tui_erase_exec_info_content.
1829 (tui_clear_exec_info_content): Rename from
1830 tui_erase_exec_info_content.
1831 (tui_clear_exec_info_content): Delete.
1832
8270ac62
TT
18332019-08-13 Tom Tromey <tom@tromey.com>
1834
1835 * tui/tui-winsource.h (struct tui_source_window_base)
1836 <show_exec_info_content>: Declare.
1837 (tui_show_exec_info_content): Don't declare.
1838 * tui/tui-winsource.c
1839 (tui_source_window_base::show_exec_info_content): Rename from
1840 tui_show_exec_info_content.
1841 (tui_source_window_base::update_exec_info): Update.
1842
7b56485d
TT
18432019-08-13 Tom Tromey <tom@tromey.com>
1844
1845 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
1846 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
1847 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
1848 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
1849 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
1850 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
1851 ... here.
1852
7ba913dc
TT
18532019-08-13 Tom Tromey <tom@tromey.com>
1854
1855 * tui/tui-winsource.h (struct tui_source_window_base)
1856 <update_exec_info>: Declare.
1857 (tui_update_exec_info): Don't declare.
1858 * tui/tui-winsource.c (tui_update_source_window_as_is)
1859 (tui_source_window_base::refresh_all)
1860 (tui_update_all_breakpoint_info): Update.
1861 (tui_source_window_base::update_exec_info): Rename from
1862 tui_update_exec_info.
1863 * tui/tui-stack.c (tui_show_frame_info): Update.
1864
37a4a131
TT
18652019-08-13 Tom Tromey <tom@tromey.com>
1866
1867 * tui/tui-winsource.h (struct tui_source_window_base)
1868 <set_exec_info_content>: Declare.
1869 (tui_set_exec_info_content): Don't declare.
1870 * tui/tui-winsource.c
1871 (tui_source_window_base::set_exec_info_content): Rename from
1872 tui_set_exec_info_content.
1873 (tui_update_exec_info): Update.
1874
0bd27e07
TT
18752019-08-13 Tom Tromey <tom@tromey.com>
1876
1877 * tui/tui-winsource.h (struct tui_source_window_base)
1878 <show_source_content>: Declare.
1879 (tui_show_source_content): Don't declare.
1880 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1881 (tui_source_window_base::show_source_content): Rename from
1882 tui_show_source_content.
1883 (tui_source_window_base::refresh_all): Update.
1884 * tui/tui-layout.c (show_source_disasm_command)
1885 (show_source_or_disasm_and_command): Update.
1886
b4ef5aeb
TT
18872019-08-13 Tom Tromey <tom@tromey.com>
1888
1889 * tui/tui-winsource.c (tui_erase_source_content)
1890 (tui_show_source_content, tui_source_window_base::refresh_all):
1891 Update.
1892 * tui/tui-wingeneral.h
1893 (tui_check_and_display_highlight_if_needed): Don't declare.
1894 * tui/tui-wingeneral.c
1895 (tui_win_info::check_and_display_highlight_if_needed): Rename from
1896 check_and_display_highlight_if_needed.
1897 * tui/tui-win.c (tui_rehighlight_all)
1898 (tui_win_info::make_visible_with_new_height): Update.
1899 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1900 (tui_data_window::erase_data_content)
1901 (tui_data_window::display_all_data): Update.
1902 * tui/tui-data.h (struct tui_win_info)
1903 <check_and_display_highlight_if_needed>: Declare.
1904
fede5273
TT
19052019-08-13 Tom Tromey <tom@tromey.com>
1906
1907 * tui/tui-win.c (tui_resize_all): Call
1908 tui_delete_invisible_windows.
1909 * tui/tui-layout.c (show_layout): Call
1910 tui_delete_invisible_windows.
1911 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
1912 * tui/tui-data.c (tui_delete_invisible_windows): New function.
1913
22c3f490
TT
19142019-08-13 Tom Tromey <tom@tromey.com>
1915
1916 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
1917 tui_add_win_to_layout.
1918
16cb7910
TT
19192019-08-13 Tom Tromey <tom@tromey.com>
1920
1921 * tui/tui-layout.h (tui_default_win_height): Don't declare.
1922 * tui/tui-layout.c (tui_default_win_height): Now static.
1923
cc0c3ffb
TT
19242019-08-13 Tom Tromey <tom@tromey.com>
1925
1926 * tui/tui-layout.c (show_layout): Unify all layout cases into a
1927 single switch.
1928 (show_source_disasm_command, show_source_or_disasm_and_command):
1929 Don't check current layout.
1930
3f3ffe54
TT
19312019-08-13 Tom Tromey <tom@tromey.com>
1932
1933 * tui/tui-wingeneral.c (make_all_visible): Remove.
1934 (tui_make_all_invisible): Simplify.
1935 * tui/tui-layout.c (tui_make_all_invisible): Move from
1936 tui-wingeneral.c; simplify.
1937 (show_layout): Hoist call to tui_make_all_invisible.
1938 (show_data): Don't call tui_make_all_invisible.
1939
69258091
TT
19402019-08-13 Tom Tromey <tom@tromey.com>
1941
1942 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
1943 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
1944
62cf57fe
TT
19452019-08-13 Tom Tromey <tom@tromey.com>
1946
1947 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
1948 tui-data.c.
1949 (show_source_disasm_command, show_data)
1950 (show_source_or_disasm_and_command): Don't use
1951 tui_set_current_layout_to.
1952 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
1953 * tui/tui-data.c (current_layout, tui_current_layout): Move to
1954 tui-layout.c.
1955 (tui_set_current_layout_to): Remove.
1956
2afade5d
TT
19572019-08-13 Tom Tromey <tom@tromey.com>
1958
1959 * tui/tui-layout.c (tui_set_layout): Update.
1960 * tui/tui-data.h (struct tui_layout_def): Remove.
1961 (tui_layout_def): Don't declare.
1962 * tui/tui-data.c (layout_def): Remove.
1963 (tui_layout_def): Remove.
1964
a3504e96
TT
19652019-08-13 Tom Tromey <tom@tromey.com>
1966
1967 * tui/tui-winsource.h (struct tui_source_window_base)
1968 <clear_detail>: No longer "override".
1969 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
1970 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
1971 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
1972 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
1973 Remove.
1974 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
1975
29c92911
TT
19762019-08-13 Tom Tromey <tromey@adacore.com>
1977
1978 * tracepoint.c: Don't include readline.h or history.h.
1979
86c6b807
TT
19802019-08-12 Tom Tromey <tom@tromey.com>
1981
1982 * configure: Rebuild.
1983 * configure.ac: Check for readline 7.
1984 * NEWS: Mention readline 7 requirement.
1985 * README: Update.
1986
5db2718c
TT
19872019-08-12 Tom Tromey <tom@tromey.com>
1988
1989 * mingw-hdep.c (gdb_select): Remove readline hack.
1990
dac36daf
PFC
19912019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1992
1993 * blockframe.c (find_pc_partial_function): Set *block to nullptr
1994 when the function fails.
1995
1022c627
AA
19962019-08-09 Andreas Arnez <arnez@linux.ibm.com>
1997
1998 * s390-tdep.c (s390_type_align): New function.
1999 (s390_gdbarch_init): Set it as type_align gdbarch method.
2000
eba4caf2
TV
20012019-08-09 Tom de Vries <tdevries@suse.de>
2002
2003 PR gdb/24591
2004 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
2005 pc_low with relocation offset.
2006
123cd851
TT
20072019-08-07 Tom Tromey <tromey@adacore.com>
2008
2009 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2010 (print_frame_args): Update.
2011 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
2012 Update.
2013 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2014 * frame.h (struct frame_arg): Add initializers.
2015 <error>: Now a unique_xmalloc_ptr.
2016
3d31bc39
AH
20172019-08-07 Alan Hayward <alan.hayward@arm.com>
2018
2019 * NEWS: Expand the Pointer Authentication entry.
2020 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
2021 (aarch64_frame_unmask_lr): ... to this.
2022 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
2023 Call aarch64_frame_unmask_lr.
2024 * frame.c (struct frame_info): Add "masked" variable.
2025 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
2026 (fprint_frame): Check for masked pc.
2027 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
2028 declarations.
2029 * python/py-framefilter.c (py_print_frame): Check for masked pc.
2030 * stack.c (print_frame): Check for masked pc.
2031
0cf9feb9
TT
20322019-08-06 Tom Tromey <tom@tromey.com>
2033
2034 * stabsread.c (patch_block_stabs, read_one_struct_field)
2035 (read_enum_type): Use obstack_strndup.
2036 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
2037 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
2038 * dwarf2read.c (guess_full_die_structure_name)
2039 (anonymous_struct_prefix): Use obstack_strndup.
2040 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
2041 * c-exp.y (yylex): Use obstack_strndup.
2042 * ada-exp.y (write_object_renaming, write_ambiguous_var)
2043 (write_var_or_type): Use obstack_strndup.
2044
efba19b0
TT
20452019-08-06 Tom Tromey <tom@tromey.com>
2046
2047 * symfile.c (reread_symbols): Use obstack_strdup.
2048 * stabsread.c (read_type): Use obstack_strdup.
2049 * gdb_obstack.h (obstack_strdup): New overload.
2050 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
2051 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
2052 (dwarf2_canonicalize_name): Use obstack_strdup.
2053 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
2054 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
2055 Use obstack_strdup.
2056
f25102f7
TT
20572019-08-06 Tom Tromey <tom@tromey.com>
2058
2059 * gdb_obstack.h (obstack_strdup): Define.
2060 * gdb_obstack.c (obstack_strdup): Don't define.
2061
021887d8
TT
20622019-08-06 Tom Tromey <tom@tromey.com>
2063
2064 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
2065 obstack_strdup.
2066 * typeprint.c (typedef_hash_table::find_global_typedef): Use
2067 obstack_strdup.
2068 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
2069 * stabsread.c (common_block_start): Use obstack_strdup.
2070 * objfiles.c (set_objfile_main_name, objfile): Use
2071 obstack_strdup.
2072 * namespace.c (add_using_directive): Use obstack_strdup.
2073 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
2074 * jit.c (finalize_symtab): Use obstack_strdup.
2075 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
2076 (guess_partial_die_structure_name, partial_die_info::fixup)
2077 (dwarf2_name): Use obstack_strdup.
2078 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
2079 obstack_strdup.
2080 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
2081 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
2082 obstack_strdup.
2083 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
2084
d2834edc
PW
20852019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2086
2087 * unittests/help-doc-selftests.c: New file.
2088 * Makefile.in: Add the new file.
2089
590042fc
PW
20902019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2091
2092 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
2093 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
2094 the full first line, except when FOR_VALUE_PREFIX. In this case,
2095 the trailing '.' is not output, and the first character is uppercased.
2096 (print_help_for_command): Update call to print_doc_line.
2097 (print_doc_of_command): Likewise.
2098 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
2099 * cli/cli-option.c (append_indented_doc): Do not append newline.
2100 (build_help_option): Append newline after first appended_indented_doc
2101 only if a second call is done.
2102 (build_help): Append 2 new lines before each option, except the first
2103 one.
2104 * compile/compile.c (_initialize_compile): Add new lines after
2105 %OPTIONS%, when not at the end of the help.
2106 Change help doc or code
2107 producing the help doc to respect the invariants.
2108 * maint-test-options.c (_initialize_maint_test_options): Likewise.
2109 Also removed the new line after 'Options:', as all other commands
2110 do not put an empty line between 'Options:' and the first option.
2111 * printcmd.c (_initialize_printcmd): Likewise.
2112 * stack.c (_initialize_stack): Likewise.
2113 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
2114 incorrectly telling COMMAND is optional.
2115 * ada-lang.c (_initialize_ada_language): Change help doc or code
2116 producing the help doc to respect the invariants.
2117 * ada-tasks.c (_initialize_ada_tasks): Likewise.
2118 * breakpoint.c (_initialize_breakpoint): Likewise.
2119 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
2120 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
2121 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
2122 * cli/cli-style.c (cli_style_option::add_setshow_commands,
2123 _initialize_cli_style): Likewise.
2124 * corelow.c (core_target_info): Likewise.
2125 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
2126 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
2127 * filesystem.c (_initialize_filesystem): Likewise.
2128 * frame.c (_initialize_frame): Likewise.
2129 * gnu-nat.c (add_task_commands): Likewise.
2130 * infcall.c (_initialize_infcall): Likewise.
2131 * infcmd.c (_initialize_infcmd): Likewise.
2132 * interps.c (_initialize_interpreter): Likewise.
2133 * language.c (_initialize_language): Likewise.
2134 * linux-fork.c (_initialize_linux_fork): Likewise.
2135 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
2136 * maint.c (_initialize_maint_cmds): Likewise.
2137 * memattr.c (_initialize_mem): Likewise.
2138 * printcmd.c (_initialize_printcmd): Likewise.
2139 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
2140 _RegEx): Likewise.
2141 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
2142 * record-btrace.c (_initialize_record_btrace): Likewise.
2143 * record-full.c (_initialize_record_full): Likewise.
2144 * record.c (_initialize_record): Likewise.
2145 * regcache-dump.c (_initialize_regcache_dump): Likewise.
2146 * regcache.c (_initialize_regcache): Likewise.
2147 * remote.c (add_packet_config_cmd, init_remote_threadtests,
2148 _initialize_remote): Likewise.
2149 * ser-tcp.c (_initialize_ser_tcp): Likewise.
2150 * serial.c (_initialize_serial): Likewise.
2151 * skip.c (_initialize_step_skip): Likewise.
2152 * source.c (_initialize_source): Likewise.
2153 * stack.c (_initialize_stack): Likewise.
2154 * symfile.c (_initialize_symfile): Likewise.
2155 * symtab.c (_initialize_symtab): Likewise.
2156 * target-descriptions.c (_initialize_target_descriptions): Likewise.
2157 * top.c (init_main): Likewise.
2158 * tracefile-tfile.c (tfile_target_info): Likewise.
2159 * tracepoint.c (_initialize_tracepoint): Likewise.
2160 * tui/tui-win.c (_initialize_tui_win): Likewise.
2161 * utils.c (add_internal_problem_command): Likewise.
2162 * valprint.c (value_print_option_defs): Likewise.
2163
404f2902
FCE
21642019-08-06 Frank Ch. Eigler <fche@redhat.com>
2165
2166 PR build/24886
2167 * configure.ac: Drop enable-libmcheck support.
2168 * configure, config.in: Rebuild.
2169 * libmcheck.m4: Remove.
2170 * acinclude.m4: Don't include it.
2171 * Makefile.in: Don't distribute it.
2172 * top.c (print_gdb_configuration): Don't mention it.
2173
046bebe1
TT
21742019-08-06 Tom Tromey <tom@tromey.com>
2175
2176 * utils.c (set_output_style): Sometimes pass stream to
2177 emit_style_escape.
2178 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
2179 * record-btrace.c (btrace_insn_history): Update.
2180 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
2181 method.
2182 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
2183 Update initializers.
2184 <m_uiout>: New field.
2185 <m_di>: Move lower.
2186 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2187 Remove "uiout" parameter.
2188 (dump_insns): Update.
2189 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
2190 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
2191
ddbcedf5
CB
21922019-08-06 Christian Biesinger <cbiesinger@google.com>
2193
2194 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
2195 (error_in_psymtab_expansion): Likewise.
2196 (lookup_symbol_via_quick_fns): Likewise.
2197 (basic_lookup_transparent_type_quick): Likewise.
2198 (basic_lookup_transparent_type_1): Likewise.
2199
b08b16c8
TT
22002019-08-06 Tom Tromey <tromey@adacore.com>
2201
2202 * source.c (last_source_error): Now bool.
2203 (print_source_lines_base): Make "noprint" bool. Only open
2204 source file when last_source_visited changes.
2205
cb44333d
TT
22062019-08-06 Tom Tromey <tromey@adacore.com>
2207
2208 * annotate.c (annotate_source_line): Use g_source_cache.
2209 * source-cache.c (source_cache::get_plain_source_lines): Change
2210 parameters. Populate m_offset_cache.
2211 (source_cache::ensure): New method.
2212 (source_cache::get_line_charpos): New method.
2213 (extract_lines): Move lower. Change parameters.
2214 (source_cache::get_source_lines): Move lower.
2215 * source-cache.h (class source_cache): Update comment.
2216 <get_line_charpos>: New method.
2217 <get_source_lines>: Update comment.
2218 <clear>: Clear m_offset_cache.
2219 <get_plain_source_lines>: Change parameters.
2220 <ensure>: New method
2221 <m_offset_cache>: New member.
2222 * source.c (forget_cached_source_info_for_objfile): Update.
2223 (info_source_command): Use g_source_cache.
2224 (find_source_lines, open_source_file_with_line_charpos): Remove.
2225 (print_source_lines_base, search_command_helper): Use g_source_cache.
2226 * source.h (open_source_file_with_line_charpos): Don't declare.
2227 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
2228 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
2229 Use g_source_cache.
2230
872dceaa
TT
22312019-08-06 Tom Tromey <tromey@adacore.com>
2232
2233 * source-cache.c (source_cache::get_plain_source_lines):
2234 Remove "first_line" and "last_line" parameters.
2235 (source_cache::get_source_lines): Cache plain text.
2236 * source-cache.h (class source_cache)
2237 <get_plain_source_lines>: Update.
2238
269249d9
TT
22392019-08-06 Tom Tromey <tromey@adacore.com>
2240
2241 * source-cache.c (extract_lines): No longer a method.
2242 Changed type of parameter. Include final newline.
2243 (selftests::extract_lines_test): New function.
2244 (_initialize_source_cache): Likewise.
2245 * source-cache.h (class source_cache)
2246 <extract_lines>: Don't declare.
2247
c0e8dcd8
TT
22482019-08-06 Tom Tromey <tromey@adacore.com>
2249
2250 * breakpoint.c (init_breakpoint_sal): Update.
2251 (breakpoint): Update.
2252 * breakpoint.h (struct breakpoint) <filter>: Now a
2253 unique_xmalloc_ptr.
2254
0b27c27d
CB
22552019-08-05 Christian Biesinger <cbiesinger@google.com>
2256
2257 * NEWS: Mention dictionary access on blocks.
2258 * python/py-block.c (blpy_getitem): New function.
2259 (block_object_as_mapping): New struct.
2260 (block_object_type): Use new struct for tp_as_mapping field.
2261
4ee94178
CB
22622019-08-05 Christian Biesinger <cbiesinger@google.com>
2263
2264 * objfiles.h (objfile): Add a comment describing partial symbols.
2265
8abfcabc
TT
22662019-08-05 Tom Tromey <tromey@adacore.com>
2267
2268 * compile/compile.c (_initialize_compile): Use _(), not N_().
2269 * thread.c (_initialize_thread): Use _(), not N_().
2270 * stack.c (_initialize_stack): Use _(), not N_().
2271 * printcmd.c (_initialize_printcmd): Use _(), not N_().
2272
2b79f376
SM
22732019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2274
2275 * dwarf2read.c (struct dw2_symtab_iterator):
2276 <want_specific_block>: Remove.
2277 <block_index>: Change type to gdb::optional.
2278 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
2279 change type of BLOCK_INDEX parameter to gdb::optional.
2280 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
2281 (dw2_lookup_symbol): Don't pass argument for
2282 WANT_SPECIFIC_BLOCK.
2283 (dw2_expand_symtabs_for_function): Don't pass argument for
2284 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
2285 (class dw2_debug_names_iterator)
2286 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
2287 parameter, change BLOCK_INDEX type to gdb::optional.
2288 <m_want_specific_block>: Remove.
2289 <m_block_index>: Change type to gdb::optional.
2290 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
2291 gdb::optional. Re-write in function of gdb::optional.
2292 (dw2_debug_names_lookup_symbol): Don't pass argument for
2293 WANT_SPECIFIC_BLOCK.
2294 (dw2_debug_names_expand_symtabs_for_function): Don't pass
2295 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
2296 BLOCK_INDEX.
2297
ae60f04e
PW
22982019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2299
2300 * NEWS: Mention changes to "info sources" command.
2301
28cd9371
PW
23022019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2303
2304 * symtab.c (filename_partial_match_opts): New struct type.
2305 (struct output_source_filename_data): New members
2306 regexp, c_regexp, partial_match.
2307 (output_source_filename): Use new members to decide to print file.
2308 (info_sources_option_defs): New variable.
2309 (make_info_sources_options_def_group, print_info_sources_header,
2310 info_sources_command_completer):
2311 New functions.
2312 (info_sources_command): Read new optional arguments.
2313 (_initialize_symtab): Update info sources help.
2314
ca683e3a
AO
23152019-08-02 Alexandre Oliva <oliva@adacore.com>
2316
2317 * ada-lang.c (exception_support_info_v0): Renamed from...
2318 (default_exception_support_info): ... this. Create new
2319 definition for v1.
2320 (ada_has_this_exception_support): Look up catch_handlers_sym.
2321 (ada_exception_support_info_sniffer): Try v0 after default.
2322
f1264162
TT
23232019-08-01 Tom Tromey <tromey@adacore.com>
2324
2325 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
2326 gdbarch.h.
2327
0a7b2485
CB
23282019-08-01 Christian Biesinger <cbiesinger@google.com>
2329
2330 * s12z-tdep.c: Fix include path for s12z-opc.h.
2331
c6bdbeb7
AH
23322019-08-01 Alan Hayward <alan.hayward@arm.com>
2333
2334 * NEWS: Require GNU make 3.82.
2335
a2bd7b82
TT
23362019-07-16 Tom Tromey <tom@tromey.com>
2337
2338 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
2339 declare.
2340
aa3b6533
TT
23412019-07-30 Tom Tromey <tromey@adacore.com>
2342
2343 * block.c (contained_in): Remove BLOCK_FUNCTION check.
2344
a1530dc7
KB
23452019-07-30 Kevin Buettner <kevinb@redhat.com>
2346
2347 * printcmd.c (print_address_symbolic): Print negative offsets.
2348 (build_address_symbolic): Force signed arithmetic when computing
2349 offset.
2350
2906593f
CB
23512019-07-30 Christian Biesinger <cbiesinger@google.com>
2352
2353 PR/24474: Add a function to lookup static variables.
2354 * NEWS: Mention this new function.
2355 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
2356 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
2357 * python/python.c (python_GdbMethods): Add new function.
2358
c620ed88
CB
23592019-07-29 Christian Biesinger <cbiesinger@google.com>
2360
2361 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
2362 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
2363 (objfpy_lookup_static_symbol): New function.
2364 (objfile_object_methods): Add new functions.
2365
bc4268a5
PW
23662019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2367
2368 * NEWS: Mention 'set|show print frame-info'. Mention new
2369 'presence' value for 'frame-arguments'. Mention new '-frame-info'
2370 backtrace argument. Mention that python frame filtering code
2371 is now consistent with what 'backtrace' command prints.
2372
4b5e8d19
PW
23732019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2374
2375 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
2376 comments.
2377 (print_frame_info_auto, print_frame_info_source_line,
2378 print_frame_info_location, print_frame_info_source_and_location,
2379 print_frame_info_location_and_address, print_frame_info_short_location):
2380 New declarations.
2381 (struct frame_print_options): New member print_frame_info.
2382 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
2383 * stack.h (get_user_print_what_frame_info): New declaration.
2384 (frame_show_address): New declaration.
2385 * stack.c (print_frame_arguments_choices): New value 'presence'.
2386 (print_frame_info_auto, print_frame_info_source_line,
2387 print_frame_info_location, print_frame_info_source_and_location,
2388 print_frame_info_location_and_address, print_frame_info_short_location,
2389 print_frame_info_choices, print_frame_info_print_what): New definitions.
2390 (print_frame_args): Only print dots for args if print frame-arguments
2391 is 'presence'.
2392 (frame_print_option_defs): New element for "frame-info".
2393 (get_user_print_what_frame_info): New function.
2394 (frame_show_address): Make non static. Move comment to stack.h.
2395 (print_frame_info_to_print_what): New function.
2396 (print_frame_info): Update comment. Use fp_opts.print_frame_info
2397 to decide what to print.
2398 (backtrace_command_1): Handle the new print_frame_arguments_presence
2399 value.
2400 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
2401 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
2402 (py_print_frame): In non-mi mode, use LOCATION as default for
2403 print_what, similarly to frame information printed directly by
2404 backtrace command. Handle frame-info user option in non MI mode.
2405
6bdfee81
KB
24062019-07-27 Kevin Buettner <kevinb@redhat.com>
2407
2408 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
2409 Add case for debugging 32-bit target on 64-bit host. Revise
2410 comment.
2411
98a617f8
KB
24122019-07-27 Kevin Buettner <kevinb@redhat.com>
2413
2414 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
2415 instead of find_function_entry_range_from_pc.
2416
567238c9
KB
24172019-07-27 Kevin Buettner <kevinb@redhat.com>
2418
2419 * stack.c (find_frame_funname): Remove code which preferred
2420 minsym over symtab sym in "certain pathological cases".
2421
2dc80cf8
KB
2422 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
2423 parameter. Change type of "do_demangle" to bool.
2424 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2425 Pass suitable "prefer_sym_over_minsym" flag to
2426 build_address_symbolic(). Don't output "+" for negative offsets.
2427 * printcmd.c (print_address_symbolic): Update invocation of
2428 build_address_symbolic to include a "prefer_sym_over_minsym"
2429 flag.
2430 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
2431 Restrict cases in which use of minimal symbol is preferred to that
2432 of a found symbol. Update comments.
2433
1aff7173
KB
2434 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
2435 for entry pc when entry pc is out of range for that FDE.
2436
89b085ac
BC
24372019-07-26 Brian Callahan <bcallah@openbsd.org>
2438
2439 PR gdb/24839:
2440 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
2441 type.
2442
f32feb4a
CB
24432019-07-25 Christian Biesinger <cbiesinger@google.com>
2444
2445 * python/py-objfile.c (add_separate_debug_file): Fix comment about
2446 this function's Python signature.
2447
2448
24492019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
2450
2451 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
2452 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2453 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2454 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
2455 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
2456
2457
c54e4253
YS
24582019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
2459
2460 * h8300-tdep.c (h8300_register_name_common): New.
2461 h8300_register_name): Use h8300_register_name_common.
2462 (h8300s_register_name): Likewise.
2463 (h8300sx_register_name): Likewise.
2464 (h8300h_register_nam): New.
2465 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
2466
2467
40eadf04
SP
24682019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2469
2470 * arm-tdep.c (arm_skip_cmse_entry): New function.
2471 (arm_is_sgstubs_section): New function.
2472 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
2473
bfa2a36d
TT
24742019-07-22 Tom Tromey <tom@tromey.com>
2475
2476 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
2477 Don't self-assign.
2478
a8e9d247
AB
24792019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2480
2481 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
2482 type_print.
2483
eb86c5e2
AB
24842019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2485
2486 * symtab.c (search_symbols): Adjust msymbol matching type arrays
2487 so that GDB doesn't match any msymbols when searching in the
2488 TYPES_DOMAIN.
2489 (print_symbol_info): Print using typedef_print or type_print based
2490 on the type of the symbol. Add updated FIXME comment moved from...
2491 (_initialize_symtab): ... move and update FIXME comment to above.
2492
a8eab7c6
AB
24932019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2494
2495 * NEWS: Mention adding -q option to "info types".
2496 * symtab.c (struct info_types_options): New struct.
2497 (info_types_options_defs): New variable.
2498 (make_info_types_options_def_group): New function.
2499 (info_types_command): Use gdb::option framework to parse options.
2500 (info_types_command_completer): New function.
2501 (_initialize_symtab): Extend the help text on "info types" and
2502 register command completer.
2503
b4603c34
CB
25042019-07-21 Christian Biesinger <cbiesinger@google.com>
2505
2506 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
2507 (lookup_symbol_in_objfile): Change int to block_enum and add a
2508 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
2509
c8cdc1e0
CB
25102019-07-20 Christian Biesinger <cbiesinger@google.com>
2511
2512 * MAINTAINERS (Write After Approval): Add self.
2513
01e175fe
AB
25142019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
2515
2516 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
2517 instruction to the dummy code region.
2518
56f79b63
TT
25192019-07-19 Tom Tromey <tromey@adacore.com>
2520
2521 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
2522 (ARGSUSED, PARAMS, __func__): Remove rules.
2523
4c5aa8e0
AH
25242019-07-19 Alan Hayward <alan.hayward@arm.com>
2525
2526 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
2527 * features/arm/arm-with-iwmmxt.c: Remove.
2528 * features/arm/arm-with-iwmmxt.xml: Remove.
2529 * features/arm/arm-with-m-fpa-layout.c: Remove.
2530 * features/arm/arm-with-m-fpa-layout.xml: Remove.
2531 * features/arm/arm-with-m-vfp-d16.c: Remove.
2532 * features/arm/arm-with-m-vfp-d16.xml: Remove.
2533 * features/arm/arm-with-m.c: Remove.
2534 * features/arm/arm-with-m.xml: Remove.
2535 * features/arm/arm-with-neon.c: Remove.
2536 * features/arm/arm-with-neon.xml: Remove.
2537 * features/arm/arm-with-vfpv2.c: Remove.
2538 * features/arm/arm-with-vfpv2.xml: Remove.
2539 * features/arm/arm-with-vfpv3.c: Remove.
2540 * features/arm/arm-with-vfpv3.xml: Remove.
2541
f42b2617
AH
25422019-07-19 Alan Hayward <alan.hayward@arm.com>
2543
2544 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
2545
f29ec966
AH
25462019-07-19 Alan Hayward <alan.hayward@arm.com>
2547
2548 * arch/aarch32.c (aarch32_create_target_description): Create
2549 target descriptions using features.
2550 * arch/arm.c (arm_create_target_description)
2551 (arm_create_mprofile_target_description): Likewise.
2552 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
2553
d105cce5
AH
25542019-07-19 Alan Hayward <alan.hayward@arm.com>
2555
2556 * Makefile.in: Add new files.
2557 * aarch32-tdep.c: New file.
2558 * aarch32-tdep.h: New file.
2559 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2560 Call aarch32_read_description.
2561 * arch/aarch32.c: New file.
2562 * arch/aarch32.h: New file.
2563 * arch/arm.c (arm_create_target_description)
2564 (arm_create_mprofile_target_description): New function.
2565 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
2566 (arm_create_target_description)
2567 (arm_create_mprofile_target_description): New declaration.
2568 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
2569 read_description functions.
2570 * arm-linux-nat.c (arm_linux_nat_target::read_description):
2571 Likewise.
2572 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2573 * arm-tdep.c (tdesc_arm_list): New variable.
2574 (arm_register_g_packet_guesses): Call create description functions.
2575 (arm_read_description) (arm_read_mprofile_description): New
2576 function.
2577 * arm-tdep.h (arm_read_description)
2578 (arm_read_mprofile_description): Add declaration.
2579 * configure.tgt: Add new files.
2580
afe09f0b
GL
25812019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
2582
2583 * top.c (new_ui_command): Open specified terminal just once.
2584
cd215b2e
TT
25852019-07-18 Tom Tromey <tromey@adacore.com>
2586
2587 * symtab.c (main_name): Constify return type.
2588 * symfile.c (set_initial_language): Update.
2589 * symtab.h (main_name): Constify return type.
2590
d8f68fcb
TT
25912019-07-17 Tom Tromey <tom@tromey.com>
2592
2593 * tui/tui-winsource.c (tui_update_source_window)
2594 (tui_update_source_window_as_is)
2595 (tui_update_source_windows_with_line): Remove return.
2596 * tui/tui-disasm.c (tui_show_disassem)
2597 (tui_show_disassem_and_update_source): Remove return.
2598 * tui/tui.c (tui_reset): Remove return.
2599 * tui/tui-wingeneral.c
2600 (tui_check_and_display_highlight_if_needed): Remove return.
2601
ca5af91e
TT
26022019-07-17 Tom Tromey <tom@tromey.com>
2603
2604 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
2605
5104fe36
TT
26062019-07-17 Tom Tromey <tom@tromey.com>
2607
2608 * tui/tui-winsource.h (struct tui_exec_info_window)
2609 (struct tui_source_window_base): Move from tui-data.h.
2610 * tui/tui-winsource.c: Move many method definitions from
2611 elsewhere. Remove "structuring" comments.
2612 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
2613 (tui_source_window_base::refresh_window): Move to
2614 tui-winsource.c.
2615 * tui/tui-win.c (tui_source_window_base::refresh_all)
2616 (tui_source_window_base::update_tab_width)
2617 (tui_source_window_base::set_new_height)
2618 (tui_source_window_base::do_make_visible_with_new_height): Move to
2619 tui-winsource.c.
2620 * tui/tui-source.h: Update.
2621 * tui/tui-source.c (tui_source_window_base::reset): Move to
2622 tui-winsource.c.
2623 * tui/tui-disasm.h: Update.
2624 * tui/tui-data.h (struct tui_exec_info_window): Move to
2625 tui-winsource.h.
2626 (struct tui_source_window_base): Likewise.
2627 * tui/tui-data.c (tui_source_window_base::clear_detail)
2628 (tui_source_window_base, ~tui_source_window_base): Move to
2629 tui-winsource.c.
2630
daa15dde
TT
26312019-07-17 Tom Tromey <tom@tromey.com>
2632
2633 * tui/tui-win.c (tui_resize_all)
2634 (tui_source_window_base::update_tab_width)
2635 (tui_adjust_win_heights): Update.
2636 (tui_win_info::make_invisible_and_set_new_height): Rename from
2637 make_invisible_and_set_new_height.
2638 * tui/tui-data.h (struct tui_win_info)
2639 <make_invisible_and_set_new_height>: New method.
2640
bfad4537
TT
26412019-07-17 Tom Tromey <tom@tromey.com>
2642
2643 * tui/tui.c: Update.
2644 * tui/tui-source.h (struct tui_source_window): Move from
2645 tui-data.h.
2646 * tui/tui-layout.c: Update.
2647 * tui/tui-disasm.c: Update.
2648 * tui/tui-data.h (struct tui_source_window): Move to
2649 tui-source.h.
2650
88f7e873
TT
26512019-07-17 Tom Tromey <tom@tromey.com>
2652
2653 * tui/tui-disasm.h (struct tui_disasm_window): Move from
2654 tui-data.h.
2655 * tui/tui-data.h (struct tui_disasm_window): Move to
2656 tui-disasm.h.
2657
96bd6233
TT
26582019-07-17 Tom Tromey <tom@tromey.com>
2659
2660 * tui/tui-regs.h (struct tui_data_item_window): Move from
2661 tui-data.h.
2662 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
2663 * tui/tui-data.h (struct tui_data_item_window): Move to
2664 tui-regs.h.
2665 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
2666
ce38393b
TT
26672019-07-17 Tom Tromey <tom@tromey.com>
2668
2669 * tui/tui.c: Update.
2670 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
2671 (tui_cmd_window::max_height): Move to tui-command.c.
2672 * tui/tui-layout.c: Update.
2673 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
2674 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
2675 tui-command.c.
2676 * tui/tui-command.h (struct tui_cmd_window): Move from
2677 tui-data.h.
2678 * tui/tui-command.c: Remove "structuring" comments.
2679 (tui_cmd_window::clear_detail)
2680 (tui_cmd_window::do_make_visible_with_new_height)
2681 (tui_cmd_window::max_height): Move from elsewhere.
2682
2d8b51cb
TT
26832019-07-17 Tom Tromey <tom@tromey.com>
2684
2685 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
2686 Now static.
2687 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
2688 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
2689
18ab23af
TT
26902019-07-17 Tom Tromey <tom@tromey.com>
2691
2692 * tui/tui.c: Update.
2693 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
2694 tui-regs.c.
2695 * tui/tui-windata.h: Remove file.
2696 * tui/tui-windata.c: Remove file.
2697 * tui/tui-win.c (tui_data_window::set_new_height)
2698 (tui_data_window::do_make_visible_with_new_height): Move to
2699 tui-regs.c.
2700 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
2701 * tui/tui-regs.c: Remove "structuring" comments.
2702 (tui_data_window::first_data_item_displayed)
2703 (tui_data_window::delete_data_content_windows)
2704 (tui_data_window::erase_data_content)
2705 (tui_data_window::display_all_data)
2706 (tui_data_window::refresh_all)
2707 (tui_data_window::do_scroll_vertical)
2708 (tui_data_window::clear_detail, tui_data_window::set_new_height)
2709 (tui_data_window::do_make_visible_with_new_height)
2710 (tui_data_window::refresh_window): Move from elsewhere.
2711 (_initialize_tui_regs): Move to end of file.
2712 * tui/tui-layout.c: Update.
2713 * tui/tui-hooks.c: Update.
2714 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
2715 * tui/tui-data.c (tui_data_window::clear_detail): Move to
2716 tui-regs.c.
2717 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
2718
88b7e7cc
TT
27192019-07-17 Tom Tromey <tom@tromey.com>
2720
2721 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
2722 seen.
2723
0fcd3711
TT
27242019-07-17 Tom Tromey <tom@tromey.com>
2725
2726 * tui/tui-win.c (tui_source_window_base::set_new_height)
2727 (tui_source_window_base::do_make_visible_with_new_height): Use
2728 m_has_locator field directly.
2729 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
2730 method.
2731 (struct tui_source_window_base) <has_locator>: Likewise.
2732
4a38112d
TT
27332019-07-17 Tom Tromey <tom@tromey.com>
2734
2735 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
2736 Don't declare.
2737 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
2738 Remove.
2739 * tui/tui-win.c (tui_source_window_base::set_new_height)
2740 (tui_source_window_base::set_new_height)
2741 (make_invisible_and_set_new_height)
2742 (tui_source_window_base::do_make_visible_with_new_height)
2743 (tui_source_window_base::do_make_visible_with_new_height):
2744 Update.
2745 * tui/tui-layout.c (show_source_disasm_command, show_data)
2746 (show_source_or_disasm_and_command): Update.
2747 * tui/tui-layout.c (show_layout): Update.
2748
09129226
TT
27492019-07-17 Tom Tromey <tom@tromey.com>
2750
2751 * tui/tui-layout.c (make_data_window): Remove.
2752 (show_data): Unify creation and re-initialization cases.
2753
4a8a5e84
TT
27542019-07-17 Tom Tromey <tom@tromey.com>
2755
2756 * tui/tui-layout.c (make_source_window, make_disasm_window):
2757 Remove.
2758 (show_data): Unify creation and re-initialization cases.
2759
76d2be8e
TT
27602019-07-17 Tom Tromey <tom@tromey.com>
2761
2762 * tui/tui-layout.c (make_command_window): Remove.
2763 (show_source_disasm_command, show_source_or_disasm_and_command):
2764 Unify creation and re-initialization cases.
2765
890b8bde
TT
27662019-07-17 Tom Tromey <tom@tromey.com>
2767
2768 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
2769 creation and re-initialization cases.
2770
2cdfa113
TT
27712019-07-17 Tom Tromey <tom@tromey.com>
2772
2773 * tui/tui-regs.c (tui_get_register): Return void.
2774
8e3cfd09
TT
27752019-07-17 Tom Tromey <tom@tromey.com>
2776
2777 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
2778 Simplify.
2779
f4e04977
TT
27802019-07-17 Tom Tromey <tom@tromey.com>
2781
2782 * tui/tui-layout.c (show_source_disasm_command): Simplify window
2783 resetting.
2784
0379b883
TT
27852019-07-17 Tom Tromey <tom@tromey.com>
2786
2787 * tui/tui.h (tui_set_layout_by_name): Don't declare.
2788 * tui/tui-regs.c (tui_reg_layout): New function.
2789 (tui_show_registers, tui_reg_command): Use it.
2790 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
2791 (tui_layout_command): Rename from tui_set_layout_by_name. Change
2792 parameters.
2793 (tui_layout_command): Remove.
2794
b7fbad91
TT
27952019-07-17 Tom Tromey <tom@tromey.com>
2796
2797 * tui/tui-layout.h (tui/tui-layout): Return void.
2798 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
2799
4e1e56b9
TT
28002019-07-17 Tom Tromey <tom@tromey.com>
2801
2802 * tui/tui-layout.c (show_source_disasm_command, show_data):
2803 Update.
2804 (reset_locator): Remove.
2805 (show_source_or_disasm_and_command): Update.
2806
1e0c09ba
TT
28072019-07-17 Tom Tromey <tom@tromey.com>
2808
2809 * tui/tui-source.c (tui_source_window_base::reset): Remove
2810 win_type parameter.
2811 * tui/tui-layout.c (make_command_window, make_source_window)
2812 (make_disasm_window, make_data_window)
2813 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
2814 (reset_locator, show_source_or_disasm_and_command): Update.
2815 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
2816 win_type parameter.
2817 (struct tui_source_window_base) <reset>: Likewise.
2818
1bf605de
TT
28192019-07-17 Tom Tromey <tom@tromey.com>
2820
2821 * tui/tui-layout.c (show_source_disasm_command): Use
2822 reset_locator.
2823 (reset_locator): New function.
2824 (init_and_make_win): Remove.
2825 (show_source_or_disasm_and_command): Use reset_locator.
2826
098f9ed4
TT
28272019-07-17 Tom Tromey <tom@tromey.com>
2828
2829 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
2830 condition.
2831 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
2832 Remove condition.
2833 * tui/tui-source.c (tui_source_window_base::reset): New method.
2834 * tui/tui-layout.c (make_command_window): Don't call
2835 init_and_make_win.
2836 (make_source_window, make_disasm_window): Don't call
2837 make_source_or_disasm_window.
2838 (make_data_window): Don't call init_and_make_win. Change calling
2839 convention.
2840 (show_source_disasm_command, show_data): Simplify.
2841 (make_source_or_disasm_window): Remove.
2842 (show_source_or_disasm_and_command): Simplify.
2843 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
2844 (struct tui_source_window_base) <reset>: Likewise.
2845 <execution_info>: Remove initializer.
2846 * tui/tui-data.c (tui_source_window_base): Initialize
2847 execution_info.
2848
80110957
TT
28492019-07-17 Tom Tromey <tom@tromey.com>
2850
2851 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
2852 variable.
2853
cf82af05
TT
28542019-07-17 Tom Tromey <tom@tromey.com>
2855
2856 * tui/tui.c (tui_rl_other_window): Update.
2857 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
2858 superclass method first. Always iterate over regs_content.
2859 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
2860 method.
2861 * tui/tui-win.c (tui_set_focus_command): Update.
2862
01aeb396
TT
28632019-07-17 Tom Tromey <tom@tromey.com>
2864
2865 * tui/tui-win.c (tui_set_focus_command): Rename from
2866 tui_set_focus. Call tui_enable.
2867 (tui_set_focus_command): Remove.
2868
fd6c75ee
TT
28692019-07-17 Tom Tromey <tom@tromey.com>
2870
2871 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
2872 refresh_window.
2873 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
2874 touchwin.
2875 (tui_data_window::refresh_window): Call refresh_window on data
2876 items. Always call superclass refresh_window.
2877 (tui_win_info::refresh): Remove.
2878 (tui_source_window_base::refresh_window): Update.
2879 (tui_refresh_all): Update.
2880 * tui/tui-layout.c (show_source_disasm_command): Remove call to
2881 refresh_window.
2882 (show_source_or_disasm_and_command): Likewise.
2883 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
2884 (struct tui_source_window_base) <refresh>: Likewise.
2885
f6cc34a9
TT
28862019-07-17 Tom Tromey <tom@tromey.com>
2887
2888 * tui/tui-winsource.c (tui_clear_source_content)
2889 (tui_show_source_content): Update.
2890 * tui/tui-source.c (tui_source_window::showing_source_p): Check
2891 whether content is empty.
2892 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
2893 Remove.
2894
f31ec9af
TT
28952019-07-17 Tom Tromey <tom@tromey.com>
2896
2897 * tui/tui-winsource.c (tui_erase_source_content): Clear the
2898 window's contents.
2899 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
2900 * tui/tui-source.c (tui_set_source_content_nil): Remove.
2901
d1b6f1e5
TT
29022019-07-17 Tom Tromey <tom@tromey.com>
2903
2904 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
2905 (struct tui_data_item_window): Update.
2906
d9743a13
TT
29072019-07-17 Tom Tromey <tom@tromey.com>
2908
2909 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
2910 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
2911 defines.
2912
caf0bc4e
TT
29132019-07-17 Tom Tromey <tom@tromey.com>
2914
2915 * tui/tui-winsource.h (tui_erase_source_content)
2916 (tui_clear_source_content): Remove "display_prompt" parameter.
2917 * tui/tui-winsource.c (tui_update_source_window_as_is)
2918 (tui_update_source_windows_with_addr): Update.
2919 (tui_clear_source_content): Remove "display_prompt" parameter.
2920 (tui_erase_source_content): Likewise. Simplify.
2921 (tui_show_source_content): Update.
2922 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2923 * tui/tui-stack.c (tui_show_frame_info): Update.
2924 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
2925 Remove defines.
2926
9d391078
TT
29272019-07-17 Tom Tromey <tom@tromey.com>
2928
2929 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2930 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
2931 parameter.
2932 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
2933 parameter.
2934
a38da35d
TT
29352019-07-17 Tom Tromey <tom@tromey.com>
2936
2937 * tui/tui-winsource.c (tui_clear_source_content)
2938 (tui_show_source_content, tui_show_exec_info_content)
2939 (tui_clear_exec_info_content): Update.
2940 * tui/tui-stack.c (tui_show_locator_content): Update.
2941 (tui_show_frame_info): Update.
2942 * tui/tui-source.h (tui_source_window): Don't declare.
2943 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
2944 from tui_source_is_displayed.
2945 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
2946 Remove field.
2947 (struct tui_source_window_base) <content_in_use>: New field. Now
2948 bool.
2949 (struct tui_source_window) <showing_source_p>: New method.
2950 (TUI_SRC_WIN): Change cast.
2951 * tui/tui-data.c (tui_initialize_static_data): Update.
2952
c2cd8994
TT
29532019-07-17 Tom Tromey <tom@tromey.com>
2954
2955 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
2956 location_matches_p.
2957 * tui/tui-source.c (tui_source_window::location_matches_p): New
2958 method.
2959 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
2960 method.
2961 * tui/tui-data.h (struct tui_source_window_base)
2962 <location_matches_p>: New method.
2963 (struct tui_source_window, struct tui_disasm_window)
2964 <location_matches_p>: Likewise.
2965
4dde7b34
TT
29662019-07-17 Tom Tromey <tom@tromey.com>
2967
2968 * tui/tui-win.c (tui_set_win_height_command): Rename from
2969 tui_set_win_height.
2970 (tui_set_win_height_command): Remove.
2971
b73dd877
TT
29722019-07-17 Tom Tromey <tom@tromey.com>
2973
2974 * tui/tui-source.c (tui_source_window): New constructor. Add
2975 observer.
2976 (~tui_source_window): New destructor.
2977 (tui_source_window::style_changed): New method.
2978 * tui/tui-hooks.c (tui_redisplay_source): Remove.
2979 (tui_attach_detach_observers): Update.
2980 * tui/tui-data.h (struct tui_source_window): Make constructor not
2981 inline. Add destructor.
2982 (struct tui_source_window) <style_changed>: New method.
2983 <m_observable>: New member.
2984
ae2b5380
TT
29852019-07-17 Tom Tromey <tom@tromey.com>
2986
2987 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
2988 * tui/tui-win.c (tui_resize_all): Fix typo.
2989
1ce3e844
TT
29902019-07-17 Tom Tromey <tom@tromey.com>
2991
2992 * tui/tui-wingeneral.h (tui_refresh_all): Update.
2993 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
2994 (tui_refresh_all): Remove "list" parameter. Use foreach.
2995 * tui/tui-win.c (window_name_completer): Use foreach.
2996 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
2997 (update_tab_width): Likewise.
2998 * tui/tui-layout.c (show_layout): Update.
2999 * tui/tui-data.h (class tui_window_iterator): New.
3000 (struct all_tui_windows): New.
3001 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
3002
fe3eaf1c
TT
30032019-07-17 Tom Tromey <tom@tromey.com>
3004
3005 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
3006 parameter. Don't reference globals.
3007 (tui_reg_command): Update.
3008
368c1354
TT
30092019-07-17 Tom Tromey <tom@tromey.com>
3010
3011 * tui/tui-regs.c (tui_show_registers): Simplify.
3012
e80cd204
TT
30132019-07-17 Tom Tromey <tom@tromey.com>
3014
3015 * tui/tui-regs.c (tui_show_registers): Update.
3016 (tui_show_register_group): Add win_info parameter.
3017
aca2dd16
TT
30182019-07-17 Tom Tromey <tom@tromey.com>
3019
3020 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
3021 Rename from tui_display_reg_element_at_line.
3022 (tui_data_window::display_registers_from_line): Update.
3023 * tui/tui-data.h (struct tui_data_window)
3024 <display_reg_element_at_line>: New method.
3025
517e9505
TT
30262019-07-17 Tom Tromey <tom@tromey.com>
3027
3028 * tui/tui-regs.h (tui_display_registers_from)
3029 (tui_display_registers_from_line): Don't declare.
3030 * tui/tui-windata.c (tui_data_window::display_all_data)
3031 (tui_data_window::refresh_all)
3032 (tui_data_window::do_scroll_vertical): Update.
3033 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
3034 from tui_display_registers_from.
3035 (tui_display_reg_element_at_line): Update.
3036 (tui_data_window::display_registers_from_line): Rename from
3037 tui_display_registers_from_line.
3038 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
3039 display_registers_from_line>: New methods.
3040
f76d8b19
TT
30412019-07-17 Tom Tromey <tom@tromey.com>
3042
3043 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
3044 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
3045 from tui_erase_data_content.
3046 (tui_data_window::display_all_data)
3047 (tui_data_window::refresh_all)
3048 (tui_data_window::do_scroll_vertical): Update.
3049 * tui/tui-regs.c (tui_show_registers): Update.
3050 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
3051 New method.
3052
b4094625
TT
30532019-07-17 Tom Tromey <tom@tromey.com>
3054
3055 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
3056 declare.
3057 * tui/tui-windata.c
3058 (tui_data_window::delete_data_content_windows): Rename from
3059 tui_delete_data_content_windows.
3060 (tui_data_window::display_all_data)
3061 (tui_data_window::do_scroll_vertical): Update.
3062 * tui/tui-data.h (struct tui_data_window)
3063 <delete_data_content_windows>: New method.
3064
c223a729
TT
30652019-07-17 Tom Tromey <tom@tromey.com>
3066
3067 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
3068 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
3069
50daf268
TT
30702019-07-17 Tom Tromey <tom@tromey.com>
3071
3072 * tui/tui-windata.h (tui_display_all_data): Don't declare.
3073 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
3074 from tui_display_all_data.
3075 * tui/tui-win.c
3076 (tui_data_window::do_make_visible_with_new_height): Update.
3077 * tui/tui-regs.c (tui_show_registers): Update.
3078 * tui/tui-layout.c (tui_set_layout): Update.
3079 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
3080 method.
3081
df5f8cab
TT
30822019-07-17 Tom Tromey <tom@tromey.com>
3083
3084 * tui/tui-windata.h (tui_display_data_from): Don't declare.
3085 * tui/tui-windata.c (tui_display_data_from): Remove.
3086 (tui_data_window::refresh_all): Update.
3087
80cb6c27
TT
30882019-07-17 Tom Tromey <tom@tromey.com>
3089
3090 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
3091 * tui/tui-windata.c (tui_display_data_from_line): Remove.
3092 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
3093 tui_display_registers_from_line.
3094 * tui/tui-regs.h (tui_display_registers_from_line): Update.
3095 * tui/tui-regs.c (tui_display_registers_from_line): Remove
3096 "force_display" parameter.
3097
baff0c28
TT
30982019-07-17 Tom Tromey <tom@tromey.com>
3099
3100 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
3101 declare.
3102 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
3103 Rename from tui_first_reg_element_no_inline.
3104 (tui_display_reg_element_at_line)
3105 (tui_display_registers_from_line): Update.
3106 * tui/tui-data.h (struct tui_data_window)
3107 <first_reg_element_no_inline>: New method.
3108
3b23c5f2
TT
31092019-07-17 Tom Tromey <tom@tromey.com>
3110
3111 * tui/tui-windata.c (tui_display_data_from)
3112 (tui_data_window::do_scroll_vertical): Update.
3113 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
3114 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
3115 Rename from tui_line_from_reg_element_no.
3116 (tui_display_registers_from_line): Update.
3117 * tui/tui-data.h (struct tui_data_window)
3118 <line_from_reg_element_no>: New method.
3119
0b5ec218
TT
31202019-07-17 Tom Tromey <tom@tromey.com>
3121
3122 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
3123 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
3124 tui_last_regs_line_no.
3125 (tui_display_reg_element_at_line)
3126 (tui_display_registers_from_line): Update.
3127 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
3128 method.
3129
0807ab7b
TT
31302019-07-17 Tom Tromey <tom@tromey.com>
3131
3132 PR tui/24722:
3133 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
3134 (tui_update_breakpoint_info): Add "being_deleted" parameter.
3135 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3136 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
3137 (tui_update_breakpoint_info): Likewise.
3138 * tui/tui-hooks.c (tui_event_create_breakpoint)
3139 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
3140 Update.
3141
9ad7fdef
TT
31422019-07-17 Tom Tromey <tom@tromey.com>
3143
3144 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
3145
5813316f
TT
31462019-07-17 Tom Tromey <tom@tromey.com>
3147
3148 * tui/tui-winsource.c (tui_update_source_window_as_is)
3149 (tui_update_source_windows_with_addr): Update.
3150 * tui/tui-source.h (tui_set_source_content)
3151 (tui_show_symtab_source): Add "win_info" parameter.
3152 * tui/tui-source.c (tui_set_source_content): Add "win_info"
3153 parameter.
3154 (tui_show_symtab_source): Likewise.
3155
00e264e7
TT
31562019-07-17 Tom Tromey <tom@tromey.com>
3157
3158 * tui/tui-wingeneral.c
3159 (tui_check_and_display_highlight_if_needed): Check can_highlight.
3160
06210ce4
TT
31612019-07-17 Tom Tromey <tom@tromey.com>
3162
3163 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
3164 (struct tui_cmd_window) <can_scroll>: New method.
3165 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
3166 method.
3167
381befee
TT
31682019-07-17 Tom Tromey <tromey@adacore.com>
3169
3170 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
3171 do_field_signed>: Rename. Change type of "value".
3172 * ui-out.c (ui_out::field_signed): Rename from field_int.
3173 Change type of "value".
3174 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
3175 type of "value".
3176 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
3177 do_field_int. Change type of "value".
3178 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
3179 do_field_int. Change type of "value".
3180 * tracepoint.c (trace_status_mi, tfind_1)
3181 (print_one_static_tracepoint_marker): Update.
3182 * thread.c (print_thread_info_1, print_selected_thread_frame):
3183 Update.
3184 * stack.c (print_frame, print_frame_info): Update.
3185 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
3186 Update.
3187 * source.c (print_source_lines_base): Update.
3188 * skip.c (info_skip_command): Update.
3189 * record-btrace.c (btrace_ui_out_decode_error)
3190 (btrace_call_history_src_line): Update.
3191 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
3192 Update.
3193 * progspace.c (print_program_space): Update.
3194 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
3195 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
3196 do_field_int. Change type of "value".
3197 * mi/mi-out.c (mi_ui_out::do_table_begin)
3198 (mi_ui_out::do_table_header): Update.
3199 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
3200 type of "value".
3201 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
3202 (mi_cmd_data_list_changed_registers, output_register)
3203 (mi_cmd_data_read_memory, mi_load_progress)
3204 (mi_cmd_trace_frame_collected): Update.
3205 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
3206 Update.
3207 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3208 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
3209 (mi_cmd_var_list_children, varobj_update_one): Update.
3210 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
3211 (mi_cmd_stack_list_args, list_arg_or_local): Update.
3212 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
3213 * inferior.c (print_inferior): Update.
3214 * gdb_bfd.c (print_one_bfd): Update.
3215 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3216 Update.
3217 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
3218 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
3219 do_field_int. Change type of "value".
3220 * cli-out.c (cli_ui_out::do_field_signed): Rename from
3221 do_field_int. Change type of "value".
3222 * breakpoint.c (watchpoint_check, print_breakpoint_location)
3223 (print_one_breakpoint_location, print_it_catch_fork)
3224 (print_one_catch_fork, print_it_catch_vfork)
3225 (print_one_catch_vfork, print_it_catch_solib)
3226 (print_it_catch_exec, print_it_ranged_breakpoint)
3227 (print_mention_watchpoint, print_mention_masked_watchpoint)
3228 (bkpt_print_it, update_static_tracepoint): Update.
3229 * break-catch-throw.c (print_it_exception_catchpoint): Update.
3230 * break-catch-syscall.c (print_it_catch_syscall): Update.
3231 * ada-tasks.c (print_ada_task_info): Update.
3232 * ada-lang.c (print_it_exception, print_mention_exception):
3233 Update.
3234
6b78c3f8
AB
32352019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3236
3237 PR breakpoints/24541
3238 * gdbarch.c: Regenerate.
3239 * gdbarch.h: Regenerate.
3240 * gdbarch.sh: Adjust return type and parameter types for
3241 'stap_adjust_register'.
3242 (i386_stap_adjust_register): Adjust signature and return new
3243 register name.
3244 * stap-probe.c (stap_parse_register_operand): Adjust use of
3245 'gdbarch_stap_adjust_register'.
3246
d72a9b85
TT
32472019-07-17 Tom Tromey <tromey@adacore.com>
3248
3249 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
3250 declare VEC.
3251 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
3252 std::vector.
3253 (struct s390_process_info): Add initializers.
3254 (s390_add_process): Use new.
3255 (s390_linux_nat_target::low_forget_process): Use delete.
3256 (s390_linux_nat_target::low_new_fork)
3257 (s390_linux_nat_target::stopped_by_watchpoint)
3258 (s390_linux_nat_target::low_prepare_to_resume)
3259 (s390_linux_nat_target::insert_watchpoint)
3260 (s390_linux_nat_target::insert_hw_breakpoint)
3261 (s390_linux_nat_target::remove_watchpoint)
3262 (s390_linux_nat_target::remove_hw_breakpoint): Update.
3263
206e6c58
JB
32642019-07-16 John Baldwin <jhb@FreeBSD.org>
3265
3266 * aarch64-fbsd-nat.c: Include regcache.h.
3267 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
3268 argument.
3269 (aarch64_fbsd_nat_target::fetch_registers)
3270 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
3271 variable.
3272 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
3273
cbde90f2
JB
32742019-07-16 John Baldwin <jhb@FreeBSD.org>
3275
3276 * fbsd-nat.c: Include gdbarch.h.
3277
07128006
TT
32782019-07-15 Tom Tromey <tromey@adacore.com>
3279
3280 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
3281
1f77b012
TT
32822019-07-15 Tom Tromey <tromey@adacore.com>
3283
3284 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
3285 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
3286 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
3287 * cli-out.c (cli_ui_out::do_field_int): New method.
3288 * ui-out.c (ui_out::field_unsigned): New method.
3289 * symfile.c (generic_load): Use field_unsigned.
3290 (print_transfer_performance): Likewise.
3291 * record-btrace.c (ui_out_field_uint): Remove.
3292 (btrace_call_history_insn_range, btrace_call_history): Use
3293 field_unsigned.
3294 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3295 field_unsigned.
3296 * ui-out.h (class ui_out) <field_unsigned>: New method.
3297 <do_field_unsigned>: Likewise.
3298
33eca680
TT
32992019-07-15 Tom Tromey <tromey@adacore.com>
3300
3301 * mi/mi-main.c (list_available_thread_groups): Use field_string.
3302 * mi/mi-interp.c (mi_memory_changed): Use field_string.
3303 * target.c (flash_erase_command): Use field_string.
3304 * infrun.c (print_signal_received_reason): Use field_string.
3305 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
3306 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
3307 field_string.
3308 * ada-tasks.c (print_ada_task_info): Use field_string.
3309
ca8d69be
TT
33102019-07-15 Tom Tromey <tromey@adacore.com>
3311
3312 * target.c (flash_erase_command): Use field_core_addr.
3313 * symfile.c (generic_load): Use field_core_addr.
3314 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3315 Use field_core_addr.
3316 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
3317 field_core_addr.
3318
0d4e84ed
AB
33192019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3320
3321 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
3322 value if its desired type is smaller than a CORE_ADDR and signed.
3323
9a49df9d
AB
33242019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3325
3326 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
3327 of changes to field names, and use new is_reference field to
3328 decide if a property is a reference or not.
3329 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
3330 field.
3331 (struct dwarf2_property_baton): Update header comment, rename
3332 'referenced_type' to 'property_type' and update comments.
3333 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
3334 default property type, store in property baton, update to take
3335 accound of renamed field.
3336 (read_func_scope): Update call to attr_to_dynamic_prop.
3337 (read_array_type): Likewise.
3338 (dwarf2_per_cu_addr_sized_int_type): New function.
3339 (read_subrange_index_type): Move type finding code to
3340 dwarf2_per_cu_addr_sized_int_type.
3341 (read_subrange_type): Update calls to attr_to_dynamic_prop.
3342 (dwarf2_per_cu_addr_type): New function.
3343 (set_die_type): Update calls to attr_to_dynamic_prop.
3344
b86352cf
AB
33452019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3346
3347 * dwarf2read.c (read_subrange_index_type): New function.
3348 (read_subrange_type): Move code into new function and call it.
3349 * gdbtypes.c (create_range_type): Add some asserts.
3350
603490bf
AB
33512019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3352
3353 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
3354 update return statements.
3355 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
3356 declaration, and update comment to match.
3357 * gdbtypes.c (resolve_dynamic_array): Update call to
3358 dwarf2_evaluate_property to match new return type.
3359
592f9d27
AB
33602019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3361
3362 * valarith.c (value_subscripted_rvalue): Change lowerbound
3363 parameter type from int to LONGEST.
3364 * value.h (value_subscripted_rvalue): Likewise in declaration.
3365
60cfcb20
AB
33662019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3367
3368 * cli/cli-utils.c (info_print_command_completer): New function.
3369 * cli/cli-utils.h: Add 'completer.h' include, and forward
3370 declaration for 'struct cmd_list_element'.
3371 (info_print_command_completer): Declare.
3372 * stack.c (_initialize_stack): Add completer for 'info locals' and
3373 'info args'.
3374 * symtab.c (_initialize_symtab): Add completer for 'info
3375 variables' and 'info functions'.
3376 * NEWS: Mention completion for additional info commands.
3377
b16507e0
AB
33782019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3379
3380 * cli/cli-utils.c (extract_info_print_args): Delete.
3381 (extract_arg_maybe_quoted): Delete.
3382 (info_print_options_defs): New variable.
3383 (make_info_print_options_def_group): New function.
3384 (extract_info_print_options): Define new function.
3385 * cli/cli-utils.h (extract_info_print_args): Delete.
3386 (struct info_print_options): New structure.
3387 (extract_info_print_options): Declare new function.
3388 * stack.c (info_locals_command): Update to use new
3389 extract_info_print_options, also add a header comment.
3390 (info_args_command): Likewise.
3391 * symtab.c (info_variables_command): Likewise.
3392 (info_functions_command): Likewise.
3393
021d8588
AB
33942019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3395
3396 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
3397 to extract string arguments.
3398 * common/common-utils.c (extract_string_maybe_quoted): New function.
3399 * common/common-utils.h (extract_string_maybe_quoted): Declare.
3400
b777eb6d
TT
34012019-07-11 Tom Tromey <tromey@adacore.com>
3402
3403 * main.c (get_init_files): Use GDBINIT, not gdbinit.
3404 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
3405 * top.h (gdbinit): Don't declare.
3406 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
3407 into...
3408 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
3409 * top.c (gdb_init): Don't call init_cli_cmds.
3410 (gdbinit): Remove.
3411 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
3412
72ee03ff
TT
34132019-07-11 Tom Tromey <tromey@adacore.com>
3414
3415 * python/py-inferior.c (add_thread_object): Don't use thread_obj
3416 after it has been moved.
3417
00db9531
SM
34182019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3419
3420 * valops.c (value_must_coerce_to_target): Change return type to
3421 bool.
3422 * value.h (value_must_coerce_to_target): Likewise.
3423
f2478a7e
SM
34242019-07-10 Simon Marchi <simon.marchi@efficios.com>
3425
3426 * breakpoint.c (is_hardware_watchpoint): Remove
3427 forward-declaration.
3428 (is_masked_watchpoint): Change return type to bool.
3429 (is_tracepoint): Likewise.
3430 (is_breakpoint): Likewise.
3431 (is_hardware_watchpoint): Likewise.
3432 (is_watchpoint): Likewise.
3433 (is_no_memory_software_watchpoint): Likewise.
3434 (is_catchpoint): Likewise.
3435 (breakpoint_1): Make FILTER parameter's return type bool.
3436 is_masked_watchpoint): Change return type to bool.
3437 (save_breakpoints): Make FILTER parameter's return type bool.
3438 * breakpoint.h (is_breakpoint): Change return type to bool.
3439 (is_watchpoint): Likewise.
3440 (is_catchpoint): Likewise.
3441 (is_tracepoint): Likewise.
3442
0d12e84c
TT
34432019-07-10 Tom Tromey <tom@tromey.com>
3444
3445 * defs.h: Don't include gdbarch.h.
3446 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
3447 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
3448 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
3449 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
3450 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
3451 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
3452 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
3453 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
3454 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
3455 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
3456 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
3457 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
3458 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
3459 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
3460 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
3461 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
3462 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
3463 record-btrace.c, record.h, regcache-dump.c, regcache.h,
3464 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
3465 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
3466 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
3467 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
3468 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
3469 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
3470 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
3471 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
3472 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
3473
f06f1252
TT
34742019-07-10 Tom Tromey <tromey@adacore.com>
3475
3476 * ada-lang.h (is_ada_exception_catchpoint): Declare.
3477 * breakpoint.c (init_ada_exception_breakpoint): Register as
3478 bp_catchpoint.
3479 (print_one_breakpoint_location, print_one_breakpoint): Use
3480 is_ada_exception_catchpoint.
3481 * ada-lang.c (class ada_catchpoint_location): Pass
3482 bp_loc_software_breakpoint to bp_location constructor.
3483 (is_ada_exception_catchpoint): New function.
3484
7a5d944b
TT
34852019-07-10 Tom Tromey <tromey@adacore.com>
3486
3487 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
3488 VEC.
3489 (struct arm_exidx_entry): New method operator<.
3490 (struct arm_exidx_data) <section_maps>: Change type.
3491 (arm_exidx_data_free): Remove.
3492 (arm_exidx_data_key): Change type. Move lower.
3493 (arm_exidx_new_objfile): Update.
3494 (arm_compare_exidx_entries): Remove.
3495 (arm_find_exidx_entry, _initialize_arm_tdep)
3496
48c66e1d
TT
34972019-07-10 Tom Tromey <tromey@adacore.com>
3498
3499 * solib-spu.c (ocl_program_data_key): Change type.
3500 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
3501 Update.
3502
a269fbf1
TT
35032019-07-10 Tom Tromey <tromey@adacore.com>
3504
3505 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
3506 (struct solib_aix_inferior_data) <library_list>: Change type.
3507 (solib_aix_inferior_data_handle): Change type.
3508 (get_solib_aix_inferior_data): Update.
3509 (solib_aix_free_library_list): Remove.
3510 (library_list_start_library): Update.
3511 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
3512 return type.
3513 (solib_aix_get_library_list)
3514 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
3515 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
3516
c294730c
TT
35172019-07-10 Tom Tromey <tromey@adacore.com>
3518
3519 * solib-dsbt.c (struct dsbt_info): Add initializers.
3520 (solib_dsbt_pspace_data): Change type.
3521 (dsbt_pspace_data_cleanup): Remove.
3522 (get_dsbt_info, _initialize_dsbt_solib): Update.
3523
9d52077d
TT
35242019-07-10 Tom Tromey <tromey@adacore.com>
3525
3526 * spu-tdep.c (spu_overlay_data): Change type.
3527 (spu_get_overlay_table, spu_overlay_new_objfile)
3528 (_initialize_spu_tdep): Update.
3529
22a20dca
TT
35302019-07-10 Tom Tromey <tromey@adacore.com>
3531
3532 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
3533 destructor.
3534 (dbx_objfile_data_key): Change type and declare later.
3535 (DBX_SYMFILE_INFO): Rewrite.
3536 * dbxread.c (dbx_objfile_data_key): Change type.
3537 (dbx_symfile_init): Update.
3538 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
3539 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3540 (stabsect_build_psymtabs, _initialize_dbxread): Update.
3541
cb60f420
TT
35422019-07-10 Tom Tromey <tromey@adacore.com>
3543
3544 * jit.c (jit_program_space_key): Change type. Move lower.
3545 (get_jit_program_space_data): Update.
3546 (jit_program_space_data_cleanup): Remove.
3547 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
3548 Update.
3549 (struct jit_program_space_data): Add initializers.
3550
51df2ae3
TT
35512019-07-10 Tom Tromey <tromey@adacore.com>
3552
3553 * solib-darwin.c (struct darwin_info): Add initializers.
3554 (solib_darwin_pspace_data): Change type.
3555 (darwin_pspace_data_cleanup): Remove.
3556 (get_darwin_info, _initialize_darwin_solib): Update.
3557
18101a35
TT
35582019-07-10 Tom Tromey <tromey@adacore.com>
3559
3560 * remote-sim.c (struct sim_inferior_data): Add initializers,
3561 constructor, and destructor.
3562 (sim_inferior_data_key): Change type. Move lower.
3563 (check_for_duplicate_sim_descriptor): Update.
3564 (get_sim_inferior_data): Use new. Update.
3565 (~sim_inferior_data_cleanup): Rename from
3566 sim_inferior_data_cleanup. Simplify.
3567 (gdbsim_close_inferior, simulator_command)
3568 (sim_command_completer, _initialize_remote_sim): Update.
3569 (next_pid, INITIAL_PID): Move earlier.
3570
05b08ac1
TT
35712019-07-10 Tom Tromey <tromey@adacore.com>
3572
3573 * python/python-internal.h (create_thread_object): Return
3574 gdbpy_ref.
3575 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
3576 * python/py-inferior.c (struct threadlist_entry): Add
3577 constructor.
3578 <thread_obj>: Now a gdbpy_ref.
3579 (thread_to_thread_object): Update.
3580 (add_thread_object): Use new.
3581 (delete_thread_object): Use delete.
3582 (infpy_threads): Update.
3583 (py_free_inferior): Update. Construct "inf_obj" after acquiring
3584 GIL.
3585
32372d80
TT
35862019-07-10 Tom Tromey <tromey@adacore.com>
3587
3588 * valops.c (value_cast): Specialize error message for Ada.
3589
5c458ae8
SM
35902019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3591
3592 * breakpoint.c (breakpoint_1): Update doc and parameter names.
3593
4c462cb0
SM
35942019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3595
3596 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
3597 bpstat_should_step): Return bool, adjust comments.
3598 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
3599 bpstat_should_step): Likewise.
3600
89abbcc2
AH
36012019-07-10 Alan Hayward <alan.hayward@arm.com>
3602
3603 * features/Makefile: Use feature target descriptions for Arm.
3604 * features/arm/arm-core.c: Generate new file.
3605 * features/arm/arm-fpa.c: Likewise.
3606 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
3607 * features/arm/arm-m-profile.c: Likewise.
3608 * features/arm/arm-vfpv2.c: Likewise.
3609 * features/arm/arm-vfpv3.c: Likewise.
3610 * features/arm/xscale-iwmmxt.c: Likewise.
3611 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
3612
166a82be
AH
36132019-07-10 Alan Hayward <alan.hayward@arm.com>
3614
3615 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
3616 ptrace earlier.
3617
9fb4c7e9
AH
36182019-07-10 Alan Hayward <alan.hayward@arm.com>
3619
3620 * features/aarch64-pauth.c: Regenerate.
3621
e2d0f980
SM
36222019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
3623
3624 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
3625 bool.
3626 (bpstat_what): Use false instead of 0.
3627
a38118e5
PA
36282019-07-09 Pedro Alves <palves@redhat.com>
3629
3630 * break-catch-throw.c (is_exception_catchpoint): New.
3631 * breakpoint.c (print_one_breakpoint_location): New parameter
3632 'raw_loc'. Handle it. Use
3633 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
3634 looking at the breakpoint's type.
3635 (print_one_breakpoint): If handling "maint info breakpoints", also
3636 print locations of exception catchpoints.
3637 * breakpoint.h (is_exception_catchpoint): Declare.
3638
cb1e4e32
PA
36392019-07-09 Pedro Alves <palves@redhat.com>
3640
3641 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
3642 "addr" field.
3643 (allocate_location_exception_catchpoint): New.
3644 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
3645 (initialize_throw_catchpoint_ops): Install
3646 allocate_location_exception_catchpoint as allocate_location
3647 method.
3648 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
3649 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
3650 bp_loc_other.
3651 (breakpoint_address_is_meaningful): Delete.
3652 (bl_address_is_meaningful): New.
3653 (breakpoint_locations_match): Adjust comment.
3654 (bp_location_from_bp_type): New, factored out of...
3655 (bp_location::bp_location(breakpoint *)): ... this.
3656 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
3657 factored out of...
3658 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
3659 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
3660 breakpoint_address_is_meaningful.
3661 (bp_locations_compare): Adjust comment.
3662 (update_global_location_list): Use bl_address_is_meaningful
3663 instead of breakpoint_address_is_meaningful.
3664 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
3665 explicit.
3666 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
3667 * python/py-breakpoint.c (bppy_get_location): No longer check
3668 whether location is null.
3669
b58a68fe
PA
36702019-07-09 Pedro Alves <palves@redhat.com>
3671
3672 PR c++/15468
3673 * breakpoint.c (print_one_breakpoint_location): Remove
3674 single-location assert.
3675
268a13a5
TT
36762019-07-09 Tom Tromey <tom@tromey.com>
3677
3678 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
3679 * configure: Rebuild.
3680 * configure.ac: Change common to gdbsupport.
3681 * gdbsupport: Rename from common.
3682 * acinclude.m4: Change common to gdbsupport.
3683 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
3684 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
3685 gdbsupport.
3686 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
3687 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
3688 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
3689 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
3690 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
3691 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
3692 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
3693 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
3694 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
3695 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
3696 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
3697 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
3698 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
3699 coff-pe-read.c, command.h, compile/compile-c-support.c,
3700 compile/compile-c.h, compile/compile-cplus-symbols.c,
3701 compile/compile-cplus-types.c, compile/compile-cplus.h,
3702 compile/compile-loc2c.c, compile/compile.c, completer.c,
3703 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
3704 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
3705 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
3706 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
3707 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
3708 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
3709 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
3710 features/aarch64-core.c, features/aarch64-fpu.c,
3711 features/aarch64-pauth.c, features/aarch64-sve.c,
3712 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
3713 features/i386/32bit-core.c, features/i386/32bit-linux.c,
3714 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
3715 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
3716 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
3717 features/i386/64bit-core.c, features/i386/64bit-linux.c,
3718 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
3719 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
3720 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
3721 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
3722 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
3723 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
3724 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
3725 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
3726 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
3727 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
3728 go32-nat.c, guile/guile.c, guile/scm-ports.c,
3729 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
3730 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
3731 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
3732 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
3733 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
3734 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
3735 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
3736 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
3737 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
3738 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
3739 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
3740 minsyms.c, mips-linux-tdep.c, namespace.h,
3741 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
3742 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
3743 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
3744 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
3745 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
3746 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
3747 nat/linux-waitpid.c, nat/mips-linux-watch.c,
3748 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
3749 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
3750 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
3751 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
3752 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
3753 procfs.c, producer.c, progspace.h, psymtab.h,
3754 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
3755 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
3756 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
3757 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
3758 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
3759 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
3760 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
3761 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
3762 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
3763 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
3764 target-memory.c, target.c, target.h, target/waitstatus.c,
3765 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
3766 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
3767 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
3768 unittests/array-view-selftests.c,
3769 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
3770 unittests/common-utils-selftests.c,
3771 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
3772 unittests/format_pieces-selftests.c,
3773 unittests/function-view-selftests.c,
3774 unittests/lookup_name_info-selftests.c,
3775 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
3776 unittests/mkdir-recursive-selftests.c,
3777 unittests/observable-selftests.c,
3778 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
3779 unittests/parse-connection-spec-selftests.c,
3780 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
3781 unittests/scoped_fd-selftests.c,
3782 unittests/scoped_mmap-selftests.c,
3783 unittests/scoped_restore-selftests.c,
3784 unittests/string_view-selftests.c, unittests/style-selftests.c,
3785 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
3786 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
3787 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
3788 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
3789 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
3790 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
3791
5b0e2db4
AB
37922019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3793
3794 * linespec.c (decode_digits_list_mode): Set explicit_line to a
3795 bool value.
3796 (decode_digits_ordinary): Set explicit_line field in sal.
3797 * symtab.c (skip_prologue_sal): Don't skip prologue for a
3798 symtab_and_line that was set on an explicit line number in
3799 assembler code. Do always update the recorded symtab and line if
3800 we do skip the prologue.
3801
0ba852ab
AB
38022019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3803
3804 * breakpoint.c (set_breakpoint_location_function): Remove
3805 explicit_loc parameter.
3806 (momentary_breakpoint_from_master): Update call to
3807 set_breakpoint_location_function.
3808 (add_location_to_breakpoint): Likewise.
3809
b3a7d171
AB
38102019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3811
3812 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
3813 required features based on default bfd type when no specific bfd
3814 is present.
3815
1f6f6e21
PW
38162019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3817
3818 * NEWS: Mention that GDB printf and eval commands can now print
3819 C-style and Ada-style convenience var strings without
3820 calling the inferior.
3821 * printcmd.c (printf_c_string): Locally print GDB internal var
3822 instead of transiting via the inferior.
3823 (printf_wide_c_string): Likewise.
3824
38252019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
3826
3827 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
3828
0598af48
TT
38292019-07-04 Tom Tromey <tom@tromey.com>
3830
3831 PR tui/24724:
3832 * tui/tui-winsource.c (tui_clear_source_content): Update.
3833 (tui_source_window_base::set_is_exec_point_at): Fix comment.
3834 (tui_update_breakpoint_info): Update.
3835 (tui_set_exec_info_content): Update.
3836 * tui/tui-source.c (tui_set_source_content_nil): Update.
3837 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
3838 has_break.
3839 * tui/tui-data.h (enum tui_bp_flag): New.
3840 (tui_bp_flags): New enum flags type.
3841 (struct tui_source_element) <break_mode>: Change type. Rename
3842 from has_break.
3843 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
3844 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
3845 constants.
3846 * tui/tui-winsource.h: Fix comment.
3847
350fab54
AH
38482019-07-04 Alan Hayward <alan.hayward@arm.com>
3849
3850 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
3851 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
3852 (store_fpregs_to_thread)
3853 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3854 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
3855 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
3856 (IWMMXT_REGS_SIZE): Add define.
3857 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
3858 (fetch_vfp_regs, store_vfp_regs)
3859 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3860 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
3861
f0452268
AH
38622019-07-04 Alan Hayward <alan.hayward@arm.com>
3863
3864 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
3865 defines.
3866 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
3867 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
3868 (ARM_INT_REGISTER_SIZE): ...to this.
3869 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
3870 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
3871 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
3872 (arm_linux_collect_gregset, supply_nwfpe_register)
3873 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
3874 defines.
3875 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
3876 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
3877 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
3878 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
3879 (arm_return_in_memory, arm_store_return_value)
3880 (arm_get_longjmp_target, arm_register_g_packet_guesses)
3881 (arm_record_ld_st_multiple): Likewise.
3882 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
3883 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
3884
e935475c
AH
38852019-07-04 Alan Hayward <alan.hayward@arm.com>
3886
3887 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
3888 AARCH64_DISPLACED_MODIFIED_INSNS.
3889 * aarch64-tdep.c (struct aarch64_displaced_step_data)
3890 (aarch64_displaced_step_copy_insn): Likewise.
3891 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3892 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
3893 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
3894 ARM_DISPLACED_MODIFIED_INSNS.
3895 * arm-tdep.c (arm_gdbarch_init): Likewise.
3896 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3897 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
3898 (struct arm_displaced_step_closure): Use
3899 ARM_DISPLACED_MODIFIED_INSNS.
3900
df0bb381
AH
39012019-07-04 Alan Hayward <alan.hayward@arm.com>
3902
3903 * features/Makefile: Remove unused xml files.
3904 * features/aarch64.xml: Remove.
3905 * features/i386/amd64-avx-avx512-linux.xml: Remove.
3906 * features/i386/amd64-avx-avx512.xml: Remove.
3907 * features/i386/amd64-avx-linux.xml: Remove.
3908 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
3909 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
3910 * features/i386/amd64-avx-mpx-linux.xml: Remove.
3911 * features/i386/amd64-avx-mpx.xml: Remove.
3912 * features/i386/amd64-avx.xml: Remove.
3913 * features/i386/amd64-linux.xml: Remove.
3914 * features/i386/amd64-mpx-linux.xml: Remove.
3915 * features/i386/amd64-mpx.xml: Remove.
3916 * features/i386/amd64.xml: Remove.
3917 * features/i386/i386-avx-avx512-linux.xml: Remove.
3918 * features/i386/i386-avx-avx512.xml: Remove.
3919 * features/i386/i386-avx-linux.xml: Remove.
3920 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
3921 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
3922 * features/i386/i386-avx-mpx-linux.xml: Remove.
3923 * features/i386/i386-avx-mpx.xml: Remove.
3924 * features/i386/i386-avx.xml: Remove.
3925 * features/i386/i386-linux.xml: Remove.
3926 * features/i386/i386-mmx-linux.xml: Remove.
3927 * features/i386/i386-mmx.xml: Remove.
3928 * features/i386/i386-mpx-linux.xml: Remove.
3929 * features/i386/i386-mpx.xml: Remove.
3930 * features/i386/i386.xml: Remove.
3931 * features/i386/x32-avx-avx512-linux.xml: Remove.
3932 * features/i386/x32-avx-linux.xml: Remove.
3933 * features/i386/x32-linux.xml: Remove.
3934
edd6266a
AH
39352019-07-04 Alan Hayward <alan.hayward@arm.com>
3936
3937 * regformats/aarch64.dat: Remove.
3938 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
3939 * regformats/i386/amd64-avx-linux.dat: Remove.
3940 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
3941 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
3942 * regformats/i386/amd64-linux.dat: Remove.
3943 * regformats/i386/amd64-mpx-linux.dat: Remove.
3944 * regformats/i386/amd64.dat: Remove.
3945 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
3946 * regformats/i386/i386-avx-linux.dat: Remove.
3947 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
3948 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
3949 * regformats/i386/i386-linux.dat: Remove.
3950 * regformats/i386/i386-mmx-linux.dat: Remove.
3951 * regformats/i386/i386-mpx-linux.dat: Remove.
3952 * regformats/i386/i386.dat: Remove.
3953 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
3954 * regformats/i386/x32-avx-linux.dat: Remove.
3955 * regformats/i386/x32-linux.dat: Remove.
3956
2b40fda7
AH
39572019-07-04 Alan Hayward <alan.hayward@arm.com>
3958
3959 * aarch64-tdep.c: Remove xml self tests.
3960 * amd64-linux-tdep.c: Likewise.
3961 * amd64-tdep.c: Likewise.
3962 * i386-linux-tdep.c: Likewise.
3963 * i386-tdep.c: Likewise.
3964
5f4ba3e7
PA
39652019-07-03 Pedro Alves <palves@redhat.com>
3966
3967 PR cli/24732
3968 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
3969 (pipe_cmd_option_defs): New.
3970 (make_pipe_cmd_options_def_group): New.
3971 (pipe_command): Use gdb::option::process_options.
3972 (pipe_command_completer): New function.
3973 (_initialize_cli_cmds): Install completer for "pipe" command.
3974
3d9be6f5
PA
39752019-07-03 Pedro Alves <palves@redhat.com>
3976
3977 * cli/cli-option.c (union option_value) <string>: New field.
3978 (struct option_def_and_value): Add ctor, move ctor, dtor and
3979 use DISABLE_COPY_AND_ASSIGN.
3980 (option_def_and_value::clear_value): New.
3981 (parse_option, save_option_value_in_ctx, get_val_type_str)
3982 (add_setshow_cmds_for_options): Handle var_string.
3983 * cli-option.h (union option_def::var_address) <string>: New
3984 field.
3985 (struct string_option_def): New.
3986 * maint-test-options.c (struct test_options_opts): Add default
3987 ctor and use DISABLE_COPY_AND_ASSIGN.
3988 <string_opt>: New field.
3989 (test_options_opts::~test_options_opts): New.
3990 (test_options_opts::dump): Also dump "-string".
3991 (test_options_option_defs): Install "string.
3992
41fc454c
PA
39932019-07-03 Pedro Alves <palves@redhat.com>
3994
3995 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
3996 option_value with a null enumeration.
3997 (complete_options): Save the option values in the context.
3998 (save_option_value_in_ctx): New, factored out from ...
3999 (process_options): ... here.
4000 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
4001 of the function.
4002 * maint-test-options.c (test_options_opts::dump): New, factored
4003 out from ...
4004 (maintenance_test_options_command_mode): ... here.
4005 (maintenance_test_options_command_completion_result): Delete.
4006 (maintenance_test_options_command_completion_text): Update
4007 comment.
4008 (maintenance_show_test_options_completion_result): Change
4009 prototype. Just print
4010 maintenance_test_options_command_completion_text.
4011 (save_completion_result): New.
4012 (maintenance_test_options_completer_mode): Pass options context to
4013 complete_options, and then save a dump.
4014 (_initialize_maint_test_options): Use add_cmd to install "maint
4015 show test-options-completion-result".
4016
fdbc9870
PA
40172019-07-03 Pedro Alves <palves@redhat.com>
4018
4019 * NEWS (New commands): Mention "with" and "maint with".
4020 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
4021 (with_command, with_command_completer): New.
4022 (pipe_command): Adjust to new repeat_previous
4023 interface.
4024 (_initialize_cli_cmds): Install the "with" command and its "w"
4025 alias.
4026 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
4027 declarations.
4028 * cli/cli-setshow.c (parse_cli_var_uinteger)
4029 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
4030 argument strings for all var_types.
4031 (get_setshow_command_value_string): New, factored out from ...
4032 (do_show_command): ... this.
4033 * cli/cli-setshow.h: Include <string>.
4034 (get_setshow_command_value_string): Declare.
4035 * command.h (repeat_previous): Now returns const char *. Adjust
4036 comment.
4037 * maint.c: Include "cli/cli-cmds.h".
4038 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
4039 (_initialize_maint_cmds): Register the "maintenance with" command.
4040 * top.c (repeat_previous): Move bits from pipe_command here:
4041 Return the saved command line, if any; error out if there's no
4042 command to relaunch.
4043
c6ac8931
PA
40442019-07-03 Pedro Alves <palves@redhat.com>
4045
4046 * NEWS (New commands): Mention "maint set/show test-settings"
4047 instead of "maint test-settings".
4048 * maint-test-settings.c (maintenance_test_settings_list): Delete.
4049 (maintenance_test_settings_set_list): Rename to ...
4050 (maintenance_set_test_settings_list): ... this.
4051 (maintenance_test_settings_show_list): Rename to ...
4052 (maintenance_show_test_settings_list): ... this.
4053 (maintenance_test_settings_cmd): Delete.
4054 (maintenance_test_settings_set_cmd): ...
4055 (maintenance_set_test_settings_cmd): ... this.
4056 (maintenance_test_settings_show_cmd): ...
4057 (maintenance_show_test_settings_cmd): ... this.
4058 (maintenance_test_settings_show_value_cmd):
4059 (maintenance_show_test_settings_value_cmd): ... this.
4060 (_initialize_maint_test_settings): No longer install the "maint
4061 test-settings" prefix command. Rename "maint test-settings set"
4062 to "maint set test-settings", and "maint test-settings show" to
4063 "maint show test-settings". Adjust all subcommands.
4064
d1fcf2fd
PA
40652019-07-03 Pedro Alves <palves@redhat.com>
4066
4067 * maint-test-settings.c: Fix file's intro comment. Replace all
4068 references to "test-options" with references to "test-settings",
4069 in comments.
4070
970f9d09
PA
40712019-07-03 Pedro Alves <palves@redhat.com>
4072
4073 * maint-test-settings.c (maintenance_test_settings_xxx)
4074 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
4075 New.
4076 (maintenance_test_settings_enums): Use them.
4077 (maintenance_test_settings_enum): Default to
4078 maintenance_test_settings_xxx.
4079 (_initialize_maint_test_settings): Initialize
4080 MAINTENANCE_TEST_SETTINGS_FILENAME.
4081
f3869b1a
SM
40822019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4083
4084 * breakpoint.h (remove_breakpoints_inf): Change return type to
4085 void, move function documentation here.
4086 * breakpoint.c (remove_breakpoints_inf): Change return type to
4087 void, move function documentation to header.
4088
54d66006
PA
40892019-07-02 Pedro Alves <palves@redhat.com>
4090
4091 * NEWS (Completion improvements): Mention "info threads".
4092 * thread.c (struct info_threads_opts, info_threads_option_defs)
4093 (make_info_threads_options_def_group): New.
4094 (info_threads_command): Use gdb::option::process_options.
4095 (info_threads_command_completer): New.
4096 (_initialize_thread): Use gdb::option::build_help to build the
4097 help text for "info threads".
4098
854f6088
SM
40992019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4100
4101 * defs.h (generic_load): Move from here...
4102 * symfile.h (generic_load): ... to here. Rename name parameter
4103 to args.
4104 * symfile.c (generic_load): Add comment.
4105
54ee4252
TT
41062019-07-01 Tom Tromey <tromey@adacore.com>
4107
4108 * dwarf2read.c
4109 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
4110 declaration of without_params. Fix formatting.
4111
65392b3e
TT
41122019-07-01 Tom Tromey <tromey@adacore.com>
4113
4114 * ada-exp.y (find_primitive_type): Update.
4115 * ada-lang.h (ada_lookup_symbol): Update.
4116 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
4117 parameter.
4118 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
4119
7d7571f0
SDJ
41202019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4121
4122 PR breakpoints/24541
4123 * gdbarch.c: Regenerate.
4124 * gdbarch.h: Regenerate.
4125 * gdbarch.sh: Add 'stap_adjust_register'.
4126 * i386-tdep.c: Include '<unordered_set>'.
4127 (i386_stap_adjust_register): New function.
4128 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
4129 * stap-probe.c (stap_parse_register_operand): Call
4130 'gdbarch_stap_adjust_register'.
4131
5af5392a
SDJ
41322019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4133
4134 PR python/24742
4135 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
4136 * python/python.c (do_start_initialization): Use 'xmalloc'
4137 instead of 'PyMem_Malloc'.
4138
10d06d82
TT
41392019-06-28 Tom Tromey <tromey@adacore.com>
4140
4141 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
4142 for Ada.
4143
1b7f24cd
TT
41442019-06-27 Tom Tromey <tromey@adacore.com>
4145
4146 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
4147 objfile_key.
4148 (arm_find_mapping_symbol, arm_record_special_symbol)
4149 (_initialize_arm_tdep): Update.
4150 (arm_objfile_data_free): Remove.
4151
3d507ff2
TT
41522019-06-27 Tom Tromey <tromey@adacore.com>
4153
4154 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
4155 to cp_print_static_field.
4156
762c164d
TT
41572019-06-26 Tom Tromey <tromey@adacore.com>
4158
4159 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
4160 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
4161 declare.
4162
aa2f9bcf
AH
41632019-06-26 Alan Hayward <alan.hayward@arm.com>
4164
4165 * features/aarch64-core.c (create_feature_aarch64_core):
4166 Regenerate.
4167 * features/aarch64-core.xml: Add cpsr flags.
4168
3426ae57
AH
41692019-06-26 Alan Hayward <alan.hayward@arm.com>
4170
4171 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
4172 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
4173
4838e44c
SM
41742019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4175
4176 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
4177 field.
4178 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
4179 use.
4180 (arm_record_special_symbol): Don't insert new symbol in sorted
4181 position, push it at the end.
4182
54cc7474
SM
41832019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4184
4185 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
4186 (arm_mapping_symbol_s): Remove.
4187 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
4188 (arm_mapping_symbol_vec): New typedef.
4189 (struct arm_per_objfile): Add constructor.
4190 <section_maps>: Change type to
4191 std::unique_ptr<arm_mapping_symbol_vec[]>.
4192 (arm_compare_mapping_symbols): Remove.
4193 (arm_find_mapping_symbol): Adjust to section_maps type change.
4194 (arm_objfile_data_free): Call delete on arm_per_objfile.
4195 (arm_record_special_symbol): Adjust to section_maps type change.
4196 Allocate arm_per_objfile with new.
4197
b65b566c
PW
41982019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4199
4200 * cli/cli-cmds.c (alias_command): Compare the alias prefix
4201 with the command prefix.
4202
c2fc64f5
TT
42032019-06-25 Tom Tromey <tom@tromey.com>
4204
4205 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
4206 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
4207
fb54fa76
TT
42082019-06-25 Tom Tromey <tom@tromey.com>
4209
4210 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
4211 type.
4212 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
4213 protected.
4214
f7952c57
TT
42152019-06-25 Tom Tromey <tom@tromey.com>
4216
4217 * tui/tui-winsource.c
4218 (tui_source_window_base::set_is_exec_point_at): Add check against
4219 LOA_ADDRESS.
4220
17568d78
TT
42212019-06-25 Tom Tromey <tom@tromey.com>
4222
4223 * tui/tui-source.c (tui_set_source_content): Don't check before
4224 xfree.
4225 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
4226
53e7cdba
TT
42272019-06-25 Tom Tromey <tom@tromey.com>
4228
4229 * tui/tui-winsource.h (tui_update_source_window_as_is)
4230 (tui_alloc_source_buffer, tui_line_is_displayed)
4231 (tui_addr_is_displayed): Change type of win_info.
4232 * tui/tui-winsource.c (tui_update_source_window_as_is)
4233 (tui_clear_source_content, tui_show_source_line)
4234 (tui_show_source_content, tui_source_window_base::refill)
4235 (tui_source_window_base::set_is_exec_point_at)
4236 (tui_source_window_base::set_is_exec_point_at)
4237 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
4238 (tui_alloc_source_buffer, tui_line_is_displayed)
4239 (tui_addr_is_displayed): Change type of win_info. Update.
4240 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4241 (tui_source_window_base::do_make_visible_with_new_height):
4242 Update.
4243 * tui/tui-source.c (tui_set_source_content)
4244 (tui_set_source_content_nil)
4245 (tui_source_window::do_scroll_vertical): Update.
4246 * tui/tui-layout.c (show_layout): Update.
4247 * tui/tui-disasm.c (tui_set_disassem_content)
4248 (tui_disasm_window::do_scroll_vertical): Update.
4249 * tui/tui-data.h (tui_win_content): Remove.
4250 (struct tui_gen_win_info) <content, content_size>: Remove.
4251 (struct tui_source_element): Add initializers and destructor.
4252 (union tui_which_element, struct tui_win_element): Remove.
4253 (struct tui_source_window_base) <content>: New field.
4254 (struct tui_data_window): Remove destructor.
4255 (tui_alloc_content, tui_free_win_content)
4256 (tui_free_all_source_wins_content): Don't declare.
4257 * tui/tui-data.c (tui_initialize_static_data): Update.
4258 (init_content_element, tui_alloc_content): Remove.
4259 (~tui_gen_win_info): Update.
4260 (~tui_data_window, tui_free_all_source_wins_content)
4261 (tui_free_win_content, free_content, free_content_elements):
4262 Remove.
4263
7908abbf
TT
42642019-06-25 Tom Tromey <tom@tromey.com>
4265
4266 * tui/tui-winsource.h (tui_clear_source_content)
4267 (tui_erase_source_content, tui_show_source_content): Change type
4268 of win_info.
4269 * tui/tui-winsource.c (tui_clear_source_content)
4270 (tui_erase_source_content, tui_show_source_content): Change type
4271 of win_info.
4272 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4273 * tui/tui-source.h (tui_set_source_content_nil): Change type of
4274 win_info.
4275 * tui/tui-source.c (tui_set_source_content_nil): Change type of
4276 win_info.
4277 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
4278
02c28df0
TT
42792019-06-25 Tom Tromey <tom@tromey.com>
4280
4281 * tui/tui-winsource.c (tui_clear_source_content)
4282 (tui_source_window_base::set_is_exec_point_at): Update.
4283 * tui/tui-source.c (tui_set_source_content_nil): Update.
4284 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
4285 a bool.
4286 * tui/tui-data.c (init_content_element): Update.
4287
6658b1bf
TT
42882019-06-25 Tom Tromey <tom@tromey.com>
4289
4290 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
4291 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
4292 * tui/tui-layout.c (init_and_make_win): Update.
4293 * tui/tui.h (enum tui_win_type): Update.
4294 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
4295 tui_win_is_auxillary.
4296 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
4297 tui_win_is_auxillary.
4298
21e1c91e
TT
42992019-06-25 Tom Tromey <tom@tromey.com>
4300
4301 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
4302 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
4303 (tui_delete_data_content_windows, tui_display_all_data)
4304 (tui_data_window::do_scroll_vertical, tui_display_data_from):
4305 Update.
4306 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
4307 * tui/tui-regs.c (tui_last_regs_line_no)
4308 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4309 (tui_show_registers): Update.
4310 (tui_show_register_group): Return void. Update.
4311 (tui_display_registers_from, tui_display_reg_element_at_line)
4312 (tui_display_registers_from_line, tui_check_register_values):
4313 Update.
4314 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
4315 member.
4316 (struct tui_data_window) <regs_content>: Now a std::vector.
4317 <regs_content_count>: Remove.
4318 (tui_add_content_elements, tui_free_data_content): Don't declare.
4319 * tui/tui-data.c (tui_data_window::clear_detail): Update.
4320 (init_content_element): Remove DATA_WIN case. Add assert.
4321 (tui_add_content_elements): Remove.
4322 (tui_data_window): Update.
4323 (tui_free_data_content): Remove.
4324 (free_content_elements): Remove DATA_WIN case.
4325
115ac53b
TT
43262019-06-25 Tom Tromey <tom@tromey.com>
4327
4328 * tui/tui-data.c (tui_data_item_window): Update.
4329 * tui/tui-windata.h (tui_check_data_values): Don't declare.
4330 * tui/tui-windata.c (tui_display_all_data)
4331 (tui_display_data_from_line): Update.
4332 (tui_check_data_values): Remove.
4333 * tui/tui-regs.c (tui_show_register_group)
4334 (tui_display_reg_element_at_line): Update.
4335 * tui/tui-hooks.c (tui_register_changed)
4336 (tui_refresh_frame_and_register_information): Call
4337 tui_check_register_values.
4338 * tui/tui-data.h (struct tui_data_window) <data_content,
4339 data_content_count, data_type>: Remove.
4340 (enum tui_data_type): Remove.
4341
4342 * tui/tui-data.c (tui_data_window::clear_detail)
4343 (~tui_data_window): Update.
4344
eaf9738b
TT
43452019-06-25 Tom Tromey <tom@tromey.com>
4346
4347 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
4348 declare.
4349 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
4350 Rename from tui_first_data_item_displayed. Update.
4351 (tui_data_window::refresh_all)
4352 (tui_data_window::do_scroll_vertical): Update.
4353 * tui/tui-data.h (struct tui_data_window)
4354 <first_data_item_displayed>: Declare new method.
4355
31ca4723
TT
43562019-06-25 Tom Tromey <tom@tromey.com>
4357
4358 * tui/tui-data.h (tui_init_generic_part): Don't declare.
4359 * tui/tui-data.c (tui_init_generic_part): Remove, moving
4360 contents...
4361 (tui_initialize_static_data): ...here.
4362
41bcff7f
TT
43632019-06-25 Tom Tromey <tom@tromey.com>
4364
4365 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4366 (tui_display_registers_from, tui_check_register_values): Update.
4367 (tui_display_register): Remove win_info parameter; update.
4368 (tui_get_register): Change type of parameters.
4369 * tui/tui-data.h (struct tui_data_element): Remove.
4370 (union tui_which_element) <data>: Remove.
4371 <data_window>: Change type.
4372 (struct tui_data_item_window): New.
4373 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
4374 case. Add assert.
4375 (~tui_data_item_window): New destructor.
4376 (free_content_elements): Remove DATA_ITEM_WIN case.
4377
d2802c33
TT
43782019-06-25 Tom Tromey <tom@tromey.com>
4379
4380 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
4381 Remove.
4382
dd835f8b
TT
43832019-06-25 Tom Tromey <tom@tromey.com>
4384
4385 * tui/tui-data.h (struct tui_command_element): Remove.
4386 (union tui_which_element) <command>: Remove.
4387 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
4388 assert.
4389 (free_content_elements): Remove CMD_WIN case.
4390
bd7db367
TT
43912019-06-25 Tom Tromey <tom@tromey.com>
4392
4393 * tui/tui-layout.c (tui_set_layout): Update.
4394 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
4395 * tui/tui-data.c (layout_def): Update.
4396
3add462f
TT
43972019-06-25 Tom Tromey <tom@tromey.com>
4398
4399 * tui/tui-wingeneral.c (tui_refresh_all): Update.
4400 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4401 (tui_source_window_base::set_new_height): Update.
4402 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
4403 Update.
4404 (tui_set_locator_fullname, tui_set_locator_info)
4405 (tui_show_frame_info): Update.
4406 * tui/tui-source.c (tui_set_source_content)
4407 (tui_source_is_displayed): Update.
4408 * tui/tui-layout.c (show_source_disasm_command, show_data)
4409 (show_source_or_disasm_and_command): Update.
4410 * tui/tui-disasm.c (tui_set_disassem_content)
4411 (tui_get_begin_asm_address): Update.
4412 * tui/tui-data.h (struct tui_locator_element): Remove.
4413 (union tui_which_element) <locator>: Remove.
4414 (struct tui_locator_window): New.
4415 (tui_locator_win_info_ptr): Change return type.
4416 * tui/tui-data.c (_locator): Change type.
4417 (tui_locator_win_info_ptr): Change return type.
4418 (init_content_element): Remove LOCATOR_WIN case. Add assert.
4419 (tui_alloc_content): Add assert.
4420
489e9d8b
TT
44212019-06-25 Tom Tromey <tom@tromey.com>
4422
4423 * tui/tui-winsource.c
4424 (tui_exec_info_window::maybe_allocate_content): New method.
4425 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
4426 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
4427 (make_source_or_disasm_window): Add cast.
4428 * tui/tui-data.h (union tui_which_element) <simple_string>:
4429 Remove.
4430 (struct tui_source_info): New.
4431 (struct tui_source_window_base) <execution_info>: Change type.
4432 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
4433 case, and add assert.
4434 (tui_alloc_content): Add assert.
4435
c3fabb7d
TT
44362019-06-25 Tom Tromey <tom@tromey.com>
4437
4438 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
4439 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
4440 * tui/tui-data.c (tui_alloc_win_info): Remove.
4441
bbc228ee
TT
44422019-06-25 Tom Tromey <tom@tromey.com>
4443
4444 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
4445 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
4446 can_highlight.
4447
5fcee43a
TT
44482019-06-25 Tom Tromey <tom@tromey.com>
4449
4450 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
4451 make_visible_with_new_height method.
4452 (tui_win_info::make_visible_with_new_height): New method.
4453 (tui_source_window_base::do_make_visible_with_new_height)
4454 (tui_data_window::do_make_visible_with_new_height)
4455 (tui_cmd_window::do_make_visible_with_new_height): New methods.
4456 (make_visible_with_new_height): Remove.
4457 (tui_resize_all, tui_adjust_win_heights): Use
4458 make_visible_with_new_height method.
4459 * tui/tui-data.h (struct tui_win_info)
4460 <do_make_visible_with_new_height, make_visible_with_new_height>:
4461 New methods.
4462 (struct tui_source_window_base, struct tui_data_window)
4463 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
4464 methods.
4465
d83f1fe6
TT
44662019-06-25 Tom Tromey <tom@tromey.com>
4467
4468 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
4469 method.
4470 (update_tab_width): Call update_tab_width method.
4471 * tui/tui-data.h (struct tui_win_info)
4472 (struct tui_source_window_base) <update_tab_width>: New methods.
4473
17374de4
TT
44742019-06-25 Tom Tromey <tom@tromey.com>
4475
4476 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
4477 parameter.
4478 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
4479 parameter.
4480 (tui_gen_win_info::make_visible): Update.
4481 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
4482 parameter.
4483 * tui/tui-data.h (enum tui_box): New enum.
4484 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
4485
f936bca2
TT
44862019-06-25 Tom Tromey <tom@tromey.com>
4487
4488 * tui/tui-layout.c (make_source_or_disasm_window): Always use
4489 init_and_make_win for EXEC_INFO_WIN.
4490 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
4491 longer inline.
4492 (struct tui_win_info) <~tui_win_info>: Inline.
4493 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4494 Don't declare.
4495 * tui/tui-data.c (source_win, disasm_win): Remove globals.
4496 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4497 Remove.
4498 (tui_initialize_static_data): Update.
4499 (~tui_gen_win_info): Handle more cleanup here.
4500 (~tui_source_window_base): Delete "execution_info".
4501 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
4502
d6ba6a11
TT
45032019-06-25 Tom Tromey <tom@tromey.com>
4504
4505 * tui/tui-layout.c (make_command_window): Don't set
4506 can_highlight.
4507 (show_source_disasm_command): Call the reset method.
4508 (show_data): Don't set can_highlight. Call the reset method.
4509 (tui_gen_win_info::reset): Rename from init_gen_win_info
4510 (init_and_make_win): Simplify. Return tui_gen_win_info.
4511 (show_source_or_disasm_and_command): Call the reset method.
4512 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
4513 (struct tui_cmd_window): Set can_highlight.
4514
48a3bd16
TT
45152019-06-25 Tom Tromey <tom@tromey.com>
4516
4517 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
4518 from make_visible.
4519 (tui_make_visible, tui_make_invisible): Rewrite.
4520 (tui_win_info::make_visible): Remove.
4521 (tui_source_window_base::make_visible): Update.
4522 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
4523 method. Moved from...
4524 (struct tui_win_info) <make_visible>: ...here.
4525
c3bd716f
TT
45262019-06-25 Tom Tromey <tom@tromey.com>
4527
4528 * tui/tui-winsource.c
4529 (tui_source_window_base::do_scroll_horizontal): Remove direction
4530 parameter.
4531 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
4532 direction parameter.
4533 * tui/tui-win.c (tui_win_info::forward_scroll)
4534 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4535 (tui_win_info::right_scroll): Update.
4536 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
4537 direction parameter.
4538 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
4539 direction parameter.
4540 * tui/tui-data.h (enum tui_scroll_direction): Remove.
4541 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
4542 Remove direction parameter.
4543 (struct tui_source_window_base, struct tui_source_window)
4544 (struct tui_disasm_window, struct tui_data_window)
4545 (struct tui_cmd_window): Update.
4546
21c32dca
TT
45472019-06-25 Tom Tromey <tom@tromey.com>
4548
4549 * tui/tui-winsource.h (tui_set_exec_info_content)
4550 (tui_show_exec_info_content, tui_erase_exec_info_content)
4551 (tui_clear_exec_info_content, tui_update_exec_info): Change
4552 argument to tui_source_window_base.
4553 * tui/tui-winsource.c (tui_set_exec_info_content)
4554 (tui_show_exec_info_content, tui_erase_exec_info_content)
4555 (tui_clear_exec_info_content, tui_update_exec_info): Change
4556 argument to tui_source_window_base.
4557
73fbdc65
TT
45582019-06-25 Tom Tromey <tom@tromey.com>
4559
4560 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
4561 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
4562
33325343
TT
45632019-06-25 Tom Tromey <tom@tromey.com>
4564
4565 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
4566 check.
4567
29d2c474
TT
45682019-06-25 Tom Tromey <tom@tromey.com>
4569
4570 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
4571 type to void.
4572 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
4573 type to void.
4574 * tui/tui-source.c (tui_set_source_content): Update.
4575 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4576
152f3f4b
TT
45772019-06-25 Tom Tromey <tom@tromey.com>
4578
4579 * tui/tui-win.c (window_name_completer, tui_set_focus)
4580 (tui_all_windows_info): Use name method.
4581 * tui/tui-data.h (struct tui_gen_win_info)
4582 (struct tui_source_window, struct tui_disasm_window)
4583 (struct tui_data_window, struct tui_cmd_window) <name>: New
4584 method.
4585 (tui_win_name): Don't declare.
4586 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
4587 (tui_win_name): Remove.
4588
be4da588
TT
45892019-06-25 Tom Tromey <tom@tromey.com>
4590
4591 * tui/tui-winsource.h (tui_update_source_window)
4592 (tui_update_source_window_as_is): Change parameter type.
4593 * tui/tui-winsource.c (tui_update_source_window): Change win_info
4594 to be a tui_source_window_base.
4595 (tui_update_source_window_as_is): Likewise.
4596 * tui/tui-win.c (make_visible_with_new_height): Update.
4597
5b81daba
TT
45982019-06-25 Tom Tromey <tom@tromey.com>
4599
4600 * tui/tui-winsource.c (tui_erase_source_content)
4601 (tui_show_source_content, tui_show_exec_info_content)
4602 (tui_erase_exec_info_content): Use refresh_window method.
4603 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
4604 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
4605 from tui_refresh_win.
4606 (tui_data_window::refresh_window): New method.
4607 (tui_win_info::refresh, tui_source_window_base::refresh)
4608 (tui_refresh_all): Use refresh_window method.
4609 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
4610 method.
4611 * tui/tui-regs.c (tui_display_register): Call refresh_window
4612 method.
4613 * tui/tui-layout.c (show_source_disasm_command)
4614 (show_source_or_disasm_and_command): Call refresh_window method.
4615 * tui/tui-data.h (struct tui_gen_win_info)
4616 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
4617 New method.
4618
cb2ce893
TT
46192019-06-25 Tom Tromey <tom@tromey.com>
4620
4621 * tui/tui.c (tui_rl_other_window, tui_enable)
4622 (tui_is_window_visible, tui_get_command_dimension): Update.
4623 * tui/tui-winsource.c (tui_update_source_window_as_is)
4624 (tui_clear_source_content, tui_erase_source_content)
4625 (tui_show_source_line, tui_source_window_base::refill)
4626 (tui_source_window_base::do_scroll_horizontal)
4627 (tui_source_window_base::set_is_exec_point_at)
4628 (tui_update_breakpoint_info, tui_set_exec_info_content)
4629 (tui_alloc_source_buffer, tui_line_is_displayed)
4630 (tui_addr_is_displayed): Update.
4631 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4632 (tui_check_and_display_highlight_if_needed)
4633 (tui_win_info::make_visible, tui_win_info::refresh)
4634 (tui_refresh_all): Update.
4635 * tui/tui-windata.c (tui_first_data_item_displayed)
4636 (tui_delete_data_content_windows, tui_erase_data_content)
4637 (tui_display_all_data, tui_data_window::refresh_all)
4638 (tui_check_data_values): Update.
4639 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
4640 (tui_set_win_focus_to, tui_win_info::forward_scroll)
4641 (tui_win_info::backward_scroll, tui_refresh_all_win)
4642 (tui_resize_all, tui_set_focus, tui_all_windows_info)
4643 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
4644 (tui_source_window_base::set_new_height)
4645 (tui_data_window::set_new_height)
4646 (make_invisible_and_set_new_height)
4647 (make_visible_with_new_height, new_height_ok)
4648 (parse_scrolling_args): Update.
4649 * tui/tui-stack.c (tui_show_frame_info): Update.
4650 * tui/tui-source.c (tui_set_source_content)
4651 (tui_set_source_content_nil, tui_source_is_displayed)
4652 (tui_source_window::do_scroll_vertical): Update.
4653 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4654 (tui_display_registers_from, tui_display_reg_element_at_line)
4655 (tui_check_register_values, tui_reg_command): Update.
4656 * tui/tui-layout.c (tui_default_win_height)
4657 (show_source_disasm_command, show_data, init_and_make_win)
4658 (show_source_or_disasm_and_command): Update.
4659 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
4660 (tui_redisplay_readline, tui_mld_flush)
4661 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
4662 (tui_getc): Update.
4663 * tui/tui-disasm.c (tui_set_disassem_content)
4664 (tui_disasm_window::do_scroll_vertical): Update.
4665 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
4666 Now virtual.
4667 (struct tui_win_info): Derive from tui_gen_win_info.
4668 <~tui_win_info>: Mark as override.
4669 <generic>: Remove member.
4670 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
4671 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
4672 (~tui_data_window, ~tui_win_info)
4673 (tui_free_all_source_wins_content): Update.
4674 * tui/tui-command.c (tui_refresh_cmd_win): Update.
4675
ab313b35
TT
46762019-06-25 Tom Tromey <tom@tromey.com>
4677
4678 * tui/tui-layout.c (init_and_make_win): Use new.
4679 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
4680 destructor, initializers.
4681 (tui_alloc_generic_win_info): Don't declare.
4682 * tui/tui-data.c (_locator): Add argument to constructor.
4683 (source_win, disasm_win): New globals.
4684 (exec_info): Remove.
4685 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4686 Update.
4687 (tui_alloc_generic_win_info): Remove.
4688 (init_content_element): Use new.
4689 (tui_win_info::tui_win_info): Update.
4690 (free_content_elements) <case DATA_WIN>: Use delete.
4691
dc2c33e4
TT
46922019-06-25 Tom Tromey <tom@tromey.com>
4693
4694 * tui/tui-wingeneral.c (tui_refresh_win): Update.
4695 * tui/tui-windata.c (tui_first_data_item_displayed)
4696 (tui_delete_data_content_windows): Update.
4697 * tui/tui-win.c (tui_data_window::set_new_height): Update.
4698 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4699 (tui_display_registers_from, tui_check_register_values): Update.
4700 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
4701 pointer.
4702 * tui/tui-data.c (init_content_element): Update. Allocate the new
4703 window.
4704 (tui_free_data_content): Update.
4705 (free_content_elements) <case DATA_WIN>: Free the window.
4706
214a5cbe
TT
47072019-06-25 Tom Tromey <tom@tromey.com>
4708
4709 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
4710 Update.
4711 * tui/tui-layout.c (make_command_window)
4712 (show_source_disasm_command, show_data, init_and_make_win)
4713 (show_source_or_disasm_and_command): Update.
4714 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
4715 method.
4716 <can_highight, is_highlighted>: Now bool.
4717 (tui_set_win_highlight): Don't declare.
4718 * tui/tui-data.c (tui_set_win_highlight): Remove.
4719
8e2daf15
TT
47202019-06-25 Tom Tromey <tom@tromey.com>
4721
4722 * tui/tui-wingeneral.c (make_visible): Remove check of window
4723 type.
4724
8903bd8a
TT
47252019-06-25 Tom Tromey <tom@tromey.com>
4726
4727 * tui/tui-win.c (tui_win_info::max_height)
4728 (tui_cmd_window::max_height): New methods.
4729 (new_height_ok): Call max_height.
4730 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
4731 <max_height>: New method.
4732
3f02ce1e
TT
47332019-06-25 Tom Tromey <tom@tromey.com>
4734
4735 * tui/tui-win.c (tui_source_window_base::set_new_height)
4736 (tui_data_window::set_new_height): New methods.
4737 (make_invisible_and_set_new_height): Call set_new_height method.
4738 * tui/tui-data.h (struct tui_win_info)
4739 (struct tui_source_window_base, struct tui_data_window)
4740 <set_new_height>: New method.
4741
1825f487
TT
47422019-06-25 Tom Tromey <tom@tromey.com>
4743
4744 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
4745 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
4746 tui_refresh_data_win.
4747 * tui/tui-win.c (tui_source_window_base::refresh_all): New
4748 method.
4749 (tui_refresh_all_win): Call the refresh_all method.
4750 (tui_set_focus): Likewise.
4751 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
4752 (struct tui_source_window_base, struct tui_data_window) <refresh>:
4753 Likewise.
4754
ad54d15b
TT
47552019-06-25 Tom Tromey <tom@tromey.com>
4756
4757 * tui/tui-winsource.h (tui_refill_source_window)
4758 (tui_set_is_exec_point_at): Don't declare.
4759 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4760 (tui_source_window_base::refill): Rename from
4761 tui_refill_source_window.
4762 (tui_source_window_base::do_scroll_horizontal): Update.
4763 (tui_source_window_base::set_is_exec_point_at): Rename from
4764 tui_set_is_exec_point_at.
4765 (tui_update_all_breakpoint_info): Update.
4766 * tui/tui-stack.c (tui_show_frame_info): Update.
4767 * tui/tui-layout.c (show_data): Add cast.
4768 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
4769 * tui/tui-data.h (struct tui_source_window_base) <refill,
4770 set_is_exec_point_at>: New methods.
4771 (tui_source_windows, tui_add_to_source_windows): Update types.
4772 (tui_add_to_source_windows): Remove redundant declaration.
4773 * tui/tui-data.c (source_windows): Store tui_source_window_base.
4774 (tui_source_windows): Change return type.
4775 (tui_clear_source_windows_detail): Update.
4776 (tui_add_to_source_windows): Change type of parameter.
4777 (tui_free_all_source_wins_content): Update.
4778
2042b506
TT
47792019-06-25 Tom Tromey <tom@tromey.com>
4780
4781 * tui/tui-wingeneral.c (tui_win_info::refresh)
4782 (tui_source_window_base::refresh): New methods.
4783 (tui_refresh_all): Call the refresh method.
4784 * tui/tui-data.h (struct tui_win_info)
4785 (struct tui_source_window_base) <refresh>: New method.
4786
56122977
TT
47872019-06-25 Tom Tromey <tom@tromey.com>
4788
4789 * tui/tui.h (tui_is_window_visible): Return bool.
4790 * tui/tui.c (tui_is_window_visible): Return bool.
4791 * tui/tui-wingeneral.c (tui_make_window, make_visible)
4792 (tui_make_visible, tui_make_invisible)
4793 (tui_win_info::make_visible)
4794 (tui_source_window_base::make_visible, make_all_visible)
4795 (tui_make_all_visible, tui_make_all_invisible): Update.
4796 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
4797 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
4798 bool.
4799 (struct tui_win_info, struct tui_source_window_base)
4800 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
4801 * tui/tui-data.c (tui_init_generic_part): Update.
4802
cda37efb
TT
48032019-06-25 Tom Tromey <tom@tromey.com>
4804
4805 * tui/tui-wingeneral.c (tui_win_info::make_visible)
4806 (tui_source_window_base::make_visible): New methods.
4807 (make_all_visible): Make method call.
4808 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
4809 (struct tui_source_window_base, struct tui_cmd_window): Override
4810 make_visible.
4811 (tui_win_is_source_type): Don't declare.
4812 * tui/tui-data.c (tui_win_is_source_type): Remove.
4813
6a0ee02c
TT
48142019-06-25 Tom Tromey <tom@tromey.com>
4815
4816 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
4817 NULL check.
4818
63901aec
TT
48192019-06-25 Tom Tromey <tom@tromey.com>
4820
4821 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
4822 Inline constructor. Add initializers for members.
4823 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
4824 constructors; now inline in class.
4825
ceb13a13
TT
48262019-06-25 Tom Tromey <tom@tromey.com>
4827
4828 * tui/tui-regs.c (tui_show_registers): Update.
4829 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
4830 bool.
4831 * tui/tui-data.c (tui_data_window::clear_detail)
4832 (tui_data_window): Update.
4833
238eb706
TT
48342019-06-25 Tom Tromey <tom@tromey.com>
4835
4836 * tui/tui-windata.c (tui_display_all_data)
4837 (tui_display_data_from_line, tui_display_data_from)
4838 (tui_check_data_values, tui_data_window::do_scroll_vertical):
4839 Update.
4840 * tui/tui-regs.c (tui_last_regs_line_no)
4841 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4842 (tui_show_registers, tui_show_register_group)
4843 (tui_display_registers_from, tui_display_reg_element_at_line)
4844 (tui_display_registers_from_line, tui_check_register_values)
4845 (tui_reg_next, tui_reg_prev): Update.
4846 * tui/tui-layout.c (tui_set_layout, show_data): Update.
4847 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
4848 tui_data_window.
4849 (struct tui_win_info) <detail>: Remove. Add new fields from
4850 tui_data_info.
4851 (TUI_DATA_WIN): Add cast.
4852 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
4853 (~tui_data_window): Simplify.
4854
81491aa0
TT
48552019-06-25 Tom Tromey <tom@tromey.com>
4856
4857 * tui/tui-layout.c (show_source_disasm_command)
4858 (show_source_or_disasm_and_command): Update.
4859 * tui/tui-io.c (update_cmdwin_start_line)
4860 (tui_redisplay_readline): Update.
4861 * tui/tui-data.h (struct tui_command_info): Remove.
4862 (struct tui_win_info) <detail>: Remove command_info member.
4863 (struct tui_data_window) <start_line>: New member, from
4864 tui_command_info.
4865 (TUI_CMD_WIN): Add casts.
4866
e6e41501
TT
48672019-06-25 Tom Tromey <tom@tromey.com>
4868
4869 * tui/tui-winsource.c (tui_update_source_window)
4870 (tui_refill_source_window)
4871 (tui_source_window_base::do_scroll_horizontal)
4872 (tui_update_breakpoint_info, tui_set_exec_info_content)
4873 (tui_show_exec_info_content, tui_erase_exec_info_content)
4874 (tui_clear_exec_info_content): Update.
4875 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
4876 Update.
4877 * tui/tui-win.c (make_invisible_and_set_new_height)
4878 (make_visible_with_new_height): Update.
4879 * tui/tui-source.c (tui_set_source_content)
4880 (tui_show_symtab_source): Update.
4881 * tui/tui-layout.c (extract_display_start_addr)
4882 (show_source_disasm_command, show_data)
4883 (make_source_or_disasm_window)
4884 (show_source_or_disasm_and_command): Update.
4885 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
4886 (tui_disasm_window::do_scroll_vertical): Remove shadowing
4887 "gdbarch".
4888 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
4889 to tui_source_window_base.
4890 (struct tui_win_info) <detail>: Remove source_info member.
4891 (struct tui_source_window_base) <has_locator>: Inline.
4892 Move contents from tui_source_info; rename has_locator member to
4893 m_has_locator.
4894 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
4895 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
4896 header file.
4897 (tui_source_window_base::clear_detail, ~tui_source_window_base):
4898 Simplify.
4899 (tui_free_all_source_wins_content): Cast to
4900 tui_source_window_base.
4901
44f0e208
TT
49022019-06-25 Tom Tromey <tom@tromey.com>
4903
4904 * tui/tui-win.c (make_invisible_and_set_new_height)
4905 (make_visible_with_new_height): Call has_locator method.
4906 * tui/tui-layout.c (show_source_disasm_command, show_data)
4907 (show_source_or_disasm_and_command): Update for bool change.
4908 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
4909 (tui_win_info) <has_locator>: New method.
4910 (struct tui_source_window_base) <has_locator>: New method.
4911 (tui_win_has_locator): Don't declare.
4912 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
4913 from tui_win_has_locator.
4914 (tui_source_window_base): Use false, not FALSE.
4915
7778b912
TT
49162019-06-25 Tom Tromey <tom@tromey.com>
4917
4918 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
4919 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
4920 clear_detail method directly.
4921 (tui_clear_win_detail): Remove.
4922
f83d391c
TT
49232019-06-25 Tom Tromey <tom@tromey.com>
4924
4925 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
4926 "this", not TUI_DISASM_WIN.
4927
13446e05
TT
49282019-06-25 Tom Tromey <tom@tromey.com>
4929
4930 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
4931 declare.
4932 * tui/tui-winsource.c
4933 (tui_source_window_base::do_scroll_horizontal): Rename from
4934 tui_horizontal_source_scroll.
4935 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
4936 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
4937 from tui_vertical_data_scroll.
4938 * tui/tui-win.h (tui_scroll): Don't declare.
4939 * tui/tui-win.c (tui_win_info::forward_scroll)
4940 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4941 (tui_win_info::right_scroll): Rename and update.
4942 (tui_scroll_forward_command, tui_scroll_backward_command)
4943 (tui_scroll_left_command, tui_scroll_right_command): Update.
4944 (tui_scroll): Remove.
4945 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
4946 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
4947 from tui_vertical_source_scroll.
4948 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
4949 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
4950 from tui_vertical_disassem_scroll.
4951 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
4952 do_scroll_horizontal>: New methods.
4953 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
4954 Likewise.
4955 (struct tui_source_window_base): Add do_scroll_horizontal.
4956 (struct tui_source_window, struct tui_disasm_window): Add
4957 do_scroll_vertical.
4958 (struct tui_data_window, struct tui_cmd_window): Add
4959 do_scroll_horizontal and do_scroll_vertical.
4960 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
4961
5cf82909
TT
49622019-06-25 Tom Tromey <tom@tromey.com>
4963
4964 * tui/tui-data.h (struct tui_source_window_base): New struct.
4965 (struct tui_source_window): Derive from tui_source_window_base.
4966 (struct tui_disasm_window): New struct.
4967 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
4968 from tui_source_window::clear_detail.
4969 (tui_source_window_base): Rename from tui_source_window.
4970 (~tui_source_window_base): Rename from ~tui_source_window.
4971 (tui_alloc_win_info): Create a tui_disasm_window.
4972
ee1d42d6
TT
49732019-06-25 Tom Tromey <tom@tromey.com>
4974
4975 * tui/tui-data.h (struct tui_source_window)
4976 (struct tui_data_window): Declare destructors.
4977 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
4978 destructors.
4979 (tui_win_info): Simplify.
4980
b4eb2452
TT
49812019-06-25 Tom Tromey <tom@tromey.com>
4982
4983 * tui/tui-winsource.c (tui_display_main)
4984 (tui_update_source_windows_with_addr)
4985 (tui_update_all_breakpoint_info): Update.
4986 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4987 (new_height_ok, parse_scrolling_args): Update.
4988 * tui/tui-stack.c (tui_show_frame_info): Update.
4989 * tui/tui-data.h (struct tui_list): Remove.
4990 (tui_source_windows): Return a reference to a std::vector.
4991 * tui/tui-data.c (source_windows): Now a std::vector.
4992 (tui_source_windows): Change return type.
4993 (tui_clear_source_windows): Rewrite.
4994 (tui_clear_source_windows_detail, tui_add_to_source_windows)
4995 (tui_free_all_source_wins_content): Rewrite.
4996
8761a91b
TT
49972019-06-25 Tom Tromey <tom@tromey.com>
4998
4999 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
5000 (struct tui_data_window, struct tui_cmd_window): Declare
5001 clear_detail method.
5002 * tui/tui-data.c (tui_source_window::clear_detail)
5003 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
5004 methods.
5005 (tui_clear_win_detail): Simplify.
5006
0ed69eda
TT
50072019-06-25 Tom Tromey <tom@tromey.com>
5008
5009 * tui/tui-layout.c (make_source_window, make_disasm_window)
5010 (make_source_or_disasm_window): Remove win_info_ptr parameter.
5011 Return the new window.
5012 (show_source_disasm_command, show_data)
5013 (show_source_or_disasm_and_command): Update.
5014
82432e10
TT
50152019-06-25 Tom Tromey <tom@tromey.com>
5016
5017 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
5018 parameter. Return the new window.
5019 (show_source_disasm_command): Update and remove NULL check.
5020 (show_source_or_disasm_and_command): Update.
5021
ec328aa5
TT
50222019-06-25 Tom Tromey <tom@tromey.com>
5023
5024 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
5025
33b906ab
TT
50262019-06-25 Tom Tromey <tom@tromey.com>
5027
5028 * tui/tui-data.h (struct tui_win_info): Make constructor
5029 protected. Make destructor virtual. Add initializers.
5030 (tui_source_window, tui_data_window, tui_cmd_window): New
5031 classes.
5032 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
5033 constructor. Add "type" parameter.
5034 (tui_source_window, tui_data_window, tui_cmd_window): New
5035 constructors.
5036 (tui_alloc_win_info): Instantiate the appropriate subclass.
5037
e7e11af4
TT
50382019-06-25 Tom Tromey <tom@tromey.com>
5039
5040 * tui/tui-win.c (tui_resize_all): Use delete.
5041 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
5042 destructor.
5043 (tui_free_window): Don't declare.
5044 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
5045 Update.
5046
6792b55e
TT
50472019-06-25 Tom Tromey <tom@tromey.com>
5048
5049 * tui/tui-data.h (struct tui_win_info): Add constructor.
5050 * tui/tui-data.c (tui_alloc_win_info): Use new.
5051 (tui_free_window): Use delete.
5052
f95675e1
TT
50532019-06-22 Tom Tromey <tom@tromey.com>
5054
5055 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
5056 declare.
5057 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
5058
5bff081c
TT
50592019-06-22 Tom Tromey <tom@tromey.com>
5060
5061 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
5062 declare.
5063 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
5064
47e3f474
TV
50652019-06-22 Tom de Vries <tdevries@suse.de>
5066
5067 * dwarf2read.c (create_addrmap_from_aranges)
5068 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
5069 instead of '%zu'.
5070
fd5866f6
SM
50712019-06-21 Simon Marchi <simon.marchi@efficios.com>
5072
5073 * dwarf2read.h (dwarf2_section_info_def): Remove.
5074 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
5075 * dwarf2read.c (struct dwo_sections) <types>: Change type to
5076 std::vector<dwarf2_section_info>.
5077 (struct dwo_file) <~dwo_file>: Remove.
5078 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
5079 types field.
5080 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
5081 (dwarf2_read_debug_names): Likewise.
5082 (create_debug_types_hash_table): Change parameter type to
5083 array_view, adjust code accordingly.
5084 (dwarf2_locate_dwo_sections): Adjust to std::vector.
5085 (partial_die_info::fixup): Likewise.
5086 (determine_prefix): Likewise.
5087 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
5088
fb1eb2f9
SM
50892019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5090
5091 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
5092 gdb_bfd_ref_ptr.
5093 <~dwo_file>: Remove call to gdb_bfd_unref.
5094 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
5095 gdb_bfd_ref_ptr::get.
5096
51ac9db5
SM
50972019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5098
5099 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
5100 type to htab_up.
5101 * dwarf2read.c (struct dwo_file): Initialize fields.
5102 <~dwo_file>: New.
5103 (free_dwo_file): Remove, move content to ~dwo_file.
5104 (struct dwo_file_deleter): Remove.
5105 (dwo_file_up>: Remove custom deleter.
5106 (free_dwo_files): Remove.
5107 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
5108 dwo_files.
5109 (process_skeletonless_type_units): Call unique_ptr::get.
5110 (allocate_dwo_file_hash_table): Add deleter to created hash
5111 table. Change return type to htab_up.
5112 (lookup_dwo_file_slot): Don't memset dwo_file, call
5113 unique_ptr::get.
5114 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
5115 (create_dwo_unit_in_dwp_v2): Likewise.
5116 (open_and_init_dwo_file): Likewise.
5117 (free_dwo_file_from_slot): Remove.
5118
dc4ccb6f
SM
51192019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5120
5121 * dwarf2read.h (struct dwarf2_section_info) <readin,
5122 is_virtual>: Change type to bool.
5123 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
5124 true instead of 1.
5125
e6a1c5cb
TT
51262019-06-19 Tom Tromey <tom@tromey.com>
5127
5128 * tui/tui-data.h (tui_init_content_element): Don't declare.
5129
6f6ffbeb
TT
51302019-06-19 Tom Tromey <tom@tromey.com>
5131
5132 * tui/tui-data.h (tui_init_win_info): Don't declare.
5133
f23f598e
TV
51342019-06-19 Tom de Vries <tdevries@suse.de>
5135
5136 * dwarf2read.h (abstract_to_concrete): Change type to
5137 std::unordered_map<sect_offset, std::vector<sect_offset>,
5138 gdb::hash_enum<sect_offset>>.
5139
680e1bee
TT
51402019-06-19 Tom Tromey <tromey@adacore.com>
5141
5142 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
5143 EVAL_AVOID_SIDE_EFFECTS specially.
5144
dcf37923
TT
51452019-06-19 Tom Tromey <tromey@adacore.com>
5146
5147 * source-cache.c (highlighter): New global.
5148 (source_cache::get_source_lines): Create a highlighter on demand.
5149
494986d5
AB
51502019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
5151
5152 * defs.h (deprecated_interactive_hook): Delete declaration.
5153 * interps.c (clear_interpreter_hooks): Remove use of
5154 deprecated_interactive_hook.
5155 * top.c (deprecated_interactive_hook): Delete definition.
5156 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
5157
3360b6e7
TV
51582019-06-18 Tom de Vries <tdevries@suse.de>
5159
5160 PR gdb/24515
5161 * dwarf2read.h (abstract_to_concrete): Change type from
5162 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
5163 std::unordered_map<sect_offset, std::vector<sect_offset>>.
5164 * dwarf2read.c (read_variable): Update.
5165 (dwarf2_fetch_die_loc_sect_off): Update.
5166
310b3441
TV
51672019-06-17 Tom de Vries <tdevries@suse.de>
5168
5169 PR gdb/24617
5170 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
5171 accessing parent[parent_len - 1].
5172
ba9777be
PP
51732019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
5174
5175 PR gdb/24364
5176 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
5177 call dtrace_process_dof with NULL dof.
5178
2b9f6e89
TV
51792019-06-16 Tom de Vries <tdevries@suse.de>
5180
5181 PR gdb/24445
5182 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
5183
431b3ead
TT
51842019-06-16 Tom Tromey <tom@tromey.com>
5185
5186 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5187 (make_all_visible): Use address of member.
5188
d04b44a1
TT
51892019-06-16 Tom Tromey <tom@tromey.com>
5190
5191 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
5192 (tui_free_window, free_content, free_content_elements): Remove
5193 unnecessary cast.
5194 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
5195 cast.
5196 * tui/tui-regs.c (tui_show_register_group)
5197 (tui_display_registers_from, tui_display_reg_element_at_line):
5198 Remove unnecessary cast.
5199
bf5142e7
AB
52002019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5201
5202 * linux-nat.c (normal_mask): Delete.
5203 (_initialize_linux_nat): Don't initialise normal_mask.
5204
c4973306
SM
52052019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
5206
5207 PR gdb/24445
5208 * dwarf-index-write.h (write_psymtabs_to_index): Add
5209 dwz_basename parameter.
5210 * dwarf-index-write.c (write_gdbindex): Move file writing to
5211 write_gdbindex_1. Change return type void.
5212 (assert_file_size): Move up, remove filename parameter.
5213 (write_gdbindex_1): New function.
5214 (write_debug_names): Change return type to void, call
5215 assert_file_size.
5216 (struct index_wip_file): New struct.
5217 (write_psymtabs_to_index): Add dwz_basename parameter. Move
5218 file logic to index_wip_file. Write index for dwz file if
5219 needed.
5220 (save_gdb_index_command): Pass basename of dwz file, if present.
5221 * dwarf-index-cache.c (index_cache::store): Obtain and pass
5222 build-id of dwz file, if present.
5223 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
5224 (dwarf2_get_dwz_file): Likewise.
5225 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
5226 (dwarf2_get_dwz_file): Likewise.
5227
395f9c91
TT
52282019-06-16 Tom Tromey <tom@tromey.com>
5229
5230 * coffread.c (process_coff_symbol): Use xstrdup.
5231 * value.c (create_internalvar): Use xstrdup.
5232
cafb3438
TT
52332019-06-16 Tom Tromey <tom@tromey.com>
5234
5235 * valops.c (value_cast, value_slice): Remove unnecessary cast.
5236 * breakpoint.c (stopin_command, stopat_command)
5237 (until_break_command, decode_location_default): Remove unnecessary
5238 cast.
5239 * utils.c (subset_compare): Remove unnecessary cast.
5240 * ada-lang.c (ada_update_initial_language): Remove unnecessary
5241 cast.
5242 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
5243 cast.
5244 * infcmd.c (path_command): Remove unnecessary cast.
5245 * coffread.c (decode_type): Remove unnecessary cast.
5246 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
5247 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
5248 * tui/tui-stack.c (tui_show_locator_content)
5249 (tui_show_frame_info): Remove unnecessary cast.
5250 * tui/tui-win.c (tui_scroll_forward_command)
5251 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
5252 (parse_scrolling_args): Remove unnecessary cast.
5253 * tui/tui-data.c (init_win_info, tui_del_window)
5254 (tui_free_window, tui_del_data_windows, tui_free_data_content)
5255 (free_content_elements): Remove unnecessary cast.
5256 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
5257 unnecessary cast.
5258 * tui/tui-source.c (tui_set_source_content)
5259 (tui_vertical_source_scroll): Remove unnecessary cast.
5260 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
5261 cast.
5262 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
5263 * tui/tui-regs.c (tui_display_registers_from)
5264 (tui_display_register): Remove unnecessary cast.
5265 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
5266 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
5267 (make_visible): Remove unnecessary cast.
5268 * tui/tui-winsource.c (tui_erase_source_content)
5269 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
5270 unnecessary cast.
5271 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
5272 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
5273 * stabsread.c (read_type, read_array_type, read_range_type):
5274 Remove unnecessary cast.
5275 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
5276 (parse_symbol, parse_type, upgrade_type, parse_external)
5277 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
5278 unnecessary cast.
5279 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
5280
730ead81
TT
52812019-06-16 Tom Tromey <tom@tromey.com>
5282
5283 * tui/tui-data.c (tui_alloc_generic_win_info)
5284 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
5285 checks.
5286
584a927c
AB
52872019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
5288 Andrew Burgess <andrew.burgess@embecosm.com>
5289
5290 * f-typeprint.c (f_print_type): Don't return early for not
5291 associated or not allocated types.
5292 (f_type_print_varspec_suffix): Add print_rank parameter and print
5293 ranks of array types in case they dangling.
5294 (f_type_print_base): Add print_rank parameter.
5295
30056ea0
AB
52962019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5297
5298 * NEWS: Mention new MI commands.
5299 * break-catch-throw.c (enum exception_event_kind): Move to
5300 breakpoint.h.
5301 (print_mention_exception_catchpoint): Output text as a single
5302 message.
5303 (catch_exception_command_1): Rename to...
5304 (catch_exception_event): ...this, make non-static, update header
5305 command, and change some parameter types.
5306 (catch_catch_command): Update for changes to
5307 catch_exception_command_1.
5308 (catch_throw_command): Likewise.
5309 (catch_rethrow_command): Likewise.
5310 * breakpoint.c (enum exception_event_kind): Delete.
5311 * breakpoint.h (enum exception_event_kind): Moved here from
5312 break-catch-throw.c.
5313 (catch_exception_event): Declare.
5314 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
5315 (mi_cmd_catch_throw): New function.
5316 (mi_cmd_catch_rethrow): New function.
5317 (mi_cmd_catch_catch): New function.
5318 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
5319 'catch-catch' entries.
5320 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
5321 (mi_cmd_catch_rethrow): Declare.
5322 (mi_cmd_catch_catch): Declare.
5323
ec8e2b6d
AB
53242019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5325
5326 * annotate.c (annotate_source_line): Change return type to void,
5327 update implementation to match.
5328 * annotate.h (annotate_source_line): Change return type to void,
5329 update header comment.
5330 * stack.c (print_frame_info): Don't change what frame information
5331 is printed based on whether annotations are on or not.
5332
0d3abd8c
AB
53332019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5334
5335 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
5336 (annotate_source): Make static.
5337 (annotate_source_line): Moved from source.c and renamed from
5338 identify_source_line. Update the return type.
5339 * annotate.h (annotate_source): Delete declaration.
5340 (annotate_source_line): Declaration moved from source.h, and
5341 renamed from identify_source_line. Return type updated.
5342 * source.c (identify_source_line): Moved to annotate.c and renamed
5343 to annotate_source_line.
5344 (info_line_command): Remove check of annotation_level.
5345 * source.h (identify_source_line): Move declaration to annotate.h
5346 and rename to annotate_source_line.
5347 * stack.c: Add 'annotate.h' include.
5348 (print_frame_info): Remove check of annotation_level before
5349 calling annotate_source_line.
5350
00df30ae
AB
53512019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5352
5353 * source-cache.c (source_cache::get_plain_source_lines): Use
5354 open_source_file_with_line_charpos instead of just
5355 open_source_file, remove call to find_source_lines.
5356 (source_cache::get_source_lines): Likewise.
5357 * source.c (find_source_lines): Make static.
5358 (get_filename_and_charpos): Renamed into...
5359 (open_source_file_with_line_charpos): ..this along with changes to
5360 return a scoped_fd, and some other minor clean ups.
5361 (identify_source_line): Use open_source_file_with_line_charpos.
5362 (search_command_helper): Use open_source_file_with_line_charpos
5363 instead of just open_source_file, remove call to
5364 find_source_lines.
5365 * source.h (open_source_file_with_line_charpos): Declare new
5366 function.
5367 (find_source_lines): Delete declaration.
5368
afda45a2
AB
53692019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5370
5371 * source.c (get_filename_and_charpos): Remove fullname
5372 parameter.
5373 (identify_source_line): Update call to get_filename_and_charpos.
5374
0735b091
TT
53752019-06-14 Tom Tromey <tromey@adacore.com>
5376
5377 PR gdb/24502:
5378 * ui-style.h (skip_ansi_escape): Update comment.
5379 * ui-file.h (class no_terminal_escape_file): New class.
5380 * ui-file.c (no_terminal_escape_file::write)
5381 (no_terminal_escape_file::puts): New methods.
5382 * cli/cli-logging.c (handle_redirections): Use
5383 no_terminal_escape_file.
5384
52ce35e2
TT
53852019-06-14 Tom Tromey <tromey@adacore.com>
5386
5387 * NEWS: Move convenience variable news above Python news.
5388
73cc7272
TT
53892019-06-14 Tom Tromey <tom@tromey.com>
5390
5391 * gnulib: Move directory to top-level.
5392 * configure.ac: Don't configure gnulib.
5393 * configure: Rebuild.
5394 * common/common-defs.h: Use new path to gnulib.
5395 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
5396 (GNULIB_H): Remove.
5397 (INCGNU): Look in new gnulib location.
5398 (HFILES_NO_SRCDIR): Remove gnulib files.
5399 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
5400 (generated_files): Remove GNULIB_H.
5401 ($(LIBGNU), all-lib): Remove targets.
5402 (distclean): Don't mention GNULIB_BUILDDIR.
5403 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
5404
f5686554
TT
54052019-06-14 Tom Tromey <tromey@adacore.com>
5406
5407 * symfile.c (add_symbol_file_command): Remove obsolete comment.
5408 Warn if symbol file does not provide any symbols.
5409
a0c1ffed
TT
54102019-06-14 Tom Tromey <tromey@adacore.com>
5411
5412 * source.c (find_and_open_source): Respect basenames_may_differ.
5413
7c39e397
AB
54142019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
5415
5416 * annotate.c (annotate_breakpoints_invalid): Make use of
5417 scoped_restore_terminal_state.
5418 (annotate_frames_invalid): Likewise.
5419
f411722c
TT
54202019-06-14 Tom Tromey <tromey@adacore.com>
5421
5422 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
5423 allow assignment to an internalvar.
5424
4268ec18
TT
54252019-06-14 Tom Tromey <tromey@adacore.com>
5426
5427 * ada-lex.l: Allow "_" in attribute names.
5428
abdb711e
TT
54292019-06-14 Tom Tromey <tromey@adacore.com>
5430
5431 PR gdb/24653:
5432 * regcache.c (registers_changed): Don't call alloca.
5433 * top.c (execute_command): Don't call alloca.
5434
4c048731
PA
54352019-06-13 Pedro Alves <palves@redhat.com>
5436
5437 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
5438 'expression'. When parsing an expression, error out if there's
5439 junk after "unlimited".
5440 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5441 (do_set_command): Adjust calls to is_unlimited_literal.
5442
66eb1ed3
PA
54432019-06-13 Pedro Alves <palves@redhat.com>
5444
5445 * compile/compile.c (make_compile_options_def_group): Add braces
5446 around array_view initializer.
5447 * thread.c (make_thread_apply_all_options_def_group)
5448 (make_thread_apply_all_options_def_group): Likewise.
5449
3345721a
PA
54502019-06-13 Pedro Alves <palves@redhat.com>
5451
5452 * NEWS (New commands): Mention "maint test-options
5453 require-delimiter", "maint test-options unknown-is-error", "maint
5454 test-options unknown-is-operand" and "maint show
5455 test-options-completion-result".
5456 (New command options, command completion): New section.
5457 (Completion improvements): New section.
5458 Mention that you can abbreviate "unlimited".
5459
6206060d
PA
54602019-06-13 Pedro Alves <palves@redhat.com>
5461
5462 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
5463 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
5464 * unittests/cli-utils-selftests.c (test_parse_flags)
5465 (test_parse_flags_qcs): Delete.
5466 (test_cli_utils): Don't call deleted functions.
5467
6665660a
PA
54682019-06-13 Pedro Alves <palves@redhat.com>
5469
5470 * thread.c: Include "cli/cli-option.h".
5471 (tp_array_compar_ascending): Global.
5472 (tp_array_compar): Delete function.
5473 (tp_array_compar_ascending, tp_array_compar_descending): New
5474 functions.
5475 (ascending_option_def, qcs_flag_option_def)
5476 (thr_qcs_flags_option_defs)
5477 (make_thread_apply_all_options_def_group)
5478 (make_thread_apply_options_def_group): New.
5479 (thread_apply_all_command): Use gdb::option::process_options.
5480 (thread_apply_command_completer)
5481 (thread_apply_all_command_completer): New.
5482 (thread_apply_command): Use gdb::option::process_options.
5483 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
5484 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
5485 to generate help text of "thread apply". Adjust "taas"'s help.
5486 * tid-parse.c (tid_range_parser::in_thread_range): New method.
5487 * tid-parse.h (tid_range_parser::in_thread_range): New method.
5488
f7e13587
PA
54892019-06-13 Pedro Alves <palves@redhat.com>
5490
5491 * thread.c (thread_apply_command): Check for invalid TID with
5492 isdigit instead of !isalpha.
5493
5d707134
PA
54942019-06-13 Pedro Alves <palves@redhat.com>
5495
5496 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
5497 (validate_flags_qcs): New.
5498 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
5499 (validate_flags_qcs): Declare.
5500 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
5501 (make_frame_apply_options_def_group): New.
5502 (frame_apply_command_count): Process options with
5503 gdb::option::process_options.
5504 (frame_apply_completer): New.
5505 (frame_apply_level_completer, frame_apply_all_completer)
5506 (frame_apply_completer): New.
5507 (_initialize_stack): Update help of "frame apply", "frame apply
5508 level", "frame apply all" and "faas" to mention supported options
5509 and install command completers.
5510 * stack.h (frame_apply_all_completer): Declare.
5511 * thread.c: Include "stack.h".
5512 (tfaas_command): Add "--".
5513 (_initialize_thread): Update help "tfaas" to mention supported
5514 options and install command completer.
5515
272d4594
PA
55162019-06-13 Pedro Alves <palves@redhat.com>
5517
5518 * completer.c (complete_nested_command_line): New.
5519 (gdb_completion_word_break_characters_throw): Add assertion.
5520 * completer.h (complete_nested_command_line): Declare.
5521
90a1ef87
PA
55222019-06-13 Pedro Alves <palves@redhat.com>
5523
5524 * stack.c (parse_backtrace_qualifiers): New.
5525 (backtrace_command): Use it.
5526 (backtrace_command_completer): Complete on qualifiers.
5527
d4c16835
PA
55282019-06-13 Pedro Alves <palves@redhat.com>
5529
5530 * frame.c: Include "cli/cli-option.h.
5531 (user_set_backtrace_options): New.
5532 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
5533 Delete.
5534 (get_prev_frame): Adjust.
5535 (boolean_option_def, uinteger_option_def)
5536 (set_backtrace_option_defs): New.
5537 (_initialize_frame): Adjust and use
5538 gdb::option::add_setshow_cmds_for_options to install "set
5539 backtrace past-main" and "set backtrace past-entry".
5540 * frame.h: Include "cli/cli-option.h".
5541 (struct frame_print_options): Forward declare.
5542 (print_frame_arguments_all, print_frame_arguments_scalars)
5543 (print_frame_arguments_none): Declare.
5544 (print_entry_values): Delete declaration.
5545 (struct frame_print_options, user_frame_print_options): New.
5546 (struct set_backtrace_options): New.
5547 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
5548 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
5549 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
5550 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
5551 (list_args_or_locals): Add frame_print_options parameter.
5552 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5553 * python/py-framefilter.c (enumerate_args): Pass down
5554 USER_FRAME_PRINT_OPTIONS.
5555 * stack.c: Include "cli/cli-option.h".
5556 (print_frame_arguments_all, print_frame_arguments_scalars)
5557 (print_frame_arguments_none): Declare.
5558 (print_raw_frame_arguments, print_entry_values): Delete.
5559 (user_frame_print_options): New.
5560 (boolean_option_def, enum_option_def, frame_print_option_defs):
5561 New.
5562 (struct backtrace_cmd_options): New.
5563 (bt_flag_option_def): New.
5564 (backtrace_command_option_defs): New.
5565 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5566 (print_frame_arg, read_frame_arg, print_frame_args)
5567 (print_frame_info, print_frame): Add frame_print_options parameter
5568 and use it.
5569 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
5570 (backtrace_command_1): Add frame_print_options and
5571 backtrace_cmd_options parameters and use them.
5572 (make_backtrace_options_def_group): New.
5573 (backtrace_command): Process command options with
5574 gdb::option::process_options.
5575 (backtrace_command_completer): New.
5576 (_initialize_stack): Extend "backtrace"'s help to mention
5577 supported options. Install completer for "backtrace".
5578 Install some settings commands with add_setshow_cmds_for_options.
5579
2daf894e
PA
55802019-06-13 Pedro Alves <palves@redhat.com>
5581
5582 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
5583 and that "set/show print raw frame-arguments" are now deprecated.
5584
5585 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
5586 command.
5587 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
5588 * stack.c (_initialize_stack): Install "set/show print
5589 raw-frame-arguments", and deprecate "set/show print raw
5590 frame-arguments".
5591 * valprint.c (_initialize_valprint): Deprecate "set/show print
5592 raw".
5593
e6ed716c
PA
55942019-06-13 Pedro Alves <palves@redhat.com>
5595
5596 * compile/compile.c (struct compile_options): New.
5597 (compile_flag_option_def, compile_command_option_defs)
5598 (make_compile_options_def_group): New.
5599 (compile_file_command): Handle options with
5600 gdb::option::process_options.
5601 (compile_file_command_completer): New function.
5602 (compile_code_command): Handle options with
5603 gdb::option::process_options.
5604 (compile_code_command_completer): New function.
5605 (_initialize_compiler): Install completers for "compile code" and
5606 "compile file". Mention available options in "compile code" and
5607 "compile code"'s help.
5608 * completer.c (advance_to_completion_word): New, factored out from
5609 ...
5610 (advance_to_expression_complete_word_point): ... this.
5611 (advance_to_filename_complete_word_point): New.
5612 * completer.h (advance_to_filename_complete_word_point): New
5613 declaration.
5614
7d8062de
PA
56152019-06-13 Pedro Alves <palves@redhat.com>
5616
5617 * compile/compile.c: Include "cli/cli-option.h".
5618 (compile_print_value): Scope data pointer is now a
5619 value_print_options pointer; adjust.
5620 (compile_print_command): Process options. Scope data pointer is
5621 now a value_print_options pointer; adjust.
5622 (_initialize_compile): Update "compile print"'s help to include
5623 supported options. Install a completer for "compile print".
5624 * cp-valprint.c (show_vtblprint, show_objectprint)
5625 (show_static_field_print): Delete.
5626 (_initialize_cp_valprint): Don't install "set print
5627 static-members", "set print vtbl", "set print object" here.
5628 * printcmd.c: Include "cli/cli-option.h" and
5629 "common/gdb_optional.h".
5630 (print_command_parse_format): Rework to fill in a
5631 value_print_options instead of a format_data.
5632 (print_value): Change parameter type from format_data pointer to
5633 value_print_options reference. Adjust.
5634 (print_command_1): Process options. Adjust to pass down a
5635 value_print_options.
5636 (print_command_completer): New.
5637 (_initialize_printcmd): Install print_command_completer as
5638 handle_brkchars completer for the "print" command. Update
5639 "print"'s help to include supported options.
5640 * valprint.c: Include "cli/cli-option.h".
5641 (show_vtblprint, show_objectprint, show_static_field_print): Moved
5642 here from cp-valprint.c.
5643 (boolean_option_def, uinteger_option_def)
5644 (value_print_option_defs, make_value_print_options_def_group):
5645 New. Use gdb::option::add_setshow_cmds_for_options to install
5646 "set print elements", "set print null-stop", "set print repeats",
5647 "set print pretty", "set print union", "set print array", "set
5648 print address", "set print symbol", "set print array-indexes".
5649 * valprint.h: Include <string> and "cli/cli-option.h".
5650 (make_value_print_options_def_group): Declare.
5651 (print_value): Change parameter type from format_data pointer to
5652 value_print_options reference.
5653 (print_command_completer): Declare.
5654
9d0faba9
PA
56552019-06-13 Pedro Alves <palves@redhat.com>
5656
5657 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
5658 (COMMON_SFILES): Add maint-test-settings.c.
5659 * cli/cli-decode.c (boolean_enums): New global, factored out from
5660 ...
5661 (add_setshow_boolean_cmd): ... here.
5662 * cli/cli-decode.h (boolean_enums): Declare.
5663 * cli/cli-option.c: New file.
5664 * cli/cli-option.h: New file.
5665 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
5666 factored out from ...
5667 (parse_cli_boolean_value(const char *)): ... this.
5668 (is_unlimited_literal): Change parameter type to pointer to
5669 pointer. Adjust and advance ARG pointer.
5670 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5671 (parse_cli_var_enum): New, factored out from ...
5672 (do_set_command): ... this. Adjust.
5673 * cli/cli-setshow.h (parse_cli_boolean_value)
5674 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5675 (parse_cli_var_enum): Declare.
5676 * cli/cli-utils.c: Include "cli/cli-option.h".
5677 (get_ulongest): New.
5678 * cli/cli-utils.h (get_ulongest): Declare.
5679 (check_for_argument): New overloads.
5680 * maint-test-options.c: New file.
5681
2c722807
PA
56822019-06-13 Pedro Alves <palves@redhat.com>
5683
5684 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
5685 parse a range if "-" is at the end of the string.
5686
dee7b4c8
PA
56872019-06-13 Pedro Alves <palves@redhat.com>
5688
5689 * cli/cli-setshow.c (parse_auto_binary_operation)
5690 (parse_cli_boolean_value): Don't allow "o".
5691
dca0f6c0
PA
56922019-06-13 Pedro Alves <palves@redhat.com>
5693
5694 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
5695 * NEWS: Mention maint test-settings KIND.
5696 * maint-test-settings.c: New file.
5697
597bf39d
PA
56982019-06-13 Pedro Alves <palves@redhat.com>
5699
5700 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
5701 completer.
5702 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
5703 "set" completers.
5704
48c410fb
PA
57052019-06-13 Pedro Alves <palves@redhat.com>
5706
5707 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
5708 after item.
5709
93bcb043
PA
57102019-06-13 Pedro Alves <palves@redhat.com>
5711
5712 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
5713
cbba3ecd
PA
57142019-06-13 Pedro Alves <palves@redhat.com>
5715
5716 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
5717 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
5718 call.
5719 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
5720 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
5721 calls.
5722 (check_for_argument): Skip spaces after argument.
5723
b9a3f842
PA
57242019-06-13 Pedro Alves <palves@redhat.com>
5725
5726 * thread.c (thread_apply_command): Adjust TID parsing.
5727 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
5728 detected before end of string.
5729 (tid_is_in_list): Error out if LIST is invalid.
5730
3844e605
PA
57312019-06-13 Pedro Alves <palves@redhat.com>
5732
5733 * completer.c (complete_line_internal_1): Rewind completion word
5734 point.
5735 (completion_tracker::advance_custom_word_point_by): Change
5736 parameter type to int.
5737 * completer.h (completion_tracker::advance_custom_word_point_by):
5738 Likewise.
5739
00b56dbe
PA
57402019-06-13 Pedro Alves <palves@redhat.com>
5741
5742 * completer.c (advance_to_completion_word): Handle delimiters.
5743
d106773e
PA
57442019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
5745
5746 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
5747
08f10e02
TT
57482019-06-11 Tom Tromey <tom@tromey.com>
5749
5750 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
5751 (xmalloc_failed): Move to alloc.c.
5752 * alloc.c: New file.
5753 * Makefile.in (COMMON_SFILES): Add alloc.c.
5754
1c7fe951
TT
57552019-06-11 Tom Tromey <tom@tromey.com>
5756
5757 * nat/linux-waitpid.c: Don't include server.h.
5758 (linux_debug): Remove.
5759 (my_waitpid): Update.
5760
89549d7f
TT
57612019-06-11 Tom Tromey <tromey@adacore.com>
5762
5763 * infcall.c (_initialize_infcall): Remove trailing newline from
5764 help.
5765 * user-regs.c (_initialize_user_regs): Remove trailing newline
5766 from help.
5767 * typeprint.c (_initialize_typeprint): Remove trailing newline
5768 from help.
5769 * reverse.c (_initialize_reverse): Remove trailing newlines from
5770 help.
5771 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
5772 from help.
5773 * language.c (add_set_language_command): Remove trailing newline
5774 from help.
5775 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
5776 help.
5777 * disasm.c (_initialize_disasm): Remove trailing newline from
5778 help.
5779 * top.c (init_main): Remove trailing newline from help.
5780 * interps.c (_initialize_interpreter): Remove trailing newline
5781 from help.
5782 * btrace.c (_initialize_btrace): Remove trailing newlines from
5783 help.
5784 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
5785 from help.
5786 * python/python.c (_initialize_python): Remove trailing newline
5787 from help.
5788 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
5789 help.
5790 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
5791 from help. Reformat some text.
5792 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
5793 from help.
5794 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
5795 newline from help.
5796
86108c13
TT
57972019-06-11 Tom Tromey <tromey@adacore.com>
5798
5799 * darwin-nat.c (darwin_decode_exception_message)
5800 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
5801
a7067863
AB
58022019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
5803
5804 * valops.c (value_slice): Check for not allocated or not
5805 associated values.
5806
9ab08412
TV
58072019-06-10 Tom de Vries <tdevries@suse.de>
5808
5809 PR gdb/24618
5810 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
5811 sure an empty slot (defined by a 32-bit zero pair) is recognized as
5812 invalid.
5813
f19e22e9
TV
58142019-06-10 Tom de Vries <tdevries@suse.de>
5815
5816 PR gdb/24611
5817 * linespec.c (linespec_lexer_lex_string): Remove incorrect
5818 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
5819
e99f9db0
TV
58202019-06-10 Tom de Vries <tdevries@suse.de>
5821
5822 PR symtab/24545
5823 * symtab.c (struct demangled_name_entry): Add language field.
5824 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
5825 static minimal symbol". Set and use language field.
5826
9bf7038b
TT
58272019-06-10 Tom Tromey <tromey@adacore.com>
5828
5829 * ada-lang.c (_initialize_ada_language): Update help text.
5830
422186a9
TT
58312019-06-10 Tom Tromey <tromey@adacore.com>
5832
5833 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
5834 with a newline.
5835 * guile/guile.c (handle_boot_error): Don't end warning with a
5836 newline.
5837 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
5838 warning with a newline.
5839 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
5840 newline.
5841 (s12z_frame_cache): Likewise.
5842 * dwarf-index-cache.c (index_cache::store): Don't end warning with
5843 a newline.
5844 * solib-svr4.c (disable_probes_interface): Don't end warning with
5845 a newline.
5846 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
5847 newline.
5848 * python/python.c (do_finish_initialization): Don't end warning
5849 with a newline.
5850
25ce02ee
TT
58512019-06-10 Tom Tromey <tom@tromey.com>
5852
5853 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5854 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
5855 gdbpy_enter.
5856
caa429d8
TT
58572019-06-10 Tom Tromey <tromey@adacore.com>
5858
5859 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
5860 data.
5861 (elf_new_init): Don't call stabsread_new_init.
5862 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
5863 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
5864 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
5865
81873cc8
TV
58662019-06-10 Tom de Vries <tdevries@suse.de>
5867
5868 PR symtab/16264
5869 PR symtab/24517
5870 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
5871
4fa0265e
РИ
58722019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
5873
5874 * source.c (find_and_open_source): Also rewrite relative file
5875 names.
5876
1a3da2cd
AB
58772019-04-26 Amos Bird <amosbird@gmail.com>
5878
5879 * annotate.c (annotate_thread_exited): Add "thread-exited"
5880 annotation.
5881
3847a7bf
TT
58822019-06-06 Tom Tromey <tromey@adacore.com>
5883
5884 * maint.h (class scoped_command_stats): Use
5885 DISABLE_COPY_AND_ASSIGN.
5886 <print_time>: New method.
5887 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
5888 print_time.
5889 (scoped_command_stats::print_time): New method.
5890
312617a3
AB
58912019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5892
5893 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
5894 instructions of lengths 6 or 8 bytes.
5895
b02f78f9
PA
58962019-06-04 Pedro Alves <palves@redhat.com>
5897
5898 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
5899
5900 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
5901 * breakpoint.c (condition_completer): Likewise.
5902 * cli/cli-dump.c (scan_expression): Likewise.
5903 * common/filestuff.c (mkdir_recursive): Likewise.
5904 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
5905 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
5906 (gdb_abspath): Likewise.
5907 * compile/compile-cplus-types.c
5908 (compile_cplus_instance::decl_name): Likewise.
5909 * completer.c (complete_explicit_location):
5910 (signal_completer, reg_or_group_completer_1): Likewise.
5911 * cp-support.c (cp_remove_params_if_any): Likewise.
5912 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
5913 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
5914 * infcmd.c (strip_bg_char): Likewise.
5915 * linespec.c (copy_token_string): Likewise.
5916 * mi/mi-main.c (output_cores): Likewise.
5917 * psymtab.c (psymtab_search_name):
5918 * symfile.c (test_set_ext_lang_command): Likewise.
5919 * target.c (target_fileio_read_stralloc): Likewise.
5920 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
5921 * value.c (complete_internalvar): Likewise.
5922
e1f2e1a2
CB
59232019-06-04 Christian Biesinger <cbiesinger@google.com>
5924
5925 Add objfile property to gdb.Type.
d3238f7d
PA
5926 * NEWS: Mention Python API addition.
5927 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 5928
e664d728
PW
59292019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5930
5931 * NEWS: Mention the new set|show style [title|highlight].
5932 Mention changes to "show style", "help" and "apropos".
5933
66d8c862
PW
59342019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5935
5936 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
5937 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
5938 instead of print_help_for_command.
5939 (print_doc_of_command): New function.
5940 (help_list): Add 'apropos -v word' suggestion.
5941 (print_help_for_command): Style the command name using title style.
5942 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
5943 (_initialize_cli_cmds): Describe -v in apropos_command help.
5944
9303eb2f
PW
59452019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5946
5947 * cli/cli-style.h (cli_style_option): Add name in constructor,
5948 add m_name class member, add constructor with intensity,
5949 add name class function.
5950 (cli_style_option::add_setshow_commands): Remove name argument.
5951 (highlight_style, title_style): New styles.
5952 * cli/cli-style.c (do_show): New function that shows a style
5953 characteristic styling the style name with itself.
5954 (set_style_name): New function.
5955 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
5956 Update all callers according to the changes in cli/cli-style.h.
5957 * utils.h (fputs_highlighted): New function.
5958 * utils.c (fputs_highlighted): Likewise.
5959
e2c52041
PW
59602019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5961
5962 * NEWS: Mention new pipe command and new convenience variables.
5963
947d3946
PW
59642019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5965
5966 * cli/cli-cmds.c (pipe_command): New function.
5967 (_initialize_cli_cmds): Call add_com for pipe_command.
5968 Define | as an alias for pipe.
5969 (exit_status_set_internal_vars): New function.
5970 (shell_escape): Call exit_status_set_internal_vars.
5971 cli/cli-decode.c (find_command_name_length): Recognize | as
5972 a single character command.
5973
b8fd0918
PW
59742019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5975
5976 * gdbcmd.h (execute_command_to_ui_file): New declaration.
5977 top.c (execute_command_to_ui_file): New function, mostly a copy
5978 of execute_command_to_string.
5979 (execute_command_to_string): Implement by calling
5980 execute_command_to_ui_file.
5981
68bb5386
PW
59822019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5983
5984 * top.h (saved_command_line): Remove declaration.
5985 * top.c (previous_saved_command_line, previous_repeat_arguments):
5986 New variables.
5987 (saved_command_line): Make static, define together with other
5988 'repeat variables'.
5989 (dont_repeat): Clear repeat_arguments.
5990 (repeat_previous, get_saved_command_line, save_command_line):
5991 New functions.
5992 (gdb_init): Initialize saved_command_line
5993 and previous_saved_command_line.
5994 * main.c (captured_main_1): Remove saved_command_line initialization.
5995 * event-top.c (handle_line_of_input): Update to use
5996 the new 'repeat' related functions instead of direct access to
5997 saved_command_line.
5998 * command.h (repeat_previous, get_saved_command_line,
5999 save_command_line): New declarations.
6000 (dont_repeat): Add comment.
6001
bfcdb852
TT
60022019-05-30 Tom Tromey <tromey@adacore.com>
6003
6004 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
6005 Fix comment.
6006 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
6007
0ef209f2
JV
60082019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
6009
6010 PR cli/24587
6011 * completer.c (complete): Initialize variable word.
6012
955b06fa
SDJ
60132019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
6014
6015 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6016 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
6017 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
6018 'body' is NULL to the outter 'if', protecting the '!is_define'
6019 situation as well.
6020
fa9c3fa0
TT
60212019-05-29 Tom Tromey <tromey@adacore.com>
6022
6023 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
6024 (dwarf_unknown): New function.
6025 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
6026 (dwarf_type_encoding_name): Use dwarf_unknown.
6027
4330d61d
TT
60282019-05-29 Tom Tromey <tromey@adacore.com>
6029
6030 PR c++/20020:
6031 * cp-valprint.c (cp_print_value_fields): Call
6032 cp_print_static_field inside "try".
6033
33a6bc35
TT
60342019-05-29 Tom Tromey <tromey@adacore.com>
6035
6036 * inflow.c (struct terminal_info): Add default operator=.
6037 * configure: Rebuild.
6038 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
6039 -Wdeprecated-copy-dtor, -Wredundant-move.
6040
000439d5
TT
60412019-05-29 Tom Tromey <tromey@adacore.com>
6042
6043 * NEWS: Add entry.
6044 * infcmd.c (print_return_value_1): Handle finish_print
6045 option.
6046 (show_print_finish): New function.
6047 (_initialize_infcmd): Add "set/show print finish" commands.
6048 * valprint.c (user_print_options): Initialize new member.
6049 * valprint.h (struct value_print_options) <finish_print>: New
6050 member.
6051
c0e70c62
TT
60522019-05-28 Tom Tromey <tromey@adacore.com>
6053
6054 * ada-lang.c (ada_remove_Xbn_suffix)
6055 (find_old_style_renaming_symbol)
6056 (parse_old_style_renaming): Remove.
6057 (ada_find_renaming_symbol): Don't call
6058 find_old_style_renaming_symbol.
6059 (ada_is_renaming_symbol): Rename from
6060 ada_find_renaming_symbol. Remove "block" parameter. Return
6061 bool. Now static.
6062 (ada_read_var_value): Update and simplify.
6063 * ada-exp.y (write_var_or_type): Remove old code.
6064
766f8836
AH
60652019-05-28 Alan Hayward <alan.hayward@arm.com>
6066
6067 * event-top.c: Remove include comment.
6068 * inflow.c (class scoped_ignore_sigttou): Move from here...
6069 * inflow.h (class scoped_ignore_sigttou): ...to here.
6070 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
6071 * top.c: Remove include comment.
6072
eb41253a
TT
60732019-05-27 Tom Tromey <tom@tromey.com>
6074
6075 * NEWS: Fix typo.
6076
4ca51187
TT
60772019-05-22 Tom Tromey <tromey@adacore.com>
6078
6079 * target.c (target_follow_exec): Constify parameter.
6080 * target-delegates.c: Rebuild.
6081 * remote.c (remote_target::follow_exec): Constify parameter.
6082 * infrun.c (follow_exec): Constify parameter.
6083 * target.h (struct target_ops) <follow_exec>: Constify parameter.
6084 (target_follow_exec): Likewise.
6085
8fca4da0
AH
60862019-05-22 Alan Hayward <alan.hayward@arm.com>
6087
6088 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
6089 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
6090
b7060614
AH
60912019-05-22 Alan Hayward <alan.hayward@arm.com>
6092
6093 * NEWS: Add debugredirect and testsuite sections.
6094
0a5954bd
SC
60952019-05-22 Simon Cook <simon.cook@embecosm.com>
6096
6097 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
6098 target descriptions using exclusively floating point register name
6099 aliases.
6100
dc42e902
AB
61012019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
6102
6103 PR gdb/18644:
6104 * f-lang.c (build_fortran_types): Handle the case where
6105 gdbarch_floatformat_for_type returns a nullptr.
6106
fb7806c7
TV
61072019-05-21 Tom de Vries <tdevries@suse.de>
6108
6109 PR cli/24587
6110 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
6111
34d11c68
AB
61122019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6113
6114 PR gdb/18644:
6115 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
6116 16-byte floats.
6117 * i386-tdep.c (i386_floatformat_for_type): Use
6118 floatformats_ia64_quad for the 16-byte floating point component
6119 within a fortran 32-byte complex number.
6120
122cf0f2
AB
61212019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6122
6123 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
6124 delete default constructor.
6125 (find_partial_die): Update to return const struct.
6126 (partial_die_parent_scope): Move variable declaration into scope
6127 of its use and change its type to auto.
6128 (guess_partial_die_structure_name): Likewise.
6129 (partial_die_info::fixup): Likewise.
6130
33d0e35a
TT
61312019-05-17 Tom Tromey <tromey@adacore.com>
6132
6133 * source.c (find_and_open_source): Remove cast.
6134
a45575b0
TT
61352019-05-17 Tom Tromey <tromey@adacore.com>
6136
6137 * annotate.c (annotate_source): Make "filename" const.
6138 * annotate.h (annotate_source): Use const.
6139
81f47ac2
AH
61402019-05-17 Alan Hayward <alan.hayward@arm.com>
6141
6142 * disasm.c (set_disassembler_options): Send errors to stderr.
6143
ca1285d1
AH
61442019-05-17 Alan Hayward <alan.hayward@arm.com>
6145
6146 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
6147 (cli_interp_base::set_logging): Check debug_redirect.
6148 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
6149 * cli/cli-logging.c (debug_redirect): Add static variable.
6150 (pop_output_files): Add default param.
6151 (handle_redirections): Print debug setting.
6152 (show_logging_command): Likewise.
6153 (_initialize_cli_logging): Add debugredirect command.
6154 * interps.c (current_interp_set_logging): Add debug_redirect
6155 parameter.
6156 * interps.h (set_logging): Add debug_redirect parameter.
6157 (current_interp_set_logging): Likewise.
6158 * mi/mi-common.h: Likewise.
6159 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
6160
61612019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
6162 Tom Tromey <tromey@adacore.com>
6163
6164 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
6165 directly.
6166 * cli/cli-interp.h (make_logging_output): Remove declaration.
6167 * cli/cli-logging.c (make_logging_output): Remove function.
6168 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
6169 directly.
6170 * ui-file.c (tee_file::tee_file): Remove bools.
6171 (tee_file::~tee_file): Remove deletes.
6172 * ui-file.h (tee_file): Remove bools.
6173
26648588
JV
61742019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
6175
6176 * mi/mi-cmds.h (mi_cmd_complete): New function.
6177 * mi/mi-main.c (mi_cmd_complete): Likewise.
6178 * mi/mi-cmds.c: Define new MI command -complete.
6179 * NEWS: Mention new -complete command.
6180
6e035501
JV
61812019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
6182
6183 * completer.h (complete): New function.
6184 * completer.c (complete): Likewise.
6185 * cli/cli-cmds.c: (complete_command): Update to use new complete()
6186 function defined in completer.h.
6187
7d0e2ece
JV
61882019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
6189
e79be6e5 6190 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 6191
fb816e8b
TV
61922019-05-17 Tom de Vries <tdevries@suse.de>
6193
6194 PR gdb/24094
6195 * dwarf2read.c (struct cu_partial_die_info): New struct.
6196 (find_partial_die): Return cu_partial_die_info.
6197 (partial_die_parent_scope, guess_partial_die_structure_name)
6198 (partial_die_info::fixup): Handle new return type of find_partial_die.
6199
677052f2
SDJ
62002019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6201
a1726c38 6202 PR breakpoints/24541
677052f2
SDJ
6203 * stap-probe.c (stap_parse_register_operand): Make "regname" an
6204 "std::string", simplifying the algorithm.
6205
f3da9116
SDJ
62062019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6207
6208 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
6209 (stap_static_probe_ops::get_probes): Likewise.
6210
f1bb75ab
SDJ
62112019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6212
6213 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
6214 '-')" and "else if".
6215 (stap_parse_single_operand): Join checks for
6216 "gdbarch_stap_parse_special_token_p" and
6217 "gdbarch_stap_parse_special_token" in the same "if" statement.
6218 Invert check when verifying for operation on register
6219 displacement.
6220
3ca58cde
SDJ
62212019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6222
6223 * stap-probe.c (stap_get_opcode): Update comment.
6224 (stap_get_expected_argument_type): Likewise.
6225 (handle_stap_probe): Likewise.
6226
af2d9bee
SDJ
62272019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6228
6229 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
6230 return type to 'bool'. Adjust comment. Use 'bool' when
6231 appropriate.
6232 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6233 * stap-probe.c (stap_parse_argument_1): Likewise.
6234 (stap_is_operator): Likewise.
6235 (stap_is_generic_prefix): Likewise.
6236 (stap_is_register_prefix): Likewise.
6237 (stap_is_register_indirection_prefix): Likewise.
6238 (stap_is_integer_prefix): Likewise.
6239 (stap_generic_check_suffix): Likewise.
6240 (stap_check_integer_suffix): Likewise.
6241 (stap_check_register_suffix): Likewise.
6242 (stap_check_register_indirection_suffix): Likewise.
6243 (stap_parse_register_operand): Likewise.
6244 (stap_parse_single_operand): Likewise.
6245 (stap_parse_argument_1): Likewise.
6246 (stap_probe::get_argument_count): Likewise.
6247 (stap_is_operator): Likewise.
6248
61c9c421
TT
62492019-05-16 Tom Tromey <tromey@adacore.com>
6250
6251 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
6252 keyword to foreach.
6253
9ddc1af1
SM
62542019-05-15 Simon Marchi <simon.marchi@efficios.com>
6255
6256 * linux-thread-db.c (try_thread_db_load_1): Change return type
6257 to bool.
6258 (try_thread_db_load): Likewise.
6259 (try_thread_db_load_from_pdir_1): Likewise.
6260 (try_thread_db_load_from_pdir): Likewise.
6261 (try_thread_db_load_from_sdir): Likewise.
6262 (try_thread_db_load_from_dir): Likewise.
6263 (thread_db_load_search): Likewise.
6264 (has_libpthread): Likewise.
6265 (thread_db_load): Likewise.
6266
7bede828
SDJ
62672019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
6268
6269 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6270 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
6271 NULL, and complain/return if that's the case.
6272
c5358db4
JD
62732019-05-15 John Darrington <john@darrington.wattle.id.au>
6274
6275 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
6276 (advance, posn, abstract_read_memory): New functions.
6277 [struct mem_read_abstraction]: New struct.
6278 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
6279
c408a94f
TT
62802019-05-14 Tom Tromey <tromey@adacore.com>
6281
6282 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
6283 value is not lval_memory.
6284
e7bd7fba
TT
62852019-05-14 Tom Tromey <tromey@adacore.com>
6286
6287 * solib.c (info_sharedlibrary_command): Style the file name.
6288
a6d0f249
AH
62892019-05-14 Alan Hayward <alan.hayward@arm.com>
6290
6291 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
6292 (aarch64_vnv_type): Likewise.
6293 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
6294 * common/tdesc.c: Likewise.
6295 * common/tdesc.h (enum tdesc_type_kind): Likewise.
6296 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
6297 * features/aarch64-fpu.xml: Add ieee half view.
6298 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
6299 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
6300 * gdbtypes.h (struct builtin_type): Likewise.
6301 (struct objfile_type): Likewise.
6302
66b8bb74
SM
63032019-05-12 Paul Naert <paul.naert@polymtl.ca>
6304
6305 * language.c (language_sniff_from_mangled_name): Fix "langauge"
6306 typo.
6307 * location.h (string_to_event_location): Likewise.
6308
21c219fd
JB
63092019-05-11 Joel Brobecker <brobecker@adacore.com>
6310
6311 GDB 8.3 released.
6312
13674803
SM
63132019-05-10 Simon Marchi <simon.marchi@efficios.com>
6314
6315 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
6316 New variable declaration.
6317 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
6318 New variable.
6319 (print_one_breakpoint): Use ui_out::test_flags and new global
6320 variable to compute use_fixed_output.
6321 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
6322 Remove.
6323 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
6324 (mi_multi_location_breakpoint_output_fixed): Remove.
6325 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
6326 new variable.
6327 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
6328 fix_multi_location_breakpoint_output flag if version >= 3.
6329 * ui-out.h (enum ui_out_flag)
6330 <fix_multi_location_breakpoint_output>: New enumerator.
6331
a9eac7f9
SM
63322019-05-10 Simon Marchi <simon.marchi@efficios.com>
6333
6334 * contrib/cc-with-tweaks.sh: Validate dwz's work.
6335
71bed2db
TT
63362019-05-10 Tom Tromey <tromey@adacore.com>
6337
6338 * ada-lang.c (catch_ada_completer): New function.
6339 (_initialize_ada_language): Use it.
6340
24c54127
TT
63412019-05-10 Tom Tromey <tromey@adacore.com>
6342
6343 * thread.c (print_thread_info): Make "requested_threads" const.
6344 * gdbthread.h (print_thread_info): Make "requested_threads"
6345 const.
6346 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
6347 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
6348
7a102139
TT
63492019-05-08 Tom Tromey <tom@tromey.com>
6350
6351 * gdbtypes.c (objfile_type_data): Change type.
6352 (objfile_type, _initialize_gdbtypes): Update.
6353
924d79e2
TT
63542019-05-08 Tom Tromey <tom@tromey.com>
6355
6356 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
6357 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
6358 (_initialize_dwarf2_frame): Update.
6359
4c58e337
TT
63602019-05-08 Tom Tromey <tom@tromey.com>
6361
6362 * objc-lang.c (objc_objfile_data): Change type.
6363 (find_methods): Update.
6364 (_initialize_objc_lang): Remove.
6365
d772d2ab
TT
63662019-05-08 Tom Tromey <tom@tromey.com>
6367
6368 * stabsread.c (rs6000_builtin_type_data): Change type.
6369 (rs6000_builtin_type, _initialize_stabsread): Update.
6370
d11d83f4
TT
63712019-05-08 Tom Tromey <tom@tromey.com>
6372
6373 * mips-tdep.c (mips_pdr_data): Remove.
6374 (_initialize_mips_tdep): Update.
6375
9a73f0ad
TT
63762019-05-08 Tom Tromey <tom@tromey.com>
6377
6378 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
6379 (hppa_init_objfile_priv_data, read_unwind_info)
6380 (find_unwind_entry, _initialize_hppa_tdep): Update.
6381
8127a2fa
TT
63822019-05-08 Tom Tromey <tom@tromey.com>
6383
6384 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
6385 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
6386 on obstack.
6387 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
6388
91d3055d
TT
63892019-05-08 Tom Tromey <tom@tromey.com>
6390
6391 * mdebugread.c (basic_type_data): Change type.
6392 (basic_type, _initialize_mdebugread): Update.
6393
31930bd3
TT
63942019-05-08 Tom Tromey <tom@tromey.com>
6395
6396 * common/gdb_unique_ptr.h (struct noop_deleter): New.
6397
bdb3ed9e
TT
63982019-05-08 Tom Tromey <tom@tromey.com>
6399
6400 * nto-tdep.c (nto_inferior_data_reg): Change type.
6401 (nto_inferior_data): Update.
6402 (nto_inferior_data_cleanup, nto_new_inferior_data)
6403 (_initialize_nto_tdep): Remove.
6404 * nto-tdep.h (struct nto_inferior_data): Add initializers.
6405
f37b313d
TT
64062019-05-08 Tom Tromey <tom@tromey.com>
6407
6408 * ada-lang.c (struct ada_inferior_data): Add initializers.
6409 (ada_inferior_data): Change type.
6410 (ada_inferior_data_cleanup): Remove.
6411 (get_ada_inferior_data, ada_inferior_exit)
6412 (struct ada_pspace_data): Add initializers, destructor.
6413 (ada_pspace_data_handle): Change type.
6414 (get_ada_pspace_data): Update.
6415 (ada_pspace_data_cleanup): Remove.
6416
24699405
TT
64172019-05-08 Tom Tromey <tom@tromey.com>
6418
6419 * coffread.c (struct coff_symfile_info): Add initializers.
6420 (coff_objfile_data_key): Move lower. Change type.
6421 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
6422 Update.
6423 (coff_free_info): Remove.
6424
d4e05d2f
TT
64252019-05-08 Tom Tromey <tom@tromey.com>
6426
6427 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
6428 (fbsd_pspace_data_handle): Move lower. Change type.
6429 (get_fbsd_pspace_data): Update.
6430 (fbsd_pspace_data_cleanup): Remove.
6431 (_initialize_fbsd_tdep): Update.
6432
14ef6690
TT
64332019-05-08 Tom Tromey <tom@tromey.com>
6434
6435 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
6436 (get_ada_tasks_pspace_data): Update.
6437 (ada_tasks_pspace_data_cleanup): Remove.
6438 (_initialize_tasks): Update.
6439 (ada_tasks_inferior_data_handle): Change type.
6440 (get_ada_tasks_inferior_data): Update.
6441 (ada_tasks_inferior_data_cleanup): Remove.
6442 (struct ada_tasks_pspace_data): Add initializers.
6443
814cf43a
TT
64442019-05-08 Tom Tromey <tom@tromey.com>
6445
6446 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
6447 * symfile-debug.c (debug_sym_get_probes): Change type.
6448 * stap-probe.c (handle_stap_probe):
6449 (stap_static_probe_ops::get_probes): Change type.
6450 * probe.h (class static_probe_ops) <get_probes>: Change type.
6451 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
6452 (parse_probes_in_pspace): Update.
6453 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
6454 Update.
6455 (any_static_probe_ops::get_probes): Change type.
6456 * elfread.c (elfread_data): New typedef.
6457 (probe_key): Change type.
6458 (elf_get_probes): Likewise. Update.
6459 (probe_key_free): Remove.
6460 (_initialize_elfread): Update.
6461 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
6462 Change type.
6463 (dtrace_process_dof_probe, dtrace_process_dof)
6464 (dtrace_static_probe_ops::get_probe): Change type.
6465
02dc647e
TT
64662019-05-08 Tom Tromey <tom@tromey.com>
6467
6468 * xcoffread.c (struct xcoff_symfile_info): Rename from
6469 coff_symfile_info. Add initializers.
6470 (xcoff_objfile_data_key): Move lower. Change type.
6471 (XCOFF_DATA): Rewrite.
6472 (xcoff_free_info): Remove.
6473 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
6474 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
6475 (xcoff_initial_scan): Update.
6476
09232438
TT
64772019-05-08 Tom Tromey <tom@tromey.com>
6478
6479 * solib-svr4.c (struct svr4_info): Add initializers and
6480 destructor.
6481 <probes_table>: Now an htab_up.
6482 (solib_svr4_pspace_data): Change type.
6483 (free_probes_table): Simplify.
6484 (~svr4_info): Rename from svr4_pspace_data_cleanup.
6485 (get_svr4_info, probes_table_htab_remove_objfile_probes)
6486 (probes_table_remove_objfile_probes, register_solib_event_probe)
6487 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
6488 (_initialize_svr4_solib): Update.
6489
7b4a314f
TT
64902019-05-08 Tom Tromey <tom@tromey.com>
6491
6492 * remote.c (remote_pspace_data): Change type.
6493 (remote_pspace_data_cleanup): Remove.
6494 (get_remote_exec_file, set_pspace_remote_exec_file)
6495 (_initialize_remote): Update.
6496
51d3063a
TT
64972019-05-08 Tom Tromey <tom@tromey.com>
6498
6499 * breakpoint.c (breakpoint_objfile_key): Change type.
6500 (get_breakpoint_objfile_data): Update.
6501 (free_breakpoint_objfile_data): Remove.
6502 (_initialize_breakpoint): Update.
6503
89fb8848
TT
65042019-05-08 Tom Tromey <tom@tromey.com>
6505
6506 * linux-tdep.c (struct linux_info): Add initializers.
6507 (linux_inferior_data): Move. Change type.
6508 (invalidate_linux_cache_inf): Update.
6509 (linux_inferior_data_cleanup): Remove.
6510 (get_linux_inferior_data, _initialize_linux_tdep): Update.
6511
e9b89e2d
TT
65122019-05-08 Tom Tromey <tom@tromey.com>
6513
6514 * auxv.c (auxv_inferior_data): Move. Change type.
6515 (auxv_inferior_data_cleanup): Remove.
6516 (invalidate_auxv_cache_inf): Rewrite.
6517 (get_auxv_inferior_data, _initialize_auxv): Update.
6518
8c42777c
TT
65192019-05-08 Tom Tromey <tom@tromey.com>
6520
6521 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
6522 (symfile_debug_objfile_data_key): Change type.
6523 (symfile_debug_installed, debug_qf_has_symbols)
6524 (debug_qf_find_last_source_symtab)
6525 (debug_qf_forget_cached_source_info)
6526 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
6527 (debug_qf_print_stats, debug_qf_dump)
6528 (debug_qf_expand_symtabs_for_function)
6529 (debug_qf_expand_all_symtabs)
6530 (debug_qf_expand_symtabs_with_fullname)
6531 (debug_qf_map_matching_symbols)
6532 (debug_qf_expand_symtabs_matching)
6533 (debug_qf_find_pc_sect_compunit_symtab)
6534 (debug_qf_map_symbol_filenames)
6535 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
6536 (debug_sym_new_init, debug_sym_init, debug_sym_read)
6537 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
6538 (debug_sym_read_linetable, debug_sym_relocate): Update.
6539 (symfile_debug_free_objfile): Remove.
6540 (install_symfile_debug_logging, _initialize_symfile_debug):
6541 Update.
6542
5bfd760d
TT
65432019-05-08 Tom Tromey <tom@tromey.com>
6544
6545 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
6546 allocate_on_obstack.
6547 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
6548 (get_dwarf2_per_objfile): Update.
6549 (set_dwarf2_per_objfile): Remove.
6550 (dwarf2_has_info, dwarf2_get_section_info): Update.
6551 (dwarf2_free_objfile): Remove.
6552 (_initialize_dwarf2_read): Update.
6553
e85e19b4
TT
65542019-05-08 Tom Tromey <tom@tromey.com>
6555
6556 * auto-load.c (struct auto_load_pspace_info): Add destructor and
6557 initializers.
6558 <unsupported_script_warning_printed,
6559 script_not_found_warning_printed>: Now bool.
6560 (auto_load_pspace_data): Change type.
6561 (~auto_load_pspace_info): Rename from
6562 auto_load_pspace_data_cleanup.
6563 (get_auto_load_pspace_data, init_loaded_scripts_info)
6564 (clear_section_scripts, maybe_print_unsupported_script_warning)
6565 (maybe_print_script_not_found_warning, _initialize_auto_load):
6566 Update.
6567
f6aa7436
TT
65682019-05-08 Tom Tromey <tom@tromey.com>
6569
6570 * objfiles.c (objfile_pspace_info): Add destructor and
6571 initializers.
6572 (objfiles_pspace_data): Change type.
6573 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
6574 (get_objfile_pspace_data): Update.
6575 (objfiles_bfd_data): Change type.
6576 (get_objfile_bfd_data): Update.
6577 (objfile_bfd_data_free, _initialize_objfiles): Remove.
6578
6ae614f6
TT
65792019-05-08 Tom Tromey <tom@tromey.com>
6580
6581 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
6582 Change type.
6583 (get_catch_syscall_inferior_data): Update.
6584 (catch_syscall_inferior_data_cleanup): Remove.
6585 (_initialize_break_catch_syscall): Update.
6586
6509b8eb
TT
65872019-05-08 Tom Tromey <tom@tromey.com>
6588
6589 * inflow.c (struct terminal_info): Add destructor and
6590 initializers.
6591 (inflow_inferior_data): Change type.
6592 (~terminal_info): Rename from inflow_inferior_data_cleanup.
6593 (get_inflow_inferior_data, inflow_inferior_exit)
6594 (swap_terminal_info, _initialize_inflow): Update.
6595
35632941
TT
65962019-05-08 Tom Tromey <tom@tromey.com>
6597
6598 * target-dcache.c (target_dcache_cleanup): Remove.
6599 (target_dcache_aspace_key): Change type.
6600 (target_dcache_init_p, target_dcache_invalidate)
6601 (target_dcache_get, target_dcache_get_or_init)
6602 (_initialize_target_dcache): Update.
6603 * dcache.h (struct dcache_deleter): New.
6604
3017b94d
TT
66052019-05-08 Tom Tromey <tom@tromey.com>
6606
6607 * symtab.c (struct symbol_cache): Add destructor and
6608 initializers.
6609 (symbol_cache_key): Move. Change type.
6610 (make_symbol_cache, free_symbol_cache): Remove.
6611 (get_symbol_cache): Update.
6612 (symbol_cache_cleanup): Remove.
6613 (ALL_PSPACES, symbol_cache_flush)
6614 (maintenance_print_symbol_cache)
6615 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
6616 Update.
6617
a32ad8c5
TT
66182019-05-08 Tom Tromey <tom@tromey.com>
6619
6620 * symtab.c (struct main_info): Add destructor and initializers.
6621 (main_progspace_key): Move. Change type.
6622 (get_main_info): Update.
6623 (main_info_cleanup): Remove.
6624 (_initialize_symtab): Update.
6625
5f6e90a0
TT
66262019-05-08 Tom Tromey <tom@tromey.com>
6627
6628 * registry.h (DECLARE_REGISTRY): Define the _key class.
6629
1bd0c6e4
AB
66302019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6631
6632 * NEWS: Merge two 'New commands' sections.
6633
2228ef77
XR
66342019-05-08 Joel Brobecker <brobecker@adacore.com>
6635
6636 * ada-valprint.c (ada_val_print_gnat_array): Remove language
6637 parameter and use Ada language definition instead.
6638 (ada_val_print_ptr): Remove unused language parameter.
6639 (ada_val_print_num): Remove language parameter and use Ada language
6640 definition instead.
6641 (ada_val_print_enum, ada_val_print_flt): Remove unused language
6642 parameter.
6643 (ada_val_print_struct_union, ada_val_print_ref): Remove language
6644 parameter and use Ada language definition instead.
6645 (ada_val_print_1): Update all ada_val_print_xxx calls.
6646 Remove language parameter.
6647 (ada_val_print): Update ada_val_print_1 call.
6648
60fcc1c3
TT
66492019-05-08 Tom Tromey <tromey@adacore.com>
6650
6651 * remote.c (remote_hw_watchpoint_limit)
6652 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
6653 Now static.
6654
ed2b7c17
TT
66552019-05-08 Tom Tromey <tromey@adacore.com>
6656
6657 * maint.c (_initialize_maint_cmds): Move initialization code to
6658 remote.c.
6659 (watchdog, show_watchdog): Move to remote.c.
6660 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
6661 "watchdog" static.
6662 (_initialize_remote): Move initialization code from maint.c.
6663 * defs.h (watchdog): Don't declare.
6664
b0be6c91
TT
66652019-05-08 Tom Tromey <tromey@adacore.com>
6666
6667 * tui/tui-interp.c: Include main.h.
6668 * interps.c: Include main.h.
6669 * main.h (interpreter_p): Declare.
6670 * defs.h (interpreter_p): Don't declare.
6671
587ee17b
TT
66722019-05-08 Tom Tromey <tromey@adacore.com>
6673
6674 * dwarf2loc.c: Include dwarf2read.h.
6675 * defs.h (read_unsigned_leb128): Don't declare.
6676 * dwarf2read.h (read_unsigned_leb128): Declare.
6677
ca1df239
TT
66782019-05-08 Tom Tromey <tromey@adacore.com>
6679
6680 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
6681 method.
6682
99f20f08
TT
66832019-05-08 Tom Tromey <tromey@adacore.com>
6684
6685 * utils.c (fputs_maybe_filtered): Reset style after paging, even
6686 when no wrap column is set.
6687
80e55b13
TT
66882019-05-08 Tom Tromey <tromey@adacore.com>
6689
6690 * c-lang.c (c_get_string): Handle non-C-style arrays.
6691
9d3421af
TT
66922019-05-08 Tom Tromey <tromey@adacore.com>
6693
6694 * typeprint.c (print_offset_data::update): Print the bit offset,
6695 not the number of bits remaining.
6696
844333e2
TT
66972019-05-08 Tom Tromey <tromey@adacore.com>
6698
6699 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
6700 padding at end of comment.
6701
988915ee
TT
67022019-05-08 Tom Tromey <tromey@adacore.com>
6703
6704 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
6705 Compare main types.
6706
26bfd823
TT
67072019-05-06 Tom Tromey <tom@tromey.com>
6708
6709 * common/scoped_mmap.c: Include common-defs.h.
6710 * common/scoped_mmap.h: Don't include config.h.
6711
89055eaa
TT
67122019-05-04 Tom Tromey <tom@tromey.com>
6713
6714 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
6715 (struct aarch64_call_info): Add initializers.
6716 <si>: Now a std::vector.
6717 (pass_on_stack, aarch64_push_dummy_call): Update.
6718
5da01df5
TT
67192019-05-04 Simon Marchi <simon.marchi@efficios.com>
6720 Tom Tromey <tom@tromey.com>
6721
6722 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
6723 (ppc_threads): Now a std::vector. Now static.
6724 (hwdebug_find_thread_points_by_tid)
6725 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
6726 Update.
6727
fbdf05a1
TT
67282019-05-04 Tom Tromey <tom@tromey.com>
6729
6730 * arc-tdep.c (arc_tdesc_init): Return bool.
6731
06d16ec9
TT
67322019-05-04 Tom Tromey <tom@tromey.com>
6733
6734 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
6735 Use gdb_assert_not_reached.
6736
9c056022
TT
67372019-05-04 Tom Tromey <tom@tromey.com>
6738
6739 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
6740 "false".
6741
fa9c2a59
TT
67422019-05-04 Tom Tromey <tom@tromey.com>
6743
6744 * arc-tdep.c (arc_tdesc_init): Use bool.
6745
e2eb806a
TT
67462019-05-04 Tom Tromey <tom@tromey.com>
6747
6748 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
6749
6fe87677
TT
67502019-05-04 Tom Tromey <tom@tromey.com>
6751
6752 * cli/cli-cmds.c (valid_command_p): Return bool.
6753
7f008c9e
TT
67542019-05-04 Tom Tromey <tom@tromey.com>
6755
6756 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
6757 * command.h (valid_user_defined_cmd_name_p): Channge return type.
6758
b6484282
RT
67592019-05-04 Raul Tambre <raul@tambre.ee>
6760
6761 * python/lib/gdb/prompt.py (_ExtendedPrompt)
6762 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
6763 operator for comparison.
6764
af97b416
TT
67652019-05-04 Tom Tromey <tom@tromey.com>
6766
6767 * psymtab.c (psymbol_name_matches, match_partial_symbol)
6768 (lookup_partial_symbol, print_partial_symbols)
6769 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
6770 (psymbol_compare): Update.
6771 (add_psymbol_to_bcache): Clear the entire psymbol.
6772 (maintenance_check_psymtabs): Update.
6773 * psympriv.h (struct partial_symbol): Don't derive from
6774 general_symbol_info.
6775 <obj_section, unrelocated_address, address,
6776 set_unrelocated_address>: Update.
6777 <ginfo>: New member.
6778 * dwarf-index-write.c (write_psymbols, debug_names::insert)
6779 (debug_names::write_psymbols): Update.
6780
9d6d4be8
TV
67812019-05-04 Tom de Vries <tdevries@suse.de>
6782
6783 * contrib/cc-with-tweaks.sh: Support -n arg.
6784
66452beb
PW
67852019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6786
6787 * corelow.c (core_target::detach): Ensure frame cache and
6788 register caches are cleared.
6789 inferior.c (exit_inferior_1): Likewise.
6790
bde09ab7
TT
67912019-05-03 Sandra Loosemore <sandra@codesourcery.com>
6792 Tom Tromey <tom@tromey.com>
6793
6794 * dictionary.c (collate_pending_symbols_by_language): Remove
6795 "struct" from foreach.
6796 * symtab.c (lookup_global_symbol_from_objfile)
6797 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
6798 foreach.
6799 * ser-tcp.c (net_open): Remove "struct" from foreach.
6800 * objfiles.c (objfile_relocate, objfile_rebase)
6801 (objfile_has_symbols): Remove "struct" from foreach.
6802 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
6803 from foreach.
6804 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
6805 foreach.
6806 * darwin-nat.c (thread_info_from_private_thread_info): Remove
6807 "struct" from foreach.
6808 * ada-lang.c (create_excep_cond_exprs)
6809 (ada_exception_catchpoint_cond_string): Remove "struct" from
6810 foreach.
6811
222a8d25
TT
68122019-05-03 Tom Tromey <tromey@adacore.com>
6813
6814 * ada-exp.y (convert_char_literal): Check suffix of each
6815 enumerator.
6816
fcd60b84
DP
68172019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
6818
6819 PR ada/21406:
6820 * ada-exp.y (yywrap): Don't define.
6821 * ada-lex.l (%option): Add noyywrap
6822 (yywrap): Remove.
6823
5f2459c2
EZ
68242019-05-03 Eli Zaretskii <eliz@gnu.org>
6825
353ea2d1
EZ
6826 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
6827 _WIN32_WINNT to the XP level, unless already defined to a higher
6828 level.
6829
6830 * unittests/parse-connection-spec-selftests.c:
6831 * ser-tcp.c:
6832 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
6833 override.
6834
5f2459c2
EZ
6835 * symfile.c (find_separate_debug_file): Remove colon from the
6836 drive spec of DOS/Windows file names of the target, so that the
6837 file name produced from DEBUGDIR and the target's directory will
6838 be valid on DOS/Windows systems.
6839
80062eb9
AB
68402019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
6841
6842 * rust-lang.c (val_print_struct): Handle printing structures
6843 containing strings.
6844
b8c05e85
TT
68452019-05-02 Tom Tromey <tromey@adacore.com>
6846
6847 * valarith.c (_initialize_valarith): Remove.
6848
4504bbde
TT
68492019-05-01 Tom Tromey <tromey@adacore.com>
6850
6851 * ada-lang.c (ada_value_primitive_field): Treat more fields as
6852 bitfields.
6853
d48e62f4
TT
68542019-05-01 Tom Tromey <tromey@adacore.com>
6855
6856 * ada-lang.c (ada_value_assign): Correctly compute starting offset
6857 for big-endian copies.
6858
15f18d14
AT
68592019-04-30 Ali Tamur <tamur@google.com>
6860 * gdb/dwarf2read.c (read_3_bytes): New declaration.
6861 (read_attribute_value): Added DW_FORM_strx1-4 cases.
6862 (read_3_bytes): New function.
6863
ab4ee614
JB
68642019-04-30 Joel Brobecker <brobecker@adacore.com>
6865
6866 * windows-nat.c (main_thread_id): Delete.
6867 (handle_output_debug_string): Replace main_thread_id by
6868 current_event.dwThreadId.
6869 (fake_create_process): Likewise.
6870 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
6871 Do not set main_thread_id.
6872 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
6873 current_event.dwThreadId.
6874 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
6875
8ed5b76e
JB
68762019-04-30 Joel Brobecker <brobecker@adacore.com>
6877
6878 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
6879 Use current_event.dwThreadId instead of main_thread_id.
6880
2ff0a947
TT
68812019-04-30 Tom Tromey <tromey@adacore.com>
6882
6883 * ada-lang.c (ada_lookup_simple_minsyms): New function.
6884 (create_excep_cond_exprs): Iterate over program spaces.
6885 (ada_exception_catchpoint_cond_string): Examine all minimal
6886 symbols for exception types.
6887
a776957c
TT
68882019-04-30 Tom Tromey <tromey@adacore.com>
6889
6890 PR c++/24470:
6891 * dwarf2read.c (process_structure_scope): Handle case where type
6892 has template parameters but no symbol was created.
6893
bc68014d
AB
68942019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6895 Chris January <chris.january@arm.com>
6896
6897 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
6898 qualifier.
6899 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
6900
f1fdc960
AB
69012019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6902
6903 * f-typeprint.c (f_print_type): Update rules for printing
6904 whitespace.
6905 (f_type_print_varspec_suffix): Likewise.
6906
bf7a4de1
AB
69072019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6908 Chris January <chris.january@arm.com>
6909
6910 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
6911 function arguments.
6912
bbe75b9d
AB
69132019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6914
6915 * f-lang.c (build_fortran_types): Change name of void type to
6916 lower case.
6917 * f-typeprint.c (f_type_print_base): Print the name of the void
6918 type, rather than a fixed string.
6919 * f-valprint.c (f_decorations): Use lower case void string.
6920
1db455a7
AB
69212019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6922 Chris January <chris.january@arm.com>
6923
6924 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
6925 types for Fortran.
6926
b6d03bb2
AB
69272019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6928 Chris January <chris.january@arm.com>
6929 David Lecomber <david.lecomber@arm.com>
6930
6931 * f-exp.y (BINOP_INTRINSIC): New token.
6932 (exp): New parser rule handling BINOP_INTRINSIC.
6933 (f77_keywords): Add new builtin procedures.
6934 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
6935 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6936 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
6937 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6938 (print_unop_subexp_f): New function.
6939 (print_binop_subexp_f): New function.
6940 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6941 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6942 (dump_subexp_body_f): Likewise.
6943 (operator_check_f): Likewise.
6944 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6945 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
6946
83228e93
AB
69472019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6948
6949 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
6950 UNOP_KIND.
6951 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
6952 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
6953 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
6954 (operator_length_f): New fuction.
6955 (print_subexp_f): New function.
6956 (op_name_f): New function.
6957 (dump_subexp_body_f): New function.
6958 (operator_check_f): New function.
6959 (exp_descriptor_f): Replace standard expression handling functions
6960 with new functions.
6961 * gdb/fortran-operator.def: New file.
6962 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
6963 * gdb/std-operator.def: Remove UNOP_KIND.
6964
6fdcd7cc
AB
69652019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6966
6967 * std-operator.def: Remove unbalanced, stray double quote
6968 character.
6969
2e62ab40
AB
69702019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6971 Chris January <chris.january@arm.com>
6972 Daniel Everett <daniel.everett@arm.com>
6973 Nick Forrington <nick.forrington@arm.com>
6974 Richard Bunt <richard.bunt@arm.com>
6975
6976 * cp-valprint.c (cp_print_value_fields): Allow an additional level
6977 of depth when printing anonymous structs or unions.
6978 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
6979 Don't print either the top-level value, or the children if the
6980 max-depth is exceeded.
6981 (ppscm_print_children): When printing the key of a map, allow one
6982 extra level of depth.
6983 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
6984 print either the top-level value, or the children if the max-depth
6985 is exceeded.
6986 (print_children): When printing the key of a map, allow one extra
6987 level of depth.
6988 * python/py-value.c (valpy_format_string): Add max_depth keyword.
6989 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
6990 (user_print_options): Initialise max_depth field.
6991 (val_print_scalar_or_string_type_p): New function.
6992 (val_print): Check to see if the max depth has been reached.
6993 (val_print_check_max_depth): Define new function.
6994 (show_print_max_depth): New function.
6995 (_initialize_valprint): Add 'print max-depth' option.
6996 * valprint.h (struct value_print_options) <max_depth>: New field.
6997 (val_print_check_max_depth): Declare new function.
6998 * NEWS: Document new feature.
6999
4be290b2
AB
70002019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7001
7002 * ada-lang.c (ada_language_defn): Initialise new field.
7003 * c-lang.c (c_is_string_type_p): New function.
7004 (c_language_defn): Initialise new field.
7005 (cplus_language_defn): Initialise new field.
7006 (asm_language_defn): Initialise new field.
7007 (minimal_language_defn): Initialise new field.
7008 * c-lang.h (c_is_string_type_p): Declare new function.
7009 * d-lang.c (d_language_defn): Initialise new field.
7010 * f-lang.c (f_is_string_type_p): New function.
7011 (f_language_defn): Initialise new field.
7012 * go-lang.c (go_is_string_type_p): New function.
7013 (go_language_defn): Initialise new field.
7014 * language.c (default_is_string_type_p): New function.
7015 (unknown_language_defn): Initialise new field.
7016 (auto_language_defn): Initialise new field.
7017 * language.h (struct language_defn) <la_is_string_type_p>: New
7018 member variable.
7019 (default_is_string_type_p): Declare new function.
7020 * m2-lang.c (m2_language_defn): Initialise new field.
7021 * objc-lang.c (objc_language_defn): Initialise new field.
7022 * opencl-lang.c (opencl_language_defn): Initialise new field.
7023 * p-lang.c (pascal_is_string_type_p): New function.
7024 (pascal_language_defn): Initialise new field.
7025 * rust-lang.c (rust_is_string_type_p): New function.
7026 (rust_language_defn): Initialise new field.
7027
721b08c6
AB
70282019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7029
7030 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
7031 New field.
7032 * ada-lang.c (ada_language_defn): Initialise new field.
7033 * c-lang.c (c_language_defn): Likewise.
7034 (cplus_language_defn): Likewise.
7035 (asm_language_defn): Likewise.
7036 (minimal_language_defn): Likewise.
7037 * d-lang.c (d_language_defn): Likewise.
7038 * f-lang.c (f_language_defn): Likewise.
7039 * go-lang.c (go_language_defn): Likewise.
7040 * language.c (unknown_language_defn): Likewise.
7041 (auto_language_defn): Likewise.
7042 * m2-lang.c (m2_language_defn): Likewise.
7043 * objc-lang.c (objc_language_defn): Likewise.
7044 * opencl-lang.c (opencl_language_defn): Likewise.
7045 * p-lang.c (pascal_language_defn): Likewise.
7046 * rust-lang.c (rust_language_defn): Likewise.
7047
fc913e53
AB
70482019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7049
7050 * ada-lang.c (ada_is_character_type): Change return type to bool.
7051 (ada_is_string_type): Likewise.
7052 * ada-lang.h (ada_is_character_type): Update declaration
7053 (ada_is_string_type): Likewise.
7054
fa731fa0
PW
70552019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7056
7057 Support style in 'frame|thread apply'
7058
7059 * gdbcmd.h (execute_command_to_string): New term_out parameter.
7060 * record.c (record_start, record_stop): Update callers of
7061 execute_command_to_string with false.
7062 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
7063 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
7064 methods.
7065 (class string_file): New constructor with term_out parameter.
7066 Override methods term_out and can_emit_style_escape. New member
7067 term_out.
7068 (class stdio_file): Override can_emit_style_escape.
7069 (class tee_file): Override term_out and can_emit_style_escape.
7070 * utils.h (can_emit_style_escape): Remove.
7071 * utils.c (can_emit_style_escape): Likewise.
7072 Update all callers of can_emit_style_escape (SOMESTREAM) to
7073 SOMESTREAM->can_emit_style_escape.
7074 * source-cache.c (source_cache::get_source_lines): Likewise.
7075 * stack.c (frame_apply_command_count): Call execute_command_to_string
7076 passing the term_out characteristic of the current gdb_stdout.
7077 * thread.c (thr_try_catch_cmd): Likewise.
7078 * top.c (execute_command_to_string): pass term_out parameter
7079 to construct the string_file for the command output.
7080 * ui-file.c (term_cli_styling): New function (most code moved
7081 from utils.c can_emit_style_escape).
7082 (string_file::string_file, string_file::can_emit_style_escape,
7083 stdio_file::can_emit_style_escape, tee_file::term_out,
7084 tee_file::can_emit_style_escape): New functions.
7085
136afab8
PW
70862019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7087
7088 * NEWS: Mention the new set|show may-call-functions.
7089 * infcall.c (may_call_functions_p): New variable.
7090 (show_may_call_functions_p): New function.
7091 (call_function_by_hand_dummy): Throws an error if not
7092 may-call-functions.
7093 (_initialize_infcall): Call add_setshow_boolean_cmd for
7094 may-call-functions.
7095
725cbb63
KS
70962019-04-25 Keith Seitz <keiths@redhat.com>
7097
7098 PR c++/24367
7099 * cp-support.c (inspect_type): Don't attempt substitutions
7100 of symbol with the same name.
7101
3d1cbb78
TT
71022019-04-25 Tom Tromey <tromey@adacore.com>
7103
7104 PR gdb/24475:
7105 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
7106 static.
7107
94aeb44b
TT
71082019-04-25 Tom Tromey <tromey@adacore.com>
7109
7110 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
7111 rvalue reference.
7112 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
7113 (gdb_xml_parser::parse): Use std::move.
7114 * python/python-internal.h (gdbpy_convert_exception): Take a const
7115 reference.
7116 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
7117 std::move.
7118 * python/py-utils.c (gdbpy_convert_exception): Take a const
7119 reference.
7120 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7121 Use std::move.
7122 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7123 Use std::move.
7124 * mi/mi-main.c (mi_print_exception): Take a const reference.
7125 * main.c (handle_command_errors): Take a const reference.
7126 * linespec.c (parse_linespec): Use std::move.
7127 * infcall.c (run_inferior_call): Use std::move.
7128 (call_function_by_hand_dummy): Use std::move.
7129 * exec.c (try_open_exec_file): Use std::move.
7130 * exceptions.h (exception_print, exception_fprintf)
7131 (exception_print_same): Update.
7132 * exceptions.c (print_exception, exception_print)
7133 (exception_fprintf, exception_print_same): Change parameters to
7134 const reference.
7135 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
7136 * common/new-op.c: Use std::move.
7137 * common/common-exceptions.h (struct gdb_exception): Add move
7138 constructor.
7139 (struct gdb_exception_error, struct gdb_exception_quit, struct
7140 gdb_quit_bad_alloc): Change constructor to move constructor.
7141 (throw_exception): Change parameter to rvalue reference.
7142 * common/common-exceptions.c (throw_exception): Take rvalue
7143 reference.
7144 * cli/cli-interp.c (safe_execute_command): Use std::move.
7145 * breakpoint.c (insert_bp_location, location_to_sals): Use
7146 std::move.
7147
680d7fd5
TT
71482019-04-25 Tom Tromey <tromey@adacore.com>
7149
7150 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
7151 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
7152 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
7153 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
7154 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
7155 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
7156 guile/scm-value.c: Use unpack.
7157 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
7158 gdbscm_gdb_exception.
7159 (gdbscm_throw_gdb_exception): Likewise.
7160 (struct gdbscm_gdb_exception): New.
7161 (unpack): New function.
7162 (gdbscm_wrap): Use unpack.
7163
c6fdd8b2
TT
71642019-04-25 Tom Tromey <tromey@adacore.com>
7165
7166 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7167 (gdb_rl_callback_handler): Use std::move.
7168 * common/common-exceptions.h (struct gdb_exception): Add move
7169 assignment operator.
7170 (throw_exception_sjlj): Change "exception" to const reference.
7171 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
7172 (throw_exception_sjlj): Change "exception" to const reference.
7173
cc06b668
TT
71742019-04-25 Tom Tromey <tromey@adacore.com>
7175
7176 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
7177 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
7178 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7179 Update.
7180 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7181 Update.
7182 * mi/mi-interp.c (mi_interp::exec): Update.
7183 * linespec.c (parse_linespec): Update.
7184 * infcall.c (run_inferior_call): Update.
7185 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
7186 * guile/scm-symbol.c (gdbscm_lookup_symbol)
7187 (gdbscm_lookup_global_symbol): Update.
7188 * guile/scm-param.c (gdbscm_parameter_value): Update.
7189 * guile/scm-frame.c (gdbscm_frame_read_register)
7190 (gdbscm_frame_read_var): Update.
7191 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7192 * exec.c (try_open_exec_file): Update.
7193 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7194 (gdb_rl_callback_handler): Update.
7195 * common/common-exceptions.h (exception_none): Don't declare.
7196 * common/common-exceptions.c (exception_none): Don't define.
7197 (struct catcher) <exception>: Update.
7198 * cli/cli-interp.c (safe_execute_command): Update.
7199 * breakpoint.c (insert_bp_location, location_to_sals): Update.
7200
cf532bd1
AT
72012019-04-25 Ali Tamur <tamur@google.com>
7202
7203 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
7204 (read_attribute_value): Likewise.
7205 (dwarf2_read_addr_index): Update comment.
7206 (read_str_index): Add DW_FORM_strx.
7207 (dwarf2_string_attr): Likewise.
7208 (dwarf2_const_value_attr): Likewise.
7209 (dump_die_shallow): Likewise.
7210 (dwarf2_fetch_constant_bytes): Likewise.
7211 (skip_form_bytes): Likewise.
7212 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
7213
82433e3e
SDJ
72142019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7215
7216 PR corefiles/11608
7217 PR corefiles/18187
7218 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
7219 OFFSET. Verify if current mapping contains an ELF header.
7220 (linux_find_memory_regions_full): Adjust call to
7221 dump_mapping_p.
7222
723adb65
SL
72232019-04-25 Sandra Loosemore <sandra@codesourcery.com>
7224 Kang Li <kanglictf@gmail.com>
7225
7226 PR gdb/21600
7227
7228 * dwarf2-frame.c (read_initial_length): Be consistent about using
7229 unsigned representation of length.
7230 (decode_frame_entry_1): Likewise. Check for wraparound of
7231 end pointer as well as buffer overflow.
7232
596179f7
SDJ
72332019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7234
7235 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
7236 "vq".
7237
a59240a4
TT
72382019-04-24 Tom Tromey <tromey@adacore.com>
7239
7240 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
7241
f872fdbb
AB
72422019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7243
7244 * s12z-tdep.c (s12z_unwind_pc): Delete.
7245 (s12z_unwind_sp): Delete.
7246 (s12z_gdbarch_init): Don't register deleted functions with
7247 gdbarch.
7248
b614e6f3
AB
72492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7250
7251 * rl78-tdep.c (rl78_unwind_sp): Delete.
7252 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
7253
14faed38
AB
72542019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7255
7256 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
7257 (xstormy16_unwind_pc): Delete.
7258 (xstormy16_dummy_id): Delete.
7259 (xstormy16_gdbarch_init): Don't register deleted functions with
7260 gdbarch.
7261
541aad8a
AB
72622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7263
7264 * vax-tdep.c (vax_unwind_pc): Delete.
7265 (vax_gdbarch_init): Don't register deleted function with gdbarch.
7266
29222070
AB
72672019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7268
7269 * v850-tdep.c (v850_unwind_sp): Delete.
7270 (v850_unwind_pc): Delete.
7271 (v850_dummy_id): Delete.
7272 (v850_gdbarch_init): Don't register deleted functions with
7273 gdbarch.
7274
0f534d76
AB
72752019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7276
7277 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
7278 (tilegx_unwind_pc): Delete.
7279 (tilegx_unwind_dummy_id): Delete.
7280 (tilegx_gdbarch_init): Don't register deleted functions with
7281 gdbarch.
7282
1ba7b7f9
AB
72832019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7284
7285 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
7286 (tic6x_dummy_id): Delete.
7287 (tic6x_gdbarch_init): Don't register deleted functions with
7288 gdbarch.
7289
d31f262c
AB
72902019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7291
7292 * sparc-tdep.c (sparc_unwind_pc): Delete.
7293 (sparc32_gdbarch_init): Don't register deleted function with
7294 gdbarch.
7295
6d14d64d
AB
72962019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7297
7298 * sh-tdep.c (sh_unwind_sp): Delete.
7299 (sh_unwind_pc): Delete.
7300 (sh_dummy_id): Delete.
7301 (sh_gdbarch_init): Don't register deleted functions with
7302 gdbarch.
7303
a40dde9d
AB
73042019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7305
7306 * score-tdep.c (score_unwind_sp): Delete.
7307 (score_unwind_pc): Delete.
7308 (score_dummy_id): Delete.
7309 (score_gdbarch_init): Don't register deleted functions with
7310 gdbarch.
7311
47c47d69
AB
73122019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7313
7314 * rx-tdep.c (rx_unwind_pc): Delete.
7315 (rx_unwind_sp): Delete.
7316 (rx_dummy_id): Delete.
7317 (rx_gdbarch_init): Don't register deleted functions with
7318 gdbarch. Update comment.
7319
833a4480
AB
73202019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7321
7322 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
7323 (rs6000_dummy_id): Delete.
7324 (rs6000_gdbarch_init): Don't register deleted functions with
7325 gdbarch.
7326
3f2cef49
AB
73272019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7328
7329 * or1k-tdep.c (or1k_dummy_id): Delete.
7330 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
7331
96acf884
AB
73322019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7333
7334 * nios2-tdep.c (nios2_dummy_id): Delete.
7335 (nios2_unwind_sp): Delete.
7336 (nios2_gdbarch_init): Don't register deleted functions with
7337 gdbarch.
7338
ca0ab0aa
AB
73392019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7340
7341 * nds32-tdep.c (nds32_dummy_id): Delete.
7342 (nds32_unwind_pc): Delete.
7343 (nds32_unwind_sp): Delete.
7344 (nds32_gdbarch_init): Don't register deleted functions with
7345 gdbarch.
7346
c8259044
AB
73472019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7348
7349 * msp430-tdep.c (msp430_unwind_pc): Delete.
7350 (msp430_unwind_sp): Delete.
7351 (msp430_dummy_id): Delete.
7352 (msp430_gdbarch_init): Don't register deleted functions with
7353 gdbarch.
7354
27f113c8
AB
73552019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7356
7357 * moxie-tdep.c (moxie_unwind_sp): Delete.
7358 (moxie_unwind_pc): Delete.
7359 (moxie_dummy_id): Delete.
7360 (moxie_gdbarch_init): Don't register deleted functions with
7361 gdbarch.
7362
aee6c3cd
AB
73632019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7364
7365 * mn10300-tdep.c (mn10300_dummy_id): Delete.
7366 (mn10300_unwind_pc): Delete.
7367 (mn10300_unwind_sp): Delete.
7368 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
7369 mn10300_unwind_sp.
7370 (mn10300_frame_unwind_init): Don't register deleted functions with
7371 gdbarch.
7372
8e2b5aea
AB
73732019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7374
7375 * mep-tdep.c (mep_unwind_pc): Delete.
7376 (mep_unwind_sp): Delete.
7377 (mep_dummy_id): Delete.
7378 (mep_gdbarch_init): Don't register deleted functions with
7379 gdbarch.
7380
43cf3ede
AB
73812019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7382
7383 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
7384 (m68hc11_unwind_sp): Delete.
7385 (m68hc11_gdbarch_init): Don't register deleted functions with
7386 gdbarch.
7387
5e79b7bb
AB
73882019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7389
7390 * m32r-tdep.c (m32r_unwind_sp): Delete.
7391 (m32r_unwind_pc): Delete.
7392 (m32r_dummy_id): Delete.
7393 (m32r_gdbarch_init): Don't register deleted functions with
7394 gdbarch.
7395
89b268d8
AB
73962019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7397
7398 * m32c-tdep.c (m32c_unwind_pc): Delete.
7399 (m32c_unwind_sp): Delete.
7400 (m32c_dummy_id): Delete.
7401 (m32c_gdbarch_init): Don't register deleted functions with
7402 gdbarch.
7403
946c28d2
AB
74042019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7405
7406 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
7407 (lm32_unwind_pc): Delete.
7408 (lm32_dummy_id): Delete.
7409 (lm32_gdbarch_init): Don't register deleted functions with
7410 gdbarch.
7411
bf12844a
AB
74122019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7413
7414 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
7415 (iq2000_unwind_pc): Delete.
7416 (iq2000_dummy_id): Delete.
7417 (iq2000_gdbarch_init): Don't register deleted functions with
7418 gdbarch.
7419
ecbc06d2
AB
74202019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7421
7422 * nds32-tdep.c (nds32_type_align): Delete.
7423 (nds32_push_dummy_call): Use type_align instead.
7424
030197b4
AB
74252019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7426
7427 * arm-tdep.c (arm_type_align): Only handle vector override case.
7428 (arm_push_dummy_call): Use type_align.
7429 (arm_gdbarch_init): Register arm_type_align gdbarch function.
7430
b907456c
AB
74312019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7432
7433 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
7434 case.
7435 (pass_on_stack): Use type_align.
7436 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
7437 function.
7438
9e97ba43
TT
74392019-04-23 Tom Tromey <tromey@adacore.com>
7440
7441 * dwarf2read.c (line_header::file_name_at): Remove unused
7442 overload.
7443
6892f601
TV
74442019-04-23 Tom de Vries <tdevries@suse.de>
7445
7446 PR gdb/24438
7447 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
7448 invocation.
7449
336d760d
AT
7450
74512019-03-27 Ali Tamur <tamur@google.com>
7452
7453 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
7454 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
7455 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
7456 (dwarf_expr_context::get_addr_index): Likewise
7457 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
7458 (symbol_needs_eval_context::get_addr_index): Likewise
7459 (disassemble_dwarf_expression): Add DW_OP_addrx
7460 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
7461 (read_cutu_die_from_dwo): Update comment
7462 (skip_one_die): Add DW_FORM_addrx
7463 (read_attribute_value): Likewise
7464 (var_decode_location): Add DW_OP_addrx
7465 (dwarf2_const_value_attr): Add DW_FORM_addrx
7466 (dump_die_shallow): Likewise
7467 (dwarf2_fetch_constant_bytes): Likewise
7468 (decode_locdesc): Add DW_OP_addrx
7469 (skip_form_bytes): Add DW_FORM_addrx
7470
ad9d13f8
AT
74712019-04-22 Ali Tamur <tamur@google.com>
7472
7473 * MAINTAINERS (Write After Approval): Add self.
7474
d70cc3ba
SM
74752019-04-22 Simon Marchi <simon.marchi@efficios.com>
7476
7477 * solib-svr4.c (get_svr4_info): Add pspace parameter.
7478 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
7479 (open_symbol_file_object): Likewise.
7480 (svr4_default_sos): Add info parameter.
7481 (svr4_read_so_list): Likewise.
7482 (svr4_current_sos_direct): Adjust functions calls to pass down
7483 info.
7484 (svr4_current_sos_1): Add info parameter.
7485 (svr4_current_sos): Call get_svr4_info, pass info down to
7486 svr4_current_sos_1.
7487 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
7488 get_svr4_info.
7489 (svr4_in_dynsym_resolve_code): Pass current_program_space to
7490 get_svr4_info.
7491 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
7492 to get_svr4_info.
7493 (probes_table_remove_objfile_probes): Likewise.
7494 (register_solib_event_probe): Add info parameter.
7495 (solist_update_incremental): Pass info parameter down to
7496 svr4_read_so_list.
7497 (disable_probes_interface): Add info parameter.
7498 (svr4_handle_solib_event): Pass current_program_space to
7499 get_svr4_info. Adjust disable_probes_interface cleanup.
7500 (svr4_create_probe_breakpoints): Add info parameter, pass it
7501 down to register_solib_event_probe.
7502 (svr4_create_solib_event_breakpoints): Add info parameter,
7503 pass it down to svr4_create_probe_breakpoints.
7504 (enable_break): Pass info down to
7505 svr4_create_solib_event_breakpoints.
7506 (svr4_solib_create_inferior_hook): Pass current_program_space to
7507 get_svr4_info.
7508 (svr4_clear_solib): Likewise.
7509
7905fc35
PA
75102019-04-22 Pedro Alves <palves@redhat.com>
7511
7512 * solib-svr4.c (svr4_free_objfile_observer): New.
7513 (probe_and_action::objfile): New field.
7514 (probes_table_htab_remove_objfile_probes)
7515 (probes_table_remove_objfile_probes): New functions.
7516 (register_solib_event_probe): Add 'objfile' parameter. Store it
7517 in the new probe_and_action. Don't store the probe in 'lookup'.
7518 (svr4_create_probe_breakpoints): Pass objfile to
7519 register_solib_event_probe.
7520 (_initialize_svr4_solib): Register a free_objfile observer.
7521
fb881986
TT
75222019-04-19 Tom Tromey <tom@tromey.com>
7523
7524 * common/queue.h: Remove.
7525
8732db6c
TT
75262019-04-19 Tom Tromey <tom@tromey.com>
7527
7528 * event-loop.c: Don't include "common/queue.h".
7529
97dfbadd
TT
75302019-04-19 Tom Tromey <tom@tromey.com>
7531
7532 * remote.c (remote_target): Use delete.
7533 * remote-notif.h: Include <list>, not "common/queue.h".
7534 (notif_client_p): Remove typedef.
7535 (remote_notif_state): Add constructor, destructor, initializer.
7536 <notif_queue>: Now a std::list.
7537 (remote_notif_state_xfree): Don't declare.
7538 * remote-notif.c (remote_notif_process, handle_notification)
7539 (remote_notif_state_allocate): Update.
7540 (~remote_notif_state): Rename from remote_notif_state_xfree.
7541
cf250e36
TT
75422019-04-19 Tom Tromey <tom@tromey.com>
7543
7544 * symfile.c (reread_symbols): Update.
7545 * objfiles.c (objfile_register_static_link)
7546 (objfile_lookup_static_link): Update
7547 (~objfile) Don't delete static_links.
7548 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
7549
61f4b350
TT
75502019-04-19 Tom Tromey <tom@tromey.com>
7551
7552 * type-stack.h (struct type_stack) <insert>: Constify string.
7553 * type-stack.c (type_stack::insert): Constify string.
7554 * gdbtypes.h (lookup_template_type): Update.
7555 (address_space_name_to_int): Update.
7556 * gdbtypes.c (address_space_name_to_int): Make space_identifier
7557 const.
7558 (lookup_template_type): Make name const.
7559 * c-exp.y: Update rules.
7560 (lex_one_token, classify_name, classify_inner_name)
7561 (c_print_token): Update.
7562 * p-exp.y: Update rules.
7563 (yylex): Update.
7564 * f-exp.y: Update rules.
7565 (yylex): Update.
7566 * d-exp.y: Update rules.
7567 (lex_one_token, classify_name, classify_inner_name): Update.
7568 * parse.c (write_dollar_variable, copy_name): Return std::string.
7569 * parser-defs.h (copy_name): Change return type.
7570 * m2-exp.y: Update rules.
7571 (yylex): Update.
7572 * go-exp.y (lex_one_token): Update.
7573 Update rules.
7574 (classify_unsafe_function, classify_packaged_name)
7575 (classify_name, yylex): Update.
7576
189b8c2e
ST
75772019-04-19 Sergei Trofimovich <siarheit@google.com>
7578
7579 * configure.ac: add --enable-source-highlight switch.
7580 * configure: Regenerate.
7581 * top.c (print_gdb_version): plumb --enable-source-highlight
7582 status to "show configuration".
7583
8ecb59f8
TT
75842019-04-19 Tom Tromey <tromey@adacore.com>
7585
7586 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
7587 Check ADA_TYPE_P.
7588 (empty_record, ada_template_to_fixed_record_type_1)
7589 (template_to_static_fixed_type)
7590 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
7591 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
7592 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
7593 macros.
7594
62160ec9
TT
75952019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
7596
7597 PR symtab/24423:
7598 * source.c (print_source_lines_base): Advance "iter" when a
7599 control character is seen.
7600
f2ae8bc8
PW
76012019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7602
7603 * inferior.h (struct infcall_suspend_state_deleter):
7604 Catch exception in destructor to avoid crash.
7605
d563b953
PW
76062019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7607
7608 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
7609 close to the add_com "shell".
7610
dc34c897
TT
76112019-04-18 Tom Tromey <tromey@adacore.com>
7612
7613 * process-stratum-target.h (class process_stratum_target)
7614 <stratum>: Add "final".
7615
a12e5744
TT
76162019-04-17 Tom Tromey <tromey@adacore.com>
7617
7618 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
7619 against nullptr before use.
7620
a7e559cc
AH
76212019-04-17 Alan Hayward <alan.hayward@arm.com>
7622
7623 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
7624
c01660c6
AB
76252019-04-17 Jim Wilson <jimw@sifive.com>
7626 Andrew Burgess <andrew.burgess@embecosm.com>
7627
7628 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
7629 code read might fail, assume 4-byte breakpoint in that case.
7630
4aa866af
LS
76312019-04-15 Leszek Swirski <leszeks@google.com>
7632
7633 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
7634 rather than a hand-rolled POD check when checking for forced MEMORY
7635 classification.
7636
48574d91
AH
76372019-04-15 Alan Hayward <alan.hayward@arm.com>
7638
7639 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
7640 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
7641 function.
7642 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
7643 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
7644 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
7645 declaration.
7646
4da037ef
AH
76472019-04-15 Alan Hayward <alan.hayward@arm.com>
7648
7649 * aarch64-linux-nat.c
7650 (aarch64_linux_nat_target::thread_architecture): Add override.
7651 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
7652 each VQ.
7653
ccb8d7e8
AH
76542019-04-15 Alan Hayward <alan.hayward@arm.com>
7655
7656 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
7657
35add35e
AB
76582019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
7659
7660 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
7661 target types of size 96-bits, add some additional comments, and
7662 check that the builtin type we found was the correct size.
7663
51196bbc
EZ
76642019-04-12 Eli Zaretskii <eliz@gnu.org>
7665
7666 * utils.c (prompt_for_continue): Don't restore the styling at the
7667 end, as applied_style has the wrong value. This fixes styling in
7668 long lists of file names that are interrupted by the "Continue?"
7669 prompt.
7670
62253a61
AB
76712019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
7672
7673 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
7674 * c-lang.c (c_language_defn): Likewise.
7675 (cplus_language_defn): Likewise.
7676 (asm_language_defn): Likewise.
7677 (minimal_language_defn): Likewise.
7678 * d-lang.c (d_language_defn): Likewise.
7679 * f-lang.c (f_language_defn): Likewise.
7680 * go-lang.c (go_language_defn): Likewise.
7681 * language.c (unknown_language_defn): Likewise.
7682 (auto_language_defn): Likewise.
7683 * language.h (struct language_defn): Remove la_magic field.
7684 (LANG_MAGIC): Delete.
7685 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
7686 * objc-lang.c (objc_language_defn): Likewise.
7687 * opencl-lang.c (opencl_language_defn): Likewise.
7688 * p-lang.c (pascal_language_defn): Likewise.
7689 * rust-lang.c (rust_language_defn): Likewise.
7690
a9158a86
AB
76912019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7692
7693 * riscv-tdep.c (riscv_type_align): New function.
7694 (riscv_type_alignment): Delete.
7695 (riscv_arg_location): Use 'type_align'.
7696 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
7697
41077b66
AB
76982019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7699
7700 * gdbtypes.c (type_align): A struct with no non-static fields also
7701 has alignment of 1.
7702
9f0272f8
AB
77032019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7704
7705 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
7706 component to 0.
7707 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
7708 member.
7709 (riscv_struct_info::analyse): New implementation using new
7710 analyse_inner member function.
7711 (riscv_struct_info::field_offset): New member function.
7712 (riscv_struct_info::m_offsets): New member variable.
7713 (riscv_struct_info::analyse_inner): New private member function,
7714 takes the old implementation of riscv_struct_info::analyse but
7715 extended to track field offsets.
7716 (riscv_call_arg_struct): Update the struct folding special cases
7717 to handle cases where empty C++ structs, which are non-zero
7718 length, are found.
7719 (riscv_arg_location): Initialise the length of each location, a
7720 non-zero length now indicates the location is in use.
7721 (riscv_push_dummy_call): Allow for the first location having a
7722 non-zero offset when setting up arguments.
7723 (riscv_return_value): Likewise, but for return values.
7724
02cf60c7
TT
77252019-04-11 Tom Tromey <tromey@adacore.com>
7726
7727 * utils.c (internal_vproblem): Make "msg" const.
7728
68811f8f
AH
77292019-04-11 Alan Hayward <alan.hayward@arm.com>
7730
7731 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
7732 * trad-frame.c (trad_frame_reset_saved_regs): New function.
7733 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
7734 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
7735
3f52fdbc
KB
77362019-04-10 Kevin Buettner <kevinb@redhat.com>
7737
7738 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
7739 function.
7740 (fill_gregset): Call amd64_linux_collect_native_gregset instead
7741 of amd64_collect_native_gregset.
7742 (amd64_linux_nat_target::store_registers): Likewise.
7743
e9ad22ee
TT
77442019-04-10 Tom Tromey <tom@tromey.com>
7745
7746 * symtab.c (lookup_global_symbol_from_objfile)
7747 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
7748 * objfiles.h (class separate_debug_iterator): New.
7749 (class separate_debug_range): New.
7750 (struct objfile) <separate_debug_objfiles>: New method.
7751 (objfile_separate_debug_iterate): Don't declare.
7752 * objfiles.c (separate_debug_iterator::operator++): Rename from
7753 objfile_separate_debug_iterate.
7754 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
7755 iterator.
7756 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
7757 iterator.
7758
ee371134
TT
77592019-04-10 Tom Tromey <tom@tromey.com>
7760
7761 * symfile.c (reread_symbols): Remove old comment.
7762 * objfiles.c (free_all_objfiles): Fix a typo.
7763
bf227d61
TT
77642019-04-10 Tom Tromey <tom@tromey.com>
7765
7766 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
7767 * minsyms.c (lookup_minimal_symbol): Use foreach.
7768 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7769 (lookup_minimal_symbol_solib_trampoline): Likewise.
7770 * symfile.c (reread_symbols): Use foreach.
7771
8dc433a0
TT
77722019-04-09 Ivan Begert <ivanbegert@gmail.com>
7773 Tom Tromey <tromey@adacore.com>
7774
7775 PR rust/24414:
7776 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
7777 (rust_lex_int_test): Change "value" to be LONGEST.
7778 (rust_lex_tests): Add test for long integer literal.
7779
9ab8741a
TT
77802019-04-09 Tom Tromey <tromey@adacore.com>
7781
7782 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
7783 to bool.
7784 (extended_remote_target::attach): Update.
7785 (remote_target::remote_notice_new_inferior): Update.
7786 (remote_target::add_current_inferior_and_thread): Update.
7787 * inferior.c (exit_inferior_1): Use "false".
7788 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
7789
e242fd12
SM
77902019-04-09 Simon Marchi <simon.marchi@efficios.com>
7791
9ca1957f 7792 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
7793 the "start" command.
7794
2b0c8b01
KB
77952019-04-08 Kevin Buettner <kevinb@redhat.com>
7796
7797 * python/py-inferior.c (infpy_thread_from_thread_handle):
7798 Adjust comments to reflect renaming of thread_from_thread_handle
7799 to thread_from_handle. Adjust keywords. Fix type error message.
7800 (inferior_object_methods): Add thread_from_handle. Retain
7801 thread_from_thread_handle, but mark it as deprecated.
7802
50a82723
KB
78032019-04-08 Kevin Buettner <kevinb@redhat.com>
7804
7805 * gdbthread.h (find_thread_by_handle): Revise declaration.
7806 * thread.c (find_thread_by_handle): Likewise. Adjust
7807 implementation too.
7808 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
7809 support for buffer objects as handles.
7810
cf63b016
KB
78112019-04-08 Kevin Buettner <kevinb@redhat.com>
7812
7813 * python/py-infthread.c (thpy_thread_handle): New function.
7814 (thread_object_methods): Register thpy_thread_handle.
7815
3d6c6204
KB
78162019-04-08 Kevin Buettner <kevinb@redhat.com>
7817
7818 * gdbthread.h (thread_to_thread_handle): Declare.
7819 * thread.c (gdbtypes.h): Include.
7820 (thread_to_thread_handle): New function.
7821
7822 * target.h (struct target_ops): Add thread_info_to_thread_handle.
7823 (target_thread_info_to_thread_handle): Declare.
7824 * target.c (target_thread_info_to_thread_handle): New function.
7825 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
7826 * target-delegates.c: Regenerate.
7827
7828 * linux-thread-db.c (class thread_db_target): Add method
7829 thread_info_to_thread_handle.
7830 (thread_db_target::thread_info_to_thread_handle): Define.
7831 * remote.c (class remote_target): Add new method
7832 thread_info_to_thread_handle.
7833 (remote_target::thread_info_to_thread_handle): Define.
7834
56be6ea8
PA
78352019-04-08 Pedro Alves <palves@redhat.com>
7836
7837 * common/common-exceptions.c (throw_exception): Don't create
7838 named object to throw; throw directly.
7839 (throw_it): Likewise. Don't initialize gdb_exception::message
7840 here, with new; pass FMT and AP to the ctor instead.
7841 * common/common-exceptions.h: Include <string>.
7842 (gdb_exception::gdb_exception(enum return_reason, enum errors,
7843 const char *, va_list)): New ctor. Use std::make_shared.
7844 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
7845 errors)): Delete.
7846 (gdb_exception_error::gdb_exception_error(enum errors, const char
7847 *, va_list)): New.
7848 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
7849 Add assertion.
7850 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
7851 errors)): Delete.
7852 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
7853 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
7854 Add assertion.
7855
eedc3f4f
TT
78562019-04-08 Tom Tromey <tom@tromey.com>
7857
7858 * valops.c (value_rtti_indirect_type): Replace throw_exception
7859 with throw.
7860 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
7861 with throw.
7862 * thread.c (thr_try_catch_cmd): Replace throw_exception with
7863 throw.
7864 * target.c (target_translate_tls_address): Replace throw_exception
7865 with throw.
7866 * stack.c (frame_apply_command_count): Replace throw_exception
7867 with throw.
7868 * solib-spu.c (append_ocl_sos): Replace throw_exception with
7869 throw.
7870 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
7871 with throw.
7872 * rs6000-tdep.c (rs6000_frame_cache)
7873 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
7874 * remote.c: Replace throw_exception with throw.
7875 * record-full.c (record_full_message, record_full_wait_1)
7876 (record_full_restore): Replace throw_exception with throw.
7877 * record-btrace.c:
7878 (get_thread_current_frame_id, record_btrace_start_replaying)
7879 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
7880 (cmd_record_btrace_start): Replace throw_exception with throw.
7881 * parse.c (parse_exp_in_context_1): Replace throw_exception with
7882 throw.
7883 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
7884 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
7885 * linespec.c:
7886 (find_linespec_symbols): Replace throw_exception with throw.
7887 * infrun.c (displaced_step_prepare, resume): Replace
7888 throw_exception with throw.
7889 * infcmd.c (post_create_inferior): Replace throw_exception with
7890 throw.
7891 * inf-loop.c (inferior_event_handler): Replace throw_exception
7892 with throw.
7893 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
7894 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
7895 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
7896 (get_prev_frame_always, get_frame_pc_if_available)
7897 (get_frame_address_in_block_if_available, get_frame_language):
7898 Replace throw_exception with throw.
7899 * frame-unwind.c (frame_unwind_try_unwinder): Replace
7900 throw_exception with throw.
7901 * eval.c (fetch_subexp_value, evaluate_var_value)
7902 (evaluate_funcall, evaluate_subexp_standard): Replace
7903 throw_exception with throw.
7904 * dwarf2loc.c (call_site_find_chain)
7905 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
7906 Replace throw_exception with throw.
7907 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
7908 with throw.
7909 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
7910 throw.
7911 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
7912 * completer.c (complete_line_internal): Replace throw_exception
7913 with throw.
7914 * compile/compile-object-run.c (compile_object_run): Replace
7915 throw_exception with throw.
7916 * cli/cli-script.c (process_next_line): Replace throw_exception
7917 with throw.
7918 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
7919 (btrace_enable, btrace_maint_update_pt_packets): Replace
7920 throw_exception with throw.
7921 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
7922 throw_exception with throw.
7923 * break-catch-throw.c (re_set_exception_catchpoint): Replace
7924 throw_exception with throw.
7925 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7926 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
7927 * aarch64-tdep.c (aarch64_make_prologue_cache)
7928 (aarch64_make_stub_cache): Replace throw_exception with throw.
7929
26003a20
TT
79302019-04-08 Tom Tromey <tom@tromey.com>
7931
7932 * common/common-exceptions.c (throw_exception): Rename from
7933 throw_exception_cxx. Remove old copy. Make argument const.
7934 (throw_it): Create and throw exception objects directly.
7935 * common/common-exceptions.h (throw_exception): Make argument
7936 const.
7937 (struct gdb_exception_error): Add constructor.
7938 (struct gdb_exception_quit): Add constructor.
7939
d272eb37
TT
79402019-04-08 Tom Tromey <tom@tromey.com>
7941
7942 * common/common-exceptions.h (exception_rethrow): Don't declare.
7943 (TRY_SJLJ): Update comment.
7944 (TRY, CATCH, END_CATCH): Remove.
7945 * common/common-exceptions.c (exception_rethrow): Remove.
7946
230d2906
TT
79472019-04-08 Tom Tromey <tom@tromey.com>
7948
7949 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
7950 Remove.
7951 (gdb_exception_error): Rename from
7952 gdb_exception_RETURN_MASK_ERROR.
7953 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
7954 (gdb_quit_bad_alloc): Update.
7955 * aarch64-tdep.c: Update.
7956 * ada-lang.c: Update.
7957 * ada-typeprint.c: Update.
7958 * ada-valprint.c: Update.
7959 * amd64-tdep.c: Update.
7960 * arch-utils.c: Update.
7961 * break-catch-throw.c: Update.
7962 * breakpoint.c: Update.
7963 * btrace.c: Update.
7964 * c-varobj.c: Update.
7965 * cli/cli-cmds.c: Update.
7966 * cli/cli-interp.c: Update.
7967 * cli/cli-script.c: Update.
7968 * common/common-exceptions.c: Update.
7969 * common/new-op.c: Update.
7970 * common/selftest.c: Update.
7971 * compile/compile-c-symbols.c: Update.
7972 * compile/compile-cplus-symbols.c: Update.
7973 * compile/compile-object-load.c: Update.
7974 * compile/compile-object-run.c: Update.
7975 * completer.c: Update.
7976 * corelow.c: Update.
7977 * cp-abi.c: Update.
7978 * cp-support.c: Update.
7979 * cp-valprint.c: Update.
7980 * darwin-nat.c: Update.
7981 * disasm-selftests.c: Update.
7982 * dtrace-probe.c: Update.
7983 * dwarf-index-cache.c: Update.
7984 * dwarf-index-write.c: Update.
7985 * dwarf2-frame-tailcall.c: Update.
7986 * dwarf2-frame.c: Update.
7987 * dwarf2loc.c: Update.
7988 * dwarf2read.c: Update.
7989 * eval.c: Update.
7990 * event-loop.c: Update.
7991 * event-top.c: Update.
7992 * exec.c: Update.
7993 * f-valprint.c: Update.
7994 * fbsd-tdep.c: Update.
7995 * frame-unwind.c: Update.
7996 * frame.c: Update.
7997 * gdbtypes.c: Update.
7998 * gnu-v3-abi.c: Update.
7999 * guile/guile-internal.h: Update.
8000 * guile/scm-block.c: Update.
8001 * guile/scm-breakpoint.c: Update.
8002 * guile/scm-cmd.c: Update.
8003 * guile/scm-disasm.c: Update.
8004 * guile/scm-frame.c: Update.
8005 * guile/scm-lazy-string.c: Update.
8006 * guile/scm-math.c: Update.
8007 * guile/scm-param.c: Update.
8008 * guile/scm-ports.c: Update.
8009 * guile/scm-pretty-print.c: Update.
8010 * guile/scm-symbol.c: Update.
8011 * guile/scm-symtab.c: Update.
8012 * guile/scm-type.c: Update.
8013 * guile/scm-value.c: Update.
8014 * i386-linux-tdep.c: Update.
8015 * i386-tdep.c: Update.
8016 * inf-loop.c: Update.
8017 * infcall.c: Update.
8018 * infcmd.c: Update.
8019 * infrun.c: Update.
8020 * jit.c: Update.
8021 * language.c: Update.
8022 * linespec.c: Update.
8023 * linux-fork.c: Update.
8024 * linux-nat.c: Update.
8025 * linux-tdep.c: Update.
8026 * linux-thread-db.c: Update.
8027 * main.c: Update.
8028 * mi/mi-cmd-break.c: Update.
8029 * mi/mi-cmd-stack.c: Update.
8030 * mi/mi-interp.c: Update.
8031 * mi/mi-main.c: Update.
8032 * objc-lang.c: Update.
8033 * p-valprint.c: Update.
8034 * parse.c: Update.
8035 * ppc-linux-tdep.c: Update.
8036 * printcmd.c: Update.
8037 * python/py-arch.c: Update.
8038 * python/py-breakpoint.c: Update.
8039 * python/py-cmd.c: Update.
8040 * python/py-finishbreakpoint.c: Update.
8041 * python/py-frame.c: Update.
8042 * python/py-framefilter.c: Update.
8043 * python/py-gdb-readline.c: Update.
8044 * python/py-inferior.c: Update.
8045 * python/py-infthread.c: Update.
8046 * python/py-lazy-string.c: Update.
8047 * python/py-linetable.c: Update.
8048 * python/py-objfile.c: Update.
8049 * python/py-param.c: Update.
8050 * python/py-prettyprint.c: Update.
8051 * python/py-progspace.c: Update.
8052 * python/py-record-btrace.c: Update.
8053 * python/py-record.c: Update.
8054 * python/py-symbol.c: Update.
8055 * python/py-type.c: Update.
8056 * python/py-unwind.c: Update.
8057 * python/py-utils.c: Update.
8058 * python/py-value.c: Update.
8059 * python/python.c: Update.
8060 * record-btrace.c: Update.
8061 * record-full.c: Update.
8062 * remote-fileio.c: Update.
8063 * remote.c: Update.
8064 * riscv-tdep.c: Update.
8065 * rs6000-aix-tdep.c: Update.
8066 * rs6000-tdep.c: Update.
8067 * rust-exp.y: Update.
8068 * rust-lang.c: Update.
8069 * s390-tdep.c: Update.
8070 * selftest-arch.c: Update.
8071 * solib-dsbt.c: Update.
8072 * solib-frv.c: Update.
8073 * solib-spu.c: Update.
8074 * solib-svr4.c: Update.
8075 * solib.c: Update.
8076 * sparc64-linux-tdep.c: Update.
8077 * stack.c: Update.
8078 * symfile-mem.c: Update.
8079 * symmisc.c: Update.
8080 * target.c: Update.
8081 * thread.c: Update.
8082 * top.c: Update.
8083 * tracefile-tfile.c: Update.
8084 * tui/tui.c: Update.
8085 * typeprint.c: Update.
8086 * unittests/cli-utils-selftests.c: Update.
8087 * unittests/parse-connection-spec-selftests.c: Update.
8088 * valops.c: Update.
8089 * valprint.c: Update.
8090 * value.c: Update.
8091 * varobj.c: Update.
8092 * windows-nat.c: Update.
8093 * x86-linux-nat.c: Update.
8094 * xml-support.c: Update.
8095
a70b8144
TT
80962019-04-08 Tom Tromey <tom@tromey.com>
8097
8098 * xml-support.c: Use C++ exception handling.
8099 * x86-linux-nat.c: Use C++ exception handling.
8100 * windows-nat.c: Use C++ exception handling.
8101 * varobj.c: Use C++ exception handling.
8102 * value.c: Use C++ exception handling.
8103 * valprint.c: Use C++ exception handling.
8104 * valops.c: Use C++ exception handling.
8105 * unittests/parse-connection-spec-selftests.c: Use C++ exception
8106 handling.
8107 * unittests/cli-utils-selftests.c: Use C++ exception handling.
8108 * typeprint.c: Use C++ exception handling.
8109 * tui/tui.c: Use C++ exception handling.
8110 * tracefile-tfile.c: Use C++ exception handling.
8111 * top.c: Use C++ exception handling.
8112 * thread.c: Use C++ exception handling.
8113 * target.c: Use C++ exception handling.
8114 * symmisc.c: Use C++ exception handling.
8115 * symfile-mem.c: Use C++ exception handling.
8116 * stack.c: Use C++ exception handling.
8117 * sparc64-linux-tdep.c: Use C++ exception handling.
8118 * solib.c: Use C++ exception handling.
8119 * solib-svr4.c: Use C++ exception handling.
8120 * solib-spu.c: Use C++ exception handling.
8121 * solib-frv.c: Use C++ exception handling.
8122 * solib-dsbt.c: Use C++ exception handling.
8123 * selftest-arch.c: Use C++ exception handling.
8124 * s390-tdep.c: Use C++ exception handling.
8125 * rust-lang.c: Use C++ exception handling.
8126 * rust-exp.y: Use C++ exception handling.
8127 * rs6000-tdep.c: Use C++ exception handling.
8128 * rs6000-aix-tdep.c: Use C++ exception handling.
8129 * riscv-tdep.c: Use C++ exception handling.
8130 * remote.c: Use C++ exception handling.
8131 * remote-fileio.c: Use C++ exception handling.
8132 * record-full.c: Use C++ exception handling.
8133 * record-btrace.c: Use C++ exception handling.
8134 * python/python.c: Use C++ exception handling.
8135 * python/py-value.c: Use C++ exception handling.
8136 * python/py-utils.c: Use C++ exception handling.
8137 * python/py-unwind.c: Use C++ exception handling.
8138 * python/py-type.c: Use C++ exception handling.
8139 * python/py-symbol.c: Use C++ exception handling.
8140 * python/py-record.c: Use C++ exception handling.
8141 * python/py-record-btrace.c: Use C++ exception handling.
8142 * python/py-progspace.c: Use C++ exception handling.
8143 * python/py-prettyprint.c: Use C++ exception handling.
8144 * python/py-param.c: Use C++ exception handling.
8145 * python/py-objfile.c: Use C++ exception handling.
8146 * python/py-linetable.c: Use C++ exception handling.
8147 * python/py-lazy-string.c: Use C++ exception handling.
8148 * python/py-infthread.c: Use C++ exception handling.
8149 * python/py-inferior.c: Use C++ exception handling.
8150 * python/py-gdb-readline.c: Use C++ exception handling.
8151 * python/py-framefilter.c: Use C++ exception handling.
8152 * python/py-frame.c: Use C++ exception handling.
8153 * python/py-finishbreakpoint.c: Use C++ exception handling.
8154 * python/py-cmd.c: Use C++ exception handling.
8155 * python/py-breakpoint.c: Use C++ exception handling.
8156 * python/py-arch.c: Use C++ exception handling.
8157 * printcmd.c: Use C++ exception handling.
8158 * ppc-linux-tdep.c: Use C++ exception handling.
8159 * parse.c: Use C++ exception handling.
8160 * p-valprint.c: Use C++ exception handling.
8161 * objc-lang.c: Use C++ exception handling.
8162 * mi/mi-main.c: Use C++ exception handling.
8163 * mi/mi-interp.c: Use C++ exception handling.
8164 * mi/mi-cmd-stack.c: Use C++ exception handling.
8165 * mi/mi-cmd-break.c: Use C++ exception handling.
8166 * main.c: Use C++ exception handling.
8167 * linux-thread-db.c: Use C++ exception handling.
8168 * linux-tdep.c: Use C++ exception handling.
8169 * linux-nat.c: Use C++ exception handling.
8170 * linux-fork.c: Use C++ exception handling.
8171 * linespec.c: Use C++ exception handling.
8172 * language.c: Use C++ exception handling.
8173 * jit.c: Use C++ exception handling.
8174 * infrun.c: Use C++ exception handling.
8175 * infcmd.c: Use C++ exception handling.
8176 * infcall.c: Use C++ exception handling.
8177 * inf-loop.c: Use C++ exception handling.
8178 * i386-tdep.c: Use C++ exception handling.
8179 * i386-linux-tdep.c: Use C++ exception handling.
8180 * guile/scm-value.c: Use C++ exception handling.
8181 * guile/scm-type.c: Use C++ exception handling.
8182 * guile/scm-symtab.c: Use C++ exception handling.
8183 * guile/scm-symbol.c: Use C++ exception handling.
8184 * guile/scm-pretty-print.c: Use C++ exception handling.
8185 * guile/scm-ports.c: Use C++ exception handling.
8186 * guile/scm-param.c: Use C++ exception handling.
8187 * guile/scm-math.c: Use C++ exception handling.
8188 * guile/scm-lazy-string.c: Use C++ exception handling.
8189 * guile/scm-frame.c: Use C++ exception handling.
8190 * guile/scm-disasm.c: Use C++ exception handling.
8191 * guile/scm-cmd.c: Use C++ exception handling.
8192 * guile/scm-breakpoint.c: Use C++ exception handling.
8193 * guile/scm-block.c: Use C++ exception handling.
8194 * guile/guile-internal.h: Use C++ exception handling.
8195 * gnu-v3-abi.c: Use C++ exception handling.
8196 * gdbtypes.c: Use C++ exception handling.
8197 * frame.c: Use C++ exception handling.
8198 * frame-unwind.c: Use C++ exception handling.
8199 * fbsd-tdep.c: Use C++ exception handling.
8200 * f-valprint.c: Use C++ exception handling.
8201 * exec.c: Use C++ exception handling.
8202 * event-top.c: Use C++ exception handling.
8203 * event-loop.c: Use C++ exception handling.
8204 * eval.c: Use C++ exception handling.
8205 * dwarf2read.c: Use C++ exception handling.
8206 * dwarf2loc.c: Use C++ exception handling.
8207 * dwarf2-frame.c: Use C++ exception handling.
8208 * dwarf2-frame-tailcall.c: Use C++ exception handling.
8209 * dwarf-index-write.c: Use C++ exception handling.
8210 * dwarf-index-cache.c: Use C++ exception handling.
8211 * dtrace-probe.c: Use C++ exception handling.
8212 * disasm-selftests.c: Use C++ exception handling.
8213 * darwin-nat.c: Use C++ exception handling.
8214 * cp-valprint.c: Use C++ exception handling.
8215 * cp-support.c: Use C++ exception handling.
8216 * cp-abi.c: Use C++ exception handling.
8217 * corelow.c: Use C++ exception handling.
8218 * completer.c: Use C++ exception handling.
8219 * compile/compile-object-run.c: Use C++ exception handling.
8220 * compile/compile-object-load.c: Use C++ exception handling.
8221 * compile/compile-cplus-symbols.c: Use C++ exception handling.
8222 * compile/compile-c-symbols.c: Use C++ exception handling.
8223 * common/selftest.c: Use C++ exception handling.
8224 * common/new-op.c: Use C++ exception handling.
8225 * cli/cli-script.c: Use C++ exception handling.
8226 * cli/cli-interp.c: Use C++ exception handling.
8227 * cli/cli-cmds.c: Use C++ exception handling.
8228 * c-varobj.c: Use C++ exception handling.
8229 * btrace.c: Use C++ exception handling.
8230 * breakpoint.c: Use C++ exception handling.
8231 * break-catch-throw.c: Use C++ exception handling.
8232 * arch-utils.c: Use C++ exception handling.
8233 * amd64-tdep.c: Use C++ exception handling.
8234 * ada-valprint.c: Use C++ exception handling.
8235 * ada-typeprint.c: Use C++ exception handling.
8236 * ada-lang.c: Use C++ exception handling.
8237 * aarch64-tdep.c: Use C++ exception handling.
8238
3d6e9d23
TT
82392019-04-08 Tom Tromey <tom@tromey.com>
8240
8241 * xml-support.c (gdb_xml_parser::parse): Update.
8242 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8243 * value.c (show_convenience): Update.
8244 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
8245 (test_parse_flags_qcs): Update.
8246 * thread.c (thr_try_catch_cmd): Update.
8247 * target.c (target_translate_tls_address): Update.
8248 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
8249 (info_frame_command_core, frame_apply_command_count): Update.
8250 * rust-exp.y (rust_lex_exception_test): Update.
8251 * riscv-tdep.c (riscv_print_one_register_info): Update.
8252 * remote.c (remote_target::enable_btrace): Update.
8253 * record-btrace.c (record_btrace_enable_warn): Update.
8254 * python/py-utils.c (gdbpy_convert_exception): Update.
8255 * printcmd.c (do_one_display, print_variable_and_value): Update.
8256 * mi/mi-main.c (mi_print_exception): Update.
8257 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
8258 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
8259 * linux-nat.c (linux_nat_target::attach): Update.
8260 * linux-fork.c (class scoped_switch_fork_info): Update.
8261 * infrun.c (displaced_step_prepare): Update.
8262 * infcall.c (call_function_by_hand_dummy): Update.
8263 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
8264 * gnu-v3-abi.c (print_one_vtable): Update.
8265 * frame.c (get_prev_frame_always): Update.
8266 * f-valprint.c (info_common_command_for_block): Update.
8267 * exec.c (try_open_exec_file): Update.
8268 * exceptions.c (print_exception, exception_print)
8269 (exception_fprintf, exception_print_same): Update.
8270 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
8271 * dwarf-index-cache.c (index_cache::store)
8272 (index_cache::lookup_gdb_index): Update.
8273 * darwin-nat.c (maybe_cache_shell): Update.
8274 * cp-valprint.c (cp_print_value_fields): Update.
8275 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
8276 (gcc_cplus_symbol_address): Update.
8277 * compile/compile-c-symbols.c (gcc_convert_symbol)
8278 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
8279 * common/selftest.c: Update.
8280 * common/common-exceptions.h (struct gdb_exception) <message>: Now
8281 a std::string.
8282 (exception_try_scope_entry, exception_try_scope_exit): Don't
8283 declare.
8284 (struct exception_try_scope): Remove.
8285 (TRY): Don't use exception_try_scope.
8286 (struct gdb_exception): Add constructor, operator=.
8287 <what>: New method.
8288 (struct gdb_exception_RETURN_MASK_ALL)
8289 (struct gdb_exception_RETURN_MASK_ERROR)
8290 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
8291 (struct gdb_quit_bad_alloc): Update.
8292 * common/common-exceptions.c (exception_none): Change
8293 initializer.
8294 (struct catcher) <state, exception>: Initialize inline.
8295 <prev>: Remove member.
8296 (current_catcher): Remove.
8297 (catchers): New global.
8298 (exceptions_state_mc_init): Simplify.
8299 (catcher_pop): Remove.
8300 (exceptions_state_mc, exceptions_state_mc_catch): Update.
8301 (try_scope_depth, exception_try_scope_entry)
8302 (exception_try_scope_exit): Remove.
8303 (throw_exception_sjlj): Update.
8304 (exception_messages, exception_messages_size): Remove.
8305 (throw_it): Simplify.
8306 (gdb_exception_sliced_copy): Remove.
8307 (throw_exception_cxx): Update.
8308 * cli/cli-script.c (script_from_file): Update.
8309 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
8310 Update.
8311 * ada-valprint.c (ada_val_print): Update.
8312 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
8313 (create_excep_cond_exprs): Update.
8314
c5c10118
TT
83152019-04-08 Tom Tromey <tom@tromey.com>
8316
8317 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
8318 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
8319 (TRY, CATCH, END_CATCH): Remove some definitions.
8320 * common/common-exceptions.c: Don't use GDB_XCPT.
8321 (catcher_list_size): Remove.
8322 (throw_exception, throw_it): Simplify.
8323
4de283e4
TT
83242019-04-05 Tom Tromey <tom@tromey.com>
8325
8326 Revert the header-sorting patch.
8327 * ft32-tdep.c: Revert.
8328 * frv-tdep.c: Revert.
8329 * frv-linux-tdep.c: Revert.
8330 * frame.c: Revert.
8331 * frame-unwind.c: Revert.
8332 * frame-base.c: Revert.
8333 * fork-child.c: Revert.
8334 * findvar.c: Revert.
8335 * findcmd.c: Revert.
8336 * filesystem.c: Revert.
8337 * filename-seen-cache.h: Revert.
8338 * filename-seen-cache.c: Revert.
8339 * fbsd-tdep.c: Revert.
8340 * fbsd-nat.h: Revert.
8341 * fbsd-nat.c: Revert.
8342 * f-valprint.c: Revert.
8343 * f-typeprint.c: Revert.
8344 * f-lang.c: Revert.
8345 * extension.h: Revert.
8346 * extension.c: Revert.
8347 * extension-priv.h: Revert.
8348 * expprint.c: Revert.
8349 * exec.h: Revert.
8350 * exec.c: Revert.
8351 * exceptions.c: Revert.
8352 * event-top.c: Revert.
8353 * event-loop.c: Revert.
8354 * eval.c: Revert.
8355 * elfread.c: Revert.
8356 * dwarf2read.h: Revert.
8357 * dwarf2read.c: Revert.
8358 * dwarf2loc.c: Revert.
8359 * dwarf2expr.h: Revert.
8360 * dwarf2expr.c: Revert.
8361 * dwarf2-frame.c: Revert.
8362 * dwarf2-frame-tailcall.c: Revert.
8363 * dwarf-index-write.h: Revert.
8364 * dwarf-index-write.c: Revert.
8365 * dwarf-index-common.c: Revert.
8366 * dwarf-index-cache.h: Revert.
8367 * dwarf-index-cache.c: Revert.
8368 * dummy-frame.c: Revert.
8369 * dtrace-probe.c: Revert.
8370 * disasm.h: Revert.
8371 * disasm.c: Revert.
8372 * disasm-selftests.c: Revert.
8373 * dictionary.c: Revert.
8374 * dicos-tdep.c: Revert.
8375 * demangle.c: Revert.
8376 * dcache.h: Revert.
8377 * dcache.c: Revert.
8378 * darwin-nat.h: Revert.
8379 * darwin-nat.c: Revert.
8380 * darwin-nat-info.c: Revert.
8381 * d-valprint.c: Revert.
8382 * d-namespace.c: Revert.
8383 * d-lang.c: Revert.
8384 * ctf.c: Revert.
8385 * csky-tdep.c: Revert.
8386 * csky-linux-tdep.c: Revert.
8387 * cris-tdep.c: Revert.
8388 * cris-linux-tdep.c: Revert.
8389 * cp-valprint.c: Revert.
8390 * cp-support.c: Revert.
8391 * cp-namespace.c: Revert.
8392 * cp-abi.c: Revert.
8393 * corelow.c: Revert.
8394 * corefile.c: Revert.
8395 * continuations.c: Revert.
8396 * completer.h: Revert.
8397 * completer.c: Revert.
8398 * complaints.c: Revert.
8399 * coffread.c: Revert.
8400 * coff-pe-read.c: Revert.
8401 * cli-out.h: Revert.
8402 * cli-out.c: Revert.
8403 * charset.c: Revert.
8404 * c-varobj.c: Revert.
8405 * c-valprint.c: Revert.
8406 * c-typeprint.c: Revert.
8407 * c-lang.c: Revert.
8408 * buildsym.c: Revert.
8409 * buildsym-legacy.c: Revert.
8410 * build-id.h: Revert.
8411 * build-id.c: Revert.
8412 * btrace.c: Revert.
8413 * bsd-uthread.c: Revert.
8414 * breakpoint.h: Revert.
8415 * breakpoint.c: Revert.
8416 * break-catch-throw.c: Revert.
8417 * break-catch-syscall.c: Revert.
8418 * break-catch-sig.c: Revert.
8419 * blockframe.c: Revert.
8420 * block.c: Revert.
8421 * bfin-tdep.c: Revert.
8422 * bfin-linux-tdep.c: Revert.
8423 * bfd-target.c: Revert.
8424 * bcache.c: Revert.
8425 * ax-general.c: Revert.
8426 * ax-gdb.h: Revert.
8427 * ax-gdb.c: Revert.
8428 * avr-tdep.c: Revert.
8429 * auxv.c: Revert.
8430 * auto-load.c: Revert.
8431 * arm-wince-tdep.c: Revert.
8432 * arm-tdep.c: Revert.
8433 * arm-symbian-tdep.c: Revert.
8434 * arm-pikeos-tdep.c: Revert.
8435 * arm-obsd-tdep.c: Revert.
8436 * arm-nbsd-tdep.c: Revert.
8437 * arm-nbsd-nat.c: Revert.
8438 * arm-linux-tdep.c: Revert.
8439 * arm-linux-nat.c: Revert.
8440 * arm-fbsd-tdep.c: Revert.
8441 * arm-fbsd-nat.c: Revert.
8442 * arm-bsd-tdep.c: Revert.
8443 * arch-utils.c: Revert.
8444 * arc-tdep.c: Revert.
8445 * arc-newlib-tdep.c: Revert.
8446 * annotate.h: Revert.
8447 * annotate.c: Revert.
8448 * amd64-windows-tdep.c: Revert.
8449 * amd64-windows-nat.c: Revert.
8450 * amd64-tdep.c: Revert.
8451 * amd64-sol2-tdep.c: Revert.
8452 * amd64-obsd-tdep.c: Revert.
8453 * amd64-obsd-nat.c: Revert.
8454 * amd64-nbsd-tdep.c: Revert.
8455 * amd64-nbsd-nat.c: Revert.
8456 * amd64-nat.c: Revert.
8457 * amd64-linux-tdep.c: Revert.
8458 * amd64-linux-nat.c: Revert.
8459 * amd64-fbsd-tdep.c: Revert.
8460 * amd64-fbsd-nat.c: Revert.
8461 * amd64-dicos-tdep.c: Revert.
8462 * amd64-darwin-tdep.c: Revert.
8463 * amd64-bsd-nat.c: Revert.
8464 * alpha-tdep.c: Revert.
8465 * alpha-obsd-tdep.c: Revert.
8466 * alpha-nbsd-tdep.c: Revert.
8467 * alpha-mdebug-tdep.c: Revert.
8468 * alpha-linux-tdep.c: Revert.
8469 * alpha-linux-nat.c: Revert.
8470 * alpha-bsd-tdep.c: Revert.
8471 * alpha-bsd-nat.c: Revert.
8472 * aix-thread.c: Revert.
8473 * agent.c: Revert.
8474 * addrmap.c: Revert.
8475 * ada-varobj.c: Revert.
8476 * ada-valprint.c: Revert.
8477 * ada-typeprint.c: Revert.
8478 * ada-tasks.c: Revert.
8479 * ada-lang.c: Revert.
8480 * aarch64-tdep.c: Revert.
8481 * aarch64-ravenscar-thread.c: Revert.
8482 * aarch64-newlib-tdep.c: Revert.
8483 * aarch64-linux-tdep.c: Revert.
8484 * aarch64-linux-nat.c: Revert.
8485 * aarch64-fbsd-tdep.c: Revert.
8486 * aarch64-fbsd-nat.c: Revert.
8487 * aarch32-linux-nat.c: Revert.
8488
d55e5aa6
TT
84892019-04-05 Tom Tromey <tom@tromey.com>
8490
8491 * ft32-tdep.c: Sort headers.
8492 * frv-tdep.c: Sort headers.
8493 * frv-linux-tdep.c: Sort headers.
8494 * frame.c: Sort headers.
8495 * frame-unwind.c: Sort headers.
8496 * frame-base.c: Sort headers.
8497 * fork-child.c: Sort headers.
8498 * findvar.c: Sort headers.
8499 * findcmd.c: Sort headers.
8500 * filesystem.c: Sort headers.
8501 * filename-seen-cache.h: Sort headers.
8502 * filename-seen-cache.c: Sort headers.
8503 * fbsd-tdep.c: Sort headers.
8504 * fbsd-nat.h: Sort headers.
8505 * fbsd-nat.c: Sort headers.
8506 * f-valprint.c: Sort headers.
8507 * f-typeprint.c: Sort headers.
8508 * f-lang.c: Sort headers.
8509 * extension.h: Sort headers.
8510 * extension.c: Sort headers.
8511 * extension-priv.h: Sort headers.
8512 * expprint.c: Sort headers.
8513 * exec.h: Sort headers.
8514 * exec.c: Sort headers.
8515 * exceptions.c: Sort headers.
8516 * event-top.c: Sort headers.
8517 * event-loop.c: Sort headers.
8518 * eval.c: Sort headers.
8519 * elfread.c: Sort headers.
8520 * dwarf2read.h: Sort headers.
8521 * dwarf2read.c: Sort headers.
8522 * dwarf2loc.c: Sort headers.
8523 * dwarf2expr.h: Sort headers.
8524 * dwarf2expr.c: Sort headers.
8525 * dwarf2-frame.c: Sort headers.
8526 * dwarf2-frame-tailcall.c: Sort headers.
8527 * dwarf-index-write.h: Sort headers.
8528 * dwarf-index-write.c: Sort headers.
8529 * dwarf-index-common.c: Sort headers.
8530 * dwarf-index-cache.h: Sort headers.
8531 * dwarf-index-cache.c: Sort headers.
8532 * dummy-frame.c: Sort headers.
8533 * dtrace-probe.c: Sort headers.
8534 * disasm.h: Sort headers.
8535 * disasm.c: Sort headers.
8536 * disasm-selftests.c: Sort headers.
8537 * dictionary.c: Sort headers.
8538 * dicos-tdep.c: Sort headers.
8539 * demangle.c: Sort headers.
8540 * dcache.h: Sort headers.
8541 * dcache.c: Sort headers.
8542 * darwin-nat.h: Sort headers.
8543 * darwin-nat.c: Sort headers.
8544 * darwin-nat-info.c: Sort headers.
8545 * d-valprint.c: Sort headers.
8546 * d-namespace.c: Sort headers.
8547 * d-lang.c: Sort headers.
8548 * ctf.c: Sort headers.
8549 * csky-tdep.c: Sort headers.
8550 * csky-linux-tdep.c: Sort headers.
8551 * cris-tdep.c: Sort headers.
8552 * cris-linux-tdep.c: Sort headers.
8553 * cp-valprint.c: Sort headers.
8554 * cp-support.c: Sort headers.
8555 * cp-namespace.c: Sort headers.
8556 * cp-abi.c: Sort headers.
8557 * corelow.c: Sort headers.
8558 * corefile.c: Sort headers.
8559 * continuations.c: Sort headers.
8560 * completer.h: Sort headers.
8561 * completer.c: Sort headers.
8562 * complaints.c: Sort headers.
8563 * coffread.c: Sort headers.
8564 * coff-pe-read.c: Sort headers.
8565 * cli-out.h: Sort headers.
8566 * cli-out.c: Sort headers.
8567 * charset.c: Sort headers.
8568 * c-varobj.c: Sort headers.
8569 * c-valprint.c: Sort headers.
8570 * c-typeprint.c: Sort headers.
8571 * c-lang.c: Sort headers.
8572 * buildsym.c: Sort headers.
8573 * buildsym-legacy.c: Sort headers.
8574 * build-id.h: Sort headers.
8575 * build-id.c: Sort headers.
8576 * btrace.c: Sort headers.
8577 * bsd-uthread.c: Sort headers.
8578 * breakpoint.h: Sort headers.
8579 * breakpoint.c: Sort headers.
8580 * break-catch-throw.c: Sort headers.
8581 * break-catch-syscall.c: Sort headers.
8582 * break-catch-sig.c: Sort headers.
8583 * blockframe.c: Sort headers.
8584 * block.c: Sort headers.
8585 * bfin-tdep.c: Sort headers.
8586 * bfin-linux-tdep.c: Sort headers.
8587 * bfd-target.c: Sort headers.
8588 * bcache.c: Sort headers.
8589 * ax-general.c: Sort headers.
8590 * ax-gdb.h: Sort headers.
8591 * ax-gdb.c: Sort headers.
8592 * avr-tdep.c: Sort headers.
8593 * auxv.c: Sort headers.
8594 * auto-load.c: Sort headers.
8595 * arm-wince-tdep.c: Sort headers.
8596 * arm-tdep.c: Sort headers.
8597 * arm-symbian-tdep.c: Sort headers.
8598 * arm-pikeos-tdep.c: Sort headers.
8599 * arm-obsd-tdep.c: Sort headers.
8600 * arm-nbsd-tdep.c: Sort headers.
8601 * arm-nbsd-nat.c: Sort headers.
8602 * arm-linux-tdep.c: Sort headers.
8603 * arm-linux-nat.c: Sort headers.
8604 * arm-fbsd-tdep.c: Sort headers.
8605 * arm-fbsd-nat.c: Sort headers.
8606 * arm-bsd-tdep.c: Sort headers.
8607 * arch-utils.c: Sort headers.
8608 * arc-tdep.c: Sort headers.
8609 * arc-newlib-tdep.c: Sort headers.
8610 * annotate.h: Sort headers.
8611 * annotate.c: Sort headers.
8612 * amd64-windows-tdep.c: Sort headers.
8613 * amd64-windows-nat.c: Sort headers.
8614 * amd64-tdep.c: Sort headers.
8615 * amd64-sol2-tdep.c: Sort headers.
8616 * amd64-obsd-tdep.c: Sort headers.
8617 * amd64-obsd-nat.c: Sort headers.
8618 * amd64-nbsd-tdep.c: Sort headers.
8619 * amd64-nbsd-nat.c: Sort headers.
8620 * amd64-nat.c: Sort headers.
8621 * amd64-linux-tdep.c: Sort headers.
8622 * amd64-linux-nat.c: Sort headers.
8623 * amd64-fbsd-tdep.c: Sort headers.
8624 * amd64-fbsd-nat.c: Sort headers.
8625 * amd64-dicos-tdep.c: Sort headers.
8626 * amd64-darwin-tdep.c: Sort headers.
8627 * amd64-bsd-nat.c: Sort headers.
8628 * alpha-tdep.c: Sort headers.
8629 * alpha-obsd-tdep.c: Sort headers.
8630 * alpha-nbsd-tdep.c: Sort headers.
8631 * alpha-mdebug-tdep.c: Sort headers.
8632 * alpha-linux-tdep.c: Sort headers.
8633 * alpha-linux-nat.c: Sort headers.
8634 * alpha-bsd-tdep.c: Sort headers.
8635 * alpha-bsd-nat.c: Sort headers.
8636 * aix-thread.c: Sort headers.
8637 * agent.c: Sort headers.
8638 * addrmap.c: Sort headers.
8639 * ada-varobj.c: Sort headers.
8640 * ada-valprint.c: Sort headers.
8641 * ada-typeprint.c: Sort headers.
8642 * ada-tasks.c: Sort headers.
8643 * ada-lang.c: Sort headers.
8644 * aarch64-tdep.c: Sort headers.
8645 * aarch64-ravenscar-thread.c: Sort headers.
8646 * aarch64-newlib-tdep.c: Sort headers.
8647 * aarch64-linux-tdep.c: Sort headers.
8648 * aarch64-linux-nat.c: Sort headers.
8649 * aarch64-fbsd-tdep.c: Sort headers.
8650 * aarch64-fbsd-nat.c: Sort headers.
8651 * aarch32-linux-nat.c: Sort headers.
8652
699bd4cf
TT
86532019-04-04 Tom Tromey <tom@tromey.com>
8654
8655 * varobj.c (varobj_create): Update.
8656 * rust-exp.y (struct rust_parser) <update_innermost_block,
8657 lookup_symbol>: New methods.
8658 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
8659 Rename.
8660 (rust_parser::rust_lookup_type)
8661 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8662 * printcmd.c (display_command, do_one_display): Update.
8663 * parser-defs.h (struct parser_state) <parser_state>: Add
8664 "tracker" parameter.
8665 (block_tracker): New member.
8666 (class innermost_block_tracker) <innermost_block_tracker>: Add
8667 "types" parameter.
8668 <reset>: Remove method.
8669 (innermost_block): Don't declare.
8670 (null_post_parser): Update.
8671 * parse.c (innermost_block): Remove global.
8672 (write_dollar_variable): Update.
8673 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
8674 Remove "tracker_types" parameter.
8675 (parse_expression): Add "tracker" parameter.
8676 (parse_expression_for_completion): Update.
8677 (null_post_parser): Add "tracker" parameter.
8678 * p-exp.y: Update rules.
8679 * m2-exp.y: Update rules.
8680 * language.h (struct language_defn) <la_post_parser>: Add
8681 "tracker" parameter.
8682 * go-exp.y: Update rules.
8683 * f-exp.y: Update rules.
8684 * expression.h (parse_expression, parse_exp_1): Add "tracker"
8685 parameter.
8686 * d-exp.y: Update rules.
8687 * c-exp.y: Update rules.
8688 * breakpoint.c (set_breakpoint_condition): Create an
8689 innermost_block_tracker.
8690 (watch_command_1): Likewise.
8691 * ada-lang.c (resolve): Add "tracker" parameter.
8692 (resolve_subexp): Likewise.
8693 * ada-exp.y (write_var_from_sym): Update.
8694
dac43e32
TT
86952019-04-04 Tom Tromey <tom@tromey.com>
8696
8697 * type-stack.h: New file.
8698 * type-stack.c: New file.
8699 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
8700 type-stack.h.
8701 (insert_into_type_stack, insert_type, push_type, push_type_int)
8702 (insert_type_address_space, pop_type, pop_type_int)
8703 (pop_typelist, pop_type_stack, append_type_stack)
8704 (push_type_stack, get_type_stack, push_typelist)
8705 (follow_type_instance_flags, follow_types): Don't declare.
8706 * parse.c (type_stack): Remove global.
8707 (parse_exp_in_context): Update.
8708 (insert_into_type_stack, insert_type, push_type, push_type_int)
8709 (insert_type_address_space, pop_type, pop_type_int)
8710 (pop_typelist, pop_type_stack, append_type_stack)
8711 (push_type_stack, get_type_stack, push_typelist)
8712 (follow_type_instance_flags, follow_types): Remove (moved to
8713 type-stack.c).
8714 * f-exp.y (type_stack): New global.
8715 Update rules.
8716 (push_kind_type, f_parse): Update.
8717 * d-exp.y (type_stack): New global.
8718 Update rules.
8719 (d_parse): Update.
8720 * c-exp.y (struct c_parse_state) <type_stack>: New member.
8721 Update rules.
8722 * Makefile.in (COMMON_SFILES): Add type-stack.c.
8723 (HFILES_NO_SRCDIR): Add type-stack.h.
8724
2a612529
TT
87252019-04-04 Tom Tromey <tom@tromey.com>
8726
8727 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
8728 (rust_parser::convert_ast_to_expression, rust_parse)
8729 (rust_lex_test_completion, rust_lex_tests): Update.
8730 * parser-defs.h (struct expr_completion_state): New.
8731 (struct parser_state) <parser_state>: Add completion parameter.
8732 <mark_struct_expression, mark_completion_tag>: New methods.
8733 <parse_completion, m_completion_state>: New members.
8734 (prefixify_expression, null_post_parser): Update.
8735 (mark_struct_expression, mark_completion_tag): Don't declare.
8736 * parse.c (parse_completion, expout_last_struct)
8737 (expout_tag_completion_type, expout_completion_name): Remove
8738 globals.
8739 (parser_state::mark_struct_expression)
8740 (parser_state::mark_completion_tag): Now methods.
8741 (prefixify_expression): Add last_struct parameter.
8742 (prefixify_subexp): Likewise.
8743 (parse_exp_1): Update.
8744 (parse_exp_in_context): Add cstate parameter. Update.
8745 (parse_expression_for_completion): Create an
8746 expr_completion_state.
8747 (null_post_parser): Add "completion" parameter.
8748 * p-exp.y: Update rules.
8749 (yylex): Update.
8750 * language.h (struct language_defn) <la_post_parser>: Add
8751 "completing" parameter.
8752 * go-exp.y: Update rules.
8753 (lex_one_token): Update.
8754 * expression.h (parse_completion): Don't declare.
8755 * d-exp.y: Update rules.
8756 (lex_one_token): Update rules.
8757 * c-exp.y: Update rules.
8758 (lex_one_token): Update.
8759 * ada-lang.c (resolve): Add "parse_completion" parameter.
8760 (resolve_subexp): Likewise.
8761 (ada_resolve_function): Likewise.
8762
43476f0b
TT
87632019-04-04 Tom Tromey <tom@tromey.com>
8764
8765 * parser-defs.h (struct parser_state) <start_arglist,
8766 end_arglist>: New methods.
8767 <arglist_len, m_funcall_chain>: New members.
8768 (arglist_len, start_arglist, end_arglist): Don't declare.
8769 * parse.c (arglist_len, funcall_chain): Remove global.
8770 (start_arglist, end_arglist): Remove functions.
8771 (parse_exp_in_context): Update.
8772 * p-exp.y: Update rules.
8773 * m2-exp.y: Update rules.
8774 * go-exp.y: Update rules.
8775 * f-exp.y: Update rules.
8776 * d-exp.y: Update rules.
8777 * c-exp.y: Update rules.
8778
5776fca3
TT
87792019-04-04 Tom Tromey <tom@tromey.com>
8780
8781 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
8782 lex_operator, push_back>: New methods.
8783 Update all rules.
8784 (rust_parser::lex_hex, lex_escape): Rename and update.
8785 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
8786 (rust_parser::lex_operator): Rename and update.
8787 (rust_parser::lex_number, rustyylex, rustyyerror)
8788 (rust_lex_test_init, rust_lex_test_sequence)
8789 (rust_lex_test_push_back, rust_lex_tests): Update.
8790 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
8791 parameter.
8792 <lexptr, prev_lexptr>: New members.
8793 (lexptr, prev_lexptr): Don't declare.
8794 * parse.c (lexptr, prev_lexptr): Remove globals.
8795 (parse_exp_in_context): Update.
8796 * p-exp.y (yylex, yyerror): Update.
8797 * m2-exp.y (parse_number, yylex, yyerror): Update.
8798 * go-exp.y (lex_one_token, yyerror): Update.
8799 * f-exp.y (match_string_literal, yylex, yyerror): Update.
8800 * d-exp.y (lex_one_token, yyerror): Update.
8801 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
8802 (lex_one_token, yyerror): Update.
8803 * ada-lex.l (YY_INPUT): Update.
8804 (rewind_to_char): Update.
8805 * ada-exp.y (yyerror): Update.
8806
8621b685
TT
88072019-04-04 Tom Tromey <tom@tromey.com>
8808
8809 * rust-exp.y (rustyylex, rust_lex_tests): Update.
8810 * parser-defs.h (struct parser_state) <parser_state>: Add new
8811 parameter.
8812 <comma_terminates>: New member.
8813 (comma_terminates): Don't declare global.
8814 * parse.c (comma_terminates): Remove global.
8815 (parse_exp_in_context): Update.
8816 * p-exp.y (yylex): Update.
8817 * m2-exp.y (yylex): Update.
8818 * go-exp.y (lex_one_token): Update.
8819 * f-exp.y (yylex): Update.
8820 * d-exp.y (lex_one_token): Update.
8821 * c-exp.y (lex_one_token): Update.
8822 * ada-lex.l: Update.
8823
28aaf3fd
TT
88242019-04-04 Tom Tromey <tom@tromey.com>
8825
8826 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
8827 (rustyylex, rust_lex_test_init, rust_lex_test_one)
8828 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
8829 * parser-defs.h (paren_depth): Don't declare.
8830 * parse.c (paren_depth): Remove global.
8831 (parse_exp_in_context): Update.
8832 * p-exp.y (paren_depth): New global.
8833 (pascal_parse): Initialize it.
8834 * m2-exp.y (paren_depth): New global.
8835 (m2_parse): Initialize it.
8836 * go-exp.y (paren_depth): New global.
8837 (go_parse): Initialize it.
8838 * f-exp.y (paren_depth): New global.
8839 (f_parse): Initialize it.
8840 * d-exp.y (paren_depth): New global.
8841 (d_parse): Initialize it.
8842 * c-exp.y (paren_depth): New global.
8843 (c_parse): Initialize it.
8844 * ada-lex.l (paren_depth): New global.
8845 (lexer_init): Initialize it.
8846
1e58a4a4
TT
88472019-04-04 Tom Tromey <tom@tromey.com>
8848
8849 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
8850 (rust_parser::convert_ast_to_type)
8851 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8852 * parser-defs.h (struct parser_state) <parser_state>: Add
8853 parameters. Initialize new members.
8854 <expression_context_block, expression_context_pc>: New members.
8855 * parse.c (expression_context_block, expression_context_pc):
8856 Remove globals.
8857 (parse_exp_in_context): Update.
8858 * p-exp.y: Update all rules.
8859 (yylex): Update.
8860 * m2-exp.y: Update all rules.
8861 (yylex): Update.
8862 * go-exp.y (yylex): Update.
8863 * f-exp.y (yylex): Update.
8864 * d-exp.y: Update all rules.
8865 (yylex): Update.
8866 * c-exp.y: Update all rules.
8867 (lex_one_token, classify_name, yylex, c_parse): Update.
8868 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
8869
37eedb39
TT
88702019-04-04 Tom Tromey <tom@tromey.com>
8871
8872 * gdbarch.h, gdbarch.c: Rebuild.
8873 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
8874 * stap-probe.h:
8875 (struct stap_parse_info): Replace "parser_state" with
8876 "expr_builder".
8877 * parser-defs.h (struct expr_builder): Rename from "parser_state".
8878 (parser_state): New class.
8879 * parse.c (expr_builder): Rename.
8880 (expr_builder::release): Rename.
8881 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
8882 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
8883 (write_exp_elt_longcst, write_exp_elt_floatcst)
8884 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
8885 (write_exp_string_vector, write_exp_bitstring)
8886 (write_exp_msymbol, mark_struct_expression)
8887 (write_dollar_variable)
8888 (insert_type_address_space, increase_expout_size): Replace
8889 "parser_state" with "expr_builder".
8890 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
8891 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
8892 "parser_state" with "expr_builder".
8893
73923d7e
TT
88942019-04-04 Tom Tromey <tom@tromey.com>
8895
8896 * rust-exp.y: Replace "parse_language" with method call.
8897 * p-exp.y:
8898 (yylex): Replace "parse_language" with method call.
8899 * m2-exp.y:
8900 (yylex): Replace "parse_language" with method call.
8901 * go-exp.y (classify_name): Replace "parse_language" with method
8902 call.
8903 * f-exp.y (yylex): Replace "parse_language" with method call.
8904 * d-exp.y (lex_one_token): Replace "parse_language" with method
8905 call.
8906 * c-exp.y:
8907 (lex_one_token, classify_name, yylex): Replace "parse_language"
8908 with method call.
8909 * ada-exp.y (find_primitive_type, type_char)
8910 (type_system_address): Replace "parse_language" with method call.
8911
fa9f5be6
TT
89122019-04-04 Tom Tromey <tom@tromey.com>
8913
8914 * rust-exp.y: Replace "parse_gdbarch" with method call.
8915 * parse.c (write_dollar_variable, insert_type_address_space):
8916 Replace "parse_gdbarch" with method call.
8917 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
8918 call.
8919 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
8920 call.
8921 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
8922 "parse_gdbarch" with method call.
8923 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
8924 with method call.
8925 * f-exp.y (parse_type, parse_f_type, yylex): Replace
8926 "parse_gdbarch" with method call.
8927 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
8928 "parse_gdbarch" with method call.
8929 * c-exp.y (parse_type, parse_number, classify_name): Replace
8930 "parse_gdbarch" with method call.
8931 * ada-lex.l: Replace "parse_gdbarch" with method call.
8932 * ada-exp.y (parse_type, find_primitive_type, type_char)
8933 (type_system_address): Replace "parse_gdbarch" with method call.
8934
1201a264
TT
89352019-04-04 Tom Tromey <tom@tromey.com>
8936
8937 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
8938 * stap-probe.c (stap_parse_argument): Update.
8939 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
8940 initial_size parameter.
8941 * rust-exp.y (rust_lex_tests): Update.
8942 * parse.c (parser_state): Update.
8943 (parse_exp_in_context): Update.
8944 * parser-defs.h (struct parser_state) <parser_state>: Remove
8945 "initial_size" parameter.
8946
e3980ce2
TT
89472019-04-04 Tom Tromey <tom@tromey.com>
8948
8949 * parser-defs.h (increase_expout_size): Don't declare.
8950 * parse.c (increase_expout_size): Now static.
8951
e9f8e3f1
TS
89522019-04-04 Thomas Schwinge <thomas@codesourcery.com>
8953
8954 * gnu-nat.c (gnu_nat_target::wait): Fix
8955 target_waitstatus_to_string call.
8956
d7df6549
AB
89572019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8958
8959 * eval.c (evaluate_subexp_standard): Handle internal functions
8960 during Fortran function call handling.
8961
8bdc1658
AB
89622019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8963
8964 * NEWS: Mention new internal functions.
8965 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
8966 (read_base_type): Use dwarf2_init_complex_target_type.
8967 * value.c (creal_internal_fn): New function.
8968 (cimag_internal_fn): New function.
8969 (_initialize_values): Register new internal functions.
8970
c29705b7
PW
89712019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8972
8973 * infrun.c (stop_all_threads): If debug_infrun, always
8974 trace the wait status after wait_one, using
8975 target_waitstatus_to_string and target_pid_to_str.
8976 (handle_inferior_event): Replace various trace of
8977 wait status kind by a single trace.
8978 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
8979 wait status kind image by target_waitstatus_to_string.
8980 * target/waitstatus.c (target_waitstatus_to_string): Fix
8981 obsolete comment.
8982
05caa1d2
TT
89832019-04-01 Tom Tromey <tromey@adacore.com>
8984
8985 PR symtab/23331:
8986 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
8987
9d1447e0
SDJ
89882019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
8989 Pedro Alves <palves@redhat.com>
8990
8991 * top.c (quit_force): Call 'finalize_values'.
8992 * value.c (finalize_values): New function.
8993 * value.h (finalize_values): Declare.
8994
7734102d
EZ
89952019-03-30 Eli Zaretskii <eliz@gnu.org>
8996
8997 * NEWS: Announce $_gdb_major and $_gdb_minor.
8998
8999 * top.c (init_gdb_version_vars): New function.
9000 (gdb_init): Call init_gdb_version_vars.
9001
188e1fa9
TT
90022019-03-29 Tom Tromey <tromey@adacore.com>
9003
9004 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
9005 help text. Remove dead code.
9006
2880242d
KS
90072019-03-29 Keith Seitz <keiths@redhat.com>
9008
9009 From Siddhesh Poyarekar:
9010 * f-lang.h (f77_get_upperbound): Return LONGEST.
9011 (f77_get_lowerbound): Likewise.
9012 * f-typeprint.c (f_type_print_varspec_suffix): Expand
9013 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
9014 print them.
9015 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
9016 plongest to format print it.
9017 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
9018 (f77_get_upperbound): Likewise.
9019 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
9020 LOWER_BOUND to LONGEST.
9021 (f77_create_arrayprint_offset_tbl): Likewise.
9022
cc1defb1
KS
90232019-03-29 Keith Seitz <keiths@redhat.com>
9024
9025 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
9026 %s/pulongest for TYPE_LENGTH instead of %d in format
9027 strings.
9028 * ada-typerint.c (ada_print_type): Likewise.
9029 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
9030 * compile/compile-c-support.c (generate_register_struct): Likewise.
9031 * gdbtypes.c (recursive_dump_type): Likewise.
9032 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
9033 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
9034 instead of %d in format strings.
9035 * riscv-tdep.c (riscv_type_alignment): Cast second argument
9036 to std::min to ULONGEST.
9037 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
9038 instead of %d in format strings.
9039 * tracepoint.c (info_scope_command): Likewise.
9040 * typeprint.c (print_offset_data::update)
9041 (print_offset_data::finish): Likewise.
9042 * xtensa-tdep.c (xtensa_store_return_value)
9043 (xtensa_push_dummy_call): Likewise.
9044
e432ccf1
JT
90452019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
9046
9047 * windows-nat.c (display_selector): Fixed format specifications
9048 for 64-bit Cygwin.
9049
65d2b333
PW
90502019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9051
9052 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
9053
f489207e
SL
90542019-03-28 Sandra Loosemore <sandra@codesourcery.com>
9055
9056 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
9057 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
9058 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
9059 (nios2_linux_init_abi): Install it.
9060
bffa1015
AH
90612019-03-28 Alan Hayward <alan.hayward@arm.com>
9062
9063 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
9064
fc96163a
AH
90652019-03-28 Alan Hayward <alan.hayward@arm.com>
9066
9067 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
9068
20dc7e9b
PW
90692019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9070 Tom Tromey <tromey@adacore.com>
9071
9072 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
9073
7f5331a8
JB
90742019-03-26 Joel Brobecker <brobecker@adacore.com>
9075
9076 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
9077 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
9078 method to compute the bounds of range types. Also print "[evaluated]"
9079 if the bounds' values come from a dynamic evaluation.
9080
18c77628
AB
90812019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
9082
9083 * cp-valprint.c (cp_print_value_fields): Don't print trailing
9084 whitespace when pretty printing is on.
9085
53c973f2
AH
90862019-03-26 Alan Hayward <alan.hayward@arm.com>
9087
e79be6e5 9088 * ppc-linux-nat.c: Add include.
53c973f2 9089
d851aa71
AH
90902019-03-26 Alan Hayward <alan.hayward@arm.com>
9091
e79be6e5 9092 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 9093
2fe7bab7
AH
90942019-03-26 Alan Hayward <alan.hayward@arm.com>
9095
e79be6e5 9096 * arm-linux-nat.c: Add include.
2fe7bab7 9097
068ef30e
SM
90982019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
9099
9100 * source-cache.c (source_cache::get_source_lines): Re-read
9101 fullname after calling open_source_file.
9102
81a24d04
JB
91032019-03-25 John Baldwin <jhb@FreeBSD.org>
9104
9105 * NEWS: Mention TLS support for FreeBSD.
9106
79e7ae11
TT
91072019-03-25 Tom Tromey <tromey@adacore.com>
9108
9109 * minsyms.c (BUNCH_SIZE): Update comment.
9110 (~minimal_symbol_reader): Remove old comment.
9111 (compact_minimal_symbols): Update comment.
9112 (minimal_symbol_reader::install): Remove old comment. Update
9113 other comments.
9114
d45963c2
AH
91152019-03-25 Alan Hayward <alan.hayward@arm.com>
9116
9117 * s390-linux-nat.c: Add include.
9118
0f83012e
AH
91192019-03-25 Alan Hayward <alan.hayward@arm.com>
9120
9121 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
9122 Call linux_get_hwcap.
9123 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
9124 Likewise.
9125 (aarch64_linux_get_hwcap): Remove function.
9126 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
9127 declaration.
9128 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
9129 linux_get_hwcap.
9130 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
9131 * linux-tdep.c (linux_get_hwcap): Add function.
9132 (linux_get_hwcap2): Likewise.
9133 * linux-tdep.h (linux_get_hwcap): Add declaration.
9134 (linux_get_hwcap2): Likewise.
9135 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
9136 (ppc_linux_get_hwcap2): Likewise.
9137 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
9138 linux_get_hwcap.
9139 (ppc_linux_nat_target::insert_watchpoint): Likewise.
9140 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
9141 (ppc_linux_nat_target::read_description): Likewise.
9142 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
9143 * s390-linux-nat.c: Likewise.
9144 * s390-linux-tdep.c (s390_core_read_description): Likewise.
9145
6640a367
TT
91462019-03-24 Tom Tromey <tom@tromey.com>
9147
9148 * ada-lang.c (standard_lookup): Simplify initialization.
9149 (ada_lookup_symbol_nonlocal): Simplify return.
9150 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
9151 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
9152 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
9153 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
9154 initialization.
9155 * solib.c (solib_global_lookup): Simplify.
9156 * symtab.c (null_block_symbol): Remove.
9157 (symbol_cache_lookup): Simplify returns.
9158 (lookup_language_this): Simplify returns.
9159 (lookup_symbol_aux): Simplify return.
9160 (lookup_local_symbol): Simplify returns.
9161 (lookup_global_symbol_from_objfile): Simplify return.
9162 (lookup_symbol_in_objfile_symtabs)
9163 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
9164 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
9165 (lookup_static_symbol, lookup_global_symbol): Simplify return.
9166 * cp-namespace.c (cp_lookup_bare_symbol)
9167 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
9168 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
9169 (cp_lookup_nested_symbol): Don't use null_block_symbol.
9170 (cp_lookup_symbol_via_imports): Simplify initialization.
9171 (find_symbol_in_baseclass): Likewise.
9172 * symtab.h (null_block_symbol): Remove.
9173 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
9174 (d_lookup_nested_symbol, d_lookup_symbol_imports)
9175 (d_lookup_symbol_module): Likewise.
9176 (find_symbol_in_baseclass): Simplify initialization.
9177
a930ebcd
TT
91782019-03-24 Tom Tromey <tom@tromey.com>
9179
9180 * expression.h: Don't include symtab.h.
9181 (struct block): Forward declare.
9182
582942f4
TT
91832019-03-24 Tom Tromey <tom@tromey.com>
9184
9185 * c-exp.y (typebase): Remove casts.
9186 * gdbtypes.c (lookup_unsigned_typename, )
9187 (lookup_signed_typename): Remove cast.
9188 * eval.c (parse_to_comma_and_eval): Remove cast.
9189 * parse.c (write_dollar_variable): Remove cast.
9190 * block.h (struct block) <superblock>: Now const.
9191 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
9192 * psymtab.c (psym_map_matching_symbols): Make "block" const.
9193 (map_block): Make "block" const.
9194 * symfile.h (struct quick_symbol_functions)
9195 <map_matching_symbols>: Constify block argument to "callback".
9196 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
9197 const.
9198 (find_pc_sect_compunit_symtab): Make "b" const.
9199 (find_symbol_at_address): Likewise.
9200 (search_symbols): Likewise.
9201 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
9202 (dw2_debug_names_lookup_symbol): Likewise.
9203 (dw2_map_matching_symbols): Update.
9204 * p-valprint.c (pascal_val_print): Remove "block".
9205 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
9206 (aux_add_nonlocal_symbols): Make "block" const.
9207 (resolve_subexp): Remove cast.
9208 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
9209 const.
9210 (iterate_over_file_blocks): Likewise.
9211 * f-exp.y (%union) <bval>: Remove.
9212 * coffread.c (patch_opaque_types): Make "b" const.
9213 * spu-tdep.c (spu_catch_start): Make "block" const.
9214 * c-valprint.c (print_unpacked_pointer): Remove "block".
9215 * symmisc.c (dump_symtab_1): Make "b" const.
9216 (block_depth): Make "block" const.
9217 * d-exp.y (%union) <bval>: Remove.
9218 * cp-support.h (cp_lookup_rtti_type): Update.
9219 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
9220 * psymtab.c (psym_lookup_symbol): Make "block" const.
9221 (maintenance_check_psymtabs): Make "b" const.
9222 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
9223 (enumerate_locals, enumerate_args): Update.
9224 * python/py-symtab.c (stpy_global_block): Make "block" const.
9225 (stpy_static_block): Likewise.
9226 * inline-frame.c (block_starting_point_at): Make "new_block"
9227 const.
9228 * block.c (find_block_in_blockvector): Make return type const.
9229 (blockvector_for_pc_sect): Make "b" const.
9230 (find_block_in_blockvector): Make "b" const.
9231
7ad417dd
TT
92322019-03-23 Tom Tromey <tom@tromey.com>
9233
9234 * varobj.c (varobj_create): Update.
9235 * symfile.c (clear_symtab_users): Don't reset innermost_block.
9236 * printcmd.c (display_command, do_one_display): Don't reset
9237 innermost_block.
9238 * parser-defs.h (enum innermost_block_tracker_type): Move to
9239 expression.h.
9240 (innermost_block): Update comment.
9241 * parse.c (parse_exp_1): Add tracker_types parameter.
9242 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
9243 tracker_types parameter. Reset innermost_block.
9244 (parse_exp_in_context): Remove.
9245 (parse_expression_for_completion): Update.
9246 * objfiles.c (~objfile): Don't reset expression_context_block or
9247 innermost_block.
9248 * expression.h (enum innermost_block_tracker_type): Move from
9249 parser-defs.h.
9250 (parse_exp_1): Add tracker_types parameter.
9251 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
9252 reset innermost_block.
9253
b366c208
TT
92542019-03-23 Tom Tromey <tom@tromey.com>
9255
9256 * objfiles.h: Include bcache.h.
9257
9bb9b2f9
TT
92582019-03-23 Tom Tromey <tom@tromey.com>
9259
9260 * linespec.c (get_current_search_block): Use
9261 scoped_restore_current_language.
9262 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
9263
59c28372
AH
92642019-03-22 Alan Hayward <alan.hayward@arm.com>
9265 Jiong Wang <jiong.wang@arm.com>
9266
9267 * aarch64-linux-tdep.c
9268 (aarch64_linux_iterate_over_regset_sections): Check for pauth
9269 section.
9270 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
9271
17e116a7
AH
92722019-03-22 Alan Hayward <alan.hayward@arm.com>
9273 Jiong Wang <jiong.wang@arm.com>
9274
9275 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
9276 instructions.
9277 (aarch64_analyze_prologue_test): Add PACIASP test.
9278 (aarch64_prologue_prev_register): Unmask PC value.
9279
11e1b75f
AH
92802019-03-22 Alan Hayward <alan.hayward@arm.com>
9281 Jiong Wang <jiong.wang@arm.com>
9282
9283 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
9284 (aarch64_dwarf2_prev_register): Unmask PC value.
9285 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
9286 (aarch64_execute_dwarf_cfa_vendor_op): Check for
9287 DW_CFA_AARCH64_negate_ra_state.
9288 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
9289
34dcc7cf
AH
92902019-03-22 Alan Hayward <alan.hayward@arm.com>
9291 Jiong Wang <jiong.wang@arm.com>
9292
9293 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
9294 registers.
9295 (aarch64_pseudo_register_name): Likewise.
9296 (aarch64_pseudo_register_type): Likewise.
9297 (aarch64_pseudo_register_reggroup_p): Likewise.
9298 (aarch64_gdbarch_init): Add pauth registers.
9299 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
9300 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
9301 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
9302 (struct gdbarch_tdep): Add regnum for ra_state.
9303
1ef53e6b
AH
93042019-03-22 Alan Hayward <alan.hayward@arm.com>
9305 Jiong Wang <jiong.wang@arm.com>
9306
9307 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
9308
76bed0fd
AH
93092019-03-22 Alan Hayward <alan.hayward@arm.com>
9310 Jiong Wang <jiong.wang@arm.com>
9311
9312 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
9313 function.
9314 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
9315 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
9316 (aarch64_gdbarch_init): Add puth registers.
9317 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
9318 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
9319 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
9320
ee4fbcfa
AH
93212019-03-22 Alan Hayward <alan.hayward@arm.com>
9322 Jiong Wang <jiong.wang@arm.com>
9323
9324 * aarch64-linux-nat.c
9325 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
9326 * aarch64-linux-tdep.c
9327 (aarch64_linux_core_read_description): Likewise.
9328 (aarch64_linux_get_hwcap): New function.
9329 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
9330 (aarch64_linux_get_hwcap): New declaration.
9331
6dc0ebde
AH
93322019-03-22 Alan Hayward <alan.hayward@arm.com>
9333 Jiong Wang <jiong.wang@arm.com>
9334
9335 * aarch64-linux-nat.c
9336 (aarch64_linux_nat_target::read_description): Add pauth param.
9337 * aarch64-linux-tdep.c
9338 (aarch64_linux_core_read_description): Likewise.
9339 * aarch64-tdep.c (struct target_desc): Add in pauth.
9340 (aarch64_read_description): Add pauth param.
9341 (aarch64_gdbarch_init): Likewise.
9342 * aarch64-tdep.h (aarch64_read_description): Likewise.
9343 * arch/aarch64.c (aarch64_create_target_description): Likewise.
9344 * arch/aarch64.h (aarch64_create_target_description): Likewise.
9345 * features/Makefile: Add new files.
9346 * features/aarch64-pauth.c: New file.
9347 * features/aarch64-pauth.xml: New file.
9348
595915c1
TT
93492019-03-20 Tom Tromey <tromey@adacore.com>
9350
9351 * infrun.c (handle_inferior_event): Rename from
9352 handle_inferior_event_1. Create a scoped_value_mark.
9353 (handle_inferior_event): Remove.
9354
4c7d57e7
TT
93552019-03-19 Tom Tromey <tromey@adacore.com>
9356
9357 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
9358 * infrun.h (print_stop_event): Add "displays" parameter.
9359 * infrun.c (print_stop_event): Add "displays" parameter.
9360
cb246234
PA
93612019-03-19 Pedro Alves <palves@redhat.com>
9362
9363 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
9364 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
9365 to -1. Fix TABs vs spaces.
9366 (tui_ui_out::tui_ui_out): Don't initialize fields here.
9367 * tui/tui-out.h (tui_ui_out) Add intro comments.
9368 <m_line, m_start_of_line>: In-class initialize, and add describing
9369 comment.
9370
3a0e45b2
AH
93712019-03-18 Alan Hayward <alan.hayward@arm.com>
9372
9373 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
9374 variable names.
9375 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
9376
5371b850
PA
93772019-03-18 Pedro Alves <palves@redhat.com>
9378 Eli Zaretskii <eliz@gnu.org>
9379
9380 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
9381 m_line and m_start_of_line.
9382
b17c4cd0
EZ
93832019-03-18 Eli Zaretskii <eliz@gnu.org>
9384
9385 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
9386 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
9387 it returns a newline. This fixes a regression in TU mode, whereby
9388 the next line is output on the same screen line as the user input.
9389
4bd56d18
TT
93902019-03-18 Tom Tromey <tromey@adacore.com>
9391
9392 * minsyms.c (minimal_symbol_reader::install): Remove call to
9393 obstack_blank.
9394
55c10aca
PA
93952019-03-18 Pedro Alves <palves@redhat.com>
9396
9397 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
9398 New globals.
9399 (apply_style): New, factored out from ...
9400 (apply_ansi_escape): ... this. Handle reverse video mode.
9401 (tui_set_reverse_mode): New function.
9402 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
9403 * tui/tui-winsource.c (tui_show_source_line): Use
9404 tui_set_reverse_mode instead of setting A_STANDOUT.
9405 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
9406 New setter methods.
9407
647bb750
HD
94082019-03-18 Hannes Domani <ssbssa@yahoo.de>
9409
9410 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
9411 Handle tabs.
9412
bff8c71f
TT
94132019-03-18 Tom Tromey <tromey@adacore.com>
9414
9415 * ada-lang.c (empty_array): Add "high" parameter.
9416 (ada_evaluate_subexp): Update.
9417
58785d98
ST
94182019-03-17 Sergei Trofimovich <siarheit@google.com>
9419
9420 * unittests/string_view-selftests.c: Define
9421 _initialize_string_view_selftests unconditionally.
9422
d4cbef22
ВМ
94232019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9424
9425 PR gdb/24350
9426 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
9427
fce4c071
ВМ
94282019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9429
9430 PR gdb/24351
9431 * windows-nat.c (display_selector): Fix format specifiers.
9432
f7f0a123
EZ
94332019-03-17 Eli Zaretskii <eliz@gnu.org>
9434
9435 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
9436 tui_refill_source_window instead of tui_refresh_win, to update the
9437 current execution line. This fixes redisplay of the current line
9438 when stepping through the code with "next" or "step".
9439
ab42892f
EZ
94402019-03-16 Eli Zaretskii <eliz@gnu.org>
9441
9442 * source-cache.c (source_cache::get_source_lines): Call
9443 find_source_lines to initialize s->nlines. This fixes vertical
9444 scrolling of TUI source window when the DOWN arrow is pressed.
9445
8d8c087f
PW
94462019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9447
9448 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
9449 linux-thread-db.c (_initialize_thread_db): Likewise.
9450
798e1c30
EZ
94512019-03-16 Eli Zaretskii <eliz@gnu.org>
9452
9453 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
9454 wclrtoeol in tui_show_source_line". This reverts changes made in
9455 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
9456
eefba3da
TT
94572019-03-15 Tom Tromey <tom@tromey.com>
9458
9459 * symtab.h (struct minimal_symbol): Derive from
9460 general_symbol_info.
9461 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
9462 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9463 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9464 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9465 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
9466 (MSYMBOL_SEARCH_NAME): Update.
9467 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
9468 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
9469 * minsyms.c (minimal_symbol_reader::record_full): Update.
9470
0de2420c
TT
94712019-03-15 Tom Tromey <tom@tromey.com>
9472
9473 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
9474
042d75e4
TT
94752019-03-15 Tom Tromey <tom@tromey.com>
9476
9477 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
9478 unique_xmalloc_ptr.
9479 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
9480 Update.
9481 * minsyms.c (lookup_minimal_symbol_by_pc_section)
9482 (build_minimal_symbol_hash_tables)
9483 (minimal_symbol_reader::install): Update.
9484
db92718b
TT
94852019-03-15 Tom Tromey <tom@tromey.com>
9486
9487 * symtab.c (create_demangled_names_hash): Update.
9488 (symbol_set_names): Update.
9489 * objfiles.h (struct objfile_per_bfd_storage)
9490 <demangled_names_hash>: Now an htab_up.
9491 * objfiles.c (objfile_per_bfd_storage): Simplify.
9492
d6797f46
TT
94932019-03-15 Tom Tromey <tom@tromey.com>
9494
9495 * objfiles.h (struct objfile_per_bfd_storage): Declare
9496 destructor.
9497 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
9498 New.
9499 (get_objfile_bfd_data): Use new. Don't initialize
9500 language_of_main.
9501 (free_objfile_per_bfd_storage): Remove.
9502 (objfile_bfd_data_free, objfile::~objfile): Use delete.
9503
741d7538
TT
95042019-03-15 Tom Tromey <tom@tromey.com>
9505
9506 * symfile.c (reread_symbols): Update.
9507 * objfiles.c (objfile::objfile): Update.
9508 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
9509 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
9510 comment.
9511 (minimal_symbol_reader::install): Update.
9512 (terminate_minimal_symbol_table): Remove.
9513 * jit.c (jit_object_close_impl): Update.
9514
788c80d1
TT
95152019-03-15 Tom Tromey <tom@tromey.com>
9516
9517 * minsyms.c (minimal_symbol_reader::record_full): Remove some
9518 initializations.
9519
1b7a07cb
TT
95202019-03-15 Tom Tromey <tom@tromey.com>
9521
9522 * objfiles.h (struct objfile_per_bfd_storage)
9523 <demangled_hash_languages>: Now a bitset.
9524 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
9525 (lookup_minimal_symbol): Update.
9526
3db066bc
TT
95272019-03-15 Tom Tromey <tom@tromey.com>
9528
9529 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
9530 Don't return the symbol.
9531 * coffread.c (record_minimal_symbol): Use record_full.
9532
3fff2c37
EZ
95332019-03-14 Eli Zaretskii <eliz@gnu.org>
9534
9535 The MS-Windows port of ncurses fails to switch to a color pair if
9536 one or both of the colors are the implicit default colors. This
9537 change records the default colors when TUI is initialized, and
9538 then specifies them explicitly when a color pair uses the default
9539 colors. This allows color styling in TUI mode on MS-Windows.
9540
9541 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
9542 ncurses_norm_attr.
9543 (tui_initialize_io) [__MINGW32__]: Record the default terminal
9544 colors in ncurses_norm_attr.
9545 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
9546 "none", replace it with the default color recorded in
9547 ncurses_norm_attr.
9548
3b336828
TT
95492019-03-14 Tom Tromey <tromey@adacore.com>
9550
9551 * source-cache.h (class source_cache) <get_source_lines>: Return
9552 std::string.
9553 * source-cache.c (source_cache::extract_lines): Handle case where
9554 first_pos==npos. Return std::string.
9555 (source_cache::get_source_lines): Update.
9556
d085f989
TT
95572019-03-14 Tom Tromey <tromey@adacore.com>
9558
9559 * NEWS: Add item for "style sources" commands.
9560 * source-cache.c (source_cache::get_source_lines): Check
9561 source_styling.
9562 * cli/cli-style.c (source_styling): New global.
9563 (_initialize_cli_style): Add "style sources" commands.
9564 (show_style_sources): New function.
9565 * cli/cli-style.h (source_styling): Declare.
9566
6f11e682
TT
95672019-03-14 Pedro Alves <palves@redhat.com>
9568 Tom Tromey <tromey@adacore.com>
9569
9570 * tui/tui-winsource.h (tui_refill_source_window): Declare.
9571 * tui/tui-winsource.c (tui_refill_source_window): New function,
9572 from...
9573 (tui_horizontal_source_scroll): ... here. Move some logic.
9574 * cli/cli-style.c (set_style_enabled): Notify new observable.
9575 * tui/tui-hooks.c (tui_redisplay_source): New function.
9576 (tui_attach_detach_observers): Attach or detach
9577 tui_redisplay_source.
9578 * observable.h (source_styling_changed): New observable.
9579 * observable.c: Define source_styling_changed observable.
9580
a068643d
TT
95812019-03-13 Tom Tromey <tromey@adacore.com>
9582
9583 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
9584 (i386_gnu_nat_target::store_registers): Update.
9585 * target-debug.h (target_debug_print_std_string): New macro.
9586 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9587 * windows-tdep.c (display_one_tib): Update.
9588 * tui/tui-stack.c (tui_make_status_line): Update.
9589 * top.c (print_inferior_quit_action): Update.
9590 * thread.c (thr_try_catch_cmd): Update.
9591 (add_thread_with_info): Update.
9592 (thread_target_id_str): Update.
9593 (thr_try_catch_cmd): Update.
9594 (thread_command): Update.
9595 (thread_find_command): Update.
9596 * record-btrace.c (record_btrace_target::info_record)
9597 (record_btrace_resume_thread, record_btrace_target::resume)
9598 (record_btrace_cancel_resume, record_btrace_step_thread)
9599 (record_btrace_target::wait, record_btrace_target::wait)
9600 (record_btrace_target::wait, record_btrace_target::stop): Update.
9601 * progspace.c (print_program_space): Update.
9602 * process-stratum-target.c
9603 (process_stratum_target::thread_address_space): Update.
9604 * linux-fork.c (linux_fork_mourn_inferior)
9605 (detach_checkpoint_command, info_checkpoints_command)
9606 (linux_fork_context): Update.
9607 (linux_fork_detach): Update.
9608 (class scoped_switch_fork_info): Update.
9609 (delete_checkpoint_command): Update.
9610 * infrun.c (follow_fork_inferior): Update.
9611 (follow_fork_inferior): Update.
9612 (proceed_after_vfork_done): Update.
9613 (handle_vfork_child_exec_or_exit): Update.
9614 (follow_exec): Update.
9615 (displaced_step_prepare_throw): Update.
9616 (displaced_step_restore): Update.
9617 (start_step_over): Update.
9618 (resume_1): Update.
9619 (clear_proceed_status_thread): Update.
9620 (proceed): Update.
9621 (print_target_wait_results): Update.
9622 (do_target_wait): Update.
9623 (context_switch): Update.
9624 (stop_all_threads): Update.
9625 (restart_threads): Update.
9626 (finish_step_over): Update.
9627 (handle_signal_stop): Update.
9628 (switch_back_to_stepped_thread): Update.
9629 (keep_going_pass_signal): Update.
9630 (print_exited_reason): Update.
9631 (normal_stop): Update.
9632 * inferior.c (inferior_pid_to_str): Change return type.
9633 (print_selected_inferior): Update.
9634 (add_inferior): Update.
9635 (detach_inferior): Update.
9636 * dummy-frame.c (fprint_dummy_frames): Update.
9637 * dcache.c (dcache_info_1): Update.
9638 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
9639 (btrace_fetch, btrace_clear): Update.
9640 * linux-tdep.c (linux_core_pid_to_str): Change return type.
9641 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
9642 type.
9643 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
9644 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
9645 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
9646 * gdbarch.c, gdbarch.h: Rebuild.
9647 * gdbarch.sh (core_pid_to_str): Change return type.
9648 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
9649 return type.
9650 (windows_nat_target::pid_to_str): Change return type.
9651 (windows_delete_thread): Update.
9652 (windows_nat_target::attach): Update.
9653 (windows_nat_target::files_info): Update.
9654 * target-delegates.c: Rebuild.
9655 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
9656 return type.
9657 (sol_thread_target::pid_to_str): Change return type.
9658 * remote.c (class remote_target) <pid_to_str>: Change return
9659 type.
9660 (remote_target::pid_to_str): Change return type.
9661 (extended_remote_target::attach, remote_target::remote_stop_ns)
9662 (remote_target::remote_notif_remove_queued_reply)
9663 (remote_target::push_stop_reply, remote_target::disable_btrace):
9664 Update.
9665 (extended_remote_target::attach): Update.
9666 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
9667 type.
9668 (gdbsim_target::pid_to_str): Change return type.
9669 * ravenscar-thread.c (struct ravenscar_thread_target)
9670 <pid_to_str>: Change return type.
9671 (ravenscar_thread_target::pid_to_str): Change return type.
9672 * procfs.c (class procfs_target) <pid_to_str>: Change return
9673 type.
9674 (procfs_target::pid_to_str): Change return type.
9675 (procfs_target::attach): Update.
9676 (procfs_target::detach): Update.
9677 (procfs_target::fetch_registers): Update.
9678 (procfs_target::store_registers): Update.
9679 (procfs_target::wait): Update.
9680 (procfs_target::files_info): Update.
9681 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
9682 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
9683 return type.
9684 (nto_procfs_target::pid_to_str): Change return type.
9685 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
9686 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
9687 return type.
9688 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
9689 (exit_lwp): Update.
9690 (attach_proc_task_lwp_callback, get_detach_signal)
9691 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
9692 (linux_nat_target::resume, wait_lwp, stop_callback)
9693 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
9694 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
9695 (linux_nat_wait_1, resume_stopped_resumed_lwps)
9696 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
9697 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
9698 type.
9699 (inf_ptrace_target::attach): Update.
9700 (inf_ptrace_target::files_info): Update.
9701 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
9702 type.
9703 (go32_nat_target::pid_to_str): Change return type.
9704 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
9705 (gnu_nat_target::wait): Update.
9706 (gnu_nat_target::wait): Update.
9707 (gnu_nat_target::resume): Update.
9708 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
9709 (fbsd_nat_target::wait): Update.
9710 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
9711 type.
9712 (darwin_nat_target::attach): Update.
9713 * corelow.c (class core_target) <pid_to_str>: Change return type.
9714 (core_target::pid_to_str): Change return type.
9715 * target.c (normal_pid_to_str): Change return type.
9716 (default_pid_to_str): Likewise.
9717 (target_pid_to_str): Change return type.
9718 (target_translate_tls_address): Update.
9719 (target_announce_detach): Update.
9720 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
9721 return type.
9722 (bsd_uthread_target::pid_to_str): Change return type.
9723 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
9724 type.
9725 (bsd_kvm_target::pid_to_str): Change return type.
9726 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
9727 return type.
9728 (aix_thread_target::pid_to_str): Change return type.
9729 * target.h (struct target_ops) <pid_to_str>: Change return type.
9730 (target_pid_to_str, normal_pid_to_str): Likewise.
9731 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
9732 type.
9733 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
9734 type.
9735 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
9736 return type.
9737 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
9738 type.
9739 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
9740 type.
9741 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
9742 return type.
9743
b4be1b06
SM
97442019-03-13 Simon Marchi <simon.marchi@ericsson.com>
9745
9746 * NEWS: Mention that the new default MI version is 3. Mention
9747 changes to the output of commands and events that deal with
9748 multi-location breakpoints.
9749 * breakpoint.c: Include "mi/mi-out.h".
9750 (print_one_breakpoint): Change output syntax if using MI version
9751 >= 3.
9752 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
9753 New.
9754 (mi_multi_location_breakpoint_output_fixed): New.
9755 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
9756 (mi_cmd_fix_multi_location_breakpoint_output): New.
9757 (mi_multi_location_breakpoint_output_fixed): New.
9758 * mi/mi-cmds.c (mi_cmds): Register command
9759 -fix-multi-location-breakpoint-output.
9760 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
9761 interpreter "mi".
9762
8e5e5494
SM
97632019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9764
9765 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
9766 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
9767 instantiate mi_ui_out based on interpreter name.
9768 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
9769 * mi/mi-main.c (mi_load_progress): Likewise.
9770
197df35e
JB
97712019-03-12 John Baldwin <jhb@FreeBSD.org>
9772
9773 * NEWS: Combine separate "New targets" sections for 8.3.
9774
8399425f
JB
97752019-03-12 John Baldwin <jhb@FreeBSD.org>
9776
9777 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
9778 (ppcfbsd_init_abi): Install gdbarch
9779 "fetch_tls_load_module_address" and "get_thread_local_address"
9780 methods.
9781
b0f87ed0
JB
97822019-03-12 John Baldwin <jhb@FreeBSD.org>
9783
9784 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
9785 (riscv_fbsd_init_abi): Install gdbarch
9786 "fetch_tls_load_module_address" and "get_thread_local_address"
9787 methods.
9788
ce25aa57
JB
97892019-03-12 John Baldwin <jhb@FreeBSD.org>
9790
9791 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
9792 (i386fbsd_init_abi): Install gdbarch
9793 "fetch_tls_load_module_address" and "get_thread_local_address"
9794 methods.
9795
f5424cfa
JB
97962019-03-12 John Baldwin <jhb@FreeBSD.org>
9797
9798 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
9799 (amd64fbsd_init_abi): Install gdbarch
9800 "fetch_tls_load_module_address" and "get_thread_local_address"
9801 methods.
9802
945f3901
JB
98032019-03-12 John Baldwin <jhb@FreeBSD.org>
9804
9805 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
9806 (struct fbsd_pspace_data): New type.
9807 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
9808 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
9809 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
9810 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
9811 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
9812
ef0bd204
JB
98132019-03-12 John Baldwin <jhb@FreeBSD.org>
9814
9815 * gdbtypes.c (lookup_struct_elt): New function.
9816 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
9817 * gdbtypes.h (struct struct_elt): New type.
9818 (lookup_struct_elt): New prototype.
9819
36c53a02
JB
98202019-03-12 John Baldwin <jhb@FreeBSD.org>
9821
9822 * gdbtypes.c (lookup_struct_elt_type): Update comment and
9823 remove disabled code block.
9824
6e056c81
JB
98252019-03-12 John Baldwin <jhb@FreeBSD.org>
9826
9827 * gdbarch.sh (get_thread_local_address): New method.
9828 * gdbarch.h, gdbarch.c: Regenerate.
9829 * target.c (target_translate_tls_address): Use
9830 gdbarch_get_thread_local_address if present instead of
9831 target::get_thread_local_address.
9832
cd250a18
JB
98332019-03-12 John Baldwin <jhb@FreeBSD.org>
9834
9835 * target.h (target::get_thread_local_address): Update comment.
9836
df22c1e5
JB
98372019-03-12 John Baldwin <jhb@FreeBSD.org>
9838
9839 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
9840 objfile->separate_debug_objfile_backlink if not NULL.
9841
dd6876c9
JB
98422019-03-12 John Baldwin <jhb@FreeBSD.org>
9843
9844 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
9845 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
9846 (amd64bsd_store_inferior_registers): Likewise.
9847 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9848 Enable segment base registers.
9849 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
9850 PT_GETFSBASE and PT_GETGSBASE.
9851 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
9852 PT_SETGSBASE.
9853 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
9854 segment base registers.
9855 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9856
1163a4b7
JB
98572019-03-12 John Baldwin <jhb@FreeBSD.org>
9858
9859 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9860 Update calls to i386_target_description to add 'segments'
9861 parameter.
9862 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
9863 add segment base registers.
9864 * arch/i386.c (i386_create_target_description): Add 'segments'
9865 parameter to enable segment base registers.
9866 * arch/i386.h (i386_create_target_description): Likewise.
9867 * features/i386/32bit-segments.xml: New file.
9868 * features/i386/32bit-segments.c: Generate.
9869 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
9870 call to i386_target_description to add 'segments' parameter.
9871 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9872 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
9873 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
9874 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
9875 if feature is present.
9876 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
9877 Add 'segments' parameter to call to i386_target_description.
9878 (i386_target_description): Add 'segments' parameter to enable
9879 segment base registers.
9880 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
9881 to call to i386_target_description.
9882 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
9883 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
9884 Define I386_NUM_REGS.
9885 (i386_target_description): Add 'segments' parameter to enable
9886 segment base registers.
9887
3a350822
EZ
98882019-03-12 Eli Zaretskii <eliz@gnu.org>
9889
9890 PR/24325
9891 * source-cache.c: #undef open and close, to avoid unresolved
9892 externals during linking.
9893
ffdd69cf
TT
98942019-03-12 Tom Tromey <tromey@adacore.com>
9895
9896 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
9897 const. Add initializers.
9898 (_initialize_remote): Don't initialize ptid globals.
9899
ec148c57
PA
99002019-03-12 Pedro Alves <palves@redhat.com>
9901
9902 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
9903
32764270
PA
99042019-03-12 Pedro Alves <palves@redhat.com>
9905
9906 * cp-name-parser.y (main): Remove unused 'len' variable.
9907
17547186
TT
99082019-03-12 Tom Tromey <tromey@adacore.com>
9909
9910 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
9911 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
9912
d3a70e03
TT
99132019-03-12 Tom Tromey <tromey@adacore.com>
9914
9915 * linux-nat.c (iterate_over_lwps): Update.
9916 (stop_callback): Remove parameter.
9917 (stop_wait_callback, detach_callback, resume_set_callback)
9918 (select_singlestep_lwp_callback, set_ignore_sigint)
9919 (status_callback, resumed_callback, resume_clear_callback)
9920 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
9921 data parameter.
9922 (linux_nat_target::detach, linux_nat_target::resume)
9923 (linux_stop_and_wait_all_lwps, select_event_lwp)
9924 (linux_nat_filter_event, linux_nat_wait_1)
9925 (linux_nat_target::kill, linux_nat_target::stop)
9926 (linux_nat_target::stop): Update.
9927 (linux_nat_resume_callback): Change type.
9928 (resume_stopped_resumed_lwps, count_events_callback)
9929 (select_event_lwp_callback): Likewise.
9930 (linux_stop_lwp, linux_nat_stop_lwp): Update.
9931 * arm-linux-nat.c (struct update_registers_data): Remove.
9932 (update_registers_callback): Change type.
9933 (arm_linux_insert_hw_breakpoint1): Update.
9934 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
9935 parameter.
9936 (x86_linux_dr_set_addr): Update.
9937 (x86_linux_dr_set_control): Update.
9938 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
9939 (iterate_over_lwps): Use gdb::function_view.
9940 * nat/aarch64-linux-hw-point.c (struct
9941 aarch64_dr_update_callback_param): Remove.
9942 (debug_reg_change_callback): Change type.
9943 (aarch64_notify_debug_reg_change): Update.
9944 * s390-linux-nat.c (s390_refresh_per_info): Update.
9945
82cb27ff
TT
99462019-03-11 Tom Tromey <tromey@adacore.com>
9947
9948 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
9949 redundant assignment to "this_cu".
9950
568c0683
SM
99512019-03-08 Simon Marchi <simon.marchi@efficios.com>
9952
9953 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
9954
f09ce22d
SM
99552019-03-08 Simon Marchi <simon.marchi@efficios.com>
9956
9957 * gdbtypes.c (rank_one_type_parm_set): New function extracted
9958 from...
9959 (rank_one_type): ... this.
9960
595f96a9
SM
99612019-03-08 Simon Marchi <simon.marchi@efficios.com>
9962
9963 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
9964 from...
9965 (rank_one_type): ... this.
9966
2598a94b
SM
99672019-03-08 Simon Marchi <simon.marchi@efficios.com>
9968
9969 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
9970 from...
9971 (rank_one_type): ... this.
9972
7f17b20d
SM
99732019-03-08 Simon Marchi <simon.marchi@efficios.com>
9974
9975 * gdbtypes.c (rank_one_type_parm_float): New function extracted
9976 from...
9977 (rank_one_type): ... this.
9978
2c509035
SM
99792019-03-08 Simon Marchi <simon.marchi@efficios.com>
9980
9981 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
9982 from...
9983 (rank_one_type): ... this.
9984
0dd322dc
SM
99852019-03-08 Simon Marchi <simon.marchi@efficios.com>
9986
9987 * gdbtypes.c (rank_one_type_parm_range): New function extracted
9988 from...
9989 (rank_one_type): ... this.
9990
41ea4728
SM
99912019-03-08 Simon Marchi <simon.marchi@efficios.com>
9992
9993 * gdbtypes.c (rank_one_type_parm_char): New function extracted
9994 from...
9995 (rank_one_type): ... this.
9996
793cd1d2
SM
99972019-03-08 Simon Marchi <simon.marchi@efficios.com>
9998
9999 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
10000 from...
10001 (rank_one_type): ... this.
10002
34910087
SM
100032019-03-08 Simon Marchi <simon.marchi@efficios.com>
10004
10005 * gdbtypes.c (rank_one_type_parm_int): New function extracted
10006 from...
10007 (rank_one_type): ... this.
10008
f1f832d6
SM
100092019-03-08 Simon Marchi <simon.marchi@efficios.com>
10010
10011 * gdbtypes.c (rank_one_type_parm_func): New function extracted
10012 from...
10013 (rank_one_type): ... this.
10014
b9f4512f
SM
100152019-03-08 Simon Marchi <simon.marchi@efficios.com>
10016
10017 * gdbtypes.c (rank_one_type_parm_array): New function extracted
10018 from...
10019 (rank_one_type): ... this.
10020
9293fc63
SM
100212019-03-08 Simon Marchi <simon.marchi@efficios.com>
10022
10023 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
10024 from...
10025 (rank_one_type): ... this.
10026
e3abbe7e
PW
100272019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10028
10029 * inferior.c (initialize_inferiors): Ensure 'help set/show print
10030 inferior-events' shows the example events.
10031
e4adb939
EZ
100322019-03-08 Eli Zaretskii <eliz@gnu.org>
10033
10034 Support styling on native MS-Windows console
10035
10036 PR/24315
10037 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
10038 on MS-Windows if $TERM is not defined.
10039
10040 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
10041
10042 * posix-hdep.c (gdb_console_fputs):
10043 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
10044 functions.
10045 * ui-file.h (gdb_console_fputs): Add prototype.
10046
10047 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
10048 back to fputs only if the former returns zero.
10049
25629dfd
TT
100502019-03-07 Tom Tromey <tom@tromey.com>
10051
10052 * symmisc.c (print_symbol_bcache_statistics): Update.
10053 (print_objfile_statistics): Update.
10054 * symfile.c (allocate_symtab): Update.
10055 * stabsread.c: Don't include bcache.h.
10056 * psymtab.h (struct psymbol_bcache): Don't declare.
10057 (class psymtab_storage) <psymbol_cache>: Now a bcache.
10058 (psymbol_bcache_init, psymbol_bcache_free)
10059 (psymbol_bcache_get_bcache): Don't declare.
10060 * psymtab.c (struct psymbol_bcache): Remove.
10061 (psymtab_storage::psymtab_storage): Update.
10062 (psymtab_storage::~psymtab_storage): Update.
10063 (psymbol_bcache_init, psymbol_bcache_free)
10064 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
10065 (add_psymbol_to_bcache): Update.
10066 (allocate_psymtab): Update.
10067 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10068 macro_cache>: No longer pointers.
10069 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
10070 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
10071 * macrotab.c (macro_bcache): Update.
10072 * macroexp.c: Don't include bcache.h.
10073 * gdbtypes.c (check_types_worklist): Update.
10074 (types_deeply_equal): Remove TRY/CATCH. Update.
10075 * elfread.c (elf_symtab_read): Update.
10076 * dwarf2read.c: Don't include bcache.h.
10077 * buildsym.c (buildsym_compunit::get_macro_table): Update.
10078 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
10079 (print_bcache_statistics, bcache_memory_used): Don't declare.
10080 (struct bcache): Move from bcache.c. Add constructor, destructor,
10081 methods. Rename all data members.
10082 * bcache.c (struct bcache): Move to bcache.h.
10083 (bcache::expand_hash_table): Rename from expand_hash_table.
10084 (bcache): Remove.
10085 (bcache::insert): Rename from bcache_full.
10086 (bcache::compare): Rename from bcache_compare.
10087 (bcache_xmalloc): Remove.
10088 (bcache::~bcache): Rename from bcache_xfree.
10089 (bcache::print_statistics): Rename from print_bcache_statistics.
10090 (bcache::memory_used): Rename from bcache_memory_used.
10091
fe726667
PA
100922019-03-07 Pedro Alves <palves@redhat.com>
10093
10094 * infrun.c (normal_stop): Also check for
10095 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
10096
7584bb30
AB
100972019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10098
10099 * f-lang.c (value_from_host_double): Moved to...
10100 * value.c (value_from_host_double): ...here.
10101 * value.h (value_from_host_double): Declare.
10102 * guile/scm-math.c (vlscm_convert_typed_number): Use
10103 value_from_host_double.
10104 (vlscm_convert_number): Likewise.
10105 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
10106 * python/py-value.c (convert_value_from_python): Likewise.
10107
a7b1986e
TT
101082019-03-06 Tom Tromey <tom@tromey.com>
10109
10110 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
10111
0ccf4211
TT
101122019-03-06 Tom Tromey <tom@tromey.com>
10113
10114 * utils.h (free_current_contents): Don't declare.
10115 * utils.c (free_current_contents): Remove.
10116
fe7b42e5
TT
101172019-03-06 Tom Tromey <tom@tromey.com>
10118
10119 * top.c (quit_force): Update.
10120 * main.c (captured_command_loop): Update.
10121 * common/new-op.c (operator new): Update.
10122 * common/common-exceptions.c (struct catcher)
10123 <save_cleanup_chain>: Remove member.
10124 (exceptions_state_mc_init): Update.
10125 (exception_try_scope_entry): Return nullptr.
10126 (exception_try_scope_exit, exception_rethrow)
10127 (throw_exception_sjlj, throw_exception_cxx): Update.
10128 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
10129 (all_cleanups, do_cleanups, discard_cleanups)
10130 (discard_final_cleanups, save_cleanups, save_final_cleanups)
10131 (restore_cleanups, restore_final_cleanups): Don't declare.
10132 (do_final_cleanups): Remove parameter.
10133 * common/cleanups.c (cleanup_chain, make_cleanup)
10134 (make_cleanup_dtor, all_cleanups, do_cleanups)
10135 (discard_my_cleanups, discard_cleanups)
10136 (discard_final_cleanups, save_my_cleanups, save_cleanups)
10137 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
10138 (null_cleanup): Remove.
10139 (do_final_cleanups): Remove parameter.
10140
c6321f19
TT
101412019-03-06 Tom Tromey <tom@tromey.com>
10142
10143 * remote.c (remote_target::remote_parse_stop_reply): Use
10144 unique_xmalloc_ptr.
10145
61b30099
TT
101462019-03-06 Tom Tromey <tom@tromey.com>
10147
10148 * stabsread.c (struct stabs_field_info): Rename from field_info.
10149 <list, fnlist>: Add initializers.
10150 <obstack>: New member.
10151 (read_member_functions, read_struct_fields, read_baseclasses):
10152 Allocate on obstack. Don't use cleanups.
10153 (read_one_struct_field, read_member_functions, read_struct_fields)
10154 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
10155 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
10156 (read_struct_type): Update.
10157
6cceac94
TT
101582019-03-06 Tom Tromey <tom@tromey.com>
10159
10160 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
10161 * common/filestuff.h (make_cleanup_close): Don't declare.
10162 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
10163 Remove.
10164
72412762
TT
101652019-03-06 Tom Tromey <tom@tromey.com>
10166
10167 * solib-aix.c: Use make_scope_exit.
10168
2b6ff1c0
TT
101692019-03-06 Tom Tromey <tom@tromey.com>
10170
10171 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
10172 Use make_scope_exit.
10173
d01c5877
TT
101742019-03-06 Tom Tromey <tom@tromey.com>
10175
10176 * solib-svr4.c (disable_probes_interface): Remove parameter.
10177 (svr4_handle_solib_event): Use make_scope_exit.
10178
32603266
TT
101792019-03-06 Tom Tromey <tom@tromey.com>
10180
10181 * remote.c (struct stop_reply_deleter): Remove.
10182 (stop_reply_up): Update.
10183 (struct stop_reply): Derive from notif_event. Don't typedef.
10184 <regcache>: Now a std::vector.
10185 (stop_reply_xfree): Remove.
10186 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
10187 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
10188 (remote_target::discard_pending_stop_replies): Use delete.
10189 (remote_target::remote_parse_stop_reply): Update.
10190 (remote_target::process_stop_reply): Update.
10191 * remote-notif.h (struct notif_event): Add virtual destructor.
10192 Remove "dtr" member.
10193 (struct notif_client) <alloc_event>: Return a unique_ptr.
10194 (notif_event_xfree): Don't declare.
10195 (notif_event_up): New typedef.
10196 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
10197 (notif_event_xfree, do_notif_event_xfree): Remove.
10198 (remote_notif_state_xfree): Update.
10199
9799571e
TT
102002019-03-06 Tom Tromey <tom@tromey.com>
10201
10202 * infrun.c (displaced_step_clear_cleanup): Now a
10203 forward_scope_exit type.
10204 (displaced_step_prepare_throw): Update.
10205 (displaced_step_fixup): Update.
10206
09e3c4ca
TT
102072019-03-06 Tom Tromey <tom@tromey.com>
10208
10209 * inferior.h (class inferior): Update comment.
10210 * gdbthread.h (class thread_info): Update comment.
10211
e2a03548
TT
102122019-03-06 Joel Brobecker <brobecker@adacore.com>
10213 Tom Tromey <tom@tromey.com>
10214
10215 * stabsread.h (struct stab_section_list): Remove.
10216 (coffstab_build_psymtabs): Update.
10217 * dbxread.c (symbuf_sections): Now a std::vector.
10218 (sect_idx): New global.
10219 (fill_symbuf): Update.
10220 (coffstab_build_psymtabs): Change type of stabsects parameter.
10221 Update.
10222 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
10223 std::vector.
10224 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
10225 (coff_locate_sections): Update.
10226 (coff_symfile_read): Remove cleanups. Update.
10227 (init_stringtab): Add storage parameter.
10228 (free_stringtab, free_stringtab_cleanup): Remove.
10229 (init_lineno): Add storage parameter.
10230 (free_linetab, free_linetab_cleanup): Remove.
10231
b7e60d85
PA
102322019-03-06 Pedro Alves <palves@redhat.com>
10233
10234 * linux-fork.c (fork_info::clobber_regs): Delete.
10235 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
10236 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
10237 comment. Adjust.
10238 (scoped_switch_fork_info::scoped_switch_fork_info)
10239 (checkpoint_command, linux_fork_context): Adjust
10240 fork_save_infrun_state calls.
10241
e52c971f
PA
102422019-03-06 Pedro Alves <palves@redhat.com>
10243
10244 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
10245 (inf_has_multiple_threads): Return 'bool' and rewrite using
10246 inferior_info::threads().
10247
06974e6c
PA
102482019-03-06 Pedro Alves <palves@redhat.com>
10249
10250 * linux-fork.c: Include <list>.
10251 (fork_list): Now a std::list instance.
10252 (fork_info): Add ctor, dtor, and in-class initialize all fields.
10253 (forks_exist_p, find_last_fork): Adjust.
10254 (new_fork): Delete.
10255 (one_fork_p): New.
10256 (add_fork): Adjust.
10257 (free_fork): Delete, folded into fork_info::~fork_info().
10258 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
10259 Adjust.
10260 (init_fork_list): Delete.
10261 (linux_fork_killall, linux_fork_mourn_inferior)
10262 (linux_fork_detach, info_checkpoints_command): Adjust.
10263 (_initialize_linux_fork): No longer call init_fork_list.
10264
72f31aea
PA
102652019-03-06 Pedro Alves <palves@redhat.com>
10266
10267 * linux-fork.c (new_fork): New, split out of ...
10268 (add_fork): ... this. Return void. Move "first fork" special
10269 case from here, to ...
10270 (checkpoint_command): ... here.
10271 * linux-linux.h (add_fork): Return void.
10272
efbecbc1
AB
102732019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10274
10275 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
10276
0841c79a
AB
102772019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10278 Chris January <chris.january@arm.com>
10279 David Lecomber <david.lecomber@arm.com>
10280
10281 * f-exp.y: New token, UNOP_INTRINSIC.
10282 (exp): New pattern using UNOP_INTRINSIC token.
10283 (f77_keywords): Add 'abs' keyword.
10284 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
10285 (value_from_host_double): New function.
10286 (evaluate_subexp_f): Support UNOP_ABS.
10287
4a270568
AB
102882019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10289
10290 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
10291 types.
10292
067630bd
AB
102932019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10294
10295 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
10296 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
10297 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
10298
3be47f7a
AB
102992019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10300
10301 * f-exp.y (convert_to_kind_type): Handle more type kinds.
10302
4d00f5d8
AB
103032019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10304 Chris January <chris.january@arm.com>
10305
10306 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
10307 * f-exp.y: Define 'KIND' token.
10308 (exp): New pattern for KIND expressions.
10309 (ptype): Handle types with a kind extension.
10310 (direct_abs_decl): Extend to spot kind extensions.
10311 (f77_keywords): Add 'kind' to the list.
10312 (push_kind_type): New function.
10313 (convert_to_kind_type): New function.
10314 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
10315 * parse.c (operator_length_standard): Likewise.
10316 * parser-defs.h (enum type_pieces): Add tp_kind.
10317 * std-operator.def: Add UNOP_KIND.
10318
e454224f
AB
103192019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10320
10321 * f-exp.y (f_parse): Set yydebug.
10322
9dad4a58
AB
103232019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10324
10325 * f-lang.c (evaluate_subexp_f): New function.
10326 (exp_descriptor_f): New global.
10327 (f_language_defn): Use exp_descriptor_f instead of
10328 exp_descriptor_standard.
10329
c8f91604
AB
103302019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10331
10332 * f-exp.y (struct token): Add comments.
10333 (dot_ops): Remove uppercase versions and the end marker.
10334 (f77_keywords): Likewise.
10335 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
10336 entries in the dot_ops array are case insensitive, and use
10337 strncasecmp to compare strings. Also some whitespace cleanup in
10338 this area. Similar for the f77_keywords array, except entries in
10339 this list might be case sensitive.
10340
dd9f2c76
AB
103412019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10342
10343 * f-exp.y (struct f77_boolean_val): Add comments.
10344 (boolean_values): Remove uppercase versions, and end marker.
10345 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
10346 and use strncasecmp to achieve case insensitivity. Additionally,
10347 perform whitespace cleanup around this code.
10348
67a3048c
TT
103492019-03-06 Tom Tromey <tromey@adacore.com>
10350
10351 * remote-sim.c (gdbsim_target_open): Use result of
10352 gdb_argv::release.
10353
aa3cfbda
RB
103542019-03-06 Richard Bunt <richard.bunt@arm.com>
10355 Dirk Schubert <dirk.schubert@arm.com>
10356 Chris January <chris.january@arm.com>
10357
10358 * eval.c (evaluate_subexp_standard): Call Fortran argument
10359 wrapping logic.
10360 * f-lang.c (struct value): A value which can be passed into a
10361 Fortran function call.
10362 (fortran_argument_convert): Wrap Fortran arguments in a pointer
10363 where appropriate.
10364 (struct type): Value ready for a Fortran function call.
10365 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
10366 is needed.
10367 * f-lang.h (fortran_argument_convert): Declaration.
10368 (fortran_preserve_arg_pointer): Declaration.
10369 * infcall.c (value_arg_coerce): Call Fortran argument logic.
10370
ea38e5df
TT
103712019-03-05 Tom Tromey <tromey@adacore.com>
10372
10373 * python/py-prettyprint.c (print_string_repr): Remove #if.
10374 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
10375
06b5b831
TT
103762019-03-05 Tom Tromey <tromey@adacore.com>
10377
10378 * target.c (the_dummy_target): Move later. Change type to
10379 "dummy_target".
10380 (initialize_targets): Don't initialize the_dummy_target.
10381
edbd9e45
TT
103822019-03-05 Tom Tromey <tromey@adacore.com>
10383
10384 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
10385 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
10386
c119e040
TT
103872019-03-05 Tom Tromey <tromey@adacore.com>
10388
10389 * windows-nat.c (windows_nat_target::attach)
10390 (windows_nat_target::detach): Don't call gdb_flush.
10391 * valprint.c (generic_val_print, val_print, val_print_string):
10392 Don't call gdb_flush.
10393 * utils.c (defaulted_query): Don't call gdb_flush.
10394 * typeprint.c (print_type_scalar): Don't call gdb_flush.
10395 * target.c (target_announce_detach): Don't call gdb_flush.
10396 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
10397 * remote.c (extended_remote_target::attach): Don't call
10398 gdb_flush.
10399 * procfs.c (procfs_target::detach): Don't call gdb_flush.
10400 * printcmd.c (do_examine): Don't call gdb_flush.
10401 (info_display_command): Don't call gdb_flush.
10402 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
10403 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
10404 * memattr.c (info_mem_command): Don't call gdb_flush.
10405 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
10406 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
10407 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
10408 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
10409 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
10410 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
10411 (gnu_nat_target::detach): Don't call gdb_flush.
10412 * f-valprint.c (f_val_print): Don't call gdb_flush.
10413 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
10414 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
10415 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
10416 gdb_flush.
10417 * c-valprint.c (c_val_print): Don't call gdb_flush.
10418 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
10419
895dafa6
TT
104202019-03-05 Tom Tromey <tromey@adacore.com>
10421
10422 * varobj.c (update_dynamic_varobj_children): Update.
10423 (install_default_visualizer): Use reset, not release.
10424 * value.c (set_internalvar): Update.
10425 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
10426 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
10427 ATTRIBUTE_UNUSED_RESULT.
10428
88a774b9
TT
104292019-03-05 Tom Tromey <tromey@adacore.com>
10430
10431 * remote.c (class scoped_remote_fd) <release>: Add
10432 ATTRIBUTE_UNUSED_RESULT.
10433
4e4a8b93
TT
104342019-03-05 Tom Tromey <tromey@adacore.com>
10435
10436 * macroexp.c (struct macro_buffer) <release>: Add
10437 ATTRIBUTE_UNUSED_RESULT.
10438
083eef1f
TT
104392019-03-05 Tom Tromey <tromey@adacore.com>
10440
10441 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
10442 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
10443 ATTRIBUTE_UNUSED_RESULT.
10444
3cabd438
TT
104452019-03-05 Tom Tromey <tromey@adacore.com>
10446
10447 * common/scoped_fd.h (class scoped_fd) <release>: Add
10448 ATTRIBUTE_UNUSED_RESULT.
10449
41e3300a
TT
104502019-03-05 Tom Tromey <tromey@adacore.com>
10451
10452 * parser-defs.h (struct parser_state) <release>: Add
10453 ATTRIBUTE_UNUSED_RESULT.
10454
18cb7c9f
TT
104552019-03-05 Tom Tromey <tromey@adacore.com>
10456
10457 * utils.h (class gdb_argv) <release>: Add
10458 ATTRIBUTE_UNUSED_RESULT.
10459 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
10460
41fa577f
EZ
104612019-03-02 Eli Zaretskii <eliz@gnu.org>
10462
a6a4b2c6
EZ
10463 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
10464 for-loop range, to avoid compiler warnings.
10465
10466 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
10467 avoid compiler warnings about unused variables.
10468
742a7df5
EZ
10469 * NEWS: Mention end of support for native debugging on MS-Windows
10470 before XP.
10471
41fa577f
EZ
10472 PR gdb/24292
10473 * common/netstuff.c:
10474 * gdbserver/gdbreplay.c
10475 * gdbserver/remote-utils.c:
10476 * ser-tcp.c:
10477 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
10478 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
10479 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
10480 'getaddrinfo' and 'freeaddrinfo' were not available before
10481 Windows XP, and mingw.org's MinGW headers by default define
10482 _WIN32_WINNT to 0x500.
10483
827f438f
GB
104842019-03-01 Gary Benson <gbenson@redhat.com>
10485
10486 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
10487
92137da0
RO
104882019-02-28 Brian Vandenberg <phantall@gmail.com>
10489 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10490
10491 PR gdb/8527
10492 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
10493 set_sigint_trap, clear_sigint_trap.
10494
799efbe8
PW
104952019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10496
10497 * target.c (target_detach): Clear the regcache and the
10498 frame cache.
10499
8ed25214
PA
105002019-02-27 Pedro Alves <palves@redhat.com>
10501
10502 * utils.c (set_screen_size): When we cap the height/width sizes,
10503 tweak the corresponding command variable to show "unlimited":
10504
23031e31
SJ
105052019-02-27 Saagar Jha <saagar@saagarjha.com>
10506 Pedro Alves <palves@redhat.com>
10507
10508 * utils.c (set_screen_size): Reduce "infinite" rows and columns
10509 before calling rl_set_screen_size.
10510
6c28e44a
TT
105112019-02-27 Tom Tromey <tromey@adacore.com>
10512
10513 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
10514 define.
10515 * python/py-value.c: Remove Python 2.4 workaround.
10516 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
10517 workaround.
10518 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
10519 Python 2.4 workaround.
10520 * python/python-internal.h: Remove Python 2.4 comment.
10521 (Py_ssize_t): Don't define.
10522 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
10523 (gdb_Py_DECREF): Remove Python 2.4 workaround.
10524 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
10525 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
10526 * python/python.c (do_start_initialization): Remove Python 2.4
10527 workaround.
10528 * python/py-prettyprint.c (class dummy_python_frame): Remove.
10529 (print_children): Remove Python 2.4 workaround.
10530 * python/py-inferior.c (buffer_procs): Remove Python 2.4
10531 workaround.
10532 (CHARBUFFERPROC_NAME): Remove.
10533 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
10534 Python 2.4 workaround.
10535
2c3fc25d 105362019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 10537
2c3fc25d
KB
10538 * NEWS: Note minimum Python version.
10539
6ca62222
KB
105402019-02-27 Kevin Buettner <kevinb@redhat.com>
10541
10542 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
10543 code from these functions. Remove corresponding ifdefs. Use
10544 Py_buffer_up instead of explicit calls to PyBuffer_Release.
10545 Remove gotos and target of gotos.
10546 (infpy_search_memory): Likewise.
10547
f4bc7d2c
AB
105482019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10549
10550 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
10551 (hppa_gdbarch_init): Don't register deleted functions with
10552 gdbarch.
10553
9734a586
AB
105542019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10555
10556 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
10557 (h8300_unwind_sp): Delete.
10558 (h8300_dummy_id): Delete.
10559 (h8300_gdbarch_init): Don't register deleted functions with
10560 gdbarch.
10561
68b867f3
AB
105622019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10563
10564 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
10565 (ft32_unwind_pc): Delete.
10566 (ft32_unwind_sp): Delete.
10567 (ft32_gdbarch_init): Don't register deleted functions with
10568 gdbarch.
10569
2fbe7ad0
AB
105702019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10571
10572 * gdb/frv-tdep.c (frv_dummy_id): Delete.
10573 (frv_unwind_pc): Delete.
10574 (frv_unwind_sp): Delete.
10575 (frv_gdbarch_init): Don't register deleted functions with
10576 gdbarch.
10577
76055cbe
AB
105782019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10579
10580 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
10581 (riscv_unwind_pc): Delete.
10582 (riscv_unwind_sp): Delete.
10583 (riscv_gdbarch_init): Don't register deleted functions with
10584 gdbarch.
10585
4133e5a1
AB
105862019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10587
10588 * gdb/csky-tdep.c (csky_dummy_id): Delete.
10589 (csky_unwind_pc): Delete.
10590 (csky_unwind_sp): Delete.
10591 (csky_gdbarch_init): Don't register deleted functions with
10592 gdbarch.
10593
8010f576
AB
105942019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10595
10596 * gdb/cris-tdep.c (cris_dummy_id): Delete.
10597 (cris_unwind_pc): Delete.
10598 (cris_unwind_sp): Delete.
10599 (cris_gdbarch_init): Don't register deleted functions with
10600 gdbarch.
10601
b56bf084
AB
106022019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10603
10604 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
10605 (bfin_unwind_pc): Delete.
10606 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
10607
a19a650f
AB
106082019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10609
10610 * gdb/arm-tdep.c (arm_dummy_id): Delete.
10611 (arm_unwind_pc): Delete.
10612 (arm_unwind_sp): Delete.
10613 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
10614
f8278c3c
AB
106152019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10616
10617 * gdb/arc-tdep.c (arc_dummy_id): Delete.
10618 (arc_unwind_pc): Delete.
10619 (arc_unwind_sp): Delete.
10620 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
10621
480e46cf
AB
106222019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10623
10624 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
10625 (alpha_unwind_pc): Delete.
10626 (alpha_gdbarch_init): Don't register deleted functions with
10627 gdbarch.
10628
7a995095
AB
106292019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10630
10631 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
10632 (aarch64_unwind_pc): Delete.
10633 (aarch64_unwind_sp): Delete.
10634 (aarch64_gdbarch_init): Don't register deleted functions with
10635 gdbarch.
10636
bf9a735e
AB
106372019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10638
10639 * gdbtypes.c (type_align): Don't consider static members when
10640 computing structure alignment.
10641
5561fc30
AB
106422019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10643
10644 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
10645 return 0 for other types.
10646 * arch-utils.c (default_type_align): Always return 0.
10647 * gdbarch.h: Regenerate.
10648 * gdbarch.sh (type_align): Extend comment.
10649 * gdbtypes.c (type_align): Add additional comments, always call
10650 gdbarch_type_align before applying the default rules.
10651 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
10652 generic code will then apply a suitable default.
10653 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
10654 types, return 0 for other types.
10655
9335e75a
JB
106562019-02-27 Joel Brobecker <brobecker@adacore.com>
10657
10658 * NEWS: Create a new section for the next release branch.
10659 Rename the section of the current branch, now that it has
10660 been cut.
10661
3d34d8de
JB
106622019-02-27 Joel Brobecker <brobecker@adacore.com>
10663
10664 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
10665 * version.in: Bump version to 8.3.50.DATE-git.
10666
143420fb
SM
106672019-02-26 Simon Marchi <simon.marchi@efficios.com>
10668
10669 * aix-thread.c (ptid_cmp): Remove unused variable.
10670 (get_signaled_thread): Likewise.
10671 (store_regs_user_thread): Likewise.
10672 (store_regs_kernel_thread): Likewise.
10673 (fetch_regs_kernel_thread): Remove shadowed variable.
10674
172fb711
AB
106752019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
10676
10677 * features/riscv/32bit-cpu.xml: Add register numbers.
10678 * features/riscv/32bit-fpu.c: Regenerate.
10679 * features/riscv/32bit-fpu.xml: Add register numbers.
10680 * features/riscv/64bit-cpu.xml: Add register numbers.
10681 * features/riscv/64bit-fpu.c: Regenerate.
10682 * features/riscv/64bit-fpu.xml: Add register numbers.
10683
26c89782
KB
106842019-02-26 Kevin Buettner <kevinb@redhat.com>
10685
af54ade9 10686 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
10687 * python/py-value.c (convert_buffer_and_type_to_value): New
10688 function.
10689 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
10690 Add support for handling an optional second argument. Call
10691 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
10692 * python/python-internal.h (Py_buffer_deleter): New struct.
10693 (Py_buffer_up): New typedef.
10694
0f58c9e8
JB
106952019-02-25 John Baldwin <jhb@FreeBSD.org>
10696
10697 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
10698 instead of releasing ownership.
10699
0a0f4c01
JR
107002019-02-25 Jordan Rupprecht <rupprecht@google.com>
10701
10702 * dwarf2read.c (open_and_init_dwp_file): Call
10703 elf_numsections instead of bfd_count_sections to initialize
10704 dwp_file->num_sections.
10705
cd5a152c
TT
107062019-02-25 Tom Tromey <tromey@adacore.com>
10707
10708 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
10709
8a6a8513
SDJ
107102019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
10711
10712 * gcore.in: Add '--readnever' option when invoking GDB.
10713
04dcda9c
SM
107142019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10715
10716 * MAINTAINERS: Update my email address.
10717
07bc701d
SM
107182019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10719
10720 * build-id.c (build_id_to_debug_bfd_1): New function.
10721 (build_id_to_debug_bfd): Look for separate debug file in
10722 sysroot.
10723
c6f4a5d0
AB
107242019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
10725
10726 * gdbarch.sh: Update the copyright year range that is placed into
10727 generated files.
10728
9600246d
KS
107292019-02-22 Keith Seitz <keiths@redhat.com>
10730
10731 PR symtab/23853
10732 * linespec.c (create_sals_line_offset): Search for the default
10733 symtab's filename instead of its fullname.
10734
7557a514
AH
107352019-02-21 Alan Hayward <alan.hayward@arm.com>
10736
10737 * NEWS: Update style defaults.
10738
ee2bcb0c
AH
107392019-02-21 Alan Hayward <alan.hayward@arm.com>
10740
10741 * main.c (captured_main_1): Disable styling in batch mode.
10742
0c95f9ed
TT
107432019-02-20 Tom Tromey <tom@tromey.com>
10744
10745 * symtab.c (symtab_symbol_info): Fix typos.
10746
c763b894
TT
107472019-02-20 Tom Tromey <tromey@adacore.com>
10748
10749 * findcmd.c (_initialize_mem_search): Use upper case for
10750 metasyntactic variables.
10751
0ef8a082
AH
107522019-02-20 Alan Hayward <alan.hayward@arm.com>
10753
10754 * aarch64-tdep.c (aarch64_add_reggroups): New function.
10755 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
10756
6caa91b6
SM
107572019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
10758
10759 * top.h (source_file_name): Change to std::string.
10760 * top.c (source_file_name): Likewise.
10761 (command_line_input): Adjust.
10762 * cli/cli-script.c (script_from_file): Adjust.
10763
98814c6c
TT
107642019-02-19 Tom Tromey <tromey@adacore.com>
10765
10766 * ravenscar-thread.c
10767 (ravenscar_thread_target::update_thread_list): Don't call
10768 ada_build_task_list.
10769 * ada-lang.h (ada_build_task_list): Don't declare.
10770 * ada-tasks.c (struct ada_tasks_inferior_data)
10771 <task_list_valid_p>: Now bool.
10772 (read_known_tasks, ada_task_list_changed)
10773 (ada_tasks_invalidate_inferior_data): Update.
10774 (read_known_tasks_array): Return bool.
10775 (read_known_tasks_list): Likewise.
10776 (read_known_tasks): Return void.
10777 (ada_build_task_list): Now static.
10778
70cd633e
AB
107792019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
10780
10781 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
10782 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
10783
040b3e95
PW
107842019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10785
10786 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
10787 variant for ada_tasks_pspace_data_handle and
10788 ada_tasks_inferior_data_handle.
10789 (ada_tasks_pspace_data_cleanup): New function.
10790 (ada_tasks_inferior_data_cleanup): New function.
10791
9409233b
TT
107922019-02-17 Tom Tromey <tom@tromey.com>
10793
10794 * macrotab.h (macro_source_fullname): Return a std::string.
10795 * macrotab.c (macro_include, check_for_redefinition)
10796 (macro_undef, macro_lookup_definition, foreach_macro)
10797 (foreach_macro_in_scope): Update.
10798 (macro_source_fullname): Return a std::string.
10799 * macrocmd.c (show_pp_source_pos): Update.
10800
6506371f
TT
108012019-02-17 Tom Tromey <tom@tromey.com>
10802
10803 * macrocmd.c (show_pp_source_pos): Style the file names.
10804
0c820d67
TT
108052019-02-17 Tom Tromey <tom@tromey.com>
10806
10807 PR tui/24197:
10808 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
10809
a0087920
TT
108102019-02-17 Tom Tromey <tom@tromey.com>
10811
10812 * ada-lang.c (user_select_syms): Use filtered printing.
10813 * utils.c (wrap_style): New global.
10814 (desired_style): Remove.
10815 (emit_style_escape): Add stream parameter.
10816 (set_output_style, reset_terminal_style, prompt_for_continue):
10817 Update.
10818 (flush_wrap_buffer): Only flush gdb_stdout.
10819 (wrap_here): Set wrap_style.
10820 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
10821 treat escape sequences as a character. Change when wrap buffer is
10822 flushed.
10823 (fputs_styled): Do not set the output style when the default is
10824 requested.
10825 * ui-style.h (struct ui_file_style) <is_default>: New method.
10826 * source.c (print_source_lines_base): Emit escape sequences in one
10827 piece.
10828
75ba10dc
JB
108292019-02-17 Joel Brobecker <brobecker@adacore.com>
10830
10831 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
10832 integers and enumeration types.
10833
a2cd4f14
JB
108342019-02-17 Joel Brobecker <brobecker@adacore.com>
10835
10836 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
10837 instead of lookup_symbol_in_language
10838 (do_exact_match): New function.
10839 (ada_get_symbol_name_matcher): Return do_exact_match when
10840 doing a verbatim match.
10841
485b851b
TT
108422019-02-15 Tom Tromey <tromey@adacore.com>
10843
10844 * ravenscar-thread.c (ravenscar_thread_target::resume)
10845 (ravenscar_thread_target::wait): Special case wildcard requests.
10846
0b790b1e
TT
108472019-02-15 Tom Tromey <tromey@adacore.com>
10848
10849 * ravenscar-thread.c (base_ptid): Remove.
10850 (struct ravenscar_thread_target) <close>: New method.
10851 <m_base_ptid>: New member.
10852 <update_inferior_ptid, active_task, task_is_currently_active,
10853 runtime_initialized>: Declare methods.
10854 <ravenscar_thread_target>: Add constructor.
10855 (ravenscar_thread_target::task_is_currently_active)
10856 (ravenscar_thread_target::update_inferior_ptid)
10857 (ravenscar_runtime_initialized): Rename. Now methods.
10858 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
10859 (ravenscar_thread_target::update_thread_list): Update.
10860 (ravenscar_thread_target::active_task): Now method.
10861 (ravenscar_thread_target::store_registers)
10862 (ravenscar_thread_target::prepare_to_store)
10863 (ravenscar_thread_target::prepare_to_store)
10864 (ravenscar_thread_target::mourn_inferior): Update.
10865 (ravenscar_inferior_created): Use "new" to create target.
10866 (ravenscar_thread_target::get_ada_task_ptid): Update.
10867 (_initialize_ravenscar): Don't initialize base_ptid.
10868 (ravenscar_ops): Remove global.
10869
dea57a62
TT
108702019-02-15 Tom Tromey <tromey@adacore.com>
10871
10872 * target.h (push_target): Declare new overload.
10873 * target.c (push_target): New overload, taking an rvalue reference.
10874 * remote.c (remote_target::open_1): Use push_target overload.
10875 * corelow.c (core_target_open): Use push_target overload.
10876
989f3c58
TT
108772019-02-15 Tom Tromey <tromey@adacore.com>
10878
10879 * ravenscar-thread.c (is_ravenscar_task)
10880 (ravenscar_task_is_currently_active): Return bool.
10881 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
10882 (_initialize_ravenscar): Remove "(void)".
10883 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
10884 Return bool.
10885
6cbcc006
TT
108862019-02-15 Tom Tromey <tromey@adacore.com>
10887
10888 * ravenscar-thread.c (ravenscar_runtime_initializer)
10889 (has_ravenscar_runtime, get_running_thread_id)
10890 (ravenscar_thread_target::resume): Fix indentation.
10891
7657f14d
TT
108922019-02-15 Tom Tromey <tromey@adacore.com>
10893
10894 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
10895 from ravenscar_arch_ops.
10896 (sparc_ravenscar_ops::fetch_registers)
10897 (sparc_ravenscar_ops::store_registers): Now methods.
10898 (sparc_ravenscar_prepare_to_store): Remove.
10899 (sparc_ravenscar_ops): Redefine.
10900 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
10901 methods and destructor. Remove members.
10902 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
10903 (ravenscar_thread_target::store_registers)
10904 (ravenscar_thread_target::prepare_to_store): Update.
10905 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
10906 Remove.
10907 (struct ppc_ravenscar_powerpc_ops): Derive from
10908 ravenscar_arch_ops.
10909 (ppc_ravenscar_powerpc_ops::fetch_registers)
10910 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
10911 (ppc_ravenscar_powerpc_ops): Redefine.
10912 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
10913 (ppc_ravenscar_e500_ops::fetch_registers)
10914 (ppc_ravenscar_e500_ops::store_registers): Now methods.
10915 (ppc_ravenscar_e500_ops): Redefine.
10916 * aarch64-ravenscar-thread.c
10917 (aarch64_ravenscar_generic_prepare_to_store): Remove.
10918 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
10919 (aarch64_ravenscar_fetch_registers)
10920 (aarch64_ravenscar_store_registers): Now methods.
10921 (aarch64_ravenscar_ops): Redefine.
10922
5b6ea500
TT
109232019-02-15 Tom Tromey <tromey@adacore.com>
10924
10925 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
10926 (ravenscar_thread_target::stopped_by_hw_breakpoint)
10927 (ravenscar_thread_target::stopped_by_watchpoint)
10928 (ravenscar_thread_target::stopped_data_address)
10929 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
10930
e397fd39
TT
109312019-02-15 Tom Tromey <tromey@adacore.com>
10932
10933 * ravenscar-thread.c: Fix some typos.
10934
cc12f4a8
TT
109352019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10936 Tom Tromey <tromey@adacore.com>
10937
10938 * ada-lang.c (ada_exception_sal): Change addr_string to a
10939 std::string.
10940 (create_ada_exception_catchpoint): Update.
10941
5f486660
TT
109422019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10943 Tom Tromey <tromey@adacore.com>
10944
10945 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
10946 (bp_location_ops): Remove.
10947 (base_breakpoint_allocate_location): Update.
10948 (free_bp_location): Update.
10949 * ada-lang.c (class ada_catchpoint_location)
10950 <ada_catchpoint_location>: Remove ops parameter.
10951 (ada_catchpoint_location_dtor): Remove.
10952 (ada_catchpoint_location_ops): Remove.
10953 (allocate_location_exception): Update.
10954 * breakpoint.h (struct bp_location_ops): Remove.
10955 (class bp_location) <bp_location>: Remove bp_location_ops
10956 parameter.
10957 <~bp_location>: Add destructor.
10958 <ops>: Remove.
10959
b671c7fb
TS
109602019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10961 Pedro Alves <palves@redhat.com>
10962
10963 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
10964 'PATH_MAX'.
10965
8071c5ce
DM
109662019-02-14 David Michael <fedora.dm0@gmail.com>
10967 Samuel Thibault <samuel.thibault@gnu.org>
10968 Thomas Schwinge <thomas@codesourcery.com>
10969
10970 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
10971 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
10972
b1041ae0
TS
109732019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10974
924514e1
TS
10975 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
10976 (check_empty): Use "const char *".
10977
c29ee8d4
TS
10978 * gnu-nat.c (gnu_nat_target::detach): Instead of
10979 'detach_inferior (pid)' call
10980 'detach_inferior (find_inferior_pid (pid))'.
10981
6c6ef69f
TS
10982 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
10983 'nat/fork-inferior.o'.
10984 * gnu-nat.c: #include "nat/fork-inferior.h".
10985
2d0a338c
TS
10986 * gnu-nat.c (gnu_nat_target::detach): Instead of
10987 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
10988 * gnu-nat.h: #include "inf-child.h".
10989 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
10990 'i386_gnu_nat_target::fetch_registers'.
10991 (gnu_store_registers): Rename/move to
10992 'i386_gnu_nat_target::store_registers'.
10993
cabb5f06
TS
10994 * config/i386/nm-i386gnu.h: Don't "#include" any files.
10995 * gnu-nat.h (mach_thread_info): New function.
10996 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
10997
b1041ae0
TS
10998 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
10999
2988d01e
KF
110002019-02-14 Frederic Konrad <konrad@adacore.com>
11001
11002 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
11003
c559d709
JB
110042019-02-14 Joel Brobecker <brobecker@adacore.com>
11005
11006 * windows-nat.c (windows_add_thread): Add new parameter
11007 "main_thread_p" with default value set to false. Update
11008 function documentation as well as all callers.
11009 (windows_delete_thread): Likewise.
11010 (fake_create_process): Update call to windows_add_thread.
11011 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
11012 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
11013 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
11014 call to windows_delete_thread.
11015
007024cc
SM
110162019-02-13 Simon Marchi <simon.marchi@ericsson.com>
11017
11018 * MAINTAINERS: Add Andrew Burgess as global maintainer.
11019
f62318e9
JB
110202019-02-12 John Baldwin <jhb@FreeBSD.org>
11021
11022 * symfile.c (find_separate_debug_file): Use canonical path of
11023 sysroot with child_path instead of gdb_sysroot if it is valid.
11024
cd4b7848
JB
110252019-02-12 John Baldwin <jhb@FreeBSD.org>
11026
11027 * symfile.c (find_separate_debug_file): Use child_path to
11028 determine if an object file is under a sysroot.
11029
efac4bfe
JB
110302019-02-12 John Baldwin <jhb@FreeBSD.org>
11031
11032 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11033 unittests/child-path-selftests.c.
11034 * common/pathstuff.c (child_path): New function.
11035 * common/pathstuff.h (child_path): New prototype.
11036 * unittests/child-path-selftests.c: New file.
11037
402d2bfe
JB
110382019-02-12 John Baldwin <jhb@FreeBSD.org>
11039
11040 * symfile.c (find_separate_debug_file): Look for separate debug
11041 files in debug directories under the sysroot.
11042
1ed9f74e
PW
110432019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11044
11045 * symtab.h (struct minimal_symbol data_p): New const method.
11046 (struct minimal_symbol text_p): Likewise.
11047 * symtab.c (output_source_filename): Use file name style
11048 to print file name.
11049 (print_symbol_info): Likewise.
11050 (print_msymbol_info): Use address style to print addresses.
11051 Use function name style to print executable text symbols.
11052 (expand_symtab_containing_pc): Use data_p.
11053 (find_pc_sect_compunit_symtab): Likewise.
11054
2636d81d
PW
110552019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11056
11057 * breakpoint.c (describe_other_breakpoints): Use address style
11058 to print addresses.
11059 (say_where): Likewise.
11060
ac8c53cc
PW
110612019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11062
11063 * ada-typeprint.c (print_func_type): Print function name
11064 style to print function name.
11065 * c-typeprint.c (c_print_type_1): Likewise.
11066
ea638c43
AH
110672019-02-11 Alan Hayward <alan.hayward@arm.com>
11068
11069 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
11070 for execve.
11071
ab759ca8
PW
110722019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11073
11074 * c-exp.y (direct_abs_decl): Use emplace_back to record the
11075 type_stack.
11076
aff29d1c
JB
110772019-02-10 Joel Brobecker <brobecker@adacore.com>
11078
11079 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
11080 TYPE_CODE_REF types.
11081
617126bc
JW
110822019-02-08 Jim Wilson <jimw@sifive.com>
11083
11084 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
11085 (riscv_linux_fregset): New.
11086 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
11087
46e3ed7f
TT
110882019-02-07 Tom Tromey <tom@tromey.com>
11089
11090 * thread.c (thread_cancel_execution_command): Update.
11091 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
11092 methods.
11093 (struct thread_fsm_ops): Remove.
11094 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
11095 (thread_fsm_should_stop, thread_fsm_return_value)
11096 (thread_fsm_set_finished, thread_fsm_finished_p)
11097 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
11098 Don't declare.
11099 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
11100 * infrun.c (clear_proceed_status_thread)
11101 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
11102 (print_stop_event): Update.
11103 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
11104 Add constructor.
11105 (step_command_fsm_ops): Remove.
11106 (new_step_command_fsm): Remove.
11107 (step_1): Update.
11108 (step_command_fsm::should_stop): Rename from
11109 step_command_fsm_should_stop.
11110 (step_command_fsm::clean_up): Rename from
11111 step_command_fsm_clean_up.
11112 (step_command_fsm::do_async_reply_reason): Rename from
11113 step_command_fsm_async_reply_reason.
11114 (struct until_next_fsm): Inherit from thread_fsm. Add
11115 constructor.
11116 (until_next_fsm_ops): Remove.
11117 (new_until_next_fsm): Remove.
11118 (until_next_fsm::should_stop): Rename from
11119 until_next_fsm_should_stop.
11120 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
11121 (until_next_fsm::do_async_reply_reason): Rename from
11122 until_next_fsm_async_reply_reason.
11123 (struct finish_command_fsm): Inherit from thread_fsm. Add
11124 constructor. Change type of breakpoint.
11125 (finish_command_fsm_ops): Remove.
11126 (new_finish_command_fsm): Remove.
11127 (finish_command_fsm::should_stop): Rename from
11128 finish_command_fsm_should_stop.
11129 (finish_command_fsm::clean_up): Rename from
11130 finish_command_fsm_clean_up.
11131 (finish_command_fsm::return_value): Rename from
11132 finish_command_fsm_return_value.
11133 (finish_command_fsm::do_async_reply_reason): Rename from
11134 finish_command_fsm_async_reply_reason.
11135 (finish_command): Update.
11136 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
11137 Add constructor.
11138 (call_thread_fsm_ops): Remove.
11139 (call_thread_fsm::call_thread_fsm): Rename from
11140 new_call_thread_fsm.
11141 (call_thread_fsm::should_stop): Rename from
11142 call_thread_fsm_should_stop.
11143 (call_thread_fsm::should_notify_stop): Rename from
11144 call_thread_fsm_should_notify_stop.
11145 (run_inferior_call, call_function_by_hand_dummy): Update.
11146 * cli/cli-interp.c (should_print_stop_to_console): Update.
11147 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
11148 Add constructor. Change type of location_breakpoint,
11149 caller_breakpoint.
11150 (until_break_fsm_ops): Remove.
11151 (new_until_break_fsm): Remove.
11152 (until_break_fsm::should_stop): Rename from
11153 until_break_fsm_should_stop.
11154 (until_break_fsm::clean_up): Rename from
11155 until_break_fsm_clean_up.
11156 (until_break_fsm::do_async_reply_reason): Rename from
11157 until_break_fsm_async_reply_reason.
11158 (until_break_command): Update.
11159 * thread-fsm.c: Remove.
11160 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
11161
1a5c2598
TT
111622019-02-07 Tom Tromey <tom@tromey.com>
11163
11164 * yy-remap.h: Add include guard.
11165 * xtensa-tdep.h: Add include guard.
11166 * xcoffread.h: Rename include guard.
11167 * varobj-iter.h: Add include guard.
11168 * tui/tui.h: Rename include guard.
11169 * tui/tui-winsource.h: Rename include guard.
11170 * tui/tui-wingeneral.h: Rename include guard.
11171 * tui/tui-windata.h: Rename include guard.
11172 * tui/tui-win.h: Rename include guard.
11173 * tui/tui-stack.h: Rename include guard.
11174 * tui/tui-source.h: Rename include guard.
11175 * tui/tui-regs.h: Rename include guard.
11176 * tui/tui-out.h: Rename include guard.
11177 * tui/tui-layout.h: Rename include guard.
11178 * tui/tui-io.h: Rename include guard.
11179 * tui/tui-hooks.h: Rename include guard.
11180 * tui/tui-file.h: Rename include guard.
11181 * tui/tui-disasm.h: Rename include guard.
11182 * tui/tui-data.h: Rename include guard.
11183 * tui/tui-command.h: Rename include guard.
11184 * tic6x-tdep.h: Add include guard.
11185 * target/waitstatus.h: Rename include guard.
11186 * target/wait.h: Rename include guard.
11187 * target/target.h: Rename include guard.
11188 * target/resume.h: Rename include guard.
11189 * target-float.h: Rename include guard.
11190 * stabsread.h: Add include guard.
11191 * rs6000-tdep.h: Add include guard.
11192 * riscv-fbsd-tdep.h: Add include guard.
11193 * regformats/regdef.h: Rename include guard.
11194 * record.h: Rename include guard.
11195 * python/python.h: Rename include guard.
11196 * python/python-internal.h: Rename include guard.
11197 * python/py-stopevent.h: Rename include guard.
11198 * python/py-ref.h: Rename include guard.
11199 * python/py-record.h: Rename include guard.
11200 * python/py-record-full.h: Rename include guard.
11201 * python/py-record-btrace.h: Rename include guard.
11202 * python/py-instruction.h: Rename include guard.
11203 * python/py-events.h: Rename include guard.
11204 * python/py-event.h: Rename include guard.
11205 * procfs.h: Add include guard.
11206 * proc-utils.h: Add include guard.
11207 * p-lang.h: Add include guard.
11208 * or1k-tdep.h: Rename include guard.
11209 * observable.h: Rename include guard.
11210 * nto-tdep.h: Rename include guard.
11211 * nat/x86-linux.h: Rename include guard.
11212 * nat/x86-linux-dregs.h: Rename include guard.
11213 * nat/x86-gcc-cpuid.h: Add include guard.
11214 * nat/x86-dregs.h: Rename include guard.
11215 * nat/x86-cpuid.h: Rename include guard.
11216 * nat/ppc-linux.h: Rename include guard.
11217 * nat/mips-linux-watch.h: Rename include guard.
11218 * nat/linux-waitpid.h: Rename include guard.
11219 * nat/linux-ptrace.h: Rename include guard.
11220 * nat/linux-procfs.h: Rename include guard.
11221 * nat/linux-osdata.h: Rename include guard.
11222 * nat/linux-nat.h: Rename include guard.
11223 * nat/linux-namespaces.h: Rename include guard.
11224 * nat/linux-btrace.h: Rename include guard.
11225 * nat/glibc_thread_db.h: Rename include guard.
11226 * nat/gdb_thread_db.h: Rename include guard.
11227 * nat/gdb_ptrace.h: Rename include guard.
11228 * nat/fork-inferior.h: Rename include guard.
11229 * nat/amd64-linux-siginfo.h: Rename include guard.
11230 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
11231 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
11232 * nat/aarch64-linux.h: Rename include guard.
11233 * nat/aarch64-linux-hw-point.h: Rename include guard.
11234 * mn10300-tdep.h: Add include guard.
11235 * mips-linux-tdep.h: Add include guard.
11236 * mi/mi-parse.h: Rename include guard.
11237 * mi/mi-out.h: Rename include guard.
11238 * mi/mi-main.h: Rename include guard.
11239 * mi/mi-interp.h: Rename include guard.
11240 * mi/mi-getopt.h: Rename include guard.
11241 * mi/mi-console.h: Rename include guard.
11242 * mi/mi-common.h: Rename include guard.
11243 * mi/mi-cmds.h: Rename include guard.
11244 * mi/mi-cmd-break.h: Rename include guard.
11245 * m2-lang.h: Add include guard.
11246 * location.h: Rename include guard.
11247 * linux-record.h: Rename include guard.
11248 * linux-nat.h: Add include guard.
11249 * linux-fork.h: Add include guard.
11250 * i386-darwin-tdep.h: Rename include guard.
11251 * hppa-linux-offsets.h: Add include guard.
11252 * guile/guile.h: Rename include guard.
11253 * guile/guile-internal.h: Rename include guard.
11254 * gnu-nat.h: Rename include guard.
11255 * gdb-stabs.h: Rename include guard.
11256 * frv-tdep.h: Add include guard.
11257 * f-lang.h: Add include guard.
11258 * event-loop.h: Add include guard.
11259 * darwin-nat.h: Rename include guard.
11260 * cp-abi.h: Rename include guard.
11261 * config/sparc/nm-sol2.h: Rename include guard.
11262 * config/nm-nto.h: Rename include guard.
11263 * config/nm-linux.h: Add include guard.
11264 * config/i386/nm-i386gnu.h: Rename include guard.
11265 * config/djgpp/nl_types.h: Rename include guard.
11266 * config/djgpp/langinfo.h: Rename include guard.
11267 * compile/gcc-cp-plugin.h: Add include guard.
11268 * compile/gcc-c-plugin.h: Add include guard.
11269 * compile/compile.h: Rename include guard.
11270 * compile/compile-object-run.h: Rename include guard.
11271 * compile/compile-object-load.h: Rename include guard.
11272 * compile/compile-internal.h: Rename include guard.
11273 * compile/compile-cplus.h: Rename include guard.
11274 * compile/compile-c.h: Rename include guard.
11275 * common/xml-utils.h: Rename include guard.
11276 * common/x86-xstate.h: Rename include guard.
11277 * common/version.h: Rename include guard.
11278 * common/vec.h: Rename include guard.
11279 * common/tdesc.h: Rename include guard.
11280 * common/selftest.h: Rename include guard.
11281 * common/scoped_restore.h: Rename include guard.
11282 * common/scoped_mmap.h: Rename include guard.
11283 * common/scoped_fd.h: Rename include guard.
11284 * common/safe-iterator.h: Rename include guard.
11285 * common/run-time-clock.h: Rename include guard.
11286 * common/refcounted-object.h: Rename include guard.
11287 * common/queue.h: Rename include guard.
11288 * common/ptid.h: Rename include guard.
11289 * common/print-utils.h: Rename include guard.
11290 * common/preprocessor.h: Rename include guard.
11291 * common/pathstuff.h: Rename include guard.
11292 * common/observable.h: Rename include guard.
11293 * common/netstuff.h: Rename include guard.
11294 * common/job-control.h: Rename include guard.
11295 * common/host-defs.h: Rename include guard.
11296 * common/gdb_wait.h: Rename include guard.
11297 * common/gdb_vecs.h: Rename include guard.
11298 * common/gdb_unlinker.h: Rename include guard.
11299 * common/gdb_unique_ptr.h: Rename include guard.
11300 * common/gdb_tilde_expand.h: Rename include guard.
11301 * common/gdb_sys_time.h: Rename include guard.
11302 * common/gdb_string_view.h: Rename include guard.
11303 * common/gdb_splay_tree.h: Rename include guard.
11304 * common/gdb_setjmp.h: Rename include guard.
11305 * common/gdb_ref_ptr.h: Rename include guard.
11306 * common/gdb_optional.h: Rename include guard.
11307 * common/gdb_locale.h: Rename include guard.
11308 * common/gdb_assert.h: Rename include guard.
11309 * common/filtered-iterator.h: Rename include guard.
11310 * common/filestuff.h: Rename include guard.
11311 * common/fileio.h: Rename include guard.
11312 * common/environ.h: Rename include guard.
11313 * common/common-utils.h: Rename include guard.
11314 * common/common-types.h: Rename include guard.
11315 * common/common-regcache.h: Rename include guard.
11316 * common/common-inferior.h: Rename include guard.
11317 * common/common-gdbthread.h: Rename include guard.
11318 * common/common-exceptions.h: Rename include guard.
11319 * common/common-defs.h: Rename include guard.
11320 * common/common-debug.h: Rename include guard.
11321 * common/cleanups.h: Rename include guard.
11322 * common/buffer.h: Rename include guard.
11323 * common/btrace-common.h: Rename include guard.
11324 * common/break-common.h: Rename include guard.
11325 * cli/cli-utils.h: Rename include guard.
11326 * cli/cli-style.h: Rename include guard.
11327 * cli/cli-setshow.h: Rename include guard.
11328 * cli/cli-script.h: Rename include guard.
11329 * cli/cli-interp.h: Rename include guard.
11330 * cli/cli-decode.h: Rename include guard.
11331 * cli/cli-cmds.h: Rename include guard.
11332 * charset-list.h: Add include guard.
11333 * buildsym-legacy.h: Rename include guard.
11334 * bfin-tdep.h: Add include guard.
11335 * ax.h: Rename include guard.
11336 * arm-linux-tdep.h: Add include guard.
11337 * arm-fbsd-tdep.h: Add include guard.
11338 * arch/xtensa.h: Rename include guard.
11339 * arch/tic6x.h: Add include guard.
11340 * arch/i386.h: Add include guard.
11341 * arch/arm.h: Rename include guard.
11342 * arch/arm-linux.h: Rename include guard.
11343 * arch/arm-get-next-pcs.h: Rename include guard.
11344 * arch/amd64.h: Add include guard.
11345 * arch/aarch64-insn.h: Rename include guard.
11346 * arch-utils.h: Rename include guard.
11347 * annotate.h: Add include guard.
11348 * amd64-darwin-tdep.h: Rename include guard.
11349 * aarch64-linux-tdep.h: Add include guard.
11350 * aarch64-fbsd-tdep.h: Add include guard.
11351 * aarch32-linux-nat.h: Add include guard.
11352
ab9268d2
PW
113532019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11354
11355 * macrotab.c (macro_define_internal): New function that
11356 factorizes macro_define_object_internal and macro_define_function
11357 code.
11358 (macro_define_object_internal): Use macro_define_internal.
11359 (macro_define_function): Likewise.
11360
bb0da2b4
PW
113612019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11362
11363 * macrocmd.c (extract_identifier): Return
11364 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
11365 callers.
11366
424eb552
JB
113672019-02-06 John Baldwin <jhb@FreeBSD.org>
11368
11369 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
11370
1688cb29
TT
113712019-02-05 Tom Tromey <tom@tromey.com>
11372
11373 * target.c (target_stack::unpush): Move assertion earlier.
11374
b5eba2d8
TT
113752019-01-30 Tom Tromey <tom@tromey.com>
11376
11377 PR python/23615:
11378 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
11379 (gdbpy_parse_and_eval): Likewise.
11380 * python/python-internal.h (gdbpy_allow_threads): New class.
11381
7054e2ff
JB
113822019-01-28 John Baldwin <jhb@FreeBSD.org>
11383
11384 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
11385 (aarch64_fbsd_fpregmap): Move earlier.
11386 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
11387 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11388 instead of individual calls to trad_frame_set_reg_addr.
11389 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
11390 earlier.
11391 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
11392 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11393 instead of individual calls to trad_frame_set_reg_addr.
11394
36c25ffa
AH
113952019-01-28 Alan Hayward <alan.hayward@arm.com>
11396
11397 * CONTRIBUTE: Replace contribution list with wiki link.
11398
a0707f3c
TT
113992019-01-25 Tom Tromey <tom@tromey.com>
11400
11401 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
11402
0747795c
TT
114032019-01-25 Tom Tromey <tom@tromey.com>
11404
11405 * xtensa-linux-nat.c: Fix common/ includes.
11406 * xml-support.h: Fix common/ includes.
11407 * xml-support.c: Fix common/ includes.
11408 * x86-linux-nat.c: Fix common/ includes.
11409 * windows-nat.c: Fix common/ includes.
11410 * varobj.h: Fix common/ includes.
11411 * varobj.c: Fix common/ includes.
11412 * value.c: Fix common/ includes.
11413 * valops.c: Fix common/ includes.
11414 * utils.c: Fix common/ includes.
11415 * unittests/xml-utils-selftests.c: Fix common/ includes.
11416 * unittests/utils-selftests.c: Fix common/ includes.
11417 * unittests/unpack-selftests.c: Fix common/ includes.
11418 * unittests/tracepoint-selftests.c: Fix common/ includes.
11419 * unittests/style-selftests.c: Fix common/ includes.
11420 * unittests/string_view-selftests.c: Fix common/ includes.
11421 * unittests/scoped_restore-selftests.c: Fix common/ includes.
11422 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
11423 * unittests/scoped_fd-selftests.c: Fix common/ includes.
11424 * unittests/rsp-low-selftests.c: Fix common/ includes.
11425 * unittests/parse-connection-spec-selftests.c: Fix common/
11426 includes.
11427 * unittests/optional-selftests.c: Fix common/ includes.
11428 * unittests/offset-type-selftests.c: Fix common/ includes.
11429 * unittests/observable-selftests.c: Fix common/ includes.
11430 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
11431 * unittests/memrange-selftests.c: Fix common/ includes.
11432 * unittests/memory-map-selftests.c: Fix common/ includes.
11433 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
11434 * unittests/function-view-selftests.c: Fix common/ includes.
11435 * unittests/environ-selftests.c: Fix common/ includes.
11436 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
11437 * unittests/common-utils-selftests.c: Fix common/ includes.
11438 * unittests/cli-utils-selftests.c: Fix common/ includes.
11439 * unittests/array-view-selftests.c: Fix common/ includes.
11440 * ui-file.c: Fix common/ includes.
11441 * tui/tui-io.c: Fix common/ includes.
11442 * tracepoint.h: Fix common/ includes.
11443 * tracepoint.c: Fix common/ includes.
11444 * tracefile-tfile.c: Fix common/ includes.
11445 * top.h: Fix common/ includes.
11446 * top.c: Fix common/ includes.
11447 * thread.c: Fix common/ includes.
11448 * target/waitstatus.h: Fix common/ includes.
11449 * target/waitstatus.c: Fix common/ includes.
11450 * target.h: Fix common/ includes.
11451 * target.c: Fix common/ includes.
11452 * target-memory.c: Fix common/ includes.
11453 * target-descriptions.c: Fix common/ includes.
11454 * symtab.h: Fix common/ includes.
11455 * symfile.c: Fix common/ includes.
11456 * stap-probe.c: Fix common/ includes.
11457 * spu-linux-nat.c: Fix common/ includes.
11458 * sparc-nat.c: Fix common/ includes.
11459 * source.c: Fix common/ includes.
11460 * solib.c: Fix common/ includes.
11461 * solib-target.c: Fix common/ includes.
11462 * ser-unix.c: Fix common/ includes.
11463 * ser-tcp.c: Fix common/ includes.
11464 * ser-pipe.c: Fix common/ includes.
11465 * ser-base.c: Fix common/ includes.
11466 * selftest-arch.c: Fix common/ includes.
11467 * s12z-tdep.c: Fix common/ includes.
11468 * rust-exp.y: Fix common/ includes.
11469 * rs6000-aix-tdep.c: Fix common/ includes.
11470 * riscv-tdep.c: Fix common/ includes.
11471 * remote.c: Fix common/ includes.
11472 * remote-notif.h: Fix common/ includes.
11473 * remote-fileio.h: Fix common/ includes.
11474 * remote-fileio.c: Fix common/ includes.
11475 * regcache.h: Fix common/ includes.
11476 * regcache.c: Fix common/ includes.
11477 * record-btrace.c: Fix common/ includes.
11478 * python/python.c: Fix common/ includes.
11479 * python/py-type.c: Fix common/ includes.
11480 * python/py-inferior.c: Fix common/ includes.
11481 * progspace.h: Fix common/ includes.
11482 * producer.c: Fix common/ includes.
11483 * procfs.c: Fix common/ includes.
11484 * proc-api.c: Fix common/ includes.
11485 * printcmd.c: Fix common/ includes.
11486 * ppc-linux-nat.c: Fix common/ includes.
11487 * parser-defs.h: Fix common/ includes.
11488 * osdata.c: Fix common/ includes.
11489 * obsd-nat.c: Fix common/ includes.
11490 * nat/x86-linux.c: Fix common/ includes.
11491 * nat/x86-linux-dregs.c: Fix common/ includes.
11492 * nat/x86-dregs.h: Fix common/ includes.
11493 * nat/x86-dregs.c: Fix common/ includes.
11494 * nat/ppc-linux.c: Fix common/ includes.
11495 * nat/mips-linux-watch.h: Fix common/ includes.
11496 * nat/mips-linux-watch.c: Fix common/ includes.
11497 * nat/linux-waitpid.c: Fix common/ includes.
11498 * nat/linux-ptrace.h: Fix common/ includes.
11499 * nat/linux-ptrace.c: Fix common/ includes.
11500 * nat/linux-procfs.c: Fix common/ includes.
11501 * nat/linux-personality.c: Fix common/ includes.
11502 * nat/linux-osdata.c: Fix common/ includes.
11503 * nat/linux-namespaces.c: Fix common/ includes.
11504 * nat/linux-btrace.h: Fix common/ includes.
11505 * nat/linux-btrace.c: Fix common/ includes.
11506 * nat/fork-inferior.c: Fix common/ includes.
11507 * nat/amd64-linux-siginfo.c: Fix common/ includes.
11508 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
11509 * nat/aarch64-linux.c: Fix common/ includes.
11510 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
11511 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
11512 * namespace.h: Fix common/ includes.
11513 * mips-linux-tdep.c: Fix common/ includes.
11514 * minsyms.c: Fix common/ includes.
11515 * mi/mi-parse.h: Fix common/ includes.
11516 * mi/mi-main.c: Fix common/ includes.
11517 * mi/mi-cmd-env.c: Fix common/ includes.
11518 * memrange.h: Fix common/ includes.
11519 * memattr.c: Fix common/ includes.
11520 * maint.h: Fix common/ includes.
11521 * maint.c: Fix common/ includes.
11522 * main.c: Fix common/ includes.
11523 * machoread.c: Fix common/ includes.
11524 * location.c: Fix common/ includes.
11525 * linux-thread-db.c: Fix common/ includes.
11526 * linux-nat.c: Fix common/ includes.
11527 * linux-fork.c: Fix common/ includes.
11528 * inline-frame.c: Fix common/ includes.
11529 * infrun.c: Fix common/ includes.
11530 * inflow.c: Fix common/ includes.
11531 * inferior.h: Fix common/ includes.
11532 * inferior.c: Fix common/ includes.
11533 * infcmd.c: Fix common/ includes.
11534 * inf-ptrace.c: Fix common/ includes.
11535 * inf-child.c: Fix common/ includes.
11536 * ia64-linux-nat.c: Fix common/ includes.
11537 * i387-tdep.c: Fix common/ includes.
11538 * i386-tdep.c: Fix common/ includes.
11539 * i386-linux-tdep.c: Fix common/ includes.
11540 * i386-linux-nat.c: Fix common/ includes.
11541 * i386-go32-tdep.c: Fix common/ includes.
11542 * i386-fbsd-tdep.c: Fix common/ includes.
11543 * i386-fbsd-nat.c: Fix common/ includes.
11544 * guile/scm-type.c: Fix common/ includes.
11545 * guile/guile.c: Fix common/ includes.
11546 * go32-nat.c: Fix common/ includes.
11547 * gnu-nat.c: Fix common/ includes.
11548 * gdbthread.h: Fix common/ includes.
11549 * gdbarch-selftests.c: Fix common/ includes.
11550 * gdb_usleep.c: Fix common/ includes.
11551 * gdb_select.h: Fix common/ includes.
11552 * gdb_bfd.c: Fix common/ includes.
11553 * gcore.c: Fix common/ includes.
11554 * fork-child.c: Fix common/ includes.
11555 * findvar.c: Fix common/ includes.
11556 * fbsd-nat.c: Fix common/ includes.
11557 * event-top.c: Fix common/ includes.
11558 * event-loop.c: Fix common/ includes.
11559 * dwarf2read.c: Fix common/ includes.
11560 * dwarf2loc.c: Fix common/ includes.
11561 * dwarf2-frame.c: Fix common/ includes.
11562 * dwarf-index-cache.c: Fix common/ includes.
11563 * dtrace-probe.c: Fix common/ includes.
11564 * disasm-selftests.c: Fix common/ includes.
11565 * defs.h: Fix common/ includes.
11566 * csky-tdep.c: Fix common/ includes.
11567 * cp-valprint.c: Fix common/ includes.
11568 * cp-support.h: Fix common/ includes.
11569 * cp-support.c: Fix common/ includes.
11570 * corelow.c: Fix common/ includes.
11571 * completer.h: Fix common/ includes.
11572 * completer.c: Fix common/ includes.
11573 * compile/compile.c: Fix common/ includes.
11574 * compile/compile-loc2c.c: Fix common/ includes.
11575 * compile/compile-cplus-types.c: Fix common/ includes.
11576 * compile/compile-cplus-symbols.c: Fix common/ includes.
11577 * command.h: Fix common/ includes.
11578 * cli/cli-dump.c: Fix common/ includes.
11579 * cli/cli-cmds.c: Fix common/ includes.
11580 * charset.c: Fix common/ includes.
11581 * build-id.c: Fix common/ includes.
11582 * btrace.h: Fix common/ includes.
11583 * btrace.c: Fix common/ includes.
11584 * breakpoint.h: Fix common/ includes.
11585 * breakpoint.c: Fix common/ includes.
11586 * ax.h:
11587 (enum agent_op): Fix common/ includes.
11588 * ax-general.c (struct aop_map): Fix common/ includes.
11589 * ax-gdb.c: Fix common/ includes.
11590 * auxv.c: Fix common/ includes.
11591 * auto-load.c: Fix common/ includes.
11592 * arm-tdep.c: Fix common/ includes.
11593 * arch/riscv.c: Fix common/ includes.
11594 * arch/ppc-linux-common.c: Fix common/ includes.
11595 * arch/i386.c: Fix common/ includes.
11596 * arch/arm.c: Fix common/ includes.
11597 * arch/arm-linux.c: Fix common/ includes.
11598 * arch/arm-get-next-pcs.c: Fix common/ includes.
11599 * arch/amd64.c: Fix common/ includes.
11600 * arch/aarch64.c: Fix common/ includes.
11601 * arch/aarch64-insn.c: Fix common/ includes.
11602 * arch-utils.c: Fix common/ includes.
11603 * amd64-windows-tdep.c: Fix common/ includes.
11604 * amd64-tdep.c: Fix common/ includes.
11605 * amd64-sol2-tdep.c: Fix common/ includes.
11606 * amd64-obsd-tdep.c: Fix common/ includes.
11607 * amd64-nbsd-tdep.c: Fix common/ includes.
11608 * amd64-linux-tdep.c: Fix common/ includes.
11609 * amd64-linux-nat.c: Fix common/ includes.
11610 * amd64-fbsd-tdep.c: Fix common/ includes.
11611 * amd64-fbsd-nat.c: Fix common/ includes.
11612 * amd64-dicos-tdep.c: Fix common/ includes.
11613 * amd64-darwin-tdep.c: Fix common/ includes.
11614 * agent.c: Fix common/ includes.
11615 * ada-lang.h: Fix common/ includes.
11616 * ada-lang.c: Fix common/ includes.
11617 * aarch64-tdep.c: Fix common/ includes.
11618
2f5c153e
TT
116192019-01-25 Tom Tromey <tom@tromey.com>
11620
11621 * common/create-version.sh: Use common/version.h.
11622
adc6a863
PA
116232019-01-24 Pedro Alves <palves@redhat.com>
11624
11625 * infrun.c (signal_stop, signal_print, signal_program)
11626 (signal_catch, signal_pass): Now arrays instead of pointers.
11627 (update_signals_program_target, do_target_resume)
11628 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
11629 * linux-nat.c (linux_nat_target::pass_signals)
11630 (linux_nat_target::create_inferior, linux_nat_target::attach):
11631 Adjust.
11632 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
11633 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
11634 * procfs.c (procfs_target::pass_signals): Adjust.
11635 * record-full.c (record_full_target::resume): Adjust.
11636 * remote.c (remote_target::pass_signals)
11637 (remote_target::program_signals): Adjust.
11638 * target-debug.h (target_debug_print_signals): Now takes a
11639 gdb::array_view as parameter. Adjust.
11640 * target.h (target_ops) <pass_signals, program_signals>: Replace
11641 pointer and length parameters with gdb::array_view.
11642 (target_pass_signals, target_program_signals): Likewise.
11643 * target-delegates.c: Regenerate.
11644
3046d67a
PA
116452019-01-24 Pedro Alves <palves@redhat.com>
11646
11647 * common/forward-scope-exit.h
11648 (forward_scope_exit::forward_scope_exit): Pass arguments to
11649 m_bind_function directly, instead of creating a std::bind and
11650 copying that.
11651
353229bf
AH
116522019-01-24 Alan Hayward <alan.hayward@arm.com>
11653
11654 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11655 for static members.
11656 (pass_in_v_vfp_candidate): Likewise.
11657
311dc83a
TT
116582019-01-23 Tom Tromey <tom@tromey.com>
11659 Pedro Alves <palves@redhat.com>
11660
11661 * regcache.c (class regcache_invalidator): Remove.
11662 (regcache::raw_write): Use make_scope_exit.
11663
296bd123
TT
116642019-01-23 Tom Tromey <tom@tromey.com>
11665
11666 * ui-out.h (class ui_out_emit_type): Update comment.
11667
979a0d13
TT
116682019-01-23 Tom Tromey <tom@tromey.com>
11669
11670 * infrun.c (fetch_inferior_event): Update comment.
11671
d238133d
TT
116722019-01-23 Tom Tromey <tom@tromey.com>
11673 Pedro Alves <palves@redhat.com>
11674
11675 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
11676 parameter.
11677 (fetch_inferior_event): Use SCOPE_EXIT.
11678
11679
9885e6bb
TT
116802019-01-23 Tom Tromey <tom@tromey.com>
11681 Pedro Alves <palves@redhat.com>
11682
11683 * infrun.c (disable_thread_events): Delete.
11684 (stop_all_threads): Use SCOPE_EXIT.
11685
286526c1
TT
116862019-01-23 Tom Tromey <tom@tromey.com>
11687 Pedro Alves <palves@redhat.com>
11688
11689 * symfile.c: Include forward-scope-exit.h.
11690 (clear_symtab_users_cleanup): Replace forward declaration with
11691 a FORWARD_SCOPE_EXIT.
11692 (syms_from_objfile_1): Use the forward_scope_exit and
11693 gdb::optional instead of cleanup_function.
11694 (reread_symbols): Use the forward_scope_exit instead of
11695 cleanup_function.
11696 (clear_symtab_users_cleanup): Remove function.
11697
1db93f14
TT
116982019-01-23 Tom Tromey <tom@tromey.com>
11699 Pedro Alves <palves@redhat.com>
11700
11701 * linux-nat.c: Include scope-exit.h.
11702 (cleanup_target_stop): Remove.
11703 (linux_nat_target::static_tracepoint_markers_by_strid): Use
11704 SCOPE_EXIT.
11705
2cc83d1e
TT
117062019-01-23 Tom Tromey <tom@tromey.com>
11707 Pedro Alves <palves@redhat.com>
11708
11709 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
11710 (call_function_by_hand_dummy): Use SCOPE_EXIT.
11711
694c6bf5
TT
117122019-01-23 Tom Tromey <tom@tromey.com>
11713 Andrew Burgess <andrew.burgess@embecosm.com>
11714 Pedro Alves <palves@redhat.com>
11715
11716 * infrun.c (fetch_inferior_event): Use scope_exit.
11717 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
11718 * top.c (execute_command): Use scope_exit.
11719 * breakpoint.c (bpstat_do_actions): Use scope_exit.
11720 * utils.c (do_bpstat_clear_actions_cleanup)
11721 (make_bpstat_clear_actions_cleanup): Remove.
11722
4c41382a
TT
117232019-01-23 Tom Tromey <tom@tromey.com>
11724 Pedro Alves <palves@redhat.com>
11725
11726 * infrun.c: Include "common/scope-exit.h"
11727 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
11728 (wait_for_inferior): Use SCOPE_EXIT.
11729 (fetch_inferior_event): Use scope_exit.
11730
89f8fb50
TT
117312019-01-23 Tom Tromey <tom@tromey.com>
11732 Pedro Alves <palves@redhat.com>
11733
11734 * breakpoint.c (create_breakpoint): Remove cleanup.
11735
5419bdae
TT
117362019-01-23 Tom Tromey <tom@tromey.com>
11737 Andrew Burgess <andrew.burgess@embecosm.com>
11738 Pedro Alves <palves@redhat.com>
11739
e587ef42
PA
117402019-01-23 Pedro Alves <palves@redhat.com>
11741
11742 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
11743
77f0e74c
PA
117442019-01-23 Pedro Alves <palves@redhat.com>
11745 Andrew Burgess <andrew.burgess@embecosm.com>
11746
11747 * gdbthread.h: Include "common/forward-scope-exit.h".
11748 (scoped_finish_thread_state): Redefine custom class in terms of
11749 forward_scope_exit.
11750
5b9b3e53
PA
117512019-01-23 Pedro Alves <palves@redhat.com>
11752 Andrew Burgess <andrew.burgess@embecosm.com>
11753
11754 * common/forward-scope-exit.h: New file.
11755
54b65c9b
PA
117562019-01-23 Pedro Alves <palves@redhat.com>
11757 Andrew Burgess <andrew.burgess@embecosm.com>
11758 Tom Tromey <tom@tromey.com>
11759
11760 * common/scope-exit.h: New file.
11761
cf08fb29
PA
117622019-01-23 Pedro Alves <palves@redhat.com>
11763
11764 * common/preprocessor.h (ESC): Rename to ...
11765 (ESC_PARENS): ... this.
11766 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
11767 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
11768
ae73e2e2
TT
117692019-01-23 Tom Tromey <tom@tromey.com>
11770
11771 * language.h (class scoped_switch_to_sym_language_if_auto):
11772 Initialize m_lang in both cases.
11773
6594e122
AH
117742019-01-23 Alan Hayward <alan.hayward@arm.com>
11775
11776 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
11777 with XCNEW.
11778
a7c9855d
TT
117792019-01-22 Tom Tromey <tom@tromey.com>
11780
11781 * corelow.c: Do not include sys/file.h.
11782
93cc1d53
TT
117832019-01-22 Tom Tromey <tom@tromey.com>
11784
11785 * tui/tui-wingeneral.h: Include gdb_curses.h.
11786
38561778
TT
117872019-01-22 Tom Tromey <tom@tromey.com>
11788
11789 * source-cache.h (class source_cache) <get_source_lines,
11790 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
11791
37b3ab5b
TT
117922019-01-22 Tom Tromey <tom@tromey.com>
11793
11794 * remote-fileio.h (struct remote_target): Declare.
11795
3fabc016
TT
117962019-01-22 Tom Tromey <tom@tromey.com>
11797
11798 * python/py-arch.c: Do not include py-ref.h.
11799 * python/py-bpevent.c: Do not include py-ref.h.
11800 * python/py-cmd.c: Do not include py-ref.h.
11801 * python/py-continueevent.c: Do not include py-ref.h.
11802 * python/py-event.h: Do not include py-ref.h.
11803 * python/py-evtregistry.c: Do not include py-ref.h.
11804 * python/py-finishbreakpoint.c: Do not include py-ref.h.
11805 * python/py-frame.c: Do not include py-ref.h.
11806 * python/py-framefilter.c: Do not include py-ref.h.
11807 * python/py-function.c: Do not include py-ref.h.
11808 * python/py-infevents.c: Do not include py-ref.h.
11809 * python/py-linetable.c: Do not include py-ref.h.
11810 * python/py-objfile.c: Do not include py-ref.h.
11811 * python/py-param.c: Do not include py-ref.h.
11812 * python/py-prettyprint.c: Do not include py-ref.h.
11813 * python/py-progspace.c: Do not include py-ref.h.
11814 * python/py-symbol.c: Do not include py-ref.h.
11815 * python/py-symtab.c: Do not include py-ref.h.
11816 * python/py-type.c: Do not include py-ref.h.
11817 * python/py-unwind.c: Do not include py-ref.h.
11818 * python/py-utils.c: Do not include py-ref.h.
11819 * python/py-value.c: Do not include py-ref.h.
11820 * python/py-varobj.c: Do not include py-ref.h.
11821 * python/py-xmethods.c: Do not include py-ref.h.
11822 * python/python.c: Do not include py-ref.h.
11823 * varobj.c: Do not include py-ref.h.
11824
6b4d7774
TT
118252019-01-22 Tom Tromey <tom@tromey.com>
11826
11827 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
11828 keyword for bcache.
11829
7af7e9b5
TT
118302019-01-22 Tom Tromey <tom@tromey.com>
11831
11832 * compile/compile-cplus-types.c: Remove a comment by #include.
11833
951d1049
TT
118342019-01-22 Tom Tromey <tom@tromey.com>
11835
11836 * compile/gcc-c-plugin.h: Include compile-internal.h.
11837
d65d5705
TT
118382019-01-22 Tom Tromey <tom@tromey.com>
11839
11840 * stabsread.c (EXTERN): Do not define.
11841 (symnum, next_symbol_text_func, processing_gcc_compilation)
11842 (within_function, global_sym_chain, global_stabs)
11843 (previous_stab_code, this_object_header_files)
11844 (n_this_object_header_files)
11845 (n_allocated_this_object_header_files): Define.
11846 * stabsread.h (EXTERN): Never define. Use "extern".
11847
b6fb1ee5
PW
118482019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11849
11850 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
11851 history_value.
11852
be6d4f74
TT
118532019-01-21 Tom Tromey <tom@tromey.com>
11854
11855 * ui-out.c: Fix includes.
11856 * tui/tui-source.c: Fix includes.
11857 * target.c: Fix includes.
11858 * remote.c: Fix includes.
11859 * regcache.c: Fix includes.
11860 * python/py-block.c: Fix includes.
11861 * printcmd.c: Fix includes.
11862 * or1k-tdep.c: Fix includes.
11863 * mi/mi-main.c: Fix includes.
11864 * m32r-tdep.c: Fix includes.
11865 * csky-tdep.c: Fix includes.
11866 * compile/compile-cplus-types.c: Fix includes.
11867 * cli/cli-interp.c: Fix includes.
11868
73021deb
AH
118692019-01-21 Alan Hayward <alan.hayward@arm.com>
11870
11871 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11872 for padding.
11873
7932255d
TT
118742019-01-16 Tom Tromey <tom@tromey.com>
11875
11876 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
11877 earlier.
11878 (struct objfile) <msymbols_range>: Move from top level.
11879 <msymbols>: New method.
11880 (class objfile_msymbols): Remove.
11881 * symtab.c (default_collect_symbol_completion_matches_break_on):
11882 Update.
11883 * symmisc.c (dump_msymbols): Update.
11884 * stabsread.c (scan_file_globals): Update.
11885 * objc-lang.c (info_selectors_command, info_classes_command)
11886 (find_methods): Update.
11887 * minsyms.c (find_solib_trampoline_target): Update.
11888 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
11889 * coffread.c (coff_symfile_read): Update.
11890 * ada-lang.c (ada_lookup_simple_minsym)
11891 (ada_collect_symbol_completion_matches): Update.
11892
604b1bfb
TT
118932019-01-16 Tom Tromey <tom@tromey.com>
11894
11895 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
11896 type. Remove no-argument constructor.
11897 <iterator::operator++>: Simplify.
11898 <begin>: Update.
11899 <end>: Use minimal_symbol_count.
11900
f252c6d5
TT
119012019-01-16 Tom Tromey <tom@tromey.com>
11902
11903 * objfiles.h (struct objfile) <psymtabs>: New method.
11904 (class objfile_psymtabs): Remove.
11905 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
11906 typedef.
11907 <range>: New method.
11908 (require_partial_symbols): Change return type.
11909 * psymtab.c (require_partial_symbols)
11910 (psym_expand_symtabs_matching): Update.
11911 * mdebugread.c (parse_partial_symbols): Update.
11912 * dbxread.c (dbx_end_psymtab): Update.
11913
b669c953
TT
119142019-01-15 Tom Tromey <tom@tromey.com>
11915
11916 * symtab.c (lookup_objfile_from_block)
11917 (lookup_symbol_in_objfile_symtabs)
11918 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
11919 (find_line_symtab, info_sources_command)
11920 (default_collect_symbol_completion_matches_break_on)
11921 (make_source_files_completion_list): Update.
11922 * symmisc.c (print_objfile_statistics, dump_objfile)
11923 (maintenance_print_symbols, maintenance_info_symtabs)
11924 (maintenance_check_symtabs, maintenance_info_line_tables):
11925 Update.
11926 * source.c (select_source_symtab)
11927 (forget_cached_source_info_for_objfile): Update.
11928 * objfiles.h (class objfile_compunits): Remove.
11929 (struct objfile) <compunits_range>: New typedef.
11930 (compunits): New method.
11931 * objfiles.c (objfile_relocate1): Update.
11932 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11933 * maint.c (count_symtabs_and_blocks): Update.
11934 * linespec.c (iterate_over_all_matching_symtabs): Update.
11935 * cp-support.c (add_symbol_overload_list_qualified): Update.
11936 * coffread.c (coff_symtab_read): Update.
11937 * ada-lang.c (add_nonlocal_symbols)
11938 (ada_collect_symbol_completion_matches)
11939 (ada_add_global_exceptions): Update.
11940
7e955d83
TT
119412019-01-15 Tom Tromey <tom@tromey.com>
11942
11943 * progspace.h (program_space) <objfiles_safe_range>: New
11944 typedef.
11945 <objfiles_safe>: New method.
11946 * objfiles.h (class all_objfiles_safe): Remove.
11947 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
11948 * jit.c (jit_inferior_exit_hook): Update.
11949
2030c079
TT
119502019-01-17 Tom Tromey <tom@tromey.com>
11951
11952 * progspace.h (program_space) <objfiles_range>: New typedef.
11953 <objfiles>: New method.
11954 <objfiles_head>: Rename from objfiles.
11955 (object_files): Update.
11956 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
11957 * guile/scm-pretty-print.c
11958 (ppscm_find_pretty_printer_from_objfiles): Update.
11959 * guile/scm-objfile.c (gdbscm_objfiles): Update.
11960 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
11961 Update.
11962 * python/py-progspace.c (pspy_get_objfiles): Update.
11963 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11964 Update.
11965 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11966 (objfpy_lookup_objfile_by_build_id): Update.
11967 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11968 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11969 Update.
11970 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11971 (expand_symtab_containing_pc, lookup_objfile_from_block)
11972 (lookup_static_symbol, basic_lookup_transparent_type)
11973 (find_pc_sect_compunit_symtab, find_symbol_at_address)
11974 (find_line_symtab, info_sources_command)
11975 (default_collect_symbol_completion_matches_break_on)
11976 (make_source_files_completion_list, find_main_name): Update.
11977 * symmisc.c (print_symbol_bcache_statistics)
11978 (print_objfile_statistics, maintenance_print_symbols)
11979 (maintenance_print_msymbols, maintenance_print_objfiles)
11980 (maintenance_info_symtabs, maintenance_check_symtabs)
11981 (maintenance_expand_symtabs, maintenance_info_line_tables):
11982 Update.
11983 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
11984 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
11985 (map_overlay_command, unmap_overlay_command)
11986 (simple_overlay_update, expand_symtabs_matching)
11987 (map_symbol_filenames): Update.
11988 * symfile-debug.c (set_debug_symfile): Update.
11989 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
11990 Update.
11991 * source.c (select_source_symtab, forget_cached_source_info):
11992 Update.
11993 * solib.c (solib_read_symbols): Update.
11994 * solib-spu.c (append_ocl_sos): Update.
11995 * psymtab.c (maintenance_print_psymbols)
11996 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
11997 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
11998 * printcmd.c (info_symbol_command): Update.
11999 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
12000 Update.
12001 * objfiles.h (class all_objfiles): Remove.
12002 * objfiles.c (have_partial_symbols, have_full_symbols)
12003 (have_minimal_symbols, qsort_cmp, update_section_map)
12004 (shared_objfile_contains_address_p)
12005 (default_iterate_over_objfiles_in_search_order): Update.
12006 * objc-lang.c (info_selectors_command, info_classes_command)
12007 (find_methods): Update.
12008 * minsyms.c (find_solib_trampoline_target): Update.
12009 * maint.c (maintenance_info_sections)
12010 (maintenance_translate_address, count_symtabs_and_blocks):
12011 Update.
12012 * main.c (captured_main_1): Update.
12013 * linux-thread-db.c (try_thread_db_load_from_pdir)
12014 (has_libpthread): Update.
12015 * linespec.c (iterate_over_all_matching_symtabs)
12016 (search_minsyms_for_name): Update.
12017 * jit.c (jit_find_objf_with_entry_addr): Update.
12018 * hppa-tdep.c (find_unwind_entry)
12019 (hppa_lookup_stub_minimal_symbol): Update.
12020 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
12021 Update.
12022 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12023 (elf_gnu_ifunc_resolve_by_got): Update.
12024 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
12025 * dwarf-index-write.c (save_gdb_index_command): Update.
12026 * cp-support.c (add_symbol_overload_list_qualified): Update.
12027 * breakpoint.c (create_overlay_event_breakpoint)
12028 (create_longjmp_master_breakpoint)
12029 (create_std_terminate_master_breakpoint)
12030 (create_exception_master_breakpoint): Update.
12031 * blockframe.c (find_pc_partial_function): Update.
12032 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
12033 (ada_collect_symbol_completion_matches)
12034 (ada_add_global_exceptions): Update.
12035
776489e0
TT
120362019-01-17 Tom Tromey <tom@tromey.com>
12037
12038 * solib-target.c (lm_info_target_p): Remove typedef. Don't
12039 declare VEC.
12040 (solib_target_parse_libraries): Change return type.
12041 (library_list_start_segment, library_list_start_section)
12042 (library_list_end_library, library_list_start_library); Update.
12043 (solib_target_free_library_list): Remove.
12044 (solib_target_parse_libraries): Remove cleanup. Change return
12045 type.
12046 (solib_target_current_sos): Update.
12047
6471e7d2
TT
120482019-01-17 Tom Tromey <tromey@bapiya>
12049
12050 * valprint.c: Replace "the the" with "the".
12051 * symtab.c: Replace "the the" with "the".
12052 * solib.c: Replace "the the" with "the".
12053 * solib-dsbt.c: Replace "the the" with "the".
12054 * linespec.c: Replace "the the" with "the".
12055 * dwarf2loc.h: Replace "the the" with "the".
12056 * amd64-windows-tdep.c: Replace "the the" with "the".
12057 * aarch64-tdep.c: Replace "the the" with "the".
12058
c24bdb02
KS
120592019-01-16 Keith Seitz <keiths@redhat.com>
12060
12061 PR gdb/23773
12062 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
12063 <builder>: Rename to ..
12064 <m_builder>: ... this and make private.
12065 (dwarf2_cu::get_builder): New method. Change all users of
12066 `builder' to use this method.
12067 (dwarf2_start_symtab): Move to ...
12068 (dwarf2_cu::start_symtab): ... here. Update all callers
12069 (setup_type_unit_groups): Move to ...
12070 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
12071 callers.
12072 (dwarf2_cu::reset_builder): New method.
12073 (process_full_compunit, process_full_type_unit): Use
12074 dwarf2_cu::reset_builder.
12075 (follow_die_offset): Record the ancestor CU if it is different
12076 from the followed DIE's CU.
12077 (follow_die_sig_1): Likewise.
12078
8d64371b
TT
120792019-01-15 Tom Tromey <tom@tromey.com>
12080
12081 * remote.c (class remote_state) <buf>: Now a char_vector.
12082 <buf_size>: Remove.
12083 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
12084 parameter.
12085 (remote_target::getpkt_or_notif_sane_1)
12086 (remote_target::getpkt_sane)
12087 (remote_target::getpkt_or_notif_sane): Likewise.
12088 (class remote_target) <putpkt>: New overload.
12089 (remote_target::read_frame): Change type of "buf_p". Remove
12090 sizeof_p parameter.
12091 (packet_ok): New overload.
12092 (packet_check_result): New overload.
12093 Update all uses.
12094
bb277751
TT
120952019-01-14 Tom Tromey <tom@tromey.com>
12096
12097 * remote-notif.c (handle_notification, remote_notif_ack)
12098 (remote_notif_parse): Make "buf" const.
12099 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
12100 const.
12101 (remote_notif_parse, remote_notif_ack, handle_notification):
12102 Likewise.
12103 * remote.c (remote_notif_stop_parse): Make "buf" const.
12104 (remote_target::remote_parse_stop_reply): Make "buf" const.
12105 (remote_notif_stop_ack): Make "buf" const.
12106
05be00a8
TT
121072019-01-14 Tom Tromey <tom@tromey.com>
12108
12109 * remote.c (remote_console_output): Make parameter const.
12110
491adeca
TT
121112019-01-14 Tom Tromey <tom@tromey.com>
12112
12113 * target-debug.h (target_debug_print_signals): Constify.
12114 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
12115 * procfs.c (procfs_target::pass_signals): Update.
12116 * linux-nat.c (linux_nat_target::pass_signals): Update.
12117 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
12118 * target-delegates.c: Rebuild.
12119 * remote.c (remote_target::program_signals): Update.
12120 (remote_target::pass_signals): Update.
12121 * target.c (target_pass_signals): Constify argument.
12122 (target_program_signals): Likewise.
12123 * target.h (struct target_ops) <pass_signals, program_signals>:
12124 Constify argument.
12125 (target_pass_signals, target_program_signals): Constify argument.
12126
bbd94648
TT
121272019-01-14 Tom Tromey <tom@tromey.com>
12128
12129 PR tui/28819:
12130 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
12131
6f072a10
PFC
121322019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12133
12134 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
12135 field.
12136 * rs6000-tdep.c: Include reggroups.h.
12137 (IS_V_ALIAS_PSEUDOREG): Define.
12138 (rs6000_register_name): Return names for the "vX" aliases.
12139 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
12140 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
12141 aliases. Call default_register_reggroup_p for all other
12142 pseudo-registers.
12143 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
12144 New functions.
12145 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
12146 Handle "vX" aliases.
12147 (v_alias_pseudo_register_collect): New function.
12148 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
12149 (rs6000_gdbarch_init): Initialize "vX" aliases as
12150 pseudo-registers. Restore registration of
12151 rs6000_pseudo_register_reggroup_p with
12152 set_tdesc_pseudo_register_reggroup_p.
12153
1a782351
MF
121542019-01-13 Max Filippov <jcmvbkbc@gmail.com>
12155
12156 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
12157 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
12158 set_gdbarch_num_pseudo_regs.
12159
d73cff18
PW
121602019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12161
12162 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
12163 Remove arg prefixname, add do_set and do_show.
12164 Add member functions set_list and show_list.
12165 * cli/cli-style.c (class cli_style_option): Update accordingly.
12166 (style_set_list): Move to file scope.
12167 (style_show_list): Likewise.
12168 (set_style): Call help_list.
12169 (show_style): Call cmd_show_list.
12170 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
12171 Update to use the new macro.
12172
60a90376
JB
121732019-10-12 Joel Brobecker <brobecker@adacore.com>
12174
12175 * ada-lang.c (_initialize_ada_language): Expand the help text
12176 for the "catch exception" command.
12177
9d7c67bf
PW
121782019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12179
12180 * symtab.c (matching_obj_sections): Initialize obj,
12181 declare it closer to its usage.
12182
7cf47dc4
TT
121832019-01-10 Tom Tromey <tom@tromey.com>
12184
12185 * thread-iter.h (inf_threads_iterator): Use next_iterator.
12186 (basic_inf_threads_range): Remove.
12187 (inf_threads_range, inf_non_exited_threads_range)
12188 (safe_inf_threads_range): Use next_adapter.
12189
d3cb6808
KS
121902019-01-10 Keith Seitz <keiths@redhat.com>
12191
12192 PR gdb/23712
12193 PR symtab/23010
12194 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
12195 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
12196
63a20375
KS
121972019-01-10 Keith Seitz <keiths@redhat.com>
12198
12199 PR gdb/23712
12200 PR symtab/23010
12201 * dictionary.c (pending_to_vector): Remove.
12202 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12203 Remove _1 suffix, replacing functions of the same name. Update
12204 all callers.
12205 (dict_create_hashed, dict_create_hashed_expandable)
12206 (dict_create_linear, dict_create_linear_expandable, dict_free)
12207 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
12208 Make functions static.
12209
b026f593
KS
122102019-01-10 Keith Seitz <keiths@redhat.com>
12211
12212 PR gdb/23712
12213 PR symtab/23010
12214 * dictionary.h (struct dictionary): Replace declaration with
12215 multidictionary.
12216 (dict_create_hashed, dict_create_hashed_expandable)
12217 (dict_create_linear, dict_create_linear_expandable)
12218 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
12219 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
12220 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
12221 taking multidictionary argument.
12222 [ALL_DICT_SYMBOLS]: Update for multidictionary.
12223 * block.h (struct block) <dict>: Change to multidictionary
12224 and rename `multidict'.
12225 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
12226 symmisc.c: Update all dictionary references to multidictionary.
12227
c7748ee9
KS
122282019-01-10 Keith Seitz <keiths@redhat.com>
12229
12230 PR gdb/23712
12231 PR symtab/23010
12232 * dictionary.c: Include unordered_map.
12233 (pending_to_vector): New function.
12234 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12235 Rewrite the non-"_1" functions to take vector instead
12236 of linked list.
12237 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
12238 "new" _1 versions of the same name.
12239 (multidictionary): Define.
12240 (std::hash<enum language): New definition.
12241 (collate_pending_symbols_by_language, mdict_create_hashed)
12242 (mdict_create_hashed_expandable, mdict_create_linear)
12243 (mdict_create_linear_expandable, mdict_free)
12244 (find_language_dictionary, create_new_language_dictionary)
12245 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
12246 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
12247 (mdict_size, mdict_empty): New functions.
12248 * dictionary.h (mdict_iterator): Define.
12249
67aa1f3c
PA
122502019-01-10 Pedro Alves <palves@redhat.com>
12251
12252 * breakpoint.c (read_uploaded_action)
12253 (create_tracepoint_from_upload): Adjust to use
12254 gdb::unique_xmalloc_ptr.
12255 * ctf.c (ctf_write_uploaded_tp):
12256 (SET_ARRAY_FIELD): Use emplace_back.
12257 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
12258 * tracefile-tfile.c (tfile_write_uploaded_tp):
12259 * tracepoint.c (parse_tracepoint_definition): Adjust to use
12260 gdb::unique_xmalloc_ptr.
12261 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
12262 at_string, cond_string, cmd_strings>: Replace char pointers
12263 with gdb::unique_xmalloc_ptr.
12264
2f667667
PA
122652019-01-10 Pedro Alves <palves@redhat.com>
12266
12267 * solib-target.c (library_list_start_library): Don't xstrdup name.
12268
36cb7237
PA
122692019-01-10 Pedro Alves <palves@redhat.com>
12270
12271 * mdebugread.c (parse_partial_symbols): Use
12272 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
12273
da584958
AB
122742019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12275
12276 * linux-fork.c (scoped_switch_fork_info)
12277 <~scoped_switch_fork_info>: Fix incorrect variable name.
12278
1ef8573c
AB
122792019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12280
12281 * linux-fork.c (scoped_switch_fork_info)
12282 <scoped_switch_fork_info>: Make explicit.
12283 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
12284
8d7bcccb
TT
122852019-01-10 Tom Tromey <tom@tromey.com>
12286
12287 * objfiles.h (objfile::reset_psymtabs): Update.
12288 * objfiles.c (objfile::objfile): Update.
12289 * psymtab.h (psymtab_storage::obstack): Update.
12290 (psymtab_storage::m_obstack): Use gdb::optional.
12291 (class psymtab_storage): Update comment. Remove objfile
12292 parameter.
12293 * psymtab.c (psymtab_storage::psymtab_storage): Update.
12294
b596a3c7
TT
122952019-01-10 Tom Tromey <tom@tromey.com>
12296
12297 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
12298 <free_psymtabs>: Now private.
12299 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
12300 (allocate_psymtab): Use new method.
12301
a9342b62
TT
123022019-01-10 Tom Tromey <tom@tromey.com>
12303
12304 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
12305 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
12306 * mdebugread.c (parse_partial_symbols): Use
12307 allocate_dependencies.
12308 * dwarf2read.c (dwarf2_create_include_psymtab): Use
12309 allocate_dependencies.
12310 (process_psymtab_comp_unit_reader)
12311 (build_type_psymtab_dependencies): Likewise.
12312 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
12313
5af70966
TT
123142019-01-10 Tom Tromey <tom@tromey.com>
12315
12316 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
12317 PSYMBOL_SET_LANGUAGE.
12318 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
12319
5923a04c
TT
123202019-01-10 Tom Tromey <tom@tromey.com>
12321
12322 * psymtab.h (psymtab_storage::obstack): New method.
12323 <m_obstack>: Rename from obstack; now private.
12324 * psymtab.c (psymtab_storage): Update.
12325 * dwarf2read.c (create_addrmap_from_index)
12326 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
12327 Update.
12328
6d6a12bf
TT
123292019-01-10 Tom Tromey <tom@tromey.com>
12330
12331 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
12332 * objfiles.h (objfile::reset_psymtabs): New method.
12333
d320c2b5
TT
123342019-01-10 Tom Tromey <tom@tromey.com>
12335
12336 * symmisc.c (print_symbol_bcache_statistics): Update.
12337 (print_objfile_statistics): Update.
12338 * symfile.c (reread_symbols): Update.
12339 * psymtab.h (class psymtab_storage): New.
12340 * psymtab.c (psymtab_storage): New constructor.
12341 (~psymtab_storage): New destructor.
12342 (require_partial_symbols): Update.
12343 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
12344 (find_pc_sect_psymtab, find_pc_sect_psymbol)
12345 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
12346 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
12347 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
12348 (start_psymtab_common, end_psymtab_common)
12349 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
12350 (allocate_psymtab): Update.
12351 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
12352 Update.
12353 (dump_psymtab_addrmap, maintenance_print_psymbols)
12354 (maintenance_check_psymtabs): Update.
12355 (class objfile_psymtabs): Move to objfiles.h.
12356 * psympriv.h (discard_psymtab): Now inline.
12357 (psymtab_discarder::psymtab_discarder): Update.
12358 (psymtab_discarder::~psymtab_discarder): Update.
12359 (ALL_OBJFILE_PSYMTABS): Rewrite.
12360 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
12361 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
12362 Remove fields.
12363 <partial_symtabs>: New field.
12364 (class objfile_psymtabs): Move from psymtab.h. Update.
12365 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
12366 psymbol_cache.
12367 (objfile::~objfile): Don't destroy psymbol_cache.
12368 * mdebugread.c (parse_partial_symbols): Update.
12369 * dwarf2read.c (create_addrmap_from_index)
12370 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12371 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
12372 (add_partial_subprogram, dwarf2_ranges_read): Update.
12373 * dwarf-index-write.c (write_address_map)
12374 (write_one_signatured_type, recursively_write_psymbols)
12375 (class debug_names, class debug_names, write_psymtabs_to_index):
12376 Update.
12377
1d94a5a3
TT
123782019-01-10 Tom Tromey <tom@tromey.com>
12379
12380 * symtab.h (SYMBOL_SET_NAMES): Update.
12381 (symbol_set_names): Update.
12382 (MSYMBOL_SET_NAMES): Update.
12383 * symtab.c (symbol_set_names): Change argument to be an
12384 objfile_per_bfd_storage.
12385 * psymtab.c (add_psymbol_to_bcache): Update.
12386 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
12387
0f14768a
TT
123882019-01-10 Tom Tromey <tom@tromey.com>
12389
12390 * symtab.c (create_demangled_names_hash): Change argument to be an
12391 objfile_per_bfd_storage.
12392 (symbol_set_names): Update.
12393
6eee24ce
TT
123942019-01-10 Tom Tromey <tom@tromey.com>
12395
12396 * xcoffread.c (xcoff_initial_scan): Unconditionally call
12397 init_psymbol_list.
12398 * psymtab.c (init_psymbol_list): Do nothing if already called.
12399 * psympriv.h (init_psymbol_list): Add comment.
12400 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
12401 init_psymbol_list.
12402 * dbxread.c (dbx_symfile_read): Unconditionally call
12403 init_psymbol_list.
12404
75aedd27
TT
124052019-01-10 Tom Tromey <tom@tromey.com>
12406
12407 * xcoffread.c (scan_xcoff_symtab): Update.
12408 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
12409 "where".
12410 * mdebugread.c (parse_partial_symbols)
12411 (handle_psymbol_enumerators): Update.
12412 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
12413 * dbxread.c (read_dbx_symtab): Update.
12414 * psympriv.h (psymbol_placement): New enum.
12415 (add_psymbol_to_list): Update.
12416
939652a5
TT
124172019-01-10 Tom Tromey <tom@tromey.com>
12418
12419 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
12420 static_psymbols parameters.
12421 (scan_xcoff_symtab): Update.
12422 * psymtab.c (start_psymtab_common): Remove global_psymbols and
12423 static_psymbols parameters.
12424 * psympriv.h (start_psymtab_common): Update.
12425 * mdebugread.c (parse_partial_symbols): Update.
12426 * dwarf2read.c (create_partial_symtab): Update.
12427 * dbxread.c (read_dbx_symtab): Update.
12428 (start_psymtab): Remove global_psymbols and static_psymbols
12429 parameters.
12430
baa62830
TT
124312019-01-10 Tom Tromey <tom@tromey.com>
12432
12433 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
12434 * psymtab.c (allocate_psymtab): Add comment.
12435 * psympriv.h (allocate_psymtab): Add comment.
12436 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
12437 initializations.
12438 * dbxread.c (dbx_end_psymtab): Remove some initializations.
12439
0e8f53ba
TT
124402019-01-10 Tom Tromey <tom@tromey.com>
12441
12442 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12443 Don't declare.
12444 * mipsread.c: Include mdebugread.h.
12445 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12446 Declare.
12447 * elfread.c: Include mdebugread.h.
12448
b22a7c6a
TT
124492019-01-09 Tom Tromey <tom@tromey.com>
12450
12451 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
12452 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
12453 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
12454 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
12455 (psym_lookup_symbol, psym_find_last_source_symtab)
12456 (psym_forget_cached_source_info, psym_print_stats)
12457 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
12458 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
12459 (psym_map_matching_symbols, psym_expand_symtabs_matching)
12460 (psym_find_compunit_symtab_by_address)
12461 (maintenance_print_psymbols, maintenance_info_psymtabs)
12462 (maintenance_check_psymtabs): Use ranged for.
12463 * psymtab.h (class objfile_psymtabs): New.
12464 (require_partial_symbols): Return objfile_psymtabs.
12465 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
12466
3b9d3ac2
TT
124672019-01-09 Tom Tromey <tom@tromey.com>
12468
12469 * symfile.c (overlay_invalidate_all, find_pc_overlay)
12470 (find_pc_mapped_section, list_overlays_command)
12471 (map_overlay_command, unmap_overlay_command)
12472 (simple_overlay_update): Use all_objfiles.
12473 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
12474 * printcmd.c (info_symbol_command): Use all_objfiles.
12475 * objfiles.h (ALL_OBJSECTIONS): Remove.
12476 * maint.c (maintenance_translate_address): Use all_objfiles.
12477 * gcore.c (gcore_create_callback): Use all_objfiles.
12478 (objfile_find_memory_regions): Likewise.
12479
8b31193a
TT
124802019-01-09 Tom Tromey <tom@tromey.com>
12481
12482 * symtab.c (find_line_symtab, info_sources_command)
12483 (make_source_files_completion_list): Use objfile_compunits.
12484 * source.c (select_source_symtab): Use objfile_compunits.
12485 * objfiles.h (struct objfile): Update comment.
12486 (ALL_OBJFILES): Remove.
12487 (ALL_FILETABS): Remove.
12488 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
12489 objfile_compunits.
12490
d5da8b3c
TT
124912019-01-09 Tom Tromey <tom@tromey.com>
12492
12493 * symmisc.c (print_objfile_statistics, dump_objfile)
12494 (maintenance_print_symbols): Use compunit_filetabs.
12495 * source.c (forget_cached_source_info_for_objfile): Use
12496 compunit_filetabs.
12497 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
12498 (ALL_FILETABS): Use compunit_filetabs.
12499 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
12500 * coffread.c (coff_symtab_read): Use compunit_filetabs.
12501
5accd1a0
TT
125022019-01-09 Tom Tromey <tom@tromey.com>
12503
12504 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
12505 (compunit_filetabs): New.
12506 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
12507 compunit_filetabs.
12508 (info_sources_command, make_source_files_completion_list): Remove
12509 declaration.
12510 * symmisc.c (print_objfile_statistics, dump_objfile)
12511 (maintenance_print_symbols): Remove declaration.
12512 (maintenance_info_symtabs): Use compunit_filetabs.
12513 (maintenance_info_line_tables): Likewise.
12514 * source.c (select_source_symtab): Change local variable name.
12515 (forget_cached_source_info_for_objfile): Remove declaration.
12516 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
12517 * objfiles.c (objfile_relocate1): Remove declaration.
12518 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12519 declaration.
12520 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
12521 * coffread.c (coff_symtab_read): Remove declaration.
12522 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
12523 compunit_filetabs.
12524
d8aeb77f
TT
125252019-01-09 Tom Tromey <tom@tromey.com>
12526
12527 * symtab.c (lookup_objfile_from_block)
12528 (find_pc_sect_compunit_symtab, search_symbols)
12529 (default_collect_symbol_completion_matches_break_on): Use
12530 objfile_compunits.
12531 * objfiles.h (ALL_COMPUNITS): Remove.
12532 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
12533 * cp-support.c (add_symbol_overload_list_qualified): Use
12534 objfile_compunits.
12535 * ada-lang.c (ada_collect_symbol_completion_matches)
12536 (ada_add_global_exceptions): Use objfile_compunits.
12537
592553c4
TT
125382019-01-09 Tom Tromey <tom@tromey.com>
12539
12540 * source.c (select_source_symtab)
12541 (forget_cached_source_info_for_objfile): Remove declaration.
12542 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12543 declaration.
12544 * maint.c (count_symtabs_and_blocks): Remove declaration.
12545 * cp-support.c (add_symbol_overload_list_qualified): Remove
12546 declaration.
12547 * coffread.c (coff_symtab_read): Remove declaration.
12548 * symtab.c (lookup_symbol_in_objfile_symtabs)
12549 (basic_lookup_transparent_type_1): Use objfile_compunits.
12550 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
12551 (info_sources_command, search_symbols)
12552 (default_collect_symbol_completion_matches_break_on)
12553 (make_source_files_completion_list): Remove declaration.
12554 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
12555 (ada_collect_symbol_completion_matches)
12556 (ada_add_global_exceptions): Remove declaration.
12557 * linespec.c (iterate_over_all_matching_symtabs): Use
12558 objfile_compunits.
12559 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
12560 (class objfile_compunits): New.
12561 (ALL_COMPUNITS): Use objfile_compunits.
12562 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
12563 (maintenance_check_symtabs, maintenance_info_line_tables): Use
12564 objfile_compunits.
12565 * objfiles.c (objfile_relocate1): Use objfile_compunits.
12566
5325b9bf
TT
125672019-01-09 Tom Tromey <tom@tromey.com>
12568
12569 * symtab.c (search_symbols)
12570 (default_collect_symbol_completion_matches_break_on): Use
12571 objfile_msymbols.
12572 * ada-lang.c (ada_lookup_simple_minsym)
12573 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
12574 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
12575 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
12576 objfile_msymbols.
12577 * coffread.c (coff_symfile_read): Use objfile_msymbols.
12578 * symmisc.c (dump_msymbols): Use objfile_msymbols.
12579 * objc-lang.c (find_methods): Use objfile_msymbols.
12580 (info_selectors_command, info_classes_command): Likewise.
12581 * stabsread.c (scan_file_globals): Use objfile_msymbols.
12582 * objfiles.h (class objfile_msymbols): New.
12583 (ALL_OBJFILE_MSYMBOLS): Remove.
12584 (ALL_MSYMBOLS): Remove.
12585
cac85af2
TT
125862019-01-09 Tom Tromey <tom@tromey.com>
12587
12588 * common/next-iterator.h (next_adapter): Add Iterator template
12589 parameter.
12590 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
12591 (class all_objfiles_safe): New.
12592 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
12593 * objfiles.c (put_objfile_before): Update comment.
12594 (add_separate_debug_objfile): Likewise.
12595 (free_all_objfiles): Use all_objfiles_safe.
12596 (objfile_purge_solibs): Likewise.
12597
aed57c53
TT
125982019-01-09 Tom Tromey <tom@tromey.com>
12599
12600 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12601 (expand_symtab_containing_pc, lookup_static_symbol)
12602 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
12603 (find_symbol_at_address, find_line_symtab, find_main_name): Use
12604 all_objfiles.
12605 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
12606 * breakpoint.c (create_overlay_event_breakpoint)
12607 (create_longjmp_master_breakpoint)
12608 (create_std_terminate_master_breakpoint)
12609 (create_exception_master_breakpoint): Use all_objfiles.
12610 * linux-thread-db.c (try_thread_db_load_from_pdir)
12611 (has_libpthread): Use all_objfiles.
12612 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
12613 * linespec.c (iterate_over_all_matching_symtabs)
12614 (search_minsyms_for_name): Use all_objfiles.
12615 * maint.c (maintenance_info_sections): Use all_objfiles.
12616 * main.c (captured_main_1): Use all_objfiles.
12617 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
12618 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
12619 * guile/scm-pretty-print.c
12620 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
12621 * solib-spu.c (append_ocl_sos): Use all_objfiles.
12622 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
12623 (maintenance_print_msymbols): Use all_objfiles.
12624 * source.c (select_source_symtab): Use all_objfiles.
12625 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
12626 * symfile.c (remove_symbol_file_command)
12627 (expand_symtabs_matching, map_symbol_filenames): Use
12628 all_objfiles.
12629 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
12630 all_objfiles.
12631 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
12632 * objc-lang.c (find_methods): Use all_objfiles.
12633 * objfiles.c (have_partial_symbols, have_full_symbols)
12634 (have_minimal_symbols, qsort_cmp)
12635 (default_iterate_over_objfiles_in_search_order): Use
12636 all_objfiles.
12637 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
12638 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
12639 (maintenance_check_psymtabs): Use all_objfiles.
12640 (ALL_PSYMTABS): Remove.
12641 * compile/compile-object-run.c (do_module_cleanup): Use
12642 all_objfiles.
12643 * blockframe.c (find_pc_partial_function): Use all_objfiles.
12644 * cp-support.c (add_symbol_overload_list_qualified): Use
12645 all_objfiles.
12646 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12647 Use all_objfiles.
12648 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
12649 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
12650 all_objfiles.
12651 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12652 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
12653 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12654 Uses all_objfiles.
12655 * solib.c (solib_read_symbols): Use all_objfiles
12656
99d89cde
TT
126572019-01-09 Tom Tromey <tom@tromey.com>
12658
12659 * probe.c (parse_probes_in_pspace): Use all_objfiles.
12660 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
12661 all_objfiles.
12662 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
12663 * symmisc.c (print_symbol_bcache_statistics)
12664 (print_objfile_statistics, maintenance_print_objfiles)
12665 (maintenance_info_symtabs, maintenance_check_symtabs)
12666 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
12667 all_objfiles.
12668 * source.c (forget_cached_source_info): Use all_objfiles.
12669 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
12670 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12671 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
12672 * objfiles.c (update_section_map): Use all_objfiles.
12673 (shared_objfile_contains_address_p): Likewise.
12674 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
12675 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
12676
21708325
TT
126772019-01-09 Tom Tromey <tom@tromey.com>
12678
12679 * common/next-iterator.h: New file.
12680 * objfiles.h (class all_objfiles): New.
12681 (struct objfile_iterator): New.
12682
669e09f6
PW
126832019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12684
12685 * NEWS: Move the description of the changed "frame", "select-frame",
12686 and "info frame" commands to the Changed commands section.
12687
041be526
SM
126882019-01-09 Simon Marchi <simon.marchi@ericsson.com>
12689
12690 * gdbtypes.c (check_stub_method_group): Remove handling of old
12691 mangling schemes.
12692 * linespec.c (find_methods): Likewise.
12693 * stabsread.c (read_member_functions): Likewise.
12694 * valops.c (search_struct_method): Likewise.
12695 (value_struct_elt_for_reference): Likewise.
12696 * NEWS: Mention this change.
12697
0e2a2133
AB
126982019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12699
12700 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
12701 print_source_lines.
12702 * source.c (print_source_lines_base): Update line number check.
12703 (print_source_lines): New function.
12704 (source_lines_range::source_lines_range): New function.
12705 * source.h (class source_lines_range): New class.
12706 (print_source_lines): New declaration.
12707
1055a3b4
PW
127082019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12709
12710 * linespec.c (linespec_state_destructor): Free self->canonical_names.
12711
cfeadda5
TT
127122019-01-08 Tom Tromey <tom@tromey.com>
12713 Simon Marchi <simon.marchi@ericsson.com>
12714
12715 PR gdb/24060
12716 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
12717 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
12718 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12719 * f-exp.y (DOLLAR_VARIABLE): Likewise.
12720 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
12721 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12722
583068ca
AB
127232019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12724
12725 * source.c (select_source_symtab): Move header comment to
12726 declaration in source.h.
12727 (forget_cached_source_info_for_objfile): Likewise.
12728 (forget_cached_source_info): Likewise.
12729 (identify_source_line): Likewise.
12730 * source.h (identify_source_line): Move declaration from symtab.h
12731 and add comment from source.c
12732 (print_source_lines): Likewise.
12733 (forget_cached_source_info_for_objfile): Likewise.
12734 (forget_cached_source_info): Likewise.
12735 (select_source_symtab): Likewise.
12736 (enum print_source_lines_flag): Move definition from symtab.h.
12737 * symtab.h (identify_source_line): Move declaration to source.h.
12738 (print_source_lines): Likewise.
12739 (forget_cached_source_info_for_objfile): Likewise.
12740 (forget_cached_source_info): Likewise.
12741 (select_source_symtab): Likewise.
12742 (enum print_source_lines_flag): Move definition to source.h.
12743 * tui/tui-hooks.c: Add 'source.h' include.
12744
ec98a4ad
AB
127452019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12746
12747 * source.c (print_source_lines_base): Handle requests to print
12748 reverse line number sequences, and guard against empty lines
12749 string.
12750
62ea19c1
AB
127512019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12752
12753 * source.c (print_source_lines_base): Fix skip of '\r' if next
12754 character is '\n'.
12755
9d30e1fd
TT
127562019-01-06 Tom Tromey <tom@tromey.com>
12757
12758 * c-exp.y (struct c_parse_state) <macro_original_text,
12759 expansion_obstack>: New member.
12760 (macro_original_text, expansion_obstack): Remove globals.
12761 (scan_macro_expansion, scanning_macro_expansion)
12762 (finished_macro_expansion): Update.
12763 (scan_macro_cleanup): Remove.
12764 (yylex, c_parse): Update.
12765
c65bac38
TT
127662019-01-06 Tom Tromey <tom@tromey.com>
12767
12768 * c-exp.y (struct c_parse_state) <strings>: New member.
12769 (operator_stoken): Update.
12770
02e12e38
TT
127712019-01-06 Tom Tromey <tom@tromey.com>
12772
12773 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
12774 (union type_stack_elt) <typelist_val>: Now a pointer to
12775 std::vector.
12776 (type_stack_cleanup): Don't declare.
12777 (push_typelist): Update.
12778 * parse.c (pop_typelist): Return a std::vector.
12779 (push_typelist): Take a std::vector.
12780 (follow_types): Update. Do not free args.
12781 (type_stack_cleanup): Remove.
12782 * c-exp.y (struct c_parse_state): New.
12783 (cpstate): New global.
12784 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
12785 (nonempty_typelist): Update.
12786 (func_mod): Create a new vector.
12787 (c_parse): Create a c_parse_state.
12788 (check_parameter_typelist): Do not delete params.
12789 (function_method): Update. Do not delete type_list.
12790
f097f5ad
TT
127912019-01-06 Tom Tromey <tom@tromey.com>
12792
12793 PR gdb/28155:
12794 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
12795 check_typedef.
12796 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
12797 (print_return_value): Likewise.
12798
d2adf9f1
TT
127992019-01-05 Tom Tromey <tom@tromey.com>
12800
12801 * contrib/cleanup_check.py: Remove.
12802 * contrib/gcc-with-excheck: Remove.
12803 * contrib/exsummary.py: Remove.
12804 * contrib/excheck.py: Remove.
12805
2eab46b1
JB
128062019-01-05 Joel Brobecker <brobecker@adacore.com>
12807
12808 * thread.c (delete_thread_1): Add gdb_assert that THR is not
12809 NULL. Initialize tpprev to NULL instead of assigning it
12810 to NULL on the next statement.
12811 * windows-nat.c (windows_delete_thread): Remove check for
12812 main_thread_id before printing thread exit notifications.
12813 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
12814 Remove thread ID check against main_thread_id.
12815 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
12816 windows_delete_thread.
12817 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
12818
48c5e7e2
TT
128192019-01-04 Tom Tromey <tom@tromey.com>
12820
12821 * compile/compile.c (_initialize_compile): Use upper case for
12822 metasyntactic variables.
12823 * symmisc.c (_initialize_symmisc): Use upper case for
12824 metasyntactic variables.
12825 * psymtab.c (_initialize_psymtab): Use upper case for
12826 metasyntactic variables.
12827 * demangle.c (demangle_command): Use upper case for metasyntactic
12828 variables.
12829 (_initialize_demangler): Likewise.
12830 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
12831 variables.
12832
986041cd
TT
128332019-01-03 Tom Tromey <tom@tromey.com>
12834
12835 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
12836
7c711119
TT
128372019-01-03 Tom Tromey <tom@tromey.com>
12838
12839 * python/py-symtab.c (salpy_str): Update.
12840 (struct salpy_sal_object) <symtab>: Now a PyObject.
12841 (salpy_dealloc): Update.
12842 (del_objfile_sal): Use gdbpy_ref.
12843
1b20edf0
TT
128442019-01-03 Tom Tromey <tom@tromey.com>
12845
12846 * python/py-type.c (convert_field): Use new_reference. Return
12847 gdbpy_ref.
12848 (make_fielditem): Return gdbpy_ref.
12849 (typy_fields): Update.
12850 (typy_getitem): Update.
12851 (field_name): Return gdbpy_ref. Use new_reference.
12852 (typy_iterator_iternext): Update.
12853
ea41325b
TT
128542019-01-03 Tom Tromey <tom@tromey.com>
12855
12856 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
12857
2a3c71d6
TT
128582019-01-03 Tom Tromey <tom@tromey.com>
12859
12860 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
12861 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
12862 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
12863 (pspy_set_frame_filters, pspy_set_frame_unwinders)
12864 (pspy_set_type_printers): Likewise.
12865 * python/py-function.c (fnpy_init): Use gdbpy_ref.
12866 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
12867 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
12868 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
12869 (objfpy_set_type_printers): Likewise.
12870
5c329e6a
TT
128712019-01-03 Tom Tromey <tom@tromey.com>
12872
12873 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
12874 (gdbpy_print_stack): Use gdbpy_err_fetch.
12875 * python/python-internal.h (class gdbpy_err_fetch): New class.
12876 (class gdbpy_enter) <m_error_type, m_error_value,
12877 m_error_traceback>: Remove.
12878 <m_error>: New member.
12879 (gdbpy_exception_to_string): Don't declare.
12880 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
12881 * python/py-value.c (convert_value_from_python): Use
12882 gdbpy_err_fetch.
12883 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
12884 gdbpy_exception_to_string.
12885 (gdbpy_handle_exception): Use gdbpy_err_fetch.
12886 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
12887 gdbpy_err_fetch.
12888
169bb27b
AB
128892019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12890
12891 * linux-nat.c (delete_lwp_cleanup): Delete.
12892 (struct lwp_deleter): New struct.
12893 (lwp_info_up): New typedef.
12894 (linux_nat_target::follow_fork): Delete cleanup, and make use of
12895 lwp_info_up.
12896
a07c8880
AB
128972019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12898
12899 * linux-fork.c (class scoped_switch_fork_info): New class.
12900 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
12901
26089c49
AB
129022019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12903
12904 * valops.c (find_overload_match): Remove use of null_cleanup, and
12905 calls to do_cleanups.
12906
06d3e5b0
AB
129072019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12908
12909 * compile/compile-cplus-types.c
12910 (compile_cplus_instance::decl_name): Handle changes to
12911 cp_func_name.
12912 * cp-support.c (cp_func_name): Update header comment, update
12913 return type.
12914 * cp-support.h (cp_func_name): Update return type in declaration.
12915 * valops.c (find_overload_match): Move temp_func local to top
12916 level of function and change its type. Use temp_func to hold and
12917 delete temporary string obtained from cp_func_name.
12918
66644cd3
AB
129192019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12920
12921 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
12922 gdb::char_vector, remove cleanup, and update uses of `msg`.
12923
592d8c0a
JW
129242019-01-03 Jim Wilson <jimw@sifive.com>
12925
12926 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
12927
c55d06ec
TT
129282019-01-02 Tom Tromey <tom@tromey.com>
12929
12930 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
12931 (tdesc_parse_xml): Remove cleanups.
12932 * target-descriptions.h (make_cleanup_free_target_description):
12933 Don't declare.
12934 (target_desc_deleter): New struct.
12935 (target_desc_up): New typedef.
12936 * target-descriptions.c (target_desc_deleter::operator()): Rename
12937 from free_target_description.
12938 (make_cleanup_free_target_description): Remove.
12939
3a6ae42d
TT
129402019-01-02 Tom Tromey <tom@tromey.com>
12941
12942 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
12943 constructor, destructor.
12944 (linespec_parser): Remove typedef.
12945 (~linespec_parser): Rename from linespec_parser_delete.
12946 (linespec_lex_to_end, linespec_complete_label)
12947 (linespec_complete): Update.
12948 (decode_line_full): Remove cleanups.
12949 (decode_line_1): Update.
12950
61fd3e73
TT
129512019-01-02 Tom Tromey <tom@tromey.com>
12952
12953 * python/python-internal.h (inferior_to_inferior_object): Change
12954 return type.
12955 * python/py-exitedevent.c (create_exited_event_object): Update.
12956 * python/py-inferior.c (inferior_to_inferior_object): Return
12957 gdbpy_ref.
12958 (python_new_inferior, python_inferior_deleted)
12959 (thread_to_thread_object, delete_thread_object)
12960 (build_inferior_list, gdbpy_selected_inferior): Update.
12961 * python/py-infthread.c (create_thread_object): Update. Also fail
12962 if inferior_to_inferior_object fails.
12963
d20172fc
SM
129642019-01-02 Simon Marchi <simon.marchi@ericsson.com>
12965
12966 * inferior.h (class inferior) <displaced_step_state>: New field.
12967 * infrun.h (struct displaced_step_state): Move here from
12968 infrun.c. Initialize fields, add constructor.
12969 <inf>: Remove field.
12970 <reset>: New method.
12971 * infrun.c (struct displaced_step_inferior_state): Move to
12972 infrun.h.
12973 (displaced_step_inferior_states): Remove.
12974 (get_displaced_stepping_state): Adust.
12975 (displaced_step_in_progress_any_inferior): Adjust.
12976 (displaced_step_in_progress_thread): Adjust.
12977 (displaced_step_in_progress): Adjust.
12978 (add_displaced_stepping_state): Remove.
12979 (get_displaced_step_closure_by_addr): Adjust.
12980 (remove_displaced_stepping_state): Remove.
12981 (infrun_inferior_exit): Call displaced_step_state.reset.
12982 (use_displaced_stepping): Don't check for NULL.
12983 (displaced_step_prepare_throw): Call
12984 get_displaced_stepping_state.
12985 (displaced_step_fixup): Don't check for NULL.
12986 (prepare_for_detach): Don't check for NULL.
12987
e3319240
PW
129882019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12989
12990 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
12991 in case of call that did not complete.
12992
5d36dfb9
AU
129932019-01-02 Andrey Utkin <autkin@undo.io>
12994
12995 * symfile.c (find_separate_debug_file): Fix search of debug files for
12996 remote debuggee.
12997
8833fbf0
TT
129982019-01-02 Tom Tromey <tom@tromey.com>
12999
13000 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
13001 indentation.
13002 * python/py-frame.c (frapy_older): Remove cast.
13003 (frapy_newer): Likewise.
13004 * python/py-breakpoint.c (local_setattro): Remove cast.
13005 * python/py-arch.c (archpy_name): Remove local variable.
13006 * python/py-type.c (gdbpy_lookup_type): Remove cast.
13007
4ada3dfd
JB
130082019-01-02 Joel Brobecker <brobecker@adacore.com>
13009
13010 * unittests/basic_string_view/element_access/char/empty.cc:
13011 Fix year range in copyright header.
13012
113b7b81
AB
130132019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
13014
13015 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
13016 Delete.
13017 <operator==>: Update with for removed field.
13018 <hash>: Likewise.
13019 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
13020 <isa_features>: ...this.
13021 <abi_features>: New field.
13022 (riscv_isa_flen): Update comment.
13023 (riscv_abi_xlen): New declaration.
13024 (riscv_abi_flen): New declaration.
13025 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
13026 isa_features.
13027 (riscv_abi_xlen): New function.
13028 (riscv_isa_flen): Update to get answer from isa_features.
13029 (riscv_abi_flen): New function.
13030 (riscv_has_fp_abi): Update to get answer from abi_features.
13031 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
13032 xlen and flen.
13033 (riscv_call_info) <xlen, flen>: Update comment.
13034 (riscv_call_arg_struct): Remove invalid assertions
13035 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
13036 is removed.
13037 (riscv_gdbarch_init): Gather isa features and abi features
13038 separately, ensure both match on the gdbarch when reusing an old
13039 gdbarch. Relax an error check to allow 32-bit abi float to run on
13040 a target with 64-bit float hardware.
13041
b18ca514
PW
130422019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13043
13044 * source.c (search_command_helper): Stop reverse search
13045 when line 1 has been searched.
13046
ec70d8db
PW
130472019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13048
13049 * record-full.c (record_full_base_target::close): Rewrite
13050 record_full_core_buf_list free logic.
13051
5b38f9c1
PW
130522019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13053
13054 * break-catch-syscall.c (print_one_catch_syscall): xfree
13055 the last text.
13056
66d91b39
JB
130572019-01-01 Joel Brobecker <brobecker@adacore.com>
13058
13059 * top.c (print_gdb_version): Update Copyright year in version
13060 message.
13061
42a4f53d
JB
130622019-01-01 Joel Brobecker <brobecker@adacore.com>
13063
13064 Update copyright year range in all GDB files.
13065
7e955d83 130662019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 13067
5bbd631d 13068 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 13069
5bbd631d 13070For older changes see ChangeLog-2018.
c906108c
SS
13071\f
13072Local Variables:
13073mode: change-log
13074left-margin: 8
13075fill-column: 74
13076version-control: never
57da7796 13077coding: utf-8
c906108c 13078End:
5bbd631d 13079